

/* ============================================================
   Futuris app design system, kit v0.3.5 (design/kit/colors_and_type.css), light values only.
   Every value below is the kit's job name. Nothing here is a new token.
   ============================================================ */
@font-face { font-family: 'Outfit Heading'; src: url('../fonts/Outfit-wght.ttf'); font-weight: 100 900; }
:root {
  --font-sans: 'Outfit', "Helvetica Neue", Arial, sans-serif;
  --font-heading: 'Outfit Heading', "Helvetica Neue", Arial, sans-serif;
  --surface-page: #F6F7FA; --surface-raised: #FFFFFF; --surface-sunken: #F7F8FA; --surface-rail: #FBFBFC;
  --surface-hover: #F3F4F8; --surface-pressed: #EBEDF2; --surface-active: #EBEDF2; --surface-chip: #EDEFF4; --surface-skeleton: #EDEFF4;
  --text-primary: #111111; --text-heading: #111111; --text-secondary: #45474E; --text-muted: #62656D; --text-on-action: #FFFFFF;
  --action-default: #1F3BFF; --action-hover: #1A33E0; --action-pressed: #1529C2; --action-tint: rgba(31,59,255,0.08); --action-solid: #1F3BFF;
  --line-hairline: #E1E4EB; --line-control: #8A8F99; --line-divider: #ECEEF2; --line-hover: #B4BAC6; --line-focus: #1F3BFF; --line-selected: #1F3BFF; --line-highlight: rgba(255,255,255,0.9);
  --progress-fill: #111111; --progress-track: #E3E6EC; --control-switch-off: #D3D7E0;
  --status-ok: #1C774A; --status-warn: #AA4E09; --status-danger: #BD382A; --status-attention: #E8A317; --status-neutral: #45474E;
  --area-sales: #E3F5EA; --area-marketing: #FDEBD9; --area-customer-success: #DDF4F3; --area-revops: #EFE9FA;
  --area-sales-text: #176B3E; --area-marketing-text: #8A4B12; --area-customer-success-text: #0F6E63; --area-revops-text: #5A3AA6;
  --status-ok-tint: rgba(29,124,77,0.09); --status-warn-tint: rgba(176,81,9,0.09); --status-danger-tint: rgba(192,57,43,0.09); --status-attention-tint: rgba(232,163,23,0.12);
  --size-hero: 34px; --weight-hero: 700; --size-title: 24px; --weight-title: 600; --tracking-title: -0.015em;
  --size-heading: 19px; --weight-heading: 600; --tracking-heading: -0.015em; --size-body: 15px; --weight-body: 400;
  --size-control: 13px; --weight-control: 550; --tracking-control: -0.005em; --size-chip: 12px; --weight-chip: 550; --size-label: 11px; --weight-label: 600; --label-tracking: 0.04em; --text-field: 14px;
  --space-4: 4px; --space-8: 8px; --space-12: 12px; --space-16: 16px; --space-20: 20px; --space-24: 24px; --space-32: 32px; --space-48: 48px;
  --radius-panel: 14px; --radius-card: 12px; --radius-popover: 10px; --radius-input: 8px; --radius-button: 8px; --radius-door: 7px; --radius-item: 6px; --radius-key: 5px; --radius-checkbox: 4px; --radius-tabs: 9px; --radius-pill: 9999px;
  --row-height: 38px; --table-row-height: 50px; --rail-row-height: 32px;
  --rail-width: 232px; --reading-column: 820px; --chat-column: 760px; --side-panel-width: 420px;
  --rail-border: 1px solid #E1E4EB; --card-border: 1px solid #E1E4EB;
  --glass-floating-bg: rgba(255,255,255,0.85); --glass-line: rgba(17,17,17,0.10); --glass-highlight: rgba(255,255,255,0.7); --glass-blur: 30px;
  --tab-selected: #FFFFFF; --tab-line: rgba(17,17,17,0.08);
  --shade-button: 0 1px 2px rgba(17,17,17,0.05); --shade-primary: inset 0 1px 0 rgba(255,255,255,0.16), 0 1px 2px rgba(17,17,17,0.14); --shade-field: inset 0 1px 1px rgba(17,17,17,0.03);
  --elevation-card: inset 0 1px 0 rgba(255,255,255,0.9), 0 1px 2px rgba(17,17,17,0.05), 0 1px 1px rgba(17,17,17,0.02);
  --elevation-card-hover: 0 2px 6px rgba(17,17,17,0.06), 0 1px 1px rgba(17,17,17,0.02);
  --elevation-popover: 0 12px 32px -8px rgba(17,17,17,0.18), 0 2px 6px rgba(17,17,17,0.05);
  --elevation-modal: 0 16px 48px rgba(17,17,17,0.12); --scrim: rgba(17,17,17,0.28);
  --focus-outline: 2px solid #1F3BFF; --focus-offset: 2px; --focus-offset-row: -2px;
  --focus-ring: 0 0 0 2px var(--surface-raised), 0 0 0 4px var(--line-focus);
  --disabled-bg: var(--surface-chip); --disabled-text: var(--text-muted);
  --duration: 150ms; --easing: cubic-bezier(0.165, 0.84, 0.44, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--surface-page); color: var(--text-primary); font-family: var(--font-sans); font-size: var(--size-body); font-weight: var(--weight-body); line-height: 1.5; font-variant-numeric: tabular-nums; }
h1, h2, h3, .fut-hero, .fut-title, .fut-heading { font-family: var(--font-heading); color: var(--text-heading); margin: 0; }
a { color: var(--action-default); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
b, strong { font-weight: 600; }
button { font-family: inherit; }
svg.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.ic.s18 { width: 18px; height: 18px; } svg.ic.s13 { width: 13px; height: 13px; } svg.ic.s14 { width: 14px; height: 14px; } svg.ic.s22 { width: 22px; height: 22px; }
:focus-visible { outline: var(--focus-outline); outline-offset: var(--focus-offset); }

/* ---------- the review page's own chrome (never product; badged) ---------- */
.review { max-width: 1400px; margin: 0 auto; padding: 32px 24px 80px; }
.review-head { max-width: var(--reading-column); margin: 0 0 28px; }
.review-head h1 { font-size: var(--size-hero); font-weight: var(--weight-hero); letter-spacing: -0.02em; line-height: 1.15; }
.review-head p { margin: 10px 0 0; color: var(--text-secondary); }
.eyebrow { font-size: var(--size-label); font-weight: var(--weight-label); letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.machinery { display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px 4px 6px; border: 1px dashed var(--line-hover); border-radius: var(--radius-item); font-size: var(--size-chip); color: var(--text-muted); background: var(--surface-raised); }
.machinery b { font-weight: 600; color: var(--text-secondary); }
.machinery .seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: var(--radius-tabs); background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--line-hairline); }
.machinery .seg button { height: 24px; padding: 0 10px; border: 0; border-radius: var(--radius-door); background: transparent; color: var(--text-secondary); font-size: var(--size-chip); font-weight: var(--weight-chip); cursor: pointer; }
.machinery .seg button[aria-pressed="true"] { background: var(--tab-selected); color: var(--text-primary); font-weight: 600; box-shadow: 0 0 0 1px var(--tab-line), 0 1px 2px rgba(17,17,17,0.08); }
.inv { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-muted); border: 1px dashed var(--line-hover); border-radius: 4px; padding: 0 4px; margin-left: 6px; vertical-align: 2px; font-family: var(--font-sans); font-style: normal; }
.owed { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--status-warn); border: 1px dashed var(--status-warn); border-radius: 4px; padding: 0 4px; margin-left: 6px; vertical-align: 2px; font-style: normal; }
.screen-block { margin: 44px 0 0; }
.screen-block > .sb-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; max-width: 1280px; }
.screen-block > .sb-head h2 { font-size: var(--size-title); font-weight: var(--weight-title); letter-spacing: var(--tracking-title); }
.screen-block > .sb-head p { margin: 4px 0 0; color: var(--text-secondary); font-size: var(--size-control); max-width: 720px; }
.borrows { font-size: var(--size-chip); color: var(--text-muted); margin-top: 6px; }
.borrows b { color: var(--text-secondary); font-weight: 600; }
.sb-tools { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.frame { width: 1280px; height: 820px; background: var(--surface-page); border: 1px solid var(--line-hairline); border-radius: 4px; overflow: hidden; display: flex; position: relative; box-shadow: 0 1px 2px rgba(17,17,17,0.04); }
.frame.tall { height: 900px; }
.frame.short { height: 560px; }
.caption { font-size: var(--size-chip); color: var(--text-muted); margin: 8px 0 0; max-width: 1280px; }
.caption b { color: var(--text-secondary); font-weight: 600; }
.states { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.state { display: grid; gap: 8px; }
.state .cap { font-size: var(--size-chip); color: var(--text-muted); }
.attn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--status-attention); flex: none; display: inline-block; }

/* ---------- the rail (kit W1) ---------- */
.rail { width: var(--rail-width); flex: none; background: var(--surface-rail); border-right: var(--rail-border); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; height: 100%; }
.ws { display: flex; align-items: center; gap: 10px; padding: 4px 4px 14px 8px; }
.mono { width: 28px; height: 28px; border-radius: var(--radius-door); background: var(--surface-chip); color: var(--text-primary); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 600; font-size: var(--size-control); flex: none; }
.ws-n { font-size: var(--size-control); font-weight: 600; line-height: 1.2; }
.ws-s { font-size: var(--size-chip); color: var(--text-muted); line-height: 1.2; }
.ws .chev { margin-left: auto; color: var(--text-muted); }
.door { display: flex; align-items: center; gap: 10px; height: var(--rail-row-height); padding: 0 10px; border-radius: var(--radius-door); font-size: var(--size-control); font-weight: 500; color: var(--text-primary); cursor: pointer; }
.door svg { color: var(--text-secondary); }
.door:hover { background: var(--surface-hover); }
.door[aria-current="page"] { background: var(--surface-active); font-weight: 600; }
.door[aria-current="page"] svg { color: var(--text-primary); }
.count { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 6px; border-radius: var(--radius-item); background: var(--surface-raised); color: var(--text-secondary); box-shadow: inset 0 0 0 1px var(--line-hairline); font-size: var(--size-label); font-weight: 600; }
.glabel { font-size: var(--size-chip); font-weight: 600; color: var(--text-muted); padding: 12px 10px 4px; }
.rail-foot { margin-top: auto; display: grid; gap: 2px; }
.meter { padding: 10px 10px 8px; display: grid; gap: 4px; }
.meter .lbl { font-size: var(--size-chip); color: var(--text-muted); line-height: 1.2; }
.meter .val { font-size: var(--size-control); font-weight: 600; color: var(--text-primary); line-height: 1.2; }
.meter .bar { height: 3px; border-radius: var(--radius-pill); background: var(--progress-track); overflow: hidden; margin-top: 4px; }
.meter .bar i { display: block; height: 100%; background: var(--progress-fill); }
.meter .note { font-size: var(--size-chip); line-height: 1.3; margin-top: 2px; }
.meter .note.warn { color: var(--status-warn); } .meter .note.danger { color: var(--status-danger); }
.account { display: flex; align-items: center; gap: 10px; padding: 8px 10px 2px; }
.avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-chip); color: var(--text-secondary); font-size: var(--size-label); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.account .n { font-size: var(--size-chip); color: var(--text-secondary); }
/* the folded strip (below 1280 only) */
.strip { width: 56px; background: var(--surface-rail); border-right: var(--rail-border); padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; height: 100%; position: relative; }
.strip .door { width: 36px; padding: 0; justify-content: center; }
.strip .sep { width: 24px; height: 1px; background: var(--line-divider); margin: 8px 0; }
.strip .rail-foot { justify-items: center; }
.tip { position: absolute; white-space: nowrap; font-size: var(--size-chip); font-weight: 500; color: var(--text-primary); padding: 5px 8px; border-radius: var(--radius-door); display: inline-flex; align-items: center; gap: 8px; z-index: 3; }
.tip .muted { color: var(--text-muted); }

/* ---------- glass, one recipe, floating things only ---------- */
.glass { background: var(--glass-floating-bg); backdrop-filter: blur(var(--glass-blur)) saturate(160%); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%); border: 1px solid var(--glass-line); border-radius: var(--radius-popover); box-shadow: inset 0 1px 0 var(--glass-highlight), var(--elevation-popover); }

/* ---------- the chat section: tab strip, column ---------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; height: 100%; }
.tabrow { display: flex; align-items: flex-end; gap: 2px; padding: 10px 16px 0; border-bottom: 1px solid var(--line-hairline); background: var(--surface-page); position: relative; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid transparent; border-bottom: 0; border-radius: var(--radius-door) var(--radius-door) 0 0; font-size: var(--size-control); font-weight: 500; color: var(--text-secondary); cursor: pointer; max-width: 230px; position: relative; top: 1px; }
.tab .tname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab:hover { color: var(--text-primary); background: var(--surface-hover); }
.tab[aria-selected="true"] { background: var(--tab-selected); color: var(--text-primary); border-color: var(--line-hairline); font-weight: 600; box-shadow: inset 0 1px 0 var(--line-highlight); }
.tab.eevie { font-weight: 600; }
.tab .tx { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--text-muted); margin-right: -4px; }
.tab .tx:hover { background: var(--surface-pressed); color: var(--text-primary); }
.tab.plus { padding: 0 8px; color: var(--text-muted); }
.tab.plus.on { background: var(--surface-pressed); color: var(--text-primary); }
.tabrow .bellwrap { margin-left: auto; align-self: center; position: relative; padding-bottom: 6px; }
.iconbtn { width: 28px; height: 28px; border-radius: var(--radius-door); border: 0; background: transparent; color: var(--text-secondary); display: inline-grid; place-items: center; cursor: pointer; }
.iconbtn:hover { background: var(--surface-hover); color: var(--text-primary); }
.iconbtn.open { background: var(--surface-pressed); color: var(--text-primary); }
.bell-badge { position: absolute; top: 3px; right: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--status-attention); box-shadow: 0 0 0 2px var(--surface-page); }
.body { flex: 1; min-height: 0; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.col { width: var(--chat-column); max-width: 100%; margin: 0 auto; padding: 0 16px; }
.landing { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 24px; }
.greet { font-size: var(--size-title); font-weight: var(--weight-title); letter-spacing: var(--tracking-title); line-height: 1.2; }
.greet-sub { color: var(--text-secondary); margin: 6px 0 0; }
.away { margin-top: 20px; font-size: var(--size-control); color: var(--text-secondary); }
.away a { font-weight: 500; }
.away-empty { margin-top: 20px; font-size: var(--size-control); color: var(--text-muted); }
.starters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.starter { background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: 14px 14px 12px; display: grid; gap: 4px; cursor: pointer; text-align: left; transition: transform var(--duration) var(--easing), box-shadow var(--duration) var(--easing), border-color var(--duration) var(--easing); }
.starter:hover { transform: translateY(-1px); box-shadow: var(--elevation-card-hover); border-color: var(--line-hover); }
.starter svg { color: var(--text-secondary); margin-bottom: 4px; }
.starter b { font-size: var(--size-control); font-weight: 600; }
.starter span { font-size: var(--size-chip); color: var(--text-muted); line-height: 1.35; }
.browse { margin-top: 14px; font-size: var(--size-control); }
.composer { background: var(--surface-raised); border: 1px solid var(--line-control); border-radius: var(--radius-card); box-shadow: inset 0 1px 0 var(--line-highlight), var(--shade-button); padding: 14px 14px 10px 16px; margin-top: 28px; }
.composer .ph { font-size: var(--size-body); color: var(--text-muted); min-height: 24px; }
.composer .ph.typed { color: var(--text-primary); }
.composer .row { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.composer .cost { margin-left: auto; font-size: var(--size-chip); color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; padding-right: 6px; }
.composer .send { width: 28px; height: 28px; border-radius: var(--radius-door); border: 0; background: var(--action-solid); color: var(--text-on-action); display: inline-grid; place-items: center; cursor: pointer; box-shadow: var(--shade-primary); }
.composer .send:hover { background: var(--action-hover); }
.checked { font-size: var(--size-chip); color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }
.report { position: absolute; right: 16px; bottom: 12px; font-size: var(--size-chip); color: var(--text-muted); background: transparent; border: 0; cursor: pointer; padding: 4px 6px; border-radius: var(--radius-item); }
.report:hover { color: var(--text-primary); background: var(--surface-hover); }

/* ---------- a thread ---------- */
.thread { flex: 1; overflow: hidden; padding: 24px 0 0; }
.thread .col { display: grid; gap: 18px; }
.me { justify-self: end; max-width: 78%; background: var(--action-tint); border-radius: 12px; padding: 10px 14px; }
.ev { display: grid; gap: 6px; }
.ev-name { font-size: var(--size-chip); font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.ev-name .age { font-weight: 400; color: var(--text-muted); }
.ev-text { margin: 0; }
.ev-text p { margin: 0 0 8px; } .ev-text p:last-child { margin-bottom: 0; }
.ev-meta { font-size: var(--size-chip); color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.stateline { font-size: var(--size-control); color: var(--text-secondary); display: inline-flex; align-items: center; gap: 8px; }
.card { background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: var(--space-20); }
.artifact { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; max-width: 560px; }
.artifact .tile { width: 36px; height: 36px; border-radius: var(--radius-input); background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--line-hairline); display: grid; place-items: center; color: var(--text-secondary); }
.artifact .t { font-size: var(--size-body); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.artifact .m { font-size: var(--size-chip); color: var(--text-muted); margin-top: 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-chip); color: var(--text-secondary); border-radius: var(--radius-pill); padding: 4px 8px; line-height: 1; font-size: var(--size-chip); font-weight: var(--weight-chip); white-space: nowrap; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 16%, transparent); }
.chip.ok { background: var(--status-ok-tint); color: var(--status-ok); }
.chip.warn { background: var(--status-warn-tint); color: var(--status-warn); }
.chip.sales { background: var(--area-sales); color: var(--area-sales-text); }
.chip.revops { background: var(--area-revops); color: var(--area-revops-text); }
.pill-open { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: var(--radius-door); border: 1px solid var(--line-control); background: var(--surface-raised); font-size: var(--size-chip); font-weight: 600; color: var(--text-primary); cursor: pointer; }
.pill-open:hover { background: var(--surface-hover); }
/* the approval item, B's anatomy */
.gate { max-width: 620px; padding: 16px 18px 14px; display: grid; gap: 10px; }
.gate .top { display: flex; align-items: center; gap: 8px; }
.gate .top .src { margin-left: auto; font-size: var(--size-chip); color: var(--text-muted); }
.gate .title { font-size: var(--size-body); font-weight: 600; line-height: 1.35; }
.gate .who { font-size: var(--size-control); color: var(--text-muted); }
.gate .why { font-size: var(--size-control); color: var(--text-secondary); }
.gate .why b { color: var(--text-primary); font-weight: 600; }
.gate .well { background: var(--surface-sunken); border: 1px solid var(--line-hairline); border-radius: var(--radius-input); padding: 12px 14px; font-size: var(--size-control); color: var(--text-secondary); display: grid; gap: 6px; }
.gate .well b { color: var(--text-primary); font-weight: 600; font-size: var(--size-control); }
.gate .foot { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.gate .integrity { margin-left: auto; font-size: var(--size-chip); color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.gate.resolved .foot { color: var(--text-muted); font-size: var(--size-control); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--radius-button); border: 1px solid transparent; font-size: var(--size-control); font-weight: var(--weight-control); letter-spacing: var(--tracking-control); line-height: 1; cursor: pointer; white-space: nowrap; }
.btn-p { background: var(--action-solid); color: var(--text-on-action); font-weight: 600; box-shadow: var(--shade-primary); }
.btn-p:hover { background: var(--action-hover); }
.btn-s { background: var(--surface-raised); color: var(--text-primary); border-color: var(--line-control); box-shadow: inset 0 1px 0 var(--line-highlight), var(--shade-button); }
.btn-s:hover { background: var(--surface-hover); }
.btn-q { background: transparent; color: var(--text-secondary); }
.btn-q:hover { background: var(--surface-hover); color: var(--text-primary); }
.btn.small { height: 28px; padding: 0 10px; font-size: var(--size-chip); border-radius: var(--radius-door); }
.memchip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-chip); border-radius: var(--radius-pill); padding: 5px 10px 5px 8px; font-size: var(--size-chip); color: var(--text-secondary); box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 16%, transparent); width: fit-content; }
.memchip a { font-weight: 600; }
.condense { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: var(--size-chip); }
.condense::before, .condense::after { content: ""; flex: 1; height: 1px; background: var(--line-hairline); }
.brief { display: grid; gap: 10px; }
.brief .h { font-size: var(--size-control); font-weight: 600; color: var(--text-primary); margin-top: 6px; }
.brief ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.brief .line { display: flex; align-items: center; gap: 10px; font-size: var(--size-body); }
.brief .line .pill-open { margin-left: auto; }
.brief .cov { font-size: var(--size-chip); color: var(--text-muted); }
.ask1 { max-width: 460px; padding: 14px 16px; display: grid; gap: 10px; }
.ask1 .t { font-size: var(--size-control); color: var(--text-primary); }
.ask1 .t b { font-weight: 600; }
.ask1 .foot { display: flex; gap: 8px; }

/* ---------- a run's tab ---------- */
.runhead { padding: 18px 0 0; }
.runhead .col { display: grid; gap: 6px; }
.runhead .t { display: flex; align-items: center; gap: 10px; }
.runhead h2 { font-size: var(--size-heading); font-weight: var(--weight-heading); letter-spacing: var(--tracking-heading); }
.runhead .d { font-size: var(--size-control); color: var(--text-muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.minimap { display: flex; align-items: center; flex-wrap: wrap; row-gap: 6px; margin-top: 12px; padding: 10px 12px; background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); }
.mstep { display: inline-flex; align-items: center; gap: 6px; font-size: var(--size-chip); color: var(--text-muted); white-space: nowrap; padding: 5px 8px; border-radius: var(--radius-door); position: relative; }
.mstep .no { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: var(--size-label); font-weight: 600; background: var(--surface-chip); color: var(--text-secondary); flex: none; }
.mstep.done { color: var(--text-secondary); }
.mstep.done .no { background: var(--surface-chip); color: var(--status-ok); }
.mstep.lit { color: var(--text-primary); font-weight: 600; background: var(--surface-sunken); box-shadow: inset 0 0 0 1.5px var(--line-selected); }
.mstep.lit .no { background: var(--action-solid); color: var(--text-on-action); }
.mwire { width: 12px; height: 1px; background: var(--line-hover); flex: none; }
.mstep .again { margin-left: 2px; font-size: var(--size-label); color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font-weight: 500; }
.actions { display: grid; gap: 6px; font-size: var(--size-control); }
.actions .a { display: flex; gap: 8px; align-items: flex-start; }
.actions .a svg { margin-top: 2px; }
.actions .a.ok svg { color: var(--status-ok); } .actions .a.warn svg { color: var(--status-warn); }
.actions .fix { color: var(--text-secondary); }

/* ---------- the picker (part 50) ---------- */
.picker { position: absolute; top: 44px; width: 300px; padding: 4px; z-index: 5; }
.picker .ph { font-size: var(--size-chip); font-weight: 600; color: var(--text-muted); padding: 8px 10px 6px; }
.prow { display: grid; gap: 2px; padding: 8px 10px; border-radius: var(--radius-item); border: 1.5px solid transparent; cursor: pointer; }
.prow:hover { background: var(--surface-hover); }
.prow.sel { border-color: var(--line-selected); background: var(--surface-raised); }
.prow.sel:hover { background: var(--surface-raised); }
.prow .l1 { display: flex; align-items: baseline; gap: 8px; font-size: var(--size-control); font-weight: 600; }
.prow .l1 .area { font-weight: 400; color: var(--text-muted); font-size: var(--size-chip); }
.prow .role { font-size: var(--size-chip); color: var(--text-muted); }
.pdiv { height: 1px; background: var(--line-divider); margin: 4px 6px; }
.pnote { font-size: var(--size-chip); color: var(--text-muted); padding: 6px 10px 8px; line-height: 1.4; }
.pfoot { padding: 6px; }
.pfoot .btn { width: 100%; }

/* ---------- history, the drawer (D3 A) ---------- */
.drawer { position: absolute; left: 0; top: 0; bottom: 0; width: 300px; background: var(--surface-raised); border-right: 1px solid var(--line-hairline); box-shadow: var(--elevation-modal); z-index: 4; display: flex; flex-direction: column; }
.drawer .dh { padding: 12px 12px 8px; display: grid; gap: 8px; border-bottom: 1px solid var(--line-divider); }
.drawer .newchat { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px; border-radius: var(--radius-door); font-size: var(--size-control); font-weight: 500; cursor: pointer; }
.drawer .newchat:hover { background: var(--surface-hover); }
.field { height: 36px; border: 1px solid var(--line-control); border-radius: var(--radius-input); padding: 0 11px; font-size: var(--text-field); background: var(--surface-raised); color: var(--text-primary); box-shadow: var(--shade-field); display: flex; align-items: center; gap: 8px; }
.field.small { height: 32px; }
.field .ph { color: var(--text-muted); }
.field svg { color: var(--text-muted); }
.drawer .grp { font-size: var(--size-chip); font-weight: 600; color: var(--text-muted); padding: 10px 12px 4px; }
.hrow { display: flex; align-items: center; gap: 10px; height: var(--row-height); padding: 0 8px 0 12px; font-size: var(--size-control); cursor: pointer; }
.hrow:hover { background: var(--surface-hover); }
.hrow[aria-current="true"] { background: var(--surface-active); }
.hrow .n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.hrow .w { color: var(--text-muted); font-size: var(--size-chip); flex: none; }
.hrow .more { width: 24px; height: 24px; border-radius: var(--radius-item); display: none; place-items: center; color: var(--text-muted); }
.hrow:hover .more, .hrow.menu-open .more { display: inline-grid; }
.hrow .more.on { background: var(--surface-pressed); color: var(--text-primary); }
.menu { position: absolute; width: 180px; padding: 4px; z-index: 6; }
.mi { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 8px; border-radius: var(--radius-item); font-size: var(--size-control); font-weight: 500; color: var(--text-primary); cursor: pointer; }
.mi:hover { background: var(--surface-hover); }
.mi svg { color: var(--text-secondary); }
.mi .k { margin-left: auto; font-size: var(--size-label); color: var(--text-muted); }
.empty { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 28px 20px; color: var(--text-secondary); }
.empty svg { color: var(--text-muted); }
.empty h4 { margin: 0; font-family: var(--font-heading); font-size: var(--size-heading); font-weight: var(--weight-heading); color: var(--text-heading); }
.empty p { margin: 0; font-size: var(--size-control); color: var(--text-muted); max-width: 320px; }
.scrim { position: absolute; inset: 0; background: var(--scrim); z-index: 3; }
.recents-btn { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- the bell list (S5) ---------- */
.notif { position: absolute; top: 46px; right: 12px; width: 400px; padding: 0; overflow: hidden; z-index: 5; }
.notif-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px 10px 16px; border-bottom: 1px solid var(--line-divider); }
.notif-h b { font-size: var(--size-body); font-weight: 600; margin-right: auto; }
.lnk { background: none; border: 0; padding: 0; color: var(--action-default); font-size: var(--size-chip); font-weight: 500; cursor: pointer; }
.lnk:hover { text-decoration: underline; text-underline-offset: 2px; }
.notif-list { padding: 4px; }
.nrow { display: grid; grid-template-columns: 14px 1fr auto; grid-template-rows: auto auto; column-gap: 8px; row-gap: 2px; padding: 8px 10px; border-radius: var(--radius-item); cursor: pointer; }
.nrow:hover { background: var(--surface-hover); }
.nrow .dotcol { grid-row: 1 / span 2; display: flex; align-items: center; justify-content: center; }
.nrow .t { font-size: var(--size-control); color: var(--text-primary); }
.nrow.unread .t { font-weight: 600; }
.nrow .age { font-size: var(--size-chip); color: var(--text-muted); }
.nrow .d { grid-column: 2 / span 2; font-size: var(--size-chip); color: var(--text-muted); }
.notif-f { display: flex; justify-content: center; padding: 10px; border-top: 1px solid var(--line-divider); }

/* ---------- report a problem (K6) ---------- */
.modal { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 480px; background: var(--surface-raised); border-radius: var(--radius-panel); box-shadow: var(--elevation-modal); padding: var(--space-24); z-index: 5; display: grid; gap: 14px; }
.modal h3 { font-size: var(--size-heading); font-weight: var(--weight-heading); letter-spacing: var(--tracking-heading); }
.modal p { margin: 0; color: var(--text-secondary); font-size: var(--size-control); }
.flabel { display: block; font-size: var(--size-control); font-weight: var(--weight-control); margin-bottom: 6px; }
.textarea { min-height: 96px; border: 1px solid var(--line-control); border-radius: var(--radius-input); padding: 10px 11px; font-size: var(--text-field); color: var(--text-muted); box-shadow: var(--shade-field); background: var(--surface-raised); }
.fhint { font-size: var(--size-chip); color: var(--text-muted); margin-top: 6px; }
.dropzone { border: 1px dashed var(--line-control); border-radius: var(--radius-input); padding: 12px; font-size: var(--size-control); color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; }
.toast { position: absolute; right: 16px; bottom: 44px; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; width: 360px; z-index: 5; }
.toast svg { color: var(--status-ok); margin-top: 2px; }
.toast .t { font-size: var(--size-control); font-weight: 600; }
.toast .d { font-size: var(--size-chip); color: var(--text-secondary); margin-top: 2px; }

/* ---------- the storyboard strip (R491h) ---------- */
.story { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; max-width: 1280px; }
.sframe { background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: 12px; display: grid; gap: 8px; }
.sframe .num { font-size: var(--size-label); font-weight: 600; color: var(--text-muted); letter-spacing: var(--label-tracking); }
.sketch { height: 96px; border-radius: var(--radius-input); background: var(--surface-page); border: 1px solid var(--line-hairline); position: relative; overflow: hidden; }
.sk-rail { position: absolute; left: 0; top: 0; bottom: 0; width: 22%; background: var(--surface-rail); border-right: 1px solid var(--line-hairline); }
.sk-rail i, .sk-line { display: block; height: 3px; border-radius: 2px; background: var(--surface-pressed); position: absolute; }
.sk-tab { position: absolute; top: 6px; height: 8px; border-radius: 3px 3px 0 0; background: var(--surface-raised); border: 1px solid var(--line-hairline); border-bottom: 0; }
.sk-card { position: absolute; background: var(--surface-raised); border: 1px solid var(--line-hairline); border-radius: 4px; }
.sk-dot { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--status-attention); }
.sk-blue { position: absolute; height: 8px; border-radius: 3px; background: var(--action-solid); }
.sframe .who { font-size: var(--size-chip); color: var(--text-secondary); line-height: 1.35; }
.sframe .who b { color: var(--text-primary); font-weight: 600; }

/* ---------- the foot: placements, checks ---------- */
.foot-section { margin-top: 48px; max-width: var(--reading-column); }
.foot-section h2 { font-size: var(--size-title); font-weight: var(--weight-title); letter-spacing: var(--tracking-title); margin-bottom: 12px; }
.dtable { width: 100%; border-collapse: collapse; font-size: var(--size-control); background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); overflow: hidden; }
.dtable th { text-align: left; font-size: var(--size-label); font-weight: 600; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--text-muted); padding: 10px 14px; background: var(--surface-sunken); border-bottom: 1px solid var(--line-hairline); }
.dtable td { padding: 10px 14px; border-bottom: 1px solid var(--line-divider); vertical-align: top; color: var(--text-secondary); }
.dtable td:first-child { color: var(--text-primary); font-weight: 600; white-space: nowrap; }
.dtable tr:last-child td { border-bottom: 0; }
.dtable b { color: var(--text-primary); font-weight: 600; }
ul.plain { margin: 0; padding-left: 18px; color: var(--text-secondary); font-size: var(--size-control); display: grid; gap: 4px; }

/* ---------- picks: the choice beside its screen (his ask, 30 September 2026) ---------- */
.pick { max-width: 1280px; margin: 14px 0 0; background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: 16px 18px 14px; }
.pick-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.pick-h .n { width: 24px; height: 24px; border-radius: 50%; background: var(--action-solid); color: var(--text-on-action); font-size: var(--size-chip); font-weight: 600; display: inline-grid; place-items: center; flex: none; }
.pick-h b { font-size: var(--size-body); font-weight: 600; }
.pick-h span { font-size: var(--size-control); color: var(--text-muted); }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 320px)); gap: 12px; }
.opt .thumb .dcard { pointer-events: none; }
.opt { text-align: left; background: var(--surface-raised); border: 1.5px solid var(--line-hairline); border-radius: var(--radius-card); padding: 10px; cursor: pointer; display: grid; gap: 8px; font-family: inherit; color: var(--text-primary); }
.opt:hover { border-color: var(--line-hover); }
.opt[aria-pressed="true"] { border-color: var(--line-selected); }
.opt .thumb { height: 110px; border-radius: var(--radius-input); background: var(--surface-page); border: 1px solid var(--line-hairline); position: relative; overflow: hidden; }
.opt .lab { display: flex; align-items: center; gap: 8px; font-size: var(--size-control); font-weight: 600; }
.opt .lab .tick { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-control); display: inline-grid; place-items: center; color: var(--text-on-action); flex: none; }
.opt[aria-pressed="true"] .lab .tick { background: var(--action-solid); border-color: var(--action-solid); }
.opt .lab .tick svg { width: 11px; height: 11px; opacity: 0; }
.opt[aria-pressed="true"] .lab .tick svg { opacity: 1; }
.opt .rec { margin-left: auto; font-size: var(--size-label); font-weight: 600; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--text-muted); }
.opt .why { font-size: var(--size-chip); color: var(--text-muted); line-height: 1.35; }
.picks-foot { position: sticky; bottom: 0; z-index: 20; margin-top: 32px; display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--glass-floating-bg); backdrop-filter: blur(var(--glass-blur)) saturate(160%); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%); border: 1px solid var(--glass-line); border-radius: var(--radius-popover); box-shadow: inset 0 1px 0 var(--glass-highlight), var(--elevation-popover); max-width: 1280px; }
.picks-foot .sum { font-size: var(--size-control); color: var(--text-secondary); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picks-foot .sum b { color: var(--text-primary); font-weight: 600; }
.picks-foot .done { font-size: var(--size-chip); color: var(--status-ok); font-weight: 600; display: none; }
.decided { max-width: var(--reading-column); }
.decided .row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line-divider); font-size: var(--size-control); color: var(--text-secondary); }
.decided .row:first-of-type { border-top: 0; }
.decided .row b { color: var(--text-primary); font-weight: 600; }
.decided .alt { display: none; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.decided .row.open .alt { display: flex; }
.decided .alt button { height: 28px; padding: 0 10px; border-radius: var(--radius-door); border: 1px solid var(--line-control); background: var(--surface-raised); font-size: var(--size-chip); font-weight: 600; cursor: pointer; font-family: inherit; color: var(--text-primary); }
.decided .alt button[aria-pressed="true"] { border-color: var(--line-selected); box-shadow: inset 0 0 0 1px var(--line-selected); }

.opt .thumb { height: 190px; overflow: hidden; position: relative; background: var(--surface-page); }
.opt .thumb .real { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.opt .thumb .real.s45 { transform: scale(0.45); width: 700px; }
.opt .thumb .real.s60 { transform: scale(0.60); width: 500px; }
.opt .thumb .real.s70 { transform: scale(0.70); width: 420px; }
.opt .thumb .real.s100 { transform: none; width: 232px; }
.opt .thumb .caplbl { position: absolute; left: 8px; top: 8px; z-index: 2; font-size: var(--size-label); font-weight: 600; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--text-muted); background: var(--surface-raised); padding: 2px 6px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-hairline); }
.frame.flash { outline: 3px solid var(--line-selected); outline-offset: 4px; transition: outline-color 1.2s var(--easing); }
.frame.flash.fade { outline-color: transparent; }

/* ---------- batch 2 additions, every value a kit job name ---------- */
.story { grid-template-columns: repeat(8, 1fr); }
.titlerow { display: flex; align-items: flex-start; gap: 16px; padding: 22px 32px 0; }
.titlerow h1 { font-size: var(--size-title); font-weight: var(--weight-title); letter-spacing: var(--tracking-title); line-height: 1.2; }
.titlerow .desc { margin: 4px 0 0; font-size: var(--size-control); color: var(--text-muted); }
.titlerow .acts { margin-left: auto; display: flex; align-items: center; gap: 8px; position: relative; }
.pagebody { flex: 1; min-height: 0; overflow: hidden; position: relative; padding: 18px 32px 0; }
.col820 { width: var(--reading-column); max-width: 100%; margin: 0 auto; }
.seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: var(--radius-tabs); background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--line-hairline); }
.seg > span { height: 28px; padding: 0 12px; border-radius: var(--radius-door); display: inline-flex; align-items: center; gap: 6px; font-size: var(--size-control); font-weight: var(--weight-control); color: var(--text-secondary); cursor: pointer; }
.seg > span[aria-selected="true"] { background: var(--tab-selected); color: var(--text-primary); font-weight: 600; box-shadow: 0 0 0 1px var(--tab-line), 0 1px 2px rgba(17,17,17,0.08); }
.qtools { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.qtools .n { font-size: var(--size-control); color: var(--text-muted); margin-left: auto; }
.queue { display: grid; gap: 10px; }
.qitem { background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: 14px 18px 12px; display: grid; gap: 4px; cursor: pointer; }
.qitem:hover { border-color: var(--line-hover); }
.qitem.sel { border: 1.5px solid var(--line-selected); padding: 13.5px 17.5px 11.5px; }
.qitem .l1 { display: flex; align-items: center; gap: 10px; }
.qitem .l1 .t { font-size: var(--size-body); font-weight: 600; flex: 1; min-width: 0; line-height: 1.35; }
.qitem.read .l1 .t { font-weight: 500; }
.qitem .l1 .pill-open { flex: none; }
.qitem .l2 { font-size: var(--size-control); color: var(--text-muted); padding-left: 18px; }
.qitem .l2 b { color: var(--text-secondary); font-weight: 500; }
.qitem .l3 { font-size: var(--size-control); color: var(--text-secondary); padding-left: 18px; }
.qitem.done { opacity: 1; }
.qitem.done .l1 .t { color: var(--text-secondary); font-weight: 500; }
/* the Everyone rows: dense table rows (rule 5) */
.evtable { width: 100%; border-collapse: collapse; background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); overflow: hidden; font-size: var(--size-control); }
.evtable th { text-align: left; font-size: var(--size-label); font-weight: 600; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--text-muted); padding: 0 14px; height: 34px; background: var(--surface-sunken); border-bottom: 1px solid var(--line-hairline); }
.evtable td { padding: 0 14px; height: var(--row-height); border-bottom: 1px solid var(--line-divider); color: var(--text-secondary); white-space: nowrap; }
.evtable td:first-child { color: var(--text-primary); font-weight: 500; white-space: normal; }
.evtable tr:last-child td { border-bottom: 0; }
.evtable .who { display: inline-flex; align-items: center; gap: 6px; }
.evtable .reassign { color: var(--action-default); font-weight: 500; }
/* the viewer, shape A, opened as a side panel */
.viewer { position: absolute; top: 0; right: 0; bottom: 0; width: 820px; background: var(--surface-raised); box-shadow: var(--elevation-modal); z-index: 5; display: flex; flex-direction: column; }
.viewer.w420 { width: 420px; }
.vhead { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px 12px; border-bottom: 1px solid var(--line-divider); }
.vhead .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.vhead h3 { font-size: var(--size-heading); font-weight: var(--weight-heading); letter-spacing: var(--tracking-heading); margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.vhead .x { margin-left: auto; }
.vbody { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 280px; }
.vdoc { padding: 18px 20px 16px; overflow: hidden; display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--line-divider); }
.vdoc .meta { font-size: var(--size-control); color: var(--text-secondary); display: grid; gap: 2px; }
.vdoc .meta b { color: var(--text-primary); font-weight: 500; }
.bl { display: grid; gap: 4px; }
.bl .blh { font-size: var(--size-control); font-weight: 600; color: var(--text-primary); }
.bl p { margin: 0; font-size: var(--size-body); line-height: 1.5; }
.src { display: inline-flex; align-items: center; gap: 4px; vertical-align: 1px; margin-left: 4px; padding: 2px 7px; border-radius: var(--radius-pill); background: var(--surface-chip); color: var(--text-secondary); font-size: var(--size-chip); font-weight: var(--weight-chip); line-height: 1.2; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 16%, transparent); cursor: pointer; white-space: nowrap; }
.src:hover { background: var(--surface-pressed); }
.srcline { font-size: var(--size-chip); color: var(--text-muted); margin-top: 2px; }
.srcline a { font-weight: 500; }
.acts-list { display: grid; gap: 6px; font-size: var(--size-control); }
.acts-list .a { display: grid; grid-template-columns: 16px 1fr auto; gap: 8px; align-items: start; }
.acts-list .a svg { margin-top: 2px; } .acts-list .a.ok svg { color: var(--status-ok); } .acts-list .a.warn svg { color: var(--status-warn); }
.acts-list .age { font-size: var(--size-chip); color: var(--text-muted); }
.payload { background: var(--surface-sunken); border: 1px solid var(--line-hairline); border-radius: var(--radius-input); padding: 14px 16px; font-size: var(--size-control); color: var(--text-secondary); display: grid; gap: 8px; }
.payload .subj { font-size: var(--size-body); font-weight: 600; color: var(--text-primary); }
.payload p { margin: 0; line-height: 1.5; }
.payload .edited { display: inline-block; font-size: var(--size-chip); color: var(--text-muted); }
.vcomposer { margin-top: auto; background: var(--surface-raised); border: 1px solid var(--line-control); border-radius: var(--radius-card); box-shadow: inset 0 1px 0 var(--line-highlight), var(--shade-button); padding: 10px 12px 8px 14px; }
.vcomposer .ph { font-size: var(--size-control); color: var(--text-muted); }
.vcomposer .ph.typed { color: var(--text-primary); }
.vcomposer .row { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.vrail { background: var(--surface-sunken); padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.rsec { font-size: var(--size-control); font-weight: 600; color: var(--text-primary); }
.rrow { display: flex; align-items: center; gap: 8px; font-size: var(--size-control); color: var(--text-secondary); }
.rrow svg { color: var(--text-secondary); }
.facts { display: grid; gap: 8px; }
.fact { display: grid; gap: 1px; font-size: var(--size-control); }
.fact .k { font-size: var(--size-chip); color: var(--text-muted); }
.fact .v { color: var(--text-primary); }
.chain { display: grid; gap: 6px; }
.vfoot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-hairline); display: grid; gap: 8px; }
.vfoot .btns { display: flex; gap: 6px; flex-wrap: wrap; }
.vfoot .btns .btn { flex: 1 1 auto; }
.vfoot .integrity { font-size: var(--size-chip); color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.vfoot .timed { font-size: var(--size-chip); color: var(--text-secondary); }
.note-line { font-size: var(--size-chip); color: var(--text-muted); }
.fgline { font-size: var(--size-control); color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.fgline a { font-weight: 500; }
/* the reason menu */
.reason { position: absolute; width: 260px; padding: 4px; z-index: 8; }
.reason .h { font-size: var(--size-chip); font-weight: 600; color: var(--text-muted); padding: 8px 10px 4px; }
.reason .field { margin: 4px 6px; }
/* the batch page */
.bhead { display: grid; gap: 4px; margin-bottom: 14px; }
.bhead h2 { font-size: var(--size-heading); font-weight: var(--weight-heading); letter-spacing: var(--tracking-heading); }
.bhead p { margin: 0; font-size: var(--size-control); color: var(--text-secondary); }
.piles { background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: 14px 18px; display: grid; gap: 8px; margin-bottom: 14px; }
.piles .ph { font-size: var(--size-control); font-weight: 600; }
.pile { display: grid; grid-template-columns: 16px 1fr auto; gap: 10px; align-items: center; font-size: var(--size-control); height: 30px; }
.pile .cb { width: 16px; height: 16px; border-radius: var(--radius-checkbox); background: var(--action-solid); color: var(--text-on-action); display: inline-grid; place-items: center; }
.pile .cb.off { background: var(--surface-raised); box-shadow: inset 0 0 0 1.5px var(--line-control); }
.pile .cb.mixed { background: var(--action-solid); }
.pile .r { font-size: var(--size-chip); color: var(--text-muted); }
.pile .r a { font-weight: 500; }
.pile.sub { padding-left: 26px; height: 26px; color: var(--text-secondary); }
.bcard { background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: 14px 18px; display: grid; gap: 8px; }
.bcard .top { display: flex; align-items: center; gap: 8px; }
.bcard .top .t { font-size: var(--size-body); font-weight: 600; flex: 1; }
.bcard .to { font-size: var(--size-chip); color: var(--text-muted); }
.bcard .body { font-size: var(--size-control); color: var(--text-secondary); line-height: 1.5; }
.bcard .foot { display: flex; align-items: center; gap: 6px; }
.bcard .foot .st { margin-left: auto; font-size: var(--size-chip); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.bcard .foot .st.ok { color: var(--status-ok); } .bcard .foot .st.warn { color: var(--status-warn); } .bcard .foot .st.mute { color: var(--text-muted); }
.bfoot { display: flex; align-items: center; gap: 12px; background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); padding: 12px 18px; box-shadow: var(--elevation-card); }
.bfoot .n { margin-left: auto; font-size: var(--size-control); color: var(--text-muted); }
/* the provide form */
.provide { background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: 18px 20px 16px; display: grid; gap: 16px; max-width: 560px; }
.provide .pr { font-size: var(--size-body); }
.fld { display: grid; gap: 6px; }
.fld .lab { font-size: var(--size-control); font-weight: var(--weight-control); display: flex; align-items: baseline; gap: 8px; }
.fld .lab .req { font-size: var(--size-chip); color: var(--text-muted); font-weight: 500; }
.fld .hint { font-size: var(--size-chip); color: var(--text-muted); }
.field.wrong { border-color: var(--status-danger); }
.fld .hint.wrong { color: var(--status-danger); display: inline-flex; align-items: center; gap: 4px; }
.radios { display: grid; gap: 6px; }
.radio { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; border: 1px solid var(--line-hairline); border-radius: var(--radius-input); font-size: var(--size-control); cursor: pointer; }
.radio .dot { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-control); display: inline-grid; place-items: center; }
.radio.on { border: 1.5px solid var(--line-selected); }
.radio.on .dot { box-shadow: inset 0 0 0 1.5px var(--action-default); }
.radio.on .dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--action-default); }
.wb-card { background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: 12px 14px; display: grid; gap: 4px; width: 300px; }
.wb-card .t { font-size: var(--size-control); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.wb-card .m { font-size: var(--size-chip); color: var(--text-muted); }
/* the dialog (W4), destructive */
.dlg { width: 460px; background: var(--surface-raised); border-radius: var(--radius-panel); box-shadow: var(--elevation-modal); padding: 20px 22px 18px; display: grid; gap: 14px; }
.dlg h3 { font-size: var(--size-heading); font-weight: var(--weight-heading); letter-spacing: var(--tracking-heading); display: flex; align-items: center; }
.dlg h3 .x { margin-left: auto; }
.dlg p { margin: 0; font-size: var(--size-control); color: var(--text-secondary); }
.changes { border: 1px solid var(--line-hairline); border-radius: var(--radius-input); overflow: hidden; }
.changes .cr { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 0 12px; height: 34px; align-items: center; font-size: var(--size-control); border-bottom: 1px solid var(--line-divider); }
.changes .cr:last-child { border-bottom: 0; }
.changes .cr .c { color: var(--text-muted); font-size: var(--size-chip); }
.changes .more { padding: 6px 12px; font-size: var(--size-chip); color: var(--text-muted); background: var(--surface-sunken); }
.dlg .foot { display: flex; align-items: center; gap: 8px; }
.dlg .foot .btn:last-child { margin-left: auto; }
.btn-d { background: var(--status-danger); color: var(--text-on-action); font-weight: 600; box-shadow: var(--shade-primary); }
.btn-d.off { background: var(--disabled-bg); color: var(--disabled-text); box-shadow: none; cursor: default; }
.field .typed { color: var(--text-primary); font-weight: 600; letter-spacing: 0.04em; }
/* the change record (a display part) */
.chg { background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: 14px 18px; display: grid; gap: 8px; max-width: 620px; }
.chg .h { font-size: var(--size-control); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.chg .h .age { margin-left: auto; font-weight: 400; color: var(--text-muted); font-size: var(--size-chip); }
.chg table { width: 100%; border-collapse: collapse; font-size: var(--size-control); }
.chg th { text-align: left; font-size: var(--size-label); font-weight: 600; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--text-muted); padding: 4px 8px 6px 0; border-bottom: 1px solid var(--line-hairline); }
.chg td { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line-divider); color: var(--text-secondary); }
.chg td.now { color: var(--text-primary); }
.chg .undo { font-size: var(--size-chip); color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.chg .undo a { font-weight: 500; }
/* focus group */
.fgpanel { display: grid; gap: 8px; }
.fgrow { border: var(--card-border); border-radius: var(--radius-input); padding: 10px 12px; display: grid; gap: 4px; background: var(--surface-raised); }
.fgrow .t { display: flex; align-items: center; gap: 8px; font-size: var(--size-control); font-weight: 600; }
.fgrow .t .chip { margin-left: auto; }
.fgrow p { margin: 0; font-size: var(--size-control); color: var(--text-secondary); line-height: 1.45; }
.fgrow .trail { font-size: var(--size-chip); color: var(--text-muted); border-top: 1px solid var(--line-divider); padding-top: 6px; }
/* three small states side by side */
#f-b2 { height: 1000px; }
.states.four { display: grid; grid-template-columns: 420px 280px 280px 300px; gap: 24px; }
.states.four .pane280, .states.four > .state > div:last-child { height: 560px !important; }
.states.four .chg { font-size: var(--size-chip); }
.states.four .chg td, .states.four .chg th { padding: 4px 6px 4px 0; }
.trio .dlg { box-shadow: var(--elevation-card); border: var(--card-border); border-radius: var(--radius-card); }
/* the queue drawn Swan's way, in our kit (his ask, 30 September) */
.scard { background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: 16px 18px 14px; display: grid; gap: 8px; }
.scard .top { display: flex; align-items: center; gap: 6px; }
.scard .top .age { margin-left: auto; font-size: var(--size-chip); color: var(--text-muted); }
.scard .ent { display: flex; align-items: center; gap: 8px; font-size: var(--size-control); color: var(--text-secondary); flex-wrap: wrap; }
.scard .ent b { color: var(--text-primary); font-weight: 600; }
.scard .ent .tags { color: var(--text-muted); }
.scard .ttl { font-size: var(--size-body); font-weight: 600; line-height: 1.35; }
.scard .sum { font-size: var(--size-control); color: var(--text-secondary); line-height: 1.5; }
.scard .sum b { color: var(--text-primary); font-weight: 600; }
.scard .rcp { font-size: var(--size-chip); color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.scard .foot { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.scard .foot .integrity { margin-left: auto; font-size: var(--size-chip); color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1280px; }
.trio .box { background: var(--surface-page); border: 1px solid var(--line-hairline); border-radius: 4px; padding: 24px; min-height: 380px; position: relative; display: grid; align-content: start; gap: 12px; }
.trio .cap { font-size: var(--size-chip); color: var(--text-muted); }
.pane280 { width: 280px; background: var(--surface-sunken); border: 1px solid var(--line-hairline); border-radius: var(--radius-input); padding: 14px; display: grid; gap: 12px; }
/* copy link popover, version diff popover */
.pop { position: absolute; width: 320px; padding: 12px 14px; z-index: 8; display: grid; gap: 10px; }
.pop .h { font-size: var(--size-control); font-weight: 600; }
.pop .opt2 { display: grid; gap: 6px; }
.pop .radio { height: auto; min-height: 40px; padding: 8px 12px; align-items: center; }
.pop .radio .d { line-height: 1.3; }
.pop .radio .d { display: grid; gap: 0; }
.pop .radio .d small { font-size: var(--size-chip); color: var(--text-muted); }
.diff { font-size: var(--size-control); line-height: 1.5; display: grid; gap: 6px; }
.diff del { color: var(--status-danger); background: var(--status-danger-tint); text-decoration: line-through; padding: 0 2px; border-radius: 3px; }
.diff ins { color: var(--status-ok); background: var(--status-ok-tint); text-decoration: none; padding: 0 2px; border-radius: 3px; }
.diff .f { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.artcard { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; max-width: 560px; }
.artcard .tile { width: 36px; height: 36px; border-radius: var(--radius-input); background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--line-hairline); display: grid; place-items: center; color: var(--text-secondary); }
.artcard .t { font-size: var(--size-body); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.artcard .m { font-size: var(--size-chip); color: var(--text-muted); margin-top: 2px; }
.readdoc { display: grid; gap: 10px; }
.readdoc h4 { margin: 0; font-family: var(--font-heading); font-size: var(--size-heading); font-weight: var(--weight-heading); }
.readdoc p { margin: 0; font-size: var(--size-body); line-height: 1.5; }
.readdoc .nstrip { display: flex; gap: 0; background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-input); }
.readdoc .nstrip > div { flex: 1; padding: 10px 14px; border-right: 1px solid var(--line-divider); display: grid; gap: 2px; }
.readdoc .nstrip > div:last-child { border-right: 0; }
.readdoc .nstrip .k { font-size: var(--size-chip); color: var(--text-muted); }
.readdoc .nstrip .v { font-family: var(--font-heading); font-size: var(--size-title); font-weight: var(--weight-title); }
.readdoc .nstrip .c { font-size: var(--size-chip); color: var(--text-muted); }
.fallback { font-size: var(--size-chip); color: var(--text-muted); }




/* ============================================================
   Batch 3 additions. Two kit job names batch 2 did not need are copied from design/tokens.json
   (chart steps, his "D4 - B"; the dragging elevation); nothing else is a new value.
   ============================================================ */
:root {
  --chart-step-1: #1F3BFF; --chart-step-2: #4C62FF; --chart-step-3: #7989FF; --chart-step-4: #A5B1FF; --chart-step-5: #D2D8FF;
  --elevation-dragging: 0 8px 24px rgba(17,17,17,0.14);
}
.story { grid-template-columns: repeat(6, 1fr); }
.titlerow { display: flex; align-items: flex-start; gap: 16px; padding: 22px 32px 0; }
.titlerow h1 { font-size: var(--size-title); font-weight: var(--weight-title); letter-spacing: var(--tracking-title); line-height: 1.2; display: flex; align-items: center; gap: 10px; }
.titlerow .desc { margin: 4px 0 0; font-size: var(--size-control); color: var(--text-muted); }
.titlerow .prov { margin: 2px 0 0; font-size: var(--size-chip); color: var(--text-muted); }
.titlerow .acts { margin-left: auto; display: flex; align-items: center; gap: 8px; position: relative; }
.back { display: inline-flex; align-items: center; gap: 4px; font-size: var(--size-control); font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; cursor: pointer; }
.back:hover { color: var(--text-primary); }
.pagebody { flex: 1; min-height: 0; overflow: hidden; position: relative; padding: 16px 32px 0; }
.col820 { width: var(--reading-column); max-width: 100%; margin: 0 auto; }
.seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: var(--radius-tabs); background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--line-hairline); }
.seg > span { height: 28px; padding: 0 12px; border-radius: var(--radius-door); display: inline-flex; align-items: center; gap: 6px; font-size: var(--size-control); font-weight: var(--weight-control); color: var(--text-secondary); cursor: pointer; white-space: nowrap; }
.seg > span[aria-selected="true"] { background: var(--tab-selected); color: var(--text-primary); font-weight: 600; box-shadow: 0 0 0 1px var(--tab-line), 0 1px 2px rgba(17,17,17,0.08); }
.seg.sm > span { height: 24px; padding: 0 10px; font-size: var(--size-chip); }
.sec-h { display: flex; align-items: flex-end; gap: 12px; margin: 18px 0 10px; }
.sec-h h2 { font-size: var(--size-heading); font-weight: var(--weight-heading); letter-spacing: var(--tracking-heading); }
.sec-h p { margin: 2px 0 0; font-size: var(--size-control); color: var(--text-muted); }
.sec-h .r { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.muted { color: var(--text-muted); }
.sm-txt { font-size: var(--size-chip); color: var(--text-muted); }
.cardx { background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); }
.cardx.pad { padding: 16px 20px; }
.cardx h3 { font-size: var(--size-heading); font-weight: var(--weight-heading); letter-spacing: var(--tracking-heading); }
.sub { font-size: var(--size-control); font-weight: 600; color: var(--text-primary); margin: 12px 0 4px; }
.chip.danger { background: var(--status-danger-tint); color: var(--status-danger); }
.chip.dashed { background: transparent; box-shadow: none; border: 1px dashed var(--line-control); color: var(--text-secondary); padding: 3px 8px; }
.chip.on { background: var(--surface-chip); color: var(--text-primary); }
.chip .x { display: inline-grid; place-items: center; color: var(--text-muted); }
.lnkx { color: var(--action-default); font-weight: 500; cursor: pointer; }
.lnkx:hover { text-decoration: underline; text-underline-offset: 2px; }
.dot-setup { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-control); display: inline-block; flex: none; }
.bar3 { height: 4px; border-radius: var(--radius-pill); background: var(--progress-track); overflow: hidden; }
.bar3 i { display: block; height: 100%; background: var(--progress-fill); }
.spin { animation: none; color: var(--text-secondary); }

/* the dense table (fuse box, tracked list, DNC, tables) */
.tbl { width: 100%; border-collapse: collapse; background: var(--surface-raised); font-size: var(--size-control); }
.tbl th { text-align: left; font-size: var(--size-label); font-weight: 600; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--text-muted); padding: 0 12px; height: 32px; background: var(--surface-sunken); border-bottom: 1px solid var(--line-hairline); white-space: nowrap; }
.tbl td { padding: 0 12px; height: var(--row-height); border-bottom: 1px solid var(--line-divider); color: var(--text-secondary); white-space: nowrap; vertical-align: middle; }
.tbl tr.two td { height: var(--table-row-height); }
.tbl td.tm { color: var(--text-primary); font-weight: 500; white-space: normal; }
.tbl td.tm .l2 { font-size: var(--size-chip); color: var(--text-muted); font-weight: 400; margin-top: 1px; }
.tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl th.num { text-align: right; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.paused td { background: var(--surface-sunken); }
.tbl tr.paused td.tm { color: var(--text-secondary); }
.tbl tr.grp td { height: 28px; font-size: var(--size-chip); color: var(--text-muted); padding-left: 38px; background: var(--surface-raised); border-bottom: 0; }
.tbl tr.subrow td.tm { padding-left: 38px; }
.tbl .arrow { color: var(--text-muted); margin: 0 4px; vertical-align: -2px; }
.tblcard { border: var(--card-border); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--elevation-card); background: var(--surface-raised); }
.tblfoot { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: var(--size-chip); color: var(--text-muted); border-top: 1px solid var(--line-divider); }
.pausebtn { height: 26px; padding: 0 9px; border-radius: var(--radius-door); border: 1px solid var(--line-control); background: var(--surface-raised); font-size: var(--size-chip); font-weight: 600; color: var(--text-primary); display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }

/* offered signal cards */
.ocards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ocard { background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: 12px 16px 10px; display: grid; gap: 6px; align-content: start; }
.ocard .ic18 { color: var(--text-secondary); }
.ocard .nm { font-family: var(--font-heading); font-size: var(--size-heading); font-weight: var(--weight-heading); letter-spacing: var(--tracking-heading); line-height: 1.25; }
.ocard .ln { font-size: var(--size-control); color: var(--text-secondary); line-height: 1.4; }
.ocard .ft { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: var(--size-chip); color: var(--text-muted); }
.ocard .ft .pill-open, .ocard .ft .btn { margin-left: auto; }
.ours { background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); margin-top: 12px; }
.ours .r { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px 6px 16px; border-bottom: 1px solid var(--line-divider); font-size: var(--size-control); }
.ours .r:last-child { border-bottom: 0; }
.ours .r b { font-weight: 600; color: var(--text-primary); }
.ours .r .m { color: var(--text-muted); font-size: var(--size-chip); }
.ours .r .btn { margin-left: auto; }
.banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-input); background: var(--surface-raised); border: var(--card-border); font-size: var(--size-control); color: var(--text-secondary); }
.banner b { color: var(--text-primary); font-weight: 600; }
.banner .lnkx { margin-left: auto; }

/* the stepper and the confirm step */
.stepbar { display: flex; align-items: center; margin: 4px 0 14px; }
.stepcard { background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: 20px; display: grid; gap: 14px; }
.stepcard .h { display: flex; align-items: baseline; gap: 10px; }
.stepcard .h h3 { font-size: var(--size-heading); font-weight: var(--weight-heading); letter-spacing: var(--tracking-heading); }
.stepcard .h .n { font-size: var(--size-chip); color: var(--text-muted); }
.stepcard .lead { font-size: var(--size-control); color: var(--text-secondary); margin: -8px 0 0; }
.progress { display: grid; gap: 6px; }
.progress .t { font-size: var(--size-control); color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }
.progress .t b { color: var(--text-primary); font-weight: 600; }
.well { background: var(--surface-sunken); border: 1px solid var(--line-hairline); border-radius: var(--radius-input); padding: 14px 16px; display: grid; gap: 12px; }
.well .q { display: flex; align-items: baseline; gap: 10px; font-size: var(--size-body); font-weight: 600; }
.well .q .n { margin-left: auto; font-size: var(--size-chip); font-weight: 500; color: var(--text-muted); }
.well .who { font-size: var(--size-control); color: var(--text-secondary); margin-top: -8px; }
.cands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cand { background: var(--surface-raised); border: 1px solid var(--line-hairline); border-radius: var(--radius-input); padding: 10px 12px; display: grid; gap: 2px; cursor: pointer; }
.cand:hover { border-color: var(--line-hover); }
.cand.sel { border: 1.5px solid var(--line-selected); padding: 9.5px 11.5px; }
.cand .nm { font-size: var(--size-control); font-weight: 600; color: var(--text-primary); }
.cand .tt { font-size: var(--size-chip); color: var(--text-secondary); }
.cand .pl { font-size: var(--size-chip); color: var(--text-muted); }
.answers { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.answers .hint { flex-basis: 100%; font-size: var(--size-chip); color: var(--text-muted); }
.pasterow { display: flex; align-items: center; gap: 8px; }
.pasterow .field { flex: 1; }
.stepfoot { display: flex; align-items: center; gap: 8px; }
.stepfoot .sp { flex: 1; }
.pane { background: var(--surface-page); border: 1px solid var(--line-hairline); border-radius: 4px; padding: 16px; display: grid; gap: 10px; align-content: start; }
.states.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1280px; margin-top: 18px; }
.states.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 1280px; margin-top: 18px; }
.states.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1280px; margin-top: 18px; }
.srow { display: flex; align-items: center; gap: 10px; min-height: 44px; border-bottom: 1px solid var(--line-divider); font-size: var(--size-control); color: var(--text-secondary); }
.srow:last-child { border-bottom: 0; }
.srow b { color: var(--text-primary); font-weight: 600; }
.srow .r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.srow .m { display: block; font-size: var(--size-chip); color: var(--text-muted); }

/* the number strip (W15) */
.numstrip { display: flex; background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); }
.numstrip > div { flex: 1; padding: 12px 16px; border-right: 1px solid var(--line-divider); display: grid; gap: 2px; align-content: start; }
.numstrip > div:last-child { border-right: 0; }
.numstrip .k { font-size: var(--size-control); font-weight: 500; color: var(--text-secondary); }
.numstrip .v { font-family: var(--font-heading); font-size: var(--size-title); font-weight: var(--weight-title); letter-spacing: var(--tracking-title); line-height: 1.2; color: var(--text-heading); }
.numstrip .v small { font-family: var(--font-sans); font-size: var(--size-control); font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.numstrip .c { font-size: var(--size-chip); color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.numstrip .ft { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.numstrip .ft .pill-open { margin-left: auto; }
.capline { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: var(--size-chip); color: var(--text-muted); }
.capline .bar3 { width: 180px; }
.capline .r { margin-left: auto; display: flex; gap: 6px; }
.evlist { display: grid; }
.evrow { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line-divider); font-size: var(--size-control); color: var(--text-secondary); }
.evrow:last-child { border-bottom: 0; }
.evrow .s { color: var(--text-primary); }
.evrow .m { font-size: var(--size-chip); color: var(--text-muted); margin-top: 2px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.evrow .age { font-size: var(--size-chip); color: var(--text-muted); white-space: nowrap; }
.summaryline { background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: 12px 16px; font-size: var(--size-body); color: var(--text-secondary); }
.summaryline a { font-weight: 500; }
.summaryline .m { font-size: var(--size-chip); color: var(--text-muted); margin-top: 2px; }
.chiprow { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* the pipeline board (part 66) */
.board { display: flex; gap: 12px; align-items: flex-start; }
.bcol { width: 232px; flex: none; display: grid; gap: 8px; }
.bcol-h { padding: 4px 4px 2px; display: grid; gap: 1px; }
.bcol-h .n { font-size: var(--size-control); font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 6px; }
.bcol-h .n .count { margin-left: 0; }
.bcol-h .m { font-size: var(--size-chip); color: var(--text-muted); }
.sdot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-hover); display: inline-block; flex: none; }
.deal { background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: 10px 12px; display: grid; gap: 4px; cursor: grab; }
.deal .t { font-size: var(--size-control); font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.deal .d { font-size: var(--size-chip); color: var(--text-muted); display: flex; justify-content: space-between; }
.deal .d b { color: var(--text-secondary); font-weight: 500; }
.deal.lift { box-shadow: var(--elevation-dragging); transform: rotate(-1.5deg); position: relative; z-index: 2; border-color: var(--line-hover); }
.drop { border: 1.5px dashed var(--line-hover); border-radius: var(--radius-card); height: 52px; display: grid; place-items: center; font-size: var(--size-chip); color: var(--text-muted); }
.receipt { font-size: var(--size-chip); color: var(--text-secondary); display: flex; align-items: center; gap: 6px; padding: 0 4px; margin-top: -2px; }
.receipt svg { color: var(--status-ok); }
.bfootcol { border-top: 1px solid var(--line-divider); padding: 6px 4px 0; font-size: var(--size-chip); color: var(--text-muted); }
.boardfoot { display: flex; gap: 24px; padding: 10px 14px; margin-top: 12px; background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); font-size: var(--size-control); color: var(--text-secondary); }
.boardfoot b { color: var(--text-primary); font-weight: 600; }
.picker-field { height: 32px; border: 1px solid var(--line-control); border-radius: var(--radius-input); padding: 0 10px; font-size: var(--size-control); font-weight: 500; background: var(--surface-raised); color: var(--text-primary); box-shadow: var(--shade-field); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.filterbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.pillswitch { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--surface-chip); color: var(--text-primary); font-size: var(--size-chip); font-weight: 600; cursor: pointer; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 16%, transparent); }
.logo { display: inline-grid; place-items: center; background: var(--surface-raised); border-radius: var(--radius-item); box-shadow: inset 0 0 0 1px var(--line-hairline); flex: none; }
.logo svg { display: block; }
.syncline { font-size: var(--size-chip); color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }

/* the account page (part 67) */
.acct-head { background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: 16px 20px; display: grid; gap: 8px; }
.acct-head h2 { font-size: var(--size-title); font-weight: var(--weight-title); letter-spacing: var(--tracking-title); }
.acct-head .facts { font-size: var(--size-control); color: var(--text-secondary); }
.acct-head .hrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: var(--size-control); }
.acct-head .vr { width: 1px; height: 18px; background: var(--line-hairline); }
.kv { font-size: var(--size-label); font-weight: 600; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--text-muted); margin-right: 6px; }
.reasons { display: grid; gap: 2px; padding: 8px 12px; background: var(--surface-sunken); border: 1px solid var(--line-hairline); border-radius: var(--radius-input); font-size: var(--size-control); }
.reasons .m { font-size: var(--size-chip); color: var(--text-muted); }
.acct-grid { display: grid; grid-template-columns: 1fr 300px; gap: 16px; margin-top: 16px; align-items: start; }
.acol { display: grid; gap: 16px; }
.acard { background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: 16px 20px; display: grid; gap: 4px; }
.acard h3 { font-size: var(--size-heading); font-weight: var(--weight-heading); letter-spacing: var(--tracking-heading); }
.acard .src2 { font-size: var(--size-chip); color: var(--text-muted); margin-bottom: 4px; }
.arow { display: flex; align-items: center; gap: 10px; min-height: 44px; border-top: 1px solid var(--line-divider); font-size: var(--size-control); color: var(--text-secondary); padding: 6px 0; }
.arow .tx { flex: 1; min-width: 0; display: grid; gap: 1px; }
.arow .tx b { color: var(--text-primary); font-weight: 600; }
.arow .tx .m { font-size: var(--size-chip); color: var(--text-muted); }
.arow .age { font-size: var(--size-chip); color: var(--text-muted); white-space: nowrap; }
.fitem { display: grid; gap: 1px; padding: 6px 0; }
.fitem p { margin: 0; font-size: var(--size-control); color: var(--text-primary); line-height: 1.45; }
.fitem .pv { font-size: var(--size-chip); color: var(--text-muted); }
.pending-line { font-size: var(--size-chip); color: var(--text-muted); border-top: 1px solid var(--line-divider); padding-top: 8px; margin-top: 4px; }

/* Overview (part 68, 69, W15) */
.rangebtn { height: 32px; padding: 0 10px; border: 1px solid var(--line-control); border-radius: var(--radius-input); background: var(--surface-raised); box-shadow: var(--shade-field); display: inline-flex; align-items: center; gap: 8px; font-size: var(--size-control); font-weight: 500; color: var(--text-primary); cursor: pointer; }
.tiles5 { display: grid; grid-template-columns: repeat(5, 1fr); }
.tiles3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.tiles4 { display: grid; grid-template-columns: repeat(4, 1fr); }
.tiles5 > div, .tiles3 > div, .tiles4 > div { padding: 12px 14px; border-right: 1px solid var(--line-divider); display: grid; gap: 2px; align-content: start; }
.tiles5 > div:last-child, .tiles3 > div:last-child, .tiles4 > div:last-child { border-right: 0; }
.tk { font-size: var(--size-control); font-weight: 500; color: var(--text-secondary); }
.tv { font-family: var(--font-heading); font-size: var(--size-title); font-weight: var(--weight-title); letter-spacing: var(--tracking-title); line-height: 1.2; }
.tv small { font-family: var(--font-sans); font-size: var(--size-control); font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.tc { font-size: var(--size-chip); color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.tf { margin-top: 6px; }
.rowlabel { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; font-size: var(--size-control); font-weight: 600; color: var(--text-primary); }
.rowlabel .m { font-size: var(--size-chip); font-weight: 400; color: var(--text-muted); }
.chartcard { padding: 14px 16px; }
.chartcard .hd { display: flex; align-items: baseline; gap: 10px; }
.chartcard .hd h3 { font-size: var(--size-heading); font-weight: var(--weight-heading); }
.legend2 { display: flex; gap: 14px; font-size: var(--size-chip); color: var(--text-secondary); margin-left: auto; }
.legend2 i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.chartsvg text { font-family: var(--font-sans); font-size: var(--size-label); fill: var(--text-muted); }
.twotables { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tbl td a { font-weight: 500; }

/* Sequences (part 70) */
.seqfilters { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.seqfilters .r { margin-left: auto; }
.seqgrp { background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); margin-bottom: 12px; overflow: hidden; }
.seqh { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line-hairline); background: var(--surface-raised); }
.seqh .nm { font-size: var(--size-body); font-weight: 600; color: var(--text-primary); }
.seqh .m { font-size: var(--size-chip); color: var(--text-muted); }
.seqh .r { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.seqh.loud { background: var(--surface-sunken); }
.dep { display: grid; grid-template-columns: 210px 1fr 150px 118px; gap: 12px; align-items: center; min-height: 44px; padding: 4px 16px; border-bottom: 1px solid var(--line-divider); font-size: var(--size-control); color: var(--text-secondary); }
.dep:last-child { border-bottom: 0; }
.dep .who b { display: block; color: var(--text-primary); font-weight: 600; }
.dep .who span { font-size: var(--size-chip); color: var(--text-muted); }
.dep .chainw { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dep .chainw .s { color: var(--text-muted); }
.dep .chainw .done { color: var(--text-secondary); }
.dep .chainw .rep { color: var(--status-ok); font-weight: 600; }
.dep .nx { font-size: var(--size-chip); color: var(--text-muted); }
.dep .act { justify-self: end; display: flex; gap: 6px; align-items: center; }
.dep.replied { box-shadow: inset 0 0 0 0 transparent; }
.dep.stop .why { font-size: var(--size-chip); color: var(--status-warn); display: flex; align-items: center; gap: 4px; flex-basis: 100%; }
.expand { padding: 10px 16px 14px 16px; border-bottom: 1px solid var(--line-divider); background: var(--surface-sunken); display: grid; gap: 8px; }
.expand .payload { background: var(--surface-raised); }
.expand .h { display: flex; align-items: center; gap: 8px; font-size: var(--size-chip); color: var(--text-muted); }

/* the senders modal (part 71) */
.smodal { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); width: 640px; background: var(--surface-raised); border-radius: var(--radius-panel); box-shadow: var(--elevation-modal); z-index: 5; display: grid; gap: 12px; padding: 20px 22px 18px; }
.smodal.static { position: static; transform: none; box-shadow: var(--elevation-card); border: var(--card-border); width: auto; }
.smodal .mh { display: flex; align-items: center; gap: 10px; }
.smodal .mh h3 { font-size: var(--size-heading); font-weight: var(--weight-heading); letter-spacing: var(--tracking-heading); }
.smodal .mh .iconbtn { margin-left: auto; }
.smodal .ms { font-size: var(--size-control); color: var(--text-muted); margin-top: -8px; }
.sender { display: flex; align-items: center; gap: 12px; min-height: 56px; border-top: 1px solid var(--line-divider); padding: 6px 0; font-size: var(--size-control); cursor: pointer; }
.sender .tx { flex: 1; display: grid; gap: 2px; }
.sender .tx b { color: var(--text-primary); font-weight: 600; }
.sender .tx .m { font-size: var(--size-chip); color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.sender .r { display: flex; align-items: center; gap: 8px; }
.pfacts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.pfacts .fld .field { height: 32px; font-size: var(--size-control); }
.voice { display: grid; gap: 8px; }
.voice .d { font-size: var(--size-body); color: var(--text-primary); line-height: 1.5; margin: 0; }
.voice .ex { background: var(--surface-sunken); border: 1px solid var(--line-hairline); border-radius: var(--radius-input); padding: 10px 12px; font-size: var(--size-control); color: var(--text-secondary); line-height: 1.5; }
.voice .pv { font-size: var(--size-chip); color: var(--text-muted); }
.smodal .mf { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line-divider); padding-top: 12px; }
.smodal .mf .sp { flex: 1; }

/* Discovery (parts 72, 73) */
.freebar { display: inline-flex; align-items: center; gap: 10px; max-width: 420px; white-space: nowrap; line-height: 1.35; font-size: var(--size-chip); color: var(--text-secondary); background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-input); padding: 6px 10px; }
.freebar .bar3 { width: 80px; }
.finder { height: 44px; border: 1px solid var(--line-control); border-radius: var(--radius-input); background: var(--surface-raised); box-shadow: var(--shade-field); display: flex; align-items: center; gap: 10px; padding: 0 8px 0 12px; font-size: var(--size-body); color: var(--text-primary); }
.finder svg { color: var(--text-muted); }
.finder .btn { margin-left: auto; }
.fchips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 10px 0 0; }
.countblk { display: flex; align-items: stretch; background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); margin-top: 12px; }
.countblk > div { padding: 10px 16px; border-right: 1px solid var(--line-divider); display: grid; gap: 0; cursor: pointer; }
.countblk > div.on { box-shadow: inset 0 -2px 0 var(--text-primary); }
.countblk > div:last-child { border-right: 0; }
.countblk .k { font-size: var(--size-chip); color: var(--text-muted); }
.countblk .v { font-family: var(--font-heading); font-size: var(--size-heading); font-weight: var(--weight-heading); }
.countblk .note { margin-left: auto; align-self: center; padding: 0 16px; font-size: var(--size-chip); color: var(--text-muted); border: 0; cursor: default; max-width: 300px; }
.countline { font-size: var(--size-control); color: var(--text-secondary); margin: 12px 0 8px; display: flex; align-items: baseline; gap: 8px; }
.countline b { font-family: var(--font-heading); font-size: var(--size-heading); font-weight: var(--weight-heading); color: var(--text-primary); }
.cbx { width: 16px; height: 16px; border-radius: var(--radius-checkbox); box-shadow: inset 0 0 0 1.5px var(--line-control); background: var(--surface-raised); display: inline-grid; place-items: center; flex: none; vertical-align: middle; }
.cbx.on { background: var(--action-solid); box-shadow: none; color: var(--text-on-action); }
.cbx svg { width: 11px; height: 11px; }
.frail { width: 200px; flex: none; display: grid; gap: 12px; align-content: start; }
.frail .g { display: grid; gap: 6px; }
.frail .g .k { font-size: var(--size-chip); font-weight: 600; color: var(--text-muted); }
.skel { height: 10px; border-radius: 4px; background: var(--surface-skeleton); }
.costpop { position: absolute; width: 340px; padding: 14px 16px; z-index: 6; display: grid; gap: 10px; }
.costpop .h { font-size: var(--size-control); font-weight: 600; }
.costpop p { margin: 0; font-size: var(--size-control); color: var(--text-secondary); }
.costpop .f { display: flex; gap: 8px; justify-content: flex-end; }
.sheet .shh { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-hairline); }
.sheet .shh b { font-size: var(--size-body); font-weight: 600; }
.sheet .shh span { font-size: var(--size-chip); color: var(--text-muted); }
.sheet .shr { display: grid; grid-template-columns: 1fr 80px 110px; gap: 10px; padding: 8px 16px; border-bottom: 1px solid var(--line-divider); font-size: var(--size-chip); align-items: center; color: var(--text-secondary); }
.sheet .shr b { display: block; font-size: var(--size-control); color: var(--text-primary); font-weight: 600; }
.sheet .shf { display: flex; align-items: center; gap: 6px; padding: 10px 16px; font-size: var(--size-chip); color: var(--text-muted); flex-wrap: wrap; }
.sheet .shf .btns { margin-left: auto; display: flex; gap: 6px; }

/* Social Scheduler (parts 74, 75) */
.post { display: grid; grid-template-columns: 1fr 150px 118px 32px; gap: 12px; align-items: center; min-height: 50px; padding: 6px 16px; border-bottom: 1px solid var(--line-divider); font-size: var(--size-control); }
.post:last-child { border-bottom: 0; }
.post .ti { color: var(--text-primary); font-weight: 600; line-height: 1.3; }
.post .pm { font-size: var(--size-chip); color: var(--text-muted); margin-top: 2px; }
.post .pm a { font-weight: 500; }
.post .why { font-size: var(--size-chip); color: var(--text-secondary); margin-top: 2px; }
.post .nums { font-size: var(--size-chip); color: var(--text-muted); text-align: right; }
.post .st { justify-self: start; display: flex; align-items: center; gap: 6px; }
.post .pz { justify-self: end; }
.dayh { padding: 8px 16px 6px; font-size: var(--size-chip); font-weight: 600; color: var(--text-muted); background: var(--surface-sunken); border-bottom: 1px solid var(--line-divider); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line-divider); border-left: 1px solid var(--line-divider); }
.cal > div { min-height: 54px; border-right: 1px solid var(--line-divider); border-bottom: 1px solid var(--line-divider); padding: 3px 4px; font-size: var(--size-label); color: var(--text-muted); display: grid; gap: 2px; align-content: start; }
.cal > div.dow { min-height: 0; padding: 4px; font-weight: 600; }
.cal > div.out { background: var(--surface-sunken); }
.cal > div.today .dn { color: var(--text-primary); font-weight: 600; }
.cal .pc { background: var(--surface-chip); color: var(--text-secondary); border-radius: 4px; padding: 1px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal .pc.held { background: var(--status-warn-tint); color: var(--status-warn); }
.gapl { font-size: var(--size-chip); color: var(--text-muted); display: flex; align-items: center; gap: 6px; }

/* Do not contact */
.dncbar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.dncbar .r { margin-left: auto; display: flex; gap: 8px; }
.selectf { height: 30px; border: 1px solid var(--line-control); border-radius: var(--radius-input); padding: 0 8px 0 10px; font-size: var(--size-chip); font-weight: 500; background: var(--surface-raised); color: var(--text-primary); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.selectf .muted { font-weight: 400; }
.tabdef { font-size: var(--size-control); color: var(--text-secondary); margin: 8px 0 10px; }
.addrow { display: flex; align-items: flex-start; gap: 8px; background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: 12px 14px; margin-bottom: 12px; }
.addrow .fld { flex: 1; }
.kindtag { display: inline-flex; align-items: center; gap: 6px; }
.kindtag svg { color: var(--text-muted); }

/* references strip beside a pick */
.refs { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-divider); }
.refs .rh { font-size: var(--size-chip); color: var(--text-muted); margin-bottom: 8px; }
.refs .rh a { font-weight: 500; }
.refs .rr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.refs figure { margin: 0; display: grid; gap: 6px; }
.refs figure a.pic { display: block; height: 110px; border-radius: var(--radius-input); overflow: hidden; border: 1px solid var(--line-hairline); background: var(--surface-page); }
.refs figure img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.refs figcaption { font-size: var(--size-chip); color: var(--text-muted); line-height: 1.35; }
.refs figcaption b { color: var(--text-primary); font-weight: 600; }
.machinery.big { font-size: var(--size-control); padding: 6px 10px 6px 8px; }

.tbl.tight th, .tbl.tight td { padding: 0 8px; }
/* ---------- added by the three checks (30 September): states and the stepper's current step ---------- */
.stepbar .mstep.lit { box-shadow: inset 0 0 0 1.5px var(--text-primary); }
.stepbar .mstep.lit .no { background: var(--text-primary); }
.pausebtn:hover, .decided .alt button:hover { background: var(--surface-hover); }
.picker-field:hover, .rangebtn:hover, .selectf:hover { border-color: var(--line-hover); }
.pillswitch:hover { background: var(--surface-pressed); }
.chip.dashed:hover { border-color: var(--line-hover); color: var(--text-primary); }
.chip .x:hover { color: var(--text-primary); }
.countblk > div:not(.note):hover { background: var(--surface-hover); }
.deal { transition: transform var(--duration) var(--easing), box-shadow var(--duration) var(--easing), border-color var(--duration) var(--easing); }
.deal:not(.lift):hover { transform: translateY(-1px); box-shadow: var(--elevation-card-hover); border-color: var(--line-hover); }
.btn-p:active { background: var(--action-pressed); }
.btn-s:active, .btn-q:active, .pill-open:active, .pausebtn:active, .iconbtn:active, .decided .alt button:active { background: var(--surface-pressed); }
.send:active { background: var(--action-pressed); }
.chip.dashed, .chip .x, .seqfilters .chip, [data-sig-state="c"] > .chiprow .chip { cursor: pointer; }
.seqfilters .chip:hover, [data-sig-state="c"] > .chiprow .chip:hover { color: var(--text-primary); }
.seg > span:not([aria-selected="true"]):hover { color: var(--text-primary); }
.radio:not(.on):hover { border-color: var(--line-hover); }
.cbx:not(.on):hover { box-shadow: inset 0 0 0 1.5px var(--line-hover); }



/* ============================================================
   Batch 4 additions. Every value is a job name from the :root above; no new token.
   The switch copies the wider set's part (W20a/W20b page): off = control-switch-off, on = action-solid, knob = surface-raised.
   ============================================================ */
.story { grid-template-columns: repeat(5, 1fr); }
.segrow { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.segrow .note { margin-left: auto; font-size: var(--size-chip); color: var(--text-muted); max-width: 600px; text-align: right; line-height: 1.35; }
.titlerow h1 .chip { font-family: var(--font-sans); letter-spacing: 0; }
.titlerow .r301 { margin: 2px 0 0; font-size: var(--size-chip); color: var(--text-secondary); }
.btn-q.guide { color: var(--text-primary); }
.btn-q.guide.on { background: var(--surface-pressed); }

/* the switch */
.sw { position: relative; width: 30px; height: 18px; border-radius: var(--radius-pill); border: 0; background: var(--control-switch-off); padding: 0; flex: none; display: inline-block; vertical-align: middle; cursor: pointer; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface-raised); box-shadow: var(--shade-button); }
.sw.on { background: var(--action-solid); }
.sw.on::after { left: 15px; }
.sw.off { background: var(--disabled-bg); cursor: default; }

/* Setup's cards (part 45's column, W20a) */
.setcol { display: grid; gap: 16px; }
.setcard { background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: 16px 20px 8px; }
.setcard .sh { display: flex; align-items: baseline; gap: 10px; }
.setcard .sh h3 { font-size: var(--size-heading); font-weight: var(--weight-heading); letter-spacing: var(--tracking-heading); margin-right: auto; }
.setcard .sh .kind { font-size: var(--size-chip); color: var(--text-muted); }
.setcard > .ml { margin: 2px 0 6px; font-size: var(--size-control); color: var(--text-muted); }
.setcard .srow { padding: 6px 0; }
.setcard .srow .ic { color: var(--text-secondary); }
.setcard .foot-line { font-size: var(--size-chip); color: var(--text-muted); border-top: 1px solid var(--line-divider); padding: 10px 0 8px; line-height: 1.5; }
.setcard .brief-well { background: var(--surface-sunken); border: 1px solid var(--line-hairline); border-radius: var(--radius-input); padding: 10px 12px; font-size: var(--size-control); color: var(--text-primary); line-height: 1.5; margin-bottom: 8px; }
.tok { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; border-radius: var(--radius-item); background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line-hairline); font-size: var(--size-chip); font-weight: 500; color: var(--text-primary); vertical-align: 1px; }
.vrow { display: grid; grid-template-columns: 30px 150px 1fr auto; gap: 12px; align-items: center; min-height: 44px; padding: 6px 0; border-bottom: 1px solid var(--line-divider); font-size: var(--size-control); color: var(--text-secondary); }
.vrow:last-of-type { border-bottom: 0; }
.vrow .v { font-weight: 600; color: var(--text-primary); }
.vrow .n { color: var(--text-primary); }
.vrow .n .m { display: block; font-size: var(--size-chip); color: var(--text-muted); }
.vrow .r { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.seg.off > span { cursor: default; }
.seg.off > span[aria-selected="true"] { background: var(--disabled-bg); color: var(--disabled-text); box-shadow: none; }
.draftbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-input); background: var(--surface-raised); border: 1px solid var(--line-control); font-size: var(--size-control); color: var(--text-secondary); }
.draftbar b { color: var(--text-primary); font-weight: 600; }
.draftbar .r { margin-left: auto; display: flex; gap: 6px; }

/* Use: the conversation, the results line, recent runs */
.resline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--size-control); color: var(--text-secondary); margin: -4px 0 12px; }
.resline b { color: var(--text-primary); font-weight: 600; }
.resline .since { color: var(--text-muted); font-size: var(--size-chip); }
.resline .brk { color: var(--text-muted); font-size: var(--size-chip); }
.resline .brk:hover { color: var(--text-primary); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.resbrake { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin: -4px 0 12px; background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); font-size: var(--size-control); color: var(--text-secondary); }
.resbrake b { color: var(--text-primary); font-weight: 600; }
.resbrake .vr { width: 1px; height: 22px; background: var(--line-divider); }
.usegrid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; height: 100%; }
.usegrid.c { grid-template-columns: 1fr 320px; }
.chatcol { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.convhead { display: flex; align-items: center; gap: 8px; font-size: var(--size-control); color: var(--text-secondary); }
.convhead .recents-btn { font-weight: 600; color: var(--text-primary); cursor: pointer; }
.convhead .m { margin-left: auto; font-size: var(--size-chip); color: var(--text-muted); }
.chatcol .me { max-width: 72%; font-size: var(--size-body); }
.chatcol .ev-text { font-size: var(--size-body); }
.chatcol .composer { margin-top: 2px; }
.quote { border-left: 1px solid var(--line-hairline); padding: 2px 0 2px 12px; color: var(--text-secondary); font-size: var(--size-control); margin: 6px 0; }
.runrail { background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: 14px 16px 10px; display: grid; gap: 2px; align-content: start; }
.runrail h3 { font-size: var(--size-heading); font-weight: var(--weight-heading); letter-spacing: var(--tracking-heading); margin-bottom: 6px; }
.pendline { display: flex; gap: 8px; align-items: flex-start; font-size: var(--size-control); color: var(--text-primary); padding: 8px 10px; background: var(--surface-sunken); border: 1px solid var(--line-hairline); border-radius: var(--radius-input); margin-bottom: 6px; line-height: 1.4; }
.pendline .ic { margin-top: 2px; color: var(--text-secondary); }
.pendline a { display: block; font-size: var(--size-chip); font-weight: 500; }
.rrow2 { display: grid; grid-template-columns: 16px 1fr auto; gap: 8px; align-items: start; padding: 8px 0; border-top: 1px solid var(--line-divider); font-size: var(--size-control); color: var(--text-primary); line-height: 1.35; cursor: pointer; }
.rrow2 .ic { margin-top: 1px; color: var(--status-ok); }
.rrow2 .ic.q { color: var(--text-muted); }
.rrow2 .m { display: block; font-size: var(--size-chip); color: var(--text-muted); }
.rrow2 .age { font-size: var(--size-chip); color: var(--text-muted); white-space: nowrap; }
.rrow2:hover { background: var(--surface-hover); }
.seeall { font-size: var(--size-chip); padding-top: 8px; border-top: 1px solid var(--line-divider); }
.thinline { display: flex; align-items: center; gap: 8px; font-size: var(--size-control); color: var(--text-primary); padding: 8px 0; }
.thinline .m { color: var(--text-muted); font-size: var(--size-chip); margin-left: auto; }
.brakechip { display: inline-flex; }
.panelc { background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: 14px 16px; display: grid; gap: 10px; align-content: start; }
.panelc .sub { margin: 4px 0 0; }

/* the run form in the conversation */
.runform { background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: 14px 16px; display: grid; gap: 10px; max-width: 520px; }
.runform .t { font-size: var(--size-control); font-weight: 600; }
.runform .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.runform .f { display: flex; gap: 8px; align-items: center; }
.runform .f .note-line { margin-left: auto; }

/* the Agents list */
.listbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.listbar .r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.grph { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 6px; font-size: var(--size-control); color: var(--text-muted); }
.grph b { font-size: var(--size-control); font-weight: 600; color: var(--text-primary); }
.grph:first-of-type { margin-top: 0; }
.tbl td.tabic { width: 40px; text-align: right; padding-right: 8px; }
.tbl tr.hov td { background: var(--surface-hover); }
.tbl .kindtxt { font-size: var(--size-chip); color: var(--text-muted); }
.adot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.adot.sales { background: var(--area-sales-text); } .adot.marketing { background: var(--area-marketing-text); } .adot.cs { background: var(--area-customer-success-text); } .adot.revops { background: var(--area-revops-text); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tiles.t3 { grid-template-columns: repeat(3, 1fr); }
.atile { background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: 12px 14px 10px; display: grid; gap: 4px; align-content: start; }
.atile .nm { font-size: var(--size-control); font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.atile .ln { font-size: var(--size-chip); color: var(--text-muted); line-height: 1.35; }
.atile .ft { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: var(--size-chip); color: var(--text-muted); }
.atile .ft .pill-open { margin-left: auto; }

/* dialogs over a dimmed frame, and the test drive */
.overlay { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; }
.dlg.w720 { width: 720px; }
.dlg.static { box-shadow: var(--elevation-card); border: var(--card-border); border-radius: var(--radius-card); }
.drive { display: grid; grid-template-columns: 1fr 220px; gap: 20px; align-items: start; }
.drive .side { display: grid; gap: 10px; align-content: start; padding-left: 20px; border-left: 1px solid var(--line-divider); }
.drive .side .btn { width: 100%; }
.drive .side .note-line { line-height: 1.45; }
.verdict { font-size: var(--size-control); color: var(--text-primary); line-height: 1.5; }
.dpile { border: 1px solid var(--line-hairline); border-radius: var(--radius-input); overflow: hidden; }
.dpile + .dpile { margin-top: 8px; }
.dpile .ph2 { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; font-size: var(--size-control); font-weight: 600; color: var(--text-primary); background: var(--surface-raised); cursor: pointer; }
.dpile .ph2 .n { font-weight: 400; color: var(--text-muted); font-size: var(--size-chip); margin-left: auto; }
.dpile .it { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 12px 4px 34px; border-top: 1px solid var(--line-divider); font-size: var(--size-control); color: var(--text-secondary); }
.dpile .it b { color: var(--text-primary); font-weight: 600; }
.dpile .it.loud { color: var(--status-warn); }
.dpile .it.loud b { color: var(--status-warn); }
.costline { display: flex; align-items: center; gap: 8px; font-size: var(--size-control); color: var(--text-secondary); padding: 10px 12px; background: var(--surface-sunken); border: 1px solid var(--line-hairline); border-radius: var(--radius-input); }
.costline b { color: var(--text-primary); font-weight: 600; }
.vsteps { display: grid; gap: 6px; align-content: start; }
.vstep { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-door); font-size: var(--size-control); color: var(--text-muted); }
.vstep .no { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: var(--size-label); font-weight: 600; background: var(--surface-chip); color: var(--text-secondary); flex: none; }
.vstep.done { color: var(--text-secondary); }
.vstep.done .no { color: var(--status-ok); }
.vstep.lit { background: var(--surface-sunken); color: var(--text-primary); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--text-primary); }
.vstep.lit .no { background: var(--text-primary); color: var(--text-on-action); }
.teststrip { display: flex; gap: 0; background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); }
.teststrip > div { flex: 1; padding: 10px 14px; border-right: 1px solid var(--line-divider); font-size: var(--size-chip); color: var(--text-muted); display: grid; gap: 2px; }
.teststrip > div:last-child { border-right: 0; }
.teststrip b { font-size: var(--size-control); color: var(--text-primary); font-weight: 600; }

/* a workflow's steps, read-only */
.wsteps { display: grid; gap: 0; }
.wstep { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; border: 1px solid var(--line-hairline); border-radius: var(--radius-input); background: var(--surface-raised); font-size: var(--size-control); color: var(--text-secondary); }
.wstep b { display: block; color: var(--text-primary); font-weight: 600; }
.wstep .k { font-size: var(--size-chip); color: var(--text-muted); }
.wstep .no { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: var(--size-label); font-weight: 600; background: var(--surface-chip); color: var(--text-secondary); }
.wstep.lit { border: 1.5px solid var(--text-primary); }
.wstep.lit .no { background: var(--text-primary); color: var(--text-on-action); }
.wwire { width: 1px; height: 12px; background: var(--line-hover); margin-left: 27px; }

/* the Guides drawer (part 47): a panel at the modal elevation, never glass */
.gdrawer { position: absolute; top: 0; right: 0; bottom: 0; width: var(--side-panel-width); background: var(--surface-raised); box-shadow: var(--elevation-modal); border-left: 1px solid var(--line-hairline); z-index: 4; display: flex; flex-direction: column; }
.gdrawer.beside { position: relative; box-shadow: none; flex: none; height: 100%; }
.gdh { display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px 20px; border-bottom: 1px solid var(--line-divider); }
.gdh h3 { font-size: var(--size-heading); font-weight: var(--weight-heading); letter-spacing: var(--tracking-heading); margin-right: auto; }
.gdh .m { display: block; font-family: var(--font-sans); font-size: var(--size-chip); font-weight: 400; color: var(--text-muted); letter-spacing: 0; }
.gdb { padding: 12px 20px 16px; display: grid; gap: 8px; align-content: start; overflow: hidden; }
.gsec { font-size: var(--size-control); font-weight: 600; color: var(--text-primary); margin-top: 6px; }
.gcard { border: 1px solid var(--line-hairline); border-radius: var(--radius-input); padding: 8px 12px; display: grid; gap: 2px; cursor: pointer; }
.gcard:hover { border-color: var(--line-hover); }
.gcard b { font-size: var(--size-control); font-weight: 600; color: var(--text-primary); }
.gcard span { font-size: var(--size-chip); color: var(--text-muted); line-height: 1.35; }
.gcard .kind { font-size: var(--size-chip); font-weight: var(--weight-chip); color: var(--text-muted); }
.gq { font-size: var(--size-control); color: var(--text-primary); padding: 6px 0; border-top: 1px solid var(--line-divider); display: flex; gap: 8px; align-items: center; cursor: pointer; }
.gq .ic { color: var(--text-muted); margin-left: auto; }
.gptr { font-size: var(--size-control); display: flex; align-items: center; gap: 6px; }
.guidecard { background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-size: var(--size-control); color: var(--text-secondary); }
.guidecard b { color: var(--text-primary); font-weight: 600; }
.guidecard .pill-open { margin-left: auto; }

/* Competitor Watch's report on Use */
.repcard { background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: 16px 20px; display: grid; gap: 8px; }
.repcard .top { display: flex; align-items: baseline; gap: 10px; }
.repcard .top h3 { font-size: var(--size-heading); font-weight: var(--weight-heading); letter-spacing: var(--tracking-heading); }
.repcard .top .age { font-size: var(--size-chip); color: var(--text-muted); }
.repcard .top .pill-open { margin-left: auto; }
.repcard .intro { font-size: var(--size-body); color: var(--text-primary); line-height: 1.5; margin: 0; }
.firm { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-divider); font-size: var(--size-control); color: var(--text-secondary); line-height: 1.45; }
.firm b { color: var(--text-primary); font-weight: 600; }
.firm .m { display: block; font-size: var(--size-chip); color: var(--text-muted); }

/* the SEO answer's display parts */
.scorecard { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); }
.scorecard > div { padding: 10px 12px; border-right: 1px solid var(--line-divider); display: grid; gap: 1px; }
.scorecard > div:last-child { border-right: 0; }
.scorecard .k { font-size: var(--size-chip); color: var(--text-muted); }
.scorecard .v { font-family: var(--font-heading); font-size: var(--size-heading); font-weight: var(--weight-heading); color: var(--text-heading); }
.scorecard .v small { font-family: var(--font-sans); font-size: var(--size-chip); font-weight: 500; color: var(--text-muted); }
.bucket { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line-divider); font-size: var(--size-control); color: var(--text-primary); line-height: 1.45; }
.bucket .lv { font-size: var(--size-chip); font-weight: 600; color: var(--text-secondary); }
.evdrawer { display: flex; align-items: center; gap: 8px; font-size: var(--size-control); color: var(--text-secondary); padding: 8px 12px; border: 1px solid var(--line-hairline); border-radius: var(--radius-input); cursor: pointer; }
.evdrawer .m { margin-left: auto; font-size: var(--size-chip); color: var(--text-muted); }
.askcard { background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: 12px 14px; display: grid; gap: 10px; max-width: 460px; font-size: var(--size-control); color: var(--text-primary); }
.askcard .f { display: flex; gap: 8px; }
.asklines { display: grid; gap: 0; }
.asklines .al { display: flex; align-items: center; gap: 10px; min-height: 44px; border-top: 1px solid var(--line-divider); font-size: var(--size-body); color: var(--text-primary); cursor: pointer; }
.asklines .al:first-child { border-top: 0; }
.asklines .al .ic { color: var(--text-muted); margin-left: auto; }
.asklines .al:hover { color: var(--action-default); }
.skillnote { font-size: var(--size-chip); color: var(--text-muted); }

/* the plan and the team card (social media agent) */
.teamrow { display: grid; grid-template-columns: 300px 1fr; gap: 12px; align-items: center; min-height: 44px; padding: 4px 0; border-top: 1px solid var(--line-divider); font-size: var(--size-control); color: var(--text-secondary); }
.teamrow:first-of-type { border-top: 0; }
.teamrow .rl { color: var(--text-primary); font-weight: 500; }
.teamrow .rl .m { display: block; font-size: var(--size-chip); color: var(--text-muted); font-weight: 400; }
.teamrow .picker-field { justify-self: start; }
.teamrow .ro { color: var(--text-primary); }
.req { font-size: var(--size-chip); color: var(--text-muted); font-weight: 500; }
.planrows { display: grid; gap: 0; }
.planrows .pr2 { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-divider); font-size: var(--size-control); color: var(--text-primary); }
.planrows .pr2:first-child { border-top: 0; }
.planrows .pr2 .k { color: var(--text-muted); font-size: var(--size-chip); padding-top: 1px; }
.openstep { display: flex; align-items: center; gap: 12px; }
.openstep .t { display: grid; gap: 1px; font-size: var(--size-control); color: var(--text-primary); }
.openstep .t .m { font-size: var(--size-chip); color: var(--text-muted); }
.openstep .r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.idea { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-divider); font-size: var(--size-control); color: var(--text-primary); line-height: 1.4; }
.idea .m { display: block; font-size: var(--size-chip); color: var(--text-muted); }
.idea .cbx { margin-top: 2px; }

/* small panes for a Setup frame drawn beside */
.pane.wide { padding: 14px; }
.pane .setcard { padding: 12px 16px 4px; }
.pane .setcard .sh h3 { font-size: var(--size-heading); }
.states .pane { align-content: start; }
.refs.solo { max-width: 1280px; margin-top: 16px; background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: 12px 18px 14px; border-top: var(--card-border); }
.frame .scrollnote { font-size: var(--size-chip); color: var(--text-muted); display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.btn.dis { background: var(--disabled-bg); color: var(--disabled-text); border-color: transparent; box-shadow: none; cursor: default; }
.refusal { font-size: var(--size-chip); color: var(--status-danger); display: flex; gap: 6px; align-items: flex-start; line-height: 1.45; }
.refusal .ic { margin-top: 1px; }
.testbar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: var(--radius-input); background: var(--surface-sunken); border: 1px dashed var(--line-control); font-size: var(--size-control); color: var(--text-secondary); margin-bottom: 12px; }
.testbar b { color: var(--text-primary); font-weight: 600; }
/* ---------- added by the three checks (30 September, night): states on batch 4's parts, and two fits ---------- */
.gsm { font-size: var(--size-chip); font-weight: 400; color: var(--text-muted); margin-left: 6px; }
.tctl { display: inline-flex; align-items: center; gap: 8px; justify-self: start; }
.convhead .recents-btn:hover { background: var(--surface-hover); border-radius: var(--radius-item); }
.gq:hover, .dpile .ph2:hover, .evdrawer:hover { background: var(--surface-hover); }
.gcard:active, .gq:active, .rrow2:active, .dpile .ph2:active, .evdrawer:active, .asklines .al:active, .convhead .recents-btn:active { background: var(--surface-pressed); }
.sw:not(.on):not(.off):hover { background: var(--line-hover); }
.sw.on:hover { background: var(--action-hover); }
.sw.on:active { background: var(--action-pressed); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* ============================================================
   Batch 5 additions (1 October 2026). Every value is a job name from the :root above;
   Outfit is now loaded from fonts/ (no external load). The canvas connector takes line-hover,
   the kit having no connector token (part 04 named the same gap). Review chrome (the made-of
   column, frame heights) is badged review chrome, never product.
   ============================================================ */
@font-face { font-family: 'Outfit'; src: url('../fonts/Outfit-wght.ttf'); font-weight: 100 900; }
.review { max-width: 1700px; }
.fr-wrap { display: grid; grid-template-columns: 1280px 340px; gap: var(--space-24); align-items: start; }
.why-col { position: sticky; top: var(--space-16); background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: var(--space-12) var(--space-16) var(--space-8); }
.why-col h3 { font-family: var(--font-sans); font-size: var(--size-control); font-weight: 600; margin: 0 0 var(--space-4); }
.why-col .wnote { margin: var(--space-8) 0 var(--space-4); font-size: var(--size-chip); color: var(--text-muted); line-height: 1.4; }
.why-col.made .wsrc a { color: var(--action-default); }
.wrow { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--space-8); padding: var(--space-8) 0; border-top: 1px solid var(--line-divider); font-size: var(--size-chip); line-height: 1.35; }
.wrow.has-img { grid-template-columns: minmax(0, 1fr) 64px; }
.wrow .el { font-weight: 600; color: var(--text-primary); grid-column: 1; }
.wrow .rs { color: var(--text-secondary); grid-column: 1; }
.wrow .wsrc { color: var(--text-muted); grid-column: 1; }
.wrow .wimg { grid-column: 2; grid-row: 1 / span 3; display: block; width: 64px; height: 44px; border-radius: var(--radius-item); overflow: hidden; border: 1px solid var(--line-hairline); align-self: start; }
.wrow .wimg img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.story { grid-template-columns: repeat(5, 1fr); }
.tlg { width: 16px; height: 16px; display: block; flex: none; }
.tpill.chip { height: 26px; padding: 0 var(--space-8); gap: var(--space-4); color: var(--text-muted); flex: none; }
.chip.att { background: var(--status-attention-tint); color: var(--status-warn); }

/* the canvas (E2) */
.cvwrap { flex: 1; min-height: 0; display: flex; position: relative; }
.cv { position: relative; flex: 1; min-width: 0; overflow: hidden; background: var(--surface-page); }
.cv svg.wires { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.cv svg.wires path { fill: none; stroke: var(--line-hover); stroke-width: 1; }
.blk { position: absolute; background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: 9px 12px; display: flex; flex-direction: column; gap: 3px; overflow: hidden; cursor: pointer; }
.blk:hover { border-color: var(--line-hover); }
.blk .bh { display: flex; align-items: center; gap: 6px; font-size: var(--size-label); font-weight: var(--weight-label); letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--text-muted); line-height: 16px; }
.blk .bh svg.ic { width: 13px; height: 13px; color: var(--text-secondary); }
.blk .bh .r { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; }
.blk .bt2 { font-size: var(--size-control); font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.blk .bm { font-size: var(--size-chip); color: var(--text-muted); line-height: 1.35; }
.blk .bm b { color: var(--text-secondary); font-weight: 500; }
.blk .bg { display: inline-flex; align-items: center; gap: 6px; font-size: var(--size-chip); color: var(--text-secondary); line-height: 1.35; }
.blk .bc { font-size: var(--size-chip); color: var(--text-muted); margin-top: auto; }
.blk .grows { display: grid; margin-top: 2px; }
.blk .grows > div { display: grid; grid-template-columns: 52px 1fr; gap: 4px; font-size: var(--size-chip); line-height: 1.3; padding: 2px 0; border-top: 1px solid var(--line-divider); color: var(--text-primary); }
.blk .grows > div span:first-child { color: var(--text-muted); }
.blk.sel { border: 1.5px solid var(--line-selected); padding: 8.5px 11.5px; }
.blk.glow { border: 1.5px solid var(--status-attention); padding: 8.5px 11.5px; box-shadow: 0 0 0 4px var(--status-attention-tint), var(--elevation-card); }
.blk.err { border: 1.5px solid var(--status-danger); padding: 8.5px 11.5px; }
.blk.lit { border: 1.5px solid var(--text-primary); padding: 8.5px 11.5px; }
.blk.dim { opacity: 1; background: var(--surface-sunken); }
.blk .bsum { font-size: var(--size-chip); color: var(--text-primary); line-height: 1.35; border-top: 1px solid var(--line-divider); padding-top: 4px; margin-top: auto; }
.blk .bsum a { font-weight: 500; }
.blk .berr { font-size: var(--size-chip); color: var(--status-danger); line-height: 1.35; display: flex; gap: 4px; align-items: flex-start; margin-top: auto; }
.blk .berr svg.ic { width: 13px; height: 13px; margin-top: 1px; flex: none; }
.blk .bres { font-size: var(--size-chip); color: var(--text-primary); line-height: 1.35; display: flex; gap: 4px; align-items: flex-start; }
.blk .bres svg.ic { width: 13px; height: 13px; margin-top: 1px; color: var(--status-ok); flex: none; }
.blk .bres.held svg.ic { color: var(--text-secondary); }
.blk .bft { display: grid; gap: 1px; margin-top: auto; font-size: var(--size-chip); color: var(--text-muted); line-height: 1.35; }
.blk .bft a { font-weight: 500; white-space: nowrap; }
.frame.xtall { height: 1040px; }
.ins { position: absolute; width: 22px; height: 22px; border-radius: var(--radius-pill); background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line-control); color: var(--text-secondary); display: grid; place-items: center; transform: translate(-50%, -50%); cursor: pointer; z-index: 2; }
.ins svg.ic { width: 13px; height: 13px; }
.ins.on { background: var(--surface-pressed); color: var(--text-primary); }
.cvtools { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 2px; padding: 3px; background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-input); box-shadow: var(--elevation-card); z-index: 3; }
.cvtools .iconbtn { width: 28px; height: 28px; }
.cvtools .z { font-size: var(--size-chip); color: var(--text-muted); padding: 0 6px; }
.cvtools .vr { width: 1px; height: 18px; background: var(--line-divider); margin: 0 2px; }
.cvtools .btn { height: 28px; }
.cvtools .snap { font-size: var(--size-chip); color: var(--text-muted); padding: 0 8px; display: inline-flex; align-items: center; gap: 6px; }
.cvadd { position: absolute; right: 12px; top: 10px; z-index: 3; }
.cvnote { position: absolute; left: 12px; top: 12px; font-size: var(--size-chip); color: var(--text-muted); z-index: 3; }
.palette { position: absolute; width: 340px; padding: 6px; z-index: 6; }
.palette .ph { font-size: var(--size-chip); font-weight: 600; color: var(--text-muted); padding: 6px 8px 4px; }
.palette .pg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.palette .mi { height: 30px; font-size: var(--size-control); }
.palette .pn { font-size: var(--size-chip); color: var(--text-muted); padding: 6px 8px 4px; border-top: 1px solid var(--line-divider); margin-top: 4px; line-height: 1.4; }
.palpanel { width: 200px; flex: none; border-right: 1px solid var(--line-hairline); background: var(--surface-raised); padding: 12px 8px; display: grid; gap: 1px; align-content: start; }
.palpanel .ph { font-size: var(--size-label); font-weight: 600; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--text-muted); padding: 2px 8px 6px; }
.palpanel .mi { height: 30px; }
.palpanel .pn { font-size: var(--size-chip); color: var(--text-muted); padding: 8px; line-height: 1.4; }

/* the right column: Eevie's change conversation, or a block's settings */
.rcol { width: var(--side-panel-width); flex: none; border-left: 1px solid var(--line-hairline); background: var(--surface-raised); display: flex; flex-direction: column; min-height: 0; position: relative; }
.rch { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-divider); font-size: var(--size-control); font-weight: 600; color: var(--text-primary); min-height: 48px; }
.rch .m { font-weight: 400; color: var(--text-muted); font-size: var(--size-chip); }
.rch .r { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.rch .backbtn { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; color: var(--text-secondary); cursor: pointer; font-size: var(--size-control); }
.rch .backbtn:hover { color: var(--text-primary); }
.rcb { flex: 1; min-height: 0; overflow: hidden; padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.rcb .me { max-width: 88%; font-size: var(--size-control); padding: 8px 12px; }
.rcb .ev-text { font-size: var(--size-control); }
.rcb .ev-text p { margin: 0 0 6px; }
.rcf { padding: 0 16px 14px; }
.rcf .composer { margin-top: 0; padding: 10px 12px 8px 14px; }
.rcf .composer .ph { font-size: var(--size-control); }
.rstrip2 { width: 48px; flex: none; border-left: 1px solid var(--line-hairline); background: var(--surface-raised); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; }
.srows { display: grid; gap: 0; }
.srow2 { display: grid; gap: 5px; padding: 9px 0; border-top: 1px solid var(--line-divider); }
.srow2:first-child { border-top: 0; padding-top: 0; }
.srow2 .k { font-size: var(--size-control); font-weight: var(--weight-control); color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.srow2 .k .r { margin-left: auto; font-weight: 400; }
.srow2 .v { font-size: var(--size-control); color: var(--text-secondary); line-height: 1.45; }
.srow2 .h { font-size: var(--size-chip); color: var(--text-muted); line-height: 1.4; }
.srow2 .h.warn { color: var(--status-warn); }
.runsas { display: grid; gap: 2px; padding: 8px 10px; background: var(--surface-sunken); border: 1px solid var(--line-hairline); border-radius: var(--radius-input); }
.runsas .f { display: flex; align-items: center; gap: 8px; font-size: var(--size-control); color: var(--text-primary); }
.runsas .f svg.ic { color: var(--text-muted); }
.runsas .o { font-size: var(--size-chip); color: var(--text-muted); padding-left: 24px; }
.runsas.unset .f { color: var(--status-warn); }
.pk { position: absolute; width: 300px; padding: 4px; z-index: 6; }
.pk .ph { font-size: var(--size-chip); font-weight: 600; color: var(--text-muted); padding: 8px 10px 6px; }
.prow2 { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius-item); font-size: var(--size-control); color: var(--text-primary); cursor: pointer; }
.prow2:hover { background: var(--surface-hover); }
.prow2 .m { font-size: var(--size-chip); color: var(--text-muted); }
.prow2 .tick { margin-left: auto; color: var(--text-primary); }
.prow2.sel { box-shadow: inset 0 0 0 1.5px var(--line-selected); }
.dstrip { display: flex; align-items: center; gap: 12px; padding: 10px 24px; border-bottom: 1px solid var(--line-hairline); background: var(--surface-page); }
.dstrip .draftbar { flex: 1; padding: 7px 10px 7px 14px; }
.dstrip .back { margin: 0; white-space: nowrap; }
.radio2 { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border: 1px solid var(--line-hairline); border-radius: var(--radius-input); font-size: var(--size-control); cursor: pointer; }
.radio2 .dot { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-control); display: inline-grid; place-items: center; flex: none; margin-top: 1px; }
.radio2.on { border: 1.5px solid var(--line-selected); padding: 7.5px 9.5px; }
.radio2.on .dot { box-shadow: inset 0 0 0 1.5px var(--action-default); }
.radio2.on .dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--action-default); }
.radio2 .d { display: grid; gap: 1px; }
.radio2 .d small { font-size: var(--size-chip); color: var(--text-muted); }
.trail { display: grid; gap: 0; }
.trow { display: grid; grid-template-columns: 16px 1fr auto; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line-divider); font-size: var(--size-control); color: var(--text-primary); line-height: 1.35; }
.trow:first-child { border-top: 0; }
.trow svg.ic { margin-top: 1px; color: var(--status-ok); }
.trow svg.ic.q { color: var(--text-muted); }
.trow .m { display: block; font-size: var(--size-chip); color: var(--text-muted); }
.trow .age { font-size: var(--size-chip); color: var(--text-muted); white-space: nowrap; }
.trow .sim { display: block; font-size: var(--size-chip); color: var(--text-secondary); font-weight: 500; }
.drivebar { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 4; background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: 10px 14px; display: grid; gap: 8px; }
.drivebar .top { display: flex; align-items: center; gap: 10px; font-size: var(--size-control); color: var(--text-secondary); }
.drivebar .top b { color: var(--text-primary); font-weight: 600; }
.drivebar .top .r { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.drivebar .piles3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line-hairline); border-radius: var(--radius-input); }
.drivebar .piles3 > div { padding: 6px 10px; border-right: 1px solid var(--line-divider); font-size: var(--size-chip); color: var(--text-muted); line-height: 1.35; }
.drivebar .piles3 > div:last-child { border-right: 0; }
.drivebar .piles3 b { display: block; font-size: var(--size-control); color: var(--text-primary); font-weight: 600; }
.guessline { display: flex; align-items: center; gap: 8px; font-size: var(--size-control); color: var(--text-primary); }
.guessline .r { margin-left: auto; display: flex; gap: 6px; }
.chips2 { display: flex; flex-wrap: wrap; gap: 6px; }
.choice { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--line-control); background: var(--surface-raised); font-size: var(--size-control); font-weight: 500; color: var(--text-primary); cursor: pointer; }
.choice:hover { background: var(--surface-hover); }
.choice.on { border: 1.5px solid var(--line-selected); }
.added { display: grid; gap: 0; border: 1px solid var(--line-hairline); border-radius: var(--radius-input); background: var(--surface-raised); }
.added .ar { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; padding: 5px 10px; border-top: 1px solid var(--line-divider); font-size: var(--size-control); color: var(--text-primary); }
.added .ar:first-child { border-top: 0; }
.added .ar svg.ic { color: var(--text-secondary); width: 14px; height: 14px; }
.added .ar .m { color: var(--text-muted); font-size: var(--size-chip); }
.added .ar .tag { font-size: var(--size-chip); color: var(--text-muted); display: inline-flex; align-items: center; gap: 4px; }
.reading { display: grid; gap: 4px; font-size: var(--size-chip); color: var(--text-muted); }
.reading div { display: flex; align-items: center; gap: 6px; }
.reading svg.ic { width: 13px; height: 13px; color: var(--status-ok); }
.wcard { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; max-width: 560px; background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); }
.wcard .t { font-size: var(--size-body); font-weight: 600; }
.wcard .m { font-size: var(--size-chip); color: var(--text-muted); }
.amk { width: 40px; height: 40px; border-radius: var(--radius-input); overflow: hidden; flex: none; display: inline-block; box-shadow: inset 0 0 0 1px var(--line-hairline); }
.amk img { width: 100%; height: 100%; display: block; }
.amk.sm { width: 28px; height: 28px; border-radius: var(--radius-door); }
.readycard { max-width: 520px; background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: 14px 16px; display: grid; gap: 10px; }
.readycard .t { display: flex; align-items: center; gap: 10px; font-size: var(--size-body); font-weight: 600; }
.readycard p { margin: 0; font-size: var(--size-control); color: var(--text-secondary); }
.readycard .f { display: flex; gap: 8px; align-items: center; }
.trigcard { max-width: 520px; background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: 12px 16px; display: grid; gap: 6px; }
.trigcard .nm { font-family: var(--font-heading); font-size: var(--size-heading); font-weight: var(--weight-heading); letter-spacing: var(--tracking-heading); display: flex; gap: 8px; align-items: center; }
.trigcard .ln { font-size: var(--size-control); color: var(--text-secondary); }
.trigcard .ft { display: flex; align-items: center; gap: 8px; font-size: var(--size-chip); color: var(--text-muted); }
.trigcard .ft .pill-open { margin-left: auto; }

/* Templates (E4) */
.tplwrap { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
.catnav { display: grid; gap: 1px; }
.catnav .door { height: 30px; font-weight: 500; }
.catnav .door .count { background: transparent; box-shadow: none; color: var(--text-muted); }
.catsec { margin-bottom: 18px; }
.cath { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; }
.cath h2 { font-size: var(--size-heading); font-weight: var(--weight-heading); letter-spacing: var(--tracking-heading); }
.cath span { font-size: var(--size-chip); color: var(--text-muted); }
.ttiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stile { background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: var(--space-16); display: flex; flex-direction: column; gap: var(--space-8); cursor: pointer; min-width: 0; }
.stile:hover { border-color: var(--line-hover); box-shadow: var(--elevation-card-hover); }
.stile .hd { display: flex; align-items: center; gap: 12px; min-width: 0; }
.stile .nm { font-family: var(--font-heading); font-size: var(--size-heading); font-weight: var(--weight-heading); letter-spacing: var(--tracking-heading); line-height: 1.2; color: var(--text-heading); min-width: 0; }
.stile .role { font-size: var(--size-control); color: var(--text-muted); line-height: 1.45; }
.stile .kc { font-size: var(--size-control); font-weight: var(--weight-control); color: var(--text-primary); line-height: 1.4; }
.stile .kc .lb { color: var(--text-muted); }
.stile .ft { margin-top: auto; display: flex; align-items: center; gap: 8px; padding-top: 4px; }
.stile .ft .pill-open { margin-left: auto; }
.stile .ft .none { font-size: var(--size-chip); color: var(--text-muted); }

/* the template modal (E5) */
.tmodal { position: absolute; left: 50%; top: 20px; transform: translateX(-50%); width: 640px; max-height: calc(100% - 40px); background: var(--surface-raised); border-radius: var(--radius-panel); box-shadow: var(--elevation-modal); z-index: 5; display: flex; flex-direction: column; overflow: hidden; }
.tmodal.static { position: static; transform: none; box-shadow: var(--elevation-card); border: var(--card-border); width: 640px; max-height: none; }
.tmh { display: flex; align-items: center; gap: 12px; padding: 18px 22px 12px; }
.tmh h3 { font-size: var(--size-heading); font-weight: var(--weight-heading); letter-spacing: var(--tracking-heading); }
.tmh .m { font-size: var(--size-chip); color: var(--text-muted); }
.tmh .iconbtn { margin-left: auto; }
.tmb { padding: 0 22px 12px; display: grid; gap: 12px; overflow: hidden; }
.tmb .job { font-size: var(--size-body); color: var(--text-primary); line-height: 1.5; margin: 0; }
.tsec { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line-divider); }
.tsec .sh { font-size: var(--size-control); font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.tsec .sh .r { margin-left: auto; }
.tsec p { margin: 0; font-size: var(--size-control); color: var(--text-secondary); line-height: 1.45; }
.counted { font-size: var(--size-control); color: var(--text-primary); line-height: 1.45; padding: 8px 12px; background: var(--surface-sunken); border: 1px solid var(--line-hairline); border-radius: var(--radius-input); }
.two-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two-lists b { font-size: var(--size-chip); font-weight: 600; color: var(--text-secondary); }
.two-lists ul { margin: 4px 0 0; padding-left: 18px; font-size: var(--size-control); color: var(--text-primary); display: grid; gap: 2px; line-height: 1.4; }
.conn { display: flex; align-items: center; gap: 10px; font-size: var(--size-control); color: var(--text-primary); min-height: 30px; }
.conn .ok { color: var(--status-ok); } .conn .no { color: var(--status-danger); }
.conn .m { color: var(--text-muted); font-size: var(--size-chip); margin-left: auto; }
.capcard { border: 1px solid var(--line-hairline); border-radius: var(--radius-input); padding: 8px 12px; display: grid; gap: 4px; font-size: var(--size-control); color: var(--text-primary); }
.capcard div { display: flex; gap: 8px; align-items: center; }
.capcard svg.ic { width: 14px; height: 14px; color: var(--text-secondary); }
.tmf { display: flex; align-items: center; gap: 8px; padding: 12px 22px 16px; border-top: 1px solid var(--line-divider); }
.tmf .fz { font-size: var(--size-chip); color: var(--text-muted); margin-right: auto; }
.phase { display: grid; gap: 2px; padding: 6px 0; border-top: 1px solid var(--line-divider); }
.phase:first-child { border-top: 0; }
.phase .pn2 { font-size: var(--size-control); font-weight: 600; color: var(--text-primary); }
.phase .it { display: flex; align-items: center; gap: 8px; font-size: var(--size-control); color: var(--text-secondary); }
.phase .it .who { margin-left: auto; font-size: var(--size-chip); color: var(--text-muted); white-space: nowrap; }
.phase .it .who b { color: var(--text-primary); font-weight: 600; }
.imgph { height: 92px; border-radius: var(--radius-input); background: var(--surface-sunken); border: 1px solid var(--line-hairline); display: grid; place-items: center; color: var(--text-muted); font-size: var(--size-chip); }
.imgph svg.ic { width: 18px; height: 18px; }
.stepper { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line-control); border-radius: var(--radius-input); height: 30px; }
.stepper span { width: 30px; display: grid; place-items: center; font-size: var(--size-control); color: var(--text-secondary); }
.stepper b { width: 34px; text-align: center; font-size: var(--size-control); border-left: 1px solid var(--line-divider); border-right: 1px solid var(--line-divider); line-height: 28px; }
.sev { font-size: var(--size-chip); color: var(--text-muted); }
.mnote { font-size: var(--size-chip); color: var(--text-muted); line-height: 1.45; }
.opsnote { display: inline-flex; align-items: center; gap: 8px; font-size: var(--size-chip); color: var(--text-muted); border: 1px dashed var(--line-hover); border-radius: var(--radius-item); padding: 2px 8px; background: var(--surface-raised); }
.frame .sw-pane { display: contents; }
.cvhold { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.dstrip .teststrip > div { white-space: nowrap; }
.menu .mi span { white-space: nowrap; }

/* the states pass (checks, 1 October): hover and pressed for the parts this batch added; the kit's greys, nothing moving */
.empty h3 { margin: 0; font-family: var(--font-heading); font-size: var(--size-heading); font-weight: var(--weight-heading); color: var(--text-heading); }
.machinery .seg button:not([aria-pressed="true"]):hover { background: var(--surface-hover); color: var(--text-primary); }
.radio2:hover, .ins:hover { background: var(--surface-hover); }
.ins:hover { color: var(--text-primary); }
.stile:active, .blk:active, .choice:active, .radio2:active, .prow2:active, .palette .mi:active, .palpanel .mi:active, .catnav .door:active, .ins:active, .rch .backbtn:active, .machinery .seg button:not([aria-pressed="true"]):active { background: var(--surface-pressed); }
.rch .backbtn { padding: 2px 6px; margin-left: -6px; border-radius: var(--radius-item); }
.rch .backbtn:hover { background: var(--surface-hover); }

.orbcv { display: inline-block; flex: none; vertical-align: middle; }
.orbcv canvas { display: block; }
.sweep { background: linear-gradient(90deg, var(--text-secondary) 0%, var(--text-secondary) 35%, var(--text-primary) 50%, var(--text-secondary) 65%, var(--text-secondary) 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: orbsweep 1.8s linear infinite; }
@keyframes orbsweep { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .sweep { animation: none; background: none; -webkit-text-fill-color: currentColor; color: var(--text-secondary); } }
.orbline { display: flex; align-items: center; gap: 8px; font-size: var(--size-control); color: var(--text-secondary); margin-top: 4px; }
.orbstrip { margin: 16px 0 20px; padding: 14px 16px; border: 1px solid var(--line-hairline); border-radius: 8px; background: #fff; }
.orbstrip h3 { margin: 0 0 4px; font-size: var(--size-control); font-weight: 600; }
.orbstrip .lead { margin: 0 0 12px; font-size: var(--size-chip); color: var(--text-secondary); }
.orbstrip .cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.orbstrip .cell { border: 1px solid var(--line-hairline); border-radius: 8px; padding: 12px; display: grid; gap: 8px; align-content: start; }
.orbstrip .cell .k { font-size: var(--size-chip); font-weight: 600; }
.orbstrip .cell .w { font-size: var(--size-chip); color: var(--text-secondary); }
.orbstrip .cell .demo { min-height: 64px; display: flex; align-items: center; gap: 8px; font-size: var(--size-control); }
.orbstrip .mic { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--text-primary); border-radius: 8px; font-size: var(--size-control); }
/* ============================================================
   Batch 5, second pass (1 October 2026, 22:30): the gap audit's states, the motions, the carried prototypes.
   Every value a kit job name. Motion: every loop and the spinner run ONLY under prefers-reduced-motion: no-preference;
   with reduced motion each draws its end state (the inline style), the spinner stands still.
   ============================================================ */
.sp2 { margin-top: var(--space-24); padding-top: var(--space-16); border-top: 1px dashed var(--line-hover); max-width: 1280px; }
.sp2h { display: flex; align-items: baseline; gap: var(--space-12); flex-wrap: wrap; }
.sp2h b { font-size: var(--size-control); font-weight: 600; color: var(--text-primary); }
.sp2h span { font-size: var(--size-chip); color: var(--text-muted); }
.states.grid1 { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 1280px; }
.sp2 .states.grid3, .sp2 .states.grid2 { margin-top: var(--space-12); }
.sp2 .pane { min-width: 0; }
.loopnote { display: flex; align-items: center; gap: 6px; font-size: var(--size-chip); color: var(--text-muted); padding-top: var(--space-4); border-top: 1px solid var(--line-divider); }
.loopnote svg.ic { color: var(--text-muted); }
/* the kit's spinner, R490n: loader-circle, 14px, the text colour, one turn in 1.4 s, linear */
svg.ic.spin { color: var(--text-secondary); transform-origin: 50% 50%; }
@keyframes kspin { to { transform: rotate(360deg); } }
/* carried prototypes at 60% */
.carries { display: grid; grid-template-columns: repeat(2, max-content); gap: var(--space-20); margin-top: var(--space-12); }
.carry { margin: 0; display: grid; gap: var(--space-8); align-content: start; max-width: 600px; }
.carry figcaption { font-size: var(--size-chip); color: var(--text-muted); line-height: 1.4; }
.carry figcaption b { color: var(--text-secondary); }
.carry code, .pane .cap code, .caption code { font-size: var(--size-chip); }
.cwin { position: relative; overflow: hidden; border: 1px solid var(--line-hairline); border-radius: 4px; background: var(--surface-page); }
.cin { position: absolute; left: 0; top: 0; transform: scale(0.6); transform-origin: 0 0; }
.pc { width: 100%; height: 100%; background: var(--surface-page); display: flex; flex-direction: column; }
.pcr { display: flex; gap: 2px; padding: 8px 16px 0; border-bottom: 1px solid var(--line-hairline); background: var(--surface-page); }
.pct { height: 30px; padding: 0 12px; display: inline-flex; align-items: center; font-size: var(--size-control); font-weight: 500; color: var(--text-secondary); border: 1px solid transparent; border-bottom: 0; border-radius: var(--radius-door) var(--radius-door) 0 0; }
.pct.on { background: var(--surface-raised); border-color: var(--line-hairline); color: var(--text-primary); position: relative; top: 1px; }
.pcb { flex: 1; min-height: 0; padding: 16px 20px; }
.pch { display: flex; align-items: center; gap: 10px; }
.pch b { font-family: var(--font-heading); font-size: var(--size-heading); font-weight: var(--weight-heading); letter-spacing: var(--tracking-heading); }
.field { border: 1px solid var(--line-hairline); border-radius: var(--radius-input); background: var(--surface-sunken); padding: 12px 14px; display: grid; gap: 6px; align-content: start; }
.fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 20px; height: 100%; }
.field .fh { display: grid; gap: 2px; } .field .fh b { font-size: var(--size-control); } .field .fh span { font-size: var(--size-chip); color: var(--text-muted); }
.field .fl { font-size: var(--size-chip); color: var(--text-secondary); border: 1px dashed var(--line-hover); border-radius: var(--radius-item); padding: 4px 8px; background: var(--surface-raised); }
.field p { margin: 0; font-size: var(--size-chip); color: var(--text-secondary); line-height: 1.4; }
/* compact canvas for the small states */
.cv.mini { flex: none; border: 1px solid var(--line-hairline); border-radius: var(--radius-input); }
.cv.mini .blk .bh { line-height: 14px; }
.blk.paused { border: 1.5px solid var(--status-attention); padding: 8.5px 11.5px; }
.brlab { position: absolute; font-size: var(--size-chip); font-weight: 600; color: var(--text-secondary); background: var(--surface-page); padding: 0 4px; z-index: 1; }
.ovl { position: absolute; inset: 0; border: 1.5px solid var(--text-primary); border-radius: var(--radius-card); pointer-events: none; }
.ovl.paused { border-color: var(--status-attention); }
.ovs { position: absolute; left: 1px; right: 1px; bottom: 1px; padding: 6px 11px 8px; background: var(--surface-raised); display: flex; align-items: center; gap: 6px; font-size: var(--size-chip); color: var(--text-secondary); border-radius: 0 0 var(--radius-card) var(--radius-card); }
.ovs.done { color: var(--text-primary); } .ovs.done svg.ic { color: var(--status-ok); }
.ovs.paused { color: var(--text-primary); }
.minimap { position: absolute; right: 10px; bottom: 10px; width: 96px; height: 64px; background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-item); box-shadow: var(--elevation-card); z-index: 3; }
.minimap span { position: absolute; width: 18px; height: 10px; border-radius: 2px; background: var(--surface-chip); }
.minimap span.lit { background: var(--status-attention); }
.tidyb { position: relative; overflow: hidden; }
.tidyb .tidyp { position: absolute; inset: 0; background: var(--surface-pressed); z-index: -1; }
/* Brain context panel */
.alw { display: grid; gap: 0; border: 1px solid var(--line-hairline); border-radius: var(--radius-input); padding: 2px; }
.alw .prow2 { padding: 5px 8px; } .alw .prow2 svg.ic { color: var(--text-muted); }
.xrow { display: grid; gap: 6px; padding: 8px 0; border-top: 1px solid var(--line-divider); }
.xrow:first-child { border-top: 0; padding-top: 0; }
.xrow b { font-size: var(--size-control); font-weight: 600; color: var(--text-primary); display: block; }
.xrow .m { font-size: var(--size-chip); color: var(--text-muted); }
.xk { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 8px; }
.xk > span:first-child { font-size: var(--size-chip); color: var(--text-muted); }
/* the diary's first entry */
.diary { background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); }
.diary .dh { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line-divider); font-size: var(--size-control); font-weight: 600; }
.diary .dh .m { margin-left: auto; font-weight: 400; color: var(--text-muted); font-size: var(--size-chip); }
.diary .drow { padding: 10px 14px; border-bottom: 1px solid var(--line-divider); font-size: var(--size-control); }
.diary .drow:last-child { border-bottom: 0; } .diary .drow.muted { color: var(--text-muted); font-size: var(--size-chip); }
.diary .dt { display: flex; align-items: center; font-weight: 600; } .diary .dt .age { margin-left: auto; font-weight: 400; font-size: var(--size-chip); color: var(--text-muted); }
.diary dl { display: grid; grid-template-columns: 84px 1fr; gap: 4px 10px; margin: 8px 0 0; font-size: var(--size-chip); line-height: 1.4; }
.diary dt { color: var(--text-muted); } .diary dd { margin: 0; color: var(--text-primary); }
.titlerow.mini { padding: 0; } .titlerow.mini h1 { gap: 8px; }
.bg2 { display: inline-flex; align-items: center; gap: 6px; font-size: var(--size-chip); color: var(--text-secondary); margin-top: 6px; }
.diag { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 10px 12px; border: 1px solid var(--line-hairline); border-radius: var(--radius-input); }
.dstep { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: var(--card-border); border-radius: var(--radius-item); background: var(--surface-raised); font-size: var(--size-chip); color: var(--text-primary); box-shadow: var(--elevation-card); }
.dstep svg.ic { color: var(--text-secondary); } .darr { color: var(--text-muted); display: inline-flex; }
.mail { background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); font-size: var(--size-control); }
.mail .mh2 { padding: 10px 14px; border-bottom: 1px solid var(--line-divider); color: var(--text-secondary); line-height: 1.6; font-size: var(--size-chip); }
.mail .mh2 b { color: var(--text-muted); font-weight: 600; margin-right: 6px; }
.mail .mb { padding: 12px 14px; display: grid; gap: 8px; } .mail .mb p { margin: 0; line-height: 1.5; }
.trow.lrow .lic { position: relative; width: 16px; height: 16px; display: inline-block; }
.trow.lrow .lic svg.ic { margin-top: 1px; }
/* the segmented control's pill, moving on the user's own press (R490o moment 1) */
.seg.segl { position: relative; }
.seg.segl > span[role="tab"] { position: relative; z-index: 1; background: transparent !important; box-shadow: none !important; }
.seg.segl .pillbg { position: absolute; left: 2px; top: 2px; bottom: 2px; width: 0; border-radius: var(--radius-door); background: var(--tab-selected); box-shadow: 0 0 0 1px var(--tab-line), 0 1px 2px rgba(17,17,17,0.08); z-index: 0; }
@media (prefers-reduced-motion: no-preference) {
  svg.ic.spin { animation: kspin 1.4s linear infinite; }
  .seg.segl.ready .pillbg { transition: transform 420ms cubic-bezier(0.34, 1.45, 0.64, 1), width 420ms cubic-bezier(0.34, 1.45, 0.64, 1); }
}
.rcolwrap { display: flex; } .rcolwrap .rcol { width: 100%; border: var(--card-border); border-radius: var(--radius-card); } .rcolwrap .rcb { overflow: visible; }
.titlerow.mini { flex-wrap: wrap; }

/* ============================================================
   Batch 5 variation set (2 October 2026). Every value is a job name from the :root above; no new token.
   Review chrome (the strips, the pick lines, the made-of column) is badged review chrome, never product.
   ============================================================ */
.review { max-width: none; }
.review-head { max-width: 980px; }
.vsec { margin: 56px 0 0; }
.vsec > .sb-head h2 { font-size: var(--size-title); font-weight: var(--weight-title); letter-spacing: var(--tracking-title); }
.vsec > .sb-head p { margin: 4px 0 0; color: var(--text-secondary); font-size: var(--size-control); max-width: 860px; }
.vsec > .sb-head .eyebrow { margin-bottom: 4px; }
.vtools { display: flex; align-items: center; gap: 8px; margin: 12px 0 10px; flex-wrap: wrap; }
.vtools .jl { font-size: var(--size-chip); color: var(--text-muted); }
.vtools .jmp { font-size: var(--size-control); font-weight: 600; padding: 4px 10px; border-radius: var(--radius-door); border: 1px solid var(--line-hairline); background: var(--surface-raised); color: var(--text-primary); }
.vtools .jmp:hover { text-decoration: none; background: var(--surface-hover); }
.vtools .cmp { margin-left: 8px; }
.vtools .cmp[aria-pressed="true"] { background: var(--surface-pressed); }
.vtools .hint { font-size: var(--size-chip); color: var(--text-muted); }
.vstrip { display: flex; gap: 40px; overflow-x: auto; padding: 4px 2px 16px; scroll-snap-type: x proximity; border-top: 1px solid var(--line-divider); border-bottom: 1px solid var(--line-divider); }
.vcol { flex: none; scroll-snap-align: start; display: grid; gap: 10px; align-content: start; padding-top: 12px; }
.vstrip.compact { gap: 20px; overflow-x: hidden; }
.vstrip.compact .vcol { zoom: 0.33; }
.vlab { display: flex; align-items: baseline; gap: 10px; font-size: var(--size-heading); font-family: var(--font-heading); font-weight: 600; color: var(--text-heading); letter-spacing: var(--tracking-heading); }
.vlab b { font-weight: 700; }
.vlab .rec { font-family: var(--font-sans); font-size: var(--size-chip); font-weight: 600; color: var(--status-ok); background: var(--status-ok-tint); border-radius: var(--radius-pill); padding: 3px 8px; letter-spacing: 0; }
.vmade .who { margin: 4px 0 6px; font-size: var(--size-chip); color: var(--text-secondary); line-height: 1.45; }
.vmade .who b, .vmade .diff b, .vmade .ans b, .vmade .takes b { color: var(--text-primary); font-weight: 600; }
.vmade .diff, .vmade .takes, .vmade .ans { font-size: var(--size-chip); color: var(--text-secondary); line-height: 1.45; padding: 8px 0; border-top: 1px solid var(--line-divider); }
.vmade .ans { color: var(--text-muted); }
.pickline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding: 12px 16px; background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); max-width: 1280px; }
.pickline .pl { font-size: var(--size-control); font-weight: 600; }
.pickline .pseg button { height: 28px; padding: 0 12px; border: 0; border-radius: var(--radius-door); background: transparent; color: var(--text-secondary); font: inherit; font-size: var(--size-control); font-weight: 550; cursor: pointer; transition: background var(--duration) var(--easing); }
.pickline .pseg button:hover { background: var(--surface-hover); color: var(--text-primary); }
.pickline .pseg button[aria-pressed="true"] { background: var(--tab-selected); color: var(--text-primary); font-weight: 600; box-shadow: 0 0 0 1px var(--tab-line), 0 1px 2px rgba(17,17,17,0.08); }
.pickline .whyrec { flex-basis: 100%; margin: 0; font-size: var(--size-control); color: var(--text-secondary); }
.pickline .whyrec b { color: var(--text-primary); }
.vsec .states { margin-top: 0; }
.vsec .afterstates { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; max-width: 1644px; }
.vsec .afterstates .state .pane { background: var(--surface-page); border: 1px solid var(--line-hairline); border-radius: 4px; padding: 16px; }

/* the composer: the mic and its listening state */
.composer .micon { width: auto; padding: 0 4px; }
.composer .rec { font-size: var(--size-chip); color: var(--text-secondary); margin-left: 2px; }
.composer .cost { margin-left: auto; }

/* the draft strip */
.dstrip .draftbar { display: flex; align-items: center; gap: 10px; }
.dstrip .draftbar .bt { flex: 1; min-width: 0; }
.dstrip .draftbar .r { display: flex; align-items: center; gap: 8px; flex: none; }
.dstrip .est { display: inline-flex; align-items: center; gap: 6px; font-size: var(--size-chip); color: var(--text-muted); white-space: nowrap; }
.dstrip .seg span { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: var(--radius-door); font-size: var(--size-control); color: var(--text-secondary); }
.dstrip .seg span[aria-selected="true"] { background: var(--tab-selected); color: var(--text-primary); font-weight: 600; box-shadow: 0 0 0 1px var(--tab-line), 0 1px 2px rgba(17,17,17,0.08); }

/* blocks: the added chip, a guess inside the words */
.blk .bh .r .chip { height: 18px; padding: 0 6px; font-size: var(--size-label); font-weight: 600; letter-spacing: 0; }
.chip.addc { background: var(--surface-chip); color: var(--text-secondary); }
.chip.gch { background: var(--status-attention-tint); color: var(--status-warn); height: 18px; padding: 0 6px; font-size: var(--size-label); font-weight: 600; margin-left: 4px; vertical-align: 1px; }
.gin { color: var(--text-secondary); border-bottom: 1px dashed var(--status-attention); }
.cvnote.undo { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-input); padding: 4px 10px; color: var(--text-secondary); box-shadow: var(--elevation-card); }
.cvnote.undo .owed { margin-left: 0; }
.lnkx { color: var(--action-default); font-weight: 500; cursor: pointer; }
.lnkx:hover { text-decoration: underline; text-underline-offset: 2px; }

/* the grouped list from the plus */
.pal2 { width: 380px; }
.pal2 .pg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 4px; }
.pal2 .gl { font-size: var(--size-label); font-weight: 600; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--text-muted); padding: 8px 8px 2px; display: flex; align-items: center; }
.pal2 .gl .owed { text-transform: uppercase; }
.mi.off, .isi.off { color: var(--text-muted); background: var(--surface-chip); cursor: default; }
.palette .pn s, .palpanel .pn s, .islot .pn s { color: var(--text-muted); }

/* the trigger's settings */
.seg4 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 2px; border-radius: var(--radius-tabs); background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--line-hairline); }
.seg4 span { display: flex; align-items: center; justify-content: center; height: 28px; padding: 0 8px; border-radius: var(--radius-door); font-size: var(--size-chip); font-weight: 550; color: var(--text-secondary); text-align: center; line-height: 1.2; }
.seg4 span[aria-checked="true"] { background: var(--tab-selected); color: var(--text-primary); font-weight: 600; box-shadow: 0 0 0 1px var(--tab-line), 0 1px 2px rgba(17,17,17,0.08); }
.whenrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.whenrow .pfx { font-size: var(--size-control); color: var(--text-secondary); }
.picker-field.sm { height: 30px; padding: 0 8px; gap: 6px; font-size: var(--size-control); display: inline-flex; align-items: center; border: 1px solid var(--line-control); border-radius: var(--radius-input); background: var(--surface-raised); box-shadow: var(--shade-field); color: var(--text-primary); }
.trigmini { border: 1px solid var(--line-hairline); border-radius: var(--radius-input); padding: 8px 10px; display: grid; gap: 2px; position: relative; }
.trigmini .nm { font-size: var(--size-control); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.trigmini .ln { font-size: var(--size-chip); color: var(--text-muted); }
.trigmini .pill-open { position: absolute; right: 8px; top: 8px; }

/* V2: the vertical step list and the standing panel */
.pp2 { width: 214px; padding: 10px 8px; overflow: hidden; }
.pp2 .pph { font-size: var(--size-control); font-weight: 600; padding: 2px 8px 0; display: flex; align-items: center; }
.pp2 .pps { font-size: var(--size-chip); color: var(--text-muted); padding: 0 8px 6px; }
.pp2 .psearch { display: flex; align-items: center; gap: 6px; height: 30px; margin: 0 4px 4px; padding: 0 8px; border: 1px solid var(--line-control); border-radius: var(--radius-input); font-size: var(--size-control); color: var(--text-muted); box-shadow: var(--shade-field); }
.pp2 .ph { padding: 6px 8px 2px; display: flex; align-items: center; }
.pp2 .mi { height: 27px; }
.pp2 .mi .gr { margin-left: auto; color: var(--text-muted); display: inline-flex; }
.pp2 .pn { padding: 6px 8px 0; }
.cvv { padding: 10px 22px 50px; overflow: hidden; }
.whencap, .thencap { font-size: var(--size-label); font-weight: 600; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--text-muted); margin: 0 0 6px; display: flex; align-items: center; }
.thencap { margin-top: 10px; }
.vstep { display: grid; grid-template-columns: 44px 16px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 44px; padding: 5px 10px; margin-bottom: 6px; background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-input); box-shadow: var(--elevation-card); cursor: pointer; }
.vstep:hover { border-color: var(--line-hover); }
.vstep.sel { border: 1.5px solid var(--line-selected); padding: 4.5px 9.5px; }
.vstep .sn { font-size: var(--size-label); font-weight: 600; color: var(--text-muted); letter-spacing: var(--label-tracking); text-transform: uppercase; }
.vstep svg.ic { width: 14px; height: 14px; color: var(--text-secondary); }
.vstep .vk { font-size: var(--size-label); font-weight: 600; color: var(--text-muted); letter-spacing: var(--label-tracking); text-transform: uppercase; line-height: 1.2; }
.vstep .vtt { font-size: var(--size-control); font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.35; }
.vstep .vm { font-weight: 400; color: var(--text-muted); font-size: var(--size-chip); }
.vstep .vg { display: inline-flex; align-items: center; gap: 6px; font-size: var(--size-chip); color: var(--text-secondary); white-space: nowrap; }
.vslot { display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; margin-bottom: 6px; border: 1.5px dashed var(--line-hover); border-radius: var(--radius-input); font-size: var(--size-chip); color: var(--text-secondary); background: var(--surface-raised); }
.cvtools.sm { left: 12px; bottom: 12px; }
.drawer-tab { width: 34px; flex: none; border-left: 1px solid var(--line-hairline); background: var(--surface-raised); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0; cursor: pointer; color: var(--text-secondary); }
.drawer-tab span { writing-mode: vertical-rl; font-size: var(--size-chip); font-weight: 550; }
.drawer-tab:hover { background: var(--surface-hover); }

/* V3: the anchored settings card and the inline slot */
.anch { position: absolute; width: 420px; z-index: 7; padding: 0; }
.anh { display: flex; align-items: center; gap: 8px; padding: 10px 12px 8px 14px; border-bottom: 1px solid var(--line-divider); font-size: var(--size-control); }
.anh .m { color: var(--text-muted); font-size: var(--size-chip); }
.anh .r { margin-left: auto; }
.anb { padding: 8px 14px 4px; }
.anf { font-size: var(--size-chip); color: var(--text-muted); padding: 8px 0 10px; border-top: 1px solid var(--line-divider); }
.islot { position: absolute; z-index: 5; background: var(--surface-raised); border: 1.5px dashed var(--line-hover); border-radius: var(--radius-card); padding: 8px 10px; }
.ish { display: flex; align-items: center; gap: 6px; font-size: var(--size-control); font-weight: 600; padding: 0 2px 6px; }
.ish .r { margin-left: auto; color: var(--text-muted); display: inline-flex; }
.isg { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
.isi { display: grid; grid-template-columns: 16px 1fr; gap: 8px; align-items: start; padding: 2px 6px; border-radius: var(--radius-item); cursor: pointer; }
.isi:hover { background: var(--surface-hover); }
.isi svg.ic { width: 14px; height: 14px; margin-top: 2px; color: var(--text-secondary); }
.isi b { display: block; font-size: var(--size-control); font-weight: 600; line-height: 1.2; }
.isi span span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--size-chip); color: var(--text-muted); line-height: 1.3; font-weight: 400; }
.islot .pn { font-size: var(--size-chip); color: var(--text-muted); padding: 6px 2px 0; border-top: 1px solid var(--line-divider); margin-top: 4px; }
.ish .nh { margin-left: 8px; font-size: var(--size-chip); font-weight: 400; color: var(--text-muted); }
.ish .nh s { color: var(--text-muted); }

/* key screen 2: the build turn */
.readycard.rc2 { max-width: 600px; }
.readycard .t .chip { margin-left: 4px; }
.qline { font-size: var(--size-control); color: var(--text-primary); }
.minithread { width: 580px; display: grid; gap: 12px; }
.minithread .me { font-size: var(--size-control); }
.steps-open { display: grid; gap: 4px; margin: 6px 0 0 28px; font-size: var(--size-chip); color: var(--text-muted); }
.steps-open div { display: flex; align-items: center; gap: 6px; }
.steps-open svg.ic { width: 13px; height: 13px; color: var(--status-ok); }
.steps-open .now { color: var(--text-secondary); }
.steps-open .now svg.ic { color: var(--text-muted); }
.routes { display: grid; gap: 6px; max-width: 600px; }
.route { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 10px 12px; background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-input); font-size: var(--size-control); color: var(--text-secondary); line-height: 1.45; cursor: pointer; }
.route b { color: var(--text-primary); font-weight: 600; }
.route.on { border: 1.5px solid var(--line-selected); padding: 9.5px 11.5px; }
.route .rn { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-chip); display: grid; place-items: center; font-size: var(--size-chip); font-weight: 600; color: var(--text-secondary); }
.stepsbtn { display: inline-flex; align-items: center; gap: 6px; font-size: var(--size-chip); color: var(--text-muted); }
.stepsbtn svg.ic { color: var(--status-ok); }
.mflow { display: grid; grid-template-columns: 1fr 14px 1fr 14px 1fr 14px 1fr; gap: 8px 4px; align-items: stretch; max-width: 720px; }
.mfc { background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-input); box-shadow: var(--elevation-card); padding: 7px 10px; display: grid; gap: 2px; align-content: start; }
.mfc .k { font-size: var(--size-label); font-weight: 600; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--text-muted); }
.mfc.you .k { color: var(--text-primary); }
.mfc.you { border-color: var(--line-control); }
.mfc .t { font-size: var(--size-chip); font-weight: 550; color: var(--text-primary); line-height: 1.35; }
.mfc .g { display: inline-flex; align-items: center; gap: 5px; font-size: var(--size-chip); color: var(--text-secondary); }
.mfa { display: grid; place-items: center; color: var(--text-muted); }
.revcard { max-width: 640px; background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); display: grid; }
.revcard .rh { display: flex; gap: 12px; align-items: center; padding: 14px 16px 10px; }
.revcard .rh .t { font-size: var(--size-body); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.revcard .rh .m { font-size: var(--size-chip); color: var(--text-muted); }
.revcard .why { margin: 0 16px; padding: 10px 12px 4px; background: var(--surface-sunken); border: 1px solid var(--line-hairline); border-radius: var(--radius-input); }
.revcard .wh { font-size: var(--size-control); font-weight: 600; color: var(--text-primary); display: flex; align-items: center; padding-bottom: 4px; }
.gr2 { display: grid; grid-template-columns: 20px 1fr auto; gap: 4px 10px; padding: 8px 0; border-top: 1px solid var(--line-divider); font-size: var(--size-control); color: var(--text-secondary); line-height: 1.45; }
.gr2:first-of-type { border-top: 0; }
.gr2 b { color: var(--text-primary); font-weight: 600; }
.gr2 .gn { width: 20px; height: 20px; border-radius: 50%; background: var(--surface-chip); display: grid; place-items: center; font-size: var(--size-label); font-weight: 600; color: var(--text-secondary); margin-top: 1px; }
.gr2 .chips2.r { flex-wrap: nowrap; align-self: start; }
.gr2 .choice { height: 26px; font-size: var(--size-chip); }
.revcard .rf { display: flex; align-items: center; gap: 12px; padding: 12px 16px 14px; }
.revcard .rf .fz { font-size: var(--size-chip); color: var(--text-muted); margin-right: auto; }
.vf .thread { padding-top: 16px; }
.btn-p .owed { color: var(--text-on-action); border-color: var(--text-on-action); }

/* key screen 3: the drive */
.dstrip.d2 { gap: 14px; padding-top: 8px; padding-bottom: 8px; }
.dstrip.d2 .guessline { flex: 1; min-width: 0; font-size: var(--size-control); }
.dstrip.d2 .guessline .r { margin-left: 8px; }
.dstrip.d2 { flex-wrap: nowrap; }
.dstrip.d2 .pc { flex: none; width: 330px; }
.dstrip.d2 .guessline { display: flex; align-items: center; }
.piles3.sm { display: grid; grid-template-columns: 1fr 1.4fr 1fr; border: 1px solid var(--line-hairline); border-radius: var(--radius-input); background: var(--surface-raised); }
.piles3.sm > div { padding: 3px 10px; border-right: 1px solid var(--line-divider); font-size: var(--size-chip); color: var(--text-muted); max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.piles3.sm > div:last-child { border-right: 0; }
.piles3.sm b { display: block; font-size: var(--size-control); color: var(--text-primary); }
.rcb.tight { gap: 0; padding-top: 4px; }
.rcf.mnote { padding-top: 10px; border-top: 1px solid var(--line-divider); font-size: var(--size-chip); color: var(--text-muted); line-height: 1.45; }
.scrimx { position: absolute; inset: 0; background: var(--scrim); z-index: 8; }
.pubdlg { position: absolute; left: 50%; top: 70px; transform: translateX(-50%); width: 600px; z-index: 9; background: var(--surface-raised); border-radius: var(--radius-panel); box-shadow: var(--elevation-modal); padding: 18px 22px 16px; display: grid; gap: 12px; }
.pubdlg .dh { display: flex; align-items: center; gap: 8px; }
.pubdlg .dh h3 { font-size: var(--size-heading); font-weight: var(--weight-heading); letter-spacing: var(--tracking-heading); flex: 1; }
.pubdlg .verdict { margin: 0; font-size: var(--size-body); }
.pubdlg .piles3 { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-hairline); border-radius: var(--radius-input); }
.pubdlg .piles3 > div { padding: 8px 12px; border-right: 1px solid var(--line-divider); font-size: var(--size-chip); color: var(--text-muted); line-height: 1.35; }
.pubdlg .piles3 > div:last-child { border-right: 0; }
.pubdlg .piles3 b { display: block; font-size: var(--size-control); color: var(--text-primary); }
.cmp2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line-hairline); border-radius: var(--radius-input); font-size: var(--size-control); color: var(--text-secondary); }
.cmp2 > div { padding: 8px 12px; line-height: 1.45; }
.cmp2 > div + div { border-left: 1px solid var(--line-divider); background: var(--surface-sunken); }
.cmp2 .ch { font-size: var(--size-label); font-weight: 600; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--text-muted); }
.pubdlg .dfield label { font-size: var(--size-control); font-weight: 550; display: block; margin-bottom: 4px; }
.pubdlg .ta { border: 1px solid var(--line-control); border-radius: var(--radius-input); padding: 8px 10px; font-size: var(--text-field); min-height: 60px; box-shadow: var(--shade-field); }
.pubdlg .hint { font-size: var(--size-chip); color: var(--text-muted); margin-top: 4px; }
.pubdlg .df { display: flex; align-items: center; gap: 8px; padding-top: 4px; }
.pubdlg .df .sp { flex: 1; }
.cvwrap.col3 { flex-direction: column; }
.minic { display: grid; grid-template-columns: 1fr 14px 1fr 14px 1fr 14px 1fr 14px 1fr; gap: 8px 4px; padding: 12px 20px; border-bottom: 1px solid var(--line-hairline); background: var(--surface-page); }
.mb { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--surface-raised); border: 1.5px solid var(--text-primary); border-radius: var(--radius-input); min-width: 0; }
.mb.sel { border-color: var(--line-selected); box-shadow: 0 0 0 1px var(--line-selected); }
.mb > span { min-width: 0; flex: 1; display: grid; }
.mb .k { font-size: var(--size-label); font-weight: 600; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--text-muted); }
.mb b { font-size: var(--size-chip); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb svg.ic { width: 14px; height: 14px; color: var(--text-secondary); }
svg.ic.ok { color: var(--status-ok); } svg.ic.h { color: var(--text-secondary); }
.ma { display: grid; place-items: center; color: var(--text-muted); }
.tray { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--surface-raised); }
.trh { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--line-divider); }
.trh .seg span { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: var(--radius-door); font-size: var(--size-control); color: var(--text-secondary); }
.trh .seg span[aria-selected="true"] { background: var(--tab-selected); color: var(--text-primary); font-weight: 600; box-shadow: 0 0 0 1px var(--tab-line); }
.trh .m { font-size: var(--size-chip); color: var(--text-muted); margin-left: auto; }
.trb { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 360px; }
.ltab { overflow: hidden; }
.lr { display: grid; grid-template-columns: 70px 200px 1fr 60px; gap: 8px; align-items: center; height: 31px; padding: 0 16px; border-bottom: 1px solid var(--line-divider); font-size: var(--size-chip); color: var(--text-secondary); }
.lr .st { display: flex; align-items: center; gap: 6px; color: var(--text-primary); font-weight: 550; white-space: nowrap; overflow: hidden; }
.lr .c { text-align: right; }
.lr.hd { height: 28px; background: var(--surface-sunken); font-size: var(--size-label); font-weight: 600; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--text-muted); }
.lr.sel { background: var(--surface-active); }
.ldet { border-left: 1px solid var(--line-hairline); padding: 12px 16px; display: grid; gap: 10px; align-content: start; font-size: var(--size-control); }
.ldet .lh { display: grid; gap: 2px; }
.ldet .lh .m { font-size: var(--size-chip); color: var(--text-muted); }
.io { display: grid; gap: 3px; padding-top: 8px; border-top: 1px solid var(--line-divider); color: var(--text-secondary); }
.io .ik { font-size: var(--size-label); font-weight: 600; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--text-muted); }
.trf { padding: 8px 16px; border-top: 1px solid var(--line-divider); font-size: var(--size-chip); color: var(--text-muted); }

/* key screen 4: the shop */
.pagebody.shop { padding: 14px 32px 0; overflow: hidden; flex: 1; min-height: 0; }
.tbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.srch { display: flex; align-items: center; gap: 8px; width: 300px; height: 32px; padding: 0 10px; border: 1px solid var(--line-control); border-radius: var(--radius-input); background: var(--surface-raised); box-shadow: var(--shade-field); font-size: var(--size-control); color: var(--text-muted); }
.seg.lt span { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--radius-door); font-size: var(--size-control); color: var(--text-secondary); }
.seg.lt span[aria-selected="true"] { background: var(--tab-selected); color: var(--text-primary); font-weight: 600; box-shadow: 0 0 0 1px var(--tab-line), 0 1px 2px rgba(17,17,17,0.08); }
.tbar .cnt { margin-left: auto; font-size: var(--size-chip); color: var(--text-muted); }
.tlist { display: grid; gap: 16px; align-content: start; min-width: 0; }
.tg { display: grid; gap: 0; }
.tgh { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.tgh h2 { font-size: var(--size-heading); font-weight: var(--weight-heading); letter-spacing: var(--tracking-heading); }
.tgh span { font-size: var(--size-chip); color: var(--text-muted); }
.tr2 { display: grid; grid-template-columns: minmax(0, 1fr) 90px auto auto; gap: 12px; align-items: center; min-height: 50px; padding: 6px 12px; background: var(--surface-raised); border: var(--card-border); border-top-width: 0; cursor: pointer; }
.tg .tgh + .tr2 { border-top-width: 1px; border-radius: var(--radius-card) var(--radius-card) 0 0; }
.tg .tr2:last-child { border-radius: 0 0 var(--radius-card) var(--radius-card); }
.tg .tgh + .tr2:last-child { border-radius: var(--radius-card); }
.tr2:hover { background: var(--surface-hover); }
.tr2.sel { background: var(--surface-active); }
.tr2 .n { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.tr2 .n b { font-size: var(--size-body); font-weight: 600; }
.tr2 .n .j { flex-basis: 100%; font-size: var(--size-chip); color: var(--text-muted); }
.tr2 .kd { font-size: var(--size-chip); color: var(--text-muted); }
.tmodal.v { top: 24px; z-index: 9; max-height: calc(100% - 48px); }
.tmodal.v .tmb { gap: 10px; }
.tmh .amk { width: 40px; height: 40px; }
.gk { display: grid; grid-template-columns: 96px 1fr; gap: 8px; font-size: var(--size-control); color: var(--text-secondary); line-height: 1.4; }
.gk span { font-size: var(--size-chip); font-weight: 600; color: var(--text-primary); }
.pvw { display: grid; grid-template-columns: 1fr 14px 1fr 14px 1fr 14px 1fr 14px 1fr; gap: 4px; }
.pvc { background: var(--surface-sunken); border: 1px solid var(--line-hairline); border-radius: var(--radius-input); padding: 6px 8px; font-size: var(--size-chip); color: var(--text-primary); line-height: 1.35; display: grid; gap: 2px; align-content: start; }
.pvc .k { font-size: var(--size-label); font-weight: 600; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--text-muted); }
.spanel { position: absolute; right: 0; top: 0; bottom: 0; width: var(--side-panel-width); z-index: 9; background: var(--surface-raised); box-shadow: var(--elevation-modal); border-left: 1px solid var(--line-hairline); display: flex; flex-direction: column; }
.spanel .tmb { flex: 1; min-height: 0; padding-top: 0; }
.spanel .two-lists { grid-template-columns: 1fr; gap: 6px; }
.tplwrap.v2 { grid-template-columns: 190px 1fr; }
.frail { display: grid; gap: 2px; align-content: start; }
.frail .fh { font-size: var(--size-label); font-weight: 600; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--text-muted); padding: 6px 0 4px; display: flex; align-items: center; }
.fck { display: flex; align-items: center; gap: 8px; height: 28px; font-size: var(--size-control); color: var(--text-primary); cursor: pointer; }
.fck .cb { width: 16px; height: 16px; border-radius: var(--radius-checkbox); box-shadow: inset 0 0 0 1.5px var(--line-control); display: grid; place-items: center; flex: none; }
.fck.on .cb { background: var(--action-default); box-shadow: none; color: var(--text-on-action); }
.fck .n { margin-left: auto; font-size: var(--size-chip); color: var(--text-muted); }
.ttab { background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); overflow: hidden; }
.ttab .th, .tdr { display: grid; grid-template-columns: minmax(0, 1fr) 70px 150px 80px 80px; gap: 10px; align-items: center; padding: 0 12px; }
.ttab .th { height: 32px; background: var(--surface-sunken); font-size: var(--size-label); font-weight: 600; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--text-muted); }
.tdr { min-height: 56px; border-top: 1px solid var(--line-divider); font-size: var(--size-chip); color: var(--text-secondary); }
.tdr.sel { background: var(--surface-active); }
.tdr b { display: block; font-size: var(--size-control); font-weight: 600; color: var(--text-primary); }
.tdr i { font-style: normal; display: block; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sdoor { background: var(--surface-raised); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--elevation-card); padding: 12px 14px; margin-bottom: 14px; display: grid; gap: 6px; max-width: 760px; }
.sdoor .sl { font-size: var(--size-control); font-weight: 600; display: flex; align-items: center; }
.sdoor .sf { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 6px 0 12px; border: 1px solid var(--line-focus); border-radius: var(--radius-input); box-shadow: 0 0 0 1px var(--line-focus); }
.sdoor .typed { flex: 1; font-size: var(--text-field); }
.tlist.wide { max-width: 760px; }
.catchips { display: flex; flex-wrap: wrap; gap: 6px; }
.catchips .m { color: var(--text-muted); font-weight: 400; margin-left: 4px; }
.spanel .tmf { flex-wrap: wrap; }
.spanel .tmf .fz { flex-basis: 100%; }
.vfoot { max-width: 980px; margin-top: 56px; }
.vfoot p, .vfoot li { font-size: var(--size-control); color: var(--text-secondary); }
.vfoot b { color: var(--text-primary); }
#carried .picks { max-width: 1280px; }
.vf .thread .col { gap: 14px; }
.rcb.tight .trow { padding: 5px 0; }
.rcb.tight .trow .m { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.rcb .pace { margin: 6px 0 0; font-size: var(--size-chip); color: var(--text-muted); line-height: 1.4; }

