/* nexus-ui.css - THE COMMAND CLASS LIBRARY, ON NEXUS. Copied verbatim from
   /var/www/stardust_mc/static/css/command-ui.css on Wed 4 Nov 2026 (Jason: "Did nexus get
   the gui upgrade like command?" - it had not; Build #126). A COPY, not a symlink: the two
   services deploy separately and a symlink would couple their restarts. Drift between the
   two is visible with `diff` against the source; carry fixes across by hand and say so.
   Source sha256 at copy time: 47450280153438d6 */
/* command-ui.css — the scale layer. v1, 26 Aug 2026.

   The audit found the truth: command.css already has a good token system
   (palette, dark+light themes, panel, btn), but 5,478 inline style=""
   attributes ignore it, using fifteen-plus ad-hoc font sizes. The result
   reads "all over the place" because it is: every page reinvents type,
   spacing and inputs by hand.

   This file is the cure as a SCALE, not a redesign. Five type sizes, one
   spacing rhythm, one input, one card grammar. New pages use these classes
   and write zero inline styles; old pages migrate when touched. The
   variables come from command.css, so dark and light themes keep working
   and nothing here invents a color.

   The five type sizes, chosen from what the codebase already converged on:
     kicker 10px   letterspaced labels, section eyebrows
     meta   11.5px secondary info, timestamps, hints
     body   12.5px the default reading size
     strong 14px   emphasized rows, card leads
     title  19px   the one h1 per page
   If a size is not one of these, it needs a reason. */

/* ---------- type ---------- */
.sd-kicker{font-size:12px;letter-spacing:3px;color:var(--gold);
  text-transform:uppercase}
.sd-title{font-size:19px;letter-spacing:2px;margin:2px 0 4px;color:var(--fg)}
.sd-sub{font-size:12px;color:var(--dim);margin-bottom:16px;line-height:1.6}
.sd-meta{font-size:12px;color:var(--dim)}
/* overflow-wrap: a pasted URL or a <attach> path in a quoted draft body is
   one unbreakable 72-character token, and on a 390px phone it takes the
   whole page sideways. Measured 16 Sep 2026 on /mail/dropped/?by=human:
   537px of content in a 390px viewport, from
   https://command.stardustinc.ca/review/<token>/ inside a draft. This only
   affects text that would otherwise leave the box. */
.sd-body{font-size:12.5px;color:var(--ink);line-height:1.65;overflow-wrap:anywhere}
.sd-strong{font-size:14px;color:var(--fg);font-weight:600}
.sd-label{font-size:12px;letter-spacing:2px;color:var(--cyan);
  text-transform:uppercase}
.sd-num{font-size:22px;color:var(--fg);font-weight:600;
  font-variant-numeric:tabular-nums}

/* ---------- layout ---------- */
.sd-page{max-width:1040px;margin:0 auto}
.sd-page--narrow{max-width:940px;margin:0 auto}
.sd-bar{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.sd-bar__end{margin-left:auto;display:flex;gap:8px;align-items:center}
.sd-grid{display:grid;gap:10px;
  grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
.sd-row{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}
.sd-stack>*+*{margin-top:8px}

/* ---------- cards ---------- */
.sd-card{background:var(--panel);border:1px solid var(--border);
  border-radius:var(--radius-sm);padding:12px 15px}
.sd-card--flag{border-left:3px solid var(--dim)}
.sd-card--ok{border-left:3px solid var(--ok)}
.sd-card--warn{border-left:3px solid var(--gold)}
.sd-card--bad{border-left:3px solid var(--red)}
.sd-card--info{border-left:3px solid var(--cyan)}

/* ---------- inputs: ONE way to draw a field ---------- */
.sd-in{background:rgba(255,255,255,.06);border:1px solid var(--border);
  color:var(--fg);padding:9px 12px;font-size:12.5px;font-family:inherit;
  border-radius:var(--radius-sm);line-height:1.5}
.sd-in:focus{outline:1px solid var(--cyan);outline-offset:0}
.sd-in--grow{flex:1;min-width:200px}
textarea.sd-in{width:100%;resize:vertical}
select.sd-in{background-color:var(--panel-2)}

/* ---------- buttons build on .btn from command.css ---------- */
.btn--sm{font-size:12px;padding:4px 10px}
.btn--xs{font-size:12px;padding:2px 8px}
.btn--ok{border-color:var(--ok);color:var(--ok)}
.btn--warn{border-color:var(--gold);color:var(--gold)}
.btn--bad{border-color:var(--red);color:var(--red)}
.btn--info{border-color:var(--cyan);color:var(--cyan)}

/* ---------- states ---------- */
.sd-good{color:var(--ok)}
.sd-warn{color:var(--gold)}
.sd-bad{color:var(--red)}
.sd-quiet{color:var(--dim)}
.sd-up::before{content:"▲ ";}
.sd-down::before{content:"▼ ";}

/* ---------- tables ---------- */
.sd-table{width:100%;border-collapse:collapse;font-size:12px}
.sd-table th{font-size:12px;letter-spacing:1px;color:var(--dim);
  text-align:left;padding:6px 10px;text-transform:uppercase}
.sd-table td{padding:6px 10px;border-top:1px solid var(--border);
  color:var(--ink)}
.sd-table .num{text-align:right;font-variant-numeric:tabular-nums}
.sd-scroll{overflow-x:auto}

/* ---------- breathing room: phones get tighter gutters ---------- */
@media (max-width:640px){
  .sd-page,.sd-page--narrow{padding:0 4px}
  .sd-card{padding:11px 12px}
}

/* ── CALM PASS, 27 Aug 2026 ─────────────────────────────────────────────
   Jason: the interface reads as overwhelming (ADHD). Same deep-indigo
   world, lower stimulation: accents desaturated a step, the starfield and
   scanline effects pulled way back, alarm-red reserved for things that are
   actually on fire. Reversible by deleting this block. */
html:root{  /* html:root outranks the base template token block that loads after this file */
  --red:#e8887e;          /* was #ff7a6b: still clearly red, no longer a siren */
  --gold:#e6cf95;         /* softer gold */
  --orange:#e59a5f;       /* softer orange */
  --cyan:#8fd4ea; --signal:#8fd4ea;
  --ok:#7bd4a8;
}
/* the animated hyperdrive starfield: from ambient to whisper */
html body #mx{opacity:.16!important}
html body .scanline{display:none!important}
/* red text blocks (flag reasons) stop glowing */
[style*="color:var(--red)"]{font-weight:normal}
/* buttons: one quiet family, colour only on hover or state */
.btn,a.btn,button.btn{box-shadow:none}

/* ── MOBILE CHROME DIET, 27 Aug 2026 ────────────────────────────────────
   Gmail gives content the screen; Command was burning ~550px on chrome.
   On phones: no CTRL-K chip, no seconds-clock, tight paddings, shortcut
   buttons become one swipeable row. */
@media (max-width:700px){
  html body .kbd{display:none!important}
  html body #mc-clock,html body .mc-clock{display:none!important}
  html body .mc-nav{padding:4px 8px!important;gap:4px!important;min-height:0!important}
  html body .mc-nav img{max-height:22px!important}
  html body .mc-main{padding:8px!important}
  html body .mc-main>div{margin-top:0!important}
  /* the page-top shortcut button rows: one horizontal swipe lane */
  html body .sd-bar__end, html body .mc-main div[style*="display:flex"][style*="gap:8px"]{
    flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none}
  /* avatar bubble smaller, stop floating over content */
  html body .mc-me img,html body .mc-avatar{width:30px!important;height:30px!important}
}

/* ── DRAFT DESK CARDS ────────────────────────────────────────────────────────
   Jason, 8 Sep 2026: "can you make it more pleasing".

   The problem was not colour, it was that EVERYTHING WAS A BOX of the same
   weight: five outlined buttons, an outlined subject, an outlined body, seven
   outlined chips, all 1px, all competing. Nothing led the eye, so it read as
   noise. The fixes, in order of how much they do:

   1. ONE loud thing per card. Send is solid; the rest are quiet ghosts. A
      card should tell you what it wants you to do.
   2. The fields lose their outlines. A subject and a body are surfaces, not
      controls, so they get a tint instead of a border.
   3. Type earns hierarchy: the person is 15px ink, the subject 13.5 dim.
      Before, both were the same and neither led.
   4. Sentence case, not letterspaced caps. Caps everywhere reads as a
      console; he asked for an office.
   5. Air. 16px inside a card instead of 10, and a real gap between them.
   ───────────────────────────────────────────────────────────────────────── */
.all-grid{display:grid;gap:16px;align-items:start;
          grid-template-columns:repeat(auto-fill,minmax(360px,1fr))}
@media (min-width:1500px){.all-grid{grid-template-columns:repeat(auto-fill,minmax(430px,1fr))}}

.dcard{display:flex;flex-direction:column;padding:0;overflow:hidden;
       background:var(--panel);border:1px solid var(--border);border-radius:16px;
       transition:border-color .15s ease, box-shadow .15s ease}
.dcard:hover{border-color:var(--faint);box-shadow:0 6px 24px rgba(0,0,0,.18)}
.dcard.picked{border-color:var(--cyan)}
.dcard.done{opacity:.45}
.dcard.armed{border-color:var(--ok)}

/* Header: the person leads. Nothing else in the card is this size. */
.dcard__hd{padding:16px 16px 10px;display:flex;gap:10px;align-items:center}
.dcard__hd .who{font-size:15px;font-weight:600;color:var(--ink);letter-spacing:-.1px;
                overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.dcard__hd input[type=checkbox]{width:17px;height:17px;accent-color:var(--cyan)}
.rv{font-size:12px;letter-spacing:.5px;color:var(--ok)}

.dcard__warn{margin:0 16px 10px;padding:9px 12px;font-size:12px;color:var(--red);
             background:var(--panel-2);border-radius:10px}

/* Fields are surfaces, not controls. No outline until you touch them. */
.dcard__subj{width:100%;border:0;border-radius:0;padding:0 16px 12px;
             font:13.5px/1.4 var(--fu);background:transparent;color:var(--dim)}
.dcard__subj::placeholder{color:var(--dim);opacity:.6}
/* THE BODY GROWS TO FIT. Jason, 8 Sep 2026: "the box is so small to see the
   text to aprove". A fixed-height textarea with a scrollbar inside a card is
   the wrong control for reviewing: you cannot approve what you cannot read
   without a second scroll gesture inside the first one. JS sets the height to
   scrollHeight on load and on every keystroke, so the whole email is always
   on screen and the page scrolls once, not twice. */
.dcard__body{min-height:120px;resize:none;overflow:hidden;font:14.5px/1.7 var(--fu);
             background:var(--panel-2);color:var(--ink);border:0;border-radius:12px;
             margin:0 16px;width:calc(100% - 32px);padding:14px;white-space:pre-wrap}
.dcard__subj:focus,.dcard__body:focus{outline:2px solid var(--cyan);outline-offset:1px}

.dcard__more{padding:10px 16px 0}
.dcard__more summary{cursor:pointer;font-size:12px;color:var(--dim);list-style:none}
.dcard__more summary::-webkit-details-marker{display:none}
.dcard__more summary::before{content:"⌄ ";opacity:.7}
.dcard__more .m{font-size:12px;color:var(--dim);padding:4px 0;display:block}

/* One loud action. Send is solid; everything else recedes. */
.dcard__ft{padding:14px 16px 16px;display:flex;gap:8px;flex-wrap:wrap;
           align-items:center;margin-top:auto}
.dcard__ft .btn{flex:1 1 auto;min-height:42px;border-radius:11px;
                text-transform:none;letter-spacing:0;font-size:13.5px;font-weight:500}
.dcard__ft .act-send{background:var(--orange);border-color:var(--orange);
                     color:#1a1206;font-weight:700;flex:2 1 40%}
.dcard__ft .act-send[disabled]{background:transparent;color:var(--dim);
                               border-color:var(--border);font-weight:500}
.dcard__ft .act-approve{border-color:var(--ok);color:var(--ok)}
.dcard__ft .act-update,.dcard__ft .act-brain,.dcard__ft .act-drop{
  border-color:transparent;background:var(--panel-2);color:var(--dim)}
.dcard__ft .act-update:hover,.dcard__ft .act-brain:hover,.dcard__ft .act-drop:hover{
  color:var(--ink)}
.dcard .say{font-size:12px;color:var(--dim);min-height:15px;flex-basis:100%}
.dcard .nova{flex-basis:100%;font-size:12.5px;line-height:1.6;color:var(--ink);
             background:var(--panel-2);border-radius:10px;padding:12px;white-space:pre-wrap}
.dcard .nova:empty{display:none}

/* The top, shaped like Gmail on a phone. */
.topbar{position:sticky;top:0;z-index:9;background:var(--bg);padding:8px 0 12px;margin-bottom:4px}
.chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.chips::-webkit-scrollbar{display:none}
.chip{flex:0 0 auto;white-space:nowrap;font-size:13px;padding:9px 16px;
      border:1px solid transparent;background:var(--panel);border-radius:999px;
      color:var(--dim);text-decoration:none}
.chip.on{background:var(--orange);border-color:var(--orange);color:#1a1206;font-weight:600}
.findrow{display:flex;gap:10px;align-items:center;margin-top:10px}
.find{flex:1;min-width:0;font:14px var(--fu);padding:11px 16px;border-radius:999px;
      border:1px solid transparent;background:var(--panel);color:var(--ink)}
.find::placeholder{color:var(--dim)}
.find:focus{outline:none;border-color:var(--cyan)}
.cnt{font-size:12px;color:var(--dim);white-space:nowrap}
.actionbar{position:sticky;top:56px;z-index:8;display:flex;gap:12px;align-items:center;
           padding:11px 14px;margin-bottom:12px;border-radius:12px;
           background:var(--panel);border:1px solid var(--ok)}
.actionbar[hidden]{display:none}

@media (max-width:700px){
  .all-grid{grid-template-columns:1fr;gap:12px}
  .dcard__ft{position:sticky;bottom:0;background:var(--panel);z-index:2}
  .dcard__ft .btn{flex:1 1 28%;font-size:13px}
  .dcard__ft .act-send{flex:1 1 100%;order:-1}
}

/* ── THE FLOOR ───────────────────────────────────────────────────────────────
   Every seat at once, each with its own composer. Jason, 8 Sep 2026: "i cant
   work as fast if one is occupied, i want to be able to talk to all of them".
   Tokens only, so it follows the theme.
   ───────────────────────────────────────────────────────────────────────── */
.fl-top{position:sticky;top:0;z-index:9;display:flex;gap:10px;align-items:center;
        flex-wrap:wrap;background:var(--bg);padding:8px 0 12px}
.fl-top .grow{flex:1}
.fl-count{font-size:15px;color:var(--ink)}
.fl-find{max-width:230px}
.fl-grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(340px,1fr))}
.fl-seat{background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:14px}
.fl-seat.busy{border-color:var(--gold)}
.fl-seat > header{display:flex;gap:10px;align-items:flex-start}
.fl-face{border-radius:50%;flex:none}
.fl-id{min-width:0;flex:1;display:flex;flex-direction:column}
.fl-id b{font-size:14.5px;color:var(--ink)}
.fl-slug{font-family:var(--fd);font-size:12px;color:var(--dim)}
.fl-blurb{font-size:12px;color:var(--dim);line-height:1.4;margin-top:2px}
.fl-dot{width:9px;height:9px;border-radius:50%;background:var(--dim);opacity:.3;flex:none;margin-top:4px}
.busy > header .fl-dot,.fl-crew.busy > .fl-dot{background:var(--gold);opacity:1;animation:flp 1.2s infinite}
@keyframes flp{0%,100%{opacity:.3}50%{opacity:1}}
.fl-last{font-size:12px;color:var(--dim);line-height:1.5;margin:10px 0 8px;
         max-height:3.5em;overflow:hidden}
.fl-say{display:flex;gap:8px;align-items:flex-end}
.fl-in{flex:1;min-width:0;font:13.5px/1.5 var(--fu);padding:9px 12px;border-radius:10px;
       border:1px solid var(--border);background:var(--panel-2);color:var(--ink);
       resize:none;overflow:hidden;max-height:160px}
.fl-in:focus{outline:2px solid var(--cyan);outline-offset:-2px}
.fl-go{min-height:38px;white-space:nowrap}
.fl-note{font-size:12px;color:var(--dim);min-height:15px;margin-top:5px}
.fl-note.bad{color:var(--red)}
/* Crew sit inside their lead, so the reporting line is visible. */
.fl-crew{margin:10px 0 0 14px;padding:10px 0 0 12px;border-left:2px solid var(--border);
         display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:start}
.fl-crew .fl-say,.fl-crew .fl-note{grid-column:1/-1}
.fl-face--sm{margin-top:2px}
.fl-last--sm{font-size:12px;margin:4px 0 0}
@media (max-width:700px){
  .fl-grid{grid-template-columns:1fr}
  .fl-find{max-width:none;flex:1 1 100%;order:3}
}

/* Needs-you, multi-send, report badges on the floor. */
.fl-needs{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:10px;
          padding:10px 12px;border-radius:12px;background:var(--panel);border:1px solid var(--gold)}
.fl-needs[hidden]{display:none}
.fl-needs > b{color:var(--gold);font-size:12.5px;white-space:nowrap}
.fl-need{font-size:12px;padding:6px 11px;border-radius:999px;cursor:pointer;
         background:var(--panel-2);border:1px solid var(--border);color:var(--ink)}
.fl-need:hover{border-color:var(--gold)}
.fl-multi{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:10px;
          padding:10px 12px;border-radius:12px;background:var(--panel);border:1px solid var(--ok)}
.fl-multi[hidden]{display:none}
.fl-multi > b{color:var(--ok);font-size:12.5px;white-space:nowrap}
.fl-multi .fl-in{flex:1 1 200px}
.fl-reports{margin-bottom:10px;padding:10px 12px;border-radius:12px;
            background:var(--panel);border:1px solid var(--border)}
.fl-reports > b{font-size:12.5px;color:var(--ink);margin-right:8px}
.fl-badges{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}
.fl-badge{font-size:12px;padding:3px 9px;border-radius:999px;border:1px solid;
          background:transparent;cursor:default}
.fl-badge--task{color:var(--gold);border-color:var(--gold)}
.fl-badge--rep{color:var(--cyan);border-color:var(--cyan);cursor:pointer}
.fl-rbody{font-size:12px;line-height:1.55;color:var(--dim);white-space:pre-wrap;
          max-height:340px;overflow:auto;margin-top:8px}
.fl-rbody:empty{display:none}
.fl-pick input{width:17px;height:17px;accent-color:var(--ok)}

/* A report ends in something to do, not a wall of prose. */
.fl-act{margin:8px 0;padding:9px 11px;border-radius:10px;background:var(--panel-2);
        border-left:3px solid var(--gold);font-size:12px;line-height:1.55;color:var(--ink)}
.fl-act b{color:var(--gold);font-size:12px;letter-spacing:.6px;display:block;margin-bottom:3px}
.fl-act .btn{margin-top:7px}
.fl-act--none{border-left-color:var(--border);color:var(--dim)}
.fl-rbody details summary{cursor:pointer;font-size:12px;color:var(--dim);margin-top:8px}
.fl-full{white-space:pre-wrap;font-size:12px;color:var(--dim);margin-top:6px;
         max-height:300px;overflow:auto}
.fl-badge--plan{color:var(--ok);border-color:var(--ok);cursor:pointer}
.fl-badge--res{color:var(--dim);border-color:var(--border)}
.fl-plan--green{border-left-color:var(--ok)} .fl-plan--green b{color:var(--ok)}
.fl-plan--amber{border-left-color:var(--gold)} .fl-plan--amber b{color:var(--gold)}
.fl-plan--red{border-left-color:var(--red)} .fl-plan--red b{color:var(--red)}
.fl-planrow{display:flex;gap:8px;align-items:baseline;justify-content:space-between;padding:3px 0}

/* THE BRAIN. Tokens only; the canvas paints itself. */
.brain-wrap{position:relative;border:1px solid var(--border);border-radius:16px;
            background:var(--bg);overflow:hidden}
.brain-wrap canvas{display:block;width:100%}
.brain-card{position:absolute;max-width:236px;padding:10px 12px;border-radius:12px;
            background:var(--panel);border:1px solid var(--border);pointer-events:none;
            box-shadow:0 10px 30px rgba(0,0,0,.35)}
.brain-card[hidden]{display:none}
.brain-card b{display:block;font-size:13.5px;color:var(--ink)}
.brain-card .s{display:block;font-family:var(--fd);font-size:12px;color:var(--dim)}
.brain-card .b{display:block;font-size:12px;color:var(--dim);margin-top:5px;line-height:1.45}
.brain-card .m{display:block;font-size:12px;color:var(--gold);margin-top:6px}
.brain-key{position:absolute;left:12px;bottom:10px;display:flex;gap:14px;flex-wrap:wrap;
           font-size:12px;color:var(--dim)}
.brain-key i{display:inline-block;width:16px;height:2px;margin-right:5px;vertical-align:middle}
.k--rep{background:#6fe3ff}.k--crew{background:#57e0a0}.k--gnd{background:#f6a35a}
.k--live{background:#f4d58a;height:8px!important;width:8px!important;border-radius:50%}
@media (max-width:700px){.brain-key{position:static;padding:10px 12px}}
.fl-quick{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.fl-quick button{font-size:12px;padding:5px 11px;border-radius:999px;cursor:pointer;
                 background:transparent;border:1px solid var(--border);color:var(--dim)}
.fl-quick button:hover{color:var(--ink);border-color:var(--cyan)}
.fl-mic{min-height:38px;padding:0 12px;font-size:12px}
.fl-mic.on{background:var(--red);border-color:var(--red);color:#fff;animation:flp 1s infinite}

/* ── WHAT THEY SAID, under the draft ──────────────────────────────────────
   Jason, 8 Sep 2026: "can you make it so i can see his reply like a tab or
   something under or the history?"
   Tokens only, no hardcoded colour, and it scrolls inside itself so a long
   thread never pushes the Send button off a phone screen. */
/* Collapsed by default. Jason, 8 Sep 2026: "hour box is a eyesore it should
   be a box i can open". The summary carries a one-line peek so the card still
   says what they wrote without unrolling the whole message. */
.dsaid{margin:.5rem 0 .35rem;background:var(--panel-2);border:1px solid var(--border);
       border-radius:var(--radius-sm)}
.dsaid__hd{color:var(--dim);font-size:var(--fd);cursor:pointer;padding:.4rem .55rem;
           list-style:none;display:block}
.dsaid__hd::-webkit-details-marker{display:none}
.dsaid__hd::before{content:"▸ ";color:var(--faint)}
.dsaid[open] .dsaid__hd::before{content:"▾ "}
.dsaid[open] .dsaid__hd{border-bottom:1px solid var(--border)}
.dsaid__hd b{color:var(--fg)}
.dsaid__peek{display:block;color:var(--faint);white-space:nowrap;overflow:hidden;
             text-overflow:ellipsis;margin-top:.1rem}
.dsaid[open] .dsaid__peek{display:none}
.dsaid>.dsaid__q,.dsaid>.dsaid__old{margin:.45rem .55rem .55rem}
.dsaid__q{white-space:pre-wrap;word-break:break-word;color:var(--ink);
          font-size:var(--fd);line-height:1.45;max-height:11rem;overflow-y:auto;
          background:var(--bg);border-radius:var(--radius-sm);padding:.45rem .55rem}
.dsaid__q--none{color:var(--dim);font-style:italic}
.dsaid__old{margin-top:.4rem}
.dsaid__old>summary{color:var(--dim);font-size:var(--fd);cursor:pointer;
                    padding:.2rem 0;list-style:none}
.dsaid__old>summary::-webkit-details-marker{display:none}
.dsaid__old>summary::before{content:"▸ ";color:var(--faint)}
.dsaid__old[open]>summary::before{content:"▾ "}
.dsaid__msg{margin:.35rem 0}
.dsaid__who{color:var(--faint);font-size:var(--fd);margin-bottom:.15rem}
.dsaid__msg .dsaid__q{max-height:7rem}
@media (max-width:640px){.dsaid__q{max-height:8rem}}

/* EDIT / SAVE state. Jason, 8 Sep 2026: "there should be a edit button too on
   the email". The card has to say whether his typing is kept, so the body gets
   a visible edit affordance and an unsaved card is unmistakable. */
.dcard__body{cursor:text}
.dcard.is-editing .dcard__body,.dcard__body:focus{outline:1px solid var(--cyan);
  outline-offset:1px}
.dcard.is-dirty{box-shadow:inset 3px 0 0 var(--gold)}
.act-save[disabled]{opacity:.45}

/* ── QUESTIONS AS MESSAGES (chat) ─────────────────────────────────────────
   Jason, 8 Sep 2026: "ask me like a notification so i domt wait and know
   exactly what thete asking me". One card per open question, newest first,
   answers type straight into the seat. Tokens only. */
.asks{display:flex;flex-direction:column;gap:.45rem;margin:.4rem 0 .6rem}
.ask{background:var(--panel-2);border:1px solid var(--border);border-left:3px solid var(--gold);
     border-radius:var(--radius-sm);padding:.5rem .65rem}
.ask--permission{border-left-color:var(--cyan)}
.ask--decision{border-left-color:var(--orange)}
.ask__who{color:var(--fg)} .ask__kind{color:var(--faint);font-size:var(--fd);margin-left:.4rem}
.ask__q{color:var(--ink);font-size:var(--fd);white-space:pre-wrap;word-break:break-word;margin:.3rem 0 .45rem;max-height:7rem;overflow-y:auto}
.ask__act{display:flex;gap:.4rem;align-items:center;flex-wrap:wrap}
.ask__in{flex:1;min-width:8rem}
.ask--owed{border-left-color:var(--red)} .ask--draft{border-left-color:var(--ok)} .ask--summary{border-left-color:var(--faint)} .ask--clock{border-left-color:var(--red);background:var(--panel)}
.ask__mic.on{outline:1px solid var(--cyan)}
/* law 4e: his time, absolute, at the top of the chat. On a phone the inbox
   strip is the first thing; the seat rail follows. */
.ch-now{color:var(--dim);font-size:var(--fd);letter-spacing:.02em;margin:.2rem 0 .3rem}
@media (max-width:640px){ .asks{order:-1} .ch-now{order:-2} }
/* PHONE READABILITY. shot on 8 Sep 2026 counted 247 elements under 12px on
   the chat at 390px, all in the seat rail. Nothing on a phone may render
   under 12px; the rail's slugs and blurbs come up to the body size. */
@media (max-width:640px){ .ch-rail__list, .ch-rail__list *{font-size:max(12px,var(--fd))} }
/* 8 Sep 2026, measured in Chromium at 390px: the rail floor held (14px) but
   .ch-seat__s and .ch-seat__b carry their own size and .btn / .mc-nav__link
   sit at 11px. Specific selectors, so nothing he taps or reads is under 12px. */
@media (max-width:640px){
  .ch-rail__list .ch-seat__s, .ch-rail__list .ch-seat__b,
  /* 10 Sep 2026: the bot group is a SIBLING of .ch-rail__list, not inside it,
     so it fell straight through this floor and shot found its four role
     blurbs at 11.5px. Same root cause as the click handler that only
     listened on #rail. Anything added beside the list needs naming here. */
  .ch-bots .ch-seat__s, .ch-bots .ch-seat__b{font-size:12px}
  .btn, .btn--xs, .btn--sm, .mc-nav__link{font-size:max(12px,var(--fd))}
}

/* ── Apps launcher (/apps/), 9 Sep 2026. Each tile carries its app hue as --app,
   set as data on the tile, not as a style; everything else is the system. ── */
.apps-page{padding:14px}
.apps-head{margin-bottom:16px}
.apps-eyebrow{font-family:var(--fd);font-size:12px;letter-spacing:.22em;text-transform:uppercase;color:var(--orange)}
.apps-title{font-family:var(--fd);font-size:20px;font-weight:700;margin:6px 0 4px;color:var(--ink,#fff)}
.apps-lede{color:var(--dim);font-size:13.5px;line-height:1.55;max-width:70ch;margin:0}
.apps-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.app-tile{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 10px 14px;background:var(--panel);border:1px solid var(--border);border-radius:14px;text-decoration:none;color:inherit;min-height:44px;transition:border-color .15s}
.app-tile:hover,.app-tile:focus-visible{border-color:var(--app,var(--orange));outline:none}
.app-tile__icon{width:64px;height:64px;border-radius:15px;box-shadow:0 2px 10px rgba(0,0,0,.35)}
.app-tile__name{font-weight:700;font-size:13.5px}
.app-tile__path{font-family:var(--fd);font-size:12px;letter-spacing:.06em;color:var(--dim)}
.apps-foot{color:var(--dim);font-size:12.5px;line-height:1.55;max-width:70ch;margin-top:18px}

/* 9 Sep 2026: a copyable link on a card page (card manage, gateway). Tokens only. */
.sd-code{font-family:var(--fm, ui-monospace, monospace);font-size:12px;color:var(--cyan);word-break:break-all}

/* ── APP SHELL, 9 Sep 2026 ──────────────────────────────────────────
   An installed app is its own app: one bar, its own links, nothing else.
   Jason on the first installs: "it lets you browse in the other places".
   Phone rules from the mail desk he approved: 12px floors, 32px targets. */
.sd-shell{position:sticky;top:0;z-index:60;display:flex;align-items:center;gap:10px;
  padding:8px 12px;background:var(--panel);border-bottom:1px solid var(--border)}
.sd-shell__brand{display:flex;align-items:center;gap:9px;text-decoration:none;color:var(--ink);min-height:36px}
.sd-shell__icon{width:30px;height:30px;border-radius:8px;display:block}
.sd-shell__name{font-family:var(--fh);font-size:13px;letter-spacing:.08em;text-transform:uppercase;line-height:1.05;display:flex;flex-direction:column}
.sd-shell__name small{font-family:var(--fu);font-size:12px;letter-spacing:.14em;color:var(--dim);text-transform:uppercase}
.sd-shell__nav{display:flex;gap:4px;margin-left:auto;overflow-x:auto;scrollbar-width:none}
.sd-shell__nav a{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border:1px solid var(--border);
  border-radius:var(--radius-sm);color:var(--dim);font-size:12px;letter-spacing:.06em;text-transform:uppercase;text-decoration:none;white-space:nowrap}
.sd-shell__nav a.is-on{color:var(--orange);border-color:var(--orange)}
.sd-shell-exit{display:block;text-align:center;padding:14px;margin:24px 0 8px;color:var(--dim);font-size:12px;letter-spacing:.1em;text-transform:uppercase;text-decoration:none}
body.sd-appshell .mc-nav,body.sd-appshell #sd-burger,body.sd-appshell #sd-pal,body.sd-appshell #nav-search,
body.sd-appshell .mc-nova,body.sd-appshell #nova-orb-widget,body.sd-appshell .sd-appear-toggle{display:none!important}
body.sd-appshell .sd-shell-out{display:none!important}
@media (max-width:700px){
  .sd-shell{padding:6px 10px}
  .sd-shell__nav a{padding:0 10px}
}

/* ── MEET, the installed app's start page (9 Sep 2026) ── */
.meet-app{padding:10px 8px 24px;display:flex;flex-direction:column;gap:10px}
.meet-next{display:flex;flex-direction:column;gap:6px}
.meet-next__title{font-family:var(--fu);font-size:20px;font-weight:700;margin:0;line-height:1.25;text-wrap:balance}
.meet-next__when{font-size:13px;color:var(--dim)}
.meet-next__join{align-self:flex-start;min-height:44px;display:inline-flex;align-items:center;padding:0 22px;font-size:14px;margin-top:6px}
.meet-h{margin-top:6px}
.meet-row{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);min-height:48px}
.meet-row__time{font-size:12px;color:var(--dim);width:64px;flex:0 0 auto;line-height:1.3}
.meet-row__title{flex:1;font-size:14px}
.meet-row__meta{font-size:12px;color:var(--dim)}
.meet-row__go{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--orange)}
.meet-owed summary{cursor:pointer;font-size:13px;color:var(--dim)} .meet-owed summary b{color:var(--ink);margin-left:6px}
.meet-owed__row{display:block;padding:9px 0;border-top:1px solid var(--border);color:var(--ink);text-decoration:none;font-size:13px}
body.sd-appshell:not([data-shell="nova"]) #nova-fab,body.sd-appshell:not([data-shell="nova"]) #nova-veil{display:none!important}
.meet-app .sd-kicker{font-size:12px;letter-spacing:2px}
body.sd-appshell #sd-setup{display:none!important}

/* ── PHONE APP PATTERNS (9 Sep 2026, Jason: "make them all more like google /
   microsoft apps ... easier to use"). The ten rules in _docs/UI-APP-CONVENTIONS.md.
   Shared by every Command app page: an app bar with one action, rows not
   tables, chips for state, Show more instead of 100-screen pages, 44px targets,
   nothing under 12px. Tokens only. ─────────────────────────────────────── */
.sd-appbar{display:flex;align-items:center;gap:10px;padding:10px 12px;position:sticky;top:0;z-index:8;
  background:var(--bg);border-bottom:1px solid var(--border)}
.sd-appbar__title{font-family:var(--fu);font-size:17px;font-weight:700;color:var(--ink);margin:0;flex:1;min-width:0;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sd-appbar__sub{display:block;font-size:12px;font-weight:400;color:var(--dim);letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sd-appbar__act{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;padding:0 16px;
  border-radius:12px;background:var(--orange);color:var(--bg);font-family:var(--fu);font-size:14px;font-weight:700;text-decoration:none;border:0;cursor:pointer}
.sd-tabs{display:flex;gap:6px;padding:8px 12px;overflow-x:auto;scrollbar-width:none}
.sd-tabs a,.sd-tabs button{flex:none;min-height:40px;display:inline-flex;align-items:center;gap:6px;padding:0 14px;border-radius:999px;
  border:1px solid var(--border);color:var(--dim);font-family:var(--fu);font-size:13px;text-decoration:none;background:transparent;cursor:pointer}
.sd-tabs .is-on{color:var(--orange);border-color:var(--orange)}
.sd-tabs b{font-weight:700;color:inherit}
.sd-list{list-style:none;margin:0;padding:0 12px}
.sd-item{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--border);min-height:56px;color:var(--ink);text-decoration:none}
.sd-item__main{flex:1;min-width:0;text-decoration:none;color:inherit}
.sd-item__title{font-size:15px;line-height:1.35;color:var(--ink);font-weight:600;margin:0}
.sd-item__meta{font-size:13px;color:var(--dim);margin-top:3px;line-height:1.4;overflow-wrap:anywhere}
.sd-item__side{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.sd-chip{display:inline-flex;align-items:center;min-height:24px;padding:0 9px;border-radius:999px;font-size:12px;letter-spacing:.02em;
  border:1px solid var(--border);color:var(--dim);white-space:nowrap}
.sd-chip--bad{color:var(--red);border-color:var(--red)} .sd-chip--warn{color:var(--gold);border-color:var(--gold)}
.sd-chip--ok{color:var(--ok);border-color:var(--ok)} .sd-chip--info{color:var(--cyan);border-color:var(--cyan)} .sd-chip--hot{color:var(--orange);border-color:var(--orange)}
.sd-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.sd-actions .btn,.sd-actions button{min-height:44px;padding:0 16px;font-size:13px;border-radius:12px}
.sd-more{display:flex;justify-content:center;padding:14px 12px 24px}
.sd-more a,.sd-more button{min-height:44px;padding:0 22px;border-radius:12px;border:1px solid var(--border);color:var(--ink);
  font-family:var(--fu);font-size:14px;text-decoration:none;background:var(--panel);display:inline-flex;align-items:center;cursor:pointer}
.sd-empty{margin:24px 12px;padding:22px 16px;border:1px dashed var(--border);border-radius:14px;text-align:center;color:var(--dim);font-size:14px;line-height:1.5}
.sd-empty .btn{margin-top:12px;min-height:44px}
.sd-sec{padding:16px 12px 4px;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);display:flex;align-items:center;gap:8px}
.sd-sec b{color:var(--dim);font-weight:400;letter-spacing:0;text-transform:none}
.sd-form{display:flex;flex-direction:column;gap:12px;padding:12px}
.sd-form label{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--dim);display:block;margin-bottom:4px}
.sd-form input,.sd-form select,.sd-form textarea{width:100%;box-sizing:border-box;min-height:44px;font:15px/1.4 var(--fu);padding:10px 12px;
  border-radius:10px;border:1px solid var(--border);background:var(--panel-2,var(--panel));color:var(--ink)}
.sd-form textarea{min-height:88px}
.sd-form .sd-appbar__act{align-self:stretch;justify-content:center}
details.sd-fold>summary{list-style:none;cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px;padding:0 12px;color:var(--ink);font-family:var(--fu);font-size:14px}
details.sd-fold>summary::-webkit-details-marker{display:none}
details.sd-fold>summary::before{content:"+";width:22px;height:22px;border-radius:6px;border:1px solid var(--border);display:inline-flex;align-items:center;justify-content:center;color:var(--dim);font-size:15px}
details.sd-fold[open]>summary::before{content:"–"}
@media (max-width:899px){
  /* TASKS: the four-column board becomes one column; done is folded */
  .board{grid-template-columns:1fr!important;padding:0 12px 20px!important;gap:14px!important}
  .col{min-height:0!important;padding:0!important;border:0!important;background:transparent!important}
  .col__head{padding:12px 0 6px!important}
  .card{font-size:15px!important;padding:12px 12px 12px 14px!important;margin-bottom:8px!important;border-radius:10px;cursor:default!important}
  .card__meta{font-size:13px!important}
  .clock-strip{gap:6px!important;padding:8px 12px!important}
  .clock__label{font-size:12px!important} .clock__time{font-size:14px!important}
  .new-task form{flex-direction:column!important;align-items:stretch!important}
  .new-task .f{min-width:0!important} .new-task label{font-size:12px!important}
  .new-task input,.new-task select,.new-task textarea{min-height:44px;font-size:15px!important}
  .new-task .btn{min-height:44px}
  /* THE FLOOR: one seat per row; tap the header to open its box */
  .fl-grid{grid-template-columns:1fr!important;gap:8px!important}
  .fl-seat{padding:10px 12px!important;border-radius:12px!important}
  .fl-seat>header{align-items:center!important;min-height:44px}
  .fl-seat:not(.is-open)>*:not(header){display:none!important}
  .fl-seat.is-open>header{margin-bottom:6px}
  .fl-slug,.fl-blurb,.fl-note,.fl-last,.fl-last--sm,.fl-badge,.fl-need,.fl-needs>b,.fl-multi>b,.fl-reports>b{font-size:12px!important}
  .fl-id b{font-size:15px!important}
  .fl-in{font-size:15px!important;min-height:44px}
  .fl-go,.fl-mic{min-height:44px!important;min-width:44px}
  .fl-quick button,.fl-badge,.fl-need{min-height:32px}
  .fl-find{max-width:none!important;min-height:44px}
  .fl-top{flex-wrap:wrap!important}
  .fl-crew{margin-left:0!important;padding-left:10px!important}
}

/* ── App pages on a phone (9 Sep 2026, Jason: "more like Google / Microsoft apps") ──
   The ten rules in _docs/UI-APP-CONVENTIONS.md. Used by every <app>/app.html
   rendered inside the app shell. Tokens only. */
.ap{padding:8px 8px 96px;display:flex;flex-direction:column;gap:10px;max-width:720px;margin:0 auto}
.ap-head{display:flex;align-items:center;gap:10px;padding:4px 4px 0}
.ap-head h1{font-family:var(--fu);font-size:20px;font-weight:700;margin:0;flex:1;line-height:1.2}
.ap-head .btn{min-height:40px}
.ap-search{display:block;width:100%;min-height:44px;font-size:15px}
.ap-stats{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px 0}
.ap-stat{flex:0 0 auto;min-width:88px;padding:10px 12px;background:var(--panel);border:1px solid var(--border);border-radius:12px}
.ap-stat b{display:block;font-family:var(--fu);font-size:20px;line-height:1}
.ap-stat span{display:block;font-size:12px;color:var(--dim);margin-top:4px;letter-spacing:.04em;text-transform:uppercase}
.ap-list{display:flex;flex-direction:column;gap:6px}
.ap-row{display:flex;align-items:center;gap:12px;min-height:56px;padding:10px 12px;background:var(--panel);border:1px solid var(--border);border-radius:12px;color:var(--ink);text-decoration:none}
.ap-row:active{background:var(--panel-2,var(--panel))}
.ap-row__lead{flex:0 0 auto;width:56px;font-size:12px;line-height:1.3;color:var(--dim);text-align:left}
.ap-row__main{flex:1;min-width:0}
.ap-row__title{display:block;font-size:15px;font-weight:600;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ap-row__meta{display:block;font-size:13px;color:var(--dim);margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ap-row__end{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.ap-chip{display:inline-flex;align-items:center;min-height:24px;padding:0 9px;border-radius:999px;font-size:12px;letter-spacing:.04em;text-transform:uppercase;border:1px solid var(--border);color:var(--dim);white-space:nowrap}
.ap-chip--ok{color:var(--ok);border-color:var(--ok)} .ap-chip--warn{color:var(--gold);border-color:var(--gold)}
.ap-chip--bad{color:var(--red);border-color:var(--red)} .ap-chip--info{color:var(--cyan);border-color:var(--cyan)} .ap-chip--hot{color:var(--orange);border-color:var(--orange)}
.ap-h{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--dim);margin:8px 4px 0}
.ap-empty{padding:28px 16px;text-align:center;color:var(--dim);font-size:14px;line-height:1.5;background:var(--panel);border:1px dashed var(--border);border-radius:12px}
.ap-empty .btn{margin-top:12px}
.ap-more{display:block;width:100%;min-height:44px;font-size:14px}
.ap-row.is-hidden,.ap-hidden{display:none}
.ap-actions{position:fixed;left:0;right:0;bottom:0;z-index:50;display:flex;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--border)}
.ap-actions .btn{flex:1;min-height:48px;font-size:14px}
.ap-actions form{flex:1;display:flex} .ap-actions form .btn{width:100%}
.ap-form{display:flex;flex-direction:column;gap:10px} .ap-form label{font-size:13px;color:var(--dim)} .ap-form input,.ap-form select,.ap-form textarea{width:100%;min-height:44px;font-size:15px}
.ap-detail{padding:12px 12px 4px;font-size:14px;line-height:1.5;color:var(--dim)} .ap-detail b{color:var(--ink)}
.ap-detail .ap-inline{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px} .ap-detail .ap-inline .btn,.ap-detail .ap-inline form .btn{min-height:44px;flex:1}
.ap-detail .ap-inline form{flex:1;display:flex}
details.ap-item>summary{list-style:none;cursor:pointer} details.ap-item>summary::-webkit-details-marker{display:none}
@media (min-width:900px){.ap{padding-bottom:24px}.ap-actions{position:static;border:0;background:none;padding:0;justify-content:flex-start}.ap-actions .btn{flex:0 0 auto;min-width:200px}}

/* ── PHONE LAYER FOR THE RECORDS APPS (group C), 9 Sep 2026 ─────────────
   Jason: "make them all more like google / microsoft apps ... easier to use".
   Measured baseline in /var/www/_ops/brand/AUDIT-2026-09-09.md: desktop
   tables and 10px inline styles shown on a 390px phone. This layer turns
   tables into rows, raises every inline sub-12px size to 12px, makes every
   control 44px, and stacks the fixed multi-column layouts. Desktop above
   900px is untouched. Rules in _docs/UI-APP-CONVENTIONS.md. */
@media (max-width:900px){
  /* 1. no text under 12px, whatever the inline style says */
  [style*="font-size:9"],[style*="font-size:10"],[style*="font-size:11"],
  [style*="font-size: 9"],[style*="font-size: 10"],[style*="font-size: 11"]{font-size:12px!important}
  .sd-kicker,.sec-title,.stat-label,.action-date,.who,.pill,th{font-size:12px!important}
  /* 2. thumbs: every control 44px tall, inputs full width */
  .btn,.quick-btn,button.btn,.links a,a.btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:0 16px;font-size:13px!important;line-height:1.2}
  .input,input.input,select.input,textarea.input{min-height:44px;width:100%!important;max-width:100%;font-size:14px!important;box-sizing:border-box}
  form[style*="display:flex"] .input{flex:1 1 100%}
  /* 3. tables become rows: the header goes, each row is a card, the first cell is the title */
  .tbl,.pp table,table[style*="border-collapse"]{display:block;width:100%!important}
  .tbl thead,.pp table tr:first-child,table[style*="border-collapse"] tr:first-child{display:none}
  .tbl tbody,.pp tbody{display:block}
  .tbl tr,.pp table tr,table[style*="border-collapse"] tr{display:block;padding:10px 0;border-bottom:1px solid var(--border)}
  .tbl td,.pp table td,table[style*="border-collapse"] td{display:block;padding:2px 0;border:0;font-size:13px!important}
  .tbl td:first-child+td,.tbl td b,.pp table td:first-child b{font-size:15px!important}
  .tbl td:empty{display:none}
  .tbl td[style*="width:30px"]{display:inline-block;width:auto!important;margin-right:8px}
  .tbl td a,.pp table td a{display:inline-block;min-height:32px;line-height:32px}
  /* 4. fixed layouts stack */
  [style*="max-width:1000px"],[style*="max-width:960px"],[style*="max-width:1020px"],[style*="max-width:1050px"],[style*="max-width:1100px"]{padding:10px 8px!important}
  [style*="grid-template-columns:repeat(4"],[style*="grid-template-columns:1fr 1fr 1fr"],[style*="grid-template-columns:repeat(3"]{grid-template-columns:1fr 1fr!important}
  [style*="grid-template-columns:320px"],[style*="grid-template-columns:290px"],[style*="grid-template-columns:240px"],[style*="grid-template-columns:340px"]{grid-template-columns:1fr!important}
  [style*="width:290px"],[style*="width:240px"],[style*="width:340px"],[style*="width:320px"]{width:100%!important}
  .panel{padding:12px}
  .stat-num{font-size:24px!important}
  /* 5. partners atlas: map under the numbers, filters as one scrolling row, list below */
  .pa-top{flex-direction:column;height:auto;min-height:0}
  .pa-side{width:100%;border-right:0;border-bottom:1px solid var(--border);padding:10px 8px;gap:8px}
  .pa-side > div:nth-child(2),.pa-side > div:nth-child(3){display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:4px}
  .pa-side .sec-title{flex:0 0 100%}
  .pa-check{flex:0 0 auto;min-height:36px;border:1px solid var(--border);border-radius:999px;padding:0 12px;white-space:nowrap}
  .pa-map-wrap{height:40vh;min-height:220px}
  .pa-bottom{grid-template-columns:1fr;padding:8px}
  .action-row{flex-direction:column;align-items:flex-start;gap:4px;min-height:44px}
  /* 6. lists: a row is a 56px tap target, title first */
  .sd-list{display:flex;flex-direction:column}
  .sd-list__row{display:flex;flex-direction:column;gap:3px;padding:12px 4px;min-height:56px;border-bottom:1px solid var(--border);color:var(--ink);text-decoration:none}
  .sd-list__title{font-size:15px;font-weight:600;line-height:1.3}
  .sd-list__meta{font-size:12px;color:var(--dim);display:flex;gap:8px;flex-wrap:wrap;align-items:center}
  .sd-more{display:flex;justify-content:center;margin:12px 0}
  details.sd-fold > summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--dim);list-style:none}
  details.sd-fold > summary::after{content:'+';margin-left:auto;font-size:18px;color:var(--orange)}
  details.sd-fold[open] > summary::after{content:'–'}
  /* 7. ambassadors war room: side column stacks */
  .wr-side,[class*="war-side"]{width:100%!important}
}
/* the list row and fold are useful on desktop too, at desktop density */
.sd-list__row{display:flex;flex-direction:column;gap:3px;padding:10px 4px;border-bottom:1px solid var(--border);color:var(--ink);text-decoration:none}
.sd-list__title{font-size:14px;font-weight:600}
.sd-list__meta{font-size:12px;color:var(--dim);display:flex;gap:8px;flex-wrap:wrap}
.sd-list__row .chip{padding:3px 10px;font-size:12px;min-height:0}
details.sd-fold > summary{cursor:pointer}
@media (max-width:900px){
  /* pin / delete buttons drawn as bare text in the office lists: give them a thumb-sized box */
  .tbl button[style*="background:none"]{min-width:44px;min-height:44px;font-size:14px!important}
  .tbl form[style*="display:inline"]{display:inline-block}
  /* office / decks: the header's two buttons stack under the title */
  [style*="justify-content:space-between"][style*="align-items:baseline"],[style*="justify-content:space-between"][style*="align-items:flex-end"]{flex-direction:column;align-items:stretch!important;gap:10px}
  [style*="justify-content:space-between"] > div[style*="display:flex"]{flex-wrap:wrap}
}
/* metrics + briefing on a phone */
@media (max-width:899px){
  .sd-grid{grid-template-columns:1fr 1fr!important;gap:8px!important}
  .brief-proj{grid-template-columns:1fr!important}
  .stat-label{font-size:12px!important} .sd-meta,.sd-quiet,.sd-sub{font-size:12px!important} .sd-kicker,.sd-label{font-size:12px!important;letter-spacing:2px}
  /* .sd-sub was left out of this list. It is 11.5px, it is the standing
     explanation line under a page title, so it appears on most pages in
     Command, and it failed `shot`'s sub-12px check on every one of them.
     Found 16 Sep 2026 on /mail/dropped/ by listing the offending elements
     rather than the count. The other five on that page are nav chrome in
     base_command.html (the clock at 10px, and the menu, close, theme and
     reminder buttons at 11px) and are not this file's to fix. */
  .sd-card{padding:12px!important}
}
.pf-row{display:flex;justify-content:space-between;gap:10px;font-size:14px;line-height:2;color:var(--dim)} .pf-row b{color:var(--ink)}
@media (max-width:899px){
  .pf-grid{grid-template-columns:1fr 1fr!important}
  /* GLASSES + DASHBOARD */
  .gl-row{flex-wrap:wrap!important} .gl-row>*{min-width:0} .gl-row input,.gl-row select{flex:1 1 140px;min-height:44px;font-size:15px}
  .gl-h1{font-size:20px!important} .gl-h2{font-size:14px!important}
  .stat-row{grid-template-columns:1fr 1fr!important}
  #dash-data>div[style*="grid-template-columns"]{grid-template-columns:1fr!important}
  .panel-sub,.panel-region,.stat-label{font-size:12px!important}
}
/* short app pages: keep the shell exit link at the bottom, not mid-screen */
.sd-appshell .ap{min-height:calc(100vh - 150px)}
@media (max-width:899px){
  body.sd-appshell{overflow-x:hidden}
  .gl-card,.gl-card *{overflow-wrap:anywhere}
}
.sd-appshell .ap ~ .sd-shell-exit,.sd-appshell .sd-shell-exit{margin-bottom:110px}
@media (min-width:900px){.sd-appshell .sd-shell-exit{margin-bottom:8px}}
@media (max-width:900px){
  /* second pass, measured: title cells on their own line, the rest inline, so a stacked table is a row and not a column */
  .tbl td,table[style*="border-collapse"] td{display:inline-block;padding:2px 10px 2px 0;font-size:13px!important}
  .tbl td:nth-child(2),table[style*="border-collapse"] td:first-child{display:block;padding:0 0 4px}
  .tbl td:nth-child(2) a,table[style*="border-collapse"] td:first-child a,.panel a[style*="font-size:14.5px"],.pp td:first-child > a{display:inline-block;min-height:32px;line-height:32px;font-size:15px!important}
  table[style*="border-collapse"] td a{display:inline-block;min-height:32px;line-height:32px}
  .panel .who a,.panel [style*="margin-top:2px"] a,.links a{display:inline-block;min-height:32px;line-height:32px}
  details.sd-fold > summary{min-height:44px}
  .leaflet-control-attribution{display:none}
  .pa-map-wrap,#pa-map{max-width:100vw;overflow:hidden}
}
@media (max-width:900px){
  /* the filter rows themselves scroll; the section around them does not stretch the page */
  .pa-side > div:nth-child(2),.pa-side > div:nth-child(3){display:block;overflow:visible}
  #type-filters,#status-filters{display:flex;gap:6px;overflow-x:auto;max-width:100%;scrollbar-width:none;padding-bottom:4px}
  .pa-side,.pa-shell{max-width:100vw;overflow-x:hidden}
}
@media (max-width:900px){ .pp .who a,.pp td a{display:inline-block;min-height:32px;line-height:32px} }
@media (max-width:900px){
  /* the atlas template carries its own <style> after this file, so these need weight */
  .pa-top{flex-direction:column!important;height:auto!important;min-height:0!important}
  .pa-side{width:100%!important;border-right:0!important;flex-shrink:1!important}
  .pa-map-wrap{height:40vh!important;min-height:220px!important;width:100%!important}
  .pa-bottom{grid-template-columns:1fr!important;padding:8px!important}
  /* one disclosure mark, not two */
  details.sd-fold > summary::-webkit-details-marker,details.sd-fold > summary::before{display:none!important}
  details.sd-fold > summary::marker{content:''}
}
@media (max-width:900px){
  /* something earlier collapses every inline grid to one column; two-up is right for four numbers */
  body [style*="grid-template-columns:repeat(4"],body [style*="grid-template-columns:1fr 1fr 1fr"],body [style*="grid-template-columns:repeat(3"],body .pa-stats{grid-template-columns:1fr 1fr!important}
}
@media (max-width:900px){
  /* office lists: the pin cell floats right beside the title, delete sits inline with the meta, no dead space */
  .tbl td[style*="width:30px"]{display:inline-block;float:right;width:auto!important;margin:0 0 0 8px;padding:0}
  .tbl td[style*="width:30px"] button{min-height:36px;min-width:36px}
  .tbl td:last-child{display:inline-block;padding:2px 0}
  .tbl td:last-child button{min-height:36px;padding:0 10px}
  .tbl tr{padding:8px 0;overflow:hidden}
}

/* 9 Sep 2026: the Glasses page reported 595px of scrollable width on a 390px
   phone with no element wider than the viewport (bisected: hiding any child
   never removed it; html and body have no pseudo-elements or min-width). Rule
   10 of the app conventions says a shell page never scrolls sideways, so the
   shell root enforces it. Symptom closed, cause not found; recorded in memory. */
html:has(body.sd-appshell) { overflow-x: hidden; }
body.sd-appshell { overflow-x: hidden; }
@media (max-width:900px){
  html body [style*="grid-template-columns:repeat(4"],html body [style*="grid-template-columns:1fr 1fr 1fr"],html body [style*="grid-template-columns:repeat(3"],html body .pa-stats{grid-template-columns:1fr 1fr!important;display:grid!important}
  /* the atlas map on a phone: the CARTO basemap answers "API KEY REQUIRED" (pre-existing), so a 40vh dark block is all it can show; hide it until the key exists */
  .pa-map-wrap{display:none!important}
}
@media (max-width:900px){
  /* base_command.html:297 forces every inline repeat(4) grid to ONE column on phones; four numbers read better two-up (this selector outweighs it: two attributes) */
  html body div[style*="grid-template-columns:repeat(4"][style*="gap"],html body div[style*="grid-template-columns:1fr 1fr 1fr"][style*="gap"],html body div[style*="grid-template-columns:repeat(3"][style*="gap"]{grid-template-columns:1fr 1fr!important}
}

/* 9 Sep 2026, residual phone faults after the app-shell pass (Jason: "run chromium
   on all of them after to make sure there is no visual glitches"). */
.sd-shell-exit{min-height:36px;display:inline-flex;align-items:center}
.sd-tap{display:inline-flex;align-items:center;min-height:32px;min-width:32px;padding:0 8px;margin:-6px 0;box-sizing:border-box}
a.sd-chip{min-height:32px;padding:0 12px}
.sd-check{display:inline-flex;align-items:center;gap:8px;min-height:32px;cursor:pointer}
.sd-check input[type=checkbox]{width:22px;height:22px;margin:0;accent-color:var(--orange)}
.sd-doc-delete{margin:28px 0 8px;padding-top:14px;border-top:1px solid var(--border)}
.sd-doc-delete__btn{min-height:40px;color:var(--red);border-color:var(--red)}
.sd-appshell .leaflet-control-zoom a{width:32px!important;height:32px!important;line-height:32px!important}

/* ── TERMINAL CHAT, easier to use (Jason, 9 Sep 2026: "what else can we do to
   make the terminal chats easier to use"). Five things, all in the rail and the
   composer: find a seat, see its state, answer in one tap, speak to several at
   once, and know what happened while he was away. Tokens only. */

/* 1. FIND A SEAT. Pinned above the list so 58 seats stop being a scroll. */
.ch-find{display:flex;gap:6px;align-items:center;padding:8px 10px;
         border-bottom:1px solid var(--faint);background:var(--bg)}
.ch-find input{flex:1;min-width:0;min-height:38px;padding:6px 10px;font-size:13px;
               border-radius:9px;background:var(--panel-2);border:1px solid var(--faint);
               color:var(--ink);font-family:inherit}
.ch-find input::placeholder{color:var(--dim)}
.ch-sortbtn{min-height:38px;min-width:44px;padding:0 10px;font-size:12px;cursor:pointer;
            border-radius:9px;background:var(--panel-2);border:1px solid var(--faint);
            color:var(--dim);font-family:inherit}
.ch-sortbtn.on{color:var(--ok);border-color:var(--ok)}
.ch-seat[hidden]{display:none}
.ch-none{padding:14px 12px;font-size:12.5px;color:var(--dim);line-height:1.5}

/* 2. STATUS AT A GLANCE. One chip per row; the header carries the count. */
.ch-st{font-size:12px;padding:1px 7px;border-radius:20px;flex:none;
       border:1px solid var(--faint);color:var(--dim);white-space:nowrap;line-height:1.5}
.ch-st--work{color:var(--gold);border-color:var(--gold)}
.ch-st--ask{color:var(--red);border-color:var(--red)}
.ch-st--done{color:var(--ok);border-color:var(--ok)}
.ch-waiting{color:var(--red);font-weight:600}

/* 3. ONE-TAP ANSWERS, above the box where the thumb already is. */
.ch-quick{display:none;gap:6px;flex-wrap:wrap;margin-bottom:7px;align-items:center}
.ch-quick.show{display:flex}
.ch-quick button{min-height:36px;padding:0 12px;font-size:12.5px;cursor:pointer;
                 border-radius:8px;background:var(--panel-2);border:1px solid var(--faint);
                 color:var(--ink);font-family:inherit}
.ch-quick .q-yes{color:var(--ok);border-color:var(--ok)}
.ch-quick .q-no{color:var(--red);border-color:var(--red)}
.ch-quick__lbl{font-size:12px;color:var(--red);margin-right:2px}

/* 4. SEND TO SEVERAL. Checkbox mode on the rail, count and send in one bar. */
.ch-seat__pick{display:none;width:22px;height:22px;margin:5px 0 0;flex:none;
               accent-color:var(--orange)}
.ch-rail.multi .ch-seat__pick{display:block}
.ch-bcast{display:none;gap:8px;align-items:center;padding:8px 10px;background:var(--panel-2);
          border-bottom:1px solid var(--faint);font-size:12.5px;flex-wrap:wrap}
.ch-rail.multi .ch-bcast{display:flex}
.ch-bcast__n{color:var(--orange);font-weight:600}
.ch-bcast button{min-height:36px;padding:0 12px;font-size:12.5px;cursor:pointer;
                 border-radius:8px;background:var(--bg);border:1px solid var(--faint);
                 color:var(--ink);font-family:inherit}
.ch-bcast .b-go{color:var(--ok);border-color:var(--ok)}

/* 5. WHILE YOU WERE AWAY. Above the asks strip, five lines, tap to open. */
.ch-away{display:none;margin-bottom:10px;border:1px solid var(--faint);
         border-radius:12px;background:var(--panel);overflow:hidden}
.ch-away.show{display:block}
.ch-away__hd{padding:8px 12px;font-size:12px;letter-spacing:.12em;text-transform:uppercase;
             color:var(--dim);border-bottom:1px solid var(--faint);display:flex;
             align-items:center;gap:8px}
.ch-away__x{margin-left:auto;min-height:32px;min-width:32px;cursor:pointer;
            background:none;border:0;color:var(--dim);font-family:inherit;font-size:14px}
.ch-away__row{display:block;width:100%;text-align:left;min-height:44px;padding:8px 12px;
              background:none;border:0;border-top:1px solid var(--faint);color:inherit;
              font-family:inherit;cursor:pointer}
.ch-away__row:first-of-type{border-top:0}
.ch-away__row:hover{background:var(--panel-2)}
.ch-away__seat{font-size:12.5px;font-weight:600;color:var(--ok)}
.ch-away__t{font-size:12.5px;color:var(--ink);line-height:1.45;display:block;margin-top:1px}
/* The broadcast bar carries its own box: in multi mode no seat is open, so the
   composer is disabled and, at 390px where the rail and conversation swap, off
   screen entirely. Found by proving item 4 on a phone rather than by reading. */
.ch-bcast input{flex:1 1 120px;min-width:0;min-height:36px;padding:6px 10px;font-size:12.5px;
                border-radius:8px;background:var(--bg);border:1px solid var(--faint);
                color:var(--ink);font-family:inherit}
.ch-bcast input::placeholder{color:var(--dim)}

/* ── THE BOT TEAM in the Terminal rail ─────────────────────────────────────
   10 Sep 2026, Jason on a Grok Bot advert: "your team of always-on agents that
   finish the work". Four resident nova seats sit above the 58 Claude seats and
   read as people: name, role underneath, live status. Tokens only; the row
   itself reuses .ch-seat so a bot and a seat behave identically to the tap. */
.ch-bots{border-bottom:1px solid var(--faint);padding-bottom:6px;margin-bottom:2px}
.ch-bots__hd{display:flex;align-items:baseline;gap:8px;padding:10px 12px 6px;
  font-family:var(--fd);font-size:12px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--gold)}
.ch-bots__sub{font-family:var(--fu);font-size:12px;letter-spacing:0;
  text-transform:none;color:var(--dim)}
/* A bot's row carries a quiet gold edge, so at a glance the team is one block
   and not four seats that happen to sort first. */
.ch-bot{border-left:2px solid var(--gold)}
.ch-bot .ch-st{color:var(--gold)}

/* The pre-send commitment panel on /mail/desk/all/.
   10 Sep 2026, Jason: "when we agree to something there is context the box
   below says before sending you understand your comitting to agreeing to
   whatever it is". Tokens only, no hardcoded colour, per UI-AUDIT rule 1. */
.commits{border:1px solid var(--orange);border-radius:10px;padding:10px 12px;
         margin:8px 0 10px;
         background:color-mix(in srgb,var(--orange) 8%,var(--panel-2))}
.commits-h{font-size:12px;letter-spacing:.14em;text-transform:uppercase;
           color:var(--orange);font-weight:700;margin-bottom:6px}
.commits ul{margin:0;padding-left:18px}
.commits li{font-size:13px;line-height:1.55;margin:3px 0}
.commits-due{display:inline-block;min-width:84px;font-weight:700;
             color:var(--orange)}
.commits-nodate{opacity:.6;font-weight:400}
.commits-ack{display:flex;gap:8px;align-items:center;margin-top:9px;
             font-size:13px;cursor:pointer}

/* A DATE ALREADY PAST, WRITTEN AS THOUGH IT IS COMING. 18 Sep 2026.
   152 of 289 live drafts said the Challenge "opens on 15 September" three
   days after it opened. Red, not orange: the commitment panel asks him to
   agree to something, this one says the draft is wrong. Tokens only. */
.datewarn{border:1px solid var(--red);border-radius:10px;padding:10px 12px;
          margin:8px 0 10px;
          background:color-mix(in srgb,var(--red) 8%,var(--panel-2))}
.datewarn-h{font-size:12px;letter-spacing:.14em;text-transform:uppercase;
            color:var(--red);font-weight:700;margin-bottom:6px}
.datewarn ul{margin:0;padding-left:18px}
.datewarn li{font-size:13px;line-height:1.55;margin:3px 0}

/* Stardust Cards, the per-app shell. 10 Sep 2026.
   REWRITTEN the same day: the first version invented seven font sizes and
   hardcoded #0d0a14, which is not even the current --bg (#0b0f1e). Jason:
   "why you ignoring your own design rules... in memory". UI-AUDIT rules 2 and
   3: never hardcode a colour, and a size off the scale needs a reason.
   Everything below is layout only. Type comes from .sd-kicker/.sd-meta/
   .sd-body/.sd-strong/.sd-title, inputs from .sd-in, cards from .sd-card,
   buttons from .btn. Touch targets are 40px minimum, per the mobile shape. */
body.cardsapp{margin:0;background:var(--bg);color:var(--ink)}
.capp-bar{display:flex;align-items:center;gap:14px;padding:8px 16px;
          background:var(--panel-2);border-bottom:1px solid var(--faint);
          position:sticky;top:0;z-index:5;overflow-x:auto;white-space:nowrap}
.capp-bar a{display:inline-flex;align-items:center;min-height:40px;
            text-decoration:none;color:var(--ink)}
.capp-brand{color:var(--orange)}
.capp-link{opacity:.75}
.capp-link.on{opacity:1;box-shadow:inset 0 -2px 0 var(--orange)}
.capp-out{margin-left:auto;opacity:.6}
.capp-main{max-width:720px;margin:0 auto;padding:14px 16px 64px}
.capp-form{display:flex;flex-direction:column;gap:12px}
.capp-form label{display:flex;flex-direction:column;gap:5px}
.capp-search{display:flex;gap:8px;margin-bottom:10px}
.capp-search .sd-in{flex:1}
.capp-list{list-style:none;margin:0;padding:0}
.capp-list li{padding:9px 0;border-bottom:1px solid var(--faint);
              display:flex;gap:8px;align-items:baseline}
.capp-list a{color:var(--ink);min-height:40px;display:inline-flex;
             align-items:center}
.capp-warn{color:var(--red);border-left:3px solid var(--red);padding-left:10px}

/* /terminal/talk/ — one conversation, nothing else. 10 Sep 2026.
   Jason: "cant you make it more like grok bot the interface more friendly more
   like chatting?". Tokens only, per UI-AUDIT rule 1; type comes from the scale. */
.tk{display:flex;flex-direction:column;height:calc(100vh - 108px);min-height:420px}
.tk-top{display:flex;align-items:center;gap:10px;padding:6px 2px 10px;
        border-bottom:1px solid var(--faint)}
.tk-who{display:flex;align-items:center;gap:9px;background:none;border:0;
        color:var(--ink);cursor:pointer;min-height:40px;padding:0}
.tk-avatar{display:inline-flex;align-items:center;justify-content:center;
           width:30px;height:30px;border-radius:50%;background:var(--panel-2);
           border:1px solid var(--faint);color:var(--orange);flex:0 0 auto}
.tk-name{font-size:15px;font-weight:700}
.tk-caret{opacity:.5}
.tk-alt{margin-left:auto;color:var(--ink);opacity:.55;text-decoration:none;
        min-height:40px;display:inline-flex;align-items:center}
.tk-log{flex:1;min-height:0;overflow-y:auto;padding:16px 2px;display:flex;
        flex-direction:column;gap:10px}
.tk-msg{display:flex}
.tk-msg--me{justify-content:flex-end}
.tk-bub{max-width:80%;padding:10px 14px;border-radius:16px;font-size:14.5px;
        line-height:1.6;background:var(--panel-2);border:1px solid var(--faint);
        white-space:pre-wrap;word-break:break-word}
.tk-msg--me .tk-bub{background:color-mix(in srgb,var(--orange) 16%,var(--panel-2));
                    border-color:color-mix(in srgb,var(--orange) 34%,transparent)}
.tk-bub a{color:var(--orange)}
.tk-stat{align-self:center;font-size:12px;opacity:.45;text-align:center}
.tk-empty{margin:auto;text-align:center;display:flex;flex-direction:column;gap:14px}
.tk-empty__h{font-size:17px;font-weight:700}
.tk-chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.tk-ask{display:flex;gap:8px;align-items:flex-end;padding:10px 0 0;
        border-top:1px solid var(--faint)}
.tk-in{flex:1;resize:none;padding:12px 14px;border-radius:18px;font-size:15px;
       background:var(--panel-2);color:var(--ink);border:1px solid var(--faint);
       font-family:inherit;line-height:1.5;max-height:180px}
.tk-send{width:44px;height:44px;border-radius:50%;border:0;cursor:pointer;
         background:var(--orange);color:var(--bg);font-size:18px;flex:0 0 auto}

.tk-row{display:flex;align-items:center;gap:10px;background:none;border:0;
        border-bottom:1px solid var(--faint);padding:10px 4px;cursor:pointer;
        color:var(--ink);text-align:left;min-height:44px}
.tk-row__t{display:flex;flex-direction:column;gap:2px;min-width:0}
.tk-row__t b{font-size:14px}

@media(max-width:820px){.tk-bub{max-width:88%}}
/* The push-notification chip is fixed at bottom-left and sat on top of the
   talk composer, exactly as it did on /nova/. Lift it clear here too. */
/* The chip's own <style> block sets bottom with !important inside media
   queries, so nudging it loses the cascade. On the talk page it simply
   does not belong: it is a notification prompt sitting on the composer. */
html body:has(.tk-ask) #sd-setup{display:none!important}
/* What a seat actually ran, on the talk page: one quiet line you can open.
   10 Sep 2026, Jason: "the grok bot wont say what it ran?" */
.tk-ran{align-self:flex-start;max-width:88%;border:1px solid var(--faint);
        border-radius:12px;background:var(--panel);padding:6px 10px}
.tk-ran summary{cursor:pointer;list-style:none;font-size:12.5px;opacity:.75;
                display:flex;gap:8px;align-items:baseline;min-height:28px}
.tk-ran summary::-webkit-details-marker{display:none}
.tk-ran__n{color:var(--orange);font-weight:700}
.tk-ran__a{opacity:.7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tk-ran pre{margin:8px 0 2px;font-size:12px;line-height:1.5;overflow-x:auto;
            max-height:340px;white-space:pre-wrap;word-break:break-word;opacity:.85}

.tk-new{display:flex;flex-direction:column;gap:8px}
.tk-new__t{resize:vertical;font-family:inherit}
.tk-new__row{display:flex;gap:8px;align-items:center}
.tk-new__row .sd-in{flex:1}
/* The conversation tabs. 10 Sep 2026: "indont see chat tabs like grok bots?" */

/* The chat rail. 10 Sep 2026, Jason: "why are the tabs not on side like slack?
   and grok bor". A horizontal strip of eight chats that scrolls sideways hides
   the thing you are looking for; a rail does not. Desktop: always there.
   Phone: the same element as a drawer, so there is one list, not two. */
.tkw{display:flex;gap:18px;height:calc(100vh - 108px);min-height:420px;overflow-x:hidden}
/* Installed Terminal app has a 48px shell bar, not the 108px Command nav.
   Without this the composer sits under the fold on a phone. */
body.sd-appshell .tkw{height:calc(100vh - 52px)}
body.sd-appshell .tk{height:calc(100vh - 52px)}
.tkw .tk{flex:1;min-width:0;height:auto}
.tk-rail{flex:0 0 244px;min-width:0;display:flex;flex-direction:column;gap:10px;min-height:0;
  border-right:1px solid var(--faint);padding:6px 14px 0 0}
.tk-rail__hd{display:flex;gap:8px;align-items:center}
.tk-rail__hd .sd-in{flex:1;min-width:0}
.tk-rail__new{flex:0 0 auto;min-width:34px;font-weight:700}
/* min-width:0 above: without it the item's auto floor took the rail to
   523px in the 1440px render, whatever the flex-basis said. */
.tk-rail__list{flex:1;min-width:0;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:1px}
.tk-rail__h{padding:10px 4px 4px;letter-spacing:.06em;text-transform:uppercase;font-size:12px}
.tk-rail .tk-row{width:100%;border-radius:10px;padding:8px 10px;border-bottom:0}
.tk-rail .tk-row__t{flex:1;min-width:0}
/* One line each. The bot blurbs run to 70 characters and wrapped straight over
   the next row's name in the 10 Sep render. */
.tk-rail .tk-row__t b,.tk-rail .tk-row__t .sd-meta{
  display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* [hidden] loses to display:flex. Same trap as the send panel; the new-seat
   form sat open on first load because of it. */
.tk-new[hidden]{display:none}
.tk-rail .tk-row:hover{background:var(--panel-2)}
.tk-rail .tk-row.on{background:color-mix(in srgb,var(--orange) 14%,var(--panel-2))}
.tk-rail .tk-row.on b{color:var(--orange)}
.tk-burger{display:none;background:none;border:0;color:var(--ink);cursor:pointer;
  font-size:17px;padding:4px 8px;opacity:.75}
.tk-scrim{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:59}
@media (max-width:820px){
  .tkw{gap:0}
  .tk-burger{display:inline-block}
  .tk-rail{position:fixed;left:0;top:0;bottom:0;width:min(84vw,300px);z-index:60;
    background:var(--panel);border-right:1px solid var(--faint);
    padding:16px 14px;transform:translateX(-102%);transition:transform .18s ease}
  .tk-rail--open{transform:none}
}
@media (prefers-reduced-motion:reduce){.tk-rail{transition:none}}

/* Avatars on both sides, and the thinking fold. 10 Sep 2026, Jason: "she does
   not have her avatar none of them have there avatars", then "still no avatars
   and messy" when they were there but drawn as a faint outline you had to look
   for. An avatar reads as an avatar when it is SOLID and it is big enough, so
   these are filled discs at 30px, his is his real photo, and the bot mark sits
   on the brand orange rather than a 18% tint of it. */
.tk-msg{align-items:flex-end;gap:9px}
.tk-msg .tk-avatar{flex:0 0 auto;width:30px;height:30px;font-size:13px;
  margin-bottom:2px;border-radius:50%;overflow:hidden}
.tk-avatar--bot{background:var(--orange);color:var(--bg);font-weight:700;border:0}
img.tk-avatar--me{object-fit:cover;border:1px solid var(--faint)}
span.tk-avatar--me{background:var(--panel-2);color:var(--ink);
  border:1px solid var(--faint);font-weight:700}
.tk-think{margin:0;max-width:none}
.tk-think summary .tk-ran__n{color:var(--dim)}
/* the machine-detail toggle in the header */
.tk-alt#tkDetail{background:none;border:0;cursor:pointer;font:inherit;
  color:var(--ink);opacity:.5;margin-left:auto;padding:0}
.tk-alt#tkDetail.on{opacity:1;color:var(--orange)}
.tk-alt#tkDetail + .tk-alt{margin-left:14px}

/* The drawn seat characters, and thinking the way Claude shows it. 10 Sep 2026:
   "still missing the nice avatars you made for the old terminal chats" and
   "the thinking shoukd be like something like claude or gpt does no?". */
.tk-face{border-radius:50%;object-fit:cover;flex:0 0 auto;
  background:var(--panel-2);border:1px solid var(--faint)}
.tk-face--msg{width:32px;height:32px;margin-bottom:2px}
.tk-face--row{width:30px;height:30px}
.tk-face--head{width:30px;height:30px}
/* Not a message: no bubble, no avatar, no side. A quiet line you can open. */
.tk-thought{align-self:flex-start;max-width:88%;margin:2px 0 2px 41px}
.tk-thought summary{cursor:pointer;list-style:none;font-size:12.5px;
  color:var(--dim);padding:3px 0;display:inline-flex;align-items:center;gap:6px}
.tk-thought summary::-webkit-details-marker{display:none}
.tk-thought summary::before{content:"\203a";display:inline-block;
  transition:transform .12s ease;font-size:15px;line-height:1}
.tk-thought[open] summary::before{transform:rotate(90deg)}
.tk-thought__b{border-left:2px solid var(--faint);padding:2px 0 2px 12px;
  margin:4px 0 8px 5px}
.tk-thought__b p{margin:0 0 7px;font-size:13px;line-height:1.6;color:var(--dim)}
.tk-thought__b p:last-child{margin-bottom:0}
@media (prefers-reduced-motion:reduce){.tk-thought summary::before{transition:none}}

/* Markdown inside a chat bubble. The bots write fenced blocks and **bold**;
   unrendered it was punctuation soup. 11 Sep 2026, terminal-chat audit. */
.tk-code{margin:8px 0 2px;padding:9px 11px;border-radius:9px;font-size:12.5px;
  line-height:1.55;overflow-x:auto;white-space:pre;background:var(--bg);
  border:1px solid var(--faint);color:var(--ink)}
.tk-inline{padding:1px 5px;border-radius:5px;font-size:.92em;
  background:var(--bg);border:1px solid var(--faint)}
.tk-bub strong{font-weight:700;color:#fff}

/* Business log, /office/log/ (8 Oct 2026): one line per row, the note input is the ONE input */
.sd-log .sd-appbar{flex-wrap:wrap}
.sd-log__add{margin:10px 0 16px}
.sd-log__day{margin:18px 0 6px;padding-bottom:4px;border-bottom:1px solid var(--border)}
.sd-log__row{display:grid;grid-template-columns:132px minmax(180px,1.2fr) minmax(200px,1.6fr) auto;gap:8px;align-items:center;
  padding:6px 0;border-top:1px solid var(--border)}
.sd-log__row--hidden{opacity:.55}
.sd-log__src{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sd-log__title{font-weight:600;color:var(--ink);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sd-log__title .sd-meta{font-weight:400}
.sd-log__note{min-height:32px}
.sd-log__acts{display:inline-flex;gap:4px}
.sd-log__acts .btn{min-height:32px}
.sd-log .sd-tabs a.is-on{border-color:var(--cyan);color:var(--cyan)}
@media (max-width:720px){
  .sd-log__row{grid-template-columns:1fr 1fr}
  .sd-log__src{grid-column:1/2}.sd-log__title{grid-column:1/3;white-space:normal}
  .sd-log__note{grid-column:1/3}.sd-log__acts{grid-column:1/3}
}
.sd-log__sec{display:block}
.sd-log__row{width:100%;max-width:100%;box-sizing:border-box}
.sd-log__row *{box-sizing:border-box;min-width:0}
/* Ask page, /mail/ask/ (8 Oct 2026): the crew compose on the gates */
.sd-ask .sd-card{margin-bottom:10px}
.sd-ask label.sd-meta{display:block;margin:8px 0 3px}
.sd-ask .sd-in{width:100%}
.sd-ask select.sd-in{min-height:36px}
.sd-ask__recent div{padding:2px 0}
.sd-ask__body{min-height:220px}
/* Waiting page, /office/waiting/ (8 Oct 2026): cards, not terminal text */
.sd-waiting__h{margin:18px 0 8px;padding-bottom:4px;border-bottom:1px solid var(--border)}
.sd-waiting__row{display:flex;gap:12px;align-items:flex-start;margin-bottom:6px;padding:10px 12px}
.sd-waiting__days{flex:0 0 92px;font-size:14px;color:var(--ink);line-height:1.3}
.sd-waiting__main{min-width:0;flex:1}
.sd-waiting__who{font-weight:600;color:var(--ink);overflow-wrap:anywhere}
.sd-waiting__main .sd-meta{overflow-wrap:anywhere}
.sd-waiting__link{text-decoration:none;color:inherit}
@media (max-width:720px){.sd-waiting__days{flex-basis:70px;font-size:13px}}
.sd-waiting .sd-card,.sd-waiting .sd-tabs{box-sizing:border-box;max-width:100%}
.sd-waiting{overflow-x:clip}
/* Waiting page, focus layout (8 Oct 2026, Jason: "too much on page for my adhd") */
.sd-waiting__focus{padding:18px 16px;margin:8px 0 14px}
.sd-waiting__focus-who{margin:6px 0 8px;overflow-wrap:anywhere}
.sd-waiting__focus .sd-row{margin-top:12px}
.sd-waiting__sec{margin-bottom:8px;padding:12px 14px;display:block}
.sd-waiting__sec summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center}
.sd-waiting__sec summary::-webkit-details-marker{display:none}
.sd-waiting__sec summary::after{content:'+';color:var(--dim);font-size:18px}
.sd-waiting__sec[open] summary::after{content:'−'}
.sd-waiting__sec[open] summary{margin-bottom:8px}
.sd-waiting__sec .sd-waiting__row{padding:8px 0;border-top:1px solid var(--border)}
.sd-waiting__foot{margin-top:16px}
/* Waiting page, calmer (8 Oct 2026, Jason: "not pleasant on eyes") */
.sd-waiting .sd-appbar{padding-bottom:4px}
.sd-waiting__focus{border-left:3px solid var(--gold);padding:14px 16px;margin:4px 0 12px}
.sd-waiting__focus-who{margin:2px 0 6px;letter-spacing:0;font-size:16px}
.sd-waiting__focus .sd-body{line-height:1.5}
.sd-waiting__focus .sd-row{margin-top:10px;gap:8px}
.sd-waiting__sec{padding:11px 14px;margin-bottom:6px}
.sd-waiting__sec summary{letter-spacing:0}
.sd-waiting__sec summary b{display:inline-block;min-width:34px;color:var(--gold);font-variant-numeric:tabular-nums}
.sd-waiting__sec summary::after{font-size:16px;opacity:.7}
.sd-waiting__link{display:flex;justify-content:space-between;align-items:center}
.sd-waiting__link b{display:inline-block;min-width:34px;color:var(--gold)}
.sd-waiting__chev{color:var(--dim);font-size:18px}
.sd-waiting__foot{font-size:12px}
/* Roster, /radar/roster/ (8 Oct 2026) */
.sd-roster__search{margin:6px 0 10px}
.sd-roster__row{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;padding:10px 12px;margin-bottom:6px}
.sd-roster__main{min-width:0;flex:1}
.sd-roster__name{font-weight:600;color:var(--ink)}
.sd-roster__name .sd-chip{margin-left:6px;vertical-align:middle}
.sd-roster__acts{display:flex;gap:6px;flex:none}
.sd-roster__add{margin-top:12px}
.sd-roster__add summary{cursor:pointer}
.sd-roster__add .sd-row{margin-top:8px}
.sd-roster__add .sd-in{min-width:0}
.sd-roster .sd-tabs a.is-on{border-color:var(--cyan);color:var(--cyan)}
@media (max-width:720px){.sd-roster__row{flex-direction:column}.sd-roster__acts{align-self:flex-start}}
/* WhatsApp intake, /office/chat/ (8 Oct 2026) */
.sd-chat .sd-card{margin-bottom:8px}
.sd-chat label.sd-meta{display:block;margin:8px 0 3px}
.sd-chat__text{width:100%}
.sd-chat__h{margin:16px 0 8px}
.sd-chat__row{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;padding:10px 12px}
.sd-chat__main{min-width:0;flex:1}
.sd-chat__who{font-weight:600;color:var(--ink)}
.sd-chat__desc{white-space:normal;overflow-wrap:anywhere;max-height:9em;overflow:auto}
.sd-chat__acts{flex:none}
.sd-chat .sd-card,.sd-chat .sd-in{box-sizing:border-box;max-width:100%}
.sd-chat{overflow-x:clip}
/* Challenge nudge list (8 Oct 2026) */
.sd-nudge{margin:14px 0}
.sd-nudge .sd-table td,.sd-nudge .sd-table th{padding:5px 8px}
.sd-nudge .sd-table{overflow-wrap:anywhere}
@media (max-width:720px){.sd-nudge .sd-table th:nth-child(4),.sd-nudge .sd-table td:nth-child(4){display:none}}
/* Stardust 2026 speaker board (8 Oct 2026) */
.sd-board__table td,.sd-board__table th{padding:7px 8px;vertical-align:top}
.sd-board__gap td:first-child{border-left:3px solid var(--gold)}
.sd-board__ok td:first-child{border-left:3px solid var(--ok)}
@media (max-width:720px){.sd-board__table th:nth-child(7),.sd-board__table td:nth-child(7){display:none}.sd-board{overflow-x:auto}}
.sd-board{overflow-x:clip}.sd-board .sd-table{width:100%;table-layout:auto;box-sizing:border-box}
/* Promises, /office/promises/ (8 Oct 2026) */
.sd-prom{overflow-x:clip}
.sd-prom .sd-card,.sd-prom .sd-tabs{box-sizing:border-box;max-width:100%}
.sd-prom__row{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;padding:10px 12px;margin-bottom:6px}
.sd-prom__main{min-width:0;flex:1}
.sd-prom__who{font-weight:600;color:var(--ink);overflow-wrap:anywhere}
.sd-prom__main .sd-meta{overflow-wrap:anywhere}
.sd-prom__acts{display:flex;gap:6px;align-items:center;flex:none;flex-wrap:wrap}
.sd-prom .sd-tabs a.is-on{border-color:var(--cyan);color:var(--cyan)}
@media (max-width:720px){.sd-prom__row{flex-direction:column}}
.sd-ask__attach label.sd-meta{display:block;margin:2px 0}
/* Replies and Numbers pages (8 Oct 2026) */
.sd-rep,.sd-num-page{overflow-x:clip}
.sd-rep .sd-card,.sd-num-page .sd-card,.sd-rep .sd-tabs{box-sizing:border-box;max-width:100%}
.sd-rep__row{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;padding:10px 12px;margin-bottom:6px}
.sd-rep__main{min-width:0;flex:1}.sd-rep__who{font-weight:600;color:var(--ink);overflow-wrap:anywhere}.sd-rep__main .sd-meta{overflow-wrap:anywhere}
.sd-rep__acts{display:flex;gap:6px;flex:none}
.sd-rep .sd-tabs a.is-on{border-color:var(--cyan);color:var(--cyan)}
.sd-num-page__row{margin-bottom:8px}.sd-num-page__row .sd-strong{margin:4px 0}
@media (max-width:720px){.sd-rep__row{flex-direction:column}}
/* Dates page (8 Oct 2026) */
.sd-dates{overflow-x:clip}.sd-dates .sd-card{box-sizing:border-box;max-width:100%}
.sd-dates__row{display:flex;gap:14px;align-items:flex-start;padding:10px 12px;margin-bottom:6px}
.sd-dates__when{flex:0 0 64px;text-align:center}.sd-dates__when .sd-num{display:block;font-size:20px;color:var(--gold)}
.sd-dates__main{min-width:0;flex:1}.sd-dates__label{font-weight:600;color:var(--ink)}
.sd-dates__past summary{cursor:pointer}
.sd-page--narrow,.sd-page{overflow-x:clip}
.sd-tabs{box-sizing:border-box;max-width:100%}
/* Decisions and Changes pages (8 Oct 2026) */
.sd-dec__card{padding:14px 16px;margin-bottom:8px}.sd-dec__q{margin-bottom:6px}.sd-dec__why{white-space:normal;max-height:8em;overflow:auto;margin-bottom:8px}
.sd-dec__card .sd-in{width:100%;margin:6px 0}.sd-dec__acts{gap:8px}.sd-dec__done summary{cursor:pointer}
.sd-chg__h{margin:16px 0 6px}
.sd-chg__row{display:grid;grid-template-columns:120px minmax(120px,1fr) minmax(160px,2fr);gap:10px;align-items:baseline;padding:8px 12px;margin-bottom:4px}
.sd-chg__at{font-variant-numeric:tabular-nums}.sd-chg__why{overflow-wrap:anywhere}
@media (max-width:720px){.sd-chg__row{grid-template-columns:1fr}}
.sd-chg__row--h{grid-template-columns:1fr auto}
/* speaker flow strip and WhatsApp screenshot row (8 Oct 2026) */
.sd-board__flow{margin:8px 0 12px;padding:12px 16px}.sd-board__steps{display:flex;gap:18px;flex-wrap:wrap;margin:6px 0}
.sd-board__step{display:flex;flex-direction:column;min-width:70px}.sd-board__step b{font-size:20px;line-height:1.1}
.sd-board__strip{display:flex;gap:3px;margin-top:4px}.sd-board__strip i{display:block;width:14px;height:5px;border-radius:2px;background:var(--faint)}.sd-board__strip i.on{background:var(--ok)}
.sd-chat__shot{margin:6px 0 2px}
/* Brief page (8 Oct 2026) */
.sd-brief__h{margin:18px 0 6px;display:flex;gap:10px;align-items:baseline}.sd-brief__h a{text-decoration:none}
.sd-brief__one{padding:16px 18px}.sd-brief__why{margin:6px 0 10px}
.sd-brief__row{display:grid;grid-template-columns:96px 1fr auto;gap:10px;align-items:center;padding:8px 12px;margin-bottom:4px}
.sd-brief__at{font-variant-numeric:tabular-nums;white-space:nowrap}
@media (max-width:720px){.sd-brief__row{grid-template-columns:1fr auto}.sd-brief__at{grid-column:1/-1}}
.sd-rep__small{gap:8px;margin-top:6px;flex-wrap:wrap}.sd-rep__small form{gap:4px;align-items:center}.sd-in--xs{padding:3px 6px;font-size:12px;width:auto;min-height:26px}.sd-in--xs option{font-size:12px}
.sd-rep__owners{margin-bottom:8px}.sd-brief__split{margin:-2px 0 8px}.sd-brief__split a{text-decoration:none}
.sd-board__acts{white-space:nowrap}
/* portals, scorecard, waiting new badge (8 Oct 2026) */
.sd-portals__row{display:flex;gap:12px;align-items:center;padding:10px 14px;margin-bottom:6px}.sd-portals__main{flex:1;min-width:0}.sd-portals__acts{display:flex;gap:6px;white-space:nowrap}
@media (max-width:720px){.sd-portals__row{flex-direction:column;align-items:flex-start}}
.sd-score__table td,.sd-score__table th{padding:7px 8px;text-align:right}.sd-score__table td:first-child,.sd-score__table th:first-child{text-align:left}.sd-score__bad td:first-child{border-left:3px solid var(--red)}
.sd-score__line{margin:6px 0 10px}.sd-score{overflow-x:auto}
.sd-waiting__new{color:var(--ok);margin-left:6px}
.sd-chat__rk{margin-top:10px}.sd-chat__reply{width:100%;margin:6px 0 8px;white-space:pre-wrap}
/* pipeline (8 Oct 2026) */
.sd-pipe__tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;margin-bottom:10px}.sd-pipe__tile{display:flex;flex-direction:column;gap:4px;padding:14px 16px;text-decoration:none;color:inherit}
.sd-pipe__money{padding:14px 16px;margin-bottom:6px}.sd-pipe__h{margin:18px 0 6px}
.sd-pipe__row{display:grid;grid-template-columns:110px 1fr auto;gap:10px;align-items:center;padding:8px 12px;margin-bottom:4px}.sd-pipe__at{font-variant-numeric:tabular-nums;white-space:nowrap}
.sd-pipe__fund{display:flex;gap:12px;align-items:flex-start;padding:10px 14px;margin-bottom:6px;text-decoration:none;color:inherit}.sd-pipe__fund-main{flex:1;min-width:0}.sd-pipe__fund-side{display:flex;flex-direction:column;gap:4px;align-items:flex-end;white-space:nowrap}
.sd-pipe__pros{display:flex;gap:12px;align-items:center;padding:10px 14px;margin-bottom:6px}.sd-pipe__pros-main{flex:1;min-width:0}.sd-pipe__act{gap:6px;flex-wrap:wrap}.sd-pipe__chips{gap:6px;flex-wrap:wrap;margin-bottom:8px}
.sd-card--quiet{opacity:.7}.sd-chip{display:inline-block;font-size:12px;padding:2px 8px;border-radius:10px;border:1px solid var(--faint);color:var(--dim)}
@media (max-width:720px){.sd-pipe__row{grid-template-columns:1fr auto}.sd-pipe__at{grid-column:1/-1}.sd-pipe__fund,.sd-pipe__pros{flex-direction:column;align-items:flex-start}.sd-pipe__fund-side{flex-direction:row;flex-wrap:wrap;align-items:flex-start}}

/* ── THE MUSIC STUDIO (22 Oct 2026) ──────────────────────────────────────
   Jason asked where Zain could find the sovereign audio studio. It had no
   page at all. Tokens only, no hardcoded colour, per stardust_mc/CLAUDE.md. */
.ms-wrap { max-width: 900px; margin: 0 auto; }
.ms-lede { font-size: 12px; color: var(--ink); line-height: 1.6; margin-bottom: 14px; }
.ms-note { font-size:12px; padding: 10px 13px; border-radius: 6px; margin-bottom: 12px; }
.ms-note--ok { color: var(--ok, #7bd4a8); border: 1px solid var(--ok, #7bd4a8); }
.ms-note--bad { color: var(--bad, #e8887e); border: 1px solid var(--bad, #e8887e); }
.ms-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.ms-stat { padding: 11px 13px; border-radius: 6px; background: var(--panel); }
.ms-stat b { display: block; font-size: 20px; color: var(--ink); line-height: 1.2; }
.ms-stat span { font-size:12px; letter-spacing: 1px; color: var(--dim); }
.ms-form { padding: 14px 16px; margin-bottom: 16px; }
.ms-form .input { width: 100%; font-size: 12px; margin-bottom: 8px; }
.ms-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; }
.ms-row .input { margin-bottom: 8px; }
.ms-cut { padding: 12px 15px; margin-bottom: 8px; }
.ms-cut-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.ms-cut-h b { font-size: 13px; color: var(--ink); }
.ms-meta { font-size:12px; color: var(--dim); }
.ms-credit { font-size:12px; color: var(--gold, #f5d061); margin-top: 6px; }
.ms-audio { width: 100%; margin-top: 9px; }
.ms-empty { padding: 18px; font-size: 12px; color: var(--dim); line-height: 1.6; }
@media (max-width: 700px) {
  .ms-stats { grid-template-columns: repeat(2, 1fr); }
  .ms-row { grid-template-columns: 1fr; }
  /* NOTHING UNDER 12px ON A PHONE. shot.py counted 15 elements here and
     refused the page, which is the check doing exactly its job. The small
     sizes are fine on a 1440 desktop and unreadable in a hand. */
  .ms-stat span, .ms-meta, .ms-credit { font-size: 12px; }
  .ms-note { font-size: 12.5px; }
  .ms-lede { font-size: 12.5px; }
}

/* 27 Oct 2026, /watchtower/lessons/: a <pre class="sd-code"> clipped every long TRUE line at the card edge. One modifier, no inline style. */
.sd-code--wrap{white-space:pre-wrap;word-break:break-word}

/* ── NEXUS CHROME, 4 Nov 2026 (Build #126) ────────────────────────────────────
   The one nav base_nexus.html draws. Tokens only, so it follows the theme; the
   phone rule from command-ui.css applies (no chrome over 52px, links in one
   swipeable lane). Earned a class because every Nexus shell needs it. */
.nx-body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--fu);font-size:13.5px;line-height:1.55;min-height:100vh}
.nx-nav{position:sticky;top:0;z-index:100;height:var(--nav-h);display:flex;align-items:center;gap:14px;padding:0 16px;
  background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border)}
.nx-brand{display:flex;align-items:center;gap:9px;text-decoration:none;flex:none}
.nx-brand__mark{width:24px;height:auto}
.nx-brand__name{font-family:var(--fh);font-size:11.5px;font-weight:900;letter-spacing:2px;color:var(--orange)}
.nx-nav__links{display:flex;align-items:center;gap:2px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none}
.nx-nav__link{color:var(--dim);text-decoration:none;padding:7px 11px;border-radius:var(--radius-sm);font-size:12.5px;letter-spacing:.4px;white-space:nowrap}
.nx-nav__link:hover{color:var(--ink);background:var(--panel-2)}
.nx-nav__link.is-on{color:var(--orange);background:color-mix(in srgb,var(--orange) 12%,transparent)}
.nx-nav__end{display:flex;align-items:center;gap:8px;flex:none}
.nx-ibtn{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);
  border:1px solid var(--faint);background:transparent;color:var(--dim);cursor:pointer}
.nx-ibtn:hover{color:var(--ink);border-color:var(--border)}
.nx-ibtn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nx-nav__me{display:flex;align-items:center;gap:8px}
@media (max-width:640px){.nx-brand__name{display:none}.nx-nav{gap:8px;padding:0 10px}}

/* ── THE PHONE DIET FOR THE INJECTED NAV, 4 Nov 2026 (Build #126) ────────────
   nav_avatar.js injects MISSION/CREW/OFFICE... buttons, a search box, quick-action
   buttons and the avatar into every Nexus nav, then wraps the lot on phones: the
   dashboard rendered at 390 px spent ~210 px of 844 on chrome (looked at). Command's
   rule (command-ui.css, 27 Aug): give content the screen. Same hooks it injects. */
@media (max-width:700px){
  html body nav input{display:none!important}
  html body nav #pwa-install-btn{display:none!important}
  html body nav .asc-clock, html body nav #clk{display:none!important}
  html body nav .asc-nav__left, html body nav #asc-nav-links{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;max-width:100%}
  html body nav .asc-nav__left::-webkit-scrollbar{display:none}
  html body nav .nav-top-btn{padding:5px 9px!important;font-size:12px!important;white-space:nowrap}
  html body nav #nav-quick-btns{gap:4px!important;margin-right:0!important}
  html body nav{row-gap:4px!important;padding:4px 8px!important}
}
/* v2 of the diet, after looking at the 390 px render (nav 174 px, three rows): the injected
   `html body nav div{flex-wrap:wrap!important}` wins by arriving later, so this is one notch
   more specific. One row: brand + a swipe lane of section buttons, quick buttons + avatar right. */
@media (max-width:700px){
  html body nav.asc-nav{flex-wrap:nowrap!important;gap:6px!important;height:52px!important;min-height:52px}
  html body nav.asc-nav > div{flex-wrap:nowrap!important;min-width:0}
  html body nav.asc-nav .asc-logo__name{display:none}
  html body nav.asc-nav .asc-nav__right{flex:none;gap:4px!important}
  html body nav.asc-nav #nav-quick-btns > *:nth-child(n+4){display:none!important}
}
/* THE TYPE FLOOR REACHES THE INJECTED NAV TOO. Measured on the 1440 px render after everything
   else was lifted: the only sub-12 px text left on the dashboard was nav_avatar.js's own
   inline `font-size:9px` on the section buttons and 10 px on the quick buttons (a.nav-top-btn@9
   x6, button.nav-q-btn@10). Inline beats a sheet, so !important is the honest tool here. */
html body nav .nav-top-btn{font-size:12px!important}
html body nav .nav-q-btn{font-size:12px!important}
/* v3 of the phone diet, after the LIVE xp page on a phone showed the three-row nav again: v2
   only reached nav.asc-nav (the dashboard). Every injected nav carries #nav-quick-btns, and
   :has() lets the rule outrank the injected `html body nav div{flex-wrap:wrap!important}`. */
@media (max-width:700px){
  html body nav:has(#nav-quick-btns){flex-wrap:nowrap!important;gap:6px!important;height:52px!important;min-height:52px;overflow:hidden}
  html body nav:has(#nav-quick-btns) > div{flex-wrap:nowrap!important;min-width:0}
  html body nav:has(#nav-quick-btns) > div:first-child{flex:1;overflow-x:auto;scrollbar-width:none}
  html body nav:has(#nav-quick-btns) #nav-quick-btns > *:nth-child(n+4){display:none!important}
  html body nav:has(#nav-quick-btns) #nav-avatar-wrap{gap:4px!important}
}
.nx-ibtn--float{position:fixed;left:14px;bottom:14px;z-index:900;background:var(--panel);border-color:var(--border);box-shadow:0 2px 8px rgba(0,0,0,.25)}
/* ── PHONES: ROWS WRAP, PANELS FIT. 4 Nov 2026, from the fifth-pass sweep ──────────────────
   12 of 42 sampled pages overflowed sideways at 390 px, and the pattern was one of two things:
   an inline `display:flex` row of buttons or chips (docs toolbar 409 px, the meal and type
   buttons, the emotion buttons), or two or three `.panel`s of 280-320 px laid side by side
   (crew/<id>, theia room, theia science - the same shape as the HUD). The nav rows keep their
   own nowrap rules above, which are more specific. Spreadsheets, maps and canvases are meant
   to scroll and are not touched here. */
@media (max-width:700px){
  html body [style*="display:flex"]:not(nav):not(nav *){flex-wrap:wrap}
  html body .panel{max-width:100%!important;min-width:0!important;box-sizing:border-box}
  html body div:has(> .panel + .panel){flex-wrap:wrap!important}
}
/* the quick buttons, wherever the shared script put them (the cowork room has no <nav>, so the
   nav rules above never reached it and the row ran 349 px): three on a phone, the rest hidden */
@media (max-width:700px){html body #nav-quick-btns > *:nth-child(n+4){display:none!important} html body #nav-quick-btns{flex-wrap:nowrap!important}}
/* ── LIGHT MODE AND THE INJECTED SECTION BUTTONS, 4 Nov 2026 ──────────────────────────────
   nav_avatar.js colours MISSION/CREW/.../TRAINING with its own inline palette (TRAINING is
   #ffcc00): on a light page that is yellow on cream and was the one near-white element left on
   six otherwise clean pages. In light the label takes the ink; the group colour stays on the
   border, which is where it was carrying the meaning anyway. */
html:root[data-theme="light"] body .nav-top-btn{color:var(--ink)!important}
/* the section buttons' row is a plain div on pages without a <nav> (docs): one swipe lane */
@media (max-width:700px){
  html body div:has(> .nav-top-btn){flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;max-width:100%;min-width:0}
  html body div:has(> .nav-top-btn)::-webkit-scrollbar{display:none}
}
/* the section buttons sit in a wrapper each on some pages (docs): reach the row either way */
@media (max-width:700px){
  html body div:has(> div > .nav-top-btn){flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;max-width:100%;min-width:0}
}
/* ── THE LOGO, 5 Nov 2026 (Jason: "audit estate with command system logos and fix nexus logo") ──
   Nexus had been loading the 3909x1266 wordmark (the same file as Command's img/logo.png) into a
   30 px slot on 45 pages - a 4-megapixel PNG squeezed to a smudge, white, so invisible on light.
   Command's system is a 271x88 PAIR, logo-nav.png on dark and logo-nav-dark.png on light, swapped
   by the theme; Nexus now carries the same pair at the same height, and the small slots carry the
   recorded product mark (the favicon triangle, odyssey/static/img/v2/logo-badge.png, trimmed). */
.nx-logo{height:28px;width:auto;display:block}
.nx-logo--light{display:none}
html:root[data-theme="light"] .nx-logo--dark{display:none}
html:root[data-theme="light"] .nx-logo--light{display:block}
.nx-brand__name{margin-left:2px}
@media (max-width:640px){.nx-brand__name{display:inline}.nx-logo{height:22px}}
