/*
 * Kyte Family Office · kyte.css: the hub's structural stylesheet.
 *
 * Until 18 September 2026 this was lifted verbatim from the old portal mock.
 * The design is now Concept D (REDESIGN-D.md): concept-d.css is the lifted
 * file, hub-d.css the hand-written extension, and this file is the hub's own
 * structure (layouts, rows, boards, the recorder) with its tokens re-valued to
 * D. It is hand-maintained from here on and shrinks as pages move to D.
 */

/* ============ TYPEFACES ============
   Self-hosted, never a CDN. A family office's browser sits behind a corporate
   proxy as often as not, and a webfont that fails to load is an approved
   design quietly reverting to whatever the operating system had lying about.
   The files are in web/public/fonts/ and are served from the same origin as
   everything else.

   The file is the VARIABLE font, so one request covers the whole weight
   range instead of one per weight, which matters here because the stylesheet
   asks for in-between weights a static stack could not honour.

   Geist (Vercel, SIL OFL 1.1) is the hub's one face since 22 Oct 2026, when
   Matt compared six on the real screens and chose it over Inter, the face
   from August. It is used at exactly two weights: 400 for prose and 600 for
   labels, figures, counts and anything emphatic. "Two variations of
   thinness" is his phrase and it is a rule, not an observation: a page
   carrying 400/500/550/600/650/700 has no typographic hierarchy, it has noise.

   Never a serif, not even as a fallback (Matt, 22 Oct 2026: "we never use a
   serif font"). web/scripts/geist.mjs holds the conversion from Inter and
   its check. */
@font-face{
  font-family:Geist; font-style:normal; font-weight:100 900; font-display:swap;
  src:url("/public/fonts/geist.woff2") format("woff2");
}
/* Locked to light. The reference is a light design; this page never goes dark. */
:root, :root[data-theme="dark"], :root[data-theme="light"]{
  color-scheme: light only;
  /* Concept D (18 Sep 2026). The token NAMES are the hub's, so every inline
     var() in the screens follows; the VALUES are the study's. --ground is the
     hover ground inside a white card, not the page: the page ground is --page
     (hub-d.css). --serif is Geist on purpose: the hub has no serif, and aliasing it
     keeps every inline var(--serif) heading sans without touching a screen. */
  --side:#eef2f6; --ground:#f8f9fb; --card:#FFFFFF;
  --line:#e9edf2; --line2:#eef1f5;
  --ink:#171b24; --grey:#646e7f; --mut:#6b7380;
  --active:#f1f4f7;
  --red:#d9534f; --red-soft:#F3F0E6; --red-text:#1F2A44;
  --orange:#e39a38; --orange-soft:#fbf1e2; --orange-text:#87601c;
  --green-text:#3c5a43; --sage:#e5ede2; --sage-ink:#3c5a43;
  --blue-soft:#eaf0f7; --blue-text:#41618c;
  --charcoal:#171d27;
  /* Rebrand 22 Sep 2026: Kyte Group's navy and slate. --red stays for errors only. */
  --brand:#1F2A44; --brand-dark:#141C30; --slate:#F3F0E6;
  --serif:Geist,-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,sans-serif;
  --sans:Geist,-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,sans-serif;
}
*{box-sizing:border-box;}
html,body{height:100%;}
body{margin:0; background:var(--ground); color:var(--ink); font-family:var(--sans);
  -webkit-font-smoothing:antialiased; font-size:14px; line-height:1.5; font-variant-numeric:tabular-nums;}
/* The browser default for bold is 700, which is a third weight arriving by the
   back door. Everything emphatic on this page is 600. */
b,strong{font-weight:600;}
.app{display:flex; min-height:100vh;}

/* ============ SIDEBAR ============
   A design copy of an earlier M22 shell sidebar, in the Kyte skin: a fixed 264px column on the page ground with a
   hairline right edge — not a floating card, not a slab of its own colour.
   Workspace header with a working collapse control; search with the / hint;
   grouped navigation under collapsible headers; a spacer; Settings and Log
   out quiet at the very bottom. Metrics are the reference's: 38px rows, 10px
   radii, 17px icons at 1.7 stroke. Active is the card surface with a chip
   border and a pill shadow — selection is never a filled accent. */
.side{width:264px; flex:none; background:var(--ground); border-right:1px solid var(--line);
  display:flex; flex-direction:column; gap:4px; padding:14px 12px 12px;
  position:sticky; top:0; height:100vh; overflow-y:auto; overflow-x:hidden;}
.ws{display:flex; align-items:center; gap:10px; padding:4px 6px 12px;}
.ws-logo{width:34px; height:34px; border-radius:10px; background:var(--brand); display:grid; place-items:center; flex:none;}
.ws-logo svg{width:16px; height:auto; display:block;}
.ws-name{flex:1; min-width:0;}
.ws-name b{display:block; font-family:var(--serif); font-size:15px; font-weight:600; letter-spacing:.24em; color:var(--ink);}
.ws-name span{display:block; font-size:11.5px; color:var(--mut); margin-top:1px;}
.ws-collapse{color:var(--mut); padding:6px; border-radius:8px; background:none; border:none; cursor:pointer; flex:none; font-family:inherit;}
.ws-collapse:hover{background:var(--active); color:var(--grey);}
.ws-collapse svg{display:block;}
.ws-collapse:focus-visible{outline:2px solid var(--ink); outline-offset:2px;}
.s-search{display:flex; align-items:center; gap:9px; height:38px; padding:0 10px; width:100%;
  background:var(--card); border:1px solid var(--line); border-radius:10px; color:var(--mut);
  margin-bottom:10px; box-shadow:0 1px 2px rgba(33,31,27,.04); font-family:inherit; font-size:13.5px;
  cursor:pointer; text-align:left;}
.s-search:hover{border-color:#DCD8D0;}
.s-search svg{flex:none;}
.s-search .ph{flex:1; min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;}
.s-search kbd{width:20px; height:20px; display:grid; place-items:center; border:1px solid var(--line); border-radius:6px;
  font-family:inherit; font-size:11px; font-weight:400; color:var(--mut); flex:none;}
.s-search:focus-visible{outline:2px solid var(--ink); outline-offset:2px;}
.grp{padding-top:6px;}
.grp-h{display:flex; align-items:center; justify-content:space-between; width:100%; padding:0 8px 6px;
  font-family:inherit; font-size:12px; font-weight:600; color:var(--mut); letter-spacing:.02em;
  background:none; border:none; cursor:pointer; text-align:left;}
.grp-h svg{color:var(--mut); transition:transform .15s ease;}
.grp.closed .grp-h svg{transform:rotate(-90deg);}
.grp.closed .grp-items{display:none;}
.grp-items{display:flex; flex-direction:column; gap:2px;}
.it{position:relative; display:flex; align-items:center; gap:10px; width:100%; height:34px; padding:0 9px;
  border-radius:10px; border:1px solid transparent; font-family:inherit; font-size:13.5px; font-weight:400;
  color:var(--grey); background:transparent; cursor:pointer; text-align:left; text-decoration:none; white-space:nowrap;}
.it[hidden]{display:none;} /* 30 Sep: a sidebar item only some people see (Family office) */
.it svg{width:17px; height:17px; color:#57534B; flex:none;}
.it:hover{background:var(--active); color:var(--ink);}
.it.active{background:var(--card); border-color:var(--line); color:var(--ink);
  box-shadow:0 1px 2px rgba(33,31,27,.06); font-weight:600;}
.it.active svg{color:var(--ink);}
.it:focus-visible{outline:2px solid var(--ink); outline-offset:2px;}
.badge{margin-left:auto; min-width:18px; height:18px; padding:0 5px; background:var(--brand); color:#fff;
  border-radius:99px; display:grid; place-items:center; font-size:11px; font-weight:600; font-style:normal;
  font-variant-numeric:tabular-nums;}
.side-spacer{flex:1; min-height:18px;}
.side .foot{display:flex; flex-direction:column; gap:2px; margin-top:8px; padding-top:8px; border-top:1px solid var(--line2);}
.side .foot .it.quiet{color:var(--grey);}
.side .foot .it.quiet svg{color:var(--mut);}
.side .foot .it.quiet:hover{color:var(--ink);}

/* The collapse control, working: icons only, labels and furniture put away.
   Applied as a class on .app by a small script (and by default on narrow
   screens), so both states live here and nothing is duplicated. */
.app.sb-min .side{width:68px; padding:14px 10px 12px;}
.app.sb-min .ws{flex-direction:column; gap:8px; padding:0 0 10px;}
.app.sb-min .ws-name{display:none;}
.app.sb-min .s-search{justify-content:center; padding:0;}
.app.sb-min .s-search .ph, .app.sb-min .s-search kbd{display:none;}
.app.sb-min .grp{padding-top:6px;}
.app.sb-min .grp-h{display:none;}
/* A closed group reopens as icons: collapsing the rail may hide words,
   never destinations. */
.app.sb-min .grp.closed .grp-items{display:flex;}
.app.sb-min .it{justify-content:center; padding:0; gap:0;}
.app.sb-min .it span{display:none;}
.app.sb-min .badge{display:none;}

/* ============ TOP BAR ============ */
.main{flex:1; min-width:0; display:flex; flex-direction:column;}
.topbar{display:flex; align-items:center; gap:20px; padding:24px 56px 20px;}
.askbar{flex:1 1 auto; width:auto; max-width:760px; display:flex; align-items:center; gap:0;
  background:var(--card); border:1px solid var(--line); border-radius:10px; padding:0 14px; height:44px;
  cursor:pointer; font-family:inherit; font-size:14px; text-align:left;}
.askbar:hover{border-color:#DCD8D0;}
.askbar:focus-visible{outline:2px solid var(--ink); outline-offset:2px;}
.askbar .lab{display:flex; align-items:center; gap:9px; font-weight:600; font-size:13.5px; color:var(--ink);
  padding-right:14px; border-right:1px solid var(--line2); white-space:nowrap;}
.askbar .lab svg{width:15px; height:15px; color:var(--grey);}
.askbar .ph{flex:1; padding-left:14px; color:var(--mut); font-size:13.5px; white-space:nowrap; overflow:hidden;}
.askbar .kbd{flex:none; font-size:11px; color:var(--grey); border:1px solid var(--line);
  border-radius:6px; padding:2px 7px; background:var(--ground);}
.tright{margin-left:auto; display:flex; align-items:center; gap:22px;}
.bell{position:relative; background:none; border:none; cursor:pointer; padding:4px; color:#57534B;}
.bell svg{width:20px; height:20px; display:block;}
/* The bell says "something is new", not how many: the Inbox item in the
   sidebar carries the number, and two badges with one number read as a
   count wired twice. */
.bell .dot{position:absolute; top:3px; right:3px; width:9px; height:9px; border-radius:50%;
  background:var(--brand); color:transparent; font-size:0; padding:0; border:1.5px solid var(--ground);}
.acct{display:flex; align-items:center; gap:11px; cursor:pointer;}
.acct .av{width:38px; height:38px; border-radius:50%; background:#ECE9E2; color:#57534B;
  display:flex; align-items:center; justify-content:center; font-size:12.5px; font-weight:600;}
.acct .nm{font-size:13.5px; font-weight:600; line-height:1.3;}
.acct .rl{font-size:12px; color:var(--mut); line-height:1.3;}
.acct .chev{color:var(--mut); font-size:11px; margin-left:2px;}

/* ============ PAGES ============ */
.page{padding:20px 56px 96px; flex-direction:column; gap:26px; max-width:1330px; width:100%; display:none;}
.page.active{display:flex;}
.rowa{display:grid; grid-template-columns:1.04fr .96fr; gap:30px; align-items:start;}
.rowa.stretch{align-items:stretch;}
.capcol{padding-top:28px; display:flex; flex-direction:column;}
.capcol .capture{flex:1; display:flex; flex-direction:column; justify-content:center;}
.rowc{display:grid; grid-template-columns:1.05fr .96fr 1fr; gap:26px; align-items:start;}
@media (max-width:1080px){ .rowa,.rowc{grid-template-columns:minmax(0,1fr);} .rowa > *, .rowc > *{min-width:0;} .askbar{max-width:none; width:auto; flex:1;} }

.greet h1{font-family:var(--serif); font-size:35px; font-weight:400; letter-spacing:.01em; margin:14px 0 10px;}
.greet p{color:var(--grey); font-size:15.5px; margin:0;}
.pagehead h1{font-family:var(--serif); font-size:29px; font-weight:400; letter-spacing:.01em; margin:8px 0 8px;}
.pagehead p{color:var(--grey); font-size:14.5px; margin:0;}
.card{background:var(--card); border:1px solid var(--line); border-radius:11px;}

/* quiet majority */
.qmaj{display:flex; align-items:center; gap:18px; padding:22px 24px; margin-top:12px; cursor:pointer;
  font-family:inherit; font-size:inherit; text-align:left; color:inherit; width:100%;}
.qmaj .ic{width:46px; height:46px; border-radius:50%; background:var(--sage); color:var(--sage-ink);
  display:flex; align-items:center; justify-content:center; flex:none;}
.qmaj .t{font-size:14.5px; font-weight:600;}
.qmaj .d{font-size:13.5px; color:var(--grey); margin-top:2px; line-height:1.5;}
.qmaj .chev{margin-left:auto; color:var(--mut); font-size:16px;}

/* priority (home) */
.seclab{font-size:13.5px; font-weight:600; margin:26px 2px 12px;}
.matter{display:flex; gap:16px; padding:24px; border-bottom:1px solid var(--line2); align-items:flex-start;}
.mstat{width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:600; font-size:17px; flex:none; font-family:var(--sans);}
.mstat.red{background:var(--red);} .mstat.orange{background:var(--orange);}
.mbody{flex:1; min-width:0;}
.mname{display:flex; align-items:center; gap:10px;}
.mname .nm{font-family:var(--serif); font-size:18.5px; font-weight:600; letter-spacing:.005em;}
.pill{font-size:11px; font-weight:600; border-radius:99px; padding:3px 10px;}
.pill.high{background:var(--red-soft); color:var(--red-text);}
.pill.med{background:var(--orange-soft); color:var(--orange-text);}
.mtask{font-size:14px; font-weight:600; margin-top:9px;}
.mdesc{font-size:13.5px; color:var(--grey); margin-top:5px; line-height:1.55; max-width:24ch;}
.mside{flex:none; text-align:left; display:flex; flex-direction:column; align-items:flex-start; gap:3px; width:132px;}
.mside .who{font-size:13px; color:var(--grey);}
.mside .ago{font-size:12.5px; color:var(--mut);}
.btn{font-family:inherit; font-size:13px; font-weight:600; color:var(--ink); background:var(--card);
  border:1px solid var(--line); border-radius:8px; padding:9px 18px; cursor:pointer;}
.btn:hover{background:var(--ground);}
.btn:focus-visible{outline:2px solid var(--ink); outline-offset:2px;}
.btn.dark{background:var(--brand); color:#fff; border-color:var(--brand);}
.btn.dark:hover{background:var(--brand-dark);}
.mside .btn{margin-top:14px;}
.cardfoot{display:flex; align-items:center; gap:7px; padding:16px 24px; font-size:13px; font-weight:600;
  color:var(--ink); cursor:pointer; background:none; border:none; font-family:inherit; width:100%; text-align:left;}
.cardfoot .chev{color:var(--mut);}
.cardfoot:hover .chev{color:var(--ink);}

/* capture card (home) */
.capture{padding:30px 34px 34px; text-align:center; margin-top:0;}
.capture .lab{font-size:13px; color:var(--grey); font-weight:400;}
.capture h2{font-family:var(--serif); font-size:25px; font-weight:400; margin:14px 0 8px;}
.capture .d{font-size:13.5px; color:var(--grey); margin:0 0 26px;}
.micbtn{width:64px; height:64px; border-radius:50%; background:var(--brand); border:none; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center; color:#fff; align-self:center; flex:none;}
.micbtn:hover{background:var(--brand-dark);}
.micbtn:focus-visible{outline:2px solid var(--ink); outline-offset:3px;}
.capture .tap{font-size:13px; color:var(--ink); font-weight:400; margin-top:12px;}
.capture .kbd2{font-size:12px; color:var(--mut); margin-top:4px;}

/* bottom cards shared */
.chead{display:flex; align-items:center; gap:9px; padding:20px 22px 6px;}
.chead .t{font-family:var(--serif); font-size:18px; font-weight:500; letter-spacing:-.0028em;}
.chead .cnt{font-size:11.5px; font-weight:600; color:var(--grey); background:var(--active);
  border-radius:99px; min-width:21px; height:21px; display:inline-flex; align-items:center; justify-content:center; padding:0 6px;}
.chead .link{margin-left:auto; font-size:12.5px; font-weight:600; color:var(--grey); background:none;
  border:none; font-family:inherit; cursor:pointer; white-space:nowrap;}
.chead .link:hover{color:var(--ink);}
.citem{display:flex; align-items:center; gap:13px; padding:13px 22px; border-bottom:1px solid var(--line2);
  width:100%; background:none; border-left:none; border-right:none; border-top:none; font-family:inherit;
  font-size:inherit; text-align:left; color:inherit;}
button.citem{cursor:pointer;} button.citem:hover{background:var(--ground);}
.citem:last-of-type{border-bottom:none;}
.cicon{width:34px; height:34px; border-radius:9px; background:var(--side); color:#57534B; flex:none;
  display:flex; align-items:center; justify-content:center; flex:none;}
.cicon.sage{background:var(--sage); color:var(--sage-ink);}
.cmain{flex:1; min-width:0;}
.cmain .t{font-size:13.5px; font-weight:600; line-height:1.4;}
.cmain .t .reg{font-weight:400;}
.cmain .s{font-size:12.5px; color:var(--mut); margin-top:1px;}
.prio{flex:none; font-size:12.5px; font-weight:600;}
.prio.high{color:var(--red-text);} .prio.med{color:var(--orange-text);} .prio.low{color:var(--green-text);}
.pad-b{padding-bottom:10px;}
.dtile{width:44px; height:46px; border:1px solid var(--line); border-radius:9px; flex:none;
  display:flex; flex-direction:column; align-items:center; justify-content:center; background:var(--card);}
.dtile .mo{font-size:9px; letter-spacing:.08em; font-weight:600; color:var(--mut); text-transform:uppercase;}
.dtile .dy{font-size:16.5px; font-weight:600; font-variant-numeric:tabular-nums;}
.ev .t{font-size:13.5px; font-weight:600;}
.ev .s{font-size:12.5px; color:var(--grey); margin-top:1px;}
.ev .s2{font-size:12.5px; color:var(--mut);}

/* ============ INVESTMENTS ============ */
.filters{display:flex; gap:8px; flex-wrap:wrap;}
.fpill{font-family:inherit; font-size:12.5px; font-weight:600; border-radius:99px; padding:8px 16px;
  border:1px solid var(--line); background:var(--card); color:var(--grey); cursor:pointer;}
.fpill:hover{color:var(--ink);}
.fpill.on{background:var(--brand); border-color:var(--brand); color:#fff;}
.fpill:focus-visible{outline:2px solid var(--ink); outline-offset:2px;}
.regrow{display:flex; align-items:center; gap:16px; padding:17px 24px; border-bottom:1px solid var(--line2);
  width:100%; background:none; border-left:none; border-right:none; border-top:none; font-family:inherit;
  font-size:inherit; text-align:left; color:inherit; cursor:pointer;}
.regrow:hover{background:var(--ground);}
.regrow:focus-visible{outline:2px solid var(--ink); outline-offset:-2px;}
.regrow:last-of-type{border-bottom:none;}
.rstat{width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  flex:none; color:#fff; font-weight:600; font-size:14px;}
.rstat.red{background:var(--red);} .rstat.orange{background:var(--orange);}
.rstat.sage{background:var(--sage); color:var(--sage-ink);}
.regmain{flex:1; min-width:0;}
.regname{font-family:var(--serif); font-size:16.5px; font-weight:600;}
.regmeta{font-size:12.5px; color:var(--mut); margin-top:1px;}
.regsig{font-size:13px; color:var(--grey); margin-top:3px;}
.regright{flex:none; text-align:right; width:130px;}
.stword{font-size:12.5px; font-weight:600;}
.stword.action{color:var(--red-text);} .stword.watch{color:var(--orange-text);} .stword.quiet{color:var(--green-text);}
.regago{font-size:12px; color:var(--mut); margin-top:3px;}

/* ============ RECORD ============ */
.crumb{display:inline-flex; align-items:center; gap:7px; font-size:13px; font-weight:600; color:var(--grey);
  background:none; border:none; font-family:inherit; cursor:pointer; padding:0;}
.crumb:hover{color:var(--ink);}
.rechead{display:flex; align-items:center; gap:14px; margin-top:6px; flex-wrap:wrap;}
.rechead h1{font-family:var(--serif); font-size:29px; font-weight:400; margin:0;}
.recsub{color:var(--grey); font-size:14px; margin-top:4px;}
.recown{margin-left:auto; display:flex; align-items:center; gap:9px; font-size:13px; color:var(--grey);}
.recown .av{width:30px; height:30px; border-radius:50%; background:#ECE9E2; color:#57534B;
  display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:600;}
.facts{display:grid; grid-template-columns:repeat(4,1fr);}
.fact{padding:16px 22px; border-right:1px solid var(--line2); min-width:0;}
.fact:last-child{border-right:none;}
.fact .k{font-size:10.5px; letter-spacing:.07em; text-transform:uppercase; font-weight:600; color:var(--mut);}
.fact .v{font-size:14px; font-weight:600; margin-top:5px; line-height:1.45;}
.fact .v .d{color:var(--grey); font-weight:400; font-size:12.5px;}
.recgrid{display:grid; grid-template-columns:1.55fr 1fr; gap:26px; align-items:start;}
@media (max-width:1080px){ .recgrid{grid-template-columns:1fr;} .facts{grid-template-columns:1fr 1fr;} .fact{border-bottom:1px solid var(--line2);} }
.sumcard{padding:24px 26px;}
.sumcard .sum{font-size:14.5px; line-height:1.75; margin:0;}
.sumcard .prov{font-size:12.5px; color:var(--mut); margin-top:14px;}
/* Unscoped from .sumcard: the record page's action row now sits in the
   persistent header, above the tabs, rather than inside the position card,
   so every tab keeps it in view. Still applies inside .sumcard exactly as
   before wherever the position card carries its own actions. */
.actions{display:flex; gap:10px; margin-top:20px; flex-wrap:wrap;}
.logtable{padding-bottom:8px;}
.logrow{display:flex; gap:14px; padding:11px 22px; border-bottom:1px solid var(--line2); align-items:baseline;
  width:100%; background:none; border-left:none; border-right:none; border-top:none; font-family:inherit;
  font-size:inherit; text-align:left; color:inherit; cursor:pointer;}
.logrow:hover{background:var(--ground);}
.logrow:last-of-type{border-bottom:none;}
.logrow .d{font-size:12px; color:var(--mut); font-weight:600; width:58px; flex:none; white-space:nowrap; font-variant-numeric:tabular-nums;}
.logrow .e{flex:1; font-size:13.5px;}
.logrow .tm{font-size:12px; color:var(--mut); flex:none; font-variant-numeric:tabular-nums;}
.parrow{display:flex; justify-content:space-between; gap:10px; padding:11px 22px; border-bottom:1px solid var(--line2);
  font-size:13.5px; align-items:baseline;}
.parrow:last-of-type{border-bottom:none;}
.parrow .k{color:var(--grey);}
.parrow .v{font-weight:600; font-variant-numeric:tabular-nums;}
/* 15 Sep: clear a row out of needs action from the register, or bring it back. */
.regright .regclear{display:inline-flex; align-items:center; gap:5px; margin-top:6px; padding:3px 10px; border:1px solid var(--line); border-radius:999px; background:var(--card); font-size:12px; font-weight:600; color:var(--ink); cursor:pointer;}
.regright .regclear::before{content:"\2713"; font-size:11px; color:var(--sage-ink);}
.regright .regclear:hover{border-color:var(--ink); background:var(--ground);}
/* 15 Sep: a small action beside a particular ("change" on the check-in row). */
.parrow .v .link{background:none; border:0; padding:0; margin-left:8px; font:inherit; font-size:12.5px; font-weight:600; color:var(--brand); cursor:pointer;}
.parrow .v .link:hover{color:var(--brand-dark); text-decoration:underline;}
.paper{display:flex; align-items:center; gap:12px; padding:11px 22px; border-bottom:1px solid var(--line2);
  width:100%; background:none; border-left:none; border-right:none; border-top:none; font-family:inherit;
  font-size:inherit; text-align:left; color:inherit; cursor:pointer;}
.paper:hover{background:var(--ground);}
.paper:last-of-type{border-bottom:none;}
.paper .t{font-size:13.5px; font-weight:600; flex:1;}
.paper .s{font-size:12px; color:var(--mut); flex:none;}
.contact{display:flex; align-items:center; gap:13px; padding:16px 22px;}
.contact .av{width:38px; height:38px; border-radius:50%; background:#ECE9E2; color:#57534B;
  display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:600; flex:none;}
.contact .nm{font-size:13.5px; font-weight:600;}
.contact .rl{font-size:12.5px; color:var(--mut); margin-top:1px;}
.contact .btn{margin-left:auto; padding:7px 13px; font-size:12.5px;}

/* ============ PIPELINE ============ */
.stagepill{font-size:11px; font-weight:600; border-radius:99px; padding:3px 10px; border:1px solid var(--line);
  color:var(--grey); background:var(--ground); white-space:nowrap;}
.piperow{display:flex; gap:16px; padding:20px 24px; border-bottom:1px solid var(--line2); align-items:flex-start;}
.piperow:last-of-type{border-bottom:none;}
.pipemain{flex:1; min-width:0;}
.pipename{font-family:var(--serif); font-size:17px; font-weight:600; display:flex; align-items:center; gap:10px;}
.pipemeta{font-size:12.5px; color:var(--mut); margin-top:2px;}
.pipedesc{font-size:13.5px; color:var(--grey); margin-top:6px; line-height:1.55;}
.piperight{flex:none; width:190px; text-align:left;}
.piperight .k{font-size:10.5px; letter-spacing:.07em; text-transform:uppercase; font-weight:600; color:var(--mut);}
.piperight .v{font-size:13px; font-weight:600; margin-top:3px;}
.piperight .o{font-size:12.5px; color:var(--mut); margin-top:8px;}

/* ============ CAPTURE PAGE ============ */
.capwrap{max-width:660px; margin:8px auto 0; width:100%; text-align:center;}
.seg{display:inline-flex; background:var(--side); border-radius:99px; padding:3px; border:1px solid var(--line);}
.seg button{font-family:inherit; font-size:13px; font-weight:600; color:var(--grey); background:transparent;
  border:none; border-radius:99px; padding:8px 20px; cursor:pointer;}
.seg button.on{background:var(--card); color:var(--ink); border:1px solid var(--line);}
.capnote{font-size:13px; color:var(--mut); margin-top:12px;}
.capstage{padding:44px 40px 40px; margin-top:22px; display:flex; flex-direction:column; align-items:center;}
.capstage h2{font-family:var(--serif); font-size:27px; font-weight:400; margin:0 0 8px;}
.capstage .d{font-size:13.5px; color:var(--grey); margin:0 0 30px;}
.micbig{width:76px; height:76px; border-radius:50%; background:var(--brand); border:none; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center; color:#fff; flex:none;}
.micbig:hover{background:var(--brand-dark);}
.micbig.rec{background:var(--red);}
.micbig.rec:hover{background:#C2493E;}
.micbig:focus-visible{outline:2px solid var(--ink); outline-offset:3px;}
.captime{font-size:22px; font-weight:600; font-variant-numeric:tabular-nums; margin-top:18px; display:none;}
.capstate{font-size:13px; color:var(--mut); margin-top:2px;}
.captrans{font-size:15px; line-height:1.75; color:var(--ink); max-width:44ch; margin:16px auto 0;
  font-family:var(--serif); display:none; min-height:54px;}
.capfiled{display:none; align-items:center; gap:14px; padding:16px 20px; margin-top:24px; width:100%;
  background:var(--sage); border:none; border-radius:11px; font-family:inherit; text-align:left; cursor:pointer;}
.capfiled .ic{width:34px; height:34px; border-radius:50%; background:var(--card); color:var(--sage-ink);
  display:flex; align-items:center; justify-content:center; flex:none;}
.capfiled .t{font-size:13.5px; font-weight:600; color:var(--sage-ink);}
.capfiled .s{font-size:12.5px; color:var(--sage-ink); opacity:.8; margin-top:1px;}
.capfiled .chev{margin-left:auto; color:var(--sage-ink);}
.capfiled.show{display:flex;}
.caprecent{margin-top:26px; text-align:left;}

/* ============ REVIEW PAGE ============ */
.rvintro{max-width:64ch;}
.rvitem{padding:20px 24px; border-bottom:1px solid var(--line2); display:flex; gap:16px; align-items:flex-start;}
.rvitem:last-of-type{border-bottom:none;}
.rvitem.gone{display:none;}
.rvbody{flex:1; min-width:0;}
.rvtitle{font-size:14.5px; font-weight:600; display:flex; align-items:center; gap:10px; flex-wrap:wrap;}
.rvmeta{font-size:12.5px; color:var(--mut); margin-top:2px;}
.rvwhy{font-size:13.5px; color:var(--grey); margin-top:7px; line-height:1.55; max-width:62ch;}
.rvbtns{display:flex; gap:10px; margin-top:14px; flex-wrap:wrap;}
.rvempty{display:none; padding:52px 24px; text-align:center;}
.rvempty.show{display:block;}
.rvempty .ic{width:46px; height:46px; border-radius:50%; background:var(--sage); color:var(--sage-ink);
  display:inline-flex; align-items:center; justify-content:center; margin-bottom:12px;}
.rvempty .t{font-family:var(--serif); font-size:18px; font-weight:600;}
.rvempty .d{font-size:13.5px; color:var(--grey); margin-top:4px;}

/* ============ CALENDAR + WEDNESDAY ============ */
.dayhead{font-size:11.5px; font-weight:600; letter-spacing:.07em; text-transform:uppercase; color:var(--mut); margin:4px 2px -14px;}
.evt{width:76px; flex:none; font-size:12.5px; font-weight:600; color:var(--grey); font-variant-numeric:tabular-nums; padding-top:1px;}
.citem .chevr{margin-left:auto; color:var(--mut); flex:none;}
.dnum{width:26px; height:26px; border-radius:50%; background:var(--active); color:#57534B; font-size:12px;
  font-weight:600; display:flex; align-items:center; justify-content:center; flex:none; margin-top:2px;}
.agitem{display:flex; align-items:flex-start; gap:14px; padding:16px 22px; border-bottom:1px solid var(--line2);
  width:100%; background:none; border-left:none; border-right:none; border-top:none; font-family:inherit;
  font-size:inherit; text-align:left; color:inherit; cursor:pointer;}
.agitem:hover{background:var(--ground);}
.agitem:last-of-type{border-bottom:none;}
.agitem .chev{margin-left:auto; color:var(--mut); flex:none; padding-top:2px;}
.agitem .t{font-size:13.5px; font-weight:600;}
.agitem .s{font-size:12.5px; color:var(--grey); margin-top:2px; line-height:1.5;}

/* ============ SETTINGS ============ */
.setgrid{display:grid; grid-template-columns:1fr 1fr; gap:26px; align-items:start;}
@media (max-width:1080px){ .setgrid{grid-template-columns:1fr;} }
.setrow{display:flex; align-items:center; gap:13px; padding:14px 22px; border-bottom:1px solid var(--line2);}
.setrow:last-of-type{border-bottom:none;}
.setrow .t{font-size:13.5px; font-weight:600;}
.setrow .s{font-size:12.5px; color:var(--mut); margin-top:1px;}
.setrow .right{margin-left:auto; font-size:12.5px; color:var(--grey); flex:none;}
.okdot{width:8px; height:8px; border-radius:50%; background:#63A873; display:inline-block; margin-right:6px;}
.setnote{padding:12px 22px 16px; font-size:12.5px; color:var(--mut); line-height:1.55;}

/* ============ ASK OVERLAY ============ */
.askwrap{position:fixed; inset:0; z-index:90; display:none;}
.askwrap.open{display:block;}
.dim{position:absolute; inset:0; background:rgba(33,31,27,.4); border:none; cursor:pointer; width:100%;}
.askpanel{position:absolute; left:50%; top:10vh; transform:translateX(-50%); width:680px; max-width:92vw;
  background:var(--card); border:1px solid var(--line); border-radius:14px;
  box-shadow:0 24px 70px rgba(33,31,27,.22); display:flex; flex-direction:column; max-height:74vh;}
.askhead{display:flex; align-items:center; gap:11px; padding:16px 20px; border-bottom:1px solid var(--line2);}
.askhead svg{width:16px; height:16px; color:var(--grey); flex:none;}
.askhead .ph{flex:1; font-size:14.5px; color:var(--mut);}
.askhead .esc{font-size:11px; color:var(--grey); border:1px solid var(--line); border-radius:6px;
  padding:2px 7px; background:var(--ground); cursor:pointer; font-family:inherit;}
.askscroll{overflow-y:auto; padding:18px 20px;}
.bub{max-width:82%; border-radius:12px; padding:12px 16px; font-size:13.5px; line-height:1.65; margin-top:10px;}
.bub.me{margin-left:auto; background:var(--brand); color:#fff; border-bottom-right-radius:4px;}
.bub.ai{margin-right:auto; background:var(--ground); border:1px solid var(--line2); border-bottom-left-radius:4px;}
/* The chat's screen style (28 Sep): short lists and small figure tables, rendered from escaped text (askui.js). */
.ans-ul{margin:4px 0 0; padding-left:18px;}
.ans-ul li{margin:3px 0;}
.ans-tw{overflow-x:auto; margin-top:4px;}
.ans-t{border-collapse:collapse; font-size:12.5px; min-width:60%;}
.ans-t th{text-align:left; font-weight:600; color:var(--mut); border-bottom:1px solid var(--line); padding:5px 12px 5px 0; white-space:nowrap;}
.ans-t td{border-bottom:1px solid var(--line2); padding:5px 12px 5px 0; font-variant-numeric:tabular-nums; vertical-align:top;}
.srcrow{display:flex; gap:6px; flex-wrap:wrap; margin-top:10px;}
.srcchip{font-size:11px; font-weight:600; color:var(--grey); background:var(--card); padding:3px 9px;
  border-radius:99px; border:1px solid var(--line);}
.typing{display:inline-flex; gap:4px; padding:4px 0;}
.typing i{width:6px; height:6px; border-radius:50%; background:var(--mut); animation:blink 1.2s infinite;}
.typing i:nth-child(2){animation-delay:.2s;} .typing i:nth-child(3){animation-delay:.4s;}
@keyframes blink{0%,60%,100%{opacity:.3;} 30%{opacity:1;}}
.sugghead{font-size:11px; letter-spacing:.07em; text-transform:uppercase; font-weight:600; color:var(--mut); margin:4px 0 10px;}
.sugg{display:flex; flex-direction:column; gap:8px;}
.sugg button{font-family:inherit; font-size:13.5px; color:var(--ink); background:var(--ground);
  border:1px solid var(--line2); border-radius:9px; padding:11px 15px; cursor:pointer; text-align:left;}
.sugg button:hover{background:var(--side);}

/* note viewer */
.notehead .nt{font-family:var(--serif); font-size:19px; font-weight:600; color:var(--ink);}
.notehead .nm2{font-size:12px; color:var(--mut); margin-top:3px;}
.note-eyebrow{font-size:10.5px; letter-spacing:.09em; text-transform:uppercase; font-weight:600; color:var(--mut); margin:18px 0 8px;}
.notesum{font-size:13.5px; line-height:1.7; color:var(--ink); margin:0;}
.notetrans{max-height:40vh; overflow-y:auto; border:1px solid var(--line2); border-radius:10px; background:var(--ground); padding:2px 14px;}
.noteturn{display:flex; gap:10px; padding:9px 0; border-bottom:1px solid var(--line2); align-items:baseline;}
.noteturn:last-child{border-bottom:none;}
.noteturn .tt2{font-size:11px; color:var(--mut); font-variant-numeric:tabular-nums; flex:none; width:38px;}
.noteturn .sp{font-size:13px; font-weight:600; flex:none;}
.noteturn .tx{flex:1; font-size:13px; color:var(--grey); line-height:1.65;}
.notefoot{font-size:11.5px; color:var(--mut); margin-top:10px;}
.signitem{display:flex; gap:12px; align-items:flex-start; border:1px solid var(--line); border-radius:12px; padding:13px 14px; margin-top:10px; background:var(--card);}
.signchip{flex:none; font-size:9.5px; font-weight:600; letter-spacing:.6px; padding:3px 7px; border-radius:6px; background:var(--sage); color:var(--sage-ink); margin-top:2px; text-transform:uppercase;}
.signchip.ds{background:var(--orange-soft); color:var(--orange-text);}
.signit{flex:1; display:block;}
.signit .st{font-size:13.5px; font-weight:600; display:block;}
.signit .sw{font-size:11.5px; color:var(--grey); display:block; margin-top:2px;}
.signit .ss{font-size:12.5px; color:var(--ink); line-height:1.55; margin-top:6px; display:block;}
#fb-btn{position:fixed; right:18px; bottom:18px; z-index:730; font-family:inherit; font-size:11.5px; font-weight:600; color:var(--grey); background:var(--card); border:1px solid var(--line); border-radius:999px; padding:8px 14px; cursor:pointer; box-shadow:0 2px 10px rgba(33,31,27,.06);}
#fb-btn:hover{color:var(--ink);}
/* The feedback box's attached line, what it sends, and the screenshot (9 Nov 2026). */
.fb-ctx{margin-top:8px; font-size:12px; color:var(--mut); line-height:1.5;}
.fb-ctx-see{font:inherit; font-size:12px; color:var(--ink); background:none; border:0; padding:0; text-decoration:underline; text-underline-offset:2px; cursor:pointer;}
.fb-detail{margin-top:8px; border:1px solid var(--line); border-radius:10px; background:var(--ground); padding:8px 12px; max-height:220px; overflow:auto;}
.fb-detail h4{margin:8px 0 2px; font-size:11px; letter-spacing:.06em; text-transform:uppercase; font-weight:600; color:var(--mut);}
.fb-detail h4:first-child{margin-top:2px;}
.fb-line{display:grid; grid-template-columns:96px minmax(0,1fr); gap:8px; font-size:12px; line-height:1.5; color:var(--ink);}
.fb-line > span:first-child{color:var(--grey);}
.fb-line > span:last-child{overflow-wrap:anywhere;}
.fb-mono{font-variant-numeric:tabular-nums; font-size:11.5px; color:var(--ink); overflow-wrap:anywhere; line-height:1.5;}
.fb-shot{margin-top:8px; display:flex; align-items:center; gap:10px; font-size:12px; color:var(--grey);}
.fb-shot img{width:72px; height:48px; object-fit:cover; object-position:top left; border:1px solid var(--line); border-radius:8px; background:var(--ground);}
.fb-shot[hidden], .fb-detail[hidden]{display:none;}
/* 10 Nov 2026: the picture of the screen the box takes as it opens, while it is drawn (app.js pictureOfScreen). */
.fb-shot .fb-shot-wait{width:72px; height:48px; flex:none; border:1px solid var(--line); border-radius:8px; background:var(--ground); animation:fb-shot-wait 1.2s ease-in-out infinite alternate;}
@keyframes fb-shot-wait{from{opacity:.55;} to{opacity:1;}}
.fb-shot button{font:inherit; font-size:12px; color:var(--ink); background:none; border:0; padding:0; text-decoration:underline; text-underline-offset:2px; cursor:pointer;}

/* toast */
.toast{position:fixed; top:26px; left:50%; transform:translate(-50%,-14px); z-index:99; background:var(--charcoal);
  color:#fff; font-size:13px; font-weight:400; padding:11px 18px; border-radius:9px;
  box-shadow:0 10px 30px rgba(33,31,27,.25); opacity:0; transition:.2s; pointer-events:none; max-width:70vw; text-align:center;}
.toast.show{opacity:1; transform:translate(-50%,0);}

/* ============ MODERNISATION OVERRIDES ============ */
.card{border-radius:16px;}
.askpanel{border-radius:16px;}
.capfiled{border-radius:16px;}
.btn{border-radius:10px;}
.sugg button{border-radius:10px;}
.cicon{border-radius:10px;}
.dtile{border-radius:10px;}
.askbar{border-radius:12px;}
.askbar .lab svg{width:16px; height:16px; color:var(--brand);}
/* (The .nitem sidebar system that used to be modernised here is gone: the
   sidebar is the frontend-light .it system defined in the SIDEBAR section.) */
.chead > .cicon{background:transparent; color:var(--mut);}
.chead > .cicon svg{width:16px; height:16px;}
.chead .link{color:var(--brand);}
.chead .link:hover{color:var(--brand-dark);}
.link.arw::after{content:" \2192";}
.crumb.arw{color:var(--brand); font-weight:600;}
.crumb.arw:hover{color:var(--brand-dark);}
.cardfoot.arw{color:var(--brand);}
.cardfoot.arw .chev{color:var(--brand);}
.cardfoot.arw:hover .chev{color:var(--brand-dark);}
.btn.line{background:#fff; border-color:rgba(31,42,68,0.35); color:var(--brand);}
.btn.line:hover{background:rgba(31,42,68,0.05);}
.micwrap{position:relative; display:inline-flex; align-items:center; justify-content:center; padding:26px; flex:none; align-self:center;}
.micwrap .ring{position:absolute; border-radius:50%; pointer-events:none; z-index:0;}
.micwrap .ring.r1{inset:13px; background:rgba(31,42,68,0.10);}
.micwrap .ring.r2{inset:0; background:rgba(31,42,68,0.05);}
.micwrap .micbtn, .micwrap .micbig{position:relative; z-index:1;}
@media (prefers-reduced-motion: no-preference){
  .micwrap .ring{animation:kyte-pulse 2.6s ease-in-out infinite;}
  .micwrap .ring.r2{animation-delay:1.3s;}
}
@keyframes kyte-pulse{0%,100%{transform:scale(1); opacity:1;} 50%{transform:scale(1.12); opacity:.5;}}
.capture .d{margin-bottom:2px;}
.capture .tap{margin-top:2px;}
.capstage .d{margin-bottom:6px;}
.capstate{color:var(--ink); font-weight:600;}
.caphint{font-size:12px; color:var(--mut); margin-top:3px;}

/* ============ BUILD-OUT ============ */
.signin{position:fixed; inset:0; z-index:140; background:var(--ground); display:none; align-items:center; justify-content:center; text-align:center;}
.signin.show{display:flex;}
.signin .box{width:380px; max-width:90vw; display:flex; flex-direction:column; align-items:center;}
.signin input{width:100%; border:1px solid var(--line); border-radius:10px; padding:12px 15px; font-family:inherit; font-size:14px; color:var(--ink); background:var(--card); text-align:center; box-sizing:border-box;}
.signin input:focus{outline:2px solid var(--brand); outline-offset:1px; border-color:transparent;}
.sheetlab{font-size:11px; letter-spacing:.06em; text-transform:uppercase; font-weight:600; color:var(--mut); margin:16px 0 8px;}
#sheet-body .sheetlab:first-child{margin-top:0;}
.sheetinput{width:100%; border:1px solid var(--line); border-radius:10px; padding:11px 14px; font-family:inherit; font-size:13.5px; color:var(--ink); background:var(--card); box-sizing:border-box;}
textarea.sheetinput{min-height:88px; resize:vertical;}
#sheet-body .citem{padding:12px 2px;}
#sheet-body .setrow{padding:12px 2px;}
.sheetbtns{display:flex; gap:10px; margin-top:20px; flex-wrap:wrap;}
.eyebrow{font-size:11px; letter-spacing:.09em; text-transform:uppercase; font-weight:600; color:var(--brand);}
.docpage{max-width:820px;}
.bullets{margin:0; padding:4px 22px 16px 42px; font-size:13.5px; line-height:2; color:var(--ink);}
.grouphead{font-size:11.5px; font-weight:600; letter-spacing:.07em; text-transform:uppercase; color:var(--mut); padding:18px 22px 4px;}
button.setrow{width:100%; background:none; border:none; border-bottom:1px solid var(--line2); font-family:inherit; font-size:inherit; text-align:left; color:inherit; cursor:pointer;}
button.setrow:hover{background:var(--ground);}
button.setrow:last-of-type{border-bottom:none;}
.brandrow{display:flex; align-items:center; gap:10px;}
.brandrow .wm{font-family:var(--serif); font-size:13px; letter-spacing:.28em; font-weight:600;}

/* ============ EMAIL + STAT BAND PASS ============ */
.fdrop{font-family:inherit; font-size:12.5px; font-weight:600; border-radius:99px; padding:8px 14px;
  border:1px solid var(--line); background:var(--card); color:var(--grey); cursor:pointer; white-space:nowrap;
  display:inline-flex; align-items:center; gap:7px;}
.fdrop:hover{color:var(--ink);}
.fdrop:focus-visible{outline:2px solid var(--ink); outline-offset:2px;}
.fdrop .caret{font-size:10px; line-height:1;}
.fdrop.has{background:rgba(31,42,68,.08); border-color:rgba(31,42,68,.25); color:var(--brand);}
.fclear{display:none; background:none; border:none; font-family:inherit; font-size:12.5px; font-weight:600;
  color:var(--brand); cursor:pointer; padding:8px 4px;}
.fclear.show{display:inline-block;}
.statband{display:grid; grid-template-columns:repeat(4,1fr); overflow:hidden;}
.statcell{font-family:inherit; text-align:left; background:none; border:none; border-right:1px solid var(--line2);
  padding:18px 22px; cursor:pointer; color:inherit; min-width:0;}
.statcell:last-child{border-right:none;}
.statcell:hover{background:var(--ground);}
.statcell:focus-visible{outline:2px solid var(--ink); outline-offset:-2px;}
.statcell .k{display:block; font-size:11px; letter-spacing:.09em; text-transform:uppercase; font-weight:600; color:var(--mut);}
.statcell .v{display:block; font-family:var(--serif); font-size:24px; font-weight:400; margin-top:6px; font-variant-numeric:tabular-nums;}
.statcell .s{display:block; font-size:12px; color:var(--grey); margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
@media (max-width:1080px){ .statband{grid-template-columns:1fr 1fr;} .statcell{border-bottom:1px solid var(--line2);} }
.snip2{display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;}

/* ============================================================================
 * RESPONSIVE  ·  the iPad pass
 * ============================================================================
 *
 * David is the Chairman, he is the least technical person who will open this,
 * and he will open it on an iPad. So this is not a phone afterthought bolted to
 * a desktop design: iPad portrait is the size the product has to be judged at.
 *
 * The rule everything below serves: THE PAGE NEVER SCROLLS SIDEWAYS. A wide
 * thing (a register table, an operations table) scrolls inside its own box; the
 * document does not. Sideways page scroll is the single fault that makes a web
 * app feel broken on a tablet, and .side being a fixed 270px rail with no
 * breakpoint caused it on every screen below about 820px.
 *
 * Three tiers:
 *
 *   >= 900px    The full sidebar: words, groups, search. Desktop, every
 *               laptop window, the Mac app's Hub window and iPad landscape
 *               (1024) get the whole thing (9 Nov 2026, Matt: without the
 *               names "they will have no idea where everything is"; this
 *               line was 1100px until then). hub-d.css narrows it to 190px at
 *               1150px, which measured with every name whole down to 900px.
 *
 *   <  900px    The sidebar defaults to its collapsed, icons-only state (the
 *               same .sb-min the collapse button toggles), so iPad portrait
 *               (768 and 834) keeps every destination on screen without the
 *               page ever scrolling sideways. Each icon says its name on
 *               hover, and the control ("Show names") brings the words back;
 *               the choice is kept (kyte.sidebar.v2).
 *
 *   <  700px    Rows that pair a body with a right-hand column stack, and the
 *               top bar sheds its optional furniture. The phone story is the
 *               native app; this tier only has to degrade sanely.
 *
 * The old off-canvas popover drawer is gone with the old sidebar: the
 * frontend-light pattern this sidebar copies collapses in place instead, and
 * navigation is never behind a button.
 * ==========================================================================*/

@media (max-width:999.98px){
  /* The top bar carries the ask bar and the identity, so it stays put while
     the page scrolls. */
  .topbar{position:sticky; top:0; z-index:60; background:var(--ground);
    padding:12px 24px; gap:12px; border-bottom:1px solid var(--line2);}
  .page{padding:18px 24px 92px;}
  .tright{gap:14px;}

  /* ---- the ask bar has to be allowed to shrink ---- */
  .askbar{min-width:0;}
  .askbar .ph{min-width:0;}

  /* ---- touch targets. A finger, not a mouse: about 44px on anything pressable.
     (The sidebar's own 38px rows are the ported metric and stay.) ---- */
  .btn{min-height:44px; padding:11px 18px;}
  .fpill{min-height:44px; padding:11px 18px;}
  .fdrop{min-height:44px; padding:11px 16px;}
  .fclear{min-height:44px;}
  .seg button{min-height:44px;}
  .bell{width:44px; height:44px; display:inline-flex; align-items:center; justify-content:center; padding:0;}
  .bell .dot{top:2px; right:2px;}
  .acct .av{width:42px; height:42px; font-size:13px;}
  .crumb{min-height:44px;}
  .chead .link{min-height:44px; display:inline-flex; align-items:center;}
  .cardfoot{min-height:52px;}
  .citem{min-height:56px;}
  .agitem{min-height:56px;}
  .regrow{min-height:64px;}
  .paper{min-height:48px;}
  .logrow{min-height:44px; align-items:center;}
  .setrow{min-height:52px;}
  .qmaj{min-height:64px;}
  .sugg button{min-height:48px;}
  .askhead .esc{min-height:34px; padding:5px 10px;}
  #fb-btn{min-height:40px; padding:10px 16px;}

  /* iOS zooms the whole page when a field smaller than 16px takes focus, which
     leaves the layout offset and the person having to pinch back. The !important
     is deliberate: these sizes are inline on the approved markup, and this is a
     device behaviour rather than a design change. */
  .sheetinput, .signin input, #fb-text{font-size:16px !important;}

  /* ---- panels: keep them on the screen and let the body scroll ---- */
  .askpanel{top:5vh !important; max-height:88vh !important; max-height:88dvh !important; max-width:94vw;}
  .askwrap .askpanel > :last-child{overflow-y:auto; min-height:0;}
}

/* The 4-up fact band goes 2-up at 1080; the second cell in each pair was still
   drawing a divider against the edge of the card. */
@media (max-width:1080px){
  .fact:nth-child(2n){border-right:none;}
  .fact:last-child{border-bottom:none;}
  /* Stacked, the capture card's optical top padding is just a gap. */
  .capcol{padding-top:0;}
}

@media (max-width:700px){
  .topbar{padding:10px 16px; gap:10px;}
  .page{padding:14px 16px 88px;}
  /* A segmented tab bar wider than the phone scrolls sideways inside itself
     rather than pushing the whole page sideways; the scrollbar is hidden
     because the pills themselves show there is more. */
  .seg{display:flex; max-width:100%; overflow-x:auto; scrollbar-width:none;}
  .seg::-webkit-scrollbar{display:none;}
  .seg button{flex:none; white-space:nowrap;}
  /* Contact rows: the name may wrap, the status word may not. */
  .citem > div{min-width:0; overflow-wrap:anywhere;}
  .citem .stword{flex:none;}
  .askbar .ph, .askbar .kbd{display:none;}
  .askbar .lab{border-right:none; padding-right:0;}
  /* The avatar stays: it is the switch-view control, and it is the one thing
     here that has to remain pressable. The name and role are already on the
     screen the drawer opens. */
  .acct .nm, .acct .rl, .acct .chev, .acct br{display:none;}
  .greet h1{font-size:29px;}
  .pagehead h1{font-size:25px;}

  /* A body with a fixed right-hand column: the column drops underneath rather
     than squeezing the name and the task it belongs to. */
  .matter{flex-wrap:wrap; padding:20px;}
  /* flex-basis rather than width, and padding rather than margin: a 100% width
     plus a 56px margin is 56px wider than the row it sits in, which is a
     sideways scroll on Home and exactly the fault this pass exists to kill. The
     56px is the status mark and its gap, so the block lines up under the name. */
  .mside{flex:1 0 100%; width:auto; margin-left:0; padding-left:56px;
    flex-direction:row; align-items:center; flex-wrap:wrap; gap:12px;}
  .mside .btn{margin-top:0; margin-left:auto;}
  .mdesc{max-width:none;}
  /* The correspondence log's card header carries five filter chips beside its
     title. In one line that is wider than a phone. */
  .chead{flex-wrap:wrap; row-gap:8px;}
  .chead > span{flex-wrap:wrap;}
  .piperow{flex-wrap:wrap; padding:18px 20px;}
  .piperight{width:100%; display:flex; align-items:baseline; flex-wrap:wrap; gap:6px 18px;}
  .piperight .v, .piperight .o{margin-top:0;}
  .regrow{padding:15px 20px; gap:13px;}
  .regright{width:auto; min-width:96px;}
  .facts{grid-template-columns:1fr;}
  .fact{border-right:none;}
  .qmaj{padding:20px;}
  .capture{padding:26px 20px 28px;}
  .capstage{padding:34px 20px 30px;}
  .sumcard{padding:20px;}
  .chead{padding:18px 16px 6px;}
  .citem, .paper, .parrow, .logrow, .setrow, .grouphead{padding-left:16px; padding-right:16px;}
  .statcell{padding:16px;}
  .statcell .v{font-size:21px;}
}

/* ============ EMPTY STATE + SKELETON (5 Sep) ============
   One empty state for the whole product: sage circle, serif line, one
   sentence, one way forward. Skeleton rows keep a list's geometry while it
   loads so nothing reflows when the rows arrive. */
.empty{padding:44px 24px; text-align:center; max-width:520px; margin:0 auto;}
.empty-ic{display:inline-grid; place-items:center; width:46px; height:46px; border-radius:50%; background:var(--sage); color:var(--sage-ink); margin-bottom:12px;}
.empty-ic svg{width:20px; height:20px;}
.empty-t{font-family:var(--serif); font-size:18px; font-weight:500; color:var(--ink);}
.empty-d{font-size:13.5px; color:var(--grey); margin-top:5px; line-height:1.55;}
.empty-link{display:inline-block; margin-top:12px; font-size:13px; font-weight:600; color:var(--brand); text-decoration:none;}
.empty-link:hover{color:var(--brand-dark);}
.skel-list{padding:6px 22px 10px;}
.skel-row{display:flex; align-items:center; gap:14px; border-bottom:1px solid var(--line2);}
.skel-row:last-child{border-bottom:none;}
.skel{display:block; border-radius:6px; background:linear-gradient(90deg, #F1EFEA 0%, #F7F5F1 45%, #F1EFEA 90%); background-size:200% 100%; animation:kyte-shimmer 1.6s linear infinite;}
.skel-dot{width:30px; height:30px; border-radius:50%; flex:none;}
.skel-line{height:11px; flex:none;}
.skel-line.short{width:64px; margin-left:auto;}
@keyframes kyte-shimmer{from{background-position:180% 0;} to{background-position:-80% 0;}}

/* ============ SHELL TOUCH TARGETS + FOCUSED SCREENS (5 Sep) ============ */
/* On a touch device the collapsed rail's 34px rows are too small to hit. */
@media (pointer:coarse){
  .side .it{min-height:44px;}
  .s-search{min-height:44px;}
  .ws-collapse{width:44px; height:44px; display:grid; place-items:center;}
}
/* Brain and Assistant own a composer, so the shared Ask bar steps aside there. */
.topbar.nobar .askbar{display:none;}
/* Screen-reader and rig text for skeleton rows: present, never visible. */
.skel-say{position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap;}
/* The feedback pill. 10 Nov 2026 (Max, his first day, in Safari and Kyte for Mac: "I can't see the feedback box?"):
   an icon with no word, shown only on hover, read as nothing at all. On a laptop or desktop window it always says
   Feedback beside the icon (the pill's own hover state, now its resting one). A phone, where the width is tight,
   keeps the icon alone and opens to its word on hover or focus, as before. */
#fb-btn{display:inline-flex; align-items:center; width:auto; height:40px; padding:0 14px 0 12px; gap:7px; justify-content:center; border-radius:999px;}
#fb-btn svg{width:17px; height:17px; flex:none;}
#fb-btn .fb-word{white-space:nowrap;}
@media (max-width:650px){
  #fb-btn{gap:0; width:40px; padding:0;}
  #fb-btn .fb-word{max-width:0; overflow:hidden; transition:max-width .18s ease, margin .18s ease;}
  #fb-btn:hover, #fb-btn:focus-visible{width:auto; padding:0 14px 0 12px; gap:7px;}
  #fb-btn:hover .fb-word, #fb-btn:focus-visible .fb-word{max-width:90px;}
}

@media (prefers-reduced-motion: reduce){ *{transition:none !important; animation:none !important;} }

/* ============================================================================
 * HOME · THE APPROVED HOME SCREEN (Aug 2026)
 * ============================================================================
 * Matt's picture, replicated. The screen is: a white Smart Box card across the
 * top with four outlined quick actions, three cards beneath it (Priority
 * items, Capture, Pipeline snapshot), then a wide activity timeline beside a
 * single calm panel. The greeting moved into the top bar beside the bell and
 * the identity, and the shared "Ask the Brain" bar is hidden on this one
 * route because the Smart Box below is the entry point (see .topbar.home).
 *
 * WHAT CHANGED FROM THE OLD SMART BOX (Concept D). The panel was a burgundy
 * gradient slab. It is now a white card with a hairline border like every
 * other panel on the page, and the burgundy is carried by the sparkle, the AI
 * pill and the round send button alone. Every rule below that used to be
 * written against a dark ground has been re-derived for white; nothing was
 * left tinted for a background that is no longer there.
 *
 * ON COLOUR, because somebody will try to "fix" this. The typed tag pills in
 * the activity timeline and the donut segments in the pipeline snapshot ARE
 * COLOURED, ON PURPOSE, and are the approved design. The older
 * no-coloured-bars guidance came from the M22 hub and does not govern these
 * two components: Matt asked for this design specifically, in this palette.
 * Leave them alone.
 */

/* ---- the greeting and the top bar on Home ----
   The design puts "Good afternoon, Max." on the left of the top row with the
   bell and the identity on the right, and shows no Ask bar on Home. The top
   bar is shared chrome (index.html), so app.js flips .home on it per route;
   Cmd-K, / and the sidebar search still open the Ask overlay everywhere. */
.topgreet{display:none; margin:0; min-width:0; font-family:var(--serif); font-size:26px;
  font-weight:400; letter-spacing:.01em; color:var(--ink);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.topbar.home .topgreet{display:block;}
.topbar.home .askbar{display:none;}

/* ---- the Smart Box, as a white card ---- */
.sb-panel{position:relative; background:var(--card); border:1px solid var(--line);
  border-radius:14px; padding:26px 28px 24px; color:var(--ink);}
.sb-head{display:flex; align-items:center; gap:13px; margin-bottom:14px;}
/* The reference sets the sparkle larger and to the LEFT of a stacked
   title-and-line, as one block, and runs the whole card tighter than ours did. */
.sb-headtext{display:flex; flex-direction:column; gap:2px; min-width:0;}
.sb-head .ttlrow{display:flex; align-items:center; gap:9px;}
.sb-head svg{width:26px; height:26px; color:var(--brand); flex:none;}
.sb-head .ttl{font-size:18px; font-weight:500; letter-spacing:-.0056em;}
.sb-aipill{font-size:11px; font-weight:600; letter-spacing:.04em; color:var(--brand);
  background:rgba(31,42,68,.08); border-radius:99px; padding:3px 9px; margin-left:2px;}
.sb-sub{font-size:12.5px; color:var(--grey); margin:0; max-width:60ch;}

/* The interpretation strip: still the one place a misread is caught before
   Enter, now legible on white rather than on burgundy. */
.sb-hint{display:none; align-items:center; gap:10px; margin-top:14px; padding:11px 13px; border-radius:10px;
  background:var(--ground); border:1px solid var(--line);}
.sb-hint.show{display:flex;}
.sb-tag{flex:none; font-size:11px; font-weight:600; letter-spacing:.02em; padding:3.5px 10px; border-radius:99px;}
.sb-tag.write{background:var(--brand); color:#fff;}
.sb-tag.ask{background:var(--active); color:#57534B;}
.sb-hint .txt{font-size:12.5px; font-weight:400; color:var(--grey); flex:1; min-width:0; line-height:1.5;}

/* The four quick actions: outlined pills on white, an icon then a label, and
   every one of them a real destination rather than a phrase typed into the
   box. */
.sb-chips{display:flex; flex-wrap:wrap; gap:10px; margin-top:16px;}
.sb-chips.hide{display:none;}
.sb-chip{display:inline-flex; align-items:center; gap:8px; font-family:inherit; font-size:12.5px; font-weight:600;
  color:var(--ink); background:var(--card); border:1px solid var(--line); border-radius:8px;
  padding:10px 15px; cursor:pointer; white-space:nowrap;}
.sb-chip:hover{background:var(--ground); border-color:#DCD8D0;}
.sb-chip:focus-visible{outline:2px solid var(--ink); outline-offset:2px;}
.sb-chip svg{width:14px; height:14px; flex:none; color:var(--grey);}

.sb-response{margin-top:16px;}
.sb-done{display:flex; align-items:center; gap:14px; padding:15px 18px; border-radius:12px;
  background:var(--ground); border:1px solid var(--line2);}
.sb-done .ic{width:32px; height:32px; border-radius:50%; background:var(--sage); color:var(--sage-ink);
  display:flex; align-items:center; justify-content:center; flex:none;}
.sb-done .t{display:block; font-size:13.5px; font-weight:600; color:var(--ink);}
.sb-done .s{display:block; font-size:12.5px; color:var(--grey); margin-top:1px;}
.sb-ans{padding:16px 18px; border-radius:12px; background:var(--ground); border:1px solid var(--line2);
  color:var(--ink); font-size:13.5px; line-height:1.65;}
.sb-srcs{display:flex; gap:6px; flex-wrap:wrap; margin-top:10px;}
.sb-srcchip{font-size:11px; font-weight:600; color:var(--grey); background:var(--card); padding:3px 9px;
  border-radius:99px; border:1px solid var(--line);}
.sb-reset{display:block; margin-top:10px; font-family:inherit; font-size:12.5px; font-weight:600;
  color:var(--grey); background:none; border:none; cursor:pointer; padding:0;}
.sb-reset:hover{color:var(--ink);}

/* ============ THE THREE-CARD ROW ============ */
.sd-three{display:grid; grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr) minmax(0,1fr);
  gap:22px; align-items:stretch;}
/* Equal height is the reference's own composition: the three cards share a
   baseline, so a short Capture card stretches rather than floating. Their
   inner content stays top-aligned; only the card grows. */
.sd-three > .card{display:flex; flex-direction:column;}
/* The capture rows in the reference are roomier than a list row and their
   tiles are the pink the Smart Box uses, not the neutral side tint. */
/* The reference draws each capture row as its OWN bordered card with a gap
   between them, not as rows divided by a rule. Ours had a divider; a crop of
   the two side by side made the difference plain. */
.sd-cap{display:flex; flex-direction:column; gap:12px; padding:6px 18px 18px; flex:1;}
.sd-cap .citem{flex:1; gap:15px; padding:14px 16px; border:1px solid var(--line);
  border-radius:13px; border-bottom:1px solid var(--line);}
.sd-cap .citem:last-of-type{border-bottom:1px solid var(--line);}
.sd-cap .citem:hover{background:var(--ground); border-color:var(--line2);}
.sd-cap .citem .t{font-weight:500; font-size:14px;}
.sd-cap .citem .s{font-size:12.5px;}
.sd-cap .cicon{width:46px; height:46px; border-radius:50%;}
.sd-cap .cicon svg{width:21px; height:21px;}
/* Two tints, as the reference has: the meeting rose, the note amber. */
.sd-cap .cicon.rose{background:rgba(31,42,68,.08); color:var(--brand);}
.sd-cap .cicon.amber{background:rgba(188,130,38,.10); color:#B0782B;}
/* The card heading sits smaller over these than a page heading. */
.sd-three .card > .chead .t{font-size:16px;}
.sd-three .cicon{width:46px; height:46px; border-radius:12px;
  background:rgba(31,42,68,.08); color:var(--brand);}
.sd-three .cicon svg{width:22px; height:22px;}
.sd-link{font-family:inherit; font-size:12.5px; font-weight:600; color:var(--brand); background:none; border:none;
  cursor:pointer; margin-left:auto; white-space:nowrap;}
.sd-link:hover{color:var(--brand-dark);}
.sd-link.arw::after{content:" \2192";}

/* A flex item's default min-width is auto, not 0, so a grid laid out inside a
   flex-column .page can refuse to shrink below its grandchildren's content
   width and blow the page out sideways instead of wrapping. One rule, once. */
.page > *{min-width:0;}

/* ---- priority items ---- */
.sd-prow{display:flex; align-items:center; gap:13px; width:100%; padding:14px 22px; border-bottom:1px solid var(--line2);
  background:none; border-left:none; border-right:none; border-top:none; font-family:inherit; font-size:inherit;
  text-align:left; cursor:pointer; color:inherit;}
.sd-prow:hover{background:var(--ground);}
.sd-prow:last-of-type{border-bottom:none;}
.sd-prow:focus-visible{outline:2px solid var(--brand); outline-offset:-2px;}
/* The letter avatar, coloured by how soon the thing is due: burgundy for the
   most urgent, amber next, a quiet stone grey for the rest. */
.sd-av{width:36px; height:36px; border-radius:50%; flex:none; display:flex; align-items:center;
  justify-content:center; color:#fff; font-family:var(--sans); font-size:14.5px; font-weight:600;}
.sd-av.urgent{background:var(--brand);}
.sd-av.soon{background:var(--orange);}
.sd-av.later{background:#B4AFA5;}
.sd-pbody{flex:1; min-width:0;}
/* Both are spans, so the row still reads as one sentence without CSS, which
   means they need an explicit display:block to stack rather than running on
   as "Elm CourtCapital call". */
.sd-pbody .t{display:block; font-size:13.5px; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.sd-pbody .s{display:block; font-size:12.5px; color:var(--grey); margin-top:2px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.sd-due{flex:none; font-size:11.5px; font-weight:500; color:var(--mut); white-space:nowrap;}
.sd-due.red{color:var(--red-text);}

/* ---- capture rows: a pale pink circular tile, a label, a sub-line, a chevron ---- */
.cicon.rose{background:rgba(31,42,68,.08); color:var(--brand); border-radius:50%;}

/* ---- pipeline snapshot: a donut with the total in the middle, and a legend.
   The segment colours are the approved ones (see the note at the top of this
   section): burgundy, amber, sage green, grey, in that order.

   The ring is deliberately thin — 15 of the 150 viewBox, so the hole is 96
   across, about 64% of the donut's box. The chunkier ring we shipped first
   read as a pie chart with a hole punched in it; the reference is a rule
   drawn round a number, and the number is the point. Segments are butt-capped
   with a two-unit gap between them, and there is no shadow: this is a
   diagram, not an object. ---- */
.sd-pipe{display:flex; align-items:center; gap:12px; padding:8px 22px 20px; flex-wrap:wrap;}
/* 52%, not 44%: the figure is set at 30px now and it has to live inside the
   hole, which is 64% of whatever the donut ends up being. At 44% of this card
   the hole came out at 83px and "£4.4m" is 84px wide, so the number sat on
   top of its own ring. */
.sd-donut{position:relative; width:min(150px, 50%); aspect-ratio:1; flex:none; margin:0;}
.sd-donut svg{display:block; width:100%; height:100%; transform:rotate(-90deg);}
.sd-donut .mid{position:absolute; inset:0; display:flex; flex-direction:column; align-items:center;
  justify-content:center; text-align:center; padding:0 16px;}
.sd-donut .fig{font-size:24px; font-weight:500; letter-spacing:-.014em; font-variant-numeric:tabular-nums;
  line-height:1.1; letter-spacing:-.007em;}
.sd-donut .cap{font-size:12px; color:var(--grey); margin-top:4px;}
/* "Not costed" is a sentence, not a figure, and a sentence set at 30px in a
   96px hole is three ragged lines. */
.sd-donut .fig.word{font-size:14px; letter-spacing:0; line-height:1.3;}
.sd-legend{flex:1 1 120px; min-width:0; display:flex; flex-direction:column; gap:13px;}
.sd-legrow{display:flex; align-items:center; gap:11px; font-size:12.5px; min-width:0; padding:5px 0;}
.sd-legrow .dot{width:8px; height:8px; border-radius:50%; flex:none;}
.sd-legrow .lab{flex:1; min-width:0; color:var(--grey); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.sd-legrow .val{flex:none; font-weight:500; font-variant-numeric:tabular-nums;}
.sd-note{padding:0 22px 16px; font-size:11.5px; color:var(--mut); line-height:1.5;}

/* ============ THE BOTTOM PAIR ============ */
.sd-bottom{display:grid; grid-template-columns:minmax(0,1.7fr) minmax(0,1fr); gap:22px; align-items:start;}
.sd-actbar{display:flex; align-items:center; gap:12px; padding:18px 22px 10px; flex-wrap:wrap;}
.sd-actbar .t{font-size:16px; font-weight:500; letter-spacing:-.0042em;}

/* ---- the activity timeline: a time, a bare coloured glyph sitting on the
   rule, the description, and a typed tag pill hard right.

   The glyph used to sit in a faint grey circle. The reference has no circle
   and no grey: the icon is drawn straight onto the timeline in the colour of
   its own row — burgundy for a deal, amber for a note, blue for portfolio,
   slate for a document or an update — so the eye can read the type of a row
   before it reads a word of it. The colours are the tag pills' own text
   tokens, not a second palette invented for icons; if a pill and its glyph
   ever disagree the row is lying about itself. The white patch behind the
   glyph is the card, masking the rule so the line does not run through the
   drawing. ---- */
.sd-timeline{position:relative; padding:2px 22px 6px;}
.sd-timeline::before{content:''; position:absolute; top:18px; bottom:18px; left:95px; width:1px; background:var(--line2);}
.sd-trow{display:flex; align-items:flex-start; gap:0; padding:7px 0;
  border-bottom:1px solid var(--line2);}
.sd-trow:last-of-type{border-bottom:none;}
.sd-time{width:56px; flex:none; font-size:11px; color:var(--mut); font-weight:500; font-variant-numeric:tabular-nums;
  padding-top:6px;}
.sd-nodecol{width:34px; flex:none; display:flex; justify-content:center; padding-top:1px;}
.sd-ico{width:24px; height:22px; background:var(--card); color:#57534B;
  display:flex; align-items:center; justify-content:center; flex:none;}
.sd-ico svg{width:15px; height:15px; stroke-width:1.6;}
.sd-ico.rose, .sd-ico.deal, .sd-ico.update{color:var(--brand);}
.sd-ico.green, .sd-ico.document{color:var(--sage-ink);}
.sd-ico.amber, .sd-ico.note{color:var(--orange-text);}
.sd-ico.blue, .sd-ico.portfolio{color:var(--blue-text);}
.sd-ico.slate{color:#57534B;}
.sd-desc{flex:1; min-width:0; font-size:12.5px; color:var(--ink); line-height:1.5; padding:3px 14px 0 4px;
  overflow-wrap:break-word;}
.sd-desc .who{color:var(--grey);}
/* The five approved tints. They are named for the colour rather than for one
   vocabulary of labels, because the words on the pill come from the real
   data; the design's own Deal / Document / Note / Portfolio / Update names
   are kept as aliases underneath. */
.sd-tag2{flex:none; font-size:10.5px; font-weight:500; padding:2px 7px; border-radius:5px; white-space:nowrap; margin-top:3px;}
.sd-tag2.rose{background:rgba(31,42,68,.08); color:var(--brand);}
.sd-tag2.green{background:var(--sage); color:var(--sage-ink);}
.sd-tag2.amber{background:var(--orange-soft); color:var(--orange-text);}
.sd-tag2.blue{background:var(--blue-soft); color:var(--blue-text);}
.sd-tag2.slate{background:var(--active); color:#57534B;}
.sd-tag2.deal, .sd-tag2.update{background:rgba(31,42,68,.08); color:var(--brand);}
.sd-tag2.document{background:var(--sage); color:var(--sage-ink);}
.sd-tag2.note{background:var(--orange-soft); color:var(--orange-text);}
.sd-tag2.portfolio{background:var(--blue-soft); color:var(--blue-text);}
.sd-loadmore{display:block; width:100%; margin:2px 0 14px; padding:10px 0; font-family:inherit; font-size:12.5px;
  font-weight:600; color:var(--brand); background:none; border:none; cursor:pointer; text-align:center;}
.sd-loadmore:hover{color:var(--brand-dark);}
.sd-loadmore:disabled{color:var(--mut); cursor:default;}
.sd-loadmore .arr{display:inline-block; margin-left:5px;}

/* ---- the calm panel. Green only when the quiet is real: the copy and the
   colour are chosen from the live counts by the screen, and the amber state
   below is the same panel telling the truth instead. ---- */
.sd-calm{padding:30px 24px 32px; text-align:center;}
.sd-calm .ic{width:74px; height:74px; border-radius:50%; background:var(--sage); color:var(--sage-ink);
  display:inline-flex; align-items:center; justify-content:center; margin-bottom:16px;}
.sd-calm .ic.warn{background:var(--orange-soft); color:var(--orange-text);}
.sd-calm .t{font-size:14.5px; font-weight:600; color:var(--green-text); line-height:1.5;}
.sd-calm .t.warn{color:var(--orange-text);}
.sd-calm .d{font-size:13px; color:var(--grey); margin-top:6px; line-height:1.6;}
.sd-calm .go{margin:18px auto 0; display:inline-flex;}

/* ============ RESPONSIVE, deliberate not accidental ============
   Both grids on this page collapse at the same 1080px breakpoint the shared
   shell already uses for .rowa/.rowc/.statband, so nothing looks
   half-migrated at an in-between width. */
@media (max-width:1080px){
  .sd-three{grid-template-columns:minmax(0,1fr);}
  .sd-bottom{grid-template-columns:minmax(0,1fr);}
  .sb-panel{padding:22px 20px 20px;}
}
@media (max-width:999.98px){
  .topgreet{font-size:21px;}
}
@media (max-width:699.98px){
  .topgreet{font-size:17px;}
  .sd-timeline{padding-left:16px; padding-right:16px;}
  .sd-timeline::before{left:87px;}
  .sd-time{width:50px;}
  .sd-pipe{padding-left:16px; padding-right:16px;}
  .sd-note{padding-left:16px; padding-right:16px;}
}

/* ============================================================================
 * INTERACTION SURFACES · PHASE 1 (Aug 2026)
 * ============================================================================
 * The prompt bar, the staged thinking state, the streamed word reveal,
 * follow-up chips and the chat view. The structure, spacing and motion are
 * ported from the reference component patterns Matt picked; every colour is
 * the Kyte palette above, and every animation is gated on
 * prefers-reduced-motion (the global reduce rule above kills them too, so
 * nothing here may HIDE content that an animation was going to show).
 * ==========================================================================*/

/* ---- The prompt bar. One rounded container (rounded, not pill: Matt's
   pick), shared verbatim by the Smart Box and the conversation composer.
   The send control is a plain round arrow, at rest and while typing; it
   never grows a label or morphs, because the interpretation of what
   pressing it will do lives in the hint strip, not in the button. ---- */
.pb{display:flex; align-items:center; gap:4px; width:100%; min-height:48px;
  background:var(--card); border:1px solid var(--line); border-radius:14px; padding:8px 8px 8px 18px;
  transition:border-color .15s ease, box-shadow .15s ease;}
.pb:focus-within{border-color:rgba(31,42,68,.4); box-shadow:0 0 0 3px rgba(31,42,68,.08);}
.pb-in{flex:1; min-width:0; border:none; background:transparent; outline:none; font-family:inherit;
  font-size:15px; color:var(--ink); padding:0; height:38px;}
.pb-in::placeholder{color:var(--mut);}
.pb-mic{position:relative; width:38px; height:38px; border-radius:50%; border:none; background:transparent;
  color:var(--grey); cursor:pointer; display:inline-flex; align-items:center; justify-content:center;
  flex:none; padding:0;}
.pb-mic:hover{color:var(--brand);}
.pb-mic:focus-visible{outline:2px solid var(--ink); outline-offset:2px;}
.pb-mic svg{width:17px; height:17px; position:relative; z-index:1;}
/* The same breathing halo the Capture mic wears (kyte-pulse above), at chip
   scale, so dictation reads as the one live affordance in the bar. The
   halo simply does not move when the reader has asked for reduced motion. */
.pb-mic::before, .pb-mic::after{content:''; position:absolute; border-radius:50%; pointer-events:none;}
.pb-mic::before{inset:5px; background:rgba(31,42,68,.10);}
.pb-mic::after{inset:1px; background:rgba(31,42,68,.05);}
@media (prefers-reduced-motion: no-preference){
  .pb-mic::before{animation:kyte-pulse 2.6s ease-in-out infinite;}
  .pb-mic::after{animation:kyte-pulse 2.6s ease-in-out infinite; animation-delay:1.3s;}
}
.pb-send{width:40px; height:40px; border-radius:50%; background:var(--brand); color:#fff; border:none;
  cursor:pointer; display:inline-flex; align-items:center; justify-content:center; padding:0; flex:none;}
.pb-send:hover{background:var(--brand-dark);}
.pb-send:focus-visible{outline:2px solid var(--ink); outline-offset:2px;}
.pb-send:disabled{opacity:.6; cursor:default;}
.pb-send svg{width:17px; height:17px;}
/* Inside the Smart Box the bar is the design's own field: a full-width
   rounded rectangle at a smaller radius than the shared bar's, a hairline
   border rather than the burgundy panel's drop shadow (there is no burgundy
   panel any more), and a larger round send button at its right edge. */
.sb-panel .pb{border-radius:10px; min-height:60px;}
.sb-panel .pb-send{width:44px; height:44px;}

/* ---- Thinking, staged honestly. Three stages naming the real pipeline
   (read, retrieve, compose: the same split the answer's ms breakdown
   reports afterwards), advanced on timers keyed to the last observed
   timings and snapped to done the moment the answer lands. Elapsed
   seconds sit top right, because a claim about time should be checkable
   while it is being made, not only after. ---- */
.think{position:relative; padding:14px 18px 12px; border-radius:12px; background:var(--card);
  border:1px solid var(--line2);}
.sb-response .think{border:none;}
.bub .think{border:none; background:transparent; padding:2px 0;}
.think-row{display:flex; align-items:center; gap:10px; padding:4px 0; font-size:12.5px; color:var(--mut);}
.think-row .tk{width:16px; height:16px; flex:none; display:inline-flex; align-items:center;
  justify-content:center;}
.think-row .tk .dot{width:6px; height:6px; border-radius:50%; background:var(--line);}
.think-row.on{color:var(--grey); font-weight:600;}
.think-row.on .tk .dot{background:var(--brand);}
.think-row.done{color:var(--grey);}
.think-row.done .tk{color:var(--sage-ink);}
.think-elapsed{position:absolute; top:12px; right:14px; font-size:11px; color:var(--mut);
  font-variant-numeric:tabular-nums;}
.bub .think-elapsed{top:2px; right:0;}
/* A quiet sweep of light through the active stage's words and nothing else:
   no bars, no pixel grid. Gated because gradient text must fall back to
   plain grey when the animation is off. */
@media (prefers-reduced-motion: no-preference){
  .think-row.on .txt{background:linear-gradient(100deg, var(--grey) 42%, #C9C4BA 50%, var(--grey) 58%);
    background-size:200% 100%; -webkit-background-clip:text; background-clip:text; color:transparent;
    animation:kyte-shimmer 1.6s linear infinite;}
}
@keyframes kyte-shimmer{from{background-position:180% 0;} to{background-position:-80% 0;}}

/* ---- The streamed reveal. Words fade in on a fast cadence, the whole
   answer inside 1.5 seconds. The reveal runs on the FINAL validated answer
   only: nothing is painted before the server responds, because the
   citation scrub can delete sentences and a streamed-then-retracted
   sentence is a lie. Words are visible by default and hidden only inside
   the motion gate, so reduced motion, and any styling failure, reads
   instantly rather than reading nothing. ---- */
.rv-w{opacity:1;}
@media (prefers-reduced-motion: no-preference){
  .rv-w{opacity:0; animation:kyte-word .26s ease-out forwards;}
}
@keyframes kyte-word{from{opacity:0;} to{opacity:1;}}

/* ---- Follow-up chips: up to three, composed deterministically from what
   the answer named (no model call, so they are free and instant), feeding
   the same conversation they came from. ---- */
.fups{display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; align-items:center;}
.fuplab{flex:none; width:100%; font-size:10.5px; letter-spacing:.08em; text-transform:uppercase;
  font-weight:600; color:var(--mut);}
.fup{display:inline-flex; align-items:center; gap:7px; font-family:inherit; font-size:12px;
  font-weight:600; color:var(--ink); background:var(--ground); border:1px solid var(--line);
  border-radius:10px; padding:8px 13px; cursor:pointer; text-align:left;}
.fup:hover{background:var(--side); border-color:#DCD8D0;}
.fup:focus-visible{outline:2px solid var(--ink); outline-offset:2px;}
.fup svg{width:13px; height:13px; color:var(--brand); flex:none;}
.bub.ai .fup{background:var(--card);}
/* (The Smart Box's follow-up chips used to be re-tinted for a burgundy
   ground. The panel is white now, so they simply are the shared chips.) */

/* ---- The chat view. The overlay grows a docked composer (the shared
   prompt bar) below the thread and quiet role eyebrows over the existing
   bubbles; the header row becomes the panel's title and escape. ---- */
.askhead .ph.title{color:var(--ink); font-weight:600; font-size:14px;}
.askscroll{min-height:0; padding:18px 22px;}
.rolelab{font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; font-weight:600;
  color:var(--mut); margin-top:16px;}
.rolelab.me{text-align:right;}
.rolelab:first-child{margin-top:2px;}
.rolelab + .bub{margin-top:6px;}
.askfoot{flex:none; border-top:1px solid var(--line2); padding:12px 14px;
  background:var(--card); border-radius:0 0 16px 16px;}
.askfoot .pb{min-height:52px; border-radius:12px;}
@media (max-width:999.98px){
  /* The composer is the panel's last child now, so the earlier last-child
     rule would hand the scrolling to the composer. It stays on the thread. */
  .askwrap .askpanel > .askfoot{overflow-y:visible;}
  .askwrap .askscroll{overflow-y:auto;}
  .pb-in{font-size:16px;} /* the iOS zoom-on-focus rule, same as .sheetinput */
}

/* ============================================================================
 * THE TOP-RIGHT USER MENU (Aug 2026)
 * ============================================================================
 * frontend-light's .menu, in the Kyte skin. The identity block in the top bar
 * opens it; Switch view lives here now that the sidebar's user block is gone.
 */
button.acct{background:none; border:none; padding:0; font-family:inherit; font-size:inherit;
  color:inherit; cursor:pointer; text-align:left;}
.acct:focus-visible{outline:2px solid var(--ink); outline-offset:2px; border-radius:8px;}
.drop{position:relative;}
.menu{position:absolute; right:0; top:calc(100% + 8px); z-index:85; min-width:230px;
  background:var(--card); border:1px solid var(--line); border-radius:13px;
  box-shadow:0 10px 30px rgba(33,31,27,.12); padding:6px; display:none;}
.menu.on{display:block;}
.mrow{display:flex; align-items:center; gap:9px; width:100%; text-align:left; padding:9px 10px;
  border-radius:9px; font-family:inherit; font-size:13px; font-weight:400; color:var(--ink);
  background:none; border:none; cursor:pointer;}
.mrow:hover{background:var(--side);}
.mrow svg{width:16px; height:16px; color:var(--grey); flex:none;}
.mrow .sub{display:block; font-size:11.5px; font-weight:400; color:var(--mut); margin-top:1px;}
.msep{height:1px; background:var(--line2); margin:5px 3px;}
.mhead{padding:8px 10px 6px; font-size:11.5px; color:var(--mut); line-height:1.5;}
.mhead b{display:block; font-size:12.5px; color:var(--ink); font-weight:600; margin-bottom:1px;}

/* ============================================================================
 * BRAIN · the conversation as a first-class page (Aug 2026)
 * ============================================================================
 * The same thread furniture the overlay uses (.rolelab, .bub, .srcrow,
 * .think, .fups) laid out as a full screen: the thread rides the page
 * scroll, and the shared prompt bar docks at the foot of the viewport on a
 * quiet gradient so the last bubble slides under it rather than colliding.
 * Three doors, one conversation: the Smart Box, the Cmd-K overlay, and this
 * page. The empty state is one line and the bar; a fresh conversation does
 * not need selling to the person who opened it.
 */
.brainpage{max-width:780px; width:100%; display:flex; flex-direction:column;
  min-height:calc(100vh - 190px); min-height:calc(100dvh - 190px);}
.brainthread{flex:1 1 auto; display:flex; flex-direction:column; justify-content:flex-end;}
.brainthread .bub{max-width:78%;}
.brainempty{margin:auto 0 8px; text-align:center; font-size:13.5px; color:var(--grey);}
.brainbar{position:sticky; bottom:0; margin-top:16px; padding:12px 0 20px;
  background:linear-gradient(to top, var(--ground) 72%, rgba(251,250,247,0));}

/* Dictation, on the ask surfaces only (the Brain page and the Cmd-K
   overlay): the mic is a press-to-talk toggle that types into the composer.
   While listening it fills with the brand and the halo quickens. The Smart
   Box mic is untouched — it is the capture entry point in the approved
   design and keeps its own behaviour. */
.pb-mic.on{color:#fff; background:var(--brand);}
.pb-mic.on:hover{color:#fff;}
.pb-mic.on::before{background:rgba(31,42,68,.18);}
.pb-mic.on::after{background:rgba(31,42,68,.10);}
@media (prefers-reduced-motion: no-preference){
  .pb-mic.on::before, .pb-mic.on::after{animation-duration:1.1s;}
}

/* ============================================================================
 * PIPELINE · THE TRACKING BOARD (Aug 2026)
 * ============================================================================
 * Jonny's ask, built to the pattern of an earlier M22 deals board: a
 * kanban of tinted columns (the "coloured boards"), cards that drag between
 * stages, and a right-hand deal sheet. The reference's metrics are kept —
 * 292px columns at 16px radius, 12px cards, the 128px/1fr property grid —
 * and every colour is re-derived from the Kyte palette: the column washes
 * are soft burgundy/sage/amber/slate at the lightness of the reference's
 * pastels, never its blue/violet hexes. The board scrolls sideways inside
 * its own box (.kb-wrap); the page itself never does.
 */
.kb-wrap{overflow-x:auto; padding-bottom:8px;}
.kb-board{display:flex; gap:14px; align-items:flex-start; min-width:min-content;}
.kb-col{width:292px; flex:none; display:flex; flex-direction:column; border-radius:16px;
  border:1px solid var(--line); background:var(--card);}
.kb-col[data-tone="slate"]{background:#F5F4F0;}
.kb-col[data-tone="sage"]{background:#F1F6EF;}
.kb-col[data-tone="amber"]{background:#FAF4E8;}
.kb-col[data-tone="burgundy"]{background:#f9f7f1;}
.kb-colh{display:flex; align-items:center; gap:8px; padding:12px 14px 6px;}
.kb-colh .dot{width:8px; height:8px; border-radius:99px; flex:none;}
.kb-colh b{flex:1; min-width:0; font-size:13.5px; font-weight:600; white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis;}
.kb-colh .n{font-size:12px; color:var(--mut); font-weight:400; flex:none; font-variant-numeric:tabular-nums;}
.kb-sum{padding:0 14px 8px; font-size:11.5px; color:var(--mut); font-variant-numeric:tabular-nums;}
.kb-cards{min-height:44px; padding:2px 10px 12px; display:flex; flex-direction:column; gap:8px;}
.kb-card{background:var(--card); border:1px solid var(--line); border-radius:12px;
  padding:11px 12px 10px; box-shadow:0 1px 2px rgba(33,31,27,.04); cursor:grab;
  font-family:inherit; font-size:inherit; text-align:left; color:inherit; width:100%; display:block;}
.kb-card:hover{box-shadow:0 4px 14px rgba(33,31,27,.09);}
.kb-card:focus-visible{outline:2px solid var(--ink); outline-offset:2px;}
.kb-card.dragging{opacity:.45;}
.kb-card .t{font-family:var(--serif); font-size:14.5px; font-weight:600; line-height:1.4;}
.kb-card .co{font-size:12px; color:var(--grey); margin-top:2px; white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis;}
.kb-card .ft{display:flex; align-items:center; gap:7px; margin-top:9px; min-height:17px;}
.kb-card .val{font-size:13px; font-weight:600; letter-spacing:-.007em; font-variant-numeric:tabular-nums;}
.kb-card .val.unsized{color:var(--mut); font-weight:400; font-size:12px;}
.kb-card .notesdot{color:var(--mut); display:inline-flex; align-items:center; flex:none;}
.kb-card .dt{display:inline-flex; align-items:center; gap:4px; font-size:11px; color:var(--mut);
  margin-left:auto; font-variant-numeric:tabular-nums; white-space:nowrap;}
.kb-card .dt.overdue{color:var(--red-text); font-weight:600;}
/* The floating copy under the pointer while a drag is live. */
.kb-ghost{position:fixed; z-index:120; width:270px; pointer-events:none; cursor:grabbing;
  box-shadow:0 14px 34px rgba(33,31,27,.2); transform:rotate(1.5deg);}
/* The drop indicator: a dashed slot at the foot of the hovered column. */
.kb-gap{height:0; border-radius:10px; transition:height .12s; pointer-events:none; flex:none;}
.kb-gap.on{height:44px; border:1.5px dashed rgba(31,42,68,.4); background:rgba(31,42,68,.05);}
.kb-note{margin:10px 2px 0; font-size:12.5px; color:var(--mut); line-height:1.55;}

/* ---- the deal sheet: frontend-light's .rsheet in the Kyte skin ---- */
.rsheet-dim{position:fixed; inset:0; z-index:79; background:rgba(33,31,27,.18); border:none;
  cursor:pointer; padding:0; display:none; width:100%;}
.rsheet-dim.on{display:block;}
.rsheet{position:fixed; top:0; right:0; bottom:0; width:46%; min-width:500px; max-width:640px;
  z-index:80; background:var(--card); border-left:1px solid var(--line);
  box-shadow:-14px 0 40px rgba(33,31,27,.1); display:none; flex-direction:column;}
.rsheet.on{display:flex;}
.rsheet-bar{display:flex; align-items:center; gap:10px; padding:12px 18px; border-bottom:1px solid var(--line2);}
.rsheet-bar .crumb2{font-size:12.5px; color:var(--mut); display:flex; align-items:center; gap:6px;
  flex:1; min-width:0; white-space:nowrap; overflow:hidden;}
.rsheet-bar .crumb2 .dot{width:7px; height:7px; border-radius:99px; flex:none;}
.rsheet-body{flex:1; min-height:0; overflow-y:auto; padding:22px 26px 30px;}
/* The title is the door to the record page, so it is a control, not a label. */
.kb-title{font-family:var(--serif); font-size:22px; font-weight:600; letter-spacing:.005em;
  color:var(--ink); background:none; border:none; padding:0; cursor:pointer; text-align:left;
  line-height:1.3; font-variant:inherit;}
.kb-title:hover{color:var(--brand);}
.kb-title:focus-visible{outline:2px solid var(--ink); outline-offset:2px;}
.kb-props{margin-top:16px; border-top:1px solid var(--line2);}
.kb-prow{display:grid; grid-template-columns:128px 1fr; gap:14px; align-items:center;
  padding:8px 0; border-bottom:1px solid var(--line2); min-height:40px;}
.kb-prow .k{font-size:12.5px; color:var(--mut);}
.kb-prow .v{font-size:13.5px; font-weight:600; min-width:0; overflow-wrap:break-word;}
.kb-prow .v .quiet{color:var(--mut); font-weight:400;}
.kb-stages{display:flex; gap:6px; flex-wrap:wrap;}
@media (max-width:699.98px){
  .rsheet{width:100%; min-width:0;}
  .kb-prow{grid-template-columns:104px 1fr;}
}

/* 15 Sep: the Needs-you card at the top of a record in the action lane. */
.nycard{padding:18px 22px 14px; border:1px solid #E3B6B0;} /* a quiet red outline, never a bar (Matt, 15 Sep) */
.nycard .eyebrow{margin-bottom:10px;}
.nyrow{display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:10px 0; border-top:1px solid var(--line2);}
.nyrow:first-of-type{border-top:0; padding-top:0;}
.nyt{display:flex; flex-direction:column; gap:3px; min-width:0;}
.nyt b{font-size:15px; font-weight:600; line-height:1.35;}
.nyt span{font-size:13px; color:var(--grey); line-height:1.45;}
.nya{display:flex; gap:8px; flex:none; flex-wrap:wrap; justify-content:flex-end;}
.nyfoot{margin-top:10px; padding-top:10px; border-top:1px solid var(--line2);}
.nyfoot .link{background:none; border:0; padding:0; font:inherit; font-size:12.5px; font-weight:600; color:var(--brand); cursor:pointer;}
.nyfoot .link:hover{text-decoration:underline;}
@media (max-width:640px){ .nyrow{flex-direction:column;} .nya{justify-content:flex-start;} }
.nyt b .link{background:none; border:0; padding:0; margin-left:8px; font:inherit; font-size:12px; font-weight:600; color:var(--brand); cursor:pointer;}
.nyt .quiet{color:var(--mut);}
.nyt .quiet .link{background:none; border:0; padding:0; margin-left:6px; font:inherit; font-size:12.5px; font-weight:600; color:var(--brand); cursor:pointer;}
.nyt a{color:var(--brand); text-decoration:none; font-weight:600;}

/* =====================================================================
   15 Sep: the "better-ui" trial on the Investments page (?ui=better).
   Every value below is the skill's own: cubic-bezier(0.2, 0, 0, 1),
   150ms, scale 0.96, icon 0.25 -> 1 with blur 4px -> 0, the three-layer
   shadow ring. Scoped to .ui-better so the current look is untouched.
   ===================================================================== */
.ui-better{
  --shadow-border: 0px 0px 0px 1px oklch(0 0 0 / 0.06), 0px 1px 2px -1px oklch(0 0 0 / 0.06), 0px 2px 4px 0px oklch(0 0 0 / 0.04);
  --shadow-border-hover: 0px 0px 0px 1px oklch(0 0 0 / 0.08), 0px 1px 2px -1px oklch(0 0 0 / 0.08), 0px 2px 4px 0px oklch(0 0 0 / 0.06);
  --ease-ui: cubic-bezier(0.2, 0, 0, 1);
}
/* Shadows for elevation, borders for structure: the card lifts with a ring, the row dividers stay borders. */
.ui-better .card{border-color:transparent; box-shadow:var(--shadow-border);
  transition-property:box-shadow; transition-duration:150ms; transition-timing-function:ease-out;}
/* Concentric without clipping (menus live inside cards): the last row takes the card's corner, 16 minus the 1px ring. */
.ui-better .card > .regrow:last-of-type, .ui-better .card > .logrow:last-of-type, .ui-better .card > .parrow:last-of-type{border-bottom-left-radius:15px; border-bottom-right-radius:15px;}
.ui-better .card:hover{box-shadow:var(--shadow-border-hover);}
/* Concentric: the card clips its rows, so a hovered first or last row takes the card's own corner instead of poking square through it. */
.ui-better .regrow{transition-property:background-color; transition-duration:150ms; transition-timing-function:var(--ease-ui);}
.ui-better .regrow:hover{background:var(--ground);}
.ui-better .regrow:active{background:var(--active);}
/* Optical: the chevron leans in on hover and sits a hair right of geometric centre. */
.ui-better .chevr{transform:translateX(1px); transition-property:transform, color; transition-duration:150ms; transition-timing-function:var(--ease-ui);}
@media (hover:hover) and (pointer:fine){ .ui-better .regrow:hover .chevr{transform:translateX(3px); color:var(--ink);} }
/* Buttons and pills: scale on press, always 0.96; transition only what changes. */
.ui-better .btn, .ui-better .fpill, .ui-better .seg button, .ui-better .regclear{
  transition-property:scale, background-color, color, border-color, box-shadow;
  transition-duration:150ms; transition-timing-function:var(--ease-ui);}
.ui-better .btn:active, .ui-better .fpill:active, .ui-better .seg button:active, .ui-better .regclear:active{scale:0.96;}
/* Buttons that carry a border for depth take the ring instead; the dark primary keeps its fill. */
.ui-better .btn:not(.dark){border-color:transparent; box-shadow:var(--shadow-border);}
.ui-better .btn:not(.dark):hover{box-shadow:var(--shadow-border-hover); background:var(--card);}
.ui-better .fpill:not(.on){border-color:transparent; box-shadow:var(--shadow-border);}
.ui-better .fpill:not(.on):hover{box-shadow:var(--shadow-border-hover);}
/* Optical: a leading glyph gets 2px less padding on its side than the text side. */
.ui-better .btn.dark{padding-left:14px; padding-right:16px;}
/* Contextual icon: the tick on Done arrives by opacity, scale and blur, never by toggling. */
.ui-better .regright .regclear::before{opacity:0; scale:0.25; filter:blur(4px);
  transition-property:opacity, scale, filter; transition-duration:150ms; transition-timing-function:var(--ease-ui);}
.ui-better .regright .regclear:hover::before, .ui-better .regright .regclear:focus-visible::before{opacity:1; scale:1; filter:blur(0px);}
.ui-better .regright .regclear{gap:0; transition-property:scale, gap, background-color, border-color, box-shadow;}
.ui-better .regright .regclear:hover{gap:5px;}
/* The status circle's glyph sits a hair high of geometric centre so it reads centred. */
.ui-better .lanemark, .ui-better .statusdot{transform:translateY(-0.5px);}
/* Every animated state keeps a static cue: the colours and words above are unchanged. */
.ui-better .uitoggle{font-size:12.5px; color:var(--mut);}
.ui-better .uitoggle a, .uitoggle a{color:var(--brand); font-weight:600; text-decoration:none;}

/* better-ui trial, the record page (15 Sep): the same rules on every tab. */
.ui-better .logrow{transition-property:background-color; transition-duration:150ms; transition-timing-function:var(--ease-ui);}
.ui-better .logrow:active{background:var(--active);}
.ui-better .chead .link, .ui-better .parrow .v .link, .ui-better .tlink{transition-property:color, scale; transition-duration:150ms; transition-timing-function:var(--ease-ui);}
.ui-better .chead .link:active, .ui-better .parrow .v .link:active{scale:0.96;}
/* Chips carry state, so they keep their fills; only their hover eases. */
.ui-better .accesschip, .ui-better .stagepill, .ui-better .pill{transition-property:background-color, border-color, color; transition-duration:150ms; transition-timing-function:var(--ease-ui);}
/* The Needs-you card is the one card that keeps a structural edge (its red rule); it lifts like the rest. */
.ui-better .nycard{border-color:#E3B6B0; box-shadow:none;}
.ui-better .nycard .btn.small{transition-property:scale, background-color, color, box-shadow; transition-duration:150ms; transition-timing-function:var(--ease-ui);}
/* Image outlines: a 1px pure-black ring at 10% on every avatar and picture, never a tinted neutral. */
.ui-better .av, .ui-better .avatar, .ui-better img{outline:1px solid oklch(0 0 0 / 0.1); outline-offset:-1px;}
/* Sheets: enter on the curve, exit softer with a small fixed translateY, both ease-out. */
.ui-better #sheet-panel, .ui-better .sheet-panel, .ui-better #sheet .panel{transition-property:transform, opacity; transition-duration:200ms; transition-timing-function:ease-out;}
/* Segmented tabs: the active pill is the static cue; the change eases. */
.ui-better .seg button{transition-property:scale, background-color, color, border-color; transition-duration:150ms; transition-timing-function:var(--ease-ui);}
/* The trial's own line on the record head, quiet. */
.ui-better .uitrial-note{font-size:12px; color:var(--mut); margin:6px 0 0;}

/* =====================================================================
   15 Sep, hub-wide: better-ui + emil-design-eng combined, on every page.
   One motion language: state changes (hover, colour, press) on
   cubic-bezier(0.2, 0, 0, 1) at 150ms; enters and exits on the strong
   ease-out cubic-bezier(0.23, 1, 0.32, 1); the sheet on the drawer curve
   cubic-bezier(0.32, 0.72, 0, 1); nothing over 300ms; press = scale 0.96;
   nothing ever enters from scale(0); popovers scale from their trigger,
   modals stay centred; keyboard-opened surfaces do not animate at all.
   ===================================================================== */
.ui-better{
  --ease-out-strong: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out-strong: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}
/* Every pressable thing in the product: buttons of every family, chips, nav items. Rows are buttons too but a full-width row must not shrink, so they are left out. */
.ui-better button:not(.regrow):not(.erow):not(.logrow):not(.it):not(.as-ring):not([data-raw]),
.ui-better .btn, .ui-better .btn-black, .ui-better .btn-line, .ui-better .fpill, .ui-better .pill, .ui-better .attchip,
.ui-better .lv-btn, .ui-better .regclear, .ui-better .dm-card .btn, .ui-better .dm-list a, .ui-better .accesschip{
  transition-property:scale, background-color, color, border-color, box-shadow, opacity;
  transition-duration:150ms; transition-timing-function:var(--ease-ui);}
.ui-better button:not(.regrow):not(.erow):not(.logrow):not(.it):not(.as-ring):not([data-raw]):active,
.ui-better .btn:active, .ui-better .btn-black:active, .ui-better .btn-line:active, .ui-better .attchip:active,
.ui-better .lv-btn:active, .ui-better .dm-card .btn:active, .ui-better .dm-list a:active{scale:0.96;}
/* The sidebar: colour eases, no press scale (it is used tens of times a day). */
.ui-better .it{transition-property:background-color, color; transition-duration:150ms; transition-timing-function:var(--ease-ui);}
/* Rows everywhere: background eases, press darkens. */
.ui-better .erow, .ui-better .srcrow, .ui-better .dm-card, .ui-better .mrow, .ui-better .citem{
  transition-property:background-color, border-color, box-shadow; transition-duration:150ms; transition-timing-function:var(--ease-ui);}
.ui-better .dm-card{border-color:transparent; box-shadow:var(--shadow-border);}
.ui-better .dm-card:hover{box-shadow:var(--shadow-border-hover);}
/* Popovers scale in from their trigger, never from centre and never from nothing. */
.ui-better .menu{transform-origin:top right; opacity:0; transform:scale(0.95);
  transition-property:opacity, transform, display; transition-duration:150ms; transition-timing-function:var(--ease-out-strong); transition-behavior:allow-discrete;}
.ui-better .menu.on{opacity:1; transform:none;}
@starting-style{ .ui-better .menu.on{opacity:0; transform:scale(0.95);} }
.ui-better .dd-inbox .menu{transform-origin:top left;}
.ui-better .dd-inbox .menu.right{transform-origin:top right;}
/* The sheet rides the drawer curve in, 240ms; a keyboard-opened panel (⌘K) snaps. */
.ui-better .askwrap .askpanel{transition-property:opacity, transform; transition-duration:240ms; transition-timing-function:var(--ease-drawer);}
@starting-style{ .ui-better .askwrap.open .askpanel{opacity:0; transform:translate(-50%, 10px);} }
.ui-better .askwrap.instant .askpanel{transition-duration:0ms;}
/* The attachment viewer is a modal: it stays centred and only fades. */
.ui-better .dd-viewer{transition-property:opacity; transition-duration:150ms; transition-timing-function:var(--ease-out-strong);}
@starting-style{ .ui-better .dd-viewer{opacity:0;} }
/* Toasts: the same edge in and out, exact properties, exit faster than enter. */
.ui-better .toast{transition-property:opacity, transform; transition-duration:150ms; transition-timing-function:var(--ease-out-strong);}
.ui-better .toast.show{transition-duration:220ms;}
/* Spinners a touch faster read as faster loads. */
.ui-better .rs-spin{animation-duration:0.8s;}
/* Screen changes happen tens of times a day: a 100ms fade, no stagger. */
.ui-better #page{transition-property:opacity; transition-duration:100ms; transition-timing-function:ease-out;}
.ui-better #page.swapping{opacity:0;}
/* Reduced motion keeps the colour and opacity cues and drops the movement. */
@media (prefers-reduced-motion: reduce){
  .ui-better *{scale:none !important; transform:none !important;}
}

/* 15 Sep: the screens that style their own components (Mail, research, demo,
   live voice, brief, calls, signing) join the layer. body.ui-better wins the
   tie against each screen's own stylesheet, which loads after this one. */
/* Containers that carried a border for depth: the ring instead; dividers inside them stay. */
body.ui-better .dd-inbox .listcard, body.ui-better .dd-inbox .pane2, body.ui-better .dd-inbox .aicard, body.ui-better .dd-inbox .dealcard,
body.ui-better .dd-inbox .draftbox, body.ui-better .dd-inbox .draftout, body.ui-better .dd-inbox .bodycard,
body.ui-better .br-card, body.ui-better .dm-steps li, body.ui-better .rs-dist, body.ui-better .rs-tile, body.ui-better .lv-line,
body.ui-better .rawbox, body.ui-better .kb-col[data-tone]{
  border-color:transparent; box-shadow:var(--shadow-border);
  transition-property:box-shadow; transition-duration:150ms; transition-timing-function:ease-out;}
body.ui-better .dd-inbox .listcard:hover, body.ui-better .dd-inbox .dealcard:hover, body.ui-better .rs-dist:hover, body.ui-better .br-card:hover{box-shadow:var(--shadow-border-hover);}
/* The key summary keeps its burgundy edge (structure), the filing block its tinted fill (state). */
body.ui-better .rs-key{box-shadow:var(--shadow-border); border-color:transparent;}
/* Bordered controls: the ring, one curve, the press. */
body.ui-better .dd-inbox .btn-line, body.ui-better .dd-inbox .pill, body.ui-better .dd-inbox .attchip, body.ui-better .dd-viewer .r .btn-line,
body.ui-better .dm-chip, body.ui-better .cl-chip, body.ui-better .bchip.plain, body.ui-better .pchip.plain{
  border-color:transparent; box-shadow:var(--shadow-border);
  transition-property:scale, background-color, color, box-shadow; transition-duration:150ms; transition-timing-function:var(--ease-ui);}
body.ui-better .dd-inbox .btn-line:hover, body.ui-better .dd-inbox .pill:hover, body.ui-better .dd-inbox .attchip:hover, body.ui-better .dm-chip:hover{box-shadow:var(--shadow-border-hover); border-color:transparent;}
body.ui-better .dd-inbox .btn-black{transition-property:scale, background-color; transition-duration:150ms; transition-timing-function:var(--ease-ui);}
/* The lane tabs: colour and underline ease; the active underline is the static cue. */
body.ui-better .dd-inbox .tab{transition-property:color, border-color; transition-duration:150ms; transition-timing-function:var(--ease-ui);}
/* Thread rows: background eases, press darkens; the selected row keeps its ring and its corner. */
body.ui-better .dd-inbox .erow{transition-property:background-color, box-shadow; transition-duration:150ms; transition-timing-function:var(--ease-ui);}
body.ui-better .dd-inbox .erow:active{background:var(--active);}
/* Form fields keep their outlines: a border on an input is accessibility, not depth. */

/* ── To do (15 Sep 2026): the day board over the Needs you feed ─────────── */
.td-head{display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:16px;}
.td-head h1{font-family:var(--serif); font-weight:400; font-size:28px; margin:0 0 4px; letter-spacing:.01em;}
.td-sub{margin:0; color:var(--grey); font-size:14px; max-width:64ch; line-height:1.5;}
.td-tools{display:flex; gap:8px; flex-shrink:0;}
.td-add{display:flex; gap:8px; margin:0 0 18px; align-items:stretch;}
.td-add .td-mic{flex:none; width:44px; border:1px solid var(--line); border-radius:10px; background:var(--card); color:var(--grey); display:grid; place-items:center; cursor:pointer; padding:0;}
.td-add .td-mic svg{width:17px; height:17px;}
.td-add .td-mic:hover{color:var(--ink);}
.td-add .td-mic.on{color:var(--brand); border-color:var(--brand); animation:kyte-pulse 2.6s ease-in-out infinite;}
.td-add input{flex:1; font:inherit; font-size:14px; padding:10px 14px; border:1px solid var(--line); border-radius:10px; background:var(--card); color:var(--ink);}
.td-add select{font:inherit; font-size:13px; padding:0 12px; border:1px solid var(--line); border-radius:10px; background:var(--card); color:var(--ink);}
/* A row of columns you scroll across; each column scrolls inside itself, so
   one long column never stretches the page (Matt, 15 Sep). */
.td-board{display:flex; gap:16px; align-items:flex-start; overflow-x:auto; padding-bottom:10px; scrollbar-width:thin;}
.td-col{flex:0 0 290px; display:flex; flex-direction:column; max-height:calc(100vh - 330px); min-height:120px;}
.td-col.folded{flex-basis:auto; max-height:none;}
.td-col.folded header{padding:10px 14px; border:1px dashed var(--line); border-radius:12px; margin:0;}
.td-cards{overflow-y:auto; min-height:0; padding-right:4px; scrollbar-width:thin;}
.td-colsub{font-size:12px; color:var(--grey); margin:-6px 2px 10px;}
.td-tools{align-items:center; flex-wrap:wrap; justify-content:flex-end; max-width:46%;}
.td-scopeword{flex-basis:100%; text-align:right; font-size:12px; color:var(--grey);}
.td-col header{display:flex; align-items:baseline; gap:8px; margin:0 0 10px; padding:0 2px;}
.td-col h2{font-family:var(--serif); font-weight:500; font-size:17px; margin:0;}
.td-count{font-size:12px; color:var(--grey);}
.td-col.overdue h2{color:var(--red-text, #B8433A);}
.td-empty{font-size:13px; color:var(--grey); padding:14px; border:1px dashed var(--line); border-radius:12px;}
.td-card{display:flex; gap:12px; background:var(--card); border:1px solid var(--line); border-radius:12px; padding:12px 14px; margin-bottom:8px; cursor:pointer; transition:border-color 150ms, opacity 200ms, transform 200ms;}
.td-card:hover{border-color:#DED9D0;}
.td-card.done{opacity:.35; transform:translateX(4px);}
.td-box{width:20px; height:20px; flex:none; margin-top:2px; border:1.5px solid #C8C3B8; border-radius:50%; background:#fff; cursor:pointer; position:relative;}
.td-box:hover{border-color:var(--brand);}
.td-box::after{content:""; position:absolute; left:6px; top:2px; width:5px; height:10px; border:solid var(--brand); border-width:0 2px 2px 0; transform:rotate(45deg); opacity:0;}
.td-box:hover::after{opacity:.5;}
.td-card.done .td-box{background:var(--brand); border-color:var(--brand);}
.td-card.done .td-box::after{opacity:1; border-color:#fff;}
.td-box.quiet{border-style:dashed; cursor:default;}
.td-main{min-width:0; flex:1;}
.td-who{font-size:12px; color:var(--grey); display:flex; gap:8px; align-items:center; flex-wrap:wrap;}
.td-chip{font-size:11px; background:#F7F5F1; border-radius:999px; padding:2px 8px; color:#6E6A62;}
.td-title{font-family:var(--serif); font-size:15px; line-height:1.4; margin:3px 0 4px; color:var(--ink);}
.td-meta{display:flex; gap:12px; flex-wrap:wrap; font-size:12px; color:var(--grey); align-items:center;}
.td-meta a{color:var(--brand); text-decoration:none;}
.td-meta .tlink{font:inherit; background:none; border:0; padding:0; color:var(--brand); cursor:pointer;}
.td-late{color:var(--red-text, #B8433A); font-weight:600;}
.td-acts{margin-top:8px;}
.td-menu{position:absolute; z-index:5; background:var(--card); border:1px solid var(--line); border-radius:10px; box-shadow:0 8px 24px rgba(33,31,27,.12); padding:4px; display:flex; flex-direction:column; min-width:140px;}
.td-menu button{font:inherit; font-size:13px; text-align:left; background:none; border:0; padding:8px 10px; border-radius:7px; cursor:pointer; color:var(--ink);}
.td-menu button:hover{background:#F7F5F1;}
.td-card{position:relative;}
.td-tools .pill{font:inherit; font-size:12.5px; padding:7px 14px; border:1px solid var(--line); border-radius:999px; background:var(--card); color:var(--ink); cursor:pointer;}
.td-tools .pill.on{background:var(--sage); border-color:#C9D9C5;}
.td-acts a, .td-acts a:hover{text-decoration:none;}
.td-col header .tlink{font:inherit; font-size:12px; margin-left:auto; background:none; border:0; padding:0; color:var(--brand); cursor:pointer;}
.td-card.movable{cursor:grab;}
.td-card.movable:active{cursor:grabbing;}
.td-card.lifting{opacity:.45; transform:scale(.98);}
.td-col.over .td-cards{outline:2px dashed #C9D9C5; outline-offset:4px; border-radius:12px; background:rgba(229,237,226,.35);}
.td-col.over.folded header{outline:2px dashed #C9D9C5;}
.td-speak{display:inline-flex; align-items:center; gap:6px;}
.td-speak.live{background:var(--brand); color:#fff; border-color:var(--brand); animation:td-pulse 1.4s ease-in-out infinite;}
@keyframes td-pulse{0%,100%{box-shadow:0 0 0 0 rgba(31,42,68,.35)}50%{box-shadow:0 0 0 8px rgba(31,42,68,0)}}
.td-heard{font-size:13px; line-height:1.6; color:var(--ink); background:var(--card); border:1px solid var(--line); border-radius:12px; padding:12px 14px; margin:-8px 0 18px;}
.td-heard b{color:var(--grey); font-weight:600;}

/* ── Rules (21 Sep 2026): what the office taught the hub ───────────────── */
.rl-row{display:flex; gap:14px; align-items:center; background:var(--card); border:1px solid var(--line); border-radius:12px; padding:12px 16px; margin:0 0 8px;}
.rl-row.proposed{border-style:dashed;}
.rl-main{flex:1; min-width:0;}
.rl-text{font-family:var(--serif); font-size:15.5px; line-height:1.45;}
.rl-meta{font-size:12px; color:var(--grey); margin-top:3px;}
.rl-stale{font-size:12px; color:var(--ink); margin-top:6px; font-weight:600;}
/* "Why?" after a no (why.js, A12). */
.why-lede{font-size:13.5px; line-height:1.6; margin:0 0 12px; color:var(--grey);}
.why-chips{display:flex; gap:6px; flex-wrap:wrap;}
.ch-rule{display:flex; align-items:center; gap:8px; font-size:13px; color:var(--grey); margin-top:10px;}

/* A file attached in Ask, shown in the app's sheet (2 Nov 2026, v99; askfiles.js openFile): the image itself, or a
   PDF's pages drawn by pdf.js, one under another, with Download above. */
#sheet-body .afv{display:flex;flex-direction:column;gap:12px}
#sheet-body .afv-bar{display:flex;justify-content:flex-end}
#sheet-body .afv-body{display:flex;flex-direction:column;gap:12px}
#sheet-body .afv-img, #sheet-body .afv-page{display:block;width:100%;height:auto;border-radius:8px;box-shadow:0 0 0 1px var(--line);background:#fff}
#sheet-body .afv-wait{color:var(--mut);font-size:13px;line-height:20px;margin:0}

/* Where a figure was read, in the app's sheet (2 Nov 2026; source-view.js): the passage with the figure marked, then
   the page itself with the lines that carry it highlighted, scrolled to them. */
#sheet-body .srcv{display:flex;flex-direction:column;gap:12px}
#sheet-body .srcv-head{display:flex;flex-direction:column;gap:2px}
#sheet-body .srcv-head b{font-size:14px;line-height:20px;color:var(--ink)}
#sheet-body .srcv-head span{font-size:12px;line-height:16px;color:var(--mut)}
#sheet-body .srcv-passage{margin:0;font-size:13.5px;line-height:21px;color:var(--ink);background:var(--card);border:1px solid var(--line);border-radius:10px;padding:10px 12px}
#sheet-body .srcv-passage mark{background:#FFE58A;color:inherit;border-radius:3px;padding:0 2px}
#sheet-body .srcv-scroll{max-height:420px;overflow:auto;border:1px solid var(--line);border-radius:10px;background:#fff}
#sheet-body .srcv-page{position:relative;margin:0 auto}
#sheet-body .srcv-page canvas{display:block}
#sheet-body .srcv-hit{position:absolute;background:rgba(255,214,0,.28);box-shadow:0 0 0 1.5px rgba(214,160,0,.9);border-radius:3px;pointer-events:none}
#sheet-body .srcv-bar{display:flex;justify-content:flex-end;gap:8px}
/* In its own form (3 Nov 2026, Matt: "it's an Excel file, so it should have the table like Excel ... If it's from a PDF,
   it should be the actual PDF page"): the panel widens for a sheet's cells or a page. */
#sheetwrap.srcwide .askpanel{width:min(920px, calc(100vw - 32px)) !important; max-width:none; top:6vh !important; max-height:88vh !important}
#sheet-body .srcv-note{margin:0;font-size:12.5px;line-height:18px;color:var(--mut)}
#sheet-body .srcv-crop{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.05)}
#sheet-body .srcv-crop.full{overflow:auto;max-height:62vh}
#sheet-body .srcv-shot img{display:block;width:100%;height:auto}
#sheet-body .srcv-words summary{cursor:pointer;font-size:12.5px;line-height:18px;color:var(--mut)}
#sheet-body .srcv-words .srcv-passage{margin-top:8px}
#sheet-body .srcv-pic{border:1px solid var(--line);border-radius:10px;background:#fff;overflow:auto;max-height:62vh}
#sheet-body .srcv-pic img{display:block;max-width:100%;margin:0 auto}
#sheet-body .srcv-mail{border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}
#sheet-body .srcv-mail-head{display:flex;flex-direction:column;gap:4px;padding:12px 16px;border-bottom:1px solid var(--line2)}
#sheet-body .srcv-mail-head b{font-size:14.5px;line-height:20px;color:var(--ink)}
#sheet-body .srcv-mail-meta{display:flex;justify-content:space-between;gap:12px;font-size:12.5px;line-height:18px;color:var(--mut)}
#sheet-body .srcv-mail-body{padding:14px 16px;font-size:13.5px;line-height:21px;color:var(--ink);white-space:pre-wrap;max-height:50vh;overflow:auto}
#sheet-body .srcv-mail-body mark{background:#FFE58A;color:inherit;border-radius:3px;padding:0 2px}
#sheet-body .xl{border:1px solid #D4D4D4;border-radius:10px;overflow:hidden;background:#fff;font-variant-numeric:tabular-nums}
#sheet-body .xl-bar{display:flex;align-items:stretch;height:30px;border-bottom:1px solid #D4D4D4;font-size:12px;line-height:30px;color:#1F1F1F}
#sheet-body .xl-name{flex:none;width:76px;padding:0 10px;border-right:1px solid #E1E1E1;font-weight:500}
#sheet-body .xl-fx{flex:none;padding:0 10px;border-right:1px solid #E1E1E1;color:#8A8A8A;font-style:italic}
#sheet-body .xl-val{flex:1;min-width:0;padding:0 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#sheet-body .xl-scroll{overflow:auto;max-height:52vh}
#sheet-body .xl-grid{border-collapse:separate;border-spacing:0;table-layout:fixed;width:max-content;font-size:12px;line-height:14px;color:#1F1F1F}
#sheet-body .xl-grid th,#sheet-body .xl-grid td{height:22px;padding:3px 6px;border-right:1px solid #E1E1E1;border-bottom:1px solid #E1E1E1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;text-align:left}
#sheet-body .xl-grid thead th{position:sticky;top:0;z-index:2;background:#F3F3F3;color:#5C5C5C;font-weight:500;text-align:center;border-bottom-color:#D4D4D4}
#sheet-body .xl-grid th.xl-row{position:sticky;left:0;z-index:1;background:#F3F3F3;color:#5C5C5C;font-weight:500;text-align:center;border-right-color:#D4D4D4}
#sheet-body .xl-grid thead th.xl-corner{left:0;z-index:3}
#sheet-body .xl-grid thead th.on{background:#D6EDDF;color:#0E6B37;box-shadow:inset 0 -2px 0 #107C41}
#sheet-body .xl-grid th.xl-row.on{background:#D6EDDF;color:#0E6B37;box-shadow:inset -2px 0 0 #107C41}
#sheet-body .xl-grid td.n{text-align:right}
#sheet-body .xl-grid td.b{font-weight:600}
#sheet-body .xl-grid td.i{font-style:italic}
#sheet-body .xl-grid td.hit{background:#E7F4EC !important;box-shadow:inset 0 0 0 2px #107C41;font-weight:600}
#sheet-body .xl-grid .xl-gap{background:#FAFAFA;color:#9A9A9A;padding:0}
#sheet-body .xl-grid tr.xl-skip th,#sheet-body .xl-grid tr.xl-skip td{height:14px;padding:0;background:#FAFAFA;line-height:10px;color:#9A9A9A}
#sheet-body .xl-tabs{display:flex;gap:2px;padding:0 8px;background:#F3F3F3;border-top:1px solid #D4D4D4;font-size:12px;line-height:16px;overflow-x:auto}
#sheet-body .xl-tab{padding:7px 14px;color:#5C5C5C;white-space:nowrap}
#sheet-body .xl-tab.on{background:#fff;color:#0E6B37;font-weight:600;box-shadow:inset 0 -2px 0 #107C41}
#sheet-body .srcv-wait{color:var(--mut);font-size:13px;line-height:20px;margin:0}
