/* ============================================================
   PREDICTION — tokens.css
   THE ONE STYLE SOURCE. Lifted :root vars + reset + shared
   element/utility classes. No surface owns global styles;
   surface-specific CSS lives inside each surface module's own
   stylesheet block (added via ctx helpers) or a <surface>/ folder.
   Light / Apple / Harvey aesthetic. Offline, system fonts only.
   ============================================================ */

:root{
  /* canvas + surfaces */
  --canvas:#FBFBF9;
  --panel:#FFFFFF;
  --panel-2:#F8F7F4;
  --hair:#ECEBE7;
  --hair-2:#E4E3DE;
  --hair-3:#D8D7D1;
  /* ink */
  --ink:#1B1B19;
  --ink-2:#6A6A64;
  --ink-3:#9B9B94;
  --ink-4:#BDBCB5;
  /* accent: monochrome-ink. Color is reserved for SEMANTICS only
     (gate=red, review=orange, operations tiers, classification) — no
     generic indigo/blue accent (the #1 AI-slop tell). */
  --accent:#1B1B19;
  --accent-soft:#EFEDE6;
  --chip:#F4F3EF;
  --chip-hi:#ECEAE4;
  /* DISCIPLINE: gate = red (blocking), review = orange (advisory). Do not swap. */
  --gate:#D24141;
  --gate-soft:#FAE9E9;
  --review:#E0792B;
  --review-soft:#FBEEE2;
  /* operations tiers (GREEN/YELLOW/ORANGE/RED) */
  --green:#2E9E5B;
  --yellow:#D8A413;
  --orange:#E0792B;
  --red:#D24141;
  --green-soft:#E9F5EE;
  --yellow-soft:#FAF3DD;
  --orange-soft:#FBEEE2;
  --red-soft:#FAE9E9;
  /* readable ink-on-soft + soft-hover companions (used by surfaces; token-first) */
  --yellow-ink:#9A7D12;
  --review-soft-hi:#F8E3D2;
  /* guard/field severity semantics (PR#1 vocabulary — shared operator+guard) */
  --guard-severity-crit:#D24141;
  --guard-severity-crit-soft:#F9E8E8;
  --guard-severity-high:#E0792B;
  --guard-severity-high-soft:#FBEFE3;
  --guard-severity-mod:#6D7A7A;
  --guard-severity-mod-soft:#EEF2F2;
  /* type */
  --serif:"Iowan Old Style","Palatino Linotype","Book Antiqua",Palatino,Georgia,ui-serif,serif;
  --sans:ui-sans-serif,-apple-system,"SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  /* shadow + motion */
  --sh:0 1px 2px rgba(20,20,19,.04), 0 2px 8px rgba(20,20,19,.05);
  --sh-lg:0 4px 14px rgba(20,20,19,.08), 0 12px 40px rgba(20,20,19,.10);
  --ease:cubic-bezier(.2,.8,.2,1);
}

/* ============================================================
   PREDICTION rebuild tokens (Phase 1a — additive design system).
   Every fix in UI_AUDIT references a token here, never a literal.
   Surfaces/rail/status/pills/bubbles/notifications + 4px spacing
   and radii scales. Color stays mapped onto the existing
   semantic palette above — NO generic indigo/blue accent.
   ============================================================ */
:root{
  /* ---- SURFACES: workspace dominant, rail recessed (fixes A1) ---- */
  --surface-workspace:#FFFFFF;     /* #main — brightest, dominant plane */
  --surface-rail:#F4F2EE;          /* sidebar — clearly recessed, slightly cooler/deeper than --panel-2 */
  --surface-rail-2:#EDEBE5;        /* nested rail sections (Recent/Projects) */
  --surface-raised:#FFFFFF;        /* cards lifted off the workspace, paired with --sh */

  /* ---- STATUS SEMANTICS: green=good / yellow=warn / red=danger (fixes C5,C6,A3,A5) ---- */
  --status-good:var(--green);      /* #2E9E5B — gates cleared, confirm, live/online */
  --status-good-soft:var(--green-soft);
  --status-warn:var(--yellow);     /* #D8A413 — advisory / attention */
  --status-warn-soft:var(--yellow-soft);
  --status-danger:var(--red);      /* #D24141 — blocking gate open, alert */
  --status-danger-soft:var(--red-soft);
  --status-idle:var(--ink-4);      /* #BDBCB5 — neutral/idle dot, NOT a state */
  --status-empty-ink:var(--ink-3); /* "No checks queued" / "Nothing to resolve" — NEVER green */

  /* ---- AGENT-CARD / PLAN STATUS PILLS (fixes E1,E2 + orchestration B3/B4) ---- */
  --pill-queued-bg:var(--chip);        --pill-queued-ink:var(--ink-3);
  --pill-running-bg:var(--accent-soft);--pill-running-ink:var(--ink);   /* pair with vpulse */
  --pill-retry-bg:var(--yellow-soft);  --pill-retry-ink:var(--yellow-ink);
  --pill-done-bg:var(--green-soft);    --pill-done-ink:var(--green);
  --pill-failed-bg:var(--red-soft);    --pill-failed-ink:var(--red);
  --pill-empty-bg:var(--chip);         --pill-empty-ink:var(--ink-3);

  /* ---- SPEECH BUBBLES: conversational / agent-intro turns (fixes E1) ---- */
  --bubble-user-bg:var(--ink);         --bubble-user-ink:#FFFFFF;       /* user, right-aligned */
  --bubble-agent-bg:#FFFFFF;           --bubble-agent-ink:var(--ink);   /* agent, left-aligned, --sh + hairline */
  --bubble-agent-border:var(--hair-2);
  --bubble-radius:14px;
  --bubble-tail:6px;

  /* ---- NOTIFICATION CHANNEL: top-right, present-only (fixes A3,A4) ---- */
  --notif-anchor-top:18px;
  --notif-anchor-right:18px;
  --notif-badge-bg:var(--red);         --notif-badge-ink:#FFFFFF;

  /* ---- SPACING SCALE (replace magic px; 4px base) ---- */
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:24px; --sp-6:32px; --sp-7:48px;

  /* ---- RADII SCALE (match existing 8-10px / subtle-corner discipline) ---- */
  --r-1:6px; --r-2:8px; --r-3:10px; --r-4:14px;
}

/* ---------- reset ---------- */
*{box-sizing:border-box;}
html,body{margin:0;padding:0;height:100%;}
body{
  font-family:var(--sans);
  background:var(--canvas);
  color:var(--ink);
  font-size:14px;line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow:hidden;
}
body.console-correspondence .sb-scroll,body.console-correspondence #sbSearchBtn{display:none!important;}
body.console-correspondence .sb-user{margin-top:auto;}
.corr-chat-divider{height:1px;background:var(--hair-3);margin:13px 10px 11px;}
.corr-chat-label{padding:0 15px 7px;font:9px var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--ink-3);}
.corr-chat-empty{margin:0 10px;padding:10px;border:1px dashed var(--hair-3);border-radius:7px;color:var(--ink-3);}
.corr-chat-empty b,.corr-chat-empty span{display:block}.corr-chat-empty b{font-size:10.5px;color:var(--ink-2)}.corr-chat-empty span{font-size:9.5px;line-height:1.45;margin-top:4px}
.corr-chat-row{width:calc(100% - 20px);margin:2px 10px;padding:7px 8px;border:0;border-radius:6px;background:transparent;color:var(--ink-2);display:grid;grid-template-columns:17px 1fr;gap:7px;text-align:left;cursor:pointer}
.corr-chat-row:hover{background:var(--chip)}.corr-chat-row svg{width:14px;height:14px}.corr-chat-row b,.corr-chat-row small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.corr-chat-row b{font-size:10.5px;font-weight:500}.corr-chat-row small{font-size:9px;color:var(--ink-3);margin-top:2px}
.corr-chat-row.active{background:var(--ink);color:#fff}.corr-chat-row.active small{color:#c9c5bb}
#sidebar.collapsed .corr-chat-divider,#sidebar.collapsed .corr-chat-label,#sidebar.collapsed .corr-chat-empty,#sidebar.collapsed .corr-chat-row{display:none}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit;font-size:inherit;}
input,textarea{font-family:inherit;font-size:inherit;color:inherit;}
/* No blinking text caret on ANY non-editable text (headings, labels, prose).
   caret-color is inherited, so hide it globally and let only real editable
   fields show one. (Browser "caret browsing" otherwise drops a caret wherever
   you click.) */
html{caret-color:transparent;}
input,textarea,[contenteditable]{caret-color:auto;}
/* chrome is navigation, not selectable text */
.classbar,#sidebar,.topbar,.tb-crumb,.nav-item,.sb-section,.sb-new,.proj-item,.thread-item,.console-row,.cube-btn{
  -webkit-user-select:none;user-select:none;}
input,textarea,[contenteditable]{-webkit-user-select:text;user-select:text;}
a{color:var(--accent);text-decoration:none;}
::selection{background:#E7E4DB;}

/* scrollbars — calm */
::-webkit-scrollbar{width:10px;height:10px;}
::-webkit-scrollbar-thumb{background:#E2E1DB;border-radius:8px;border:2px solid var(--canvas);}
::-webkit-scrollbar-thumb:hover{background:#CFCEC7;}
::-webkit-scrollbar-track{background:transparent;}

/* ---------- shared type/utility classes ---------- */
.serif{font-family:var(--serif);}
.sans{font-family:var(--sans);}
.mono{font-family:var(--mono);}
.fade-in{animation:vfade .35s var(--ease);}
@keyframes vfade{from{opacity:0;transform:translateY(3px);}to{opacity:1;transform:none;}}
@keyframes vspin{to{transform:rotate(360deg);}}
@keyframes vpulse{0%,100%{opacity:1;}50%{opacity:.35;}}
@keyframes vslidein{from{opacity:0;transform:translateX(-8px);}to{opacity:1;transform:none;}}

/* ============================================================
   classification banner (slim, tasteful — top + bottom)
   ============================================================ */
.classbar{
  height:22px;flex:0 0 22px;
  display:flex;align-items:center;justify-content:center;
  background:#F3F2EE;border-bottom:1px solid var(--hair-2);
  font-size:10px;letter-spacing:.22em;text-transform:uppercase;
  color:#8A8A82;font-weight:600;
  user-select:none;
}
.classbar.bottom{border-bottom:none;border-top:1px solid var(--hair-2);}
.classbar .dot{width:5px;height:5px;border-radius:50%;background:#B7B6AE;margin:0 9px;}

/* ============================================================
   app frame + shell scaffolding (owned by shell.js markup,
   styled here because tokens.css is the one style source)
   ============================================================ */
#app{height:100%;display:flex;flex-direction:column;}
.frame{flex:1;display:flex;min-height:0;}
#main{flex:1;min-width:0;display:flex;flex-direction:column;background:var(--surface-workspace);}

/* ---------- sidebar ---------- */
#sidebar{
  width:268px;flex:0 0 268px;
  background:var(--surface-rail);
  border-right:1px solid var(--hair-2);
  display:flex;flex-direction:column;min-height:0;
  transition:width .22s var(--ease),flex-basis .22s var(--ease);
}
#sidebar.collapsed{width:60px;flex-basis:60px;}
#sidebar.collapsed .hide-collapsed{display:none !important;}
#sidebar.collapsed .nav-item{justify-content:center;padding:9px 0;}
#sidebar.collapsed .switcher-row{justify-content:center;}
/* Collapsed rail: the 344px mission-consoles popover can't fit under a 60px
   rail, so it flies OUT to the side (anchored to the right edge of the rail,
   aligned with the cube) instead of being clipped off-screen. */

.sb-top{padding:12px 12px 6px;position:relative;transition:padding-top .24s var(--ease);}
.sb-toprow{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:4px;}
/* Concept 03 "Brand-forward (stacked)": PREDICTION in small-caps/letter-spaced
   above a larger serif PREDICTION; cube sits to the left, top-aligned. */
.sb-brand{display:flex;flex-direction:column;line-height:1.12;min-width:0;white-space:nowrap;}
.sb-brand-dim{font-size:9.5px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--ink-3);}
.sb-brand-word{font-family:var(--serif);font-size:19px;font-weight:600;letter-spacing:-.01em;color:var(--ink);}
.sb-brand-word.correspondence{font-size:16px;letter-spacing:-.015em;}
.sb-brandwrap{display:flex;align-items:center;gap:11px;min-width:0;}
/* the lockup is PREDICTION over the active console, centred against the cube */
/* Must fit PROTECTIVE INTELLIGENCE on one line inside the rail. Sized and tracked to the longest console name, not to taste. */
.sb-brand-console{font-size:12px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:var(--ink);line-height:1.2;margin-top:2px;white-space:nowrap;}
.sb-brand-console:empty{display:none;}
.sb-topbtns{display:flex;align-items:center;gap:1px;flex:0 0 auto;}
.collapse-btn.active{background:var(--chip);color:var(--ink);}
.sb-search{margin-top:7px;}
.sb-search-input{width:100%;border:1px solid var(--hair-2);border-radius:8px;background:var(--panel);padding:6px 10px;font-size:12.5px;color:var(--ink);outline:none;font-family:inherit;}
.sb-search-input:focus{border-color:var(--hair-3);}
.sb-search-input::placeholder{color:var(--ink-3);}
/* Collapsed rail: the Collapser button detaches to the TOP-CENTER of the rail
   (absolutely positioned), and the cube + nav icons slide DOWN to make room via
   the .sb-top padding-top transition. Expanding removes the padding and the
   Collapser returns to its header row, so the icons slide back UP. No chevron is
   ever stamped over the cube; the cube is purely the console-switcher brand mark. */
#sidebar.collapsed .sb-top{padding-top:46px;}
#sidebar.collapsed .sb-toprow{justify-content:center;margin-bottom:6px;}
#sidebar.collapsed .sb-topbtns{position:absolute;top:9px;left:0;right:0;justify-content:center;gap:0;}
.switcher-row{display:flex;align-items:center;gap:11px;}
/* the "rubik's cube" 3x3 app-grid switcher trigger */
.cube-btn{
  width:38px;height:38px;flex:0 0 38px;border-radius:10px;
  display:grid;place-items:center;background:var(--panel);
  border:1px solid var(--hair-2);box-shadow:var(--sh);
  transition:background .14s,border-color .14s,box-shadow .14s,transform .1s;
}
.cube-btn:hover{background:var(--chip);border-color:var(--hair-3);}
.cube-btn:active{transform:scale(.96);}
.cube-btn.open{background:var(--ink);border-color:var(--ink);}
.cube-btn.static{cursor:default;box-shadow:none;}
.cube-btn.static:hover{background:var(--panel);border-color:var(--hair-2);}
.cube-btn.static:active{transform:none;}
.cube-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:2.5px;width:18px;height:18px;}
.cube-grid i{display:block;border-radius:1.5px;background:var(--ink-3);transition:background .14s,transform .14s var(--ease);}
.cube-btn:hover .cube-grid i{background:var(--ink-2);}
.cube-btn.open .cube-grid i{background:#fff;}
.cube-grid i.lit{background:var(--ink);}
.cube-btn.open .cube-grid i.lit{background:#c9c8c1;}
/* "P" trace flourish on cube click */
.cube-grid i.p-lit{background:var(--ink)!important;transform:scale(1.3);}
.cube-btn.open .cube-grid i.p-lit{background:#fff!important;}
.switcher-row .sw-text{flex:1;min-width:0;}
.switcher-row .sw-name{font-size:13px;font-weight:600;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.switcher-row .sw-acct{font-size:11px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

.sw-menu{
  /* Anchored to the cube by shell.js positionSwitcher(). It sits at app level
     (a sibling of .frame) rather than inside the rail, because as a child of
     .sb-top it was clipped by the rail's box and could be overpainted by a
     console surface's own positioned content. Fixed + a z-index above every
     in-page layer removes both failure modes. */
  position:fixed;top:0;left:0;width:344px;z-index:560;
  background:var(--panel);border:1px solid var(--hair-2);border-radius:14px;
  box-shadow:var(--sh-lg);padding:7px;
  opacity:0;transform:translateY(-6px) scale(.985);pointer-events:none;
  transition:opacity .16s var(--ease),transform .16s var(--ease);
  max-height:calc(100vh - 24px);overflow-y:auto;
}
.sw-menu.show{opacity:1;transform:none;pointer-events:auto;}
.sw-menu-label{font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3);padding:9px 10px 6px;}
.console-row{
  position:relative;display:flex;align-items:flex-start;gap:11px;padding:11px 10px;border-radius:10px;
  text-align:left;width:100%;transition:background .13s;
}
.console-row:hover:not(.disabled):not(.active){background:var(--panel-2);}
.console-row.active{background:var(--panel-2);box-shadow:inset 0 0 0 1px var(--hair-2);}
.console-row.disabled{opacity:.55;cursor:not-allowed;}
.console-row .cr-glyph{
  width:32px;height:32px;flex:0 0 32px;border-radius:8px;display:grid;place-items:center;
  background:var(--chip);color:var(--ink-2);margin-top:1px;
}
.console-row.active .cr-glyph{background:var(--ink);color:#fff;}
.console-row:hover:not(.disabled):not(.active) .cr-glyph{background:var(--chip-hi);}
.console-row .cr-glyph svg{width:16px;height:16px;}
.console-row .cr-text{flex:1;min-width:0;}
.cr-name{font-size:13px;font-weight:600;display:flex;align-items:center;gap:7px;flex-wrap:wrap;}
.cr-desc{font-size:11.5px;color:var(--ink-3);line-height:1.38;margin-top:2px;}
.cr-go{flex:0 0 16px;color:var(--ink-4);align-self:center;opacity:0;transition:opacity .13s,transform .13s var(--ease);}
.cr-go svg{width:16px;height:16px;}
.console-row:hover:not(.disabled):not(.active) .cr-go{opacity:1;transform:translateX(2px);}
.cr-posture{font-size:8.5px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;border-radius:4px;padding:1px 5px;}
.cr-posture.tac{color:var(--orange);background:var(--orange-soft);}
.cr-posture.str{color:var(--accent);background:var(--accent-soft);}
.tag-na{font-size:9px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);border:1px solid var(--hair-3);border-radius:5px;padding:1px 5px;}
.tag-on{font-size:9px;letter-spacing:.06em;text-transform:uppercase;color:var(--green);background:var(--green-soft);border-radius:5px;padding:1px 6px;}
.sw-foot{font-size:11px;color:var(--ink-3);line-height:1.45;padding:10px 11px 6px;border-top:1px solid var(--hair);margin-top:5px;display:flex;align-items:flex-start;gap:8px;}
.sw-foot svg{width:13px;height:13px;flex:0 0 13px;color:var(--ink-4);margin-top:1px;}
.sw-foot b{color:var(--ink-2);font-weight:600;}

.sb-new{
  margin:10px 12px 4px;display:flex;align-items:center;gap:9px;justify-content:center;
  padding:9px;border-radius:10px;background:var(--ink);color:#fff;font-size:13px;font-weight:550;
  transition:transform .12s var(--ease),opacity .15s;
}
.sb-new:hover{opacity:.9;}
/* A seat that cannot create a tasker does not carry the control. */
.sb-new[hidden]{display:none !important;}

/* ── the rail masthead ────────────────────────────────────────────────────
   Two names belong here and nowhere else: the product, and the command whose
   desk this is. The working surface to the right names the tasker instead. */
.sb-brand{display:flex;flex-direction:column;gap:1px;min-width:0}
.sb-brand-dim{font-family:"IBM Plex Mono",ui-monospace,Menlo,monospace;
  font-size:10.5px;letter-spacing:.26em;text-transform:uppercase;font-weight:600;color:#8C8A82;line-height:1.1}
.sb-brand-org{font-family:"IBM Plex Mono",ui-monospace,Menlo,monospace;
  font-size:17px;letter-spacing:.15em;font-weight:600;color:#1B1B19;line-height:1.1;margin-top:4px}
.sb-brand-word.correspondence{font-family:"Newsreader",Georgia,serif;font-size:16px;font-weight:500;
  letter-spacing:-.004em;color:#5C5C57;line-height:1.15;margin-top:0}
/* Two surfaces write 'PREDICTION' straight back into this element, and an id-scoped
   `#sidebar .sb-brand-word{display:flex}` outranks the [hidden] default. The
   wordmark is retired outside the correspondence desk, so hold it closed here
   whatever else sets on it. */
#sidebar .sb-brand-word[hidden],.sb-brand-word[hidden]{display:none!important}
/* PREDICTION is the whole lockup, in every console, so it is set as the
   wordmark rather than as a kicker over one. */
.sb-brand-dim{font-size:14.5px;letter-spacing:.2em;color:var(--ink);line-height:1.25;}
#sidebar .sb-brand-org[hidden],.sb-brand-org[hidden]{display:none!important}

/* ── the module super-nav ─────────────────────────────────────────────────
   Every module this account holds, always visible, current one marked. The
   console's own destinations sit below it as a subnav. */
.sb-modules{padding:8px 12px 0;display:flex;flex-direction:column;gap:1px;}
.sb-module{
  display:flex;align-items:center;gap:11px;width:100%;text-align:left;
  padding:7px 10px;border-radius:8px;font-size:13px;font-weight:550;
  color:var(--ink-2);transition:background .12s,color .12s;
}
.sb-module:hover{background:var(--chip);color:var(--ink);}
.sb-module.active{background:var(--panel);color:var(--ink);font-weight:600;
  box-shadow:0 1px 2px rgba(20,20,19,.05),inset 0 0 0 1px var(--hair-2);}
.sbm-glyph{width:17px;height:17px;flex:0 0 17px;display:grid;place-items:center;color:var(--ink-3);}
.sb-module.active .sbm-glyph{color:var(--ink);}
.sbm-glyph svg{width:17px;height:17px;}
.sbm-label{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
#sidebar.collapsed .sb-modules{padding:8px 11px 0;}
#sidebar.collapsed .sb-module{justify-content:center;padding:8px 0;}

/* the hairline + module name that makes the console nav read as a subnav */
.sb-subnav-head{
  margin:10px 12px 0;padding:9px 10px 0;border-top:1px solid var(--hair-2);
  font-family:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;
  font-size:8.5px;letter-spacing:.17em;text-transform:uppercase;color:var(--ink-3);
}
.sb-subnav-head[hidden]{display:none;}
/* The consoles that hide #sbNav and render their own rail get no subnav heading
   — theirs would stack on top of the surface's own section label. */
/* The masthead names the console now, directly under PREDICTION, so a subnav
   heading repeating it is duplication. Held rather than removed, because the
   shell still writes into it. */
.sb-subnav-head{display:none!important;}
.sb-subnav-head + .sb-nav{padding-top:4px;}
/* The console's destinations sit a step below the module that owns them. The
   correspondence rail keeps its own scale (it is that desk's type system). */
body:not(.console-correspondence) .sb-nav .nav-item{font-size:12.5px;padding:7px 10px;}
body:not(.console-correspondence) .sb-nav .nav-item svg{width:16px;height:16px;flex:0 0 16px;}


/* ── the correspondence rail ──────────────────────────────────────────────
   The rail carries the same type system as the desk it opens onto: a mono
   small-caps label over each group, the destination in sans, and the count
   the payload already read set in tabular mono on the right. */
.sb-rail-group{
  font-family:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;
  font-size:8.5px;letter-spacing:.17em;text-transform:uppercase;
  color:var(--muted,#9B9B94);padding:16px 12px 6px;margin:0;
}
.sb-nav .nav-item:first-child + .sb-rail-group,
.sb-nav > .sb-rail-group:first-child{padding-top:6px}
.sb-rail-n{
  margin-left:auto;font-family:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;
  font-size:11px;font-variant-numeric:tabular-nums;color:var(--muted,#9B9B94);
  letter-spacing:.02em;padding-left:10px;
}
.sb-rail-n.act{color:#7a6750;font-weight:600}
.nav-item.active .sb-rail-n{color:#1B1B19;font-weight:600}
.sb-nav .nav-item{align-items:center}

/* the seat reads the way the desk's own identity block reads */
.sb-user .u-name{font-size:12.5px;font-weight:600;letter-spacing:-.005em}
.sb-user .u-sub{
  font-family:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;
  font-size:8px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted,#9B9B94);
}

.sb-new:active{transform:scale(.985);}
/* Concept 04 "Icon-only rail preview": collapsed New is a compact SQUARE "+"
   tile (not a stretched pill) — width≈height, app-correct small radius. */
#sidebar.collapsed .sb-new{width:38px;height:38px;padding:0;margin:8px auto 4px;border-radius:9px;display:grid;place-items:center;}
#sidebar.collapsed .sb-new .nl{display:none;}
#sidebar.collapsed .sb-new svg{width:17px;height:17px;}

.sb-nav{padding:6px 12px;display:flex;flex-direction:column;gap:1px;}
.nav-item{
  display:flex;align-items:center;gap:11px;padding:8px 10px;border-radius:8px;
  color:var(--ink-2);text-align:left;width:100%;font-size:13px;
  border-left:2px solid transparent;transition:background .12s,color .12s;
}
.nav-item:hover{background:var(--chip);color:var(--ink);}
.nav-item.active{background:var(--panel);color:var(--ink);font-weight:600;border-left-color:transparent;box-shadow:0 1px 2px rgba(20,20,19,.05),inset 0 0 0 1px var(--hair-2);}
.nav-item svg{width:17px;height:17px;flex:0 0 17px;color:var(--ink-3);}
.nav-item.active svg{color:var(--ink);}
.sb-admin-group{margin-top:7px;padding-top:7px;border-top:1px solid var(--hair-2);}
.sb-admin-group summary{list-style:none;cursor:pointer;}
.sb-admin-group summary::-webkit-details-marker{display:none;}
.sb-admin-caret{margin-left:auto;display:grid;place-items:center;transition:transform .14s var(--ease);}
.sb-admin-caret svg{width:13px;height:13px;}
.sb-admin-group[open] .sb-admin-caret{transform:rotate(90deg);}
.sb-admin-tools{padding:3px 0 2px 29px;display:grid;gap:1px;}
.sb-admin-tools button{padding:7px 9px;border-radius:7px;text-align:left;font-size:12px;color:var(--ink-3);}
.sb-admin-tools button:hover{background:var(--chip);color:var(--ink);}

.sb-scroll{flex:1;min-height:0;overflow-y:auto;padding:6px 12px 4px;}
.sb-section{font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3);padding:12px 10px 6px;display:flex;align-items:center;justify-content:space-between;}
.proj-item{
  display:flex;align-items:center;gap:9px;padding:7px 10px;border-radius:8px;width:100%;text-align:left;
  color:var(--ink-2);font-size:12.5px;border-left:2px solid transparent;transition:background .12s;
}
.proj-item:hover{background:var(--chip);}
.proj-item.active{background:var(--panel);color:var(--ink);font-weight:600;border-left-color:transparent;box-shadow:0 1px 2px rgba(20,20,19,.05),inset 0 0 0 1px var(--hair-2);}
/* dot is a neutral idle marker only — green is reserved for genuine live/online
   state (A5). The active project is conveyed by the .proj-item.active row
   treatment (white panel bg + inset hairline + bold) above, NOT a colored dot. */
.proj-dot{width:7px;height:7px;border-radius:50%;flex:0 0 7px;background:var(--status-idle);}
.proj-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

.thread-item{
  position:relative;display:flex;align-items:center;padding:6px 10px;border-radius:8px;width:100%;text-align:left;
  color:var(--ink-2);font-size:12.5px;transition:background .12s;
}
.thread-item:hover{background:var(--chip);}
.thread-item.active{background:var(--panel);color:var(--ink);font-weight:600;box-shadow:0 1px 2px rgba(20,20,19,.05),inset 0 0 0 1px var(--hair-2);}
.thread-item .t-title{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.thread-item .t-time{font-size:10.5px;color:var(--ink-4);margin-left:8px;flex:0 0 auto;}
.thread-item .t-menu{position:absolute;right:7px;top:50%;transform:translateY(-50%);opacity:0;color:var(--ink-3);background:var(--chip-hi);border-radius:6px;width:22px;height:22px;display:grid;place-items:center;}
.thread-item:hover .t-menu{opacity:1;}
.thread-item:hover .t-time{opacity:0;}

/* ---- project/thread management chrome ---- */
.sb-section-add{width:18px;height:18px;border-radius:5px;display:grid;place-items:center;color:var(--ink-3);}
.sb-section-add svg{width:13px;height:13px;}
.sb-section-add:hover{background:var(--chip-hi);color:var(--ink);}
#sidebar.collapsed .sb-section-add{display:none;}

.sb-itemwrap{position:relative;}
.sb-dots{margin-left:auto;flex:0 0 auto;width:22px;height:22px;border-radius:6px;display:grid;place-items:center;
  color:var(--ink-3);opacity:0;transition:opacity .12s,background .12s;}
.proj-item:hover .sb-dots,.thread-item:hover .sb-dots{opacity:1;}
.sb-dots:hover{background:var(--chip-hi);color:var(--ink);}
/* the thread-item dots replace the old chevron .t-menu; keep absolute placement off */
.thread-item .sb-dots.t-menu{position:static;right:auto;top:auto;transform:none;background:transparent;}
.thread-item:hover .sb-dots.t-menu{opacity:1;background:transparent;}
.thread-item:hover .sb-dots.t-menu:hover{background:var(--chip-hi);}

.sb-menu{position:absolute;top:calc(100% - 2px);right:6px;z-index:40;min-width:172px;
  background:var(--panel);border:1px solid var(--hair-2);border-radius:11px;box-shadow:var(--sh-lg);
  padding:5px;animation:vfade .12s var(--ease);display:flex;flex-direction:column;}
.sb-menu button{display:block;width:100%;text-align:left;padding:7px 9px;border-radius:7px;font-size:12.5px;color:var(--ink-2);transition:background .1s;}
.sb-menu button:hover{background:var(--chip);color:var(--ink);}
.sb-menu button.danger{color:var(--gate);}
.sb-menu button.danger:hover{background:var(--gate-soft);}
.sb-menu .sb-menu-h{font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3);padding:6px 9px 4px;}
.sb-menu .sb-menu-empty{font-size:11.5px;color:var(--ink-3);padding:6px 9px;}
.sb-menu .sb-menu-back{color:var(--ink-3);font-size:11.5px;margin-top:2px;border-top:1px solid var(--hair);border-radius:0 0 7px 7px;}

.sb-row-edit{display:flex;align-items:center;gap:9px;padding:5px 10px;}
.sb-input{flex:1;min-width:0;border:1px solid var(--ink-3);border-radius:7px;padding:5px 8px;font-size:12.5px;background:var(--panel);outline:none;}
.sb-input:focus{border-color:var(--ink);}

.sb-row-confirm{display:flex;align-items:center;gap:7px;padding:6px 10px;}
.sb-row-confirm .cf-q{flex:1;min-width:0;font-size:11.5px;color:var(--gate);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.sb-row-confirm button{width:24px;height:24px;flex:0 0 24px;border-radius:6px;display:grid;place-items:center;}
.sb-row-confirm .cf-yes{background:var(--gate-soft);color:var(--gate);}
.sb-row-confirm .cf-yes:hover{background:var(--gate);color:#fff;}
.sb-row-confirm .cf-no{background:var(--chip);color:var(--ink-2);}
.sb-row-confirm .cf-no:hover{background:var(--chip-hi);color:var(--ink);}
.sb-row-confirm button svg{width:13px;height:13px;}

.sb-empty{font-size:11.5px;color:var(--ink-3);padding:7px 10px;line-height:1.5;}
.sb-empty-link{color:var(--ink);font-size:11.5px;font-weight:600;text-decoration:underline;text-underline-offset:2px;}
.sb-empty-link:hover{opacity:.75;}

.sb-user{position:relative;border-top:1px solid var(--hair-2);padding:8px 10px;display:flex;align-items:center;gap:6px;flex:0 0 auto;transition:background .12s;}
.sb-account-wrap{position:relative;min-width:0;flex:1 1 auto;}
.sb-account{min-width:0;min-height:38px;flex:1 1 auto;display:flex;align-items:center;gap:11px;padding:3px 4px;border:0;border-radius:8px;background:transparent;color:inherit;text-align:left;cursor:pointer;}
.sb-account:hover{background:var(--chip);}
.sb-account:focus-visible,.sb-signout:focus-visible{outline:3px solid rgba(152,99,61,.38);outline-offset:1px;}
.sb-account-copy{display:block;min-width:0;flex:1;}
.sb-account-copy>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sb-account-caret{display:grid;place-items:center;color:var(--ink-3);}
.sb-account-caret svg{width:13px;height:13px;transform:rotate(-90deg);}
.sb-persona-menu{position:absolute;z-index:420;left:0;right:0;bottom:calc(100% + 8px);padding:6px;background:var(--panel);border:1px solid var(--hair-2);border-radius:12px;box-shadow:var(--sh-lg);}
.sb-persona-menu[hidden]{display:none;}
.sb-persona-label{padding:6px 8px 5px;font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-4);}
.sb-persona-option{width:100%;display:flex;align-items:center;gap:9px;padding:8px;border-radius:8px;text-align:left;color:var(--ink-2);}
.sb-persona-option:hover,.sb-persona-option.active{background:var(--chip);color:var(--ink);}
.sb-persona-option.active{box-shadow:inset 2px 0 0 var(--accent);}
.sb-persona-option>span:last-child{min-width:0;display:grid;gap:1px;}
.sb-persona-option b{font-size:12px;font-weight:600;}
.sb-persona-option small{font-size:10.5px;color:var(--ink-3);}
.sb-persona-avatar{width:28px;height:28px;display:grid;place-items:center;flex:0 0 28px;border-radius:50%;background:var(--ink);color:#fff;font-size:9px;font-weight:700;letter-spacing:.05em;}
.avatar{width:32px;height:32px;flex:0 0 32px;border-radius:50%;display:grid;place-items:center;
  background:var(--ink);color:#fff;font-size:12px;font-weight:600;letter-spacing:.02em;}
.sb-user .u-name{font-size:13px;font-weight:550;}
.sb-user .u-sub{
  font-family:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;
  font-size:8px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3);
}
.sb-signout,.sb-audit{flex:0 0 auto;width:28px;height:28px;display:grid;place-items:center;border-radius:7px;color:var(--ink-3);background:transparent;cursor:pointer;transition:background .12s,color .12s;}
.sb-signout:hover{background:var(--gate-soft);color:var(--gate);}
.sb-audit:hover{background:var(--chip);color:var(--ink);}
.sb-signout svg,.sb-audit svg{width:15px;height:15px;}
.collapse-btn{margin-left:auto;color:var(--ink-3);width:24px;height:24px;display:grid;place-items:center;border-radius:6px;transition:background .12s,color .12s;}
.collapse-btn:hover{background:var(--chip);}
/* Collapsed: the Collapser stays visible — it pins to the top-center of the rail
   (positioned by `.collapsed .sb-topbtns`) and shows the ">" expand chevron. */
#sidebar.collapsed .collapse-btn{display:grid;margin:0;width:34px;height:30px;color:var(--ink-2);}
#sidebar.collapsed .collapse-btn:hover{background:var(--chip);color:var(--ink);}

/* ============================================================
   shared main-area layout primitives (used by every surface)
   ============================================================ */
.view{flex:1;min-height:0;overflow-y:auto;}
.view[hidden]{display:none;}
.wrap{max-width:880px;margin:0 auto;padding:54px 40px 80px;}
.wrap-wide{max-width:1180px;margin:0 auto;padding:40px 40px 80px;}

/* topbar (contextual, thin) */
.topbar{
  flex:0 0 auto;height:50px;display:flex;align-items:center;gap:14px;
  padding:0 26px;border-bottom:1px solid var(--hair-2);background:var(--canvas);
}
.topbar .tb-title{font-size:13px;font-weight:600;}
.topbar .tb-crumb{font-size:12px;color:var(--ink-3);display:flex;align-items:center;gap:7px;}
.topbar .tb-crumb svg{width:15px;height:15px;}
.tb-spacer{flex:1;}
.tb-btn{display:flex;align-items:center;gap:7px;padding:6px 11px;border-radius:8px;border:1px solid var(--hair-2);background:var(--panel);font-size:12px;color:var(--ink-2);transition:background .12s;}
.tb-btn:hover{background:var(--chip);color:var(--ink);}
.tb-btn svg{width:14px;height:14px;}
.tb-btn.dark{background:var(--ink);color:#fff;border-color:var(--ink);}
.tb-btn.dark:hover{opacity:.9;}

/* greeting / headings */
.greeting{font-family:var(--serif);font-size:34px;font-weight:500;letter-spacing:-.01em;color:var(--ink);margin:0 0 4px;}
.greeting .g-sub{font-family:var(--sans);font-size:15px;color:var(--ink-3);font-weight:400;margin-top:8px;}

/* ---------- shared buttons / chips ---------- */
.ghost-btn{display:inline-flex;align-items:center;gap:7px;padding:6px 12px;border-radius:9px;border:1px solid var(--hair-2);background:var(--panel);font-size:12.5px;color:var(--ink-2);transition:background .12s,border-color .12s;}
.ghost-btn:hover{background:var(--chip);border-color:var(--hair-3);color:var(--ink);}
.ghost-btn svg{width:14px;height:14px;color:var(--ink-3);}
.ghost-btn.set b{color:var(--ink);font-weight:600;}
.run-btn{display:inline-flex;align-items:center;gap:8px;padding:8px 16px;border-radius:10px;background:var(--ink);color:#fff;font-size:13px;font-weight:600;transition:opacity .12s,transform .1s;}
.run-btn:hover{opacity:.92;}
.run-btn:active{transform:scale(.98);}
.run-btn svg{width:14px;height:14px;}
.run-btn[disabled]{opacity:.45;cursor:not-allowed;}

/* placeholder / stub markers (honest "surface pending") */
.placeholder-tag{display:inline-flex;align-items:center;gap:6px;font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);border:1px dashed var(--hair-3);border-radius:6px;padding:2px 8px;}
.empty-hint{font-size:12.5px;color:var(--ink-3);text-align:center;padding:40px;}

/* honest "surface pending" placeholder used by P0 stubs */
.surface-pending{max-width:560px;margin:80px auto;text-align:center;padding:40px 32px;background:var(--panel);border:1px solid var(--hair-2);border-radius:16px;box-shadow:var(--sh);}
.surface-pending .sp-ic{width:48px;height:48px;border-radius:13px;background:var(--chip);color:var(--ink-3);display:grid;place-items:center;margin:0 auto 18px;}
.surface-pending .sp-ic svg{width:24px;height:24px;}
.surface-pending h2{font-family:var(--serif);font-size:22px;font-weight:600;margin:0 0 8px;color:var(--ink);}
.surface-pending p{font-size:13px;color:var(--ink-2);line-height:1.6;margin:0 0 16px;}
.surface-pending .sp-tag{display:inline-flex;align-items:center;gap:6px;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);border:1px dashed var(--hair-3);border-radius:7px;padding:4px 10px;}

/* ---------- toast (audit / action feedback) ---------- */
/* Re-pinned to TOP-RIGHT, under the bell, present-only (A3/A4). */
.toast-wrap{position:fixed;top:var(--notif-anchor-top);right:var(--notif-anchor-right);z-index:300;display:flex;flex-direction:column;gap:var(--sp-2);align-items:flex-end;}
.toast{background:var(--ink);color:#fff;font-size:12.5px;padding:9px 16px;border-radius:var(--r-3);box-shadow:var(--sh-lg);display:flex;align-items:center;gap:9px;opacity:0;transform:translateY(-8px);transition:opacity .2s,transform .2s;}
.toast.show{opacity:1;transform:none;}
.toast svg{width:14px;height:14px;color:#86d3a3;}

/* ============================================================
   PREDICTION rebuild helper classes (Phase 1a — additive).
   Consumed by Phase-2 components + Phase-4 surfaces; all colors
   reference tokens above, never literals.
   ============================================================ */

/* ---- notification stack: fixed top-right, present-only (A3/A4) ---- */
.notif-stack{position:fixed;top:var(--notif-anchor-top);right:var(--notif-anchor-right);z-index:300;display:flex;flex-direction:column;gap:var(--sp-2);align-items:flex-end;pointer-events:none;}
.notif-stack>*{pointer-events:auto;}

/* ---- gate-lane labels: green+check when cleared, neutral when empty (C5/C6) ---- */
.gates-cleared{display:inline-flex;align-items:center;gap:var(--sp-2);color:var(--status-good);background:var(--status-good-soft);border-radius:var(--r-1);padding:2px 8px;font-weight:600;}
.gates-cleared svg{width:13px;height:13px;color:var(--status-good);}
.gates-empty{display:inline-flex;align-items:center;gap:var(--sp-2);color:var(--status-empty-ink);background:var(--chip);border-radius:var(--r-1);padding:2px 8px;}

/* ---- faded unselected cards after a choice (B3) ---- */
.wf-card.muted{opacity:.5;border:1px solid var(--hair);box-shadow:none;transition:opacity .16s var(--ease);}

/* ---- status pills (B3/B4) — single source consuming --pill-* ---- */
.pill{display:inline-flex;align-items:center;gap:var(--sp-1);font-size:10.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;border-radius:var(--r-1);padding:2px 8px;line-height:1.4;}
.pill-queued{background:var(--pill-queued-bg);color:var(--pill-queued-ink);}
.pill-running{background:var(--pill-running-bg);color:var(--pill-running-ink);animation:vpulse 1.4s var(--ease) infinite;}
.pill-retrying{background:var(--pill-retry-bg);color:var(--pill-retry-ink);}
.pill-done{background:var(--pill-done-bg);color:var(--pill-done-ink);}
.pill-failed{background:var(--pill-failed-bg);color:var(--pill-failed-ink);}
.pill-empty{background:var(--pill-empty-bg);color:var(--pill-empty-ink);}

/* ---- speech bubbles: conversational / agent-intro turns (E1) ---- */
.bubble{display:inline-block;max-width:78%;padding:10px 14px;border-radius:var(--bubble-radius);font-size:13.5px;line-height:1.5;box-shadow:var(--sh);}
.bubble-user{background:var(--bubble-user-bg);color:var(--bubble-user-ink);border-bottom-right-radius:var(--bubble-tail);margin-left:auto;}
.bubble-agent{background:var(--bubble-agent-bg);color:var(--bubble-agent-ink);border:1px solid var(--bubble-agent-border);border-bottom-left-radius:var(--bubble-tail);margin-right:auto;}
.bubble-row{display:flex;width:100%;}
.bubble-row.user{justify-content:flex-end;}
.bubble-row.agent{justify-content:flex-start;}
/* agent identity header inside an agent bubble (avatar + name) — E1/E2 */
.bubble-agent-id{display:flex;align-items:center;gap:var(--sp-2);margin-bottom:var(--sp-1);font-size:11.5px;font-weight:600;color:var(--ink-2);}

/* ---------- shared overlay scaffold (object pivot etc.) ---------- */
.pivot-overlay{position:fixed;inset:0;background:rgba(20,20,19,.32);z-index:200;display:grid;place-items:center;opacity:0;pointer-events:none;transition:opacity .18s;}
.pivot-overlay.show{opacity:1;pointer-events:auto;}

/* shared object-pivot card (cross-console; provenance only) */
.pivot-card{width:440px;max-width:calc(100vw - 48px);max-height:calc(100vh - 100px);overflow-y:auto;
  background:var(--panel);border:1px solid var(--hair-2);border-radius:16px;box-shadow:var(--sh-lg);
  padding:20px 22px;animation:vfade .2s var(--ease);}
.pivot-card .pv-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
.pivot-card .pv-kind{font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3);font-weight:600;}
.pivot-card .pv-name{font-size:20px;font-weight:600;margin-top:3px;letter-spacing:-.01em;}
.pivot-card .pv-id{font-size:11px;color:var(--ink-3);margin-top:3px;}
.pivot-card .pv-x{width:30px;height:30px;flex:0 0 30px;border-radius:8px;display:grid;place-items:center;color:var(--ink-3);}
.pivot-card .pv-x:hover{background:var(--chip);color:var(--ink);}
.pivot-card .pv-x svg{width:15px;height:15px;}
.pivot-card .pv-sec-l{font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3);margin:18px 0 9px;}
.pivot-card .pv-mention{display:flex;align-items:flex-start;gap:10px;padding:9px 11px;border:1px solid var(--hair);border-radius:10px;margin-bottom:7px;background:var(--panel-2);}
.pivot-card .pv-mi{width:26px;height:26px;flex:0 0 26px;border-radius:7px;display:grid;place-items:center;background:var(--chip);color:var(--ink-2);}
.pivot-card .pv-mi svg{width:14px;height:14px;}
.pivot-card .pv-mt{font-size:12.5px;font-weight:600;}
.pivot-card .pv-ms{font-size:11.5px;color:var(--ink-2);line-height:1.45;margin-top:2px;}
.pivot-card .pv-rels{display:flex;flex-wrap:wrap;gap:6px;}
.pivot-card .pv-rel{font-size:11px;color:var(--ink-2);background:var(--chip);border-radius:6px;padding:3px 8px;}
.pivot-card .pv-rel b{color:var(--accent);font-weight:600;letter-spacing:.02em;}
.pivot-card .pv-cross{display:flex;align-items:center;gap:12px;margin-top:18px;padding:12px 13px;border-radius:11px;border:1px solid var(--hair-2);background:var(--accent-soft);}
.pivot-card .pv-cross.disabled{border-color:var(--hair-2);background:var(--panel-2);}
.pivot-card .pv-cross-txt{flex:1;min-width:0;}
.pivot-card .pv-cross-l{font-size:12.5px;font-weight:600;color:var(--ink);}
.pivot-card .pv-cross.disabled .pv-cross-l{color:var(--ink-2);}
.pivot-card .pv-cross-s{font-size:11px;color:var(--ink-2);line-height:1.4;margin-top:2px;}
.pivot-card .pv-cross-go{width:34px;height:34px;flex:0 0 34px;border-radius:9px;background:var(--ink);color:#fff;display:grid;place-items:center;}
.pivot-card .pv-cross-go:hover{opacity:.9;}
.pivot-card .pv-cross-go svg{width:16px;height:16px;}
.pivot-card .pv-cross-na{color:var(--ink-4);font-size:18px;}
.pivot-card .pv-foot{display:flex;align-items:flex-start;gap:8px;font-size:10.5px;color:var(--ink-3);line-height:1.45;margin-top:16px;border-top:1px solid var(--hair);padding-top:12px;}
.pivot-card .pv-foot svg{width:13px;height:13px;flex:0 0 13px;color:var(--ink-4);margin-top:1px;}

/* The mission-consoles popover is 344px but the rail becomes an off-canvas
   drawer with overflow:hidden at narrow widths, which clipped the popover to
   the rail's width and cut the posture badges mid-word. Let the rail overflow
   while the popover is open, and never let the popover exceed the viewport. */
.sw-menu{max-width:calc(100vw - 24px);}
.cr-name{min-width:0;}
.cr-posture,.tag-na,.tag-on{white-space:nowrap;flex:0 0 auto;}

/* A view that cannot mount still has to look like part of the product. */
.vt-embed-fallback{max-width:480px;margin:14vh auto 0;padding:26px 28px;border:1px solid var(--hair-3);
  border-radius:14px;background:var(--panel);font-family:var(--sans);text-align:left}
.vt-embed-fallback b{display:block;font-size:14px;color:var(--ink);letter-spacing:.01em}
.vt-embed-fallback p{margin:8px 0 0;font-size:12.5px;line-height:1.55;color:var(--ink-3)}
