/* ============================================================
   TRY IT — interactive builder, natively themed
   The .tb wrapper scopes the app-window's product palette so it
   never leaks into the homepage. Controls + chips use the site theme.
   ============================================================ */

/* layout + scoped product palette (only the app window uses these) */
.t-try-build{margin-top:24px}
.tb{
  display:grid;grid-template-columns:300px minmax(0,1fr);gap:32px;align-items:start;
  --app-bg:#F7F8FA;--app-surface:#FFFFFF;--app-line:#E8EAED;--app-line2:#F0F1F3;
  --app-ink:#1A1D21;--app-ink2:#6B7280;--app-ink3:#9CA3AF;
  --app-accent:#E8B400;--app-accent-soft:#FDF6E0;
  --ok:#0F9D58;--ok-soft:#E6F4EA;--warn:#D93025;--warn-soft:#FCE8E6;--info:#1A73E8;
  --shadow:0 1px 2px rgba(16,24,40,.04),0 1px 3px rgba(16,24,40,.06);
  --shadow-lg:0 4px 12px rgba(16,24,40,.08),0 2px 4px rgba(16,24,40,.04);
  --paper:#FFF;--fa:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;--fd:var(--heading);
}

/* left control rail — site theme */
.tb-controls{position:relative;display:flex;flex-direction:column;gap:8px}

/* ── PIN / SCROLL-LOCK (mobile) ───────────────────────────────
   The demo "freezes" in view for a set scroll distance, then releases —
   both directions, via native position:sticky. The freeze distance comes
   from .tb-spacer (a sibling BELOW the sticky stage); note that padding on
   the track does NOT create sticky room, only real content/sibling height. */
.tb-spacer{height:0}
.tb-lbl{font-size:11px;letter-spacing:.25em;color:var(--accent);font-weight:400;margin-bottom:10px;display:flex;align-items:center;gap:12px}
.tb-lbl::after{content:'';flex:1;height:1px;background:var(--accent);opacity:.35}
.tb-chips{display:flex;flex-direction:column;gap:8px}
.tb-chip{display:flex;align-items:center;gap:13px;border:1px solid var(--muted);background:transparent;color:var(--white);padding:13px 16px;border-radius:10px;cursor:pointer;font-family:var(--body);font-weight:400;font-size:14px;letter-spacing:-.01em;transition:border-color .2s,background .2s,transform .15s;user-select:none}
.tb-chip:hover{border-color:rgba(245,242,237,.4);transform:translateX(3px)}
[data-theme="light"] .tb-chip:hover{border-color:rgba(26,26,26,.3)}
.tb-chip .dot{width:18px;height:18px;border-radius:6px;border:1.5px solid var(--muted);flex-shrink:0;display:flex;align-items:center;justify-content:center;transition:all .2s}
.tb-chip.on{border-color:var(--accent);background:rgba(200,255,0,.07)}
[data-theme="light"] .tb-chip.on{background:rgba(77,124,15,.08)}
.tb-chip.on .dot{background:var(--accent);border-color:var(--accent)}
.tb-chip.on .dot::after{content:'';width:4px;height:8px;border:solid var(--bg);border-width:0 2px 2px 0;transform:rotate(45deg);margin-top:-2px}
.tb-help{font-size:11px;color:var(--dim);font-weight:300;font-style:italic;line-height:1.55;margin-top:18px;opacity:.75}

/* compact "Add a feature" menu button — mobile only (hidden on desktop) */
.tb-menu-btn{display:none;align-items:center;gap:9px;width:100%;background:var(--bg);color:var(--white);border:1px solid var(--accent);border-radius:100px;padding:11px 16px;font-family:var(--body);font-size:14px;font-weight:500;cursor:pointer;transition:background .2s}
.tb-menu-btn .tb-mb-ic{position:relative;width:16px;height:16px;flex-shrink:0}
.tb-menu-btn .tb-mb-ic::before,.tb-menu-btn .tb-mb-ic::after{content:'';position:absolute;background:var(--accent);transition:transform .25s ease}
.tb-menu-btn .tb-mb-ic::before{left:50%;top:2px;bottom:2px;width:2px;transform:translateX(-50%)}
.tb-menu-btn .tb-mb-ic::after{top:50%;left:2px;right:2px;height:2px;transform:translateY(-50%)}
.tb-controls.menu-open .tb-menu-btn .tb-mb-ic::before{transform:translateX(-50%) rotate(90deg);opacity:0}
.tb-menu-btn .tb-mb-label{flex:1;text-align:left}
.tb-menu-btn .tb-mb-count{font-size:12px;font-weight:600;color:var(--accent);background:rgba(200,255,0,.12);border-radius:100px;padding:2px 9px;min-width:24px;text-align:center}
[data-theme="light"] .tb-menu-btn .tb-mb-count{background:rgba(77,124,15,.12)}

/* swipe-down hint — mobile only */
.tb-swipe{display:none;flex-direction:column;align-items:center;gap:6px;margin-top:6px;color:var(--dim);font-size:12px;font-weight:300;transition:opacity .4s}
.tb-swipe.gone{opacity:0;pointer-events:none}
.tb-swipe svg{width:22px;height:22px;color:var(--accent);animation:tbBob 1.6s ease-in-out infinite}
@keyframes tbBob{0%,100%{transform:translateY(0)}50%{transform:translateY(6px)}}

/* ---- app window (scoped product palette) ---- */
.tb .app{font-feature-settings:"cv11","ss01";font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased;border-radius:14px;background:var(--app-surface);box-shadow:var(--shadow-lg);overflow:hidden;border:1px solid var(--app-line);position:relative;height:calc(100vh - 104px);min-height:560px;display:flex;flex-direction:column}
.tb .titlebar{display:flex;align-items:center;gap:14px;padding:13px 18px;border-bottom:1px solid var(--app-line);background:var(--app-surface);flex-shrink:0}
/* traffic-lights double as a big, thumb-friendly EXIT button (red shows an ×) */
.tb .tb-dots{display:flex;gap:8px;align-items:center;background:none;border:none;cursor:pointer;padding:10px 12px;margin:-10px -8px;border-radius:9px;transition:background .12s}
.tb .tb-dots:hover,.tb .tb-dots:active{background:var(--app-bg)}
.tb .tb-dots i{width:12px;height:12px;border-radius:50%;display:block;position:relative}
/* a crisp, upright X drawn from two bars (a glyph rendered slanted) */
.tb .tb-dots i:first-child::before,
.tb .tb-dots i:first-child::after{content:"";position:absolute;top:50%;left:50%;width:7px;height:1.6px;border-radius:1px;background:rgba(90,0,0,.62)}
.tb .tb-dots i:first-child::before{transform:translate(-50%,-50%) rotate(45deg)}
.tb .tb-dots i:first-child::after{transform:translate(-50%,-50%) rotate(-45deg)}
.tb .tb-dots i:nth-child(1){background:#FF5F57}
.tb .tb-dots i:nth-child(2){background:#FEBC2E}
.tb .tb-dots i:nth-child(3){background:#28C840}
.tb .tb-addr{flex:1;min-width:0;display:flex;justify-content:center}
.tb .tb-addr span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--fa);font-size:12.5px;color:var(--app-ink3);background:var(--app-bg);padding:6px 16px;border-radius:7px;border:1px solid var(--app-line)}
.tb .tb-addr b{color:var(--app-ink2);font-weight:600}
.tb .tb-live{flex-shrink:0;font-family:var(--fa);font-size:12px;font-weight:600;color:var(--ok);display:flex;align-items:center;gap:6px}
.tb .tb-live::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 0 rgba(15,157,88,.4);animation:pulse 2.4s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(15,157,88,.4)}
70%{box-shadow:0 0 0 6px rgba(15,157,88,0)}
100%{box-shadow:0 0 0 0 rgba(15,157,88,0)}}
.tb .app-body{display:flex;background:var(--app-bg);flex:1;min-height:0}
.tb .side{width:208px;flex-shrink:0;background:var(--app-surface);border-right:1px solid var(--app-line);padding:18px 12px;display:flex;flex-direction:column;overflow-y:auto}
.tb .side .brand{display:flex;align-items:center;gap:9px;padding:4px 8px 18px}
.tb .side .brand .logo{width:26px;height:26px;border-radius:7px;background:var(--app-ink);color:var(--paper);font-family:var(--fd);font-size:13px;display:flex;align-items:center;justify-content:center}
.tb .side .brand .nm{font-family:var(--fa);font-weight:700;font-size:14px;letter-spacing:-.01em;color:var(--app-ink)}
.tb .side .brand .brand-icon{width:26px;height:26px;border-radius:8px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:15px;line-height:1;background:linear-gradient(155deg,#ffd7a6,#ff9ec2 58%,#f676a6);box-shadow:0 3px 7px -2px rgba(214,92,132,.5),inset 0 1px 1px rgba(255,255,255,.5)}
.tb .side .navlbl{font-family:var(--fa);font-size:10px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--app-ink3);padding:8px 8px 6px}
.tb .nav-i{display:flex;align-items:center;gap:11px;padding:8px 9px;border-radius:8px;font-family:var(--fa);font-size:13.5px;font-weight:500;color:var(--app-ink2);cursor:default;transition:background .12s,color .12s;position:relative}
.tb .nav-i .ic{width:17px;height:17px;flex-shrink:0;opacity:.7}
.tb .nav-i.active{background:var(--app-accent-soft);color:var(--app-ink);font-weight:600}
.tb .nav-i.active .ic{opacity:1}
.tb .nav-i.ghost{opacity:0;height:0;padding:0 9px;overflow:hidden;transition:opacity .3s,height .3s,padding .3s}
.tb .nav-i.ghost.show{opacity:1;height:auto;padding:8px 9px}
.tb .side .upsell{margin-top:auto;background:var(--app-bg);border:1px solid var(--app-line);border-radius:10px;padding:13px}
.tb .side .upsell .t{font-family:var(--fa);font-weight:600;font-size:12.5px;color:var(--app-ink)}
.tb .side .upsell .d{font-family:var(--fa);font-size:11.5px;color:var(--app-ink2);margin-top:4px;line-height:1.4}
.tb .canvas{flex:1;padding:0 26px 24px;overflow-y:auto;min-height:0}
/* header sticks to the top of the app window so back + title stay put while scrolling */
.tb .canvas-top{position:sticky;top:0;z-index:6;background:var(--app-bg);display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 0 13px;margin-bottom:10px;box-shadow:0 1px 0 var(--app-line)}
.tb .ct-left{display:flex;align-items:flex-start;gap:12px}
.tb .back-btn{width:32px;height:32px;border-radius:8px;border:1px solid var(--app-line);background:var(--app-surface);display:none;align-items:center;justify-content:center;cursor:pointer;color:var(--app-ink2);flex-shrink:0;transition:background .12s}
.tb .back-btn:hover{background:var(--app-bg)}
.tb .back-btn svg{width:17px;height:17px}
.tb .app.in-detail .back-btn{display:flex}
.tb .canvas-top .ttl{font-family:var(--fa);font-weight:600;font-size:20px;letter-spacing:-.025em;color:var(--app-ink)}
.tb .canvas-top .crumb{font-family:var(--fa);font-size:12.5px;color:var(--app-ink3);margin-top:5px}
/* month filter pill in the dashboard header */
.tb .tb-monthfilter{display:inline-flex;align-items:center;gap:7px;font-family:var(--fa);font-size:12.5px;font-weight:600;
  color:var(--app-ink2);background:var(--app-surface);border:1px solid var(--app-line);border-radius:20px;padding:5px 10px 5px 11px;cursor:pointer;transition:border-color .12s,background .12s}
.tb .tb-monthfilter:hover{border-color:var(--app-ink3);background:var(--app-bg)}
.tb .tb-monthfilter svg{width:14px;height:14px;color:var(--app-ink3)}
.tb .tb-monthfilter .mf-chev{width:13px;height:13px;margin-left:1px;transition:transform .15s}
.tb .tb-mf-wrap.open .tb-monthfilter .mf-chev{transform:rotate(180deg)}
/* date-filter dropdown: pick the last 3 months */
.tb .tb-mf-wrap{position:relative;display:inline-block}
.tb .tb-mf-menu{position:absolute;top:calc(100% + 6px);left:0;z-index:40;min-width:150px;
  background:var(--app-surface);border:1px solid var(--app-line);border-radius:12px;padding:5px;
  box-shadow:0 14px 34px -12px rgba(16,24,40,.35);display:flex;flex-direction:column;gap:2px;
  opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .14s,transform .14s,visibility .14s}
.tb .tb-mf-wrap.open .tb-mf-menu{opacity:1;visibility:visible;transform:none}
.tb .tb-mf-opt{display:flex;align-items:center;justify-content:space-between;font-family:var(--fa);font-size:12.5px;font-weight:600;
  color:var(--app-ink2);background:none;border:0;border-radius:8px;padding:9px 11px;text-align:left;cursor:pointer;white-space:nowrap}
.tb .tb-mf-opt:hover{background:var(--app-bg)}
.tb .tb-mf-opt.sel{color:var(--app-accent);background:var(--app-accent-soft)}
.tb .tb-mf-opt.sel::after{content:'✓';font-size:11px}
.tb .canvas-top .who{display:flex;align-items:center;gap:9px}
.tb .canvas-top .who .pic{width:30px;height:30px;border-radius:50%;background:linear-gradient(135deg,#E8B400,#D97706);color:#fff;font-family:var(--fa);font-weight:700;font-size:12px;display:flex;align-items:center;justify-content:center}
.tb .canvas-top .who .nm{font-family:var(--fa);font-size:13px;font-weight:600;color:var(--app-ink);line-height:1.2}
.tb .canvas-top .who .rl{font-family:var(--fa);font-size:11px;color:var(--app-ink3)}
.tb .grid{display:block}
.tb .grid[data-mode="dash"]{display:flex;flex-direction:column;gap:16px}
.tb .tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.tb .tile{text-align:left;background:var(--app-surface);border:1px solid var(--app-line);border-radius:12px;box-shadow:var(--shadow);padding:15px 16px 14px;display:flex;flex-direction:column;gap:11px;cursor:pointer;font-family:var(--fa);transition:border-color .14s,transform .14s,box-shadow .14s;animation:slidein .4s cubic-bezier(.22,1,.36,1) both}
.tb .tile:hover{border-color:var(--app-ink3);transform:translateY(-2px);box-shadow:var(--shadow-lg)}
.tb .tile-h{display:flex;align-items:center;gap:8px}
.tb .tile-ic{width:16px;height:16px;color:var(--app-ink2);flex-shrink:0}
.tb .tile-t{font-size:13px;font-weight:600;color:var(--app-ink);letter-spacing:-.01em}
.tb .tile-arr{width:15px;height:15px;color:var(--app-ink3);margin-left:auto;transition:transform .14s,color .14s}
.tb .tile:hover .tile-arr{transform:translateX(2px);color:var(--app-ink)}
.tb .tile-stat{display:flex;align-items:baseline;gap:6px}
.tb .tile-stat .t-big{font-size:26px;font-weight:600;letter-spacing:-.03em;color:var(--app-ink);line-height:1}
.tb .tile-stat .t-unit{font-size:12px;color:var(--app-ink2)}
.tb .tile-foot{min-height:20px;display:flex;align-items:center}
.tb .t-sub{font-size:12px;color:var(--app-ink3)}
/* notification badge for tile footers (e.g. "18 to fulfil", "+37 new") */
.tb .t-note{display:inline-flex;align-items:center;gap:6px;font-family:var(--fa);font-size:11.5px;font-weight:600;padding:4px 10px;border-radius:20px}
.tb .t-note .t-note-d{width:6px;height:6px;border-radius:50%;flex-shrink:0}
.tb .t-note.amber{background:#FDF1CC;color:#8a6a00}
.tb .t-note.amber .t-note-d{background:#E8B400}
.tb .t-note.green{background:var(--ok-soft);color:#0A5A33}
.tb .t-note.green .t-note-d{background:var(--ok)}
.tb .t-avs{display:flex}
.tb .t-av{width:20px;height:20px;border-radius:50%;border:2px solid var(--app-surface);margin-left:-6px}
.tb .t-av:first-child{margin-left:0}
.tb .t-chip{font-size:11px;font-weight:600;padding:3px 9px;border-radius:20px}
.tb .t-chip.ok{background:var(--ok-soft);color:#0A5A33}
.tb .t-chip.warn{background:var(--warn-soft);color:#9A2A1E}
.tb .t-spark{display:flex;align-items:flex-end;gap:4px;height:22px}
.tb .t-spark span{width:8px;background:var(--app-line);border-radius:2px}
.tb .t-spark span.hl{background:var(--app-accent)}
.tb .detail{background:var(--app-surface);border:1px solid var(--app-line);border-radius:12px;box-shadow:var(--shadow);overflow:hidden;animation:slidein .34s cubic-bezier(.22,1,.36,1) both}
.tb .d-toolbar{display:flex;align-items:center;gap:8px;padding:13px 16px;border-bottom:1px solid var(--app-line);background:var(--app-bg)}
.tb .d-seg{font-family:var(--fa);font-size:12.5px;font-weight:500;color:var(--app-ink2);padding:5px 12px;border-radius:8px;cursor:pointer}
.tb .d-seg.active{background:var(--app-surface);color:var(--app-ink);font-weight:600;border:1px solid var(--app-line)}
.tb .d-spacer{flex:1}
.tb .d-meta{font-family:var(--fa);font-size:12px;color:var(--app-ink3)}
.tb .d-list{padding:6px 16px}
.tb .d-list .mail{padding:13px 0}
.tb .d-list .claim.wide{padding:14px 0}
.tb .claim.wide .amt{width:80px;font-size:17px}
.tb .c-acts{display:flex;gap:8px;flex-shrink:0}
.tb .c-btn{font-family:var(--fa);font-size:12px;font-weight:600;padding:6px 14px;border-radius:8px;border:1px solid var(--app-line);cursor:pointer;background:var(--app-surface);transition:all .12s}
.tb .c-btn.ok{background:var(--app-ink);color:#fff;border-color:var(--app-ink)}
.tb .c-btn.ok:hover{opacity:.85}
.tb .c-btn.no:hover{background:var(--warn-soft);color:var(--warn);border-color:var(--warn-soft)}
.tb .st-qty{font-family:var(--fa);font-size:12px;font-weight:600;padding:4px 10px;border-radius:20px;flex-shrink:0;margin-left:auto;margin-right:4px}
.tb .st-qty.low{background:var(--warn-soft);color:#9A2A1E}
.tb .st-qty.ok{background:var(--app-bg);color:var(--app-ink2)}
.tb .shift-who{font-family:var(--fa);font-size:13px;font-weight:600;color:var(--app-ink);flex-shrink:0;margin-left:auto;margin-right:4px}
.tb .shift-who.open{color:var(--app-ink3);font-style:italic;font-weight:500}
.tb .d-pipe{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:16px}
.tb .pipe-col{background:var(--app-bg);border-radius:10px;padding:11px;display:flex;flex-direction:column;gap:8px}
.tb .pipe-h{display:flex;flex-direction:column;gap:2px;margin-bottom:2px}
.tb .pipe-stage{font-family:var(--fa);font-size:12.5px;font-weight:600;color:var(--app-ink)}
.tb .pipe-n{font-family:var(--fa);font-size:11px;color:var(--app-ink3)}
.tb .pipe-card{background:var(--app-surface);border:1px solid var(--app-line);border-radius:8px;padding:9px 11px;font-family:var(--fa);font-size:12.5px;font-weight:500;color:var(--app-ink)}
@media(max-width:980px){.tb .d-pipe{grid-template-columns:repeat(2,minmax(0,1fr))}}
.tb .d-grouped{margin:6px 16px 16px}
.tb .d-chat{display:flex;flex-direction:column}
.tb .d-thread{padding:18px 16px;display:flex;flex-direction:column;gap:10px}
.tb .d-composer{display:flex;align-items:center;gap:10px;padding:13px 16px;border-top:1px solid var(--app-line);background:var(--app-bg)}
.tb .d-input{flex:1;font-family:var(--fa);font-size:13px;color:var(--app-ink3);background:var(--app-surface);border:1px solid var(--app-line);border-radius:9px;padding:9px 13px}
.tb .d-send{font-family:var(--fa);font-size:13px;font-weight:600;color:#fff;background:var(--info);border-radius:9px;padding:9px 18px;cursor:pointer}
.tb .d-pnl{padding:20px}
.tb .d-pnl-rows{max-width:520px}
.tb .d-pnl .pl-row{font-size:14px;padding:11px 0}
.tb .d-chart-lbl{font-family:var(--fa);font-size:12.5px;font-weight:600;color:var(--app-ink2);margin:24px 0 30px}
.tb .bars.big{height:130px;gap:14px;max-width:620px}
.tb .bars.big .bar{border-radius:6px 6px 0 0}
.tb .d-sched{padding:20px}
.tb .d-cal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.tb .d-month{font-family:var(--fa);font-size:16px;font-weight:600;color:var(--app-ink);letter-spacing:-.02em}
.tb .cal.big{gap:6px}
.tb .cal.big .cd{aspect-ratio:auto;height:74px;border-radius:9px;border:1px solid var(--app-line2);display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:7px 8px}
.tb .cal.big .cd.hd{height:auto;border:none;padding:0 8px 4px;color:var(--app-ink3);font-size:11px;font-weight:600;align-items:center;justify-content:center}
.tb .cal.big .cd .cd-n{font-family:var(--fa);font-size:13px;font-weight:600;color:var(--app-ink2)}
.tb .cal.big .cd.today{background:var(--info);border-color:var(--info)}
.tb .cal.big .cd.today .cd-n{color:#fff}
.tb .cal.big .cd.has{background:var(--app-bg)}
.tb .cal.big .cd .cd-ev{font-family:var(--fa);font-size:10.5px;font-weight:500;color:#946C00;background:var(--app-accent-soft);border-radius:5px;padding:2px 5px;margin-top:auto;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tb .cal.big .cd.today .cd-ev{background:rgba(255,255,255,.25);color:#fff}
.tb .card{background:var(--app-surface);border:1px solid var(--app-line);border-radius:12px;box-shadow:var(--shadow);display:flex;flex-direction:column;overflow:hidden}
.tb .card.enter{animation:slidein .44s cubic-bezier(.22,1,.36,1) both}
.tb .card.leaving{animation:slideout .26s cubic-bezier(.4,0,1,1) both}
@keyframes slidein{from{opacity:0;transform:translateY(18px)}
to{opacity:1;transform:translateY(0)}}
@keyframes slideout{from{opacity:1;transform:translateY(0)}
to{opacity:0;transform:translateY(10px)}}
.tb .card .ch{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 0;gap:10px}
.tb .card .ch .tt{font-family:var(--fa);font-weight:600;font-size:13.5px;letter-spacing:-.015em;color:var(--app-ink);white-space:nowrap}
.tb .card .ch .tag{flex-shrink:0;font-family:var(--fa);font-size:11px;font-weight:500;color:var(--app-ink3);background:var(--app-bg);padding:3px 9px;border-radius:20px;border:1px solid var(--app-line)}
.tb .card .bd{padding:14px 16px 16px;flex:1;display:flex;flex-direction:column}
.tb .statrow{grid-column:1/-1}
.tb .toast{position:absolute;right:20px;bottom:20px;display:flex;align-items:center;gap:10px;background:var(--app-ink);color:#fff;padding:11px 15px;border-radius:10px;box-shadow:var(--shadow-lg);font-family:var(--fa);font-size:13px;font-weight:500;z-index:30;animation:toastin .3s ease both}
.tb .toast .tk{width:18px;height:18px;border-radius:50%;background:var(--ok);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.tb .toast .tk svg{width:11px;height:11px}
.tb .toast.out{animation:toastout .3s ease both}
@keyframes toastin{from{opacity:0;transform:translateY(12px)}
to{opacity:1;transform:translateY(0)}}
@keyframes toastout{from{opacity:1;transform:translateY(0)}
to{opacity:0;transform:translateY(12px)}}
.tb .empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:90px 40px;border:1.5px dashed var(--app-line);border-radius:12px;background:var(--app-surface)}
.tb .empty .ic{width:46px;height:46px;border-radius:11px;background:var(--app-bg);border:1px solid var(--app-line);display:flex;align-items:center;justify-content:center;margin-bottom:16px}
.tb .empty .big{font-family:var(--fa);font-weight:700;font-size:18px;color:var(--app-ink);letter-spacing:-.01em}
.tb .empty .p{font-family:var(--fa);font-size:13.5px;color:var(--app-ink2);margin-top:6px}
.tb .statrow{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px}
.tb .stat{background:var(--app-surface);border:1px solid var(--app-line);border-radius:12px;box-shadow:var(--shadow);padding:16px 18px}
.tb .stat .l{font-family:var(--fa);font-size:12.5px;font-weight:500;color:var(--app-ink2)}
.tb .stat .v{font-family:var(--fa);font-weight:600;font-size:26px;letter-spacing:-.025em;color:var(--app-ink);margin-top:7px;line-height:1}
.tb .stat .tr{font-family:var(--fa);font-size:12px;font-weight:600;margin-top:8px;display:flex;align-items:center;gap:4px}
.tb .stat .tr.up{color:var(--ok)}
.tb .stat .tr.dn{color:var(--warn)}
.tb .stat .tr.flat{color:var(--app-ink3)}
.tb .mail{display:flex;gap:12px;padding:11px 0;border-bottom:1px solid var(--app-line2);align-items:center}
.tb .mail:last-child{border-bottom:none}
.tb .mail .av{width:34px;height:34px;border-radius:9px;flex-shrink:0;font-family:var(--fa);font-weight:700;font-size:12px;display:flex;align-items:center;justify-content:center;color:#fff}
.tb .mail .mc{flex:1;min-width:0}
.tb .mail .mc .fr{font-family:var(--fa);font-weight:600;font-size:13px;color:var(--app-ink);display:flex;align-items:center;gap:8px}
.tb .mail .mc .fr .snm{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.tb .mail .mc .fr .tm{font-weight:400;font-size:11px;color:var(--app-ink3);flex-shrink:0;margin-left:auto}
.tb .mail .mc .sj{font-family:var(--fa);font-size:12px;color:var(--app-ink2);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tb .mail.unread .mc .fr{font-weight:700}
.tb .mail.unread .mc .fr::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--info);margin-right:2px;vertical-align:middle}
.tb .mail .pill{flex-shrink:0;font-family:var(--fa);font-size:10px;font-weight:600;padding:3px 9px;border-radius:20px}
.tb .mail .pill.auto{background:var(--app-accent-soft);color:#946C00}
.tb .mail .pill.inbox{background:var(--app-bg);color:var(--app-ink3);border:1px solid var(--app-line)}
.tb .wa{display:flex;flex-direction:column;gap:9px;flex:1}
.tb .bub{max-width:82%;padding:9px 12px;font-family:var(--fa);font-size:12.5px;line-height:1.45;border-radius:13px}
.tb .bub.them{align-self:flex-start;background:var(--app-bg);color:var(--app-ink);border-bottom-left-radius:4px}
.tb .bub.us{align-self:flex-end;background:var(--info);color:#fff;border-bottom-right-radius:4px}
.tb .bub.bot{align-self:flex-start;background:var(--ok-soft);color:#0A5A33;border-bottom-left-radius:4px}
.tb .bub .who{font-family:var(--fa);font-size:10px;font-weight:600;opacity:.7;margin-bottom:3px}
.tb .pl-row{display:flex;justify-content:space-between;align-items:center;padding:9px 0;border-bottom:1px solid var(--app-line2);font-family:var(--fa);font-size:13px}
.tb .pl-row .lab{color:var(--app-ink2);font-weight:500}
.tb .pl-row .num{font-weight:600;color:var(--app-ink);font-variant-numeric:tabular-nums}
.tb .pl-row.tot{border-top:1.5px solid var(--app-line);border-bottom:none;margin-top:4px;padding-top:11px}
.tb .pl-row.tot .lab{font-weight:700;color:var(--app-ink)}
.tb .pl-row.tot .num{font-weight:700;font-size:16px;color:var(--ok)}
.tb .pl-row .num.neg{color:var(--app-ink2)}
.tb .bars{display:flex;align-items:flex-end;gap:10px;height:64px;margin-top:18px}
.tb .bars .bar{flex:1;background:var(--app-line);border-radius:5px 5px 0 0;position:relative;transition:height .3s}
.tb .bars .bar.hl{background:var(--app-accent)}
.tb .bars .bar .bl{position:absolute;bottom:-18px;left:0;right:0;text-align:center;font-family:var(--fa);font-size:10px;color:var(--app-ink3)}
.tb .claim{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--app-line2)}
.tb .claim:last-child{border-bottom:none}
.tb .claim .amt{font-family:var(--fa);font-weight:700;font-size:15px;color:var(--app-ink);width:62px;flex-shrink:0;font-variant-numeric:tabular-nums}
.tb .claim .ci{flex:1;min-width:0}
.tb .claim .ci .nm{font-family:var(--fa);font-weight:600;font-size:13px;color:var(--app-ink)}
.tb .claim .ci .dt{font-family:var(--fa);font-size:11px;color:var(--app-ink3);margin-top:1px}
.tb .claim .st{font-family:var(--fa);font-size:11px;font-weight:600;padding:4px 10px;border-radius:20px;flex-shrink:0}
.tb .claim .st.appr{background:var(--ok-soft);color:#0A5A33}
.tb .claim .st.pend{background:var(--app-accent-soft);color:#946C00}
.tb .invr{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--app-line2);font-size:13px}
.tb .invr:last-child{border-bottom:none}
.tb .invr .chk{width:18px;height:18px;border-radius:5px;border:1.5px solid var(--app-line);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.tb .invr .chk.on{background:var(--info);border-color:var(--info)}
.tb .invr .chk svg{width:11px;height:11px;display:none}
.tb .invr .chk.on svg{display:block}
.tb .invr .who{font-family:var(--fa);font-weight:600;color:var(--app-ink)}
.tb .invr .gp{font-family:var(--fa);font-size:11px;color:var(--app-ink3);margin-top:1px}
.tb .invr .am{font-family:var(--fa);font-weight:600;text-align:right;color:var(--app-ink);font-variant-numeric:tabular-nums}
.tb .grouped{margin-top:12px;padding:11px 14px;background:var(--app-bg);border-radius:9px;font-family:var(--fa);font-size:12.5px;display:flex;justify-content:space-between;align-items:center;color:var(--app-ink2);font-weight:500}
.tb .grouped b{font-family:var(--fa);font-weight:700;font-size:15px;color:var(--app-ink)}
.tb .cal{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin-top:2px}
.tb .cal .cd{aspect-ratio:1;border-radius:7px;display:flex;align-items:center;justify-content:center;font-family:var(--fa);font-size:12px;position:relative;color:var(--app-ink2);font-weight:500}
.tb .cal .cd.has{background:var(--app-bg);color:var(--app-ink);font-weight:600}
.tb .cal .cd.has::after{content:"";width:5px;height:5px;border-radius:50%;background:var(--app-accent);position:absolute;bottom:5px}
.tb .cal .cd.today{background:var(--info);color:#fff;font-weight:700}
.tb .cal .cd.hd{font-size:10px;color:var(--app-ink3);font-weight:600;aspect-ratio:auto;height:20px}
@media(prefers-reduced-motion:reduce){.tb .card.enter, .tb .card.leaving, .tb .toast{animation-duration:.01ms!important}}
/* app-window sizing — fit the viewport so the whole demo is visible without page-scroll */
.tb .app{height:clamp(430px,calc(100dvh - 244px),700px);min-height:0;font-family:var(--fa)}
/* tighten the demo section's vertical footprint so nav + heading + app fit one screen */
#try{padding-top:22px;padding-bottom:32px}
#try .mb-lg{margin-bottom:12px}
#try .text-headline-lg{font-size:26px;line-height:1.2}
#try .text-body-lg{font-size:14.5px;line-height:1.5;margin-top:6px}
/* neutralize homepage's global .t-chip (case-study chip) leaking into the app's status pills */
.tb .t-chip{font-family:var(--fa);border:none;letter-spacing:0;line-height:1.3;background:transparent;white-space:normal}
.tb .t-chip.ok{background:var(--ok-soft)}
.tb .t-chip.warn{background:var(--warn-soft)}

/* calendar: let the 7 columns shrink so Sat/Sun don't overflow the app window */
.tb .cal{grid-template-columns:repeat(7,minmax(0,1fr))}
.tb .cal .cd{min-width:0}
.tb .cal.big .cd .cd-ev{display:block;align-self:stretch;max-width:100%}

/* ── GUIDED PROGRESSION (add → land → why → next) ──────────── */
/* the view you land in slides up */
.tb .tb-viewin{animation:tbViewIn .4s cubic-bezier(.22,1,.36,1) both}
@keyframes tbViewIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

/* the one component that makes this feature a step up — ringed, and pulsed on arrival */
.tb .tb-spot{position:relative;border-radius:10px;box-shadow:0 0 0 2px var(--app-accent),0 0 0 6px rgba(232,180,0,.16)}
.tb .tb-spot.pulse{animation:tbSpot 1.5s ease 1}
@keyframes tbSpot{0%{box-shadow:0 0 0 2px var(--app-accent),0 0 0 0 rgba(232,180,0,.55)}55%{box-shadow:0 0 0 2px var(--app-accent),0 0 0 12px rgba(232,180,0,0)}100%{box-shadow:0 0 0 2px var(--app-accent),0 0 0 6px rgba(232,180,0,.16)}}

/* coach: a plain line about the highlighted part, then conversational "make it better" prompts */
.tb-coach{margin-top:16px}
.tb-coach-point{font-family:var(--fa);font-size:13.5px;line-height:1.5;color:#5b4708;background:var(--app-accent-soft);border:1px solid #f0d98a;border-radius:11px;padding:12px 15px}
.tb-coach-block{margin-top:14px;border-top:1px dashed var(--app-line);padding-top:14px}
.tb-coach-k{font-family:var(--fa);font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--app-ink3)}
.tb-coach-alt{font-family:var(--fa);font-size:11.5px;color:var(--app-ink3);margin-top:11px;line-height:1.45}
.tb-coach-alt b{color:var(--app-ink2);font-weight:600}
.tb-next-list{display:flex;flex-direction:column;gap:8px;margin-top:9px}
/* each card: a plain question (primary) → the feature it adds (action) */
.tb-next-card{display:flex;flex-direction:column;gap:5px;text-align:left;width:100%;background:var(--app-surface);border:1px solid var(--app-line);border-radius:10px;padding:12px 14px;cursor:pointer;transition:border-color .15s,background .15s,transform .12s}
.tb-next-card:hover{border-color:var(--app-ink);transform:translateY(-1px)}
.tb-next-q{font-family:var(--fa);font-weight:600;font-size:13.5px;color:var(--app-ink);line-height:1.4}
.tb-next-do{display:flex;align-items:center;gap:6px;font-family:var(--fa);font-weight:600;font-size:12.5px;color:var(--info)}
.tb-next-ic{width:14px;height:14px;flex-shrink:0}
.tb-next-done{font-family:var(--fa);font-size:13px;color:var(--app-ink2);margin-top:8px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.tb-next-btn{font-family:var(--fa);font-size:13px;font-weight:600;color:#fff;background:var(--app-ink);border:1px solid var(--app-ink);border-radius:9px;padding:9px 15px;cursor:pointer;transition:opacity .15s}
.tb-next-btn:hover{opacity:.85}
.tb-next-btn.ghost{background:transparent;color:var(--app-ink2);border-color:var(--app-line)}

/* trailing value cell in list rows (customers, etc.) */
.tb .tb-amt{font-family:var(--fa);font-weight:700;font-size:14px;color:var(--app-ink);flex-shrink:0;margin-left:auto;font-variant-numeric:tabular-nums}

/* gated chips */
.tb-chip .tb-chip-nm{flex:0 1 auto}
.tb-chip .lockmsg{margin-left:auto;font-family:var(--mono,monospace);font-size:10px;color:var(--dim);text-align:right;letter-spacing:.02em}
.tb-chip.locked{opacity:.55;cursor:not-allowed}
.tb-chip.locked:hover{transform:none;border-color:var(--muted)}
.tb-chip.locked .dot{border-style:dashed;background:transparent!important}
.tb-chip.shake{animation:tbShake .32s}
@keyframes tbShake{0%,100%{transform:translateX(0)}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}

@media(prefers-reduced-motion:reduce){.tb .tb-viewin,.tb .tb-spot.pulse,.tb-chip.shake{animation:none}}

/* ── RESPONSIVE ───────────────────────────────────────────── */
/* tablet/phone: stack, swap the chip rail for a sticky "Add a feature" menu */
@media(max-width:900px){
  /* stack; the whole demo pins just below the fixed nav, freezing for ~half a
     screen of scroll (the .tb-spacer) before the page continues — both ways */
  .tb{grid-template-columns:1fr;gap:14px}
  .tb-stage{position:sticky;top:60px}
  .tb-spacer{height:52vh}
  /* controls = relative anchor for the dropdown (the whole .tb is what pins now) */
  .tb-controls{position:relative;z-index:30;background:var(--bg);padding:6px 0;display:block}
  .tb-menu-btn{display:flex}
  .tb-lbl,.tb-help{display:none}
  /* the chip list becomes a dropdown panel anchored under the button */
  .tb-chips{position:absolute;left:0;right:0;top:calc(100% - 2px);display:none;flex-direction:column;gap:6px;
    background:var(--bg);border:1px solid var(--muted);border-radius:14px;padding:10px;max-height:58vh;overflow-y:auto;
    box-shadow:0 20px 50px rgba(0,0,0,.5)}
  [data-theme="light"] .tb-chips{box-shadow:0 20px 50px rgba(0,0,0,.18)}
  .tb-controls.menu-open .tb-chips{display:flex}
  .tb-chip{flex:0 0 auto;min-width:0;padding:11px 14px;border-radius:9px}
  .tb-chip:hover{transform:none}
  /* size the app so the whole pinned demo (bar + app + hint) fits one screen */
  .tb .app{height:430px}
  .tb-swipe{display:flex}
}
@supports (height:100dvh){
  @media(max-width:900px){
    .tb .app{height:clamp(330px,calc(100dvh - 250px),520px)}
    .tb-spacer{height:52dvh}
  }
}
/* small tablet / large phone: hide the in-app sidebar, navigate via tiles + back */
@media(max-width:860px){
  .tb .side{display:none}
  .tb .statrow{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tb .grid{grid-template-columns:minmax(0,1fr)}
  .tb .tiles{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
}
/* phone */
@media(max-width:560px){
  .tb-chips{flex-direction:column}
  .tb-chip{flex:1 1 auto;min-width:0}
  .tb .canvas{padding:0 16px 18px}
  .tb .canvas-top{padding:14px 0 11px}
  .tb .titlebar{padding:11px 12px;gap:8px}
  .tb .tb-addr span{font-size:11px;padding:5px 10px}
  .tb .tb-live{display:none}                    /* free space so the address bar + buttons fit */
  .tb .tb-tourbtn,.tb .tb-explore{font-size:11.5px;padding:6px 11px}
  .tb .canvas-top .who{display:none}            /* free up width on narrow screens */
  .tb .canvas-top .ttl{font-size:18px}
  /* 2×2 dashboard on mobile so more modules are visible at a glance */
  .tb .tiles{grid-template-columns:repeat(2,1fr);gap:10px}
  .tb .tile{padding:13px 13px 12px;gap:8px}
  .tb .tile-stat .t-big{font-size:21px}
  .tb .tile-stat .t-unit{font-size:11px}
  .tb .tile-t{font-size:12.5px}
  .tb .tile-foot{min-height:0}
  .tb .tile-foot .t-note,.tb .tile-foot .t-chip,.tb .tile-foot .t-sub{font-size:10px}
  .tb .d-pipe{grid-template-columns:minmax(0,1fr)}
  .tb .cal.big .cd{height:58px;padding:5px 5px}
  .tb .cal.big .cd .cd-ev{font-size:9px;padding:1px 4px}
  .tb .bars.big{height:104px}
  .tb .d-toolbar{flex-wrap:wrap;row-gap:8px}   /* segments + meta wrap instead of clipping */
}

/* ============================================================
   LIVE DEMO — Cmd Bakery: explore + guided tour
   ============================================================ */
/* control rail removed → the demo window spans the full width */
.tb{grid-template-columns:minmax(0,1fr);gap:0}

/* reset link in the browser bar */
.tb .tb-reset{flex-shrink:0;font-family:var(--fa);font-size:15px;line-height:1;font-weight:600;color:var(--app-ink3);background:transparent;border:1px solid var(--app-line);border-radius:7px;padding:6px 9px;cursor:pointer;transition:color .12s,border-color .12s,background .12s}
.tb .tb-reset:hover{color:var(--app-ink);border-color:var(--app-ink3);background:var(--app-bg)}

/* coloured avatars (customers, inbox) */
.tb .av-c{width:34px;height:34px;border-radius:9px;flex-shrink:0;color:#fff;font-family:var(--fa);font-weight:700;font-size:12px;display:flex;align-items:center;justify-content:center}
.tb .av-c.sm{width:30px;height:30px;border-radius:8px;font-size:11px}

/* neutral status chip */
.tb .t-chip.neut{background:var(--app-bg);color:var(--app-ink3);border:1px solid var(--app-line)}

/* inventory: fixed columns so quantity + action line up down the whole list */
.tb .inv-stock .claim.wide{display:grid;grid-template-columns:1fr 70px 128px;align-items:center;gap:12px}
.tb .inv-stock .st-qty{margin:0;justify-self:end}
.tb .inv-stock .c-btn,.tb .inv-stock .st.appr{justify-self:end}

/* orders: same treatment as inventory — order#, name, then a status pill chip
   lined up in its own column */
.tb .ord-list .claim.wide{display:grid;grid-template-columns:auto 1fr 104px;align-items:center;gap:12px}
.tb .ord-list .pill{justify-self:end;font-family:var(--fa);font-size:11px;font-weight:600;padding:4px 12px;border-radius:20px;white-space:nowrap}
.tb .ord-list .pill.inbox{background:var(--app-accent-soft);color:#004ac6}   /* To fulfil */
.tb .ord-list .pill.auto{background:var(--ok-soft);color:#0A5A33}            /* Fulfilled */

/* ---- Marketing: WhatsApp automation templates ---- */
.tb .mk-list{padding:8px 16px;display:flex;flex-direction:column;gap:12px}
.tb .mk-item{border:1px solid var(--app-line);border-radius:12px;padding:13px 14px;background:var(--app-surface)}
.tb .mk-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tb .mk-name{font-family:var(--fa);font-weight:700;font-size:14px;color:var(--app-ink);margin-right:auto}
.tb .mk-tag{font-family:var(--fa);font-size:10px;font-weight:700;letter-spacing:.02em;padding:3px 8px;border-radius:20px}
.tb .mk-tag.mkt{background:#eef0ff;color:#004ac6}
.tb .mk-tag.utl{background:#f2f3ff;color:#434655;border:1px solid var(--app-line)}
.tb .mk-tag.ok{background:var(--ok-soft);color:#0A5A33}
.tb .mk-trigger{font-family:var(--fa);font-size:11.5px;color:var(--app-ink3);margin-top:9px;display:flex;align-items:center;gap:6px}
.tb .mk-trigger b{color:var(--app-ink2);font-weight:600}
.tb .mk-bolt{font-size:12px}
.tb .mk-prev{margin-top:10px;background:#e7f7ec;border:1px solid #cdead6;border-radius:12px;border-top-left-radius:4px;padding:9px 12px}
.tb .mk-ph{font-family:var(--fa);font-size:9.5px;font-weight:700;color:#0A5A33;opacity:.8;margin-bottom:4px}
.tb .mk-body{font-family:var(--fa);font-size:12.5px;line-height:1.5;color:#0f2a1c}
.tb .mk-body b{font-weight:700}
.tb .mk-var{background:#fff3c4;color:#7a5a00;font-weight:600;border-radius:4px;padding:0 4px;font-size:11.5px}
.tb .mk-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}
.tb .mk-foot > span:first-child{font-family:var(--fa);font-size:11.5px;font-weight:600;color:var(--app-ink2)}
.tb .mk-badge{font-family:var(--fa);font-size:10px;font-weight:700;padding:3px 9px;border-radius:20px;display:inline-flex;align-items:center;gap:5px}
.tb .mk-badge::before{content:'';width:6px;height:6px;border-radius:50%}
.tb .mk-badge.on{background:var(--ok-soft);color:#0A5A33}
.tb .mk-badge.on::before{background:#12a150}
.tb .mk-badge.sched{background:var(--app-accent-soft);color:#004ac6}
.tb .mk-badge.sched::before{background:#004ac6}

/* invoicing rows */
.tb .inv-list .invr{display:flex;align-items:center;gap:14px;grid-template-columns:none}
.tb .inv-list .invr .ii{flex:1;min-width:0}
.tb .inv-list .invr .ii .who{font-family:var(--fa);font-weight:600;font-size:13px;color:var(--app-ink)}
.tb .inv-list .invr .ii .gp{font-family:var(--fa);font-size:11px;color:var(--app-ink3);margin-top:1px}
.tb .inv-list .invr .am{font-family:var(--fa);font-weight:700;color:var(--app-ink);font-variant-numeric:tabular-nums;min-width:64px;text-align:right}
/* fixed-width status chip so the $ column lines up regardless of label length */
.tb .inv-list .invr .t-chip{width:76px;text-align:center;flex-shrink:0}
.tb .inv-status{transition:background .2s}

/* inventory low-stock rows */
.tb .claim.low-row{position:relative}
.tb .claim.low-row .nm{color:#9A2A1E}

/* bookings — week strip */
.tb .week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin-top:6px}
.tb .wk-col{background:var(--app-bg);border:1px solid var(--app-line);border-radius:10px;min-height:130px;padding:8px 7px;display:flex;flex-direction:column;gap:6px}
.tb .wk-h{font-family:var(--fa);font-size:11px;font-weight:600;color:var(--app-ink3);text-align:center}
.tb .wk-ev{background:var(--app-surface);border:1px solid var(--app-line);border-left:3px solid var(--info);border-radius:7px;padding:6px 7px;font-family:var(--fa)}
.tb .wk-ev b{display:block;font-size:11px;color:var(--app-ink);line-height:1.25}
.tb .wk-ev span{font-size:10px;color:var(--app-ink3)}
.tb .wk-ev.hot{border-left-color:var(--app-accent);background:var(--app-accent-soft)}
.tb .wk-empty{flex:1}

/* inbox — conversation list + active thread */
.tb .inbox-wrap{display:grid;grid-template-columns:230px minmax(0,1fr);border:1px solid var(--app-line);border-radius:12px;overflow:hidden;background:var(--app-surface);box-shadow:var(--shadow)}
.tb .thread-list{border-right:1px solid var(--app-line);background:var(--app-bg)}
.tb .th{display:flex;gap:10px;align-items:center;padding:12px 13px;border-bottom:1px solid var(--app-line2)}
.tb .th.active{background:var(--app-surface)}
.tb .th-c{flex:1;min-width:0}
.tb .th-t{display:flex;justify-content:space-between;gap:8px;font-family:var(--fa);font-weight:600;font-size:12.5px;color:var(--app-ink)}
.tb .th-tm{font-weight:400;font-size:10.5px;color:var(--app-ink3);flex-shrink:0}
.tb .th-p{font-family:var(--fa);font-size:11.5px;color:var(--app-ink2);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tb .th.active .th-t{font-weight:700}
.tb .thread-main{display:flex;flex-direction:column;min-width:0}
.tb .wa-head{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid var(--app-line);background:var(--app-surface)}
.tb .wa-nm{font-family:var(--fa);font-weight:700;font-size:13px;color:var(--app-ink)}
.tb .wa-st{font-family:var(--fa);font-size:11px;color:var(--app-ink3);display:flex;align-items:center;gap:5px}
.tb .wa-st .live-d{width:6px;height:6px;border-radius:50%;background:var(--ok)}
.tb .thread-main .wa{padding:16px 14px;gap:10px;background:var(--app-bg)}
.tb .bub .who{display:flex;align-items:center;gap:5px}

/* suggested-action chip in the chat */
.tb .sugg{align-self:flex-start;max-width:94%;display:flex;align-items:center;gap:11px;background:var(--app-accent-soft);border:1px solid #f0d98a;border-radius:12px;padding:10px 13px}
.tb .sugg-ic{width:30px;height:30px;border-radius:8px;background:#fff;border:1px solid #f0d98a;display:flex;align-items:center;justify-content:center;color:#946C00;flex-shrink:0}
.tb .sugg-ic .ic{width:16px;height:16px}
.tb .sugg-t{font-family:var(--fa);font-weight:700;font-size:12.5px;color:#5b4708}
.tb .sugg-d{font-family:var(--fa);font-size:11px;color:#7a6412;margin-top:1px}
.tb .sugg-go{margin-left:auto;font-family:var(--fa);font-weight:700;font-size:11.5px;color:#946C00;flex-shrink:0}

/* quote card in the chat */
.tb .qcard{align-self:flex-end;max-width:90%;background:var(--app-surface);border:1px solid var(--app-line);border-radius:12px;padding:12px 13px;box-shadow:var(--shadow)}
.tb .qc-h{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}
.tb .qc-ttl{font-family:var(--fa);font-weight:700;font-size:12.5px;color:var(--app-ink)}
.tb .qc-rows{display:flex;justify-content:space-between;gap:10px;align-items:baseline;font-family:var(--fa);font-size:12.5px;color:var(--app-ink2)}
.tb .qc-rows b{color:var(--app-ink);font-size:16px}
.tb .qc-sub{font-family:var(--fa);font-size:11px;color:var(--app-ink3);margin-top:4px}

/* quotation page (tour only) */
.tb .quote-page{padding:0}
.tb .qp-h{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--app-line);font-family:var(--fa);font-weight:700;font-size:14px;color:var(--app-ink)}
.tb .qp-form{padding:16px;display:flex;flex-direction:column;gap:13px;max-width:460px}
.tb .qp-form label{font-family:var(--fa);font-size:11.5px;font-weight:600;color:var(--app-ink3);display:flex;flex-direction:column;gap:5px}
.tb .qp-in{font-family:var(--fa);font-size:13.5px;font-weight:500;color:var(--app-ink);background:var(--app-bg);border:1px solid var(--app-line);border-radius:9px;padding:10px 12px}
.tb .qp-two{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.tb .qp-price{font-weight:700;font-size:16px}
.tb .qp-foot{display:flex;justify-content:flex-end;gap:10px;padding:14px 16px;border-top:1px solid var(--app-line)}
.tb .wa-send{display:inline-flex;align-items:center;gap:7px}

/* ── tour overlay ─────────────────────────────────────────── */
.tb .tour-layer{position:absolute;inset:0;z-index:40;pointer-events:none}
.tb .tour-dim{position:absolute;border-radius:12px;box-shadow:0 0 0 9999px rgba(17,20,28,.55);outline:2px solid rgba(255,255,255,.85);transition:top .3s cubic-bezier(.22,1,.36,1),left .3s cubic-bezier(.22,1,.36,1),width .3s cubic-bezier(.22,1,.36,1),height .3s cubic-bezier(.22,1,.36,1)}
/* bright ring AROUND the element — outline isn't clipped by ancestor overflow, so it wraps all sides */
/* inset outline (offset is negative) so the ring hugs the component on ALL
   four sides and is never clipped by an ancestor's overflow:hidden — even when
   the element sits flush against the app / inbox-card edge */
.tb .tour-ring{position:relative;z-index:3;border-radius:10px;outline:3px solid #1a73e8;outline-offset:-3px;animation:ringPulse 1.3s ease-in-out infinite}
/* list rows (orders / invoicing / inventory) sit inside a padded card, so a
   plain ring floats inside it. Bleed the highlighted row out to the card's
   inner edge so the ring reads as a full-width bordered box — same vibe across
   all three. */
.tb .d-list > .tour-ring{margin-inline:-14px;padding-inline:14px!important;border-radius:12px;outline-offset:-3px}
/* brief flash on the stock count when fondant drops — no persistent box */
.tb .qty-flash{animation:qtyFlash 1s ease}
@keyframes qtyFlash{0%{transform:scale(1)}30%{transform:scale(1.16)}100%{transform:scale(1)}}
@keyframes ringPulse{0%,100%{outline-color:#1a73e8}50%{outline-color:rgba(26,115,232,.28)}}
.tb .spot-pulse{animation:spotPulse 1.5s ease 1}
@keyframes spotPulse{0%{box-shadow:0 0 0 2px var(--app-accent),0 0 0 0 rgba(232,180,0,.5)}60%{box-shadow:0 0 0 2px var(--app-accent),0 0 0 12px rgba(232,180,0,0)}100%{box-shadow:0 0 0 2px var(--app-accent),0 0 0 6px rgba(232,180,0,.22)}}

/* tour popup */
.tb .tour-pop{position:absolute;pointer-events:auto;width:300px;max-width:calc(100% - 24px);background:var(--app-surface);border:1px solid var(--app-line);border-radius:14px;box-shadow:0 18px 44px -12px rgba(16,24,40,.42);padding:15px 16px;z-index:42;animation:popIn .25s ease both}
@keyframes popIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.tb .tp-count{font-family:var(--fa);font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#946C00}
.tb .tp-text{font-family:var(--fa);font-size:13.5px;line-height:1.5;color:var(--app-ink);margin-top:6px}
.tb .tp-btns{display:flex;justify-content:space-between;align-items:center;margin-top:14px;gap:10px}
.tb .tp-exit{font-family:var(--fa);font-size:12.5px;font-weight:600;color:var(--app-ink3);background:transparent;border:none;cursor:pointer;padding:6px 4px}
.tb .tp-exit:hover{color:var(--app-ink)}
.tb .tp-next{font-family:var(--fa);font-size:13px;font-weight:700;color:#fff;background:var(--app-ink);border:none;border-radius:9px;padding:9px 16px;cursor:pointer;transition:opacity .15s}
.tb .tp-next:hover{opacity:.85}
.tb .tour-pop.sheet{left:10px!important;right:10px!important;top:auto!important;bottom:10px;width:auto;max-width:none}

/* floating pill */
.tb .tour-pill{position:absolute;right:16px;bottom:16px;z-index:46;font-family:var(--fa);font-size:12.5px;font-weight:700;color:#fff;background:var(--app-ink);border:none;border-radius:100px;padding:10px 16px;cursor:pointer;box-shadow:0 8px 20px -6px rgba(16,24,40,.45);transition:transform .15s,opacity .15s}
.tb .tour-pill:hover{transform:translateY(-2px)}
.tb .tour-pill.exit{background:var(--app-surface);color:var(--app-ink2);border:1px solid var(--app-line)}

/* invitation modal */
.tb .tour-modal{position:absolute;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(17,20,28,.42);animation:popIn .2s ease both}
.tb .tour-modal.out{animation:fadeOut .2s ease both}
@keyframes fadeOut{to{opacity:0}}
.tb .tm-card{background:var(--app-surface);border-radius:16px;box-shadow:0 24px 60px -16px rgba(16,24,40,.5);padding:22px 22px 18px;max-width:340px;text-align:center}
.tb .tm-t{font-family:var(--fa);font-weight:700;font-size:18px;color:var(--app-ink);letter-spacing:-.01em}
.tb .tm-b{font-family:var(--fa);font-size:13.5px;line-height:1.5;color:var(--app-ink2);margin-top:8px}
.tb .tm-btns{display:flex;gap:10px;margin-top:18px;justify-content:center;flex-wrap:wrap}
.tb .tm-primary{font-family:var(--fa);font-size:13px;font-weight:700;color:#fff;background:var(--app-ink);border:none;border-radius:10px;padding:11px 18px;cursor:pointer}
.tb .tm-ghost{font-family:var(--fa);font-size:13px;font-weight:600;color:var(--app-ink2);background:transparent;border:1px solid var(--app-line);border-radius:10px;padding:11px 16px;cursor:pointer}
.tb .tm-primary:hover{opacity:.9}
.tb .tm-ghost:hover{background:var(--app-bg)}

/* mobile: stack inbox to just the active thread; week strip scrolls */
@media(max-width:700px){
  .tb .inbox-wrap{grid-template-columns:1fr}
  /* No conversation open (exploring): the list of existing (read) messages IS the
     view — full height, like a real mobile inbox. */
  .tb .inbox-wrap:not(.chat-open) .thread-main{display:none}
  .tb .inbox-wrap:not(.chat-open) .thread-list{display:block;border-right:none}
  /* A conversation is open (e.g. the tour): show the chat full, list hidden. */
  .tb .inbox-wrap.chat-open .thread-list{display:none}
  .tb .week{overflow-x:auto;grid-auto-flow:column;grid-auto-columns:112px;grid-template-columns:none}
}
@media(prefers-reduced-motion:reduce){
  .tb .tour-ring,.tb .spot-pulse,.tb .tour-pop,.tb .tour-modal,.tb .tour-dim{animation:none;transition:none}
}

/* ============================================================
   LIVE DEMO — cinematic tour refinements
   ============================================================ */
/* bigger, counter-free popup */
.tb .tp-count{display:none}
.tb .tour-pop{width:340px;padding:18px 20px;border-radius:16px}
.tb .tp-text{font-size:15.5px;line-height:1.55}
.tb .tp-btns{margin-top:16px}
.tb .tp-next{font-size:14px;padding:10px 18px}
.tb .tp-exit{font-size:13px}

/* inbox: 3 columns once the customer panel is in */
.tb .inbox-wrap.with-cust{grid-template-columns:168px minmax(0,1fr) 208px}
.tb .unread-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--info);vertical-align:middle;margin-left:3px}

/* the incoming-notification ring — deliberately obvious */
.tb .th.notif-ring{position:relative;z-index:1;border-radius:10px;animation:notifRing 1.1s ease infinite}
@keyframes notifRing{
  0%{box-shadow:0 0 0 0 rgba(26,115,232,.55);background:var(--app-accent-soft)}
  70%{box-shadow:0 0 0 11px rgba(26,115,232,0);background:var(--app-accent-soft)}
  100%{box-shadow:0 0 0 0 rgba(26,115,232,0);background:var(--app-accent-soft)}}

/* elements that appear mid-beat slide in */
.tb .just-in{animation:beatIn .5s cubic-bezier(.22,1,.36,1) both}
@keyframes beatIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.tb .cust-panel.just-in{animation:panelIn .5s cubic-bezier(.22,1,.36,1) both}
@keyframes panelIn{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:none}}

/* awaiting / empty thread states */
.tb .wa-empty-state{display:flex;align-items:center;justify-content:center;min-height:240px;color:var(--app-ink3);font-family:var(--fa);font-size:13px}
.tb .wa-typing{align-self:flex-start;background:var(--app-bg);border:1px solid var(--app-line);border-radius:13px;border-bottom-left-radius:4px;padding:10px 14px;color:var(--app-ink3);letter-spacing:2px;font-size:15px}

/* AI-draft reply bubble */
.tb .bub.bot .who{color:#0A5A33;opacity:.9;font-weight:700}
.tb .ai-tag{display:block;margin-top:6px;font-family:var(--fa);font-size:9.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#0A5A33;opacity:.7}

/* customer info panel */
.tb .cust-panel{background:var(--app-surface);border-left:1px solid var(--app-line);padding:14px;display:flex;flex-direction:column;gap:11px;overflow-y:auto}
.tb .cp-head{display:flex;align-items:center;gap:10px;padding-bottom:11px;border-bottom:1px solid var(--app-line2)}
.tb .cp-nm{font-family:var(--fa);font-weight:700;font-size:13.5px;color:var(--app-ink)}
.tb .cp-head .t-chip{margin-top:4px}
.tb .cp-row{display:flex;flex-direction:column;gap:2px}
.tb .cp-k{font-family:var(--fa);font-size:9.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--app-ink3)}
.tb .cp-v{font-family:var(--fa);font-size:12.5px;color:var(--app-ink);font-weight:500}
/* neat little labels/chips inside the customer profile (orders + previous orders) */
.tb .cp-inline{display:flex;align-items:center;gap:8px}
.tb .cp-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:1px}
.tb .cp-tag{display:inline-flex;align-items:center;background:var(--app-bg);border:1px solid var(--app-line);
  border-radius:20px;padding:3px 10px;font-family:var(--fa);font-size:11px;font-weight:600;color:var(--app-ink2);white-space:nowrap}

/* the "Customer profile" caption only exists to disambiguate the mobile
   overlay — on desktop the panel is an obvious side column, so hide it */
.tb .cp-caption{display:none}

/* mobile: the profile is a transient overlay that peeks in from the RIGHT
   over the thread, then slides back out before the conversation continues */
@media(max-width:700px){
  /* fill the tall empty space: give the inbox a firm height so the WhatsApp
     thread (and the full-height profile overlay) fill the viewport, not just
     shrink to the first message */
  .tb .inbox-wrap{position:relative;height:calc(100dvh - 260px);max-height:none}
  .tb .inbox-wrap.with-cust{grid-template-columns:1fr}
  .tb .cust-panel{
    position:absolute;top:0;right:0;bottom:0;width:86%;max-width:320px;
    border-left:1px solid var(--app-line);border-top:none;
    box-shadow:-16px 0 44px -18px rgba(16,24,40,.5);
    z-index:6;transform:translateX(102%);opacity:0;pointer-events:none;
    transition:transform .44s cubic-bezier(.22,1,.36,1),opacity .3s ease}
  .tb .cust-panel.just-in{animation:none!important} /* the transition drives the motion, not the appear-keyframe */
  .tb .cust-panel.peek-in{transform:translateX(0);opacity:1;pointer-events:auto}
  .tb .cp-caption{display:block;font-family:var(--fa);font-size:10px;font-weight:700;
    letter-spacing:.06em;text-transform:uppercase;color:var(--app-ink3);padding-bottom:4px}
}
@media(prefers-reduced-motion:reduce){
  .tb .th.notif-ring,.tb .just-in,.tb .cust-panel.just-in{animation:none}
}

/* ============================================================
   LIVE DEMO — animated cursor + dashboard notif tile
   ============================================================ */
/* fake cursor that glides to the sidebar and "clicks" */
.tb .tour-cursor{position:absolute;z-index:45;width:24px;height:24px;pointer-events:none;
  transition:left .7s cubic-bezier(.45,0,.15,1),top .7s cubic-bezier(.45,0,.15,1),opacity .3s ease;transform:translate(-4px,-2px)}
.tb .tour-cursor svg{width:100%;height:100%;filter:drop-shadow(0 3px 5px rgba(16,24,40,.35))}
.tb .tour-cursor.fade{opacity:0}
.tb .tour-cursor.click::after{content:"";position:absolute;left:5px;top:4px;width:26px;height:26px;border-radius:50%;
  background:rgba(26,115,232,.35);transform:translate(-50%,-50%) scale(0);animation:cursorClick .4s ease}
@keyframes cursorClick{from{transform:translate(-50%,-50%) scale(.2);opacity:.85}to{transform:translate(-50%,-50%) scale(1.7);opacity:0}}
/* sidebar item pressed by the cursor */
.tb .nav-i.nav-press{background:var(--app-accent-soft);transform:scale(.98);transition:background .12s,transform .12s}

/* dashboard Inbox tile catching a new message */
.tb .tile.notif-tile{animation:notifTile 1.3s ease 1}
@keyframes notifTile{
  0%{box-shadow:var(--shadow)}
  25%{box-shadow:0 0 0 2px var(--info),0 0 0 8px rgba(26,115,232,.28)}
  100%{box-shadow:var(--shadow)}}

/* smoother, gentler slide-ins for the story pieces */
.tb .just-in{animation:beatIn .55s cubic-bezier(.22,1,.36,1) both}
.tb .cust-panel.just-in{animation:panelIn .55s cubic-bezier(.22,1,.36,1) both}

/* the whole detail view eases in on navigation (less jarring swaps) */
.tb .detail.tb-viewin,.tb .inbox-wrap{animation:beatIn .4s cubic-bezier(.22,1,.36,1) both}
@media(prefers-reduced-motion:reduce){
  .tb .tour-cursor{transition:none}.tb .tile.notif-tile,.tb .detail.tb-viewin,.tb .inbox-wrap{animation:none}
}

/* ============================================================
   LIVE DEMO — tour takes over the viewport (locked) + clearer popup
   ============================================================ */
body.tour-lock{overflow:hidden}
.tour-backdrop{position:fixed;inset:0;background:rgba(17,20,28,.6);z-index:9000;animation:tbFade .25s ease both}
@keyframes tbFade{from{opacity:0}to{opacity:1}}
/* the demo lifts out and fills the viewport during the tour */
.tb .app.app-fill{position:fixed;top:22px;bottom:22px;left:50%;transform:translateX(-50%);
  width:min(1120px,calc(100vw - 44px));height:auto!important;z-index:9001;
  box-shadow:0 40px 100px -24px rgba(0,0,0,.55);animation:appFill .32s cubic-bezier(.22,1,.36,1) both}
@keyframes appFill{from{opacity:.5;transform:translateX(-50%) scale(.965)}to{opacity:1;transform:translateX(-50%) scale(1)}}

/* clearer, more obvious tour popup */
.tb .tour-pop{border:1.5px solid #c4ccd8;border-top:3px solid var(--info);
  box-shadow:0 20px 54px -12px rgba(16,24,40,.5),0 0 0 4px rgba(26,115,232,.08)}

/* ============================================================
   LIVE DEMO — app-icon launcher (opens the pop-up)
   ============================================================ */
.tb-launcher{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;text-align:center;
  min-height:clamp(240px,40vh,360px);background:transparent;border:none;box-shadow:none}
.tb-launcher[hidden]{display:none}
.launch-icon{display:flex;flex-direction:column;align-items:center;gap:9px;background:none;border:none;cursor:pointer;padding:0}
/* real iOS-style app icon: full-bleed rich gradient, big glyph, squircle
   (~22% radius), soft colour-matched drop shadow + subtle top highlight — no border */
.li-tile{width:114px;height:114px;border-radius:26px;display:flex;align-items:center;justify-content:center;font-size:62px;line-height:1;
  background:linear-gradient(155deg,#ffd7a6 0%,#ff9ec2 58%,#f676a6 100%);border:none;
  box-shadow:0 16px 30px -10px rgba(214,92,132,.55),0 3px 8px -2px rgba(214,92,132,.35),inset 0 1.5px 1px rgba(255,255,255,.55);
  transition:transform .18s ease,box-shadow .18s ease}
.launch-icon:hover .li-tile{transform:translateY(-4px) scale(1.02);box-shadow:0 26px 46px -12px rgba(214,92,132,.55),inset 0 1.5px 1px rgba(255,255,255,.55)}
.launch-icon:active .li-tile{transform:translateY(-1px) scale(.99)}
.li-name{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Helvetica Neue",sans-serif;font-weight:590;font-size:15px;letter-spacing:-.01em;color:var(--app-ink)}
.li-hint{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Helvetica Neue",sans-serif;font-size:13px;color:var(--app-ink2);margin-top:2px}
/* the choice modal sits over the launcher */
.tb .launch-modal{border-radius:16px;background:transparent}   /* no grey dim behind the "Want a quick tour?" card — just the popup */

/* pop-up fill on mobile too (the app is now always a pop-up) */
@media(max-width:900px){
  .tb-stage{position:static}
  .tb-spacer{height:0}
  .tb .app.app-fill{left:8px;right:8px;top:8px;bottom:8px;width:auto;transform:none;animation:none}
}

/* ============================================================
   LIVE DEMO — top-right tour button + light-yellow popup
   ============================================================ */
.tb .tb-tourbtn{flex-shrink:0;font-family:var(--fa);font-size:12px;font-weight:700;color:#fff;background:var(--app-ink);border:1px solid var(--app-ink);border-radius:8px;padding:6px 13px;cursor:pointer;transition:opacity .15s,background .15s}
.tb .tb-tourbtn:hover{opacity:.88}
.tb .tb-tourbtn.exit{background:var(--app-surface);color:var(--app-ink2);border:1px solid var(--app-line)}
.tb .tb-tourbtn.exit:hover{background:var(--app-bg);color:var(--app-ink)}

/* popup: a solid brand-blue readable card (matches the primary button) */
.tb .tour-pop{background:#004ac6;border:1px solid #004ac6;color:#fff;
  box-shadow:0 16px 40px -14px rgba(0,74,198,.5)}
.tb .tp-text{color:#fff}
.tb .tp-count{color:rgba(255,255,255,.75)}
.tb .tp-btns{justify-content:flex-end}
.tb .tp-next{background:#fff;color:#004ac6;border:none}
.tb .tp-next:hover{opacity:.88}

/* ============================================================
   LIVE DEMO — real avatars, AI reply on the right, matched buttons
   ============================================================ */
/* cartoon/photo avatars fill the avatar square */
.tb .av-img{object-fit:cover;background:#e9edf5;border:1px solid var(--app-line);padding:0}
.tb .canvas-top .who .pic.pic-img{object-fit:cover;background:#e9edf5;border:1px solid var(--app-line)}

/* the AI-draft reply is OUR outgoing message → sits on the right */
.tb .bub.bot{align-self:flex-end;border-bottom-left-radius:13px;border-bottom-right-radius:4px}

/* Exit tour + Reset: same clear, clickable colour (Reset was too faint) */
.tb .tb-reset,.tb .tb-tourbtn{background:var(--app-ink);color:#fff;border:1px solid var(--app-ink);font-weight:700}
.tb .tb-reset:hover,.tb .tb-tourbtn:hover{opacity:.88;background:var(--app-ink);color:#fff}

/* ============================================================
   LIVE DEMO — send button, "sent" state, actions card
   ============================================================ */
.tb .send-row{align-self:flex-end;display:flex}
.tb .wa-sendbtn{display:inline-flex;align-items:center;gap:6px;background:var(--info);color:#fff;border:none;border-radius:10px;
  padding:8px 18px;font-family:var(--fa);font-weight:700;font-size:12.5px;cursor:pointer;
  box-shadow:0 8px 18px -6px rgba(26,115,232,.55);animation:sendPulse 1.5s ease infinite}
.tb .wa-sendbtn svg{width:14px;height:14px}
@keyframes sendPulse{0%{box-shadow:0 8px 18px -6px rgba(26,115,232,.55),0 0 0 0 rgba(26,115,232,.4)}
  70%{box-shadow:0 8px 18px -6px rgba(26,115,232,.55),0 0 0 8px rgba(26,115,232,0)}
  100%{box-shadow:0 8px 18px -6px rgba(26,115,232,.55),0 0 0 0 rgba(26,115,232,0)}}
.tb .ai-tag.sent{color:#0A5A33}

/* /Tempo actions card in the thread */
.tb .acard{align-self:flex-start;max-width:94%;background:var(--app-surface);border:1px solid var(--app-line);border-radius:14px;padding:12px 14px;box-shadow:var(--shadow)}
.tb .ac-h{font-family:var(--fa);font-weight:700;font-size:12.5px;color:var(--app-ink);margin-bottom:8px}
.tb .ac-row{display:flex;align-items:center;gap:10px;padding:5px 0;font-family:var(--fa);font-size:12.5px;color:var(--app-ink);border-top:1px solid var(--app-line2)}
.tb .ac-row:first-of-type{border-top:none}
.tb .ac-ic{width:20px;text-align:center;flex-shrink:0}
.tb .ac-t{flex:1}
.tb .ac-ck{color:var(--ok);font-weight:800}
@media(prefers-reduced-motion:reduce){.tb .wa-sendbtn{animation:none}}

/* "Explore app" — secondary/outline, shown beside Exit tour during the tour */
.tb .tb-explore{flex-shrink:0;font-family:var(--fa);font-size:12px;font-weight:700;color:var(--app-ink);background:var(--app-surface);
  border:1px solid var(--app-ink3);border-radius:8px;padding:6px 13px;cursor:pointer;transition:background .15s,border-color .15s}
.tb .tb-explore:hover{background:var(--app-bg);border-color:var(--app-ink)}

/* ============================================================
   LIVE DEMO — notification toast + reorder state
   ============================================================ */
.tb .demo-toast{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);z-index:44;
  background:var(--app-ink);color:#fff;font-family:var(--fa);font-size:12.5px;font-weight:600;
  padding:10px 16px;border-radius:10px;box-shadow:0 12px 28px -8px rgba(0,0,0,.45);animation:toastUp .3s ease both}
.tb .demo-toast.out{animation:toastDown .3s ease both}
@keyframes toastUp{from{opacity:0;transform:translate(-50%,12px)}to{opacity:1;transform:translate(-50%,0)}}
@keyframes toastDown{to{opacity:0;transform:translate(-50%,12px)}}
/* mobile: the tour popup is a bottom sheet, so drop the notification in near the
   TOP (over the orders list ~ Loft Café), not overlapping the popup */
@media(max-width:560px){
  .tb .demo-toast{top:88px;bottom:auto;animation:toastUpTop .3s ease both}
  .tb .demo-toast.out{animation:toastDownTop .3s ease both}
}
@keyframes toastUpTop{from{opacity:0;transform:translate(-50%,-12px)}to{opacity:1;transform:translate(-50%,0)}}
@keyframes toastDownTop{to{opacity:0;transform:translate(-50%,-12px)}}
.tb .c-btn.reordering{opacity:.65;cursor:default}

/* ============================================================
   LIVE DEMO — Google-Calendar week view
   ============================================================ */
.tb .gcal{border:1px solid var(--app-line);border-radius:12px;overflow:hidden;background:var(--app-surface);box-shadow:var(--shadow);margin-top:8px}
.tb .gc-head{display:grid;grid-template-columns:52px repeat(7,1fr);border-bottom:1px solid var(--app-line);background:var(--app-surface)}
.tb .gc-gh{border-right:1px solid var(--app-line2)}
.tb .gc-dh{padding:8px 4px 7px;text-align:center;border-left:1px solid var(--app-line2)}
.tb .gc-dn{display:block;font-family:var(--fa);font-size:11px;font-weight:600;letter-spacing:.02em;color:var(--app-ink3);text-transform:uppercase}
.tb .gc-dd{display:inline-block;font-family:var(--fa);font-size:15px;font-weight:700;color:var(--app-ink);margin-top:2px;width:26px;height:26px;line-height:26px}
.tb .gc-dh.today .gc-dn{color:var(--info)}
.tb .gc-dh.today .gc-dd{background:var(--info);color:#fff;border-radius:50%}
.tb .gc-body{display:flex;height:344px}
.tb .gc-times{width:52px;flex-shrink:0;display:flex;flex-direction:column}
.tb .gc-th{flex:1;position:relative}
.tb .gc-th span{position:absolute;top:-7px;right:7px;font-family:var(--fa);font-size:10px;color:var(--app-ink3);background:var(--app-surface);padding:0 2px}
.tb .gc-grid{flex:1;display:grid;grid-template-columns:repeat(7,1fr);position:relative;background-image:linear-gradient(to bottom,var(--app-line2) 1px,transparent 1px);background-repeat:repeat-y;background-position:0 0}
.tb .gc-col{position:relative;border-left:1px solid var(--app-line2)}
.tb .gc-ev{position:absolute;left:3px;right:3px;border-radius:7px;padding:4px 8px;overflow:hidden;border-left:3px solid;box-shadow:0 1px 3px rgba(16,24,40,.12)}
.tb .gc-ev b{display:block;font-family:var(--fa);font-size:11px;font-weight:700;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tb .gc-ev span{display:block;font-family:var(--fa);font-size:9.5px;opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}
.tb .gc-ev.blue{background:#e8f0fe;border-color:#1a73e8;color:#174ea6}
.tb .gc-ev.green{background:#e6f4ea;border-color:#0f9d58;color:#0a5a33}
.tb .gc-ev.purple{background:#f3e8fd;border-color:#9334e6;color:#5b2a86}
.tb .gc-ev.pink{background:#fce8ef;border-color:#d81b60;color:#8a1846}
.tb .gc-ev.amber{background:#fef3d0;border-color:#e8b400;color:#946c00}
.tb .gc-ev.ev-pop{transform-origin:center top;animation:evPop .55s cubic-bezier(.34,1.56,.64,1) .35s both}
@keyframes evPop{0%{opacity:0;transform:scale(.25)}60%{opacity:1}100%{opacity:1;transform:scale(1)}}

/* rows that appear from nothing (orders, invoicing) with a highlight flash */
.tb .row-appear{animation:rowAppear .7s ease both}
@keyframes rowAppear{0%{opacity:0;transform:translateY(-12px);background:var(--app-accent-soft)}55%{opacity:1;background:var(--app-accent-soft)}100%{opacity:1;transform:none;background:transparent}}

/* keep the inbox compact — thread scrolls inside its own pane, no page/app scroll */
.tb .inbox-wrap{max-height:calc(100dvh - 300px)}
.tb .thread-main{min-height:0}
.tb .thread-main .wa{flex:1 1 auto;min-height:0;overflow-y:auto;gap:8px}
.tb .thread-list{overflow-y:auto}
.tb .acard{padding:10px 12px}
.tb .ac-row{padding:4px 0}
@media(prefers-reduced-motion:reduce){.tb .gc-ev.ev-pop,.tb .row-appear{animation:none}}

/* ============================================================
   LIVE DEMO — P&L dashboard (KPI cards + clean bar chart)
   ============================================================ */
.tb .pnl2{padding:6px 2px 2px}
.tb .pnl-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}
.tb .pnl-kpi{background:var(--app-surface);border:1px solid var(--app-line);border-radius:14px;padding:15px 17px;box-shadow:var(--shadow)}
.tb .pnl-kpi.hl{background:linear-gradient(180deg,#eafaf0,#ffffff);border-color:#bfe6cf}
.tb .k-l{font-family:var(--fa);font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--app-ink3)}
.tb .k-v{font-family:var(--fa);font-size:25px;font-weight:700;letter-spacing:-.025em;color:var(--app-ink);margin-top:7px;font-variant-numeric:tabular-nums;line-height:1}
.tb .k-v.neg{color:var(--app-ink2)}
.tb .pnl-kpi.hl .k-v{color:#0a7a44}
.tb .k-t{font-family:var(--fa);font-size:11.5px;font-weight:500;margin-top:8px;color:var(--app-ink3)}
.tb .k-t.up{color:var(--ok)}
.tb .pnl-kpi.kpi-flash{animation:kpiFlash 1s ease 1}
@keyframes kpiFlash{0%{box-shadow:0 0 0 0 rgba(15,157,88,.45)}60%{box-shadow:0 0 0 10px rgba(15,157,88,0)}100%{box-shadow:var(--shadow)}}
.tb .pnl-card{background:var(--app-surface);border:1px solid var(--app-line);border-radius:14px;padding:16px 20px 14px;box-shadow:var(--shadow)}
.tb .pc-h{display:flex;align-items:baseline;gap:8px;font-family:var(--fa);font-size:13.5px;font-weight:700;color:var(--app-ink);margin-bottom:16px}
.tb .pc-sub{font-size:11.5px;font-weight:500;color:var(--app-ink3)}
.tb .pc-chart{display:flex;align-items:flex-end;gap:18px;height:150px;border-bottom:2px solid var(--app-line)}
.tb .pc-col{flex:1;display:flex;align-items:flex-end;justify-content:center;height:100%}
.tb .pc-bar{width:100%;max-width:44px;background:#dfe3ea;border-radius:7px 7px 0 0;transition:height .8s cubic-bezier(.22,1,.36,1)}
.tb .pc-bar.hl{background:linear-gradient(180deg,#3b82f6,#1a73e8)}
.tb .pc-labels{display:flex;gap:18px;margin-top:9px}
.tb .pc-labels span{flex:1;text-align:center;font-family:var(--fa);font-size:11.5px;color:var(--app-ink3)}
.tb .pc-labels span.on{color:var(--info);font-weight:700}
/* mobile: P&L must fit the phone width — stack the 3 KPIs as compact rows
   (label + subtext left, value right) and tighten the bar chart */
@media(max-width:560px){
  .tb .pnl2{padding:4px 0 2px}
  .tb .pnl-kpis{grid-template-columns:1fr;gap:9px;margin-bottom:13px}
  .tb .pnl-kpi{display:grid;grid-template-columns:1fr auto;column-gap:12px;align-items:center;padding:12px 14px}
  .tb .pnl-kpi .k-l{grid-column:1;grid-row:1}
  .tb .pnl-kpi .k-v{grid-column:2;grid-row:1 / span 2;align-self:center;margin-top:0;font-size:21px;text-align:right;white-space:nowrap}
  .tb .pnl-kpi .k-t{grid-column:1;grid-row:2;margin-top:3px;font-size:10.5px}
  .tb .pnl-card{padding:14px 14px 12px}
  .tb .pc-chart{gap:7px;height:128px}
  .tb .pc-labels{gap:7px}
  .tb .pc-labels span{font-size:10.5px}
}

/* reply block = AI draft + Send button, ringed together (right-aligned) */
/* fit-content + asymmetric padding so the ring hugs the AI bubble on the left
   (close to "Hi") but leaves breathing room before the Send button on the right */
.tb .reply-block{align-self:flex-end;display:flex;flex-direction:column;align-items:flex-end;gap:8px;width:fit-content;max-width:92%;padding:2px 12px 2px 4px}
.tb .reply-block .bub.bot,.tb .reply-block .send-row{align-self:flex-end}
.tb .reply-block .bub.bot{max-width:100%}
