  :root{
    /* 🔴 TruLata's OWN design system, read from trulata.com's :root on 2026-09-02.
       Trace: "NEVER make dashboards match the client colors. This is a TruLata
       branded product... One instance of the software - everything looks like
       the software. On brand for TruLata - ALWAYS."
       So NOTHING here is derived from CLIENT.accent. A client's colour appears
       nowhere in the product chrome. Keep these in step with the website. */
    --ink:#282a2b; --ink-900:#1c1e1f; --ink-800:#232526; --ink-700:#2f3133; --ink-600:#3c3f41;
    --navy:#232526; --navy2:#2f3133;
    --muted:#5b6168; --line:#e4e8f0; --bg:#f7f8fb; --card:#ffffff; --soft:#eef1f6;
    /* primary indigo carries interactive surfaces, cyan is the highlight. */
    --accent:#3a43ad; --accent2:#4cd1f4; --secondary:#9a3fc1;
    --on-accent:#ffffff; --on-accent2:#1c1e1f;
    /* green stays semantic: "healthy" must not become a brand colour. */
    --green:#16a34a; --amber:#ffc861; --warm:#ffc861; --warm-deep:#c2820f;
    --grad:linear-gradient(110deg,#9a3fc1 0%,#3a43ad 52%,#4cd1f4 100%);
    --grad2:linear-gradient(110deg,#b46ad6 0%,#5560c9 52%,#6fdcf6 100%);
    --grad3:linear-gradient(105deg,#c98ee6 0%,#8b94f0 48%,#6fe0fb 100%);
    --grad4:linear-gradient(110deg,#ffc861 0%,#c2820f 100%);
    --grad5:linear-gradient(110deg,#9a3fc1 0%,#4cd1f4 100%);
    --sidegrad:linear-gradient(185deg,#1c1e1f 0%,#232526 52%,#2f3133 100%);
    --shadow-card:0 24px 60px -28px rgba(40,42,43,0.32);
  }
  *{box-sizing:border-box}
  html,body{margin:0}
  body{background:var(--bg);color:var(--ink);
    font-family:"Poppins",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    -webkit-font-smoothing:antialiased}
  .brand,.big,.ttl,.topbar .tt,.mttl,.label,.glabel{font-family:"Montserrat","Poppins",sans-serif}
  .big,.brand,.mttl{letter-spacing:-.015em}
  a{color:inherit;text-decoration:none}
  /* app shell: fixed left sidebar + content */
  .app{display:flex;min-height:100vh}
  .side{width:228px;flex:none;background:var(--sidegrad);color:#fff;display:flex;flex-direction:column;position:sticky;top:0;align-self:flex-start;height:100vh;overflow:auto;z-index:50}
  .side .brand{padding:18px 18px 8px;font-weight:800;font-size:21px;letter-spacing:-.02em}
  .side .brand span{color:#6fdcf6}
  .navg{padding:2px 12px}
  .glabel{font-size:10px;text-transform:uppercase;letter-spacing:.09em;color:#5b6168;padding:12px 10px 4px;font-weight:700}
  /* collapsible menu groups (#3801, Trace 10/30): the label is the switch, a chevron says which way, the count says what is folded */
  .navg button.gtoggle{display:flex;align-items:center;gap:6px;width:100%;min-height:0;margin:0;border:0;border-radius:6px;background:none;
    box-shadow:none;text-align:left;cursor:pointer;font-size:10px;text-transform:uppercase;letter-spacing:.09em;color:#5b6168;padding:12px 10px 4px;font-weight:700}
  .navg button.gtoggle:hover,.navg button.gtoggle:focus-visible{color:#9aa1a8;background:none}
  .navg button.gtoggle:focus-visible{outline:2px solid rgba(111,220,246,.6);outline-offset:1px}
  .gtoggle .gcount{display:none;margin-left:2px;padding:0 6px;border-radius:999px;background:rgba(255,255,255,.08);letter-spacing:0;font-size:10px;line-height:16px}
  .navg.closed .gtoggle .gcount{display:inline-block}
  .navg.closed:has(.cb-dot,.ld-dot) .gtoggle .gcount{background:#dd2c32;color:#fff}
  .gtoggle .gchev{width:12px;height:12px;margin-left:auto;flex:none;transition:transform .2s ease}
  .navg.closed .gtoggle .gchev{transform:rotate(-90deg)}
  .navitems{display:grid;grid-template-rows:1fr;transition:grid-template-rows .22s ease}
  .navitems>div{min-height:0;overflow:hidden}
  .navg.closed .navitems{grid-template-rows:0fr}
  @media (prefers-reduced-motion:reduce){.navitems,.gtoggle .gchev{transition:none}}
  .side button{display:flex;align-items:center;width:100%;text-align:left;background:none;border:none;color:#fff;font:inherit;font-size:14px;font-weight:600;padding:9px 11px;border-radius:9px;cursor:pointer;transition:.12s}
  .side button:hover{background:rgba(255,255,255,.07);color:#fff}
  .side button.active{background:rgba(255,255,255,.16);color:#fff;box-shadow:inset 3px 0 0 #6fdcf6}
  /* locked (above the plan) and not-yet-connected tabs stay visible, dimmed (T-0528) */
  .side button.locked,.side button.dim{color:rgba(255,255,255,.55)}
  .side button.locked.active,.side button.dim.active{color:#fff}
  .side .navtag{margin-left:auto;font-size:10px;font-weight:700;letter-spacing:.02em;padding:2px 8px;border-radius:999px;background:rgba(255,255,255,.12);color:#fff}
  .side .logout{margin:auto 12px 16px;display:flex;align-items:center;gap:9px;padding:11px;border-radius:9px;color:#fff;font-size:13.5px;font-weight:600;text-decoration:none;border-top:1px solid rgba(255,255,255,.10);padding-top:14px;transition:.12s}
  .side .logout:hover{background:rgba(255,255,255,.07)}
  .side .logout svg{flex:none;opacity:.85}
  .main{flex:1;min-width:0;display:flex;flex-direction:column}
  .topbar{position:sticky;top:0;z-index:30;background:rgba(245,248,252,.82);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:14px;padding:11px 24px}
  .topbar .tt{font-weight:800;font-size:18px;color:var(--navy);line-height:1.1}
  .topbar .tcrumb{font-size:12px;color:var(--muted)}
  .hgrow{flex:1}
  .hcli{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--navy);font-weight:600;white-space:nowrap}
  .hcli img{height:26px;width:auto;max-width:124px;object-fit:contain;display:block}
  .brandmono{width:28px;height:28px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-family:"Montserrat",sans-serif;font-weight:800;font-size:12px;letter-spacing:.02em;flex:none}
  .hpow{font-size:10px;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.06em}
  .drop{display:block;border:2px dashed #e4e8f0;border-radius:13px;padding:22px;text-align:center;cursor:pointer;transition:.14s;background:var(--soft)}
  .drop:hover{border-color:var(--accent);background:#f7f8fb}
  .drop input{display:none}
  .swatches{display:flex;flex-wrap:wrap;gap:9px;margin-top:11px}
  .sw{width:30px;height:30px;border-radius:8px;cursor:pointer;border:2px solid #fff;box-shadow:0 0 0 1px var(--line);transition:.12s}
  .sw:hover{transform:scale(1.08)}
  .sw.on{box-shadow:0 0 0 2px var(--navy)}
  @media(max-width:620px){.hcli span:last-child{display:none}
    /* #5688 (11/18): between 420 and 620 the chip still sat at full logo width, so on an iPhone Pro Max
       (430x932) Cain's topbar ran to x=453 and every tab scrolled sideways. It may shrink, never push. */
    .hcli{min-width:0;flex-shrink:1;overflow:hidden}
    .hcli img{max-width:100%}}
  /* hamburger + TruLata mark + Refresh + Export leave no room for a whole logo under ~520px; left out, not cut */
  @media(max-width:520px){.hcli{display:none}}
  .mh{display:none;background:none;border:none;font-size:21px;cursor:pointer;color:var(--navy)}
  .mbrand{display:none;align-items:center;gap:8px;font-family:"Montserrat",sans-serif;font-weight:800;font-size:18px;color:var(--navy)}
  .mbrand span{color:var(--accent2)}
  .sideov{display:none;position:fixed;inset:0;background:rgba(15,20,40,.45);z-index:48}
  .sideov.show{display:block}
  .mainwrap{padding:22px 24px 70px;max-width:1120px;width:100%}
  @media(max-width:900px){
    .side{position:fixed;left:0;top:0;transform:translateX(-100%);transition:transform .2s;box-shadow:0 0 50px rgba(0,0,0,.35)}
    .side.open{transform:none}
    .mh{display:block}
    .mbrand{display:flex}
    .ttwrap{display:none}
  }
  .crumbs{font-size:13px;color:var(--muted);margin-bottom:4px}
  .ptitle{font-size:22px;font-weight:800;letter-spacing:-.01em;margin:0 0 18px}
  .row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
  .grid{display:grid;gap:14px}
  .g2{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.g3{grid-template-columns:repeat(3,minmax(0,1fr))}.g4{grid-template-columns:repeat(4,minmax(0,1fr))}.g5{grid-template-columns:repeat(5,minmax(0,1fr))}
  @media(max-width:820px){.g3,.g4,.g5{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.g2{grid-template-columns:minmax(0,1fr)}}
  .card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:16px;
    box-shadow:0 1px 2px rgba(16,42,67,.04);min-width:0;overflow-wrap:anywhere}
  .cl{cursor:pointer;transition:.13s}
  .cl:hover{border-color:#e4e8f0;box-shadow:0 6px 20px rgba(16,42,67,.09);transform:translateY(-1px)}
  .label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:var(--muted)}
  .big{font-size:25px;font-weight:800;margin-top:5px;color:var(--navy)}
  .big.grad{background:var(--grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent}
/* stat numbers in any grid (cards, inner tiles, workstream and plan cards) carry the brand gradients, in statRow's order (engine GRADS): views that draw their
   own cards (Meta Ads, ChatGPT Ads and the other self-serve views) were plain black (Trace 2026-09-30: "missing the brand colors") */
.grid>* .big{-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;background-image:var(--grad)}
.grid>*:nth-child(5n+2) .big{background-image:var(--grad3)}
.grid>*:nth-child(5n+3) .big{background-image:var(--grad2)}
.grid>*:nth-child(5n+4) .big{background-image:var(--grad4)}
.grid>*:nth-child(5n+5) .big{background-image:var(--grad5)}
  .ttl{font-size:15px;font-weight:700;margin-bottom:13px;color:var(--navy)}
  .inner{background:var(--soft);border:1px solid var(--line);border-radius:11px;padding:12px;min-width:0;overflow-wrap:anywhere}
  .between{display:flex;justify-content:space-between;align-items:center;gap:10px;min-width:0}
  .between>*{min-width:0}
  /* Text never runs out of its card (Trace 11/20, GNF screen share: "text ... that went out of the card. So it looked
     trashy"). A part of a row that must stay on one line (a count, "10 likes, 0 comments") keeps its width and the other
     part shrinks; a long unbroken address or word wraps instead of widening its box; a grid row's parts may shrink.
     backend/scripts/overflow_probe.mjs checks every tab of every tenant at every release. */
  .between>[style*="white-space:nowrap"],.between>.nw,.between>.badge,.between>:has(>.badge:only-child){flex-shrink:0}
  .card a,.inner a{overflow-wrap:anywhere}
  .inner[style*="display:grid"]>*,.stack>*{min-width:0}
  /* a button never wider than its card: on a small phone a long label wraps (GNF Social at 320: 5px past) */
  .card .btn{max-width:100%}
  @media(max-width:480px){.card .btn{white-space:normal;text-align:center}}
  .sm{font-size:14px}.xs{font-size:12.5px}.mut{color:var(--muted)}
  .mt1{margin-top:5px}.mt2{margin-top:9px}.mt3{margin-top:13px}.mb1{margin-bottom:5px}
  .stack>*+*{margin-top:10px}.section>*+*{margin-top:16px}
/* views that fill a box after loading (Meta Ads #metaBox, ChatGPT Ads #cgaBox, Website #siteBox, ...): the same 16px between their cards (Trace 2026-09-29: "no padding on meta ads") */
.section>[id$="Box"]>*+*{margin-top:16px}
  .up{color:var(--accent2);font-weight:700}
  .bar{height:8px;width:100%;background:#eef1f6;border-radius:999px;overflow:hidden}
  .bar>span{display:block;height:100%;border-radius:999px;background:var(--grad)}
  .funnel{display:flex;flex-direction:column;align-items:center;gap:6px;padding:4px 0}
  .fb{min-width:130px;color:#fff;border-radius:9px;padding:12px 16px;display:flex;justify-content:space-between;align-items:center;gap:14px;font-size:13.5px;font-weight:600;box-shadow:0 2px 8px rgba(16,42,67,.12);cursor:pointer;transition:.15s}
  .fb:hover{transform:translateY(-1px) scale(1.01);box-shadow:0 7px 20px rgba(106,85,226,.28)}
  .fb b{font-weight:800;font-size:15px;font-family:"Montserrat",sans-serif}
  .badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:2px 9px;font-size:11px;font-weight:700}
  .bdot{width:6px;height:6px;border-radius:999px;display:inline-block}
  .pill{border:1px solid var(--line);border-radius:999px;padding:3px 10px;font-size:12px;color:var(--muted);background:#fff}
  .pill.add{color:var(--warm-deep);border-color:#ffc861;cursor:pointer;font-weight:700}
  .bars{display:flex;align-items:flex-end;gap:6px;height:130px}
  .bars>i{flex:1;background:#e4e8f0;border-radius:5px 5px 0 0;display:block}
  .bars>i.last{background:var(--accent)}
  .auto{background:#f7f8fb;border:1px solid #e4e8f0;border-radius:11px;padding:11px 13px;font-size:13px;color:#2f3133;margin-top:14px;line-height:1.5}
  .auto b{color:var(--accent2)}
  table{width:100%;border-collapse:collapse;font-size:13.5px}
  th{text-align:left;color:var(--muted);font-weight:600;padding:8px;border-bottom:1px solid var(--line)}
  td{padding:9px 8px;border-bottom:1px solid var(--line)}
  tr.cl:hover td{background:var(--soft)}
  tbody tr:last-child td{border-bottom:none}
  /* modal */
  .ov{position:fixed;inset:0;background:rgba(15,42,67,.45);backdrop-filter:blur(2px);display:none;
    z-index:60;align-items:flex-start;justify-content:center;padding:40px 16px;overflow:auto}
  .ov.open{display:flex}
  .modal{background:#fff;border-radius:16px;max-width:560px;width:100%;box-shadow:0 24px 70px rgba(16,42,67,.3);animation:pop .16s ease}
  @keyframes pop{from{transform:translateY(8px) scale(.98);opacity:0}to{transform:none;opacity:1}}
  .mhd{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:18px 20px 0}
  .mttl{font-size:18px;font-weight:800;color:var(--navy)}
  .msub{font-size:13px;color:var(--muted);margin-top:2px}
  .mx{background:#f7f8fb;border:none;border-radius:9px;width:30px;height:30px;font-size:17px;cursor:pointer;color:var(--muted);flex:none}
  .mbody{padding:14px 20px 22px}
  .kv{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--line);font-size:14px}
  .kv:last-child{border:none}
  /* a long value on a phone squeezed the label until it broke mid-word ("Wher / e", T-0645): the label keeps its words, the value wraps */
  .kv>:first-child{flex:0 0 auto;max-width:45%;margin-right:12px}
  .kv>:last-child:not(:first-child){min-width:0;text-align:right;overflow-wrap:anywhere}
  .spark{height:60px;width:100%;margin:6px 0 10px}
  /* a trend card beside a taller one (AEO: 9 engines) is stretched by the grid; its chart takes the height instead of white space */
  .card.fillspark{display:flex;flex-direction:column}
  .card.fillspark .spark{flex:1 1 0;height:0;min-height:60px}
  /* ask */
  .chat{display:flex;margin-bottom:10px}.chat.me{justify-content:flex-end}
  .bub{max-width:82%;border-radius:14px;padding:11px 14px;font-size:14px;line-height:1.55}
  .bub.me{background:var(--accent);color:var(--on-accent,#fff)}
  .bub.ai{background:#fff;border:1px solid var(--line);color:var(--ink)}
  .askbar{display:flex;gap:8px;margin-top:6px}
  .askbar input{flex:1;min-width:0;border:1px solid var(--line);border-radius:11px;padding:12px 14px;font:inherit;font-size:14px;background:#fff;color:var(--ink)}
  .askbar input:focus{outline:none;border-color:var(--accent)}
  .askbar .askmic{flex:none;background:var(--soft);color:var(--accent);padding:0 12px;display:flex;align-items:center;justify-content:center}
  .askbar .askmic.on{background:#e5484d;color:#fff;animation:askpulse 1.2s ease-in-out infinite}
  @keyframes askpulse{0%,100%{box-shadow:0 0 0 0 rgba(229,72,77,.45)}50%{box-shadow:0 0 0 6px rgba(229,72,77,0)}}
  @media (prefers-reduced-motion: reduce){.askbar .askmic.on{animation:none}}
  .askbar button{flex:none;background:var(--accent);color:var(--on-accent,#fff);border:none;border-radius:11px;padding:0 18px;font:inherit;font-weight:700;cursor:pointer}
  .chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
  .chip{border:1px solid #e4e8f0;color:var(--accent);background:#fff;border-radius:999px;padding:6px 12px;font-size:13px;cursor:pointer}
  .typing span{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--muted);margin:0 1px;animation:bl 1s infinite}
  .typing span:nth-child(2){animation-delay:.2s}.typing span:nth-child(3){animation-delay:.4s}
  @keyframes bl{0%,80%,100%{opacity:.3}40%{opacity:1}}
  .addywork{display:flex;align-items:center;gap:8px}.addyspin{width:14px;height:14px;border-radius:50%;border:2px solid var(--line);border-top-color:var(--accent);animation:addyspin .8s linear infinite;flex:none}
  @keyframes addyspin{to{transform:rotate(360deg)}}.addysteps{margin-top:6px;font-size:12.5px;color:var(--muted);display:grid;gap:2px}
  .addyap{margin-top:10px;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--soft)}
  @media (prefers-reduced-motion: reduce){.addyspin{animation:none}}
  /* Addy's work, drawn like trulata.com/addy: agent cards, a Read/Did/Waiting timeline, acting-as chips (Trace 11/5) */
  .bub.aw{min-width:min(520px,100%)}
  .awname{font-size:12px;font-weight:800;margin-bottom:4px;background:linear-gradient(90deg,var(--accent2),var(--secondary));-webkit-background-clip:text;background-clip:text;color:transparent}
  .awagents{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin:12px 0 4px}
  .awag{border:1px solid var(--line);border-radius:12px;padding:9px 11px 10px;background:var(--card)}
  .awag-k{display:flex;align-items:center;gap:7px;font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--accent)}
  .awag-k::before{content:"";flex:none;width:7px;height:7px;border-radius:50%;background:var(--accent2);box-shadow:0 0 0 3px rgba(76,209,244,.18)}
  .awag-t{font-size:12.5px;line-height:1.35;margin:6px 0 8px;color:var(--ink)}
  .awbar{height:4px;border-radius:99px;background:var(--soft);overflow:hidden}
  .awbar i{display:block;height:100%;width:40%;border-radius:99px;background:linear-gradient(90deg,var(--accent2),var(--secondary));animation:awbar 1.3s ease-in-out infinite}
  .awag.done .awbar i{width:100%;animation:none}
  @keyframes awbar{0%{transform:translateX(-100%)}100%{transform:translateX(260%)}}
  .awag-s{font-size:11px;color:var(--muted);margin-top:6px}.awag.done .awag-s{color:#1f8a5b;font-weight:600}
  .awl{list-style:none;margin:12px 0 0;padding:0;position:relative}
  .awl::before{content:"";position:absolute;left:7px;top:12px;bottom:12px;width:2px;background:linear-gradient(var(--accent2),var(--accent) 60%,var(--secondary));opacity:.35}
  .awl li{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:6px 9px;padding:6px 0 6px 26px;font-size:13px;line-height:1.4;color:var(--ink)}
  .awl li::before{content:"";position:absolute;left:1px;top:9px;width:10px;height:10px;border-radius:50%;border:2px solid var(--accent2);background:var(--card)}
  .awl li.did::before{border-color:transparent;background:linear-gradient(135deg,var(--accent2),var(--secondary))}
  .awl li.wait::before{border-color:#e0a21a;box-shadow:0 0 0 3px rgba(255,200,97,.25)}
  .awl li.agent::before{border-color:var(--accent)}
  .awl li.no::before{border-color:var(--line)}
  .awl li>span{font-size:10px;letter-spacing:.1em;text-transform:uppercase;font-weight:700;padding:2px 8px;border-radius:99px;background:var(--soft);color:var(--muted)}
  .awl li.read>span{color:#16708f;background:rgba(76,209,244,.15)}
  .awl li.did>span{color:#7a2fa0;background:rgba(154,63,193,.12)}
  .awl li.wait>span{color:#8a5d00;background:rgba(255,200,97,.28)}
  .awl li.agent>span{color:var(--accent);background:rgba(58,67,173,.10)}
  .awl li.no{color:var(--muted)}
  .awin{flex-basis:100%;font-size:11.5px;color:var(--muted)}
  .awok{flex-basis:100%;display:flex;gap:6px;margin-top:2px}
  .awf{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
  .awf span{font-size:11px;padding:3px 10px;border-radius:99px;border:1px solid var(--line);color:var(--muted);background:var(--card)}
  .awd{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}
  .awd summary{cursor:pointer;font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--muted);list-style-position:inside}
  @media (prefers-reduced-motion: reduce){.awbar i{animation:none;width:100%}}
  /* inputs / export / motion */
  .inp{border:1px solid var(--line);border-radius:9px;padding:9px 11px;font:inherit;font-size:14px;background:#fff;color:var(--ink);width:100%}
  .inp:focus{outline:none;border-color:var(--accent)}
  select.inp{appearance:none}
  .exp{background:#fff;color:var(--navy);border:1px solid var(--line);border-radius:9px;padding:8px 13px;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
  .exp:hover{border-color:#e4e8f0;box-shadow:0 2px 8px rgba(16,42,67,.08)}
  .card,.inner{animation:fade .45s ease both}
  @keyframes fade{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
  .bar>span{transition:width 1s cubic-bezier(.2,.8,.2,1)}
  .bars>i{transition:height .9s cubic-bezier(.2,.8,.2,1)}
  /* the dash is in SCREEN pixels (the line uses vector-effect:non-scaling-stroke), so a 260 dash cut every trend line wider than
     260px for good: the line stopped halfway while its shading ran on (demo AEO card, T-0647). 3000 covers any card. */
  .spark polyline{stroke-dasharray:3000;stroke-dashoffset:3000;animation:draw 1.6s .1s cubic-bezier(.2,.7,.3,1) forwards}
  @keyframes draw{to{stroke-dashoffset:0}}
  .bdot{animation:pulse 1.8s infinite}
  @keyframes pulse{0%{box-shadow:0 0 0 0 rgba(8,210,191,.55)}70%{box-shadow:0 0 0 5px rgba(8,210,191,0)}100%{box-shadow:0 0 0 0 rgba(8,210,191,0)}}
  .btn{background:var(--accent);color:var(--on-accent,#fff);border:none;border-radius:9px;padding:9px 14px;font:inherit;font-weight:700;font-size:13px;cursor:pointer;transition:.13s;white-space:nowrap}
  .btn,.pill,.badge,select.inp{overflow-wrap:normal}
  /* a column header never breaks inside a word (2026-11-03, GNF Leads at 1440 read "Contac / t"): .card sets
     overflow-wrap:anywhere for long values, which let a table squeeze a header below its own word */
  th{overflow-wrap:normal;word-break:normal}
  /* a long single token in a card (domain, link, email): one line, ellipsis, full value on hover (engine tlFitTokens) */
  .tok{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;overflow-wrap:normal;word-break:normal}
  a.tok,span.tok,b.tok,strong.tok,small.tok,em.tok{display:inline-block;vertical-align:bottom}
  td .tok{max-width:34ch}
  /* a table cell keeps its words whole too (GNF Leads at 1440 split phone numbers "+1720761 / 4688"); a long URL in a
     cell is a .tok and ends in an ellipsis instead of widening the table */
  td{overflow-wrap:normal;word-break:normal}
  /* A pill or badge keeps its words on one line whenever it fits, and never shrinks in a row; one longer than its
     container wraps at a space instead of running out of the card (QA 11/20 sweep: aden keyword pill 25px past the
     screen at 912, Cain "Scheduled for Sun, Nov 15 at 6:00 pm Central" 6px past its card, GNF "On Google" 3px at 375) */
  .pill,.badge{white-space:normal;max-width:100%;flex-shrink:0}
  .between>:has(>.badge:only-child){max-width:100%}
  .kv{flex-wrap:wrap;column-gap:8px}
  .btn:hover{filter:brightness(1.07);box-shadow:0 4px 14px rgba(106,85,226,.3)}
  .btn.ghost{background:#fff;color:var(--navy);border:1px solid var(--line)}
  .btn.ghost:hover{border-color:#e4e8f0;filter:none;box-shadow:0 2px 8px rgba(16,42,67,.08)}
  .toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);background:var(--navy);color:#fff;padding:12px 20px;border-radius:11px;font-size:14px;font-weight:600;box-shadow:0 10px 34px rgba(16,42,67,.35);z-index:90;animation:tin .25s ease}
  @keyframes tin{from{opacity:0;transform:translateX(-50%) translateY(8px)}to{opacity:1;transform:translateX(-50%)}}
  textarea.inp{resize:vertical;font-family:inherit}
  /* wide tables scroll inside their card instead of pushing the page */
  .card:has(table){overflow-x:auto}
  /* and inside an inner box, so a wide table never runs across the box border (QA 11/20 unicfm Google Ads "Who changed your account" at 390) */
  .inner:has(>table){overflow-x:auto}
  /* phones: shrink dense numbers + tighten so cards fit without horizontal scroll */
  @media(max-width:620px){
    .mainwrap{padding:16px 14px 60px}
    .topbar{padding:11px 14px;gap:10px}
    .card{padding:14px}
    .big{font-size:20px}
    .ttl{font-size:14px}
    th,td{padding:7px 6px;white-space:nowrap}
    .fb{min-width:0;padding:10px 13px;font-size:12.5px}
    .fb b{font-size:13.5px}
    .between{flex-wrap:wrap}
  }

  /* ── Phones, measured 2026-08-15 across all nine portals ────────────────────
     Found at 320px: the header client block (.hcli) is white-space:nowrap with a
     124px logo, so it pushed the page 61px wide; export buttons did the same in
     tight rows; and the nav buttons sat at 39px, one pixel under a usable tap
     target. Fixed here because styles.css is byte-identical across every client
     instance — one edit, nine portals. */
  @media(max-width:420px){
    /* 2026-09-23 real-seat walk: at 390px the logo was still cut off at the right edge
       (Doorman, SportZtars), which reads as broken. On phones the client chip is left out
       rather than shown cut in half. */
    .hcli{display:none}
    .topbar{gap:8px;padding:10px 12px}
    .exp{padding:9px 11px;font-size:12.5px}
    .between{flex-wrap:wrap;gap:8px}
  }
  /* tap targets: nav and controls reach 40px on touch screens */
  @media(max-width:820px){
    .navg button,.navg a,nav button,nav a{min-height:40px}
    .exp,button.exp{min-height:40px}
  }

  /* the portal's own mobile menu button and a logo that must not be clipped */
  @media(max-width:820px){
    .mh{min-height:40px;min-width:40px;display:inline-flex;align-items:center;justify-content:center}
  }
  @media(max-width:340px){
    .hcli img{max-width:64px}
  }

  /* 320px (SE-class phones): the export control was the last 5px of overflow */
  @media(max-width:340px){
    .exp{padding:8px 9px;font-size:12px}
    .topbar{padding:9px 10px;gap:6px}
  }

  /* Touch targets, broadened 2026-08-15: scoping the rule to .navg/.exp missed
     every plain <button> a client override adds (reddy's business switcher and
     its section jump-links sat at 30-35px). Scope to the content wrapper so it
     covers whatever a per-client file introduces, without touching the topbar. */
  @media(max-width:820px){
    .mainwrap button,.mainwrap select,.mainwrap input:not([type="checkbox"]):not([type="radio"]){min-height:40px}
    .mainwrap button{padding-top:max(6px,.4em);padding-bottom:max(6px,.4em)}
  }

  /* reddy's business switcher sits OUTSIDE .mainwrap, in its own bar */
  @media(max-width:820px){
    .bizsw button{min-height:40px}
  }

  /* Pills that ACT (add, edit, update, download, the 2FA toggle) are spans with
     an onclick, so the button/select rule above never touched them: measured
     2026-09-03 at 22-26px on Content, Settings, Account and Billing. Only the
     interactive pills grow; plain category and tag pills stay label-sized. */
  @media(max-width:820px){
    .mainwrap .pill.add,.mainwrap .pill.act,.mainwrap .pill[onclick]{
      min-height:40px;display:inline-flex;align-items:center;padding-top:0;padding-bottom:0}
  }

  /* ── Integrations directory (Trace 2026-10-30: "organized, filterable, and pretty with logos of every partner",
     the same shape as trulata.com/product/integrations#all). Search, category chips (a select on a phone), sort,
     then category groups of logo cards; a card opens across its row to connect or manage. ── */
  .idir-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
  .idir-bar{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px;align-items:center}
  .idir-bar .idir-q{flex:1 1 240px;width:auto;min-width:0}
  .idir-bar select.inp{width:auto;flex:0 0 auto;padding-right:30px;cursor:pointer;
    background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235b6168' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 11px center}
  .idir-cs{display:none}
  .idir-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
  .idir-chip{font:inherit;font-size:12px;font-weight:600;padding:5px 11px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--ink);cursor:pointer;transition:.12s;white-space:nowrap}
  .idir-chip:hover{border-color:var(--accent)}
  .idir-chip small{font-weight:500;color:var(--muted);margin-left:2px}
  .idir-chip[aria-pressed="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}
  .idir-chip[aria-pressed="true"] small{color:rgba(255,255,255,.7)}
  .idir-g{margin-top:20px}
  .idir-gl{font-family:"Montserrat","Poppins",sans-serif;font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--accent);margin:0 2px 9px}
  .idir-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;align-items:start}
  .idir-flat{margin-top:20px}
  .inner.idir-i{background:var(--card);border-radius:14px;padding:0;transition:border-color .15s,box-shadow .15s,transform .15s}
  .idir-i:not(.idir-fixed):not(.open):hover{border-color:var(--accent);transform:translateY(-1px)}
  .idir-i.open{grid-column:1/-1;border-color:var(--accent);box-shadow:var(--shadow-card);padding-bottom:16px}
  .idir-i[hidden],.idir-g[hidden],.idir-flat[hidden],.idir-none[hidden],.idir-i.idir-wait{display:none!important}
  .idir-i:not(.open)>:not(.idir-h){display:none!important}
  .idir-i.open>:not(.idir-h){margin-left:16px;margin-right:16px}
  .idir-h{padding:14px;cursor:pointer;flex-wrap:nowrap!important;align-items:center}
  .idir-fixed .idir-h{cursor:default}
  .idir-h:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;border-radius:14px}
  .idir-i.open>.idir-h{border-bottom:1px solid var(--line);margin-bottom:4px}
  .idir-id{display:flex;gap:12px;align-items:center;min-width:0;flex:1 1 auto}
  .idir-nm{display:flex;flex-direction:column;min-width:0}
  .idir-nm b{line-height:1.3}
  .idir-one{margin-top:2px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .idir-i.open .idir-one{-webkit-line-clamp:unset;display:block}
  .idir-st{flex:none}
  .idir-logos{display:flex;flex:none;align-items:center;position:relative}
  .idir-logo{width:40px;height:40px;border-radius:10px;object-fit:contain;background:#fff;border:1px solid var(--line);flex:none;display:block}
  .idir-more{position:absolute;right:-7px;bottom:-6px;min-width:20px;padding:1px 5px;border-radius:999px;background:var(--ink);color:#fff;font-size:10px;font-weight:700;line-height:15px;text-align:center;box-shadow:0 0 0 2px #fff}
  .idir-plug{display:grid;place-items:center;color:var(--muted);background:var(--soft)}
  .pill.idir-go{color:var(--accent);border-color:#c9cdf0;font-weight:700;background:#fff}
  .idir-what{margin-top:12px}
  .idir-body .card{border:0;box-shadow:none;padding:0;margin:14px 0 0;background:none;animation:none}
  .idir-body>.card:only-child>.ttl:first-child{display:none}
  .idir-body>.card:only-child{margin-top:12px}
  .idir-body .card .ttl{font-size:14px}
  .idir-none{margin-top:16px}
  @media(max-width:640px){
    .idir-chips{display:none}
    .idir-cs{display:block}
    .idir-bar .idir-q{flex:1 1 100%}
    .idir-bar select.inp{flex:1 1 0;min-width:0}
    .idir-grid{grid-template-columns:minmax(0,1fr);gap:10px}
    .idir-h{padding:12px;gap:10px}
    .idir-id{gap:10px}
    .idir-logo{width:36px;height:36px}
    .idir-i.open>:not(.idir-h){margin-left:12px;margin-right:12px}
  }
  /* Floating Addy (Trace 11/6): one button on every tab, the same Addy as the Addy tab, looking at this screen */
  .faddyfab{position:fixed;right:22px;bottom:22px;z-index:55;display:flex;align-items:center;gap:8px;height:50px;padding:0 18px 0 15px;border:none;border-radius:25px;background:var(--accent);color:var(--on-accent,#fff);font:inherit;font-size:14px;font-weight:700;cursor:pointer;box-shadow:0 10px 30px rgba(16,42,67,.28);transition:transform .15s,box-shadow .15s}
  .faddyfab:hover{transform:translateY(-1px);box-shadow:0 14px 36px rgba(16,42,67,.34)}
  .faddyfab:focus-visible{outline:3px solid var(--navy);outline-offset:3px}
  .faddyfab.open{opacity:0;pointer-events:none}
  .faddy{position:fixed;right:22px;bottom:22px;z-index:56;width:400px;max-width:calc(100vw - 32px);height:min(620px,calc(100vh - 44px));display:none;flex-direction:column;background:var(--bg,#f6f8fb);border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 70px rgba(16,42,67,.3);overflow:hidden;animation:pop .16s ease}
  .faddy.open{display:flex}
  .faddy-hd{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:14px 14px 12px 16px;background:#fff;border-bottom:1px solid var(--line)}
  .faddy-t{font-size:16px;font-weight:800;color:var(--navy)}
  .faddy-on{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--mut,#5b6b7f);margin-top:2px}
  .faddy-dot{width:7px;height:7px;border-radius:50%;background:#2fb37a;flex:none}
  .faddy-x{background:none;border:none;color:var(--mut,#5b6b7f);width:30px;height:30px;border-radius:8px;display:flex;align-items:center;justify-content:center;cursor:pointer}
  .faddy-x:hover{background:var(--soft);color:var(--ink)}
  .faddy-body{flex:1;min-height:0;overflow-y:auto;padding:14px}
  .faddy-body .bub{max-width:92%}
  .faddy-ft{padding:10px 12px 12px;background:#fff;border-top:1px solid var(--line)}
  .faddy-ft .chips{margin:0 0 8px;display:flex;gap:6px;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}
  .faddy-ft .chips .chip{white-space:nowrap;flex:none}
  .faddy-ft .askbar{margin-top:0}
  .faddy-ft .askbar input{padding:11px 12px}
  @media (max-width:640px){
    .faddyfab{right:14px;bottom:14px;height:48px;padding:0 15px 0 13px}
    .faddy{right:0;left:0;bottom:0;width:100%;max-width:100%;height:82vh;border-radius:18px 18px 0 0;border-left:none;border-right:none;border-bottom:none}
  }
  @media print{.faddyfab,.faddy{display:none!important}}
  /* files attached in the Addy chat (#4439) */
  .addyfiles{display:none;flex-wrap:wrap;gap:6px;margin:6px 0 2px}
  .addyfile{display:inline-flex;align-items:center;gap:6px;max-width:100%;background:var(--soft);color:var(--ink);border:1px solid var(--line);border-radius:999px;padding:5px 6px 5px 10px;font-size:12.5px}
  .addyfile.err{border-color:#e5484d;color:#b4232a}
  .addyfile-n{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:200px}
  .addyfile button{background:none;border:none;color:inherit;font-size:16px;line-height:1;cursor:pointer;padding:0 4px;opacity:.65}
  .addyfile button:hover{opacity:1}
  .addyfile .addyspin{width:11px;height:11px}
  /* the floating button says what Addy is doing while the chat is closed (Trace 11/6) */
  .faddyfab-dot{display:none;position:absolute;top:-2px;right:-2px;width:14px;height:14px;border-radius:50%;border:2px solid #fff;background:#2fb37a}
  .faddyfab[data-st="new"] .faddyfab-dot{display:block}
  .faddyfab[data-st="ok"]{background:#b45309}
  .faddyfab[data-st="ok"] .faddyfab-dot{display:block;background:#f59e0b;animation:faddypulse 1.4s ease-in-out infinite}
  .faddyfab-spin{display:none;width:18px;height:18px;margin:0 2px;border-radius:50%;border:2.5px solid rgba(255,255,255,.35);border-top-color:#fff;animation:addyspin .8s linear infinite;flex:none}
  .faddyfab[data-st="work"] svg{display:none}
  .faddyfab[data-st="work"] .faddyfab-spin{display:block}
  @keyframes faddypulse{0%,100%{opacity:1}50%{opacity:.45}}
  @media (prefers-reduced-motion: reduce){.faddyfab-spin,.faddyfab-dot{animation:none!important}}

  /* TruLata TM mark on the wordmark (Trace 11/6, TRULATA filed, serial 50205006). TM only, never the
     registration mark until the registration issues. Text lockups only; client logos, sample names in the demos and an agency's own name are never touched (Trace 11/8). */
  .side .brand>img[alt="TruLata"]+span::after,.mbrand>img+b::after{content:"\2122";font-size:.55em;font-weight:700;vertical-align:super;margin-left:2px;letter-spacing:0}
  .side .brand>img[alt="TruLata"]+span::after{color:#fff}

  /* Phones (#6331 item 3, Magos QA 11/23): the header showed only the brand, with no tab title and no data stamp; the
     Social Scheduler month grid was 720px wide in a 390px screen; the Ask box cut its own placeholder. */
  @media(max-width:900px){
    .topbar{flex-wrap:wrap;row-gap:4px}
    .topbar .ttwrap{display:block;order:20;flex:1 1 100%;min-width:0}
    .topbar .ttwrap .tt{font-size:16px}
    .topbar .ttwrap .tcrumb{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  }
  @media(max-width:620px){
    /* first row keeps its compact size (brand on two lines, icon over label) instead of wrapping Export to a row of its own */
    .topbar > .mh,.topbar > .mbrand,.topbar > .exp,.topbar > .hcli{flex:0 0 0}
    table:has(> tbody > tr > td.sc-day){min-width:0!important}
    td.sc-day{padding:2px!important;font-size:10px}
    td.sc-day .sc-nl{display:none}
    td.sc-day > div[title],td.sc-day > div > div{font-size:10px!important;overflow:hidden;text-overflow:ellipsis}
    .mainwrap .askbar{flex-wrap:wrap}
    .mainwrap .askbar input{flex:1 1 100%}
    .mainwrap .askbar button:not(.askmic){flex:1 1 auto;min-height:42px}
    .mainwrap .askbar .askmic{min-height:42px;min-width:44px}
  }
