  :root{
    --bg:#131110; --surface:#1c1815; --surface-2:#241f1b; --hair:#38302a; --line:#736a5e;
    --ink:#f4f0ea; --ink-muted:#b3a99c; --ink-dim:#948a7d;
    --brand:#d8323c; /* reserved, unused (24 Sep 2026 — the brand mark replaces it everywhere; see docs/DECISIONS.md) */
    --money:#4ec98a; --wait:#e0a83f; --late:#ff6b6b; --focus:#8ab4ff;
    --dwb-green:#39FF14; /* brand-only: the wordmark's rule, the login accent, the app icon — never a status, a button fill, a chart series or a state. Close enough to --money on screen to be confused in code; they are not the same token. */
    --scrim:rgba(19,17,16,.72);
    --t-display:40px; --t-title:24px; --t-section:17px; --t-body:15px; --t-meta:13px; --t-label:12px;
    --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-5:24px; --s-6:32px; --s-7:48px;
    --r-sm:8px; --r-md:12px; --r-lg:16px; --r-full:999px;
    --font:"Manrope",system-ui,-apple-system,"Segoe UI",sans-serif;
    --disp:"Sora","Manrope",system-ui,sans-serif;
    --mono:"JetBrains Mono",ui-monospace,Menlo,Consolas,monospace;
    --ease:cubic-bezier(.2,.8,.2,1);
    color-scheme:dark;
  }
  /* three of the six type steps grow above 1024px (docs/DESIGN-SYSTEM.md §2's Phone/Desktop
     columns); body, meta and label are deliberately the same value everywhere in this block —
     that sameness is the fix for the old 15px-trapped-above-1024px bug. */
  @media (min-width:1024px){ :root{ --t-display:44px; --t-title:28px; --t-section:18px; } }
  *{box-sizing:border-box}
  html,body{background:var(--bg);color:var(--ink);font-family:var(--font);font-size:var(--t-body);line-height:1.45}
  body{margin:0;-webkit-font-smoothing:antialiased}
  button,input,select,textarea{font:inherit;color:inherit}
  button{cursor:pointer;border:0;background:none;padding:0;position:relative;overflow:hidden}
  :focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:var(--r-sm)}
  a{color:inherit;text-decoration:none}
  [disabled],[aria-disabled="true"]{color:var(--ink-dim);cursor:not-allowed}
  .num{font-family:var(--font);font-variant-numeric:tabular-nums} /* calm redesign: numbers use the body face, not a coding font */
  h1,h2,h3{font-family:var(--disp)}
  .disp-h1{font-family:var(--disp);font-weight:600;font-size:var(--t-title);margin:var(--s-1) 0 0;letter-spacing:-.01em}
  .dim{color:var(--ink-dim)}

  /* Motion pass (24 Sep 2026, docs/choices/round-3/BUILD-BRIEF.md §4) — last on purpose, since it
     is the layer that hides layout problems. Removed here: the ripple (redundant with the
     pressed state every interactive element already has) and the .rise/.pop per-item stagger
     (animation-delay: calc(var(--i)*Nms) on tr.row/.item/.day/.le), which replayed on every
     render — typing a field or ticking a task re-animated rows that had nothing to do with the
     change. .cb.on keeps its own pop — that is "row pops when ticked", a named base rule, not
     the stagger. One thing replaces both: the incoming place itself gets one fade + rise below,
     nothing inside it animates in individually. */
  @keyframes pop{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}
  @keyframes placeIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
  .place{animation:placeIn .16s var(--ease) both}
  @media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

  /* Cursor A — dot + trailing ring (site/src/cursor.ts holds the gate and the rAF lerp; this is
     only the paint). html.cursor-on is added only once that gate passes, so nothing here ever
     applies on a touch device or under reduced motion. */
  html.cursor-on, html.cursor-on *{cursor:none}
  html.cursor-on input, html.cursor-on select, html.cursor-on textarea{cursor:auto}
  .cursor-dot, .cursor-ring{position:fixed;top:0;left:0;border-radius:50%;pointer-events:none;z-index:60;transition:opacity .15s}
  .cursor-dot{width:8px;height:8px;margin:-4px 0 0 -4px;background:var(--ink)}
  .cursor-ring{width:26px;height:26px;margin:-13px 0 0 -13px;border:1.5px solid var(--ink-dim);transition:opacity .15s,width .15s var(--ease),height .15s var(--ease),margin .15s var(--ease)}
  .cursor-ring.big{width:40px;height:40px;margin:-20px 0 0 -20px;border-color:var(--ink)}

  /* every hover rule in the file lives here, gated on a real pointer — phones never get a
     stuck hover state after a tap (docs/DESIGN-SYSTEM.md §4) */
  @media (hover:hover){
    .btn:hover{background:#262c35;border-color:#414a56;transform:translateY(-1px)}
    .btn.primary:hover{opacity:.92}
    .btn.ghost:hover{color:var(--ink);background:var(--surface-2);border-color:var(--hair)}
    .chip:hover{color:var(--ink);border-color:var(--line);transform:translateY(-1px)}
    th.sortable:hover{color:var(--ink)}
    tr.row:hover{background:var(--surface-2)}
    tr.row:hover .pill{transform:translateX(2px)}
    .q .it:hover{background:var(--surface-2)}
    .cb:hover{border-color:var(--money);transform:scale(1.08)}
    .cal .item:hover{background:var(--surface-2)}
    .x:hover{color:var(--late);background:var(--surface-2)}
    .contact a:hover{border-color:var(--line);transform:translateY(-1px)}
    .day:hover{background:var(--surface-2)}
    .tabbtn:hover{color:var(--ink)}
    .navlink:hover{color:var(--ink);background:var(--surface-2)}
  }

  .btn{display:inline-flex;align-items:center;gap:var(--s-2);padding:var(--s-2) var(--s-4);border-radius:var(--r-md);font-weight:700;font-size:var(--t-meta);background:var(--surface-2);border:1px solid var(--line);color:var(--ink);transition:transform .15s var(--ease),background .15s,border-color .15s,box-shadow .15s}
  .btn[hidden]{display:none} /* author display:inline-flex would otherwise win over the UA's [hidden] rule (24 Sep 2026 — Today's focus-card buttons) */
  .btn:active{background:var(--surface-2);transform:scale(.98)}
  .btn.primary{background:var(--ink);border-color:transparent;color:var(--bg)}
  .btn.primary:active{transform:scale(.98);opacity:.88}
  .btn.ghost{background:transparent;border-color:transparent;color:var(--ink-muted)}
  .btn.ghost:active{color:var(--ink);background:var(--surface-2);border-color:var(--hair);transform:scale(.98)}
  .btn.sm{padding:var(--s-1) var(--s-2);font-size:var(--t-label);border-radius:var(--r-sm)}
  .btn.danger{color:var(--late)}
  .status{font-size:var(--t-label);color:var(--ink-muted);font-weight:700;display:flex;align-items:center;gap:var(--s-1)}
  .status .dot{width:7px;height:7px;border-radius:50%;background:var(--ink-dim);transition:background .3s}
  .status.on .dot{background:var(--money)}
  .status.err .dot{background:var(--late)}
  .grow{flex:1}

  /* numbers strip (Clients tab, unchanged from Phase 3 round 1) */
  .strip{display:flex;gap:var(--s-5);align-items:center;flex-wrap:wrap;margin-block:0 var(--s-4);padding:var(--s-3) 0;border-bottom:1px solid var(--hair)}
  .strip .kpi{display:flex;align-items:baseline;gap:var(--s-1);white-space:nowrap}
  .strip .kpi .val{font-family:var(--disp);font-weight:600;font-size:var(--t-title);letter-spacing:-.02em;font-variant-numeric:tabular-nums}
  .strip .kpi .lbl{font-size:var(--t-label);color:var(--ink-muted);font-weight:600}
  .strip .kpi.late .val{color:var(--late)}.strip .kpi.wait .val{color:var(--wait)}.strip .kpi.money .val{color:var(--money)}.strip .kpi.info .val{color:var(--ink-muted)}
  .strip .kpi.late.zero .val{color:var(--ink-muted)}

  /* layout (Clients tab) */
  .cols{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:var(--s-5);align-items:start}
  @media (max-width:1000px){.cols{grid-template-columns:minmax(0,1fr)}.side{order:-1}}
  .panel{background:var(--surface);border:1px solid var(--hair);border-radius:var(--r-lg);overflow:hidden;min-width:0}
  .ph{display:flex;align-items:center;gap:var(--s-2);padding:var(--s-3) var(--s-4);border-bottom:1px solid var(--hair);flex-wrap:wrap}
  .ph.filters{padding-top:var(--s-2);padding-bottom:var(--s-2)}
  .ph h2{margin:0;font-size:var(--t-section);font-weight:800;letter-spacing:.01em}
  .ph .count{font-family:var(--font);font-size:var(--t-label);color:var(--ink-muted);background:var(--surface);padding:2px var(--s-2);border-radius:var(--r-sm);border:1px solid var(--hair)}
  .chips{display:flex;gap:var(--s-1);flex-wrap:wrap}
  .chip{padding:var(--s-1) var(--s-3);border-radius:var(--r-full);font-size:var(--t-label);font-weight:700;color:var(--ink-muted);background:var(--surface);border:1px solid var(--hair);transition:all .18s var(--ease)}
  .chip:active{color:var(--ink);background:var(--surface-2);transform:scale(.98)}
  .chip.on{color:var(--ink);background:var(--surface-2);border-color:#4a5563;box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)}
  .search{background:var(--surface);border:1px solid var(--hair);border-radius:var(--r-sm);padding:var(--s-2) var(--s-3);font-size:var(--t-meta);width:280px;max-width:100%;color:var(--ink);transition:border-color .15s,box-shadow .15s}
  .search:focus{border-color:var(--focus)}
  .search::placeholder{color:var(--ink-dim)}

  /* pipeline table */
  .tbl-wrap{overflow-x:auto}
  table{width:100%;border-collapse:collapse;min-width:0}
  th{font-size:var(--t-label);font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-muted);text-align:left;padding:var(--s-3);border-bottom:1px solid var(--hair);white-space:nowrap;background:var(--surface)}
  th.sortable{cursor:pointer;user-select:none}
  th.sorted{color:var(--ink)}
  th.num-h{text-align:right}
  td{padding:var(--s-2) var(--s-3);border-bottom:1px solid var(--hair);vertical-align:middle;height:56px}
  tr.row{cursor:pointer;transition:background .15s,transform 90ms}
  tr.row:active{background:var(--surface-2);transform:scale(.98)}
  tr.row:last-child td{border-bottom:0}
  .cname{font-family:var(--disp);font-weight:700;font-size:var(--t-section);display:flex;align-items:center;gap:var(--s-2);white-space:nowrap}
  .cmeta{color:var(--ink-muted);font-size:var(--t-meta);font-weight:600;margin-top:3px}
  .cmeta.one{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:240px}
  .cc{display:inline-grid;place-items:center;width:26px;height:18px;border-radius:var(--r-sm);background:var(--surface-2);border:1px solid var(--line);font-family:var(--font);font-weight:700;font-size:var(--t-label);color:var(--ink-muted);letter-spacing:.04em;flex:none}
  .pill{display:inline-flex;align-items:center;gap:var(--s-1);padding:4px var(--s-2);border-radius:var(--r-full);font-size:var(--t-label);font-weight:700;white-space:nowrap;border:1px solid transparent;transition:transform .15s var(--ease)}
  .pill i{width:7px;height:7px;border-radius:50%;background:currentColor;display:inline-block}
  .st-new{color:var(--ink-muted);background:var(--surface);border-color:var(--hair)}
  .st-contacted{color:var(--ink-muted);background:var(--surface-2);border-color:var(--line)}
  .st-pricelist{color:var(--ink-muted);background:transparent}
  .st-offer{color:var(--ink-muted);background:transparent}
  .st-payment{color:var(--wait);background:transparent}
  .pill.st-payment{color:var(--wait);background:transparent}.pill.st-warehouse{color:var(--ink-muted);background:transparent}
  .pill.st-shipped,.pill.st-repeat{color:var(--money);background:transparent}
  .st-warehouse{color:var(--ink-muted);background:transparent}
  .st-shipped{color:var(--money);background:transparent}
  .st-repeat{color:var(--money);background:transparent}
  .st-parked{color:var(--ink-dim);background:var(--surface);border-color:var(--hair)}
  .tag{display:inline-block;padding:3px var(--s-2);border-radius:var(--r-sm);font-size:var(--t-label);font-weight:700;color:var(--ink-muted);background:var(--surface);border:1px solid var(--hair);white-space:nowrap}
  .tag.brook{color:var(--ink-muted);border-color:var(--hair);background:var(--surface)}
  .tag.joint{color:var(--wait);border-color:var(--hair);background:transparent}
  .tag.pl{font-family:var(--font);font-weight:600}
  .next{font-weight:600;max-width:300px}
  td.next{max-width:340px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
  .due{font-family:var(--font);font-size:var(--t-meta);color:var(--ink-muted);white-space:nowrap;font-weight:600}
  .due.over{color:var(--late);font-weight:700}.due.today{color:var(--ink-muted)}
  .value{font-family:var(--font);font-size:var(--t-meta);font-weight:700;white-space:nowrap;color:var(--wait)}
  .value.empty{color:var(--ink-dim);font-weight:500}
  td.vcell{text-align:right}td.vcell .cmeta{font-family:var(--font);font-size:var(--t-label)}
  .empty{padding:var(--s-6) var(--s-4);text-align:center;color:var(--ink-muted);font-weight:600}

  /* phone client card (docs/choices/round-3/BUILD-BRIEF.md §3 row 4, variant C) — the table's
     desktop-only; a card carries the same fields plus the primary contact with tap-to-call and
     tap-to-mail, so a client need not be opened to make contact. */
  .client-cards{display:flex;flex-direction:column;gap:var(--s-3)}
  .client-card{background:var(--surface);border-radius:var(--r-lg);padding:var(--s-4);display:flex;flex-direction:column;gap:var(--s-2)}
  .client-card:active{transform:scale(.99)}
  .cc-head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--s-2)}
  .cc-head .cname{white-space:normal}
  .quiet-chip{flex:none;font-size:var(--t-label);font-weight:600;color:var(--ink-muted);white-space:nowrap}
  .quiet-chip.wait{color:var(--wait)}
  .quiet-chip.late{color:var(--late)}
  .cc-next{color:var(--ink-muted);font-size:var(--t-body)}
  .contact-block{display:flex;align-items:center;gap:var(--s-2);font-size:var(--t-meta);color:var(--ink-muted)}
  .contact-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
  .contact-btn{display:grid;place-items:center;width:44px;height:44px;margin:calc(var(--s-2) * -1) calc(var(--s-3) * -1);border-radius:var(--r-full);color:var(--ink-muted);flex:none}
  .contact-btn:active{background:var(--surface-2);color:var(--ink)}
  @media (hover:hover){ .contact-btn:hover{background:var(--surface-2);color:var(--ink)} }
  .contact-more{color:var(--ink-dim);font-size:var(--t-label);white-space:nowrap;flex:none}
  .cc-foot{display:flex;align-items:center;justify-content:space-between;gap:var(--s-2);flex-wrap:wrap}
  .cc-foot .value{color:var(--ink)}

  /* right column (Clients tab's Today rail — unchanged this round) */
  .side{display:flex;flex-direction:column;gap:var(--s-5)}
  .small-lbl{font-size:var(--t-label);color:var(--ink-muted);font-weight:600;white-space:nowrap}
  .q{display:flex;flex-direction:column}
  .q .it{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:var(--s-2);align-items:center;padding:var(--s-2) var(--s-3);border-bottom:1px solid var(--hair);cursor:pointer;transition:background .15s,transform 90ms}
  .q .it:active{background:var(--surface-2);transform:scale(.98)}.q .it:last-child{border-bottom:0}
  .q .dot{width:8px;height:8px;border-radius:50%;background:var(--ink-dim)}
  .q .late .dot{background:var(--late)}.q .money .dot{background:var(--wait)}.q .today .dot{background:var(--ink-muted)}
  .q .body{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .q .who{font-weight:600}.q .txt{color:var(--ink-muted);font-size:var(--t-meta)}
  .q .when{font-family:var(--font);font-weight:600;font-size:var(--t-label);color:var(--ink-muted);white-space:nowrap}.q .late .when{color:var(--late)}.q .money .when{color:var(--wait)}.q .today .when{color:var(--ink-muted)}
  .q .cb{margin:0}.q .it.done .body{color:var(--ink-dim);text-decoration:line-through}
  .q .grp{padding:var(--s-2) var(--s-3) var(--s-1);font-size:var(--t-label);font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--ink-muted);background:var(--surface);border-bottom:1px solid var(--hair);display:flex;align-items:center;justify-content:space-between}
  .q .it.has-tasks{align-items:start}.q .it.has-tasks .dot{margin-top:6px}.q .it.has-tasks>.when{padding-top:2px}
  .q .subs{display:flex;flex-direction:column;gap:var(--s-1);margin-top:var(--s-2)}
  .q .sub{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:var(--s-2);align-items:center}
  .q .sub .cb{width:16px;height:16px;border-radius:var(--r-sm)}.q .sub .cb svg{width:10px;height:10px}
  .q .sub .txt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .cb{width:20px;height:20px;border-radius:var(--r-sm);border:1.5px solid var(--line);background:var(--surface);flex:none;margin-top:1px;display:grid;place-items:center;transition:all .18s var(--ease);overflow:visible}
  .cb:active{transform:scale(.94)}
  .cb.on{background:var(--money);border-color:var(--money);color:#0b1f14;animation:pop .25s var(--ease)}
  .cb svg{width:12px;height:12px;display:none}
  .cb.on svg{display:block}
  .addrow{display:flex;gap:var(--s-2);padding:var(--s-3) var(--s-4);border-top:1px solid var(--hair);background:var(--surface);flex-wrap:wrap}
  .addrow input{flex:1;background:var(--surface);border:1px solid var(--hair);border-radius:var(--r-sm);padding:var(--s-2) var(--s-3);font-size:var(--t-body);min-width:0}
  .addrow input:focus{border-color:var(--focus)}
  .addrow input[type=date]{flex:0 0 auto;width:136px;color-scheme:dark}
  .addrow #todoClient{flex:1 1 120px}
  .daygrp{padding:var(--s-2) var(--s-4) 5px;font-size:var(--t-label);font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--ink-muted);background:var(--surface);border-bottom:1px solid var(--hair)}
  .daygrp.over{color:var(--late)}
  .daygrp.today{color:var(--wait)}
  .cal .item{cursor:pointer}
  .cal .item:active{background:var(--surface-2);transform:scale(.98)}
  .cal .kind{font-size:var(--t-label);font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-dim);flex:none;margin-top:4px;width:46px}
  .item{display:flex;align-items:flex-start;gap:var(--s-2);padding:var(--s-2) var(--s-4);border-bottom:1px solid var(--hair);transition:background .15s,transform 90ms}
  .item:last-child{border-bottom:0}
  .item .txt{flex:1;min-width:0;font-weight:600}
  .item .txt small{display:block;color:var(--ink-muted);font-weight:600;font-size:var(--t-label);margin-top:1px}
  .item .txt small b{color:var(--late)}
  .item.done .txt{color:var(--ink-dim);text-decoration:line-through}
  .x{color:var(--ink-dim);font-size:var(--t-section);line-height:1;padding:2px var(--s-2);border-radius:var(--r-sm);transition:all .15s}
  .x:active{transform:scale(.94)}

  /* drawer / sheet — 200ms slide, scrim fades 160ms (docs/choices/round-3/BUILD-BRIEF.md §4) */
  .scrim{position:fixed;inset:0;background:var(--scrim);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);z-index:20;opacity:0;pointer-events:none;transition:opacity .16s}
  .scrim.open{opacity:1;pointer-events:auto}
  .drawer{position:fixed;top:0;right:0;bottom:0;width:min(600px,100%);background:var(--surface);border-left:1px solid var(--hair);z-index:21;transform:translateX(102%);transition:transform .2s cubic-bezier(.22,1,.36,1);display:flex;flex-direction:column;padding-top:env(safe-area-inset-top,0px);box-shadow:-20px 0 60px rgba(0,0,0,.45)}
  .drawer.open{transform:none}
  .dh{display:flex;align-items:center;gap:var(--s-2);padding:var(--s-4) var(--s-5);border-bottom:1px solid var(--hair)}
  .dh h3{margin:0;font-size:var(--t-section);font-weight:800;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  /* Client drawer C (24 Sep 2026, docs/choices/round-3/BUILD-BRIEF.md §3 row 7): stage, next
     action and due date sit here, above both the tabs and the two panes, so they read the same
     "above the fold" on a phone tab as in a desktop pane — never a scroll or a tab away. */
  .dhead{display:flex;flex-direction:column;gap:var(--s-3);padding:var(--s-4) var(--s-5);border-bottom:1px solid var(--hair)}
  .prog{display:flex;gap:var(--s-1)}
  .prog span{flex:1;height:5px;border-radius:var(--r-sm);background:var(--hair);transition:background .3s}
  .prog span.on{background:var(--pc,var(--ink-muted))}
  .prog span.cur{box-shadow:0 0 0 2px var(--surface),0 0 0 3px var(--pc,var(--ink-muted))}
  /* phone: three tabs (Details / Documents / Activity) over the one-column body below .dhead;
     desktop hides this and shows every section at once in two panes (see the 1024px override). */
  .dtabs{width:100%}
  .dtabs .vtab{flex:1;text-align:center}
  .dsec{display:none}
  .drawer[data-tab="details"] .dsec[data-tab="details"],
  .drawer[data-tab="docs"] .dsec[data-tab="docs"],
  .drawer[data-tab="activity"] .dsec[data-tab="activity"]{display:flex;flex-direction:column;gap:var(--s-4)}
  .db{flex:1;overflow-y:auto;padding:var(--s-4) var(--s-5) 30px;display:flex;flex-direction:column;gap:var(--s-4)}
  .dcol{display:contents}
  .stage-propose{padding:var(--s-3);border-radius:var(--r-md);background:var(--surface-2);border:1px solid var(--hair);font-size:var(--t-meta);font-weight:600}
  .stage-propose b{font-weight:800}
  .stage-propose-actions{display:flex;gap:var(--s-2);margin-top:var(--s-2)}
  .grid2{display:grid;grid-template-columns:1fr 1fr;gap:var(--s-3)}
  @media (max-width:520px){.grid2{grid-template-columns:1fr}}
  .f{display:flex;flex-direction:column;gap:5px}
  .f label{font-size:var(--t-label);font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-muted)}
  .f input,.f select,.f textarea{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-sm);padding:var(--s-2) var(--s-3);font-size:var(--t-body);font-weight:600;width:100%;color:var(--ink);transition:border-color .15s,box-shadow .15s}
  .f input[type=date]{color-scheme:dark}
  .f select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--ink-muted) 50%),linear-gradient(135deg,var(--ink-muted) 50%,transparent 50%);background-position:calc(100% - 16px) 50%,calc(100% - 11px) 50%;background-size:5px 5px;background-repeat:no-repeat;padding-right:30px}
  .f textarea{min-height:72px;resize:vertical;font-weight:500;line-height:1.5}
  .f input:focus,.f select:focus,.f textarea:focus{border-color:var(--focus)}
  .sec{font-size:var(--t-label);font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--ink-muted);padding-bottom:var(--s-2);border-bottom:1px solid var(--hair);display:flex;align-items:center;justify-content:space-between}
  .quick{display:flex;gap:var(--s-2);flex-wrap:wrap}
  /* per-client task list (drawer) and "done today" (Clients screen bottom) — a tick never
     deletes, it just moves the row to done + shows when (upgrade round Step 4, 23 Sep 2026) */
  .tasks{display:flex;flex-direction:column;margin-bottom:var(--s-3)}
  .task-row{display:flex;align-items:center;gap:var(--s-3);padding:var(--s-2) 0;border-bottom:1px solid var(--hair)}
  .task-row:last-child{border-bottom:0}
  .task-row .txt{flex:1;min-width:0;font-weight:600}
  .task-row.done .txt{color:var(--ink-dim);text-decoration:line-through}
  .task-row .when{font-size:var(--t-label);color:var(--ink-dim);flex:none;white-space:nowrap}
  .docs{display:flex;flex-direction:column;gap:6px}
  .doc{display:flex;flex-direction:column;gap:var(--s-2);padding:var(--s-2) var(--s-3);border:1px solid var(--hair);border-radius:var(--r-sm);background:var(--surface)}
  .doc-main{display:grid;grid-template-columns:auto 1fr auto;gap:var(--s-2);align-items:center}
  .doc-actions{display:flex;justify-content:flex-end;align-items:center;gap:var(--s-2)}
  .doc .k{font-size:var(--t-label);font-weight:800;letter-spacing:.06em;text-transform:uppercase;padding:3px 7px;border-radius:var(--r-sm)}
  .doc .k.invoice{color:var(--money);background:transparent} .doc .k.proforma{color:var(--ink-muted);background:transparent}
  .doc .n{font-weight:700;min-width:0} .doc .n small{display:block;color:var(--ink-muted);font-weight:600;font-size:var(--t-label)}
  .doc .a{font-family:var(--font);font-weight:700;white-space:nowrap}
  .doc .a.paid{color:var(--money)} .doc .a.open{color:var(--wait)}
  .docadd{display:grid;grid-template-columns:1fr 1.4fr 1fr 1fr auto;gap:6px}
  @media (max-width:560px){.docadd{grid-template-columns:1fr 1fr}}
  .docadd input,.docadd select{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-sm);padding:var(--s-2);font-size:var(--t-body);font-weight:600;min-width:0;width:100%}
  .docadd input[type=date]{color-scheme:dark}
  .log{display:flex;flex-direction:column}
  .le{display:flex;gap:var(--s-3);padding:var(--s-2) 0;border-bottom:1px dashed var(--hair)}
  .le:last-child{border-bottom:0}
  .le .t{font-family:var(--font);font-size:var(--t-label);color:var(--ink-dim);white-space:nowrap;padding-top:2px}
  .le .m{font-weight:600;flex:1;white-space:pre-wrap}
  .le .m.sys{color:var(--ink-muted);font-weight:500}
  .logadd{display:flex;gap:var(--s-2)}
  .logadd input{flex:1;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-sm);padding:var(--s-2) var(--s-3);font-size:var(--t-body);min-width:0}
  .logadd input:focus{border-color:var(--focus)}
  .df{display:flex;gap:var(--s-2);padding:var(--s-4) var(--s-5);border-top:1px solid var(--hair);background:var(--surface);padding-bottom:calc(var(--s-4) + env(safe-area-inset-bottom,0px))}
  .about{font-size:var(--t-meta);color:var(--ink-muted);line-height:1.55;font-weight:500;white-space:pre-wrap}
  .toast{position:fixed;left:50%;bottom:calc(var(--s-6) + env(safe-area-inset-bottom,0px));transform:translateX(-50%) translateY(20px);background:var(--surface-2);border:1px solid var(--line);padding:var(--s-3) var(--s-4);border-radius:var(--r-md);font-weight:700;font-size:var(--t-meta);opacity:0;transition:all .25s var(--ease);z-index:30;pointer-events:none;box-shadow:0 12px 34px rgba(0,0,0,.5)}
  .toast.show{opacity:1;transform:translateX(-50%)}
  .banner{margin:var(--s-4) var(--s-6) 0;padding:var(--s-2) var(--s-3);border-radius:var(--r-md);background:var(--surface-2);border:1px solid var(--hair);color:var(--wait);font-weight:700;font-size:var(--t-meta)}

  /* calendar */
  .legend{display:flex;gap:var(--s-3);flex-wrap:wrap;padding:var(--s-2) var(--s-4);border-bottom:1px solid var(--hair);font-size:var(--t-label);font-weight:700;color:var(--ink-muted)}
  .legend i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;vertical-align:middle}
  .mtot{display:flex;gap:var(--s-3);flex-wrap:wrap;font-size:var(--t-label);font-weight:700;color:var(--ink-muted)}
  .mtot b{font-family:var(--font);color:var(--ink);font-weight:700}
  .mtot b.g{color:var(--money)} .mtot b.b{color:var(--ink-muted)}
  /* Month/Week/Agenda control (upgrade round bug 1, added back 23 Sep 2026) */
  .viewtabs{display:flex;gap:2px;background:var(--surface-2);border-radius:var(--r-sm);padding:2px}
  .vtab{padding:4px 12px;border-radius:6px;font-size:var(--t-label);font-weight:700;color:var(--ink-muted)}
  .vtab.on{background:var(--surface);color:var(--ink)}
  .mgrid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:var(--hair);position:relative}
  .mgrid[hidden],.wgrid[hidden],.agenda[hidden]{display:none} /* author display:grid/flex would otherwise win over the UA's [hidden] rule */
  /* Calendar grid C — light follows (docs/choices/round-3/BUILD-BRIEF.md §4): calendar.ts writes
     --mx/--my via a single rAF-throttled pointermove on the grid container, no per-cell
     listeners. One composited layer; touch gets the existing cell press state instead. */
  .mgrid::after{content:'';position:absolute;inset:0;pointer-events:none;z-index:1;opacity:0;background:radial-gradient(220px circle at var(--mx,50%) var(--my,50%), rgba(244,240,234,.05), transparent 70%);transition:opacity .2s}
  @media (hover:hover){ .mgrid:hover::after{opacity:1} }
  .agenda{display:flex;flex-direction:column}
  .agenda .grp{font-size:var(--t-label);font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--ink-muted);padding:var(--s-3) var(--s-4) var(--s-1)}
  /* Calendar B (docs/choices/round-3/BUILD-BRIEF.md §3 row 5) — a seven-day strip, today filled,
     the week written out beneath it in the same .trow component Home's own lists already use. */
  .wgrid{display:flex;flex-direction:column}
  .wstrip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:var(--s-1);padding:var(--s-3) var(--s-4)}
  .wtile{display:flex;flex-direction:column;align-items:center;gap:2px;padding:var(--s-2) 0;border-radius:var(--r-md);background:var(--surface);color:var(--ink-muted)}
  .wtile:active{transform:scale(.96)}
  @media (hover:hover){ .wtile:hover{background:var(--surface-2)} }
  .wt-dow{font-size:var(--t-label);font-weight:700;text-transform:uppercase;color:var(--ink-dim)}
  .wt-num{font-family:var(--disp);font-weight:700;font-size:var(--t-section);color:var(--ink)}
  .wtile.today{background:var(--ink)}
  .wtile.today .wt-dow,.wtile.today .wt-num{color:var(--bg)}
  .wtile.sel{box-shadow:inset 0 0 0 2px var(--focus)}
  .wagenda{display:flex;flex-direction:column;padding:0 var(--s-4) var(--s-4)}
  .wagenda .trow.sel{background:var(--surface-2)}
  .wagenda .trow{align-items:start}
  .wagenda .daycol{margin-top:1px}
  /* the generic .tbody ellipsis is fine for the tight Home lists but a follow-up note is
     free text with no length limit — wrap it instead of truncating (Brook, 24 Sep 2026). */
  .wagenda .tbody{white-space:normal;text-overflow:clip;overflow:visible}
  .wagenda .wdot{margin-top:6px}
  .wdot{width:7px;height:7px;border-radius:50%;flex:none;align-self:center}
  .dow{background:var(--surface);padding:var(--s-2) var(--s-3);font-size:var(--t-label);font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-muted);text-align:center}
  .day{background:var(--surface);min-width:0;min-height:96px;max-height:132px;overflow:hidden;padding:var(--s-2);display:flex;flex-direction:column;gap:4px;cursor:pointer;transition:background .15s,transform 90ms}
  .day:active{background:var(--surface-2);transform:scale(.98)}
  .day.out{opacity:.35}
  .day.sel{box-shadow:inset 0 0 0 2px var(--focus)}
  .day .dn{font-family:var(--font);font-size:var(--t-meta);font-weight:700;color:var(--ink-muted);display:flex;justify-content:space-between;align-items:center}
  .day.today .dn{color:var(--wait)}
  .day.today .dn span:first-child{background:var(--wait);color:#1a1200;border-radius:var(--r-sm);padding:0 6px}
  .day .amt{font-family:var(--font);font-size:var(--t-label);font-weight:700}
  .ev{font-size:var(--t-label);font-weight:700;padding:2px 6px;border-radius:var(--r-sm);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-left:2px solid var(--ec,var(--ink-dim));background:var(--surface)}
  .ev.lg{color:var(--ink-muted)} /* --ec is set inline per event: colour is money state, not category (docs/DESIGN-SYSTEM.md §1) */
  .ev[data-id]{cursor:pointer}
  @media (hover:hover){ .ev[data-id]:hover{background:var(--surface-2)} }
  .more{font-size:var(--t-label);color:var(--ink-muted);font-weight:700}
  @media (max-width:760px){.day{min-height:64px;padding:var(--s-2)}.ev{display:none}.day .dots{display:flex;gap:3px;flex-wrap:wrap}.dots i{width:6px;height:6px;border-radius:50%;display:inline-block}}
  @media (min-width:761px){.dots{display:none}}

  /* Stats (upgrade round Step 5, 23 Sep 2026; period switch added 24 Sep 2026) — desktop-only,
     so no phone-width rules needed */
  #statsPeriodTabs{margin-bottom:var(--s-5)}
  .stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--s-5)}
  @media (max-width:760px){.stats-grid{grid-template-columns:1fr}} /* Stats has no phone nav link, but the route itself isn't blocked — stack rather than clip if it's ever reached */
  /* the relaxed density's one big number per card (docs/choices/round-2/stats-relaxed.png, B) */
  .stat-big{font-family:var(--disp);font-weight:700;font-size:var(--t-display);letter-spacing:-.02em;color:var(--ink);padding:var(--s-4) var(--s-4) 0;overflow-wrap:break-word}
  .stat-sub{padding:var(--s-2) var(--s-4) var(--s-4);color:var(--ink-muted);font-size:var(--t-meta);font-weight:500;line-height:1.5}
  .stat-row{display:flex;align-items:center;gap:var(--s-3);padding:var(--s-2) var(--s-4);border-bottom:1px solid var(--hair)}
  .stat-row:last-child{border-bottom:0}
  .stat-row.tap{cursor:pointer}
  @media (hover:hover){ .stat-row.tap:hover{background:var(--surface-2)} }
  /* a client name has no length limit — wrap it rather than ellipsis it away (24 Sep 2026) */
  .stat-row-lbl{flex:1 1 150px;min-width:0;font-weight:600;white-space:normal;overflow-wrap:break-word}
  .stat-bar{flex:2 1 auto;height:6px;border-radius:var(--r-full);background:var(--hair);overflow:hidden;align-self:center}
  .stat-bar-fill{height:100%;background:var(--ink-muted);border-radius:var(--r-full)}
  .stat-row-val{flex:0 0 auto;font-weight:700;white-space:nowrap;color:var(--ink-muted)}

  /* sign-in gate — split B (docs/choices/round-3/BUILD-BRIEF.md §3 row 8): left is brand and the
     one line of copy allowed on this screen, right is the card on a faint grid. "designwbrook" as
     a word appears nowhere else in the product (docs/DESIGN-SYSTEM.md §1's wordmark subsection). */
  .gate{position:fixed;inset:0;background:var(--bg);z-index:50;display:grid;grid-template-columns:1fr 1fr}
  .gate-left{position:relative;display:flex;flex-direction:column;justify-content:center;padding:var(--s-7);gap:var(--s-3)}
  .gate-by{font-family:var(--font);font-weight:700;font-size:10px;letter-spacing:.14em;color:var(--ink-dim)}
  .gate-tagline{margin:var(--s-4) 0 0;font-family:var(--disp);font-weight:600;font-size:var(--t-title);color:var(--ink)}
  .gate-tagline .hl{color:var(--dwb-green)}
  .gate-url{position:absolute;left:var(--s-7);bottom:var(--s-7);color:var(--ink-dim);font-size:var(--t-label);font-weight:600}
  .gate-right{
    position:relative;display:flex;align-items:center;justify-content:center;padding:var(--s-4);
    background-image:
      repeating-linear-gradient(0deg, rgba(244,240,234,.04) 0 1px, transparent 1px 48px),
      repeating-linear-gradient(90deg, rgba(244,240,234,.04) 0 1px, transparent 1px 48px);
  }
  /* Background A — warm wash (docs/choices/round-3/BUILD-BRIEF.md §4): two radial lights, opacity
     and transform only, one composited layer. Login and empty states only, never behind data —
     shared with .empty below rather than duplicated. */
  .empty{position:relative}
  .gate-right::before, .empty::before{
    content:'';position:absolute;inset:0;pointer-events:none;z-index:-1;
    background:
      radial-gradient(360px circle at 20% 25%, rgba(78,201,138,.10), transparent 65%),
      radial-gradient(420px circle at 80% 75%, rgba(224,168,63,.08), transparent 65%);
    animation:warmWash 14s ease-in-out infinite;
  }
  @keyframes warmWash{0%,100%{opacity:.6;transform:scale(1)}50%{opacity:1;transform:scale(1.08)}}
  .gate-card{width:min(380px,100%);background:var(--surface);border:1px solid var(--hair);border-radius:var(--r-lg);padding:var(--s-5);display:flex;flex-direction:column;gap:var(--s-3);position:relative;z-index:1}
  .gate-card p{margin:0;color:var(--ink-muted);font-size:var(--t-meta);font-weight:600}
  .gate-card .err{color:var(--late);font-size:var(--t-label);font-weight:700;min-height:16px}
  /* Login entrance A — fade (docs/choices/round-3/BUILD-BRIEF.md §4): opacity only, no transform,
     220ms, staggered 0/60/120ms across the mark, the card's own copy, and the button. */
  @keyframes fadeIn{from{opacity:0}to{opacity:1}}
  .gate-card .wordmark, .gate-card .gate-by{animation:fadeIn .22s var(--ease) both}
  .gate-card p, .gate-card .err{animation:fadeIn .22s var(--ease) both;animation-delay:60ms}
  .gate-card button{animation:fadeIn .22s var(--ease) both;animation-delay:120ms}
  @media (max-width:1023px){
    /* "Phone: the left column drops, the card sits on the grid" — the tagline and url go with it.
       The mark and BY DESIGNWBROOK live in .gate-card itself (see showSignIn() in store.ts), not
       .gate-left, so they survive the drop and designwbrook still appears somewhere on a phone. */
    .gate{display:flex}
    .gate-left{display:none}
    .gate-right{width:100%}
  }

  /* account button + menu — lives in the sidebar; on phone it is hidden (see .app-shell below) */
  .acct{position:relative}
  .acct-btn{width:44px;height:44px;padding:0;border-radius:50%;justify-content:center;font-family:var(--disp);background:var(--surface-2);border:1px solid var(--line);transition:transform 90ms}
  .acct-btn:active{transform:scale(.94)}
  /* Dropdowns and selects C — scale from the control (docs/choices/round-3/BUILD-BRIEF.md §4):
     transform-origin at the button's own corner, 0.94 → 1 with opacity, 160ms in, 120ms out
     (main.ts's showAcctMenu times the [hidden] attribute to the close curve's own duration). */
  .acct-menu{position:absolute;left:0;bottom:44px;min-width:220px;background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r-md);padding:var(--s-3);box-shadow:0 12px 34px rgba(0,0,0,.5);display:flex;flex-direction:column;gap:var(--s-2);z-index:6;transform-origin:bottom left;transform:scale(.94);opacity:0;transition:transform .12s cubic-bezier(.2,.8,.25,1),opacity .12s cubic-bezier(.2,.8,.25,1)}
  .acct-menu.open{transform:scale(1);opacity:1;transition-duration:.16s}
  .acct-menu[hidden]{display:none}
  .acct-lbl{font-size:var(--t-label);font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-muted)}
  .acct-mail{font-weight:700;font-size:var(--t-meta);overflow-wrap:anywhere}
  .acct-menu .btn{justify-content:center}

  /* ═══════════════════════════ calm redesign shell (22 Sep 2026) ═══════════════════════════
     Four places behind a phone tab bar / desktop sidebar (docs/06-PROMPT-CALM-REDESIGN.md).
     One warm near-black canvas, two quiet surface tones, no card borders, soft dividers only.
     Brand green (--dwb-green) is the only colour on the mark now; status is a dot, never a
     coloured text block (24 Sep 2026 — the red logo mark is retired, see docs/DECISIONS.md). */

  /* .page-shell wraps the phone topbar and .app-shell together so the two share one 100vh
     budget — .app-shell used to carry min-height:100vh itself, which meant adding the topbar
     (24 Sep 2026, brand PR) as its sibling could only ever push the page 39px past the viewport,
     no matter how much space was trimmed inside .app-shell's own content. */
  .page-shell{display:flex;flex-direction:column;min-height:100vh}
  .app-shell{display:flex;flex:1;min-height:0}
  .shell-main{flex:1;min-width:0;padding:var(--s-5) var(--s-5) calc(84px + env(safe-area-inset-bottom,0px));position:relative}
  .place[hidden]{display:none}
  .phone-only{display:block}.desktop-only{display:none}

  /* Brand wordmark (docs/DESIGN-SYSTEM.md §"Brand wordmark") — one component, three sizes, used
     in the sidebar, the phone header and the login screen. The rule is a token-driven element,
     not a hand-drawn div: 34% of the wordmark's own width, 2px tall, --dwb-green, always below
     the text. Static, non-interactive — it carries no hover/focus/active/disabled state. */
  .wordmark{display:inline-flex;flex-direction:column;width:fit-content;gap:2px;font-family:var(--disp);font-weight:600;letter-spacing:-.012em;color:var(--ink);line-height:1}
  .wordmark-text{white-space:nowrap}
  .wordmark-rule{width:34%;height:2px;border-radius:2px;background:var(--dwb-green)}
  .wordmark-phone{font-size:15px}
  .wordmark-sidebar{font-size:16px}
  .wordmark-login{font-size:28px}
  .phone-topbar{padding:var(--s-2) var(--s-4);border-bottom:1px solid var(--hair);background:var(--surface)}

  /* the "+" sits in the screen header row on Home and Clients only — never Today or Calendar,
     never floating over content. Quiet icon button on phone, no glow: red is the logo mark and
     the sign-in card's own button, nothing else (docs/DESIGN-SYSTEM.md §1). */
  .fab-add{width:44px;height:44px;border-radius:50%;background:var(--surface-2);color:var(--ink);display:grid;place-items:center;flex:none}
  .fab-add .fab-label{display:none}
  .fab-add .fab-plus{font-size:var(--t-title);line-height:1}

  /* phone bottom tab bar — Home / Today / Clients / Calendar, always visible, never scrolls away */
  .tabbar{position:fixed;left:0;right:0;bottom:0;height:64px;background:var(--surface);border-top:1px solid var(--hair);display:flex;align-items:center;justify-content:space-around;padding-bottom:env(safe-area-inset-bottom,0);z-index:14}
  .tabbtn{display:flex;flex-direction:column;align-items:center;gap:3px;color:var(--ink-muted);font-size:var(--t-label);font-weight:600;width:76px;padding:var(--s-1) 0}
  .tabbtn.on{color:var(--ink)}
  /* Icons C — tilt and press (docs/choices/round-3/BUILD-BRIEF.md §4): the active nav icon tilts
     3° and scales to 0.94 on press, 120ms in / 180ms out; touch gets the scale only, never the
     tilt, so the hover-gated rule below is the one that adds it back for a real pointer. */
  .tabbtn svg{width:22px;height:22px;transition:transform .18s var(--ease)}
  .tabbtn:active svg{transition-duration:.12s;transform:scale(.94)}
  @media (hover:hover){ .tabbtn.on:active svg{transform:rotate(3deg) scale(.94)} }

  /* desktop sidebar (≥1024px) replaces the tab bar */
  .sidebar{display:none}

  /* Home header */
  .home-head{display:flex;align-items:center;justify-content:space-between;margin:var(--s-2) 0 var(--s-5)}

  /* Home C+ (24 Sep 2026, docs/choices/round-3/BUILD-BRIEF.md §3 row 1): Revenue anchors the money
     column, In preparation and Waiting a smaller pair beneath it; the right column is one merged
     list. Phone: "three numbers on one line" — one card, no hero emphasis, value above label
     reversed to value-then-label so the number reads first. .home-money-pair's display:contents
     unwraps the pair so hero/prep/wait become three plain, equal siblings of .home-money. */
  .home-grid{display:flex;flex-direction:column;gap:var(--s-5)}
  .home-money{display:flex;background:var(--surface);border-radius:var(--r-lg);padding:var(--s-4) 0}
  .home-money-pair{display:contents}
  .stat-card{box-sizing:border-box;text-align:left;font-family:inherit;flex:1;min-width:0;padding:0 var(--s-3);border-left:1px solid var(--hair)}
  .stat-card:first-child{border-left:0}
  .stat-card .lbl{color:var(--ink-muted);font-size:var(--t-meta);font-weight:600}
  /* a currency figure is one unbreakable token — without this, a value wider than the card just
     overflows past the padding onto the corner radius instead of wrapping (24 Sep 2026) */
  /* --t-section, not --t-title: a real value here can run to 11+ characters (Le Fourtou alone is
     €11,818.72), and --t-title left this card sitting exactly at its own capacity for even a
     6-character "€4,250" — no margin at all. overflow-wrap is the safety net under that, not the
     first line of defence (24 Sep 2026). */
  .stat-card .val{font-family:var(--disp);font-weight:700;font-size:var(--t-section);letter-spacing:-.02em;color:var(--ink);overflow-wrap:break-word}
  /* a tile with nothing behind it: one muted line in the number's place, never €0 (round 4, PR 1) */
  .stat-card .val.is-empty{font-family:inherit;font-weight:600;font-size:var(--t-body);letter-spacing:0;color:var(--ink-muted)}
  .stat-card .sub{display:none}
  .stat-card:active{transform:scale(.98)}
  @media (max-width:1023px){
    .stat-card{display:flex;flex-direction:column-reverse;gap:2px}
    .stat-card .lbl{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  }
  @media (hover:hover){ .stat-card:hover{background:var(--surface-2)} .stat-card.hero:hover{background:var(--surface-2)} }

  /* glass, bounded (docs/DESIGN-SYSTEM.md, amended 23 Sep 2026 — Brook's variant C): Home's three
     KPI cards only, never list rows/drawer/tab bar/sidebar/inputs — the Stats header strip was in
     scope too but was never built (docs/DECISIONS.md, 23 Sep 2026) — and only where a card already
     has a surface to begin with — desktop (≥1024px; see below), never the compact phone row.
     A JS-added class, never in the markup, so a device that fails a
     capability check (initHome in home.ts: deviceMemory <=4) or lacks backdrop-filter never gets
     it — plain --surface is always a complete, correct fallback on its own. */
  .stat-card.glass{position:relative;transform:perspective(800px) rotateX(var(--tilt-y,0deg)) rotateY(var(--tilt-x,0deg))}
  .stat-card.glass.tilting{transition:none}
  .stat-card.glass:not(.tilting){transition:transform .2s var(--ease)}
  .stat-card.glass::before{
    content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .2s var(--ease);
    background:radial-gradient(220px circle at var(--mx,50%) var(--my,50%),rgba(244,240,234,.10),transparent 60%);
  }
  @media (hover:hover){ .stat-card.glass:hover::before{opacity:1} }
  @media (prefers-reduced-motion:reduce), (pointer:coarse) {
    .stat-card.glass{transform:none}
    .stat-card.glass::before{display:none}
  }

  /* progress strip (docs/DESIGN-SYSTEM.md §5 addition 2 — Today's counter and Home's list bar are
     one component in two sizes; this is Home's size). One segment per to-do item, red for late —
     the shape of the day. A single filled-fraction bar was tried first and rejected (24 Sep 2026):
     it reads as "progress achieved", which is backwards for a share that is overdue. */
  .progress-strip{display:flex;gap:3px;margin:var(--s-3) 0 var(--s-2)}
  .progress-seg{flex:1;height:3px;border-radius:var(--r-full);background:var(--hair)}
  .progress-seg.late{background:var(--late)}
  .home-sep{margin-top:var(--s-3)}

  /* a card is a card at every width (docs/DESIGN-SYSTEM.md §3) — this panel used to get its
     surface, radius and padding only above 1024px, so on phone it was text floating loose */
  .home-panel{background:var(--surface);border-radius:var(--r-lg);padding:var(--s-4)}
  .home-panel .phead{display:flex;align-items:center;justify-content:space-between;margin-bottom:2px}
  .home-panel .phead h2{font-family:var(--disp);font-weight:600;font-size:var(--t-section);margin:0;color:var(--ink)}
  .goto{color:var(--ink-muted);font-size:var(--t-meta);font-weight:600}
  .trow{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:var(--s-2);align-items:center;padding:var(--s-3) 0;border-top:1px solid var(--hair)}
  .trow:first-child{border-top:0}
  .trow.tap{cursor:pointer;margin:0 calc(var(--s-2) * -1);padding-left:var(--s-2);padding-right:var(--s-2);border-radius:var(--r-sm)}
  .trow.tap:active{background:var(--surface-2);transform:scale(.99)}
  @media (hover:hover){ .trow.tap:hover{background:var(--surface-2)} }
  /* Home's Today preview caps at 5 rows on desktop (brief; see the @media block below) — "All N →"
     always names the real total. On phone there is no fixed cap: fitHomeList() in home.ts measures
     the actual available space after every render and hides rows from the end (upcoming first,
     then Today) only if the page would otherwise scroll, showing #homeSeeAll when it does. */
  .home-seeall{display:block;margin-top:var(--s-3);text-align:center}
  .rdot{width:7px;height:7px;border-radius:50%;flex:none;background:var(--ink-muted)} /* plain = due today, not an alarm */
  .rdot.wait{background:var(--wait)} .rdot.late{background:var(--late)}
  .tbody{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);font-size:var(--t-body)}
  .tname{font-weight:700}
  .ttext{color:var(--ink-muted)}
  .tamt{font-weight:700;font-size:var(--t-body);color:var(--ink);white-space:nowrap}
  /* Home only: let the action wrap to two lines rather than truncating one (24 Sep 2026) — a row
     you cannot read is a row you have to open the client for, which is the thing this layout
     exists to avoid. The Today screen keeps one line per row (deliberately dense; unchanged). */
  #homeTodayList .trow, #homeUpcoming .trow{align-items:start}
  #homeTodayList .rdot, #homeUpcoming .rdot{margin-top:7px} /* centers on the tbody's first line, not the whole (possibly 2-line) row */
  #homeTodayList .tamt, #homeUpcoming .daycol{margin-top:1px}
  #homeTodayList .tbody, #homeUpcoming .tbody{white-space:normal;text-overflow:clip;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
  .daycol{font-size:var(--t-label);font-weight:600;width:44px;flex:none}

  /* Today C+ (24 Sep 2026, docs/choices/round-3/BUILD-BRIEF.md §3 row 2) — supersedes the 23 Sep
     grouped-list answer (docs/DECISIONS.md). The strip and progress-seg component are the same
     ones Home uses (docs/DESIGN-SYSTEM.md §5 addition 2), just spanning this screen's own width. */
  .screen-head{display:flex;align-items:center;justify-content:space-between;margin:var(--s-2) 0 var(--s-5)}
  .today-summary{font-size:var(--t-meta);font-weight:600;margin:var(--s-2) 0 var(--s-5)}
  .today-focus{margin-bottom:var(--s-5);display:flex;flex-direction:column;gap:var(--s-1)}
  .today-focus-meta{font-size:var(--t-label);font-weight:700;letter-spacing:.04em;text-transform:uppercase}
  .today-focus-name{font-family:var(--disp);font-weight:700;font-size:var(--t-section);color:var(--ink)}
  .today-focus-text{font-size:var(--t-body)}
  .today-focus-actions{display:flex;gap:var(--s-2);margin-top:var(--s-3)}

  @media (min-width:1024px){
    .app-shell{background:var(--bg)}
    .sidebar{display:flex;flex-direction:column;gap:var(--s-6);width:236px;flex:none;background:var(--surface);border-right:1px solid var(--hair);padding:var(--s-6) var(--s-5);position:sticky;top:0;height:100vh}
    .navlist{display:flex;flex-direction:column;gap:2px}
    .navlink{display:flex;align-items:center;gap:var(--s-3);padding:var(--s-2) var(--s-3);border-radius:var(--r-sm);color:var(--ink-muted);font-weight:600;font-size:var(--t-meta);min-height:44px;transition:background .15s,transform 90ms}
    .navlink.on{color:var(--ink);background:var(--surface-2)}
    .navlink:active{background:var(--surface-2);transform:scale(.98)}
    .navlink svg{width:18px;height:18px;transition:transform .18s var(--ease)}
    .navlink:active svg{transition-duration:.12s;transform:scale(.94)}
    @media (hover:hover){ .navlink.on:active svg{transform:rotate(3deg) scale(.94)} }
    .sidebar .status{color:var(--ink-muted)}
    .tabbar{display:none}
    .shell-main{padding:40px;max-width:1180px} /* screen gutter ≥1024px per docs/DESIGN-SYSTEM.md §3's table — 40px doesn't land on an --s-N step, same exception class as 999px in --r-full */
    .fab-add{width:auto;height:auto;border-radius:var(--r-md);padding:var(--s-3) var(--s-4);background:var(--ink);color:var(--bg)}
    .fab-add .fab-label{display:inline;font-weight:700;font-size:var(--t-meta);font-family:var(--font)}
    .fab-add .fab-plus{margin-right:6px}
    .phone-only{display:none}.desktop-only{display:block}

    .home-grid{display:grid;grid-template-columns:300px minmax(0,1fr);gap:var(--s-5);align-items:start}
    .home-money{display:flex;flex-direction:column;gap:var(--s-4);background:none;padding:0}
    .home-money-pair{display:flex;gap:var(--s-4)}
    .stat-card{flex:none;padding:var(--s-5);background:var(--surface);border-radius:var(--r-lg);border-left:0}
    .home-money-pair .stat-card{flex:1}
    .stat-card .sub{display:block;color:var(--ink-dim);font-size:var(--t-meta);margin-top:6px}
    .stat-card.hero{background:var(--surface-2)}
    .stat-card.glass{
      background:linear-gradient(150deg,rgba(244,240,234,.07),rgba(244,240,234,.02));
      -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
      box-shadow:inset 0 1px 0 rgba(244,240,234,.12), 0 18px 40px rgba(0,0,0,.5);
    }
    .stat-card.hero.glass{background:linear-gradient(150deg,rgba(244,240,234,.07),rgba(244,240,234,.02))} /* glass wins over the flat hero background — same cascade layer, later rule */
    @supports not (backdrop-filter: blur(6px)) {
      .stat-card.glass{background:var(--surface-2);backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none}
    }
    .stat-card.hero .val{font-size:var(--t-display)} /* the hero must visibly outweigh the other two */

    .home-panel{background:var(--surface);border-radius:var(--r-lg);padding:var(--s-5)}
    #homeTodayList .trow:nth-child(n+6){display:none}
    #homeSeeAll{display:none} /* desktop has the room; fitHomeList() never hides anything here — Today's own #todaySeeAll (same .home-seeall styling) still can, when there are more than 3 rows */

    /* Client drawer C: two panes — facts and money (Details + Documents) left, the activity
       timeline right — so the tab control from the phone build is simply switched off; the
       stronger ".dsec{display:flex}" here wins over the phone build's tab-gated rule above by
       coming later in the stylesheet at equal specificity (docs/DESIGN-SYSTEM.md §5.1 pattern). */
    .drawer{width:min(960px,94vw)}
    .dtabs{display:none}
    .dsec{display:flex;flex-direction:column;gap:var(--s-4)}
    .db{display:grid;grid-template-columns:1.3fr 1fr;gap:var(--s-6);align-items:start}
    .dcol{display:flex;flex-direction:column;gap:var(--s-4)}
  }
