*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --bg: #0e1015; --bg2: #161922; --bg3: #222734; --border: #2c3242;
  --bd2: #3a4153;                              /* emphasis border */
  --surface-a: #222734; --surface-b: #1a1e29;  /* tactile card gradient stops */
  --text: #f4f5fa; --text2: #9aa3b4; --text3: #5f6878;
  --accent: #9fb0c7; --accent-dim: rgba(159,176,199,.14);
  /* Semantic / urgency channel — fixed roles */
  --waiting: #f0b34a; --stale: #e0607e; --done: #46c98a;
  --on-done: #06140c; /* Forge Move 1176: text on a filled --done button */
  /* Moves 644 + 654. ONE warning color for both surfaces that need
     attention-orange: the new-version banner and the auditing state. Two
     hardcoded oranges would diverge the first time either was retuned.
     Brighter and more saturated than --waiting on purpose -- --waiting is a
     status amber for a row, this is a call to look now. */
  --warn: #ff8c3a;
  --acting: #ffa62b; /* brighter than --warn, for 'Forge is working' text */
  /* Paired with --done the way --accent-dim is paired with --accent, so a fill
     and the text on it move together across themes instead of one being a
     constant that is only right in half of them. Added 2026-08-11 for
     .wn-complete--lg, which measured 3.05:1 in the light theme. */
  --done-dim: rgba(70,201,138,.14);
  --danger: #e0607e; --active: #46c98a; --paused: #f0b34a; --archived: #5f6878;
  /* Move 807. The body of an assistant reply in Dispatch (Planner, Strategist,
     Inspector), which J.J. asked to be white on 2026-09-25. Its own variable
     rather than a literal on the bubble, because white is only right on a dark
     ground: the two light themes below point it back at --text. Lyra is dark
     and inherits the white from here. */
  --reply-text: #ffffff;
  --radius: 8px; --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Light theme — overrides the palette variables; everything else reads var(--…) */
:root[data-theme="light"] {
  --bg: #FAF7F0; --bg2: #FFFFFF; --bg3: #F1EEE4; --border: #E4E1D8;
  --bd2: #D4D0C4; --surface-a: #FFFFFF; --surface-b: #F5F2EA;
  --text: #1F3A2E; --text2: #5F6B62; --text3: #8A9690;
  --accent: #2D6C4E; --accent2: #2D6C4E; --accent-dim: rgba(45,108,78,.12); --sidebar-bg: #DDE8D8;
  --waiting: #9A6700; --stale: #B83030; --done: #2D6C4E;
  --on-done: #ffffff;
  /* Darker than the dark-theme value, not the same hex: #ff8c3a on white is
     unreadable. This is ~4.9:1 on a light ground, which clears AA for body
     text. NOTE the light palettes further down this file redefine --accent
     and NOT --waiting, so they inherit the dark amber and are a known
     contrast weakness that predates this change. */
  --warn: #C2410C;
  --acting: #EA580C; /* brighter than --warn, still legible on a light page */
  --done-dim: rgba(45,108,78,.12);
  --danger: #B83030; --active: #2D6C4E; --paused: #9A6700; --archived: #8A9690;
  --reply-text: var(--text);
}

/* Lyra dark — shadcn-svelte "Lyra" preset (olive neutrals, JetBrains Mono, zero radius).
   Accent: warm olive-stone, monochrome-faithful (no violet). */
:root[data-theme="lyra"] {
  --bg: oklch(0.153 0.006 107.1); --bg2: oklch(0.228 0.013 107.4);
  --bg3: oklch(0.286 0.016 107.4); --border: oklch(1 0 0 / 10%);
  --bd2: oklch(1 0 0 / 18%);
  --surface-a: oklch(0.228 0.013 107.4); --surface-b: oklch(0.19 0.011 107.4);
  --text: oklch(0.988 0.003 106.5); --text2: oklch(0.737 0.021 106.9); --text3: oklch(0.58 0.031 107.3);
  --accent: oklch(0.78 0.05 107.1); --accent2: oklch(0.78 0.05 107.1);
  --accent-dim: oklch(0.78 0.05 107.1 / 18%);
  --radius: 0px;
  --font: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
:root[data-theme="lyra"] * { border-radius: 0 !important; }
:root[data-theme="lyra"] .brief-prose,
:root[data-theme="lyra"] .brief-title { font-family: var(--font); }

/* Lyra light — same aesthetic, light olive-warm background, muted olive accent. */
:root[data-theme="lyra-light"] {
  --acting: #EA580C; /* light ground: the legible bright orange */
  --bg: oklch(0.97 0.005 107.1); --bg2: oklch(0.93 0.008 107.4);
  --bg3: oklch(0.87 0.012 107.4); --border: oklch(0.153 0.006 107.1 / 14%);
  --bd2: oklch(0.153 0.006 107.1 / 24%);
  --surface-a: oklch(0.93 0.008 107.4); --surface-b: oklch(0.90 0.01 107.4);
  --text: oklch(0.18 0.008 107.1); --text2: oklch(0.42 0.022 107.1); --text3: oklch(0.58 0.018 107.3);
  --accent: oklch(0.42 0.07 107.1); --accent2: oklch(0.42 0.07 107.1);
  --accent-dim: oklch(0.42 0.07 107.1 / 14%);
  --sidebar-bg: oklch(0.91 0.011 107.4);
  /* The light theme's #2D6C4E hue (oklch 0.481 0.082 160.3) measured 4.22:1 on
     this --bg3, under AA for the 12px weight 600 tags drawn in it, so it is
     darkened in oklch at the same hue: 5.78:1 on --bg2, 4.82:1 on --bg3
     (test/done-contrast-browser.test.js). Without this block's own pair it
     inherited the dark theme's #46c98a, 1.71:1 on --bg2. */
  --done: oklch(0.45 0.08 160.3);
  --done-dim: oklch(0.45 0.08 160.3 / 12%);
  --on-done: #ffffff;
  --reply-text: var(--text);
  --radius: 0px;
  --font: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
:root[data-theme="lyra-light"] * { border-radius: 0 !important; }
:root[data-theme="lyra-light"] .brief-prose,
:root[data-theme="lyra-light"] .brief-title { font-family: var(--font); }

html, body { height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16.8px; }

#app { display: grid; grid-template-columns: 240px 1fr; grid-template-rows: minmax(0, 1fr); height: 100vh; overflow: hidden; }

/* Hide the left nav (Move 411) — full-window queue on desktop.
   The toggle is fixed rather than a grid child so collapsing the grid cannot take
   it with it, and it sits just outside the 240px column so it never covers content. */
#btn-toggle-nav {
  position: fixed; top: 10px; left: 246px; z-index: 30;
  width: 22px; height: 26px; padding: 0; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; cursor: pointer; opacity: .55;
  background: var(--bg2); color: var(--fg);
  border: 1px solid var(--border); border-radius: 4px;
}
#btn-toggle-nav:hover { opacity: 1; }
/* Only #main remains in flow once the sidebar is out, so one column is correct. */
#app.nav-hidden { grid-template-columns: minmax(0, 1fr); }
#app.nav-hidden #sidebar { display: none; }
#app.nav-hidden #btn-toggle-nav { left: 8px; transform: rotate(180deg); }
/* At this width the mobile drawer owns the sidebar; two controls for one job would
   fight, and navHiddenState() already forces the nav visible here. */
@media (max-width: 760px) { #btn-toggle-nav { display: none; } }

/* Sidebar */
#mobile-topbar { display: none; }
#drawer-backdrop { display: none; }
#sidebar { background: var(--sidebar-bg, var(--bg2)); border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 18px 16px 12px; border-bottom: 1px solid var(--border); }
.sidebar-header h1 { font-size: 18px; font-weight: 600; letter-spacing: .02em; }
.continuum-wordmark { cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1; }
.cw-top { font-family: 'Jost', sans-serif; font-weight: 700; font-size: 17px; letter-spacing: .18em; text-transform: uppercase; }
.cw-bracket-open { color: #3b82f6; }
.cw-bracket-close { color: #e8212e; }
.cw-bottom { font-family: 'Jost', sans-serif; font-weight: 700; font-size: calc(14px * 1.5); letter-spacing: .12em; text-transform: uppercase; color: #ff8c3a; }
#btn-new-project { width: 28px; height: 28px; background: var(--accent); color: #fff; border: none; border-radius: 6px; font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
#btn-new-project:hover { opacity: .85; }
/* #226: keep the + button hugging the right edge now that the daemon dot is a third header child. */
#btn-new-project { margin-left: auto; }
.daemon-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--archived); display: inline-block; flex-shrink: 0; }
.daemon-dot.daemon-on { background: var(--done); }
/* Connected but hasn't advertised session-isolation support yet -- the state
   that read identically to daemon-on before Move 451 and cost ~40
   minutes to diagnose during the Move 418 advertise race. */
.daemon-dot.daemon-partial { background: var(--waiting); }
.filter-row { display: flex; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.filter-btn { flex: 1; background: none; border: 1px solid transparent; border-radius: 5px; color: var(--text2); font-size: 13.2px; padding: 4px 2px; cursor: pointer; }
.filter-btn:hover { color: var(--text); background: var(--bg3); }
.filter-btn.active { border-color: transparent; color: var(--accent2); background: var(--accent-dim); }
/* Move 450. Sits directly under .filter-row and matches its density and its
   10px gutter, rather than carrying over the portfolio header's .pf-search
   sizing, which was built to sit beside a heading and a tab group. */
.sidebar-search { display: block; width: calc(100% - 20px); margin: 8px 10px; background: var(--bg3); border: 1px solid var(--border); color: var(--text); border-radius: 5px; font-size: 13.2px; padding: 5px 8px; }
.sidebar-search::placeholder { color: var(--text3); }
.sidebar-search:focus { outline: none; border-color: var(--accent); }
#project-list { list-style: none; overflow-y: auto; flex: 1; min-height: 0; padding: 6px 0; }
#shared-project-list { list-style: none; padding: 6px 0; }
.proj-list-item { display: flex; align-items: center; gap: 8px; padding: 8px 9px; cursor: pointer; border-radius: 9px; margin-bottom: 2px; }
.proj-list-item:hover { background: var(--bg3); }
.proj-list-item.selected { background: var(--accent-dim); }
.proj-rail { width: 5px; height: 28px; border-radius: 3px; flex-shrink: 0; }
.proj-list-item.dragging { opacity: .35; }
.proj-list-item.drag-over-top { border-top: 2px solid var(--accent); }
.proj-list-item.drag-over-bottom { border-bottom: 2px solid var(--accent); }
.drag-handle { flex-shrink: 0; color: var(--text3); cursor: grab; font-size: 15.6px; padding: 2px 3px; user-select: none; line-height: 1; opacity: 0; transition: opacity .12s; }
.proj-list-item:hover .drag-handle { opacity: 1; }
.proj-list-content { flex: 1; min-width: 0; }
.proj-list-name { font-weight: 500; font-size: 14.4px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-list-meta { font-size: 12px; color: var(--text3); margin-top: 1px; }
/* Forge Move 1237: a project's number under its name, in smaller type. */
.project-number { font-family: var(--font); font-size: 12px; font-weight: 400; color: var(--text2); letter-spacing: 0; }
.proj-list-number { font-size: 11.5px; margin-top: 1px; }
.proj-number { margin: 2px 0 6px; font-size: 13px; }
.star-btn { flex-shrink: 0; background: none; border: none; color: var(--text3); cursor: pointer; font-size: 16.8px; padding: 2px 3px; line-height: 1; opacity: 0; transition: opacity .12s; }
.proj-list-item:hover .star-btn { opacity: 1; }
.star-btn.starred { color: #e0b341; opacity: 1; }
.star-btn.starred:hover { color: #caa12e; }

/* Main */
/* --main-pad is #main's top padding, named because two sticky rules below have to
   offset by it: a sticky element's top counts from INSIDE the scroll container's
   padding, so top: 0 alone sticks 32px down with content showing above it. */
#main { --main-pad: 32px; --pnav-h: 44px; --live-strip-h: 0px; overflow-y: auto; min-height: 0; padding: var(--main-pad) 40px; }
/* Move 1043. What is running now, across every project (public/live-strip.js).
   Sticky inside #main's own scroll, so it stays in the page's layout rather than
   joining the fixed corner widgets (the music player, the session chips). Theme
   variables only, so every theme draws it. */
/* J.J. 2026-10-13: scrolled down, the project nav (z-index 20, the top 44px of
   #main's viewport) painted over the strip's top edge, because top: 0 stuck the
   strip 32px down. Now it sits flush at the very top when there is no nav, and
   directly under the nav when the project view is showing. --live-strip-h is
   its height, written by live-strip.js, so the Dispatch column clears it too. */
.live-strip {
  position: sticky; top: calc(-1 * var(--main-pad)); z-index: 5;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin: 0 0 16px; padding: 6px 12px;
  background: var(--bg2); color: var(--text); border: 1px solid var(--border);
  border-left: 3px solid var(--acting); border-radius: 6px; font-size: 13px;
}
#main:has(#project-view:not([hidden])) .live-strip { top: calc(var(--pnav-h) - var(--main-pad)); }
.live-strip[hidden] { display: none; }
.live-strip__phase { color: var(--acting); white-space: nowrap; }
.live-strip__left { color: var(--text3); white-space: nowrap; }
.live-strip__head { color: var(--acting); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .08em; }
.live-strip__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.live-strip__item { display: flex; gap: 8px; align-items: baseline; color: var(--text); text-decoration: none; min-width: 0; min-height: 24px; }
.live-strip__item:hover .live-strip__label { text-decoration: underline; }
.live-strip__label { font-weight: 600; white-space: nowrap; }
.live-strip__text { color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.live-strip__when { color: var(--text3); white-space: nowrap; margin-left: auto; }
#empty-state { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--text2); font-size: 18px; }

/* Portfolio */
.portfolio-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.portfolio-header h2 { font-size: 24px; font-weight: 700; }
/* .pf-search is gone with Move 450: the input it styled moved into the sidebar
   as .sidebar-search. Left as a note rather than silently deleted, because the
   portfolio header still lays out around where it used to sit. */
.pf-mode-tabs { display: flex; gap: 4px; }
.pf-mode-btn { background: none; border: 1px solid var(--border); border-radius: 5px; color: var(--text2); font-size: 14.4px; padding: 5px 12px; cursor: pointer; }
.pf-mode-btn:hover { color: var(--text); background: var(--bg3); }
.pf-mode-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.guide-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.guide-tab-btn { background: none; border: 1px solid var(--border); border-radius: 5px; color: var(--text2); font-size: 14.4px; padding: 5px 12px; cursor: pointer; }
.guide-tab-btn:hover { color: var(--text); background: var(--bg3); }
.guide-tab-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
#pf-signal-strip { display: flex; gap: 24px; padding: 10px 0 20px; }
.pf-signal-stat { display: flex; align-items: baseline; gap: 5px; }
.pf-signal-num { font-size: 26.4px; font-weight: 700; line-height: 1; }
.pf-signal-label { font-size: 13.2px; color: var(--text2); text-transform: uppercase; letter-spacing: .05em; }
.pf-signal--blocked .pf-signal-num { color: var(--paused); }
.pf-signal--stale .pf-signal-num { color: var(--danger); }
.pf-signal--muted .pf-signal-num { color: var(--text2); }
.pf-group { margin-bottom: 28px; }
.pf-group-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.pf-group-label { font-size: 13.2px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text2); }
.pf-group-count { background: var(--bg3); border: 1px solid var(--border); color: var(--text2); border-radius: 10px; padding: 1px 7px; font-size: 13.2px; font-weight: 600; }
.pf-group-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pf-group-cards:has(> .pf-card:only-child) { grid-template-columns: 1fr; }
.pf-card { background: linear-gradient(155deg, var(--surface-a), var(--surface-b)); border: 1px solid var(--border); border-radius: 13px; padding: 14px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; transition: transform .12s, border-color .12s; border-left: 3px solid transparent; box-shadow: 0 6px 20px rgba(0,0,0,.064), inset 0 1px 0 rgba(255,255,255,.04); }
.pf-card:hover { border-color: var(--bd2); transform: translateY(-2px); }
.pf-card--blocked { border-left-color: var(--paused); }
.pf-card--stale { border-left-color: var(--danger); }
.pf-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pf-card-name { font-weight: 600; font-size: 16.8px; line-height: 1.3; flex: 1; }
.pf-card-badges { display: flex; align-items: center; gap: 5px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.pf-card-badge { font-size: 12px; font-weight: 600; padding: 2px 6px; border-radius: 20px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.pf-card-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.pf-card-wait { font-size: 14.4px; color: var(--paused); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pf-card-wait-days { font-size: 13.2px; font-weight: 600; background: rgba(240,165,0,.15); border-radius: 4px; padding: 1px 5px; }
.pf-card-next { display: flex; align-items: baseline; gap: 6px; overflow: hidden; }
.pf-card-next--empty { color: var(--text); font-size: 14.4px; font-style: italic; }
.pf-next { font-size: 14.4px; color: var(--text2); font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-next-count { display: inline-block; background: var(--accent-dim); color: var(--accent); border-radius: 10px; padding: 1px 7px; font-size: 13.2px; font-weight: 600; font-style: normal; flex-shrink: 0; }
.pf-card-footer { font-size: 13.2px; color: var(--text2); margin-top: 2px; }
#pf-popover { position: fixed; z-index: 50; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.07); padding: 12px 16px; width: 260px; pointer-events: none; }
#pf-popover-inner { display: flex; flex-direction: column; gap: 8px; }
.pf-pop-list { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.pf-pop-list li { font-size: 14.4px; line-height: 1.4; color: var(--text); padding-left: 12px; position: relative; }
.pf-pop-list li::before { content: '›'; position: absolute; left: 0; color: var(--accent); }
.pf-pop-desc { font-size: 13.2px; color: var(--text2); font-style: italic; border-top: 1px solid var(--border); padding-top: 8px; line-height: 1.5; }

/* Project header */
.project-header { margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
/* The project's name block, lifted above the section bar (2026-09-23): same column
   rhythm as the header it came out of, so the logo, title and description read as
   they always did, just first. */
.project-identity { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.proj-actions-row { display: flex; align-items: center; gap: 10px; }
.proj-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
#proj-status-select { background: var(--bg3); border: 1px solid var(--border); color: var(--text); border-radius: 5px; padding: 4px 8px; font-size: 14.4px; cursor: pointer; }
.field-group { display: flex; flex-direction: column; gap: 5px; }
.field-label { font-size: 13.2px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text2); }
.field-input { background: var(--bg3); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-family: var(--font); font-size: 15.6px; padding: 8px 12px; width: 100%; max-width: 560px; }
.field-input:focus { outline: none; border-color: var(--accent); }
.field-input::placeholder { color: var(--text2); opacity: .5; }
.field-input--title { font-size: 21.6px; font-weight: 600; }
#proj-status-badge { font-size: 13.2px; font-weight: 600; padding: 3px 8px; border-radius: 20px; text-transform: uppercase; letter-spacing: .05em; }
.badge-active { background: rgba(46,204,113,.15); color: var(--active); }
.badge-paused { background: rgba(240,165,0,.15); color: var(--paused); }
.badge-archived { background: rgba(102,102,128,.15); color: var(--archived); }

/* Sections */
.section { margin-bottom: 40px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-header h3 { font-size: 15.6px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text2); }
.section-header-left { display: flex; align-items: center; gap: 6px; }
.section-toggle { background: none; border: none; color: var(--text3); cursor: pointer; font-size: 13px; padding: 0; line-height: 1; }
.section-toggle:hover { color: var(--text2); }
.section-count { font-size: 12px; color: var(--text3); font-weight: 400; letter-spacing: 0; text-transform: none; }
.section--collapsed .section-body { display: none; }
.section--collapsed .section-header { margin-bottom: 0; }
.section-header-actions { display: flex; align-items: center; gap: 6px; }
/* Move 1146. What's Next carries its search box, Audit, Copy work prompt, Scope
   and Work the queue directly in its header, which did not wrap, so on a phone in
   portrait Scope was cut off and Work the queue was off screen entirely (J.J.,
   2026-10-18). It wraps at every width for the reason the .wn-item rule below
   gives: a breakpoint encodes a guess about how wide the controls are.
   Pinned by test/wn-header-phone-browser.test.js. */
#wn-section > .section-header { flex-wrap: wrap; row-gap: 8px; column-gap: 8px; }
/* Move 405: the sweep's verdict. Unmerged is the state worth noticing, so it
   is the only one that gets the warning color; "all landed" is deliberately
   quiet, because a diagnostic that shouts when nothing is wrong gets ignored
   when something is. */
.merge-sweep { margin-bottom: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; line-height: 1.5; }
.merge-sweep--clean { color: var(--text2); }
.merge-sweep--warn { border-color: var(--danger, #c84b31); }
.merge-sweep h4 { font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.merge-sweep ul { margin: 6px 0 0; padding-left: 18px; }
.merge-sweep li { margin: 3px 0; }
.merge-sweep code { font-size: 12px; color: var(--text2); }
.merge-sweep .ms-note { color: var(--text3); margin-top: 8px; }
/* J.J., 2026-08-01: the first cut of this was background:none, --text2 and 11px,
   which rendered so quietly he read the panel as having no buttons at all even
   though they were in the DOM. An action nobody can see is not an action. This
   now borrows the app's existing secondary-button idiom (a filled --bg3 on
   hover, --text on hover, the same 4px radius as .icon-btn) rather than
   inventing a smaller, dimmer one, and it carries a resting fill so it reads as
   pressable before the pointer is anywhere near it. */
.ms-ack-btn { background: var(--bg3); border: 1px solid var(--border); border-radius: 4px; color: var(--text); cursor: pointer; font-size: 12px; padding: 2px 9px; margin-left: 6px; }
.ms-ack-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.ms-ack-btn:disabled { opacity: .5; cursor: not-allowed; }
.ms-ack-input { font-size: 12px; padding: 3px 7px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg); color: var(--text); min-width: 280px; }
.ms-ack-input:focus { outline: none; border-color: var(--accent); }
.ms-evidence { color: var(--text3); font-size: 12px; }
/* Move 481. A link, not a button, because it navigates rather than acts, and the
   panel's one existing rule about affordance (see the .ms-ack-btn note above) is
   that a control nobody can see is not a control -- so it is underlined and
   carries the accent color rather than hiding in the same gray as the sha it
   sits next to. */
.merge-sweep .ms-open { color: var(--accent); text-decoration: underline; font-size: 12px; }
/* Move 578. What the device says about this project's directory. Three states,
   two colors: linked is quiet good news, not-linked or refused is actionable
   and takes the attention color rather than the danger one, because an
   unlinked project is a setup step and not a fault. */
.proj-wd-device-row { margin: 2px 0 0 26px; min-height: 16px; }
.proj-wd-device { font-size: 12px; color: var(--text3); }
.proj-wd-device--ok { color: var(--done); }
.proj-wd-device--bad { color: var(--waiting); }
/* Move 576: the test step, between merge and push. Five verdict states share
   three colors on purpose: only a real failure is alarming, a pass is quiet
   good news, and "uncitable" or "unknown" are neither, so they take the same
   attention color as a blocked merge rather than the danger color. Coloring
   an uncitable run red would train the reader to distrust the whole card. */
.agent-console__tests { margin-top: 14px; }
.proj-tests { margin-top: 14px; }
/* Doubled with .agent-console__merge-note on purpose: that rule sits later in this
   file at the same specificity and set every verdict to --text2, so until
   2026-09-30 a pass, a failure and an uncitable run all rendered the same gray. */
.agent-console__merge-note.agent-console__tests--pass { color: var(--done); }
.agent-console__merge-note.agent-console__tests--fail { color: var(--danger); }
.agent-console__merge-note.agent-console__tests--warn { color: var(--waiting); }
.agent-console__merge-note.agent-console__tests--running { color: var(--acting); font-weight: 700; animation: tests-running-pulse 1.6s ease-in-out infinite; }
/* J.J., 2026-09-30: a running suite reads as Forge working, in the acting color,
   and pulses so the owner can see it is alive over twenty minutes. */
@keyframes tests-running-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .agent-console__merge-note.agent-console__tests--running { animation: none; } }
.agent-console__tests-failures { margin: 6px 0 0; padding-left: 20px; color: var(--text2); font-size: 12px; }
.agent-console__tests-failures li { margin: 2px 0; }
.merge-sweep .ms-open:hover { color: var(--text); }
.ms-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 5px; }
.ms-chip { background: none; border: 1px dashed var(--border); border-radius: 10px; color: var(--text2); cursor: pointer; font-size: 11px; padding: 2px 9px; }
.ms-chip:hover { border-style: solid; color: var(--text); background: var(--bg3); }
/* Move 482: the sweep's merge card. Carded like the console's version so it
   reads as the same control in a second place, but nested inside a list row, so
   it indents rather than sitting flush. Colors are the console's, deliberately:
   a blocked merge is something the user can act on, not a failure. */
.merge-sweep .ms-merge { border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 6px; padding: 8px 10px; margin: 8px 0 4px 0; background: var(--bg2); }
.merge-sweep .ms-merge--ready { font-size: 13px; line-height: 1.35; color: var(--text); font-weight: 600; }
.merge-sweep .ms-merge--blocked { color: var(--waiting); }
.merge-sweep .ms-reviewed { margin-top: 10px; }
.merge-sweep .ms-reviewed summary { color: var(--text3); cursor: pointer; font-size: 12px; }

/* Tools + Deployments tables */
#tools-table, #deploy-table { width: 100%; border-collapse: collapse; font-size: 15.6px; }
#tools-table th, #deploy-table th { text-align: left; padding: 7px 12px; border-bottom: 1px solid var(--border); color: var(--text2); font-weight: 500; font-size: 14.4px; }
#tools-table td, #deploy-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
#tools-table tr:last-child td, #deploy-table tr:last-child td { border-bottom: none; }
#tools-table tr:hover td, #deploy-table tr:hover td { background: var(--bg3); }
.tool-chip { display: inline-block; background: var(--accent-dim); color: var(--accent); border-radius: 4px; padding: 2px 8px; font-size: 14.4px; font-weight: 500; }
.profile-chip { display: inline-block; background: var(--bg3); color: var(--text2); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; font-size: 13.2px; margin-left: 4px; }
.tool-location a, #deploy-table a { color: var(--accent); text-decoration: none; }
.tool-location a:hover, #deploy-table a:hover { text-decoration: underline; }
.tool-notes { color: var(--text2); font-size: 14.4px; }

/* Drops + Work Log shared styles */
.drop-input-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; align-items: center; }
#drop-input, #log-input { flex: 1 1 100%; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: var(--font); font-size: 15.6px; padding: 10px 14px; resize: vertical; min-height: 70px; }
#drop-input:focus, #log-input:focus { outline: none; border-color: var(--accent); }
#drops-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.drop-item { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.drop-item:first-child { border-color: var(--accent-dim); }
.drop-content { font-size: 15.6px; line-height: 1.6; white-space: pre-wrap; }
.drop-meta { font-size: 13.2px; color: var(--text2); margin-top: 8px; display: flex; justify-content: space-between; align-items: center; }
.drop-delete { background: none; border: none; color: var(--text2); cursor: pointer; font-size: 14.4px; padding: 2px 6px; border-radius: 4px; }
.drop-delete:hover { background: rgba(224,85,85,.2); color: var(--danger); }

/* Buttons */
button { font-family: var(--font); cursor: pointer; }
.primary-btn { background: var(--accent); color: #fff; border: none; border-radius: 6px; padding: 8px 16px; font-size: 15.6px; font-weight: 500; }
.primary-btn:hover { opacity: .88; }
.danger-btn { background: none; border: 1px solid var(--danger); color: var(--danger); border-radius: 6px; padding: 4px 12px; font-size: 14.4px; }
.danger-btn:hover { background: rgba(224,85,85,.15); }
#btn-add-tool, #btn-add-deployment, #btn-add-document { background: var(--bg3); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 5px 12px; font-size: 14.4px; }
#btn-add-tool:hover, #btn-add-deployment:hover, #btn-add-document:hover { border-color: var(--accent); color: var(--accent); }
#btn-add-drop, #btn-add-log { background: var(--bg3); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 10px 16px; font-size: 15.6px; white-space: nowrap; }
#btn-add-drop:hover, #btn-add-log:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn { background: none; border: none; color: var(--text2); cursor: pointer; padding: 3px 6px; border-radius: 4px; font-size: 14.4px; }
.icon-btn:hover { background: var(--bg3); color: var(--text); }
/* Start Work: orange label, explicitly yellow bolt. The bolt is forced to text
   presentation (U+FE0E) so its color comes from CSS on every platform instead of
   depending on emoji rendering. */
.wn-start-work, .wn-start-work:hover { color: #f97316; }
.wn-bolt { color: #eab308; }
/* Generating state: label matches the bolt's explicit yellow instead of staying orange. */
/* MOVE 752: --warn, the one acting color, rather than an amber hardcoded here
   before the token existed. The pulse below it is unchanged. */
.wn-start-work.wn-generating, .wn-start-work.wn-generating:hover { color: var(--warn); font-weight: 600; }
/* A long generation held on a static label reads as frozen; pulse while busy. */
@keyframes wn-generating-pulse { 50% { opacity: 0.45; } }
.wn-start-work.wn-generating { animation: wn-generating-pulse 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .wn-start-work.wn-generating { animation: none; }
}
/* Locked (another move is generating): disabled already dims it; drop the
   orange so it doesn't read as available. */
.wn-start-work.wn-locked, .wn-start-work.wn-locked:hover { color: #9ca3af; }
.wn-start-work.wn-locked .wn-bolt { color: inherit; }
.icon-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.primary-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.danger-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.nav-section { border-top: 1px solid var(--border); padding: 10px 12px; }
.ask-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; color: #e86a00; border: none; border-radius: var(--radius); padding: 5px 6px; font-size: 13px; font-weight: 400; cursor: pointer; margin-bottom: 2px; }
.ask-btn:hover { background: var(--bg3); color: #c45500; }
.ask-shortcut { font-size: 11px; font-weight: 400; opacity: 0.75; }
.nav-util-list { list-style: none; margin: 6px 0 0; padding: 0; }
.nav-util-item { display: flex; align-items: center; gap: 4px; font-size: 13px; padding: 5px 6px; border-radius: var(--radius); color: var(--text2); cursor: pointer; }
.nav-util-item:hover { background: var(--bg3); color: var(--text); }
.nav-icon { display: inline-block; width: 18px; text-align: center; opacity: 0.7; flex-shrink: 0; }
#wn-input { flex: 1 1 200px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: var(--font); font-size: 14.4px; padding: 6px 10px; resize: vertical; min-height: 34px; box-sizing: border-box; }
#wn-input:focus { outline: none; border-color: var(--accent); }
.empty-hint { color: var(--text2); font-size: 15.6px; padding: 14px 0; }

/* Modals */
/* MOVE 633. #delete-project-modal-overlay and #milestone-close-modal-overlay were
   MISSING from this list, so both dialogs rendered in normal document flow: no
   backdrop, no centering, no stacking context. The Delete Project overlay also
   carries a click-outside-to-dismiss handler (public/app.js:5712) keyed on
   e.target === e.currentTarget, which needs a full-viewport backdrop to be
   clickable at all, so the missing rule broke the dismiss too.
   #settings-modal-overlay is REMOVED: it appears nowhere in index.html and never
   has. Found by Move 546's catalogue, which named this eight-way list the
   canonical idiom for the job, so it is extended rather than split up.
   MOVE 635 added #clear-chat-modal-overlay for the same reason. IF YOU ADD AN
   OVERLAY, ADD ITS ID HERE: an overlay missing from this list renders in normal
   document flow with no backdrop, and its click-outside-to-dismiss handler has
   nothing full-viewport to be clicked on. Nothing about the markup looks wrong
   when that happens, which is why Move 633's two went unnoticed. */
#modal-overlay, #tool-modal-overlay, #deploy-modal-overlay, #complete-modal-overlay, #admin-modal-overlay, #sw-modal-overlay, #document-modal-overlay, #delete-project-modal-overlay, #milestone-close-modal-overlay, #clear-chat-modal-overlay, #link-fix-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 100; }
#sw-modal-overlay[hidden] { display: none !important; }
/* Move 736's dialog shipped without a place in the list above, so it drew as plain
   content at the foot of the page and Run in Forge looked dead (J.J., Taproot, 2026-10-30). */
#link-fix-modal-overlay[hidden] { display: none !important; }
/* Up to four buttons, which overflowed the shared 400px width in a monospace theme
   and cut Cancel in half (J.J., CPGo.ai, 2026-10-31). Wider, and the row wraps
   whole buttons rather than squeezing each label onto several lines. */
#link-fix-modal-overlay .modal { width: 600px; }
#link-fix-modal-overlay .modal-actions { flex-wrap: wrap; }
#link-fix-modal-overlay .modal-actions button { white-space: nowrap; }
/* Move 813: the Decide card. */
#decide-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 100; }
#decide-modal-overlay[hidden] { display: none !important; }
.decide-modal { width: 560px; }
/* Move 818: the Decide card docked beside the Console while Planner talks it
   through. Non-modal: the page behind stays usable, and the project view makes
   room on the right so the Console is beside the card rather than under it. */
#decide-modal-overlay.decide-docked { inset: 64px 16px 16px auto; width: 380px; background: none; display: block; pointer-events: none; }
#decide-modal-overlay.decide-docked .decide-modal { width: 100%; max-height: 100%; overflow-y: auto; pointer-events: auto; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
body.decide-docked-open #project-view { margin-right: 396px; }
.decide-strip { display: none; }
.decide-new-tag { font-size: 10px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); border-radius: 3px; padding: 0 4px; margin-left: 4px; }
.decide-docked-note { margin-top: 8px; }
@media (max-width: 760px) {
  /* A phone has no room beside the Console: the card is a strip pinned above
     the composer, and tapping it opens the options. */
  #decide-modal-overlay.decide-docked { inset: auto 8px 72px 8px; width: auto; }
  #decide-modal-overlay.decide-docked .decide-modal { max-height: 44px; overflow: hidden; padding: 0; }
  #decide-modal-overlay.decide-docked.decide-docked--open .decide-modal { max-height: 70vh; overflow-y: auto; padding: 16px; }
  .decide-docked .decide-strip { display: block; width: 100%; text-align: left; padding: 12px; background: none; border: 0; color: var(--text); font-weight: 600; cursor: pointer; }
  body.decide-docked-open #project-view { margin-right: 0; }
}
.decide-question { font-size: 15.6px; color: var(--text); }
.decide-options { display: flex; flex-direction: column; gap: 8px; }
.decide-option { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; color: var(--text); cursor: pointer; }
.decide-option:hover { border-color: var(--text2); }
.decide-option--selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.decide-option-label { font-weight: 600; font-size: 15px; }
.decide-option-cost { font-size: 13.2px; color: var(--text2); }
.decide-sug-tag { font-size: 11px; font-weight: 600; color: var(--accent); border: 1px solid var(--accent); border-radius: 4px; padding: 0 4px; margin-left: 4px; }
.decide-suggestion { font-size: 13.5px; margin: 8px 0; }
.decide-suggestion-source { color: var(--text2); font-size: 12px; }
.decide-rec-tag { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); margin-left: 6px; }
.decide-confirm { align-self: flex-end; }
.decide-empty { color: var(--text2); }
.decide-own summary { cursor: pointer; color: var(--text2); font-size: 14px; }
.decide-own textarea { width: 100%; margin: 8px 0; box-sizing: border-box; }
.decide-session { border-top: 1px solid var(--border); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.decide-session-warning { white-space: pre-line; }
.decide-followup-text { font-weight: 600; }
.decide-followup-prompt { white-space: pre-wrap; font-size: 12.5px; max-height: 220px; overflow-y: auto; background: var(--bg3); padding: 8px; border-radius: 6px; }
/* max-height + scroll so a modal taller than the viewport (e.g. Start Work on a
   phone) never pushes its .modal-actions row off-screen. dvh handles the iOS
   dynamic toolbar; vh is the fallback. Mirrors the .admin-modal pattern. */
.modal { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 28px 28px 22px; width: 400px; max-width: 95vw; max-height: 90vh; max-height: 90dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.sw-modal { width: 640px; }
.sw-modal:focus { outline: none; }
@keyframes wn-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.wn-generating { animation: wn-pulse 1.2s ease-in-out infinite; }
.modal-btn-secondary { background: none; border: 1px solid var(--border); color: var(--text2); border-radius: 6px; padding: 8px 16px; font-size: 15.6px; }
.modal-btn-secondary:hover { border-color: var(--text2); color: var(--text); }
.modal h3 { font-size: 19.2px; font-weight: 600; }
.modal label { display: flex; flex-direction: column; gap: 5px; font-size: 14.4px; color: var(--text2); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.modal input { background: var(--bg3); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-family: var(--font); font-size: 15.6px; padding: 8px 12px; }
.modal input:focus { outline: none; border-color: var(--accent); }
.modal select { background: var(--bg3); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-family: var(--font); font-size: 15.6px; padding: 8px 12px; cursor: pointer; }
.modal select:focus { outline: none; border-color: var(--accent); }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.modal-actions button:first-child { background: none; border: 1px solid var(--border); color: var(--text2); border-radius: 6px; padding: 8px 16px; font-size: 15.6px; }
.modal-actions button:first-child:hover { border-color: var(--text2); color: var(--text); }
.modal-divider { height: 1px; background: var(--border); margin: 2px 0; }
.modal-section-label { font-size: 14.4px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: .05em; }
.modal-hint { font-size: 13.2px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--archived); }
.tool-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.tool-row input { background: var(--bg3); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-family: var(--font); font-size: 14.4px; padding: 7px 10px; }
.tool-row input:focus { outline: none; border-color: var(--accent); }
.tool-row input::placeholder { color: var(--text2); opacity: .45; }

/* Work Log */
#log-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.log-delete { background: none; border: none; color: var(--text2); cursor: pointer; font-size: 14.4px; padding: 2px 6px; border-radius: 4px; }
.log-delete:hover { background: rgba(224,85,85,.2); color: var(--danger); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* Login gate */
#login-overlay { position: fixed; inset: 0; background: var(--bg); display: flex; align-items: center; justify-content: center; z-index: 200; }
.login-box { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 32px; width: 320px; display: flex; flex-direction: column; gap: 14px; }
.login-box h2 { font-size: 19.2px; font-weight: 600; }
.login-box input { background: var(--bg3); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font: inherit; padding: 10px 12px; }
.login-box input:focus { outline: none; border-color: var(--accent); }
.login-error { color: var(--danger); font-size: 14.4px; min-height: 14px; }
.login-link-btn { background: none; border: none; color: var(--accent); font: inherit; font-size: 13.6px; cursor: pointer; padding: 0; text-align: left; }
.login-link-btn:hover { text-decoration: underline; }

/* Track pill */
.track-pill { display: inline-block; border-radius: 20px; padding: 2px 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.subtrack-pill { display: inline-block; border-radius: 20px; padding: 2px 8px; font-size: 12px; font-weight: 500; letter-spacing: .03em; white-space: nowrap; border: 1px solid var(--border); color: var(--text2); background: var(--bg3); }

/* Waiting-on banner */
/* Cold-read header */
.proj-title-input { background: transparent; border: none; color: var(--text); font-family: var(--font); font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; width: 100%; padding: 2px 0; outline: none; }
.proj-title-input:focus { background: var(--bg3); border-radius: 6px; padding: 2px 8px; margin-left: -8px; }
.proj-title-input::placeholder { color: var(--text3); }
.proj-desc-input { background: transparent; border: none; color: var(--text2); font-family: var(--font); font-size: 15.6px; width: 100%; max-width: 620px; padding: 2px 0; margin-top: 4px; outline: none; resize: vertical; min-height: 2.4em; line-height: 1.5; display: block; }
.proj-desc-input:focus { background: var(--bg3); border-radius: 6px; padding: 2px 8px; margin-left: -8px; }
.proj-desc-input::placeholder { color: var(--text3); opacity: .7; }
/* Fold all: pulled out of .proj-actions (Move 434) so a page-layout control
   no longer sits in a row of project-lifecycle actions next to Delete. Its own
   rule rather than reusing .icon-btn -- that box/hover-bg reads as full-weight
   next to the transparent, borderless description and working-dir fields it
   now sits between. */
/* Move 484: 434 went one step too far. Borderless 12px text3 is the same
   treatment as inert helper text, so the control stopped reading as clickable at
   all. The fix keeps both of 434's judgments -- no .icon-btn box, not back in
   the lifecycle row -- and buys the affordance from a DISCLOSURE GLYPH and
   uppercase weight instead, exactly as .proj-edit > summary below already does.
   A glyph is the strongest signal available here and it costs no visual weight.

   COLOR IS text2, NOT text3, and that is a deliberate departure from
   .proj-edit > summary. text3 at 12px measures 3.4:1 on the dark background and
   2.9:1 on the light one, both under the 4.5:1 floor for text this size; text2
   measures 7.5:1 and 5.2:1. At 12px uppercase it still cannot out-weigh the
   15.6px description or the monospace working-dir row it sits between, which is
   what 434 was protecting. The glyph flips from data-folded, set by
   updateFoldAllButton alongside the label it already maintains: ::before rather
   than a child element, because that updater assigns textContent and would wipe
   any span. */
.proj-fold-all-btn { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; color: var(--text2); font-family: var(--font); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; padding: 4px 0 0; margin: 0; }
.proj-fold-all-btn::before { content: '▾'; font-size: 10px; line-height: 1; }
.proj-fold-all-btn[data-folded="true"]::before { content: '▸'; }
.proj-fold-all-btn:hover { color: var(--text); }
.proj-fold-all-btn:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* Working directory: collapsible like the other sections (Move 434), but it's
   one line in the header rather than a content block, so it gets a lightweight
   toggle + summary row instead of a full .section header. Collapsed shows the
   current path as the summary text (never blank) since this value decides
   where an agent session runs -- a set-but-forgotten path must stay visible. */
.proj-wd-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 620px; margin-top: 2px; }
.proj-wd-head { flex: 0 0 100%; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
.proj-wd-label { font-size: 12px; font-weight: 600; color: var(--text2); margin: 0; }
.proj-wd-hint { font-size: 12px; color: var(--text3); }
.proj-wd-row .section-toggle { flex-shrink: 0; }
.proj-working-dir-input { background: transparent; border: none; color: var(--text3); font-family: ui-monospace, monospace; font-size: 13px; flex: 1 1 auto; min-width: 0; width: auto; padding: 2px 0; margin-top: 0; outline: none; }
.proj-working-dir-input:focus { background: var(--bg3); border-radius: 6px; padding: 2px 8px; margin-left: -8px; }
.proj-working-dir-input::placeholder { color: var(--text3); opacity: .5; }
.proj-wd-summary { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text3); font-family: ui-monospace, monospace; font-size: 13px; }
.proj-edit { margin-top: 10px; }
.proj-edit > summary { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text3); cursor: pointer; padding: 4px 0; list-style: none; user-select: none; }
.proj-edit > summary::-webkit-details-marker { display: none; }
.proj-edit > summary::before { content: '▸ '; }
.proj-edit[open] > summary::before { content: '▾ '; }
.proj-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }

/* Waiting-on banner (structured) */
.waiting-on { display: flex; align-items: center; gap: 10px; background: rgba(240,179,74,.12); border: 1px solid rgba(240,179,74,.28); border-radius: 10px; padding: 10px 13px; margin: 14px 0 4px; font-size: 14.4px; color: var(--waiting); }
.waiting-on .wo-tx { font-weight: 500; }
.waiting-on .wo-tx b { font-weight: 700; }
.waiting-on .wo-meta { margin-left: auto; font-size: 12px; color: var(--text3); text-align: right; line-height: 1.4; }

/* Staleness flag */
.stale-flag { color: var(--danger); font-size: 13.2px; font-weight: 600; }
.proj-list-meta .stale-dot { color: var(--danger); }

/* Unread dot for shared projects with new activity */
.unread-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #46f08a; margin-left: 5px; vertical-align: middle; flex-shrink: 0; }

/* What's Next item controls */
/* THE WRAP IS LOAD-BEARING AND IS DELIBERATELY NOT BEHIND A BREAKPOINT.
   .wn-actions carries ~10 non-shrinking controls, and a flex child's default
   `min-width: auto` means .wn-text cannot shrink below its longest WORD. Without
   wrapping, the text column collapses to one word wide and the row overflows,
   measured at 75px on 2026-08-09.

   Move 253 diagnosed this and fixed it inside @media (max-width: 760px). Move
   466 then added the assign dropdown, up to 160px, to every row, which pushed
   the width at which the actions stop fitting far above that breakpoint, and the
   fix stopped reaching the case it was written for. A breakpoint encodes a guess
   about how wide the controls are; this encodes how much room the TEXT needs and
   lets the actions wrap whenever they do not fit, at any width. Adding another
   button cannot silently break it again.
   Pinned by test/wn-row-width-browser.test.js, which measures laid-out widths. */
.wn-item { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.wn-item .wn-drag-handle { margin-top: 2px; }
.wn-item:hover .wn-drag-handle { color: var(--text2); }
/* THE TEXT TAKES A LINE OF ITS OWN, BELOW THE CONTROLS. J.J., 2026-08-09: the
   controls go above the move text, not below it, so the text gets the full width
   of the card to breathe in.

   `flex-basis: 100%` is what puts it on its own line; `order: 1` is what puts
   that line SECOND, since every sibling defaults to order 0. min-width: 0
   defeats the flex `min-width: auto` floor and overflow-wrap keeps a single very
   long token (a path, a URL) from propping the column open. */
.wn-text { flex: 1 1 100%; order: 1; min-width: 0; overflow-wrap: anywhere; font-size: 15.6px; line-height: 1.5; border-radius: 4px; padding: 2px 4px; margin: -2px -4px; outline: none; }
.wn-text:hover { background: var(--bg3); }
.wn-text:focus { background: var(--bg3); box-shadow: 0 0 0 2px var(--accent); }
/* Move 467: the summary is a CLAMP, never a different string. The full move text
   is always what is in the DOM, because .wn-text is contenteditable and PATCHes
   its own contents back on blur, so a rendered summary would be a data-loss bug
   rather than a display choice. Nothing here can truncate a move. */
.wn-text--clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.wn-next-text.wn-text--clamped { -webkit-line-clamp: 3; line-clamp: 3; }
/* A real button, not a hover affordance: J.J. reads this on a phone, where there
   is no hover, and hover is unreachable by keyboard either way. The caret is the
   signal that it is interactive, following .proj-edit > summary. */
.wn-expand { display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; align-self: flex-start; background: none; border: none; padding: 1px 4px; margin-top: 2px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text3); cursor: pointer; border-radius: 4px; }
.wn-expand:hover { color: var(--text2); background: var(--bg3); }
.wn-expand:focus-visible { outline: 1px solid var(--accent); outline-offset: 1px; }
.wn-expand-caret { font-size: 9px; }
/* margin-left: auto is a no-op while the actions sit inline beside a flex: 1
   text column, and right-aligns them once they wrap onto a line of their own,
   which is the layout Move 253 established by hand for mobile.

   ALIGN-ITEMS IS NOT COSMETIC HERE, IT IS THE FIX FOR A DEFAULT NOBODY CHOSE.
   Without it this flex row takes the initial value, `stretch`, and pulls all ten
   controls to the height of the tallest, which is the assign <select>: measured
   2026-08-10, every child rendered 34px in a 34px row. The buttons survived that
   invisibly, since a button centers its own label and has no background to show,
   but `.source-mcp` is a bare span WITH a background, so the stretch was drawn
   and its 10px word sat at the top of a 34px box. That is what J.J. reported.

   Fixed at the container rather than on the badge on purpose. `.wn-time` and
   `.wn-expand` already carry `align-self` patches answering this same question
   on the sibling container, and `.attribution` is another bare span that would
   have been found stretched the first time a shared project rendered one. A
   per-item fix here would have made the badge the third patch and left the
   fourth to be discovered. */
.wn-actions { display: flex; gap: 6px; flex-shrink: 0; margin-left: auto; align-items: center; }
/* Move 495. Sits in the What's Next header beside Audit and the sort select, and
   borrows .sidebar-search's treatment so the two searches on the page read as one
   idiom rather than two features. */
/* Move 497. Carries the same disclosure glyph as .proj-fold-all-btn, keyed on the
   same data-folded attribute, so the two fold controls on this page read as one
   idea. It keeps .icon-btn's chrome rather than that button's borderless
   treatment, because it sits in a row of buttons rather than beside borderless
   fields, which is the distinction Move 434 and Move 484 were arguing over. */
.wn-foldall-btn::before { content: '▾'; font-size: 10px; line-height: 1; margin-right: 4px; }
.wn-foldall-btn[data-folded="true"]::before { content: '▸'; }
.wn-foldall-btn:disabled { opacity: .45; cursor: not-allowed; }
/* 2026-08-10. Feedback at the input, because the list being filtered is usually
   below the fold and an instantaneous change there is invisible from here. */
/* margin-left rather than a gap on .section-header: that header is
   justify-content: space-between with no gap, and adding one there would respace
   every child to fix one. Full-strength text color because this is the answer to
   what you just typed, not chrome; var(--text) rather than a literal white so it
   inverts with the light theme. */
.wn-search-count { font-size: 12px; color: var(--text); white-space: nowrap; margin-left: 10px; }
.wn-search-count[data-empty="true"] { color: var(--waiting); }
/* The marked query inside a row. Kept to background and weight rather than a
   border, so it cannot shift the line height of a contenteditable element. */
.wn-hit { background: var(--accent-dim); color: inherit; border-radius: 2px; padding: 0 1px; }
/* A row can match on its prompt alone, in which case nothing visible is marked
   and the row would read as a false positive. */
.wn-hit-prompt { flex-shrink: 0; align-self: flex-start; margin-top: 3px; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text3); border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; white-space: nowrap; }
/* 2026-10-07. The Decided group under a search: read-only rows, quieter than a
   queue row so it never reads as something to act on. Theme tokens only, and
   every line wraps, so a long move text cannot widen a phone screen. */
/* Recently added (2026-10-12): directly under the add box, folded by default. */
.wn-recent { margin: -8px 0 16px; min-width: 0; }
.wn-recent-toggle { background: none; border: none; padding: 2px 0; color: var(--text2); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.wn-recent-toggle .wn-section-caret { margin-right: 6px; }
.wn-recent-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wn-recent-row { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; min-width: 0; }
.wn-recent-link { flex: 1 1 12em; min-width: 0; color: var(--text); overflow-wrap: anywhere; text-decoration: none; }
.wn-recent-link:hover { color: var(--accent); text-decoration: underline; }
.wn-recent-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.wn-recent-actions .wn-assign { max-width: 100%; }
.wn-decided { margin-top: 14px; min-width: 0; }
.wn-decided-heading { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text2); margin: 0 0 6px; }
.wn-decided-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wn-decided-row { border: 1px solid var(--border); border-radius: 6px; padding: 7px 10px; min-width: 0; overflow-wrap: anywhere; }
.wn-decided-head { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; color: var(--text); }
.wn-decided-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 3px; font-size: 12px; color: var(--text2); }
.wn-decided-chosen { color: var(--text); }
.wn-decided-log { color: var(--accent); }
/* Forge Move 1176 (J.J., 2026-10-19): Work the queue is the one press that
   starts a run, so it is a filled button in the theme's own green rather than
   a plain icon button like Audit and Copy work prompt beside it. Each theme sets
   --on-done for contrast (test/queue-run-button-browser.test.js). */
#btn-wn-queue-run { background: var(--done); color: var(--on-done); border: 1px solid var(--done); font-weight: 600; padding: 4px 12px; }
#btn-wn-queue-run:hover:not(:disabled) { filter: brightness(1.08); }
#btn-wn-queue-run:disabled { opacity: .5; cursor: default; }
.wn-search { background: var(--bg3); border: 1px solid var(--border); color: var(--text); border-radius: 5px; font-size: 13.2px; padding: 4px 8px; min-width: 140px; max-width: 220px; }
.wn-search::placeholder { color: var(--text3); }
.wn-search:focus { outline: none; border-color: var(--accent); }
.wn-star--on { color: #f5b301; }
/* 2026-08-10. This was `background: var(--accent); color: #fff`, which measured
   2.21:1 in the default dark theme, against a 4.5:1 minimum. J.J. reported it as
   washed out and it was.

   NO FIXED TEXT COLOR CAN BE RIGHT HERE, which is why the fill changed rather
   than the text. --accent is a LIGHT blue-grey (#9fb0c7) in the dark themes and a
   DARK blue or green in the light ones, so white passes at one end and fails at
   the other, and black does the reverse. The pairing below moves with the theme
   instead: it is what .tool-chip, .pf-next-count, .filter-btn.active,
   .pf-mode-btn.active and .guide-tab-btn.active already use, so it is proven
   across every palette in this file rather than newly invented here.

   .wn-complete--lg overrides both properties, so the Next Move card's green
   button is untouched. Its own hardcoded #08120c on var(--done) measures about
   3.1:1 in the light theme and has the same latent defect from the other
   direction; it is large bold text, it is not what was reported, and it is
   recorded in test/wn-contrast-browser.test.js rather than changed quietly. */
.wn-complete { background: var(--accent-dim); color: var(--accent); border: none; border-radius: 5px; padding: 4px 10px; font-size: 14.4px; }
.wn-complete:hover { opacity: .85; }
.wn-deleted-item { display: flex; align-items: center; gap: 10px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.wn-deleted-text { flex: 1; font-size: 15.6px; line-height: 1.5; color: var(--text3); text-decoration: line-through; }

/* Sort-by-neglected toggle + track filter row */
.sort-row { display: none; }
.sort-row select { flex: 1; background: var(--bg3); border: 1px solid var(--border); color: var(--text); border-radius: 5px; font-size: 13.2px; padding: 4px; }
.log-note { color: var(--text2); font-style: italic; margin-top: 4px; font-size: 14.4px; }

/* What's Next prompt helper (copy button, bulk paste, settings textarea) */
#wn-bulk { flex: 1; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: var(--font); font-size: 15.6px; padding: 10px 14px; resize: vertical; min-height: 70px; }
#wn-bulk:focus { outline: none; border-color: var(--accent); }
/* flex-shrink: 0 so the textarea keeps its rows-based height inside the now
   height-capped .modal. A textarea is a scroll container, so its flex auto
   min-size is 0 and it would otherwise collapse to a single line on mobile. */
.modal textarea { background: var(--bg3); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-family: var(--font); font-size: 14.4px; line-height: 1.5; padding: 8px 12px; resize: vertical; width: 100%; flex-shrink: 0; }
.modal textarea:focus { outline: none; border-color: var(--accent); }
/* Track swatch picker */
.swatch-row { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { width: 26px; height: 26px; border-radius: 6px; cursor: pointer; border: 2px solid transparent; padding: 0; flex-shrink: 0; }
.swatch:hover { border-color: var(--text2); }
.swatch.selected { border-color: var(--text); box-shadow: 0 0 0 2px var(--bg2), 0 0 0 4px var(--accent); }
.inline-track-form { background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.inline-track-form input[type="text"] { background: var(--bg2); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-family: var(--font); font-size: 15.6px; padding: 7px 10px; width: 100%; box-sizing: border-box; }
.inline-track-form input[type="text"]:focus { outline: none; border-color: var(--accent); }
.track-color-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.track-color-row input[type="color"] { width: 26px; height: 26px; padding: 1px; border: 2px solid var(--border); border-radius: 6px; background: var(--bg2); cursor: pointer; flex-shrink: 0; }
.track-color-row input[type="color"]:hover { border-color: var(--text2); }
.inline-track-actions { display: flex; gap: 6px; justify-content: flex-end; }
.inline-track-actions button:first-child { background: none; border: 1px solid var(--border); color: var(--text2); border-radius: 6px; padding: 5px 10px; font-size: 14.4px; }
.inline-track-actions button:first-child:hover { border-color: var(--text2); color: var(--text); }
.inline-track-actions .primary-btn { padding: 5px 10px; font-size: 14.4px; }

.reference-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; align-items: stretch; }
.reference-grid > .section { margin-bottom: 0; background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.reference-grid > .section .section-header { margin-bottom: 8px; }
.reference-grid > .section .section-header h3 { font-size: 10.8px; color: var(--text3); }
@media (max-width: 900px) { .reference-grid { grid-template-columns: 1fr; } }
.ref-list { list-style: none; display: flex; flex-direction: column; }
.hosting-card { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.hosting-card p { margin: 0; font-size: 13px; line-height: 1.45; }
.hosting-blocker, .hosting-teardown-warning { color: var(--danger, #c84b31); }
.hosting-notice { font-weight: 600; }
.hosting-url { font-size: 13px; word-break: break-all; }
.hosting-teardown-name { width: 100%; max-width: 320px; }
/* Move 837: the card aligns its children to the start, so without this the key
   field took its intrinsic width and clipped its own placeholder. */
.hosting-card .hosting-model-key,
.hosting-card .hosting-var-name,
.hosting-card .hosting-var-value { align-self: stretch; width: 100%; box-sizing: border-box; }
/* J.J., 2026-09-24: the card's buttons had the browser's default look, and a
   click that creates billable resources said "Working…" in plain text. The
   buttons now match the Deployments card's own + Add, and the working state is
   bright orange and pulsing, so nobody wonders whether the click registered. */
.hosting-card button { background: var(--bg3); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 5px 12px; font-size: 14.4px; }
.hosting-card button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.hosting-card button:disabled { opacity: .5; cursor: not-allowed; }
.hosting-card button.hosting-working { opacity: 1; cursor: progress; color: #fff; background: var(--warn); border-color: var(--warn); animation: hosting-pulse 1.2s ease-in-out infinite; }
@keyframes hosting-pulse { 50% { opacity: .65; } }
@media (prefers-reduced-motion: reduce) { .hosting-card button.hosting-working { animation: none; } }
.hosting-card .hosting-teardown:not(:disabled) { border-color: var(--danger); color: var(--danger); }
.hosting-url { color: var(--accent); }
/* Forge Move 1234: the sign-in section. */
.hosting-signin { align-self: stretch; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin-top: 6px; }
.hosting-signin-head { margin: 4px 0 0; font-size: 13px; }
.hosting-signin-form { align-self: stretch; display: flex; flex-direction: column; gap: 4px; }
.hosting-card .hosting-signin-field { align-self: stretch; width: 100%; box-sizing: border-box; }
.hosting-card .hosting-signin-joining-wrap { display: flex; flex-direction: column; gap: 6px; align-self: stretch; }
.hosting-card .hosting-signin-joining-wrap label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.hosting-line.hosting-signin-is-on { color: var(--accent); }
.hosting-signin-copy { align-self: stretch; margin: 0; }
.decisions-row { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--border); }
.decisions-row p { margin: 0; font-size: 13px; }
.decisions-running { color: var(--warn); font-weight: 600; }
.decisions-error { color: var(--danger, #c84b31); }
.decisions-done { color: var(--ok); font-weight: 600; }
.decisions-sub { margin-top: 10px; }
#decisions-card button { background: var(--bg3); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 5px 12px; font-size: 14.4px; }
.ref-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; font-size: 13.2px; border-bottom: 1px solid var(--border); }
.ref-row:last-child { border-bottom: none; }
.ref-name { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ref-sub { color: var(--text3); font-size: 12px; }
.ref-act { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.ref-act a { color: var(--accent2); text-decoration: none; }
.ref-act a:hover { text-decoration: underline; }
.ref-loc { color: var(--text3); font-family: ui-monospace, "SF Mono", monospace; font-size: 12px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref-icon { background: none; border: none; color: var(--text3); cursor: pointer; font-size: 13.2px; padding: 0 2px; opacity: 0; transition: opacity .12s; }
.ref-row:hover .ref-icon { opacity: 1; }
.ref-icon:hover { color: var(--text); }

.wn-next { display: block; background: linear-gradient(150deg, var(--surface-a), var(--surface-b)); border: 1px solid var(--bd2); border-radius: 14px; padding: 16px 18px; box-shadow: 0 10px 28px rgba(0,0,0,.072); margin-bottom: 12px; list-style: none; }
.wn-next-label { display: flex; align-items: center; gap: 6px; font-size: 10.8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.wn-num { font-size: 11px; font-weight: 700; color: var(--text3); min-width: 16px; flex-shrink: 0; }
/* Same shape and same fix as .wn-item above: without the wrap and the min-width
   floor, the Next Move card's text collapses toward min-content too (measured at
   212px on 2026-08-09, against a card that spans the panel). */
/* The 4px inline padding absorbs .wn-text's `margin: -2px -4px`, which
   .wn-next-text inherits (the card's text carries both classes). That negative
   margin lets the hover background bleed without shifting layout, and .wn-item
   already absorbs it inside its own padding. Once the row wraps, the text grows
   to the full line and those 4px land outside the box: measured as a 4px
   overflow the moment the wrap above was added. */
.wn-next-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 0 4px; }
.wn-next-text { flex: 1 1 100%; order: 1; min-width: 0; overflow-wrap: anywhere; font-size: 20.4px; font-weight: 600; line-height: 1.3; }
/* 2026-08-11. Was `background: var(--done); color: #08120c`, near-black on green.
   That is fine on the dark theme's bright #46c98a and measures 3.05:1 on the
   light theme's DARK #2D6C4E, which fails: at 14.4px bold this is NOT WCAG large
   text (that starts at 18.66px bold), so it needs 4.5:1 like any other label.
   The same defect the small .wn-complete had, from the opposite end.
   Paired now, so both sides move with the theme. It stays the loudest button on
   the page through weight and padding rather than through a saturated fill. */
.wn-complete--lg { background: var(--done-dim); color: var(--done); font-weight: 700; padding: 9px 16px; }
.wn-shift { background: var(--bg3); border: 1px solid var(--border); color: var(--text2); border-radius: 6px; padding: 6px 12px; font-size: 16.8px; line-height: 1; }
/* The to-end controls are the same arrow as the one-step controls, distinguished
   by a bar drawn in CSS (the arrow-to-bar Unicode glyphs render small and cramped). */
.wn-shift--bar-above .wn-shift-glyph { display: inline-block; border-top: 2px solid currentColor; padding-top: 1px; }
.wn-shift--bar-below .wn-shift-glyph { display: inline-block; border-bottom: 2px solid currentColor; padding-bottom: 1px; }
.wn-shift:hover { border-color: var(--accent); color: var(--accent); }
.wn-copy-btn { background: none; border: none; color: var(--text2); cursor: pointer; font-size: 14.4px; padding: 2px 6px; border-radius: 4px; opacity: 0; transition: opacity .15s; }
.wn-item:hover .wn-copy-btn, .wn-next:hover .wn-copy-btn { opacity: 1; }
.wn-copy-btn:hover { background: var(--bg3); color: var(--accent); }
.wn-queued-label { list-style: none; font-size: 10.8px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); margin: 4px 0 7px 2px; }

/* Move 466: queue sections, the ordinal, Assign, and the one drag refusal.
   public/wn.js owns the rendering; this owns only the look. */
.wn-section { list-style: none; margin-bottom: 14px; }
.wn-section:last-child { margin-bottom: 0; }
.wn-section-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 0 2px 6px; }
.wn-section-name { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text2); }
.wn-section-done { font-size: 10.8px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text3); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; }
.wn-section-count { font-size: 12px; color: var(--text3); }
/* 2026-08-09. Both take the full width of the wrapped flex head, so the name,
   the count and the fold caret keep their own row and the prose sits underneath
   rather than being squeezed beside it. The summary resets the uppercase and
   letter-spacing .wn-section-name sets on the head: it is prose, not a label. */
.wn-section-summary { flex-basis: 100%; font-size: 13px; color: var(--text2); line-height: 1.45; font-weight: 400; text-transform: none; letter-spacing: 0; }
.wn-section-when { flex-basis: 100%; font-size: 12.5px; color: var(--text3); font-style: italic; }
.wn-section-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
/* Move 469: the section head is the fold control. The disclosure glyph is the
   signal, following .proj-edit > summary, so the head needs no button chrome to
   read as interactive. */
.wn-section-head { cursor: pointer; }
.wn-section-toggle { display: inline-flex; align-items: baseline; gap: 6px; background: none; border: none; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; }
.wn-section-caret { font-size: 9px; color: var(--text3); }
.wn-section-head:hover .wn-section-name, .wn-section-toggle:focus-visible .wn-section-name { color: var(--text); }
.wn-section-toggle:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
/* A collapsed section hides its QUEUED rows and KEEPS the Next Move card, which
   is why .wn-item is named here and not .wn-section-list. The next move is the
   one row the page exists for; folding must never be able to hide it. The head
   already prints "N moves", so a collapsed section still says how much is inside. */
.wn-section--collapsed .wn-section-list > .wn-item { display: none; }
/* 2026-08-22. AND THE COLLAPSED SECTION SAYS SO. The exemption above left a
   section holding ten moves rendering exactly one row, so J.J. read it as a
   milestone holding one move and concluded Move 539 did not exist; it was at
   position 2. The header's count was the only contrary signal and it lost to a
   visible row, which is why this line goes BELOW the card, where the missing rows
   would be, rather than being shouted louder in the head.

   Present in the markup in both states and switched here, because
   wnToggleSection toggles this one class and never re-renders: a line that
   existed only in the collapsed markup would never appear on a section the user
   folded by hand. wnSectionHiddenHtml renders it only for a section that leaks
   the Next Move card, so the twelve-header default queue gains no lines at all. */
.wn-section-hidden { list-style: none; display: none; }
.wn-section--collapsed .wn-section-list > .wn-section-hidden { display: block; }
.wn-section-hidden-toggle { display: flex; align-items: center; gap: 6px; background: none; border: none; padding: 2px 2px 0; color: var(--text3); font-size: 12px; font-family: var(--font); cursor: pointer; }
.wn-section-hidden-toggle:hover, .wn-section-hidden-toggle:focus-visible { color: var(--text2); }
.wn-section-hidden-caret { font-size: 10px; }
/* Self-clearing refusal note (wnShowSectionRefusal), never permanent furniture. */
.wn-section-refusal { flex-basis: 100%; font-size: 12.5px; color: var(--danger); border-left: 2px solid var(--danger); padding-left: 8px; margin-top: 2px; }

/* Move 502: the milestone's own controls, moved down from the retired panel.
   `margin-left: auto` pushes them to the right end of the head's FIRST line, so
   the summary and done_when keep their own full-width rows underneath (both
   carry flex-basis: 100%) and the buttons never squeeze the prose.

   Deliberately not hover-revealed like .wn-copy-btn. J.J. asked for these to be
   on the section headers, and a control you have to find by hovering is one he
   would have to rediscover; the quiet .icon-btn chrome is what keeps twelve
   headers' worth of them from shouting. */
.wn-section-actions { display: flex; gap: 4px; flex-shrink: 0; margin-left: auto; align-self: center; }
.wn-section-actions .icon-btn { border: 1px solid var(--border); padding: 2px 8px; font-size: 12px; }
.wn-section-actions .icon-btn:hover { color: var(--text); border-color: var(--text2); }
.wn-section-actions .icon-btn:disabled { opacity: .35; cursor: not-allowed; }
/* A closed milestone is a finished goal: still listed, still reopenable, and
   visually demoted so it never competes with the work in flight. Same treatment
   the panel's .milestone-row--closed gave it. */
.wn-section--closed { opacity: .65; }
.wn-section--closed:hover, .wn-section--closed:focus-within { opacity: 1; }
/* An empty milestone renders as a header with no rows, which is the only place
   its controls can be reached. It gets no bottom gap for a list that is not
   there, so a run of them reads as a list rather than as gaps. */
.wn-section--empty { margin-bottom: 2px; }
.wn-section--empty .wn-section-head { padding-bottom: 2px; }
/* MOVE 496 PART A. The milestone suggestion on a newly added move. It is an
   annotation, so it reads as one: quiet, on its own line under the row, and
   carrying its reason so the user can judge it without opening anything.
   flex-basis 100% because .wn-item is a wrapping flex row (the lesson of Move
   466's one-word-per-line defect: a new child of that row must declare how it
   takes space, or it competes with the text column). */
.wn-suggest { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 2px; padding-top: 8px; border-top: 1px dashed var(--border); font-size: 12px; color: var(--text3); }
.wn-suggest-label { font-size: 10.8px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.wn-suggest-name { color: var(--text2); font-weight: 600; }
/* The reason is the part that makes the suggestion checkable in one glance, so
   it gets the room: it shrinks last and wraps rather than truncating. */
.wn-suggest-why { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; font-style: italic; }
.wn-suggest .icon-btn { border: 1px solid var(--border); padding: 2px 8px; font-size: 12px; flex-shrink: 0; }
.wn-suggest .icon-btn:hover { color: var(--text); border-color: var(--text2); }
.wn-suggest-accept { color: var(--accent); }
/* An unlanded device branch that names this move, with Adopt. Laid out like
   .wn-suggest and for the same reason: its own full-width line under the row. */
.wn-branch { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 2px; padding-top: 8px; border-top: 1px dashed var(--border); font-size: 12px; color: var(--text3); }
.wn-branch-label { font-size: 10.8px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.wn-branch-name { color: var(--text2); font-weight: 600; overflow-wrap: anywhere; }
.wn-branch .icon-btn { border: 1px solid var(--border); padding: 2px 8px; font-size: 12px; flex-shrink: 0; color: var(--accent); }
.wn-branch .icon-btn:hover { border-color: var(--text2); }
.wn-branch-note { flex: 1 1 100%; color: var(--danger, var(--text2)); }

/* 2026-08-11. THE CLOSED RUN, at the foot of the queue behind one line. Move 502
   renders every milestone as a section in sort_order, so a finished goal holding
   nothing sat at the top of project 2's queue, above the milestone actually being
   worked. Closed AND empty ones collect here instead; a closed milestone that
   still holds moves keeps its place, since hiding it would hide open work.
   The line is deliberately quiet: it is a way back to Reopen, not a heading. */
.wn-closed-run { list-style: none; margin-top: 4px; }
.wn-closed-toggle { display: flex; align-items: center; gap: 6px; background: none; border: none; padding: 4px 2px; color: var(--text3); font-size: 12px; font-family: var(--font); }
.wn-closed-toggle:hover { color: var(--text2); }
.wn-closed-caret { font-size: 10px; }
/* Hidden by DISPLAY rather than by not rendering, so the sections inside are in
   the DOM with their controls already wired and the disclosure is a display rule
   rather than a second render path. */
.wn-closed-list { list-style: none; display: none; flex-direction: column; gap: 10px; padding: 0; margin: 6px 0 0; }
.wn-closed-run--open .wn-closed-list { display: flex; }
/* The ordinal is a rendering of order, like a line number, restarting at 1 in
   each section; it sits beside .wn-num (Move N), which stays the identity. */
.wn-ordinal { font-size: 11px; font-weight: 700; color: var(--text3); min-width: 1.4em; flex-shrink: 0; text-align: right; }
.wn-assign { background: var(--bg3); border: 1px solid var(--border); color: var(--text2); border-radius: 6px; font-size: 13px; padding: 4px 6px; cursor: pointer; max-width: 160px; }
.wn-assign:hover { color: var(--text); border-color: var(--text2); }
.wn-assign:focus { outline: none; border-color: var(--accent); }

/* Move 502: the milestones FOOTER, all that is left of the retired panel. It is
   the create affordance plus the sentence stating the one rule that is not
   visible from the sections themselves. Quiet and at the foot on purpose: it is
   the least frequent thing on this surface. */
.wn-milestones-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--border); }
.wn-milestones-notice { font-size: 12.5px; color: var(--text3); margin: 0; }
.wn-milestones-foot .empty-hint { margin: 0; }
.wn-milestones-add { display: flex; gap: 8px; flex-wrap: wrap; flex-basis: 100%; }
.wn-milestones-add input[type="text"] { flex: 1 1 180px; background: var(--bg2); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-family: var(--font); font-size: 14.4px; padding: 6px 10px; }
.wn-milestones-add input[type="text"]:focus { outline: none; border-color: var(--accent); }
.wn-milestones-add .icon-btn { border: 1px solid var(--border); padding: 6px 12px; white-space: nowrap; }
#btn-milestone-add-toggle { border: 1px solid var(--border); padding: 4px 10px; }
/* Move 502: milestone administration is manual-sort only, and this is the line
   that says so rather than letting the controls vanish without explanation. */
.wn-milestone-sort-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--text3); margin: 0 0 10px; }
.wn-milestone-sort-note .icon-btn { border: 1px solid var(--border); padding: 2px 8px; font-size: 12px; }
.milestone-current-tag { font-size: 10.8px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); background: var(--accent-dim); border-radius: 4px; padding: 1px 6px; }
.done-when-label { font-style: normal; text-transform: uppercase; font-size: 10.5px; letter-spacing: .05em; color: var(--text3); }
/* A quiet note, never a warning. Nothing is broken: the sentence is still true
   about the moves it was written from, and the fix is one click away. */
.summary-stale { font-size: 11px; font-style: italic; color: var(--text3); border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; white-space: nowrap; }

/* Move 468: a milestone change a session PROPOSED, waiting on sign-off. The
   accent left border is the same device the audit cards use for "this is a
   suggestion", and the reason paragraph is given the most weight on the card on
   purpose: the order is what changes, but the reason is what J.J. is signing
   off on. */
.wn-milestone-proposals { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
/* Console reframe, D8b: the speed run's cards reuse .ms-proposal and the Decide
   card's option styles; these are the only rules of their own. */
.wn-sr-card .decide-options { margin: 8px 0; }
.wn-sr-passages, .wn-sr-failures { margin: 4px 0 8px; padding-left: 18px; font-size: 13px; color: var(--text2); }
.wn-sr-dq { font-weight: 600; color: var(--text); }
.wn-sr-card--done { border-left-color: var(--border); }
.ms-proposal { border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 6px; padding: 10px 12px; background: var(--bg2, var(--bg3)); }
.ms-proposal-heading { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text3); margin: 0 0 6px; }
.ms-proposal-reason { font-size: 13.5px; color: var(--text); margin: 0 0 8px; white-space: pre-wrap; }
.ms-proposal-order, .ms-proposal-decisions { list-style: none; font-size: 13.5px; color: var(--text2); display: flex; flex-direction: column; gap: 3px; }
.ms-proposal-row { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.ms-proposal-row--moved .ms-proposal-name { color: var(--text); font-weight: 600; }
.ms-proposal-num { color: var(--text3); min-width: 1.6em; text-align: right; }
.ms-proposal-was { font-size: 11.5px; color: var(--text3); }
.ms-proposal-decision { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; padding: 2px 0; }
.ms-proposal-move { color: var(--text3); flex-shrink: 0; }
.ms-proposal-move-text { flex: 1 1 200px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-proposal-action { font-size: 12px; color: var(--text3); }
.ms-proposal-decision--decline .ms-proposal-action { color: var(--danger, #d66); }
.ms-proposal-source { font-size: 12px; color: var(--text3); margin: 8px 0 0; }
.ms-proposal-actions { display: flex; gap: 8px; margin-top: 10px; }
.ms-proposal-actions .icon-btn { border: 1px solid var(--border); padding: 4px 12px; }

/* The close-out modal: exactly one decision per open move, and the confirm
   button starts disabled and only clears once every row validates. */
.milestone-close-modal { width: 520px; }
.milestone-close-list { list-style: none; display: flex; flex-direction: column; gap: 10px; max-height: 40vh; overflow-y: auto; }
.milestone-close-row { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; background: var(--bg3); }
.milestone-close-move { font-size: 13.5px; color: var(--text); margin-bottom: 6px; }
.milestone-close-choices { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text2); }
.milestone-close-choices label { display: flex; align-items: center; gap: 6px; font-weight: 400; text-transform: none; letter-spacing: normal; }
/* .modal input styles every <input> including these radios; undo the boxed
   text-field look so the native radio control still reads as a radio. */
.milestone-close-choices input[type="radio"] { background: none; border: none; padding: 0; border-radius: 0; width: auto; flex-shrink: 0; }
.milestone-close-reassign, .milestone-close-reason { background: var(--bg2); border: 1px solid var(--border); color: var(--text); border-radius: 5px; font-size: 13px; padding: 3px 6px; }
.milestone-close-reassign:disabled, .milestone-close-reason:disabled { opacity: .5; }
.milestone-close-reason { flex: 1; min-width: 140px; }
.milestone-close-error { font-size: 13px; color: var(--danger); margin: 0; }

.documents-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.doc-item { padding: 8px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.doc-item:last-child { border-bottom: none; }
.doc-row1 { display: flex; align-items: center; gap: 7px; min-width: 0; }
.doc-kind { font-size: 9.6px; font-weight: 700; letter-spacing: .05em; padding: 1px 5px; border-radius: 4px; background: var(--accent-dim); color: var(--accent); flex-shrink: 0; }
.doc-name { font-size: 14.4px; color: var(--text); font-weight: 500; overflow-wrap: anywhere; min-width: 0; }
.doc-loc { font-size: 12px; color: var(--text3); font-family: ui-monospace, "SF Mono", monospace; margin: 3px 0 5px; overflow-wrap: anywhere; word-break: break-all; }
.doc-acts { display: flex; gap: 6px; }
.doc-btn { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--border); color: var(--accent); background: var(--bg); cursor: pointer; text-decoration: none; }
.doc-btn.doc-del { color: var(--text3); margin-left: auto; }
.doc-hint { font-size: 12px; color: var(--text3); font-style: italic; margin-top: 4px; }
.doc-loc-link { display: block; }
.doc-loc-link:hover { color: var(--accent); text-decoration: underline; }
#doc-drop-zone { position: relative; min-height: 36px; border-radius: 6px; transition: background 0.12s; }
#doc-drop-zone.drag-over { background: var(--accent-dim); outline: 2px dashed var(--accent); outline-offset: 3px; }
.doc-drop-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--accent); pointer-events: none; opacity: 0; transition: opacity 0.1s; z-index: 1; }
#doc-drop-zone.drag-over .doc-drop-overlay { opacity: 1; }

.log-daygroup { list-style: none; margin-bottom: 13px; }
.log-day { font-size: 12px; color: var(--text3); font-weight: 600; margin-bottom: 6px; padding-bottom: 4px; border-bottom: 1px solid var(--border); }
.log-row { display: flex; gap: 9px; align-items: baseline; padding: 5px 0; }
.log-tag { font-size: 9.6px; font-weight: 700; letter-spacing: .06em; padding: 2px 6px; border-radius: 5px; flex-shrink: 0; width: 64px; text-align: center; }
.tag-done { background: rgba(70,201,138,.13); color: var(--done); }
.tag-dec { background: var(--accent-dim); color: var(--accent); }
.tag-note { background: rgba(95,104,120,.18); color: var(--text2); }
.tag-blk { background: rgba(240,179,74,.13); color: var(--waiting); }
.log-body { flex: 1; font-size: 13.2px; color: var(--text2); line-height: 1.45; }
.log-text { color: var(--text2); }
.log-note { color: var(--text3); font-style: italic; margin-left: 6px; }
.log-time { color: var(--text3); font-size: 12px; margin-left: 6px; cursor: default; }
.log-seq { font-weight: 600; color: var(--text2); }
a.log-seq, a.arm-slate-move { text-decoration: none; }
a.log-seq:hover, a.arm-slate-move:hover { text-decoration: underline; }
/* A move address naming a completed move: the line on its Work Log entry. */
.log-move-address { display: block; font-weight: 600; color: var(--text); margin-bottom: 4px; }
/* Move 809: the session a Work Log entry came from. */
.log-session { color: var(--accent); text-decoration: none; }
.log-session:hover { text-decoration: underline; }
.wn-time { font-size: 11px; color: var(--text3); letter-spacing: .02em; flex-shrink: 0; padding-left: 8px; align-self: center; cursor: default; }
.wn-time--aged { color: var(--waiting); font-weight: 600; }
.wn-sort-select {
  background: var(--bg3); border: 1px solid var(--border); color: var(--text2);
  border-radius: 5px; font-size: 13.2px; padding: 3px 6px; cursor: pointer;
}
/* The speed run's spending cap, beside Speed run. Sized for a dollar figure. */
.wn-sr-cap {
  background: var(--bg3); border: 1px solid var(--border); color: var(--text2);
  border-radius: 5px; font-size: 13.2px; padding: 3px 6px; width: 76px;
}
/* Move 761: the arming slate card. One row per proposed move, grouped by the milestone a run would take it in. */
.arm-slate-group { margin: 6px 0 2px; font-size: 12px; color: var(--text3); letter-spacing: .02em; text-transform: uppercase; }
.arm-slate-row { display: flex; gap: 8px; align-items: baseline; font-size: 13px; margin: 2px 0; }
.arm-slate-row--blocked { opacity: .6; }
.arm-slate-bulk { display: flex; gap: 6px; margin: 4px 0; }
.arm-slate-move { font-weight: 600; color: var(--text2); white-space: nowrap; }
.arm-slate-warning { color: var(--waiting); font-size: 12px; }
.arm-slate-reason { display: block; color: var(--text3); font-size: 12px; margin: 0 0 4px 26px; }
.arm-slate-advisories { color: var(--waiting); font-size: 12px; margin: 0 0 6px 26px; padding-left: 16px; }
.arm-slate-run-note { font-size: 12px; color: var(--text3); margin: 6px 0 0; }
.arm-slate-outcome { font-size: 13px; color: var(--text2); margin: 0 0 8px; }
.arm-slate-outcome .icon-btn { margin-left: 6px; }
/* Move 755: the word before each toolbar select, so the two cannot be mistaken for each other. */
.wn-select-label { font-size: 12px; color: var(--text3); align-self: center; cursor: default; letter-spacing: .02em; }
.wn-queue-run-admitted { list-style: none; margin: 4px 0 0; padding: 0; }
.wn-queue-run-admitted li { display: flex; gap: 8px; font-size: 13px; }
.wn-prompt-btn { color: var(--accent); }
.log-delete { background: none; border: none; color: var(--text3); cursor: pointer; font-size: 14.4px; }
.log-delete:hover { color: var(--danger); }
#log-type { background: var(--bg3); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 5px 8px; font-size: 14.4px; margin-left: auto; }

/* Command palette */
#cmdk-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: flex-start; justify-content: center; padding-top: 14vh; z-index: 300; }
.cmdk { background: var(--bg2); border: 1px solid var(--bd2); border-radius: 14px; width: 480px; max-width: 92vw; box-shadow: 0 20px 60px rgba(0,0,0,.10); overflow: hidden; }
#cmdk-input { width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--border); color: var(--text); font-family: var(--font); font-size: 18px; padding: 14px 16px; outline: none; }
#cmdk-input::placeholder { color: var(--text3); }
#cmdk-results { list-style: none; max-height: 320px; overflow-y: auto; padding: 6px; }
.cmdk-row { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.cmdk-row.active { background: var(--accent-dim); }
.cmdk-rail { width: 5px; height: 22px; border-radius: 3px; flex-shrink: 0; }
.cmdk-name { font-size: 15.6px; color: var(--text); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-meta { font-size: 12px; color: var(--text3); text-transform: uppercase; letter-spacing: .05em; flex-shrink: 0; }
.cmdk-empty { padding: 16px; color: var(--text3); font-size: 15.6px; text-align: center; }
.cmdk-hint { border-top: 1px solid var(--border); padding: 8px 14px; font-size: 12px; color: var(--text3); }

/* Clickable empty states */
.empty-hint.clickable { cursor: pointer; }
.empty-hint.clickable:hover { color: var(--text2); }

/* Responsive / narrow screens */
@media (max-width: 760px) {
  /* #sidebar and #drawer-backdrop are fixed-position here, so the two in-flow children (#mobile-topbar, #main) map onto the two grid rows. */
  /* minmax(0, 1fr), not 1fr: a bare 1fr is minmax(auto, 1fr), so one unbreakable string anywhere in #main widens the whole column past the screen (Chrome 156 exposed it, Move 1210). */
  #app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  #mobile-topbar {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg2);
  }
  #btn-drawer {
    background: none; border: 1px solid var(--border); border-radius: 6px;
    color: var(--text); font-size: 18px; line-height: 1; padding: 6px 10px; cursor: pointer;
  }
  #topbar-title {
    font-weight: 700; font-size: 15.6px; letter-spacing: .03em;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
    color: #ff8c3a;
  }
  .topbar-titles { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
  #topbar-number { font-size: 11.5px; }
  #sidebar {
    position: fixed; inset: 0 auto 0 0; width: min(85vw, 320px); max-height: none;
    border-right: 1px solid var(--border); z-index: 40;
    transform: translateX(-100%); transition: transform .2s ease;
  }
  body.drawer-open #sidebar { transform: none; }
  #drawer-backdrop:not([hidden]) {
    display: block; position: fixed; inset: 0;
    background: rgba(0, 0, 0, .45); z-index: 39;
  }
  #main { --main-pad: 18px; padding: var(--main-pad) 16px; overflow-x: clip; }
  .proj-edit-grid { grid-template-columns: 1fr; }
  .reference-grid { grid-template-columns: 1fr; }
  .proj-title-input { font-size: 25.2px; }
  /* #253: two-row move cards on mobile. The wrap, the min-width floor and
     overflow-wrap that used to live here are now unconditional on .wn-item /
     .wn-text / .wn-next-row, because the same collapse happens on a desktop
     window and a breakpoint could not see it (see the comment on .wn-item).
     What stays here is the part that is genuinely mobile: the actions take a
     full row ALWAYS rather than only when they do not fit, and they wrap among
     themselves, because ~10 controls never fit beside text on a phone. */
  #wn-list { overflow-x: hidden; }
  .wn-item, .wn-next { min-width: 0; }
  .wn-item .wn-actions { flex-basis: 100%; justify-content: flex-end; }
  /* Move 1226: the Next Move card's strip had no such row of its own, so it laid
     out at its full ~720px inside a 350px card and ran off the right edge on a
     phone. Found by test/wn-briefing-browser.test.js measuring the card. */
  .wn-next .wn-actions { flex-basis: 100%; justify-content: flex-end; }
  .wn-actions { flex-wrap: wrap; }

  /* #253: reordering is a desktop/agent affordance; HTML5 drag events do not
     fire on touch, so the handle is dead weight in the cramped left gutter. */
  .wn-drag-handle { display: none; }

  /* #253: horizontal drift guard. The known offender is the project header
     button row; the clip on #main is the backstop for anything missed. */
  .proj-actions-row { flex-wrap: wrap; }
  .proj-actions { flex-wrap: wrap; }

  /* #174: push "Shared with me" to the bottom of the sidebar block on mobile.
     #sidebar is a flex column; default order is 0, so ordering only the shared
     section last is enough. */
  #shared-section { order: 1; }

  /* #176: keep the What's Next add field on screen as the list scrolls.
     #main is the scroll container; sticky pins the row to the top of it. */
  #wn-section .drop-input-row {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--bg);
    padding: 8px 0;
    margin-bottom: 12px;
  }

  /* F9: hide shortcut hint on narrow screens to prevent overflow */
  .ask-shortcut { display: none; }

  /* Session console: the panel is fixed at a 480px width with no mobile rule
     at all before this; fit it to a phone viewport. */
  .agent-console { left: 8px; right: 8px; width: auto; max-height: 78vh; }
  /* Move 559: no full-page control on a phone. The window above already spans
     the screen, so the page would buy nothing and cost the way back to the
     queue. agent-console.js ignores a remembered full page here too. */
  .agent-console__full { display: none; }
}

/* Track color editing */
.track-select-row { display: flex; gap: 8px; align-items: center; }
.track-select-row .field-input { flex: 1; }
.track-color-edit { width: 30px; height: 30px; padding: 1px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg3); cursor: pointer; flex-shrink: 0; }
.track-color-edit:hover { border-color: var(--accent); }
.settings-tracks { display: flex; flex-direction: column; gap: 8px; }
#settings-track-list { display: flex; flex-direction: column; gap: 9px; max-height: 220px; overflow-y: auto; }
.strack-row { display: flex; align-items: center; gap: 9px; }
.strack-dot { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; }
.strack-name { font-size: 14.4px; color: var(--text); font-weight: 500; text-transform: none; letter-spacing: 0; min-width: 96px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strack-swatches { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.strack-swatches .swatch { width: 18px; height: 18px; }
.strack-color { width: 26px; height: 26px; padding: 1px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg3); cursor: pointer; flex-shrink: 0; }

.settings-email { display: flex; flex-direction: column; gap: 8px; }
.settings-email .email-toggle { display: flex; align-items: center; gap: 8px; font-size: 14.4px; }
.settings-email .email-timing { display: flex; gap: 16px; flex-wrap: wrap; }
.settings-email .email-timing label { display: flex; align-items: center; gap: 6px; font-size: 14.4px; }
.settings-email .email-timing select { font-size: 14px; padding: 3px 6px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg); color: var(--text); }
.settings-email .icon-btn { align-self: flex-start; border: 1px solid var(--border); padding: 6px 12px; }
.settings-email .icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.settings-export { display: flex; flex-direction: column; gap: 8px; }
.settings-export .icon-btn { align-self: flex-start; border: 1px solid var(--border); padding: 6px 12px; }
.settings-export .icon-btn:hover { border-color: var(--accent); color: var(--accent); }

.settings-mcp-tokens { display: flex; flex-direction: column; gap: 8px; }
.mcp-token-generate-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mcp-token-generate-row input { flex: 1; min-width: 140px; font-size: 14px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 5px; background: var(--bg); color: var(--text); }
.mcp-token-generate-row .icon-btn { border: 1px solid var(--border); padding: 6px 12px; white-space: nowrap; }
.mcp-token-generate-row .icon-btn:hover { border-color: var(--accent); color: var(--accent); }
#mcp-token-reveal { display: flex; align-items: center; gap: 8px; background: var(--bg2); border: 1px solid var(--border); border-radius: 5px; padding: 6px 10px; flex-wrap: wrap; }
#mcp-token-reveal code { font-family: var(--mono, monospace); font-size: 13px; word-break: break-all; flex: 1; }
#mcp-token-reveal .icon-btn { border: 1px solid var(--border); padding: 4px 10px; flex-shrink: 0; }
#mcp-token-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
#mcp-token-list li { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 4px 0; border-bottom: 1px solid var(--border); }
#mcp-token-list li:last-child { border-bottom: none; }
#mcp-token-list .token-meta { flex: 1; color: var(--text2); font-size: 13px; }
#mcp-token-list .token-revoked { color: var(--archived); font-size: 12px; }

.cmdk-section { list-style: none; font-size: 9.6px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); padding: 9px 10px 4px; }
.cmdk-kind { font-size: 9.6px; font-weight: 700; text-transform: uppercase; color: var(--text3); flex-shrink: 0; width: 58px; }

/* ── ⌘K tab strip (reused by the unified chat shell's own tab strip) ── */
.cmdk-tabs { display: flex; border-bottom: 1px solid var(--border); }
.cmdk-tab { flex: 1; background: none; border: none; color: var(--text3); font-family: var(--font); font-size: 13.2px; font-weight: 600; padding: 10px 0; cursor: pointer; letter-spacing: .04em; text-transform: uppercase; transition: color .15s; }
.cmdk-tab:hover { color: var(--text); }
.cmdk-tab.active { color: var(--accent); border-bottom: 2px solid var(--accent); margin-bottom: -1px; }

/* ── Chat message bubbles (shared by the unified chat shell's tabs) ── */
.chat-msg { max-width: 85%; padding: 9px 13px; border-radius: 10px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.chat-msg-user { align-self: flex-end; background: var(--accent-dim); color: var(--text); border-bottom-right-radius: 3px; }
/* Move 807: --reply-text, not --text. The badges a reply carries (.planner-grounded,
   .planner-heldback, .planner-model), the acting placeholder (.is-working) and an
   error (.chat-msg-error, below) each set their own color, so they still stand
   apart from the white body. A reply is plain text, so there are no links or
   code blocks inside one to recolour. */
.chat-msg-assistant { align-self: flex-start; background: var(--bg3,var(--bg2)); border: 1px solid var(--border); color: var(--reply-text, var(--text)); border-bottom-left-radius: 3px; }
.chat-msg-error { color: var(--danger, #e05252); background: transparent; border-color: var(--danger, #e05252); }
/* A long reply, folded until "Show all" is pressed (chatShellSetReplyText in
   app.js). display: block so max-height applies to the text alone and the badges
   appended after it stay outside the fold. */
.chat-msg-text { display: block; }
.chat-msg-folded { max-height: 18em; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent); mask-image: linear-gradient(to bottom, #000 80%, transparent); }
.chat-msg-showall { display: block; margin-top: 6px; padding: 4px 0; background: none; border: none; color: var(--accent); font-family: var(--font); font-size: 14px; font-weight: 600; cursor: pointer; }
.chat-msg-showall:hover { text-decoration: underline; }
/* Move 370: an applied move edit, recorded by the server in the move's thread.
   Neither side of the conversation said it, so it is centered and quiet rather
   than styled as a turn: it is a note in the margin of the discussion. */
.chat-msg-system { align-self: center; max-width: 95%; background: transparent; border: 1px dashed var(--border); color: var(--text2); font-size: 13px; }
.chat-input-row { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); flex-shrink: 0; }
/* Move 711: a textarea now, sized by chatShellAutogrow in app.js from one row up
   to five. resize: none because the height is the script's to set; a drag handle
   would fight it. align-self: flex-end keeps Send beside the last line. */
#chat-shell-input { flex: 1; background: transparent; border: 1px solid var(--bd2); border-radius: 7px; color: var(--text); font-family: var(--font); font-size: 15.6px; line-height: 1.4; padding: 8px 12px; outline: none; resize: none; overflow-y: hidden; }
#chat-shell-input-row-el { align-items: flex-end; }
#chat-shell-input:focus { border-color: var(--accent); }
/* One line: a textarea's placeholder wraps, and a one-row box then shows its
   second line sliced in half (seen at 390px). Chrome clips it rather than
   honoring text-overflow here; a clean clip is the point, the ellipsis is a
   bonus where a browser gives one. */
#chat-shell-input::placeholder { color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Unified chat shell (Planner / Inspector / Strategist tabs) ── */
#chat-shell-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: flex-start; justify-content: center; padding-top: 10vh; z-index: 300; }
#chat-shell-overlay .cmdk.chat-shell { width: 560px; max-width: 94vw; display: flex; flex-direction: column; max-height: 80vh; }
.chat-shell-header { display: flex; align-items: stretch; justify-content: space-between; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.chat-shell-header .cmdk-tabs { flex: 1; border-bottom: none; }
.chat-shell-header-actions { display: flex; align-items: center; gap: 4px; padding: 0 10px; flex-shrink: 0; }
/* Move 387: scoping indicator when Strategist is opened from a queue item's
   Discuss button, so the anchored move stays visible while chatting. */
.chat-shell-move-badge { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--bg3); color: var(--accent2, #6ea8fe); border-radius: 4px; padding: 3px 7px; white-space: nowrap; }
/* One-line subtitle under the header, naming what the active tab does (Move
   343 -- tabs are distinguished by capability KEY, see the comment above
   CHAT_SHELL_TAB_ORDER in app.js; the copy here is keyed the same way). */
.chat-shell-subtitle { padding: 6px 14px 0; font-size: 12.5px; color: var(--text3); line-height: 1.4; flex-shrink: 0; }
.chat-shell-subtitle:empty { display: none; }
/* Move 711: a floor, so a long conversation list can no longer squeeze the
   answer to nothing. About seven lines of a reply at this font size. */
#chat-shell-messages { flex: 1 1 auto; min-height: 180px; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
#chat-shell-project-picker { padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; }
#chat-shell-project-picker select { background: transparent; border: 1px solid var(--bd2); border-radius: 7px; color: var(--text); font-family: var(--font); font-size: 14px; padding: 8px 10px; }

/* ── Project section bar (J.J., 2026-09-23) ── */
/* One link per main section, stuck to the top of #main (the scroll container) so
   it is there wherever the reader is. --pnav-h is its height, used to land a
   section just under it (scroll-margin-top) and to push the wide layout's sticky
   Dispatch column below it rather than under it. One line always: on a phone it
   scrolls sideways instead of wrapping into a second row that would eat the
   screen. */
/* --pnav-h is defined on #main, so the live strip above #project-view can stick under the nav. */
#project-nav {
  position: sticky; top: calc(-1 * var(--main-pad)); z-index: 20; height: var(--pnav-h);
  display: flex; align-items: center; gap: 4px; margin: 0 0 12px;
  overflow-x: auto; white-space: nowrap; scrollbar-width: none;
  background: var(--bg); border-bottom: 1px solid var(--border);
}
#project-nav::-webkit-scrollbar { display: none; }
#project-nav a {
  flex: none; padding: 6px 10px; border-radius: 6px; font-size: 13.2px;
  color: var(--text2); text-decoration: none;
}
#project-nav a:hover, #project-nav a:focus-visible { color: var(--text); background: var(--bg3, var(--bg2)); }
#project-view .section, #proj-details, #console-column { scroll-margin-top: calc(var(--pnav-h) + var(--live-strip-h) + 8px); }
/* Move 733. Dispatch's own header and its fold. Folded, only the header shows,
   above the workspace on every width (the wide layouts drop to one column while
   folded; see the rule after the wide media queries). */
.dispatch-fold-header { margin-bottom: 8px; }
.dispatch-fold-status { font-size: 12.5px; color: var(--text2); margin-left: 6px; }
#console-column.section--collapsed #chat-shell-dock { display: none; }
#console-column.section--collapsed .dispatch-fold-header { margin-bottom: 0; }

/* ── Move 528: the Console docked beside the workspace ── */
/* The same .cmdk.chat-shell node as above, re-parented into #chat-shell-dock. Every
   rule here is scoped to the dock so the overlay's own geometry is untouched: the
   modal must keep working exactly as it does today for the views that still use it
   (portfolio, Settings, anywhere with no project on screen). */
/* STACKED IS THE BASE AND SIDE BY SIDE IS THE UPGRADE, which is the opposite of how
   this was first written and the full suite is what corrected it. Four tests failed
   at the harness's 1280px: queue rows overflowing their box by 366 and 409 pixels,
   milestone header controls wrapping off the name line. Not flakes -- the workspace
   column had been squeezed to 472px.

   THE FLOOR IS SET BY THE QUEUE ROW, not by taste. `.wn-actions` is a non-wrapping
   flex of about six controls plus the Move 466 assign dropdown, and it lays out at
   ~880px; test/wn-row-width-browser.test.js exists because that strip already cut
   Delete off the right edge once (2026-08-09). So the workspace cannot go below
   ~900px, and beside-it needs 900 + 24 gap + 300 console + 80 for #main's padding =
   ~1304px of main, or ~1544px of window with the 240px sidebar in place.

   NARROWING THE ROW WOULD RAISE THE CEILING and is deliberately not done here: Move
   546 catalogues the control idioms and Move 547 is the systematic UI pass, and both
   are downstream of this move by the decision's own sequencing. Until then, a
   1512px laptop gets the two-region layout only with the nav hidden, which is what
   Move 411's toggle is for.

   STACKED, DISPATCH NOW COMES FIRST (Move 732, decided by J.J. 2026-09-16, built
   2026-09-23). Shape C originally put the conversation UNDERNEATH so a narrow
   screen lost nothing, and the cost of that was measured: Dispatch sat below the
   queue, the work log and every Reference block, and Knowledge was the last thing
   before it. J.J. chose Dispatch first on every width. What keeps the queue a click
   away rather than buried is #project-nav above, which links every section. */
#console-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
#console-column { order: 1; }
#workspace-column { order: 2; min-width: 0; }
#chat-shell-dock { display: flex; flex-direction: column; }
#chat-shell-dock .cmdk.chat-shell { width: auto; max-width: none; display: flex; flex-direction: column; height: 60vh; }
/* Move 711. THE SMALLEST SCREENS HAD THE SMALLEST SHELL: every height override
   was a min-width desktop rule, so a phone got 60vh of an already short window.
   dvh, not vh, because on mobile vh measures the viewport WITHOUT the browser's
   own chrome, which makes a vh height wrong by exactly the amount that hurts.
   The vh line is the fallback for a browser without dvh. */
@media (max-width: 760px) {
  #chat-shell-dock .cmdk.chat-shell { height: 85vh; height: 85dvh; }
  /* Move 1147. On a phone the replies get the room: the agent's description line
     (59px) and the rigor control's explanation sentence go; the Governed,
     Balanced and Creative buttons stay. fitDispatchToScreen (app.js) then sizes
     the shell to end at the bottom of the visible screen. The conversation list
     keeps its floor: it scrolls, it does not collapse (J.J., 2026-09-13). */
  #chat-shell-dock .chat-shell-subtitle { display: none; }
  #chat-shell-dock .planner-rigor-copy { display: none; }
  /* Move 1148 (A). The three-button rigor row becomes the picker in the tab row. */
  #chat-shell-dock .planner-rigor { display: none; }
  #chat-shell-dock .chat-shell-rigor-pick:not([hidden]) { display: inline-block; }
  /* Move 1148 (C). The player card steps aside while Dispatch is in view. */
  html.dispatch-in-view #cmp { display: none; }
}
.chat-shell-rigor-pick { display: none; background: transparent; border: 1px solid var(--bd2); border-radius: 6px; color: var(--text); font-family: var(--font); font-size: 12.5px; padding: 3px 4px; }

/* Room for both: the Console is the page and the workspace sits beside it. */
@media (min-width: 1544px) {
  #console-layout { grid-template-columns: minmax(300px, 420px) minmax(900px, 1fr); gap: 24px; align-items: start; }
  #console-column { order: 0; position: sticky; top: calc(var(--pnav-h) + var(--live-strip-h) - var(--main-pad)); align-self: start; }
  #workspace-column { order: 0; }
  /* The window minus the bar above and #main's bottom padding below, so the docked
     shell fills the column without pushing the page taller than the window. */
  #chat-shell-dock .cmdk.chat-shell { height: calc(100vh - var(--main-pad) - var(--pnav-h) - var(--live-strip-h)); }
}
/* The same layout 240px earlier when the sidebar is out of the way (Move 411). A
   second threshold rather than a wider single one, because "does it fit" genuinely
   depends on whether the nav is showing, and rounding that away would either deny
   the layout to a 1512px laptop that has room for it or squeeze the queue on a
   1400px one that does not. */
@media (min-width: 1304px) {
  #app.nav-hidden #console-layout { grid-template-columns: minmax(300px, 420px) minmax(900px, 1fr); gap: 24px; align-items: start; }
  #app.nav-hidden #console-column { order: 0; position: sticky; top: calc(var(--pnav-h) + var(--live-strip-h) - var(--main-pad)); align-self: start; }
  #app.nav-hidden #workspace-column { order: 0; }
  #app.nav-hidden #chat-shell-dock .cmdk.chat-shell { height: calc(100vh - var(--main-pad) - var(--pnav-h) - var(--live-strip-h)); }
}
/* Folded, Dispatch gives its column back (seen by J.J. 2026-10-15): the two wide
   layouts above kept a ~360px strip holding only "▸ DISPATCH" and pushed the
   workspace far to the right. So a folded Dispatch is ONE column at every width,
   its header above the workspace as on a narrow screen, and unfolding restores the
   two columns. Outside the media queries because it is the narrow layout anyway;
   the #app prefix outranks the nav-hidden rules, and static stops the header
   sticking over the workspace as it scrolls. */
#app #console-layout:has(> #console-column.section--collapsed) { grid-template-columns: minmax(0, 1fr); gap: 16px; }
#app #console-layout > #console-column.section--collapsed { position: static; }

/* Ambient status: what Forge is and is not doing, visible without being asked for. */
.workspace-ambient { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.wsa-daemon { font-size: 12.5px; color: var(--text3); line-height: 1.4; }
.wsa-limits { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--bg2); }
.wsa-limits-heading { font-size: 10.8px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text3); }
.wsa-limits-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.wsa-limits-list li { font-size: 13.2px; color: var(--text2); line-height: 1.4; }
.wsa-limits-list li::before { content: '· '; color: var(--text3); }
/* Whole-pixel line height on purpose: 12.5px at 1.4 is a 17.5px line, which puts the
   What's Next queue below it on a half pixel and shifts it by one in the scroll test. */
.wsa-limits-note { margin: 6px 0 0; font-size: 12.5px; color: var(--text3); line-height: 18px; }

/* WHICH region collapses on a phone is Move 252's decision and is deliberately NOT
   MADE HERE: below the thresholds above nothing collapses, the two regions stack and
   both stay reachable, so that move still has a free choice. The workspace comes
   first in the stack for Shape C's sake -- console-first would push the queue below a
   full-height conversation, which is a narrow screen being worse off than it is
   today. */

/* ── Shared-with-me section ── */
.shared-section-header { font-size: 10.8px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text3); padding: 10px 14px 4px; border-top: 1px solid var(--border); margin-top: 4px; }
#shared-section.section--collapsed #shared-project-list { display: none; }
.shared-badge { font-size: 9.6px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--accent-dim); color: var(--accent); border-radius: 3px; padding: 1px 5px; vertical-align: middle; margin-left: 5px; }

/* ── Attribution chip ── */
.attribution { font-size: 11.4px; font-style: italic; color: var(--text3); }

/* ── Admin modal ── */
.admin-modal { width: min(640px, 92vw); max-height: 80vh; overflow-y: auto; }
.admin-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.admin-tab { flex: 1; background: none; border: none; color: var(--text3); font-family: var(--font); font-size: 13.2px; font-weight: 600; padding: 9px 0; cursor: pointer; letter-spacing: .04em; text-transform: uppercase; transition: color .15s; }
.admin-tab:hover { color: var(--text); }
.admin-tab:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.admin-tab.active { color: var(--accent); border-bottom: 2px solid var(--accent); margin-bottom: -1px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14.4px; }
.admin-table th { text-align: left; font-size: 10.8px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text3); padding: 4px 8px 8px; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 8px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.status-inactive { color: var(--danger, #e05252); font-size: 13.2px; }
.admin-invite-row { display: flex; gap: 8px; margin-bottom: 10px; }
.admin-invite-row input { flex: 1; background: var(--bg3); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font: inherit; font-size: 14.4px; padding: 7px 10px; }
.admin-invite-row input:focus { outline: none; border-color: var(--accent); }
.admin-invite-result { font-size: 13px; padding: 8px 10px; border-radius: 6px; margin-bottom: 10px; word-break: break-all; }
.admin-invite-ok { background: var(--accent-dim); color: var(--done); }
.admin-invite-err { background: rgba(184,48,48,.12); color: var(--danger); }
.admin-field-row { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.admin-field-row label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text3); flex: 1; }
.admin-field-row select { background: var(--bg3); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font: inherit; padding: 7px 10px; width: 100%; }
.admin-member-list { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; }
.admin-member-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; background: var(--bg3); border-radius: 6px; font-size: 14.4px; }
.admin-member-empty { color: var(--text3); font-size: 13.2px; font-style: italic; padding: 6px 0; }

.admin-project-grouped-list { max-height: 200px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 14px; }
.admin-project-group-label { font-size: 10.8px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text3); padding: 8px 10px 4px; border-top: 1px solid var(--border); }
.admin-project-group-label:first-child { border-top: none; }
.admin-project-item { display: flex; align-items: center; padding: 7px 10px; cursor: pointer; font-size: 14.4px; color: var(--text); transition: background .1s; }
.admin-project-item:hover { background: var(--bg3); }
.admin-project-item.selected { background: var(--accent-dim); color: var(--accent); font-weight: 500; }
.admin-members-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text3); margin-bottom: 6px; }

/* ── Reset success state ── */
.login-success { color: #4caf7d; font-size: 14.4px; }

/* Morning briefing — borderless elevated surface, editorial type, one sparing accent */
#pf-briefing { margin-bottom: 16px; }
#pf-briefing:empty { margin-bottom: 0; }
.brief-card {
  background: var(--bg2);
  border-left: 2px solid var(--accent);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 6px 20px rgba(0,0,0,.07), inset 0 1px 0 rgba(255,255,255,.03);
}
.brief-skeleton { color: var(--text2); font-style: italic; padding: 18px 22px; }
.brief-show-link { background: none; border: none; color: var(--text3); font-size: 13.2px; cursor: pointer; padding: 4px 0; letter-spacing: .02em; }
.brief-show-link:hover { color: var(--text2); }
.brief-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.brief-collapsed { display: flex; align-items: center; gap: 10px; }
.brief-toggle {
  background: none; border: 1px solid var(--border); cursor: pointer; line-height: 1;
  font-size: 16px; color: var(--text2); width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: color .12s, background .12s, border-color .12s;
}
.brief-toggle:hover { color: var(--text); background: var(--bg3); border-color: var(--accent); }
.brief-title {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 22px; font-weight: 600; letter-spacing: -.01em; color: #d4875a;
}
.brief-headline { font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
.brief-prose {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  margin: 0 0 18px; font-size: 18.5px; line-height: 1.5;
  letter-spacing: 0; color: var(--text); max-width: 64ch;
}
.brief-muted { color: var(--text2); font-style: italic; font-size: 14.4px; }
.brief-groups { display: flex; flex-wrap: wrap; gap: 28px; }
.brief-group { min-width: 175px; }
.brief-group-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text3); margin-bottom: 8px;
}
.brief-count {
  background: var(--bg3); color: var(--text2);
  border-radius: 100px; padding: 1px 9px; font-size: 12px; font-weight: 600; letter-spacing: 0;
}
.brief-group--accent .brief-count { background: var(--accent-dim); color: var(--accent); }
.brief-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.brief-chip {
  display: inline-flex; align-items: center; cursor: pointer; max-width: 100%;
  padding: 5px 11px; border-radius: 9px;
  background: linear-gradient(155deg, var(--surface-a), var(--surface-b));
  border: 1.5px solid var(--border);
  box-shadow: 0 3px 10px rgba(0,0,0,.05), inset 0 1px 0 rgba(255,255,255,.04);
  font-size: 13.5px; font-weight: 600; color: var(--text); letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: transform .12s, box-shadow .12s;
}
.brief-chip:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.09), inset 0 1px 0 rgba(255,255,255,.04); }
.brief-blocked { margin: 0 0 16px; padding: 10px 12px; background: var(--accent-dim); border-left: 3px solid var(--accent); border-radius: 8px; }
.brief-blocked-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 6px; }
.brief-blocked-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.brief-blocked-item { display: flex; align-items: baseline; gap: 8px; cursor: pointer; font-size: 13px; overflow: hidden; padding: 2px 0; }
.brief-blocked-name { font-weight: 700; color: var(--text); white-space: nowrap; flex-shrink: 0; }
.brief-blocked-wait { color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brief-blocked-days { margin-left: auto; color: var(--accent); font-weight: 600; font-size: 12px; flex-shrink: 0; }

.brief-recent { margin-bottom: 16px; }
.brief-recent-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text3); margin-bottom: 8px; }
.brief-recent-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.brief-recent-item { display: flex; align-items: baseline; gap: 8px; cursor: pointer; font-size: 13px; overflow: hidden; padding: 3px 0; }
.brief-recent-item:hover .brief-recent-text { color: var(--text); }
.brief-recent-proj { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); white-space: nowrap; flex-shrink: 0; }
.brief-recent-text { color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Light-mode palettes — apply only with data-theme="light". Taproot is the base. */
:root[data-theme="light"][data-light-palette="slate"] {
  --bg: #F6F8FA; --bg2: #FFFFFF; --bg3: #EDF1F5; --border: #DCE3EA; --bd2: #C7D2DD;
  --surface-a: #FFFFFF; --surface-b: #F0F4F8;
  --text: #1E293B; --text2: #566276; --text3: #8A95A6;
  --accent: #2563EB; --accent2: #2563EB; --accent-dim: rgba(37,99,235,.12); --sidebar-bg: #E3E9F1;
}
:root[data-theme="light"][data-light-palette="rose"] {
  --bg: #FBF6F4; --bg2: #FFFFFF; --bg3: #F4EAE6; --border: #EAD9D2; --bd2: #DCC3B9;
  --surface-a: #FFFFFF; --surface-b: #F7EEEA;
  --text: #3F2A26; --text2: #6E5751; --text3: #9C857E;
  --accent: #B5524B; --accent2: #B5524B; --accent-dim: rgba(181,82,75,.12); --sidebar-bg: #F0DED7;
}
:root[data-theme="light"][data-light-palette="lavender"] {
  --bg: #F8F7FC; --bg2: #FFFFFF; --bg3: #EFEDF8; --border: #E2DEF1; --bd2: #CFC8E6;
  --surface-a: #FFFFFF; --surface-b: #F2F0FA;
  --text: #2A2540; --text2: #5C5677; --text3: #8A85A3;
  --accent: #6B4FBF; --accent2: #6B4FBF; --accent-dim: rgba(107,79,191,.12); --sidebar-bg: #E6E1F2;
}

/* Light-palette selector (Settings modal) */
.palette-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.palette-swatch { display: flex; align-items: center; gap: 7px; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 5px 10px 5px 6px; cursor: pointer; color: var(--text2); font-family: var(--font); font-size: 13.2px; }
.palette-swatch:hover { color: var(--text); background: var(--bg3); }
.palette-swatch.active { border-color: var(--accent); color: var(--text); }
.palette-chip { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 5px; border: 1px solid var(--border); }
.palette-dot { width: 10px; height: 10px; border-radius: 50%; }

/* Settings page */
#settings-view { padding: 24px 28px; overflow-y: auto; max-width: 1020px; height: 100%; box-sizing: border-box; }
/* Move 875 (J.J. chose A on 2026-09-29): a sticky rail of groups beside one
   scrolling page. The body keeps its old 760px reading width. */
.settings-layout { display: grid; grid-template-columns: 196px minmax(0, 760px); gap: 28px; align-items: start; }
#settings-nav { position: sticky; top: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
.settings-nav-group { display: flex; flex-direction: column; gap: 1px; margin-bottom: 6px; }
#settings-nav a { display: block; padding: 5px 10px; border-radius: 6px; color: var(--text2); text-decoration: none; font-size: 13.2px; }
#settings-nav a:hover, #settings-nav a:focus-visible { color: var(--text); background: var(--bg3, var(--bg2)); }
#settings-nav .settings-nav-group-link { font-weight: 600; color: var(--text); }
#settings-nav .settings-nav-card { display: none; padding-left: 20px; font-size: 12.8px; }
#settings-nav .settings-nav-group--current .settings-nav-card { display: block; }
#settings-nav .settings-nav-card[hidden] { display: none; }
#settings-nav .settings-nav-group--current .settings-nav-group-link { color: var(--accent); }
#settings-nav .settings-nav-card.is-current { color: var(--text); background: var(--bg3, var(--bg2)); }
.settings-group { scroll-margin-top: 8px; }
.settings-group + .settings-group { margin-top: 28px; }
.settings-group-title { margin: 0 0 12px; font-size: 18px; font-weight: 700; color: var(--text); }
.settings-card { scroll-margin-top: 8px; }
/* Room below the last group, so a click on Data or Voice can bring it to the
   top like every other group instead of stopping where the page runs out. */
.settings-body::after { content: ''; display: block; height: calc(100vh - 260px); }
@media (max-width: 760px) {
  #settings-view { padding: 16px; }
  .settings-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  #settings-nav {
    top: -16px; z-index: 5; flex-direction: row; gap: 4px; overflow-x: auto; white-space: nowrap; scrollbar-width: none;
    margin: -16px -16px 12px; padding: 8px 16px; background: var(--bg); border-bottom: 1px solid var(--border);
  }
  #settings-nav::-webkit-scrollbar { display: none; }
  .settings-nav-group { flex-direction: row; margin: 0; flex: none; }
  #settings-nav .settings-nav-group--current .settings-nav-card { display: none; }
  .settings-group, .settings-card { scroll-margin-top: 56px; }
}
.settings-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.settings-header h2 { margin: 0; font-size: 24px; font-weight: 700; }
.settings-card { background: linear-gradient(155deg, var(--surface-a), var(--surface-b)); border: 1px solid var(--border); border-radius: 13px; padding: 20px 22px; margin-bottom: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.055), inset 0 1px 0 rgba(255,255,255,.04); }
.settings-card h3 { margin: 0 0 16px; font-size: 13.2px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text2); }
.settings-card label { display: flex; flex-direction: column; gap: 5px; font-size: 14.4px; font-weight: 500; color: var(--text2); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.settings-card label.email-toggle { flex-direction: row; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text); font-size: 15.6px; }
.settings-card .email-timing { display: flex; gap: 16px; margin-bottom: 12px; }
.settings-card .email-timing label { margin-bottom: 0; }
.settings-card input[type="number"],
.settings-card input[type="text"],
.settings-card textarea,
.settings-card select { background: var(--bg3); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-family: var(--font); font-size: 15.6px; padding: 8px 12px; width: 100%; box-sizing: border-box; }
.settings-card textarea { line-height: 1.5; resize: vertical; }
.settings-card input[type="number"] { max-width: 120px; }
.settings-card input:focus,
.settings-card textarea:focus,
.settings-card select:focus { outline: none; border-color: var(--accent); }
.settings-save-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.settings-card .mcp-token-generate-row input { width: auto; flex: 1; min-width: 140px; }

/* User Guide */
#guide-view { padding: 24px 28px; overflow-y: auto; max-width: 760px; height: 100%; box-sizing: border-box; }
.guide-body { display: flex; flex-direction: column; gap: 4px; }
.guide-section { background: linear-gradient(155deg, var(--surface-a), var(--surface-b)); border: 1px solid var(--border); border-radius: 13px; padding: 20px 22px; box-shadow: 0 4px 16px rgba(0,0,0,.055), inset 0 1px 0 rgba(255,255,255,.04); }
.guide-section h3 { margin: 0 0 12px; font-size: 13.2px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text2); }
.guide-section p { margin: 0 0 10px; font-size: 15px; line-height: 1.6; color: var(--text); }
.guide-section p:last-child { margin-bottom: 0; }
.guide-section ul, .guide-section ol { margin: 0 0 10px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.guide-section ul:last-child, .guide-section ol:last-child { margin-bottom: 0; }
.guide-section li { font-size: 15px; line-height: 1.5; color: var(--text); }
.guide-section li strong { color: var(--text); }
.guide-section code { font-family: var(--mono, monospace); font-size: 13px; background: var(--bg3); border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px; word-break: break-all; }
.settings-tracks-empty { font-size: 13.2px; color: var(--text3); font-style: italic; margin-top: 4px; }
#dev-log-view { padding: 24px 28px; overflow-y: auto; max-width: 760px; height: 100%; box-sizing: border-box; }
.dev-log-week { font-size: 12px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .06em; margin: 24px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--border); }
.dev-log-week:first-child { margin-top: 0; }
.dev-log-entry { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 6px; }
.dev-log-title { font-size: 14px; font-weight: 500; color: var(--text); }
.dev-log-desc { margin: 4px 0 0; font-size: 13.2px; color: var(--text2); line-height: 1.5; }
.source-mcp { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--bg3); color: #22c55e; border-radius: 4px; padding: 1px 5px; vertical-align: middle; margin-left: 5px; }
.source-capcom { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--bg3); color: var(--accent2, #6ea8fe); border-radius: 4px; padding: 1px 5px; vertical-align: middle; margin-left: 5px; }
.mcp-setup-label { margin: 12px 0 6px; }
.mcp-setup-row { display: flex; align-items: flex-start; gap: 8px; background: var(--bg3); border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; }
.mcp-setup-row code { flex: 1; font-family: var(--mono, monospace); font-size: 13px; line-height: 1.5; word-break: break-all; color: var(--text); }
.mcp-setup-row .icon-btn { flex-shrink: 0; border: 1px solid var(--border); padding: 4px 10px; }
.blast-off-btn {
  background: #0e1015;
  color: var(--waiting);
  border: 1px solid var(--waiting);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 14.4px;
  font-weight: 600;
  letter-spacing: .03em;
  cursor: pointer;
  transition: box-shadow .15s ease, background .15s ease;
}
.blast-off-btn:hover { background: #161922; box-shadow: 0 0 10px rgba(240, 179, 74, .45); }
.blast-off-btn.liftoff:hover { box-shadow: 0 0 10px rgba(70, 201, 138, .45); }
.blast-off-btn.copied { color: var(--done); border-color: var(--done); }
.blast-off-btn.liftoff { color: var(--done); border-color: var(--done); }
.preflight-btn { color: var(--archived); border-color: var(--archived); }
.preflight-btn:hover { box-shadow: 0 0 10px rgba(95, 104, 120, .45); }
.preflight-btn.pf-state-yellow { color: var(--waiting); border-color: var(--waiting); }
.preflight-btn.pf-state-yellow:hover { box-shadow: 0 0 10px rgba(240, 179, 74, .45); }
.preflight-btn.pf-state-green { color: var(--done); border-color: var(--done); }
.preflight-btn.pf-state-green:hover { box-shadow: 0 0 10px rgba(70, 201, 138, .45); }
.preflight-btn.pf-state-red { color: var(--danger); border-color: var(--danger); }
.preflight-btn.pf-state-red:hover { box-shadow: 0 0 10px rgba(224, 96, 126, .45); }
.staged-strip { margin: 8px 0; display: flex; flex-direction: column; gap: 6px; }
.staged-row { border: 1px solid var(--archived); border-radius: 6px; padding: 6px 10px; font-size: 13px; cursor: pointer; }
.staged-row .staged-meta { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.staged-row .staged-key { font-weight: 600; }
.staged-row .staged-source { color: var(--text2); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.staged-row .staged-age { color: var(--text2); font-size: 12px; }
.staged-row.staged-old { border-color: var(--waiting); }
.staged-row.staged-old .staged-age { color: var(--waiting); }
.staged-row .staged-brief { margin: 6px 0 0; white-space: pre-wrap; color: var(--text2); font-size: 12.5px; display: none; }
.staged-row.open .staged-brief { display: block; }
/* Move 443: the readiness signal. Always visible, unlike .staged-brief, because
   a warning behind a click is a warning nobody reads. */
.staged-row.staged-flagged { border-color: var(--waiting); }
.staged-row .staged-warnings { margin: 6px 0 0; padding-left: 16px; color: var(--waiting); font-size: 12.5px; }
.staged-row .staged-warnings li { margin: 2px 0; }
.admin-banner { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent); border-radius: 8px; padding: 8px 14px; font-size: 14px; font-weight: 600; margin-bottom: 10px; }

/* Move 544. height, not max-height, and this is the half the move's own
   diagnosis was missing. Making the log `flex: 1 1 auto` is necessary and is NOT
   sufficient: flex-grow distributes FREE SPACE, and a container sized only by
   max-height has none, because it is still sized by its content. Measured in
   Chrome at a 813px viewport: with the flex fix alone and a five line
   transcript, the panel took 235px of the 667px it was allowed.
   So the running console gets a DEFINITE height. The mobile override at the top
   of this file still clamps it, since max-height beats height.
   THE FINISHED STATE IS DELIBERATELY LEFT CONTENT-SIZED (height: auto below), so
   nothing about the end-of-run panel's HEIGHT changes in a move about the
   running one. It does get the new width, which is harmless: width has none of
   the cascading effects height does here.

   MOVE 544's SECOND HALF, decided with J.J. on 2026-08-24 from measurements
   rather than taste, at 1280x813 in Chrome:
     82vh/760px (before)  25 visible lines,  7% of a 300-line transcript
     90vh/900px (now)     28 visible lines,  9%
     100vh/760px          32 visible lines
   TWO THINGS CAME OUT OF THAT AND BOTH ARE ENCODED HERE.
   First, WIDTH COMPETES WITH HEIGHT FOR THE SAME PROBLEM AND IS CHEAPER. At
   760px realistic agent output wraps badly; 900px removes about a quarter of the
   wrapping, so the same visible lines carry a quarter more transcript, and it
   costs nothing vertically. Past 900px the gain stops for output of that shape,
   so 900 is calibrated on one sample rather than derived, and going wider is not
   an improvement.
   Second, 100vh WAS DECLINED. It buys three lines over 90vh and turns a floating
   panel into a full-screen overlay with none of a full-screen view's
   affordances, hiding the queue and the merge card the user looks at next. 90vh
   deliberately leaves a strip of the app visible so the panel does not read as an
   undismissable modal.
   NEITHER OF THESE IS THE ANSWER TO "watch a run without a terminal", and that
   was said plainly rather than shipped quietly: a terminal is 40 to 60 lines, so
   28 is not the gap. The real answer is promoting a RUNNING session into the
   #session-view full page that already exists for finished ones, which is its own
   move. Move 559 did that: see .agent-console--full below. */
.agent-console {
  position: fixed; right: 16px; bottom: calc(16px + var(--cmp-bottom, 0px)); width: min(900px, calc(100vw - 32px));
  height: calc(90vh - var(--cmp-bottom, 0px));
  display: flex; flex-direction: column; background: #0f1115; color: #d6dae0;
  border: 1px solid #2a2f3a; border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.4);
  z-index: 1000; font-family: ui-monospace, monospace; font-size: 12px;
}
/* Move 867. A live window put away because the owner switched project. A class
   rather than [hidden], since .agent-console sets display: flex, which beats the
   hidden attribute's own display: none. */
.agent-console.agent-console--collapsed { display: none; }
/* The chips, one per window put away, stacked. Theme variables only, so all
   four themes carry them. Above the console (1000) and below the toasts (1100).
   The corner is chosen in agent-console.js (placeChips), which moves the stack
   off the message box and the merge card's buttons. */
.session-chips {
  position: fixed; z-index: 1050; display: flex; flex-direction: column; gap: 6px;
  max-width: calc(100vw - 32px);
}
.session-chips[data-corner="bottom-right"] { right: 16px; bottom: calc(16px + var(--cmp-bottom, 0px)); align-items: flex-end; }
.session-chips[data-corner="top-right"] { right: 16px; top: 16px; align-items: flex-end; }
.session-chips[data-corner="bottom-left"] { left: 16px; bottom: calc(16px + var(--cmp-bottom, 0px)); align-items: flex-start; }
.session-chips[data-corner="top-left"] { left: 16px; top: 16px; align-items: flex-start; }
.session-chip {
  display: flex; align-items: stretch; max-width: 100%;
  background: var(--bg2); color: var(--text); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,.18); font-size: 13px;
}
.session-chip[data-state="waiting for you"] { border-left-color: var(--waiting); }
.session-chip[data-state="ready to merge"],
.session-chip[data-state="finished"] { border-left-color: var(--done); }
.session-chip__open, .session-chip__close {
  background: none; border: 0; color: inherit; font: inherit; cursor: pointer;
  min-height: 36px; /* a tap target on a phone */
}
.session-chip__open { padding: 6px 10px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-chip__close { padding: 0 10px; color: var(--text2); border-left: 1px solid var(--border); }
.session-chip__open:hover, .session-chip__close:hover { background: var(--bg3); }
.agent-console__bar {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-bottom: 1px solid #2a2f3a;
}
.agent-console__bar span { flex: 1; }
/* Forge Move 1237 (J.J., 2026-10-31): the project's header above the bar. The
   logo has a row of its own and scales to fit, never cropped: no fixed height,
   only caps, so a wide wordmark shrinks to the window's width. Then the name,
   then the number in smaller type. */
.agent-console__head {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; flex-shrink: 0;
  padding: 10px 10px 6px; border-bottom: 1px solid #2a2f3a; min-width: 0;
}
.agent-console__head-logo { display: block; max-width: 100%; max-height: 112px; width: auto; height: auto; object-fit: contain; margin-bottom: 4px; }
.agent-console__head-name {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--font); font-size: 15px; font-weight: 600; color: #e6e9ee;
}
.agent-console .project-number { color: #9aa3b2; }
.agent-console__bar .agent-console__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-chip__project { display: inline-block; vertical-align: middle; margin-right: 6px; }
.session-chip__project .project-mark__logo { display: block; height: 36px; width: auto; max-width: 144px; object-fit: contain; }
@media (max-width: 760px) {
  .agent-console__head-logo { max-height: 72px; }
}
.agent-console__bar button { background: #1c2230; color: #d6dae0; border: 1px solid #2a2f3a; border-radius: 4px; cursor: pointer; padding: 2px 8px; }
.agent-console__strip { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid #2a2f3a; font-size: 13px; flex-shrink: 0; }
.strip-status { color: var(--accent); font-weight: 600; }
.agent-console__strip--done .strip-status { color: var(--done); font-size: 16.8px; font-weight: 700; }
.agent-console__strip--failed .strip-status { color: var(--danger); font-size: 16.8px; font-weight: 700; }
.strip-elapsed { color: var(--text2); font-variant-numeric: tabular-nums; }
.strip-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--text3); opacity: .35; transition: opacity .3s, background .3s; flex-shrink: 0; }
.strip-pulse--active { background: var(--accent); opacity: 1; }
.agent-console__strip--reconnecting .strip-status { color: var(--waiting); }
.agent-console__strip--reconnecting .strip-pulse { animation: reconnectPulse 1.4s ease-in-out infinite; }
/* Move 385: a session waiting on the user is neither done nor failed. */
.agent-console__strip--waiting { background: var(--accent-dim); border-color: var(--accent); }
/* J.J. 2026-10-13: a running queue run's plan at the top of its window, drawn
   from the same live item as the strip (live-strip.js lsRunPlanHtml). */
.agent-console__runplan { padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 12.5px; line-height: 1.5; }
.agent-console__runplan[hidden] { display: none; }
.run-plan__head { color: var(--text); font-weight: 600; }
.run-plan__list { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 1px; }
.run-plan__move { display: flex; gap: 8px; color: var(--text2); }
.run-plan__no { min-width: 84px; }
.run-plan__move--current { color: var(--acting); font-weight: 600; }
.run-plan__move--done .run-plan__state { color: var(--text3); }
.run-plan__move--blocked .run-plan__state { color: var(--danger); }
.run-plan__none { color: var(--text3); }
.agent-console__state { padding: 8px 12px; border-bottom: 1px solid #2a2f3a; font-size: 12.5px; line-height: 1.5; }
.agent-console__state .ws-now { color: var(--accent); font-weight: 600; }
.agent-console__state .ws-next { color: var(--text2); }
.agent-console__state .ws-you { color: var(--text2); margin-top: 2px; }
.agent-console__state.ws-attention .ws-you { color: var(--waiting); font-weight: 600; }
.agent-console__state.ws-error .ws-you { color: var(--danger); font-weight: 600; }
@keyframes reconnectPulse {
  0%, 100% { opacity: .25; }
  50% { opacity: .7; }
}
.strip-segments { display: flex; gap: 3px; flex: 1; }
.strip-seg { height: 6px; flex: 1; border-radius: 3px; background: var(--bg3); }
.strip-seg--run { background: var(--accent); }
.strip-seg--ok { background: var(--done); }
.strip-seg--bad { background: var(--danger); }
/* Move 544 adds height: auto, which preserves exactly today's behavior: the
   finished panel stays sized by its content up to 80vh, rather than inheriting
   the running state's new definite height.
   A FINDING WORTH RECORDING RATHER THAN FIXING HERE: the `max-height: 30%` on
   the finished log below has never done anything. A percentage max-height
   resolves against the parent's DEFINITE height, and this panel has never had
   one, so the cap has been silently inert since it was written. Giving the
   finished panel a definite height would switch it on, which is a real change to
   the end-of-run panel and belongs in its own move, not in this one. Measured in
   Chrome: a 600 line finished transcript puts the log at 479px of a 650px panel,
   nowhere near 30%. */
.agent-console--finished { max-height: 80vh; height: auto; }
.agent-console--finished .agent-console__log { max-height: 30%; flex: 0 1 auto; }
.agent-console--finished .agent-console__finish { flex: 1 1 auto; }
/* Move 559. A RUNNING session on the full page: the same panel, moved into
   #session-view (agent-console.js, enterFullPage), which hides the view it
   replaces, so nothing scrolls behind it and the router treats it as the
   session's page.
   IT COVERS #main's WHOLE BOX, padding and the live strip included, and that is
   measured rather than chosen for looks. Laid out in #main's flow it came to a
   547px log against the window's 583px at 1280x813: #main's 64px of padding and
   the strip that a running session itself puts up cost more than the page
   gained. Fixed to #main's box (the sidebar is 240px, or gone when hidden) it
   gets the full height and #main's full width.
   THE STRIP AND THE WORK-STATE BOX SHARE A ROW here, which they cannot in the
   900px window: the page is wide enough, and the row they give back goes to the
   log. Grid rather than flex for that, since a flex column cannot put two of its
   rows side by side. The log keeps the one flexible track.
   Doubled and placed after --finished, so it also beats that rule for the few
   seconds a finished run waits on its result before the results page. */
.agent-console.agent-console--full {
  position: fixed; top: 0; left: 240px; right: 0; bottom: var(--cmp-bottom, 0px);
  width: auto; height: auto; max-width: none; max-height: none;
  border-radius: 0; border-width: 0 0 0 1px; box-shadow: none; z-index: 20;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto auto minmax(0, 1fr);
}
#app.nav-hidden .agent-console.agent-console--full { left: 0; }
.agent-console--full > * { grid-column: 1 / -1; }
.agent-console--full > .agent-console__strip { grid-column: 1; grid-row: 3; }
.agent-console--full > .agent-console__state { grid-column: 2; grid-row: 3; border-left: 1px solid #2a2f3a; }
.agent-console--full:has(> .agent-console__state[hidden]) > .agent-console__strip { grid-column: 1 / -1; }
.agent-console--full > .agent-console__log { grid-row: 4; }
/* Clear of the fixed show/hide-nav toggle, which sits over this corner. */
.agent-console--full > .agent-console__bar { padding-left: 40px; }
.agent-console__next { padding: 8px 12px; font-size: 13.2px; color: var(--text2); border-bottom: 1px solid #2a2f3a; flex-shrink: 0; }
.finish-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; margin: 8px 0; background: var(--bg2); }
/* Move 544. flex and min-height are half the fix, and neither half works alone.
   .agent-console was already a flex column, but until now the log had NO flex
   property, its siblings (__strip, __next) are flex-shrink: 0, and a flex column
   with no growing child simply sizes to content. So the panel was ALLOWED 82vh
   and asked for about 15 lines, which is what pushed a user back to a terminal to
   watch their own run. Raising its max-height would have changed nothing visible,
   which is the trap here; the other half of the fix is the definite height on
   .agent-console above, without which flex-grow has no free space to distribute.
   min-height: 0 is load-bearing: a flex child with overflow: auto refuses to
   shrink below its content without it, which produces a panel taller than its
   container instead of a scrolling log inside it.
   The finished state deliberately reverses this and still does: its
   .agent-console--finished .agent-console__log rule above is two classes to this
   one's one, so it wins on flex regardless of order. It inherits min-height: 0,
   which is correct for it too, since it pairs overflow: auto with a max-height. */
.agent-console__log { margin: 0; padding: 10px; overflow: auto; white-space: pre-wrap; word-break: break-word; flex: 1 1 auto; min-height: 0; }
.agent-console__finish { padding: 12px; border-top: 1px solid #2a2f3a; overflow-y: auto; }
.agent-console__finish-title { font-size: 11px; font-weight: 600; color: #9aa3b4; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
/* Forge Move 1261 (J.J., 2026-11-03): larger type and its own color, from theme
   tokens so it reads in all four themes. It was 11px on a hard-coded #1c2230. The
   background is mixed opaque, not --accent-dim, so its contrast can be measured. */
.agent-console__worklog { background: color-mix(in srgb, var(--accent) 16%, var(--bg2)); border-left: 3px solid var(--accent); border-radius: 4px; padding: 10px 12px; font-size: 13px; line-height: 1.5; color: var(--text); white-space: pre-wrap; word-break: break-word; margin-bottom: 10px; max-height: 40vh; overflow-y: auto; }
.agent-console__moves { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.agent-console__move-row { display: flex; align-items: flex-start; gap: 6px; }
.agent-console__move-row input[type="checkbox"] { flex-shrink: 0; margin-top: 3px; cursor: pointer; }
.agent-console__move-text { flex: 1; background: #1c2230; border: 1px solid #2a2f3a; border-radius: 4px; color: #d6dae0; font-family: ui-monospace, monospace; font-size: 11px; padding: 4px 6px; resize: none; min-height: 28px; }
.agent-console__move-check { margin: 3px 0 0 22px; font-size: 11px; color: #e0b860; word-break: break-word; }
.agent-console__complete-row { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 11px; color: #9aa3b4; }
/* .agent-console__outcome is styled in ONE place, below, next to the reason why.
   It used to be declared here too, at 11px, and the Move 385 rule that made it
   "deliberately heavier" set weight and color but never overrode that size, so
   the most important sentence on the page shipped as the smallest text in it. */
/* wrap so Move 385's scope line can sit under the button rather than beside it */
.agent-console__apply-row { display: flex; gap: 6px; flex-wrap: wrap; }
.agent-console__apply-btn { background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 5px; padding: 7px 16px; font-size: 13px; font-weight: 600; cursor: pointer; }
.agent-console__apply-btn:hover { filter: brightness(1.1); }
.agent-console__apply-btn:disabled { opacity: .6; cursor: default; filter: none; }
.agent-console__copy {
  background: var(--bg3); color: var(--text2); border: 1px solid var(--border);
  border-radius: 4px; font-size: 11px; padding: 2px 8px; cursor: pointer;
}
.agent-console__copy:hover { color: var(--text); }
.agent-console__complete-row--loud {
  background: var(--accent-dim); border: 1px solid var(--accent);
  border-radius: 6px; padding: 10px 12px; margin: 10px 0;
}
.agent-console__complete-row--loud label { font-size: 14px; color: var(--text); font-weight: 600; }
.agent-console__complete-row--loud input[type="checkbox"] { width: 16px; height: 16px; }
/* Move 386: the reason the box is not pre-ticked. The row is a flex line, so the
   caveat needs a full-width basis to sit under the label rather than beside it. */
.agent-console__complete-row--loud { flex-wrap: wrap; }
.agent-console__complete-caveat {
  flex-basis: 100%; margin-top: 6px; font-size: 12px; color: var(--text); opacity: 0.75;
}
/* Move 577: the Work Log note, prefilled with the machine's sentence. Full
   width under the label for the same flex-wrap reason as the caveat. */
.agent-console__complete-note {
  flex-basis: 100%; margin-top: 6px; box-sizing: border-box; width: 100%;
  background: var(--bg2); color: var(--text); border: 1px solid var(--border);
  border-radius: 4px; font-size: 12px; padding: 6px 8px; resize: vertical;
}
/* Move 385: the evidence-derived outcome. Deliberately heavier than the agent's
   own account below it, because the failure this fixes was a reader trusting a
   confident paragraph over an unlabelled sentence.
   Size added 2026-07-30: weight and color alone lost the fight. This line has to
   outrank everything else in the finish region, so it is larger than the loud
   complete-row label (14px), the apply button (13px), the caveat and scope notes
   (12px), and its own detail line, which inherits 13.2px from __next. */
.agent-console__outcome { font-size: 15px; line-height: 1.35; font-weight: 600; color: var(--text); padding: 6px 0 0; margin-bottom: 4px; }
/* Move 448: the verification claim, deliberately quieter than __outcome above
   it. That line is git evidence Forge captured; this one is only what the
   session said about tests Forge never watched, so it must not compete with a
   fact. The warn variant covers failed, not_run AND unconfirmed together: all
   three mean the work is unverified, and the reader's next action is the same
   for each. */
.agent-console__verification { font-size: 13.2px; line-height: 1.35; color: var(--text2); margin-top: 2px; }
/* --waiting, not a fresh hex: it is the existing amber token and it is defined
   in every theme block, including the third (oklch) pair. A literal color here
   would have been correct in two themes and wrong in the others. */
.agent-console__verification--warn { color: var(--waiting); font-weight: 600; }
/* Move 449: the merge control. Sits under the outcome sentence it is the remedy
   for, and stays quieter than it: the outcome is a fact about git, this is an
   action offered. --waiting and --text2 are existing tokens defined in every
   theme block including the oklch pair; a literal color here would have been
   right in two themes and wrong in the others, which is the note left on
   __verification--warn above. */
.agent-console__merge { margin-top: 8px; }
.agent-console__merge-ready,
.agent-console__merge-done { font-size: 13.2px; line-height: 1.35; color: var(--text); font-weight: 600; }
.agent-console__review-blocking { color: var(--danger); font-weight: 700; }
.agent-console__merge-note { font-size: 12.5px; line-height: 1.35; color: var(--text2); margin-top: 2px; }
/* A blocked merge is not a failure, it is a thing the user can act on, so it
   takes the same amber the unverified line takes rather than an error red. */
.agent-console__merge--blocked { color: var(--waiting); }
/* The merge control shipped as quiet prose with a bare, unstyled browser button
   inside it, sitting ABOVE the finish block. J.J. completed a move and did not
   notice it at all. The whole region read as status rather than as an action,
   which is the actual defect; the stale copy beside the Complete button was a
   separate bug found while fixing this one.
   It is now a CARD, and it renders after the finish panel, so the page reads
   what happened, apply the queue changes, land the code. The heading states the
   landing STATE rather than naming the control, because "NOT LANDED YET" is the
   fact a reader needs and "Merge" is only how to fix it. */
.agent-console__merge--card { border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 6px; padding: 10px 12px; margin-top: 14px; background: var(--bg2); }
.agent-console__merge-heading { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--text2); margin-bottom: 4px; }
/* Filled, matching __apply-btn. The earlier attempt kept it outlined so it would
   not compete with Apply; that was the wrong call, since by the time a user is
   looking at this the Apply step is done and this is the only thing left. */
.agent-console__merge-btn { margin-top: 8px; background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 5px; padding: 7px 16px; font-size: 13px; font-weight: 600; cursor: pointer; }
.agent-console__merge-btn:hover { filter: brightness(1.1); }
.agent-console__merge-btn:disabled { opacity: .6; cursor: default; filter: none; }
/* Move 689. Deliberately QUIETER than the merge button beside it. This one
   reveals evidence and is reversible by looking away; that one moves main. A
   disclosure control styled like the consequential action invites the wrong
   click, which is the same confusion its class name was changed to avoid. */
.agent-console__diff-btn { margin-top: 8px; margin-right: 8px; background: var(--bg2); color: var(--text); border: 1px solid var(--border); border-radius: 5px; padding: 7px 14px; font-size: 13px; cursor: pointer; }
.agent-console__diff-btn:hover { border-color: var(--accent); }
.agent-console__move-done-step { margin-top: 10px; }
.agent-console__move-done-btn { margin-top: 6px; background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 5px; padding: 7px 16px; font-size: 13px; font-weight: 600; cursor: pointer; }
.agent-console__move-done-btn:hover { filter: brightness(1.1); }
.agent-console__move-done-btn:disabled { opacity: .6; cursor: default; filter: none; }
/* Move 814: an interrupted session's next steps. */
.agent-console__interruption-actions { display: flex; flex-wrap: wrap; align-items: center; }
.agent-console__interruption-actions .agent-console__merge-btn { margin-right: 8px; }
.agent-console__interruption-link { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--accent); }
/* Move 480: the push step, nested inside the merge card as a second stage. The
   rule separating it from the merge above is the divider, not a second card: it
   is one landing story read top to bottom, and two cards would imply two
   unrelated decisions. */
.agent-console__push { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); }
.agent-console__push-done { font-size: 13.2px; line-height: 1.35; color: var(--text); font-weight: 600; }
/* The commit list is the compensating control for there being no undo, so it is
   set to be READ rather than skimmed past: monospace shas, full subjects, no
   truncation with an ellipsis. It scrolls rather than growing without bound. */
.agent-console__push-list { margin: 6px 0 0; padding-left: 18px; max-height: 168px; overflow-y: auto; }
.agent-console__push-list li { font-size: 12.5px; line-height: 1.45; color: var(--text2); }
.agent-console__push-list code { font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 11.5px; color: var(--text); }
/* The one warning on this surface that is about irreversibility rather than
   about a blocker, so it is colored as a caution and not as a refusal. */
.agent-console__push-warn { color: var(--waiting); }
/* Move 457: the third stage, separated from the push above it by the same rule
   that separates push from merge. One landing story, three stages, read top to
   bottom. */
.agent-console__deploy { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); }
/* The only genuinely good news on this card, and the one place a positive color
   is earned: it means an observation came back matching, not that a step
   completed. */
.agent-console__deploy-ok { font-size: 13.2px; line-height: 1.35; color: var(--done); font-weight: 600; }
/* One pulse after the move completes, then it releases. Deliberately not a
   persistent highlight: the user may not want to merge yet, and a badge that
   never clears is the skim-inducing residue Move 405 ruled out for the sweep. */
.agent-console__merge--attention { animation: bm-attention 1.1s ease-in-out 2; border-radius: 5px; }
@keyframes bm-attention { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 0 3px var(--accent); } }
@media (prefers-reduced-motion: reduce) {
  .agent-console__merge--attention { animation: none; box-shadow: 0 0 0 2px var(--accent); }
}
/* The plain-language "was it done, and is this a proposal" line above the
   proposed moves. Readable prose rather than a label: bigger than the 11px
   section titles it sits next to, and full contrast, because a reader who
   stopped at "Proposed moves" is exactly who this sentence is for. */
.agent-console__follow-on { font-size: 13.5px; line-height: 1.45; color: var(--text); margin: 4px 0 10px; }
.agent-console__moves-added { font-size: 13.5px; line-height: 1.45; color: var(--text); margin: 4px 0 10px; font-weight: 600; }
.agent-console__moves-added[hidden] { display: none; }
.agent-console__moves-flagged { font-size: 13px; line-height: 1.45; color: var(--text); margin: 4px 0 10px; }
.agent-console__moves-flagged[hidden] { display: none; }
.agent-console__moves-flagged-item { margin-left: 12px; opacity: 0.85; }
/* Move 385 Phase B: the scope of the Apply button, which is what actually misled
   the user on Move 368. The apply row wraps (see its rule above) so this stacks
   under the button instead of sitting beside it. */
.agent-console__apply-scope {
  flex-basis: 100%; margin-top: 6px; font-size: 12px; color: var(--text); opacity: 0.75;
}
@keyframes finishPulse {
  0% { box-shadow: 0 0 0 0 var(--accent-dim); }
  60% { box-shadow: 0 0 0 6px var(--accent-dim); }
  100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}
.agent-console__finish--enter { animation: finishPulse 0.9s ease-out 1; }
.finish-testplan { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.finish-testplan-preview { background: var(--bg3); border: 1px solid var(--border); border-radius: 4px; padding: 8px; font-size: 11px; color: var(--text2); white-space: pre-wrap; word-break: break-word; max-height: 140px; overflow-y: auto; margin-bottom: 8px; }
.sw-propose-testplan-row { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 13.2px; color: var(--text2); cursor: pointer; }

/* Planner (Planner) turn rendering -- reused inside the unified chat shell */
.planner-proposals { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 2px; }
/* Forge Move 1173: the component roster in the repository card, phone-safe. */
.planner-repo-roster { margin: 6px 0; max-width: 100%; }
.planner-repo-roster-title { margin: 0 0 4px; font-size: 12px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: .04em; }
.planner-repo-roster ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.planner-repo-roster label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; font-size: 13px; line-height: 1.4; min-width: 0; }
.planner-repo-roster-why { flex: 1 1 100%; padding-left: 22px; font-size: 12px; color: var(--text2); overflow-wrap: anywhere; }
.planner-proposal { border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; background: var(--bg3); }
.planner-proposal-text { font-size: 14px; color: var(--text); margin-bottom: 6px; }
.planner-proposal-rationale { font-size: 12.5px; color: var(--text2); margin-top: 2px; }
.planner-proposal-actions { display: flex; gap: 8px; align-items: center; }
.planner-proposal-added { font-size: 12px; color: var(--done); font-weight: 600; }
/* Forge Move 1179: a stored card that no longer applies, or whose apply never reported back. */
.planner-card-settled-off { color: var(--text3); }
.planner-proposal-queued { font-size: 12px; color: var(--text3); font-style: italic; }
/* Move 572 part A: the moves a directed create would add, listed on the card
   that stands between the directive and the queue. The briefing is shown rather
   than hidden, because approving a create is approving its briefing. */
.planner-proposal-list { margin: 4px 0 8px; padding-left: 18px; font-size: 14px; color: var(--text); }
.planner-proposal-list li { margin-bottom: 6px; }
.planner-proposal-brief { font-size: 12.5px; color: var(--text2); margin-top: 3px; white-space: pre-wrap; max-height: 9em; overflow-y: auto; }
.planner-proposal-milestone { font-size: 12px; color: var(--text2); margin-top: 2px; }
.planner-proposal-kind-missing { font-size: 12px; color: var(--warn); margin-top: 2px; }
.planner-created { border: 1px solid var(--border); border-left: 3px solid var(--done); border-radius: 6px; padding: 8px 10px; background: var(--bg3); }
.planner-created-undone { opacity: .6; border-left-color: var(--text3); }
/* Move 820. The line that confirms a write to the queue, on all three cards that
   make one (writeConfirmationEl in app.js). It used to be 12px --done green, on
   a <button> painting the browser's own white; lyra-light did not redefine --done
   then either, so there it was the dark theme's bright green on a pale ground
   (it does now, see the lyra-light block and test/done-contrast-browser.test.js). Now it
   is the chat body size (.chat-msg is 15px) in --reply-text, the same color as
   the reply it follows, on the card's --bg3. The green moved to the left border,
   which signals the write without having to be read.
   Measured 2026-09-26 against the card as seen: dark 14.92:1, lyra 14.27:1,
   light 10.62:1, lyra-light 12.71:1 (test/write-confirmation-browser.test.js
   re-measures on every run). */
.planner-confirmed { border-left: 3px solid var(--done); }
.planner-confirm { font-size: 15px; line-height: 1.5; color: var(--reply-text, var(--text)); margin-bottom: 6px; }
.planner-proposal-actions > .planner-confirm { margin-bottom: 0; }
.planner-confirm-move { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.planner-confirm-move:hover { text-decoration-thickness: 2px; }
.planner-started { border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 6px; padding: 8px 10px; background: var(--bg3); }
.planner-started-text { font-size: 14px; color: var(--text); margin-bottom: 6px; font-weight: 600; }
.planner-guide-q { font-weight: 600; }
/* Move 620. The handle the summoned sheet leaves behind, so a conversation
   scrolled back through can reopen what it showed. Text, not a card: it is a
   way back to a surface, not a second account of the turn. */
.planner-sheet-reopen { background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px; color: var(--accent); cursor: pointer; text-align: left; }
.planner-sheet-reopen:hover { text-decoration: underline; }

/* Queue Audit (Move 273) -- the shared queue-change card Move 370's discussion
   proposal will reuse. Kind-grouped findings, each collapsed to one summary
   row by default (Move 432), expanding to an Apply/Dismiss card with a
   before/after diff where the finding has one (enrich). */
.wn-audit-panel { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; background: var(--bg3); }
.wn-audit-header { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.wn-audit-notice { flex: 1; font-size: 13px; color: var(--text2); margin: 0; }
.wn-audit-model { flex-basis: 100%; font-size: 12px; color: var(--text3); margin: 0; }
/* Move 432: the single proposed queue order and grouping, with its
   plain-language achieves paragraph. Sits above the collapsed findings. */
.wn-audit-proposal { border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; margin-bottom: 12px; background: var(--bg2, var(--bg3)); }
.wn-audit-proposal-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text3); margin: 0 0 8px; }
.wn-audit-proposal-subhead { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--text3); margin: 8px 0 4px; }
.wn-audit-proposal-achieves { font-size: 13.5px; color: var(--text); margin: 0; white-space: pre-wrap; }
.wn-audit-proposal-order { font-size: 13.5px; color: var(--text); }
.wn-audit-proposal-group-label { font-size: 12px; font-weight: 600; color: var(--text2); margin: 10px 0 4px; }
.wn-audit-proposal-group-label:first-child { margin-top: 0; }
/* Move 337: milestone headings over a sectioned proposal, and reassignments. */
.wn-audit-proposal-milestone { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text2); margin: 12px 0 4px; }
.wn-audit-proposal-milestone:first-child { margin-top: 0; }
.wn-audit-proposal-note { font-size: 12px; color: var(--text2); margin: 0 0 8px; }
.wn-audit-reassignments { margin: 8px 0; }
.wn-audit-reassignment { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 4px 0; }
.wn-audit-reassignment-reason { font-size: 12px; color: var(--text2); flex: 1 1 100%; }
.wn-audit-proposal-row { display: flex; gap: 6px; padding: 2px 0; }
.wn-audit-proposal-num { color: var(--text3); min-width: 1.6em; text-align: right; }
.wn-audit-proposal-actions { display: flex; gap: 8px; margin-top: 10px; }
.wn-audit-group { margin-bottom: 8px; }
.wn-audit-group:last-child { margin-bottom: 0; }
/* Move 432: collapsed by default. A destructive finding (obsolete,
   duplicate) must not borrow credibility from the proposal above it, and its
   Apply button must not be reachable without a deliberate expand click. */
.wn-audit-group-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 8px; background: none; border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.wn-audit-group-summary { font-size: 13px; }
.wn-audit-group-toggle-label { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: .03em; }
.wn-audit-group-body { padding-top: 8px; }
.wn-audit-group-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--text3); margin: 0 0 6px; }
.wn-audit-card { border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 6px; padding: 8px 10px; background: var(--bg2, var(--bg3)); margin-bottom: 8px; }
.wn-audit-card:last-child { margin-bottom: 0; }
.wn-audit-card--applied { opacity: .6; border-left-color: var(--done); }
.wn-audit-card--dismissed { display: none; }
.wn-audit-moves { font-size: 13.5px; color: var(--text); margin-bottom: 4px; }
.wn-audit-move-num { color: var(--text3); font-weight: 600; margin-right: 4px; }
.wn-audit-rationale { font-size: 12.5px; color: var(--text2); margin-bottom: 6px; }
.wn-audit-diff { font-size: 12.5px; margin-bottom: 6px; border-radius: 4px; overflow: hidden; }
.wn-audit-diff-before, .wn-audit-diff-after { padding: 4px 8px; white-space: pre-wrap; word-break: break-word; }
.wn-audit-diff-before { background: rgba(224,96,126,.08); color: var(--text2); text-decoration: line-through; text-decoration-color: var(--danger); }
.wn-audit-diff-after { background: var(--accent-dim); color: var(--text); }
/* Move 423 fix 1(b): the Work Log quote an obsolete finding rests on, shown
   next to the rationale so a wrong claim is visible before the click. */
.wn-audit-evidence { font-size: 12.5px; color: var(--text2); margin-bottom: 6px; padding: 4px 8px; border-left: 2px solid var(--border); }
.wn-audit-card-actions { display: flex; gap: 8px; align-items: center; }
.wn-audit-applied-tag { font-size: 12px; color: var(--done); font-weight: 600; }
.wn-audit-error { font-size: 12px; color: var(--danger); }

/* Move 643: queue audit in-progress state indicator. Orange conveys that the
   audit is actively running and the user should wait. Reuses the same
   --waiting color token as other in-progress states. */
/* Move 644: J.J. asked for brighter and bold. --warn rather than --waiting,
   so it shares one token with the banner (Move 654). */
#btn-wn-audit.wn-audit-auditing { color: var(--acting); font-weight: 700; }

/* MOVE 752. EVERY LABEL THAT SAYS FORGE IS WORKING, IN ONE COLOR.
   J.J., 2026-09-17: "that label, and all 'system is thinking or acting labels'
   should be orange so that they stand out to the user". The audit button above
   is the precedent he set on one control; this is the same token and weight,
   generalized. Applied by public/acting.js to a CHILD span, so the color dies
   with the text when a result is written over it. */
/* 2026-09-25, J.J.: the TEXT should be a brighter orange than --warn. Its own
   token, --acting, so the banner and other --warn uses keep their color. */
.is-working { color: var(--acting); font-weight: 700; }

/* A FILLED BUTTON LOSES ITS FILL WHILE IT ACTS, rather than wearing orange text
   on an accent ground at 50% opacity, which is less legible than what it
   replaced and so fails the one thing it was asked to do. The ring is inset so
   nothing reflows when it appears. :has() keeps the state on the child span,
   which is what makes a stale orange impossible. */
/* A FILLED BUTTON LOSES ITS FILL WHILE IT ACTS (Move 752): orange text on the
   accent ground is less legible than what it replaced. */
.primary-btn:has(.is-working) { background: transparent; box-shadow: inset 0 0 0 1px var(--acting); }

/* 2026-09-25, J.J.: "'Auditing...' should be bright orange." It was orange, at
   35% opacity: an acting button is also DISABLED (so it cannot be pressed twice),
   and the queue header dims a disabled button to .35 (.wn-section-actions
   .icon-btn:disabled above), which turned --warn into a dull brown. A button
   showing a working label is busy, not unavailable, so it stays at full
   strength. Keyed on the child span, so it ends with the label like the color
   does. Specific enough to beat every disabled-dimming rule in this file. */
.wn-section-actions .icon-btn:disabled:has(.is-working),
.icon-btn:disabled:has(.is-working),
.primary-btn:disabled:has(.is-working),
.danger-btn:disabled:has(.is-working),
button:disabled:has(.is-working) { opacity: 1; cursor: progress; }

/* MOVE 752. THE TWO REFERENCE ROWS THAT CANNOT BE LINKS.
   A clone URL is pasted into a terminal, and a local path cannot be a link at
   all: Chrome refuses to navigate an https page to file://, silently, so a
   hyperlink there would look like an offer and do nothing. Both copy instead. */
.ref-copy { background: none; border: none; padding: 0; margin: 0; font: inherit; color: inherit;
  text-align: left; cursor: pointer; }
.ref-copy:hover { color: var(--text2); text-decoration: underline; text-decoration-style: dotted; }
.ref-copied { color: var(--done); font-size: 12px; }

/* Move 370: the proposed-move-edit card in a Strategist discussion. A real
   line diff rather than two full copies of a briefing that can run to
   thousands of characters, which is the lesson Move 273's first live run
   left behind. */
.move-edit-proposal { display: block; }
.move-edit-intro { font-size: 12.5px; color: var(--text2); margin: 0 0 6px; }
.move-edit-diff-section { margin-bottom: 8px; }
.move-edit-diff-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--text3); margin: 0 0 4px; }
.move-edit-diff { list-style: none; margin: 0; padding: 0; font-family: var(--mono, ui-monospace, monospace); font-size: 12px; line-height: 1.5; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.move-edit-diff li { padding: 1px 8px; white-space: pre-wrap; word-break: break-word; }
.move-edit-diff-mark { display: inline-block; width: 1em; color: var(--text3); user-select: none; }
.move-edit-diff-del { background: rgba(224,96,126,.10); color: var(--text2); }
.move-edit-diff-add { background: var(--accent-dim); color: var(--text); }
.move-edit-diff-same { color: var(--text3); }
.move-edit-diff-skip { background: var(--bg3); color: var(--text3); font-size: 11px; font-style: italic; text-align: center; }

.planner-rigor { padding: 8px 12px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.planner-rigor-seg { display: flex; gap: 6px; }
.planner-rigor-btn { flex: 1; background: none; border: 1px solid var(--border); border-radius: 7px; padding: 5px 8px; cursor: pointer; color: var(--text2); font-family: var(--font); font-size: 13px; }
.planner-rigor-btn:hover { color: var(--text); background: var(--bg3); }
.planner-rigor-btn.active { border-color: var(--accent); color: var(--text); }
.planner-rigor-btn.active[data-rigor="governed"] { border-color: var(--done); }
.planner-rigor-btn.active[data-rigor="balanced"] { border-color: var(--waiting); }
.planner-rigor-btn.active[data-rigor="creative"] { border-color: var(--danger); }
.planner-rigor-copy { margin-top: 8px; font-size: 12.5px; color: var(--text2); line-height: 1.45; border-left: 3px solid var(--waiting); padding-left: 8px; }
.planner-rigor-copy[data-rigor="governed"] { border-left-color: var(--done); }
.planner-rigor-copy[data-rigor="balanced"] { border-left-color: var(--waiting); }
.planner-rigor-copy[data-rigor="creative"] { border-left-color: var(--danger); }
.planner-heldback { margin-top: 8px; font-size: 12.5px; color: var(--text2); border-left: 3px solid var(--danger); padding: 6px 10px; background: var(--bg3); border-radius: 4px; }
.planner-grounded { margin-top: 6px; font-size: 11.5px; color: var(--done); opacity: .85; }
/* Move 430. Attribution, quieter than the grounding badge on purpose: it is a
   fact you can check rather than a claim about the answer's quality, and it
   uses the muted text color instead of --done so it never reads as approval. */
.planner-model { margin-top: 4px; font-size: 11.5px; color: var(--text2); opacity: .75; }
.planner-nongov { font-size: 12px; color: var(--text3); font-style: italic; margin-top: 6px; }

/* Pipeline view — controller session task rows */
.pipeline { padding: 12px; border-top: 1px solid var(--border); }
.pipeline-task { display: flex; gap: .5rem; align-items: center; padding: .25rem 0; flex-wrap: wrap; }
.task-title { font-size: 11px; color: var(--text2); flex: 1 1 auto; }
.pipeline-task .child { font-size: .8rem; padding: 0 .4rem; border-radius: .4rem; text-decoration: none; cursor: pointer; }
.pipeline-task .child.ok   { background: #14532d; color: #d1fae5; }
.pipeline-task .child.bad  { background: #7f1d1d; color: #fee2e2; }
.pipeline-task .child.run  { background: #1e3a8a; color: #dbeafe; }
.pipeline-task .child.idle { background: #374151; color: #e5e7eb; }

/* Session results page (Move 286 slice 1) — same dark-panel look as
   .agent-console, stretched to page width and living in normal #main flow
   instead of fixed/floating. Extends .agent-console (applied alongside it on
   the same element) rather than duplicating its rules. */
.session-page {
  position: static; width: 100%; max-width: 900px; max-height: none;
  margin: 0 auto; box-shadow: none;
}
.session-page__bar { flex-shrink: 0; }
.session-page__log-details { border-top: 1px solid #2a2f3a; }
.session-page__log-details summary {
  padding: 10px 12px; cursor: pointer; font-size: 11px; font-weight: 600;
  color: #9aa3b4; text-transform: uppercase; letter-spacing: .06em;
}
.session-page__log { max-height: 50vh; }
/* Move 941: the verifier's last output on a blocked queue run. */
.verifier-output { margin: 12px 0; }
.verifier-output__text { background: var(--bg3); border: 1px solid var(--border); border-radius: 4px; padding: 8px; font-size: 11px; color: var(--text2); white-space: pre-wrap; word-break: break-word; max-height: 50vh; overflow-y: auto; }

@media (max-width: 760px) {
  .session-page { max-width: 100%; }
}

/* Test Plan Runner */
#test-runner-view { max-width: 860px; }
.tr-header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tr-title { font-size: 24px; font-weight: 700; flex: 1; }
.tr-export-btn { margin-left: auto; }
.tr-summary { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 16px; font-size: 14.4px; color: var(--text2); margin-bottom: 24px; }
.tr-phase { margin-bottom: 32px; }
.tr-phase > h3 { font-size: 17px; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.tr-section { margin-bottom: 22px; }
.tr-section > h4 { font-size: 13.2px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--text2); margin-bottom: 10px; }
.tr-step { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px; }
.tr-action { font-size: 15.6px; color: var(--text); line-height: 1.5; }
.tr-expected { font-size: 13.2px; color: var(--text2); line-height: 1.5; }
.tr-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.tr-btn { border-radius: 5px; padding: 5px 14px; font-size: 13.2px; font-weight: 600; text-transform: capitalize; cursor: pointer; border: 1px solid var(--border); background: var(--bg3); color: var(--text2); transition: border-color .1s, color .1s; }
.tr-btn:hover { color: var(--text); border-color: var(--bd2); }
.tr-btn-pass.tr-active  { background: rgba(70,201,138,.15); border-color: var(--done);    color: var(--done); }
.tr-btn-fail.tr-active  { background: rgba(224,96,126,.15); border-color: var(--danger);  color: var(--danger); }
.tr-btn-blocked.tr-active { background: rgba(240,179,74,.15); border-color: var(--waiting); color: var(--waiting); }
.tr-btn-skip.tr-active  { background: rgba(95,104,120,.18); border-color: var(--archived); color: var(--archived); }
.tr-feedback { background: var(--bg3); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-family: var(--font); font-size: 14.4px; padding: 7px 10px; resize: vertical; min-height: 34px; width: 100%; }
.tr-feedback:focus { outline: none; border-color: var(--accent); }
.tr-feedback::placeholder { color: var(--text3); opacity: .7; }

/* ── Canon panel ── */
.canon-panel { display: flex; flex-direction: column; gap: 18px; }
.canon-error { font-size: 13.2px; color: var(--danger); }
.canon-ingest { display: flex; flex-direction: column; gap: 8px; }
/* Move 581. The drop zone. Dashed rather than solid so it reads as a target
   rather than as a filled control, which is the convention users already know. */
.canon-drop { border: 2px dashed var(--border); border-radius: 8px; padding: 18px 14px; text-align: center; cursor: pointer; background: var(--bg3); transition: border-color .12s, background .12s; }
.canon-drop:hover, .canon-drop:focus-visible { border-color: var(--accent); outline: none; }
.canon-drop.over { border-color: var(--accent); background: var(--accent-dim); }
.canon-drop.busy { cursor: progress; border-style: solid; }
.canon-drop-main { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--text2); }
.canon-drop-hint { margin: 4px 0 0; font-size: 12px; color: var(--text3); }
.canon-paste-hint { margin: 2px 0 0; font-size: 12px; color: var(--text3); }
.canon-upload-summary { white-space: pre-wrap; }
.canon-ingest textarea { min-height: 110px; resize: vertical; }
.canon-ingest .primary-btn { align-self: flex-start; }
/* Move 766. The charter editor: four titled boxes, a date, one save. */
.canon-charter { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg3); }
.canon-charter-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.canon-charter-heading { margin: 0; font-size: 14px; }
.canon-charter-status { font-size: 12.5px; color: var(--text3); }
.canon-charter-section { display: flex; flex-direction: column; gap: 4px; }
.canon-charter-title { font-size: 12.5px; font-weight: 600; color: var(--text2); }
.canon-charter-text { min-height: 64px; resize: vertical; }
/* Move 774. Planner's draft charter card in Dispatch: the editor's own section
   shape, so the boxes the owner edits look like the ones they will save from. */
.planner-charter-proposal-head { margin: 0 0 8px; color: var(--text2); font-size: 13px; }
.planner-charter-proposal-section { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.planner-charter-proposal-text { width: 100%; min-height: 64px; resize: none; }
.planner-charter-proposal-withheld { margin: 0 0 8px; font-size: 12.5px; color: var(--text3); }
/* Move 1090 option A (M4): Planner's proposed milestones. */
.planner-milestone-proposal-head { margin: 0 0 8px; color: var(--text2); font-size: 13px; }
.planner-milestone-proposal-rationale { margin: 0 0 8px; font-size: 12.5px; color: var(--text3); }
.planner-milestone-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; margin-bottom: 10px; }
.planner-milestone-row .planner-milestone-done { grid-column: 1; width: 100%; resize: none; }
.planner-milestone-row .planner-milestone-remove { grid-column: 2; grid-row: 1; }
/* Move 1090 option A: Planner's proposed project description. */
.planner-description-label { font-size: 12px; color: var(--text3); margin-bottom: 2px; }
.planner-description-before { margin: 0 0 10px; font-size: 13px; color: var(--text2); white-space: pre-wrap; }
.planner-description-after { width: 100%; resize: none; margin-bottom: 10px; }
.canon-charter-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.canon-charter-date { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text2); }
.canon-charter-date .field-input { width: auto; }
.canon-charter-msg { font-size: 12.5px; color: var(--danger); }
/* Move 770. The inherited immutables: a locked block, not a field. */
.canon-charter-inherited { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--bg2); border-radius: 6px; }
.canon-charter-inherited-text { margin: 0; font-size: 13.2px; color: var(--text); white-space: pre-wrap; }
.canon-charter-inherited-note { margin: 0; font-size: 12px; color: var(--text3); font-style: italic; }
.canon-charter-is-root .canon-charter-section:first-of-type .canon-charter-title { color: var(--accent); }
.canon-charter-root-control { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text3); border-top: 1px solid var(--border); padding-top: 10px; }
.canon-summary { font-size: 13.2px; color: var(--text2); background: var(--bg3); border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; }
.canon-empty-hint { font-size: 13.2px; color: var(--text3); font-style: italic; }
.canon-fetch-error { display: flex; align-items: center; gap: 10px; }
.canon-fetch-error .canon-error { margin: 0; }
.canon-retry-btn { flex-shrink: 0; }
.canon-claims-section { display: flex; flex-direction: column; gap: 14px; }
.canon-claims-header { display: flex; justify-content: flex-end; }
.canon-source-group { display: flex; flex-direction: column; gap: 8px; }
.canon-source-group-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.canon-reject-all-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; }
.canon-reject-all-question { margin: 0; flex-basis: 100%; }
.canon-reject-all-archive { flex-basis: 100%; font-size: 13px; }
.canon-reject-all-status { color: var(--danger, #c0392b); font-size: 12px; }
.canon-source-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text3); }
.canon-claim { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; background: var(--bg3); display: flex; flex-direction: column; gap: 8px; }
.canon-claim-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--text3); text-transform: uppercase; letter-spacing: .04em; }
.canon-claim-excerpt { font-size: 12.5px; color: var(--text2); font-style: italic; border-left: 2px solid var(--border); padding-left: 8px; }
.canon-claim-statement { width: 100%; box-sizing: border-box; min-height: 54px; resize: vertical; }
.canon-claim-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.canon-claim-controls select { background: var(--bg2); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-family: var(--font); font-size: 13.2px; padding: 5px 8px; cursor: pointer; }
.canon-claim-status { font-size: 12px; color: var(--danger); }
.canon-items-section { display: flex; flex-direction: column; gap: 8px; }
.canon-items-list { display: flex; flex-direction: column; gap: 8px; }
.canon-item { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; background: var(--bg2); }
.canon-item-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.canon-item-category { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text3); }
.canon-item-rigor { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 1px 7px; border-radius: 10px; background: var(--accent-dim); color: var(--accent); }
.canon-item-rigor-governed { color: var(--done); }
.canon-item-rigor-balanced { color: var(--waiting); }
.canon-item-rigor-creative { color: var(--danger); }
.canon-item-content { font-size: 14px; color: var(--text); line-height: 1.5; }
.canon-item-source { font-size: 12px; color: var(--text3); margin-top: 4px; }
/* Who added a source with no link to its original (J.J. 2026-10-13, option B).
   Plain muted text, never styled as a link: it has nowhere to go. */
.canon-source-attribution { font-size: 12px; color: var(--text3); font-weight: normal; }
.canon-source-heading { min-width: 0; }
.canon-retire-btn { margin-left: auto; font-size: 12px; }

/* Move 611. The project's documents, archived ones included on request. */
.canon-docs-section { display: flex; flex-direction: column; gap: 8px; }
.canon-docs-heading { display: flex; align-items: center; gap: 10px; }
.canon-docs-toggle { margin-left: auto; font-size: 12px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text2); cursor: pointer; }
.canon-docs-list { display: flex; flex-direction: column; gap: 6px; }
.canon-doc { border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; background: var(--bg2); display: flex; flex-direction: column; gap: 3px; }
.canon-doc.archived { background: var(--bg3); border-style: dashed; }
.canon-doc-top { display: flex; align-items: center; gap: 8px; }
.canon-doc-label { font-size: 14px; color: var(--text); }
.canon-doc.archived .canon-doc-label { color: var(--text2); }
.canon-doc-badge { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 1px 7px; border-radius: 10px; background: var(--bg2); color: var(--text3); border: 1px solid var(--border); }
.canon-doc-meta { font-size: 12px; color: var(--text3); }
.canon-doc-archived { font-size: 12.5px; color: var(--text2); }
.canon-doc-unarchive { align-self: flex-start; font-size: 12px; margin-top: 4px; }
.canon-doc-id { font-size: 12px; color: var(--text3); font-variant-numeric: tabular-nums; }
.canon-doc-excerpt { font-size: 12.5px; color: var(--text2); overflow-wrap: anywhere; }
.canon-doc-archive { align-self: flex-start; font-size: 12px; margin-top: 4px; }
.canon-doc .canon-archive-offer { margin-top: 4px; }
/* 2026-10-13. Stored, but its claims were not extracted. */
.canon-doc-not-extracted { font-size: 12.5px; color: var(--warn); overflow-wrap: anywhere; }
.canon-doc-retry { align-self: flex-start; font-size: 12px; margin-top: 4px; }

/* Move 321. Reconciliation: the Reconcile button, the finding banner that
   rides on a claim row, and the source-level archive offer. */
.canon-reconcile-bar { display: flex; justify-content: flex-end; }
.canon-finding-banner {
  border: 1px solid var(--accent-dim); border-radius: 6px; padding: 8px 10px;
  background: var(--bg2); display: flex; flex-direction: column; gap: 6px; margin-top: 4px;
}
.canon-finding-quote { margin: 0; font-size: 13px; color: var(--text); font-style: italic; }
.canon-finding-relation { margin: 0; font-size: 12px; color: var(--text3); text-transform: uppercase; letter-spacing: .04em; }
.canon-finding-advice { margin: 0; font-size: 12px; color: var(--text3); }
.canon-finding-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.canon-finding-status { font-size: 12px; color: var(--danger); }
.canon-archive-offer {
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px;
  background: var(--bg3); display: flex; flex-direction: column; gap: 8px; margin-top: 8px;
}
.canon-archive-counts { margin: 0; font-size: 13px; color: var(--text2); }
.canon-archive-status { font-size: 12px; color: var(--danger); }

/* Move 421. Top of the window, not the toast corner, and it does not disappear.
   A toast is for something already done; this is an unfinished action the user
   has to choose the moment for, and one that stays true until they act on it.
   z-index sits above #toast-container so a toast cannot obscure the one control
   that fixes a tab running code from several commits back. */
.build-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,.18);
  font-size: 13px;
  /* Move 654. It inherited var(--text), so a tab running code from five
     deploys ago announced itself in exactly the color of everything else
     and went unread -- which is how J.J. missed it on 2026-09-09 while
     wondering why a shipped feature was absent. The buttons below set their
     own colors, so only the message takes this. */
  color: var(--warn);
  font-weight: 600;
}
.build-banner__btn { background: var(--accent); border: 1px solid var(--accent); border-radius: 4px; color: #fff; cursor: pointer; font-size: 12.5px; padding: 3px 12px; }
.build-banner__btn--quiet { background: transparent; border-color: var(--border); color: var(--text2); }
.build-banner__btn--quiet:hover { background: var(--bg3); color: var(--text); }

/* --cmp-bottom is the soundtrack bar's height while the player is in its bar
   layout (src/console/music/player.js), so everything fixed to the bottom of the
   page rides above the bar rather than under it. Unset, it is 0. */
#toast-container {
  position: fixed;
  bottom: calc(20px + var(--cmp-bottom, 0px));
  right: 20px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 13px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  border-left: 3px solid var(--accent);
  opacity: 1;
  transition: opacity 0.2s ease;
}
.toast--out { opacity: 0; }

/* #351: floating back-to-top control. Fixed to the viewport (not #main)
   since no ancestor establishes a transform containing block — see the HTML
   comment where the button is declared. Sits above #toast-container's
   bottom:20/right:20 footprint so a toast never covers it, and below the
   drawer backdrop / modal overlays (z-index 39–300) so those still win when
   open. It can end up hidden under the agent console (bottom:16/right:16,
   z-index 1000) while an agent is running — acceptable, since that panel is
   the more important surface in that moment. */
.scroll-top-btn {
  position: fixed;
  right: 20px;
  bottom: calc(84px + var(--cmp-bottom, 0px));
  z-index: 60;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text2);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.scroll-top-btn:hover { background: var(--bg3); border-color: var(--accent); color: var(--accent); }
.scroll-top-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Move 466: proposed sequencing inside the Queue Audit card. Sits below the
   proposed order because it is a smaller, separate decision: the order is one
   accept-or-not, these are one each. */
.wn-audit-dependencies { margin-top: 12px; border-top: 1px solid var(--border, #2a2a3a); padding-top: 10px; }
.wn-audit-deps-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.7; margin-bottom: 8px; }
.wn-audit-dep { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border-subtle, #22222e); }
.wn-audit-dep:last-child { border-bottom: none; }
.wn-audit-dep-pair { font-size: 13px; }
.wn-audit-dep-reason { flex: 1 1 100%; font-size: 13px; opacity: 0.85; }
.wn-audit-dep-actions { display: flex; gap: 6px; font-size: 12px; opacity: 0.85; }
.wn-audit-dep--done { opacity: 0.55; }
/* Move 749: the bulk button beside the label, the batch summary under it, and a
   failed row's own sentence from the server. */
.wn-audit-deps-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.wn-audit-deps-header .wn-audit-deps-label { margin-bottom: 0; }
.wn-audit-record-all { background: none; border: 1px solid var(--border, #2a2a3a); color: var(--text2); cursor: pointer; padding: 3px 10px; border-radius: 4px; font-size: 12px; }
.wn-audit-record-all:hover:not(:disabled) { color: var(--text); border-color: var(--accent); }
.wn-audit-record-all:disabled { opacity: 0.6; cursor: default; }
.wn-audit-deps-summary { font-size: 12.5px; opacity: 0.85; margin-bottom: 6px; }
/* The one-line account of what Record this and Apply this order each do, and
   that an unrecorded pair does not survive the panel (measured 2026-09-16). */
.wn-audit-deps-note { font-size: 12.5px; opacity: 0.75; margin: 0 0 8px; }
.wn-audit-dep-state { opacity: 0.85; }
.wn-audit-dep-error { flex: 1 1 100%; font-size: 12.5px; color: var(--danger, #e5484d); }

/* Move 518: the deploy-control panel, opened from a deployment row. Sits inside
   the same list, so it indents under the row it belongs to rather than floating
   free of it. Colors match the merge card deliberately: these are the two
   places Forge acts on something outside itself. */
.deploy-control { border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 6px; padding: 8px 10px; margin: 4px 0 8px 0; background: var(--bg2); font-size: 13px; }
.deploy-control .dc-list { list-style: none; margin: 0 0 8px 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.deploy-control .dc-note { color: var(--text3); margin: 4px 0 0; font-size: 12.5px; }
.deploy-control .dc-ready { color: var(--text); font-weight: 600; margin: 4px 0 0; }
.deploy-control .dc-blocked { color: var(--waiting); }
.deploy-control .dc-outcome { margin-top: 6px; }
/* Move 524: the host credential form, inside the deploy-control panel. Stacked
   labels because the fields are host-defined and there may be any number. */
.deploy-control .dc-form { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.deploy-control .dc-form label { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--text2); }
.deploy-control .dc-form input, .deploy-control .dc-form select { background: var(--bg3); border: 1px solid var(--border); border-radius: 4px; color: var(--text); font-size: 13px; padding: 4px 7px; }
.deploy-control .dc-form button { align-self: flex-start; }

/* Move 394: a move's kind, and whether it may run unattended. Deliberately the
   quietest thing on a row that already carries a number, an ordinal, a star, a
   source badge and five buttons: the tag exists to be findable when scanning
   for it, not to compete with the move's text. Borrowed shape from
   .wn-hit-prompt above rather than inventing a third badge idiom. */
.wn-kind { flex-shrink: 0; align-self: flex-start; margin-top: 3px; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text3); border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; white-space: nowrap; cursor: help; }
/* The one tag that is allowed to be louder, because it is the one that says a
   click will spend a model call and a session run for nothing. Color is the
   only difference; no fill, so it does not read as a button. */
.wn-kind--blocked { color: #d98b6a; border-color: #d98b6a; }
.wn-unattended { flex-shrink: 0; align-self: flex-start; margin-top: 3px; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); border-radius: 4px; padding: 0 5px; white-space: nowrap; cursor: help; }
/* Matches .wn-assign exactly: same job (a small select in the actions row), so
   the same control, per the note on that rule.
   MOVE 584: dropped from 140 to 110. Chrome sizes a closed <select> by its
   WIDEST option regardless of which one is selected, and wn-kind.js's options
   now carry a full definition (e.g. "Data: change stored state..."), so the
   old 140px was no longer a slack cap -- it was a floor every row hit. That
   pushed the Next Move row's action cluster 5px over its own box
   (test/wn-row-width-browser.test.js). The dropdown POPUP still shows the
   full option text at its own width when opened; only the CLOSED box is
   capped here, and it is fine for that to clip to the leading kind word. */
.wn-kind-select { background: var(--bg3); border: 1px solid var(--border); color: var(--text2); border-radius: 6px; font-size: 13px; padding: 4px 6px; cursor: pointer; max-width: 110px; }
.wn-kind-select:hover { color: var(--text); border-color: var(--text2); }
.wn-kind-select:focus { outline: none; border-color: var(--accent); }
.wn-unattended-btn { font-size: 11.5px; letter-spacing: .02em; border: 1px solid var(--border); border-radius: 6px; padding: 3px 7px; color: var(--text3); white-space: nowrap; }
.wn-unattended-btn:hover { color: var(--text); border-color: var(--text2); }
.wn-unattended-btn--on { color: var(--accent); border-color: var(--accent); }
.wn-arm-advisory { align-self: center; color: var(--waiting); font-size: 12px; cursor: help; }
.wn-arm-advisory-text { display: none; }
@media (max-width: 760px) {
  .wn-arm-advisory-text { display: block; margin-top: 2px; font-size: 11.5px; white-space: normal; }
}

/* Move 272: the queue-run report, directly under the What's Next header. Quiet
   but not hidden: it is the answer to a press that may have started nothing,
   and a press that appears to do nothing reads as a broken button. */
.wn-queue-run-report { margin: 0 0 10px; padding: 8px 10px; border: 1px solid var(--border); border-left: 2px solid var(--accent); border-radius: 6px; background: var(--bg3); }
.wn-queue-run-summary { margin: 0; font-size: 13.2px; color: var(--text2); }
/* Move 417. The proposal leads the preview, so it reads a step stronger than
   the sentence under it: this is what Forge would do, that is what the user's
   own N would do. Same size, full text color, nothing else added. */
.wn-queue-run-tranche { margin: 0 0 6px; font-size: 13.2px; color: var(--text); }
.wn-queue-run-refusals { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.wn-queue-run-refusals li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 12.6px; }
.wn-queue-run-move { font-weight: 700; color: var(--text3); flex-shrink: 0; }
.wn-queue-run-text { color: var(--text2); }
/* The reason is the part that makes the refusal actionable, so it wraps rather
   than truncating, the same call .wn-suggest-why makes. */
.wn-queue-run-reason { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; color: var(--text3); font-style: italic; }
/* Measured 2026-10-07: each admitted and refused row opens to the move's full
   text, read before authorizing billed work. The summary keeps the row's old
   one-line layout; the caret is the only sign it opens, so it stays. */
.wn-queue-run-item { flex: 1 1 100%; min-width: 0; }
.wn-queue-run-item > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; cursor: pointer; list-style: none; min-width: 0; }
.wn-queue-run-item > summary::-webkit-details-marker { display: none; }
.wn-queue-run-item > summary::before { content: '\25B8'; color: var(--text3); flex-shrink: 0; }
.wn-queue-run-item[open] > summary::before { content: '\25BE'; }
.wn-queue-run-text { min-width: 0; overflow-wrap: anywhere; }
a.wn-queue-run-move { color: var(--accent); text-decoration: none; }
a.wn-queue-run-move:hover, a.wn-queue-run-move:focus-visible { text-decoration: underline; }
.wn-queue-run-full { margin: 6px 0 2px 18px; font-size: 15.6px; line-height: 1.5; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; }

/* Move 539: the preview. Same card as the report it previews, on purpose, since
   it is the same sentences one press earlier. The left border is the one
   difference: dimmed, because nothing has happened yet, and a preview that
   looked identical to an outcome would be read as one. */
.wn-queue-run-preview { border-left-color: var(--border); }
/* The row's own line. Full width inside the row's flex, like .wn-suggest, so a
   sentence never squeezes itself into the gap beside the buttons. Text and not
   a title attribute: the whole point of this move is that a tooltip does not
   exist on a phone. */
.wn-run-notice { flex: 1 1 100%; min-width: 0; overflow-wrap: anywhere; margin-top: 2px; font-size: 12px; color: var(--text3); }
.wn-run-notice--ok { color: var(--accent); }
/* Move 1065: the working a Claude Code session gave when it armed this move. */
.wn-armed-from { flex: 1 1 100%; min-width: 0; overflow-wrap: anywhere; margin-top: 2px; font-size: 12px; color: var(--text3); }
/* Move 1226: a move's briefing, unfolded in place under its row. Full width in
   the row's flex like .wn-armed-from; the text wraps anywhere and scrolls inside
   its own box so a long prompt never widens the row. */
.wn-briefing { flex: 1 1 100%; min-width: 0; margin-top: 4px; }
.wn-briefing-text { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 24rem; overflow-y: auto; margin: 0; padding: 8px 10px; font-size: 12px; color: var(--text2); background: var(--bg3); border: 1px solid var(--border); border-radius: 6px; }
.wn-queue-run-armed-from { flex: 1 1 100%; min-width: 0; overflow-wrap: anywhere; font-size: 12px; color: var(--text3); }
/* Where the unattended toggle would be if the move were a Code move. Quieter
   than the button it stands in for, and unmistakably not clickable: no border,
   no hover, default cursor.
   IT SHRINKS RATHER THAN WIDENING THE ROW, which is not a detail: .wn-actions
   is a nowrap flex that test/wn-row-width-browser.test.js measures against the
   row's own box, and this hint is wider than the button it replaces. Measured
   at 1px over on the first attempt, with `white-space: nowrap`, which is the
   Delete-button-cut-off defect that test was written for. */
.wn-unattended-hint { flex-shrink: 1; min-width: 0; font-size: 11.5px; letter-spacing: .02em; padding: 3px 0; color: var(--text3); opacity: .75; }

/* 2026-08-26, Move 532. AN OPEN MILESTONE HOLDING NOTHING, which is a different
   state from the finished one above and was styled identically to it until now.
   It keeps its bottom gap rather than collapsing to the 2px strip that made
   milestone 20 unfindable, and says what it is. Quiet, but present: the point is
   that it stops reading as decoration, not that it competes with work. */
.wn-section--nowork .wn-section-head { border-left: 2px solid var(--border); padding-left: 8px; }
.wn-section-nowork { flex-basis: 100%; margin-top: 4px; font-size: 12px; color: var(--text3); font-style: italic; }
/* Move 532. The proposals slot when its fetch failed. Styled as a notice rather
   than an error banner: nothing is broken for the user, they are simply being
   told that an empty space is not evidence of an empty list. */
.ms-proposal-error { margin: 0; padding: 8px 10px; border: 1px dashed var(--border); border-radius: 8px; font-size: 12px; color: var(--text3); }

/* Move 69 (b). The project logo. Sized so a wordmark and a square icon both sit
   comfortably, and object-fit: contain so neither is cropped. */
.proj-logo-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
  /* Move 846: at 4x, .proj-logo can now be wider than the row has room for
     alongside "Remove logo". Wrap rather than let flex-shrink squeeze the
     logo button (and the image inside it) narrower than its own content --
     measured doing exactly that: the image rendered wider than its own
     button. */
  flex-wrap: wrap; }
.proj-logo { display: inline-flex; align-items: center; justify-content: center;
  min-width: 56px; height: 56px; padding: 4px 10px; cursor: pointer;
  background: var(--bg3); border: 1px dashed var(--border); border-radius: 8px;
  flex-shrink: 0; /* Move 846: never shrink below the image's own set size. */ }
.proj-logo:hover { border-color: var(--accent); }
.proj-logo img { max-height: 48px; max-width: 220px; object-fit: contain; display: block; }
.proj-logo.has-image { border-style: solid; background: transparent; }
.proj-logo-empty { font-size: 12px; color: var(--text3); letter-spacing: .02em; }
.proj-logo-remove { font-size: 12px; }

/* J.J., 2026-09-27 (Planner): the logo, once set, renders at 4x its prior
   rendered size on desktop (3x on a phone, below). The actual scaling is done
   in app.js (projectLogoRenderSize / applyProjectLogoSize), which reads the
   loaded image's OWN natural size and sets an explicit inline width/height --
   a CSS max-height/max-width bump alone cannot do this, because max-* only
   ever shrinks an image bigger than the box; a logo already smaller than the
   box (most real uploads) would keep its native size under a bigger cap that
   never binds. What's here is the outer box those inline styles are meant to
   land inside, kept in exact lockstep (4x / 3x of the pre-846 48/220) as a
   safety cap: if the inline sizing script ever fails to run, an oversized
   native image is still capped rather than free to blow out the layout. */
.proj-logo.has-image { height: 200px; }
.proj-logo.has-image img { max-height: 192px; max-width: 880px; }

/* Phones: 3x rather than 4x (same J.J. request, same day). #main already
   clips horizontal overflow below 760px (see the mobile media query for
   #main), which is the backstop if an unusually wide wordmark logo's 3x box
   would otherwise be wider than the screen -- this scales the box, it does
   not additionally shrink it to guarantee a fit. */
@media (max-width: 760px) {
  .proj-logo.has-image { height: 152px; }
  .proj-logo.has-image img { max-height: 144px; max-width: 660px; }
}

/* Move 530. Flash the queue row a Dispatch confirmation just pointed at, so
   clicking "Added Move N" visibly lands somewhere rather than scrolling in
   silence. Transient by design: it is a pointer, not a selection state. */
.wn-row-revealed {
  animation: wn-reveal-flash 1.6s ease-out;
}
@keyframes wn-reveal-flash {
  0%, 40% { background: var(--accent-soft, rgba(120, 160, 255, 0.22)); }
  100% { background: transparent; }
}

/* ── Move 620: the queue sheet ─────────────────────────────────────────────
   Summoned from the Console, read-only, and built on the app's own tokens so
   it inherits every theme rather than shipping a palette of its own. Nothing
   below is a new control idiom: .qs-seg is the segmented group the rigor
   control already uses, and the rows are hairline list rows like What's Next.
   That restraint is Move 546's whole point -- a dense-row idiom that disagreed
   with the queue's existing rows would be the sprawl the catalogue exists to
   prevent. */
#queue-sheet-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; z-index: 320; }
.qs-sheet { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); width: 1080px; max-width: 96vw; margin: 4vh 0 8vh; display: flex; flex-direction: column; }
.qs-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px 12px; border-bottom: 1px solid var(--border); }
.qs-head h2 { margin: 4px 0 6px; font-size: 20px; }
.qs-head-actions { display: flex; gap: 6px; flex-shrink: 0; }
.qs-eyebrow { margin: 0; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text3); }
.qs-standfirst { margin: 0; max-width: 68ch; color: var(--text2); font-size: 13px; }

/* The arithmetic. Exactly one figure is in the accent, and it is the one the
   page exists to answer: how many moves Forge could work on its own. */
.qs-rule { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.qs-fig { flex: 1 1 120px; padding: 11px 16px; border-right: 1px solid var(--border); }
.qs-fig:last-of-type { border-right: 0; }
.qs-fig-n { display: block; font-size: 22px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.qs-fig-l { display: block; margin-top: 2px; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text2); }
.qs-fig-hot { flex: 1 1 190px; background: var(--accent-dim); }
.qs-fig-hot .qs-fig-n, .qs-fig-hot .qs-fig-l { color: var(--accent); }
.qs-gate { flex: 1 1 100%; margin: 0; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text2); }

.qs-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg2); z-index: 1; }
.qs-seg { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.qs-seg button { font: inherit; font-size: 12.5px; padding: 5px 11px; border: 0; border-right: 1px solid var(--border); background: transparent; color: var(--text2); cursor: pointer; }
.qs-seg button:last-child { border-right: 0; }
.qs-seg button[aria-pressed="true"] { background: var(--bg3); color: var(--text); }
.qs-search { font: inherit; font-size: 12.5px; padding: 5px 9px; min-width: 200px; background: transparent; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); }
.qs-toggle { font: inherit; font-size: 12.5px; padding: 5px 11px; background: transparent; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text2); cursor: pointer; }
.qs-toggle[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.qs-note { margin: 0; padding: 10px 20px 0; font-size: 12px; color: var(--text2); }

.qs-body { padding: 4px 20px 24px; }
.qs-group { margin-top: 20px; }
.qs-group-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 6px; padding-bottom: 5px; border-bottom: 2px solid var(--bd2); font-size: 13px; }
.qs-group-n { font-size: 11.5px; font-weight: 500; color: var(--text2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.qs-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-top: 0; }
.qs-row { display: grid; grid-template-columns: 54px 1fr auto 74px; gap: 12px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.qs-row:last-child { border-bottom: 0; }
/* Runnability is legible before a word is read: the ready rows carry the accent
   on their edge, and the kind chip's WEIGHT says whether a row is even a
   candidate. */
.qs-row.is-ready { box-shadow: inset 3px 0 0 var(--accent); }
.qs-no { font-size: 12.5px; font-weight: 600; color: var(--text3); font-variant-numeric: tabular-nums; }
.qs-row.is-ready .qs-no { color: var(--accent); }
.qs-text { min-width: 0; }
.qs-title { display: block; font-size: 13px; }
.qs-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.qs-tag { font-size: 9.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); border: 1px solid var(--border); border-radius: 3px; padding: 1px 5px; }

/* Code is the only kind a run can ever take on alone, so it is the only solid
   chip. Data is outlined, decision is dashed, and a move nobody has described
   is dotted. */
.qs-kind { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; border: 1px solid var(--bd2); color: var(--text2); white-space: nowrap; }
.qs-kind[data-kind="code"] { background: var(--bg3); border-color: var(--text3); color: var(--text); }
.qs-kind[data-kind="decision"] { border-style: dashed; }
.qs-kind[data-kind="none"] { border-style: dotted; color: var(--text3); }

/* The second key is deliberately NOT a peer of the kind chip: it is its own
   column, in the accent, so the asymmetry of the two-key design is visible in
   the layout rather than explained in copy. */
.qs-ready { font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text3); text-align: right; }
.qs-ready.is-on { color: var(--accent); }
.qs-empty { padding: 18px 12px; color: var(--text2); text-align: center; font-size: 13px; }

@media (max-width: 720px) {
  .qs-row { grid-template-columns: 44px 1fr; row-gap: 6px; }
  .qs-kind, .qs-ready { grid-column: 1 / -1; text-align: left; justify-self: start; }
}

/* ── Move 593: the Dispatch conversation list ──────────────────────────────
   Two groups (Pinned, then Recents), a title plus one line of the last message,
   and an absolute date per row. Built on the app's own tokens and on the
   existing .section idiom, so it inherits every theme and adds no new container
   shape. Move 546's catalogue named .qs-row canonical for dense lists, and
   these rows follow it rather than inventing a third row idiom. */
#dispatch-threads-body { padding: 4px 0 2px; }
.dt-group + .dt-group { margin-top: 14px; }
.dt-group-h { margin: 0 0 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--text3); }
.dt-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.dt-row { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--border); padding-right: 8px; }
.dt-row:last-child { border-bottom: 0; }
.dt-row:hover { background: var(--bg3); }

/* The row body is the button, so the whole row is one target rather than a
   small link inside a clickable div. The pin and rename controls sit OUTSIDE it
   for the same reason: nesting a button in a button is invalid, and stopping
   propagation on a nested click is the bug that idiom always grows. */
.dt-open { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; align-items: stretch; background: none; border: 0; padding: 9px 12px; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.dt-line1 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.dt-title { font-size: 13.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-row.is-unread .dt-title { color: var(--text); }
.dt-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.dt-badge { flex: none; font-size: 9.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); border: 1px solid var(--border); border-radius: 3px; padding: 1px 5px; }
.dt-anchor { flex: none; font-size: 11px; color: var(--text3); }
.dt-line2 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.dt-snippet { font-size: 12.5px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-when { flex: none; font-size: 11px; color: var(--text3); font-variant-numeric: tabular-nums; }
.dt-actions { flex: none; display: flex; gap: 2px; }
.dt-pin[data-pinned="true"] { color: var(--accent); }
.dt-empty { margin: 0; padding: 14px 12px; font-size: 13px; color: var(--text2); }

/* Move 823: the hosted app's deployment state and its error lines. */
.hosting-deploy { margin-top: 6px; }
.hosting-deploy-log { font-size: 12px; white-space: pre-wrap; max-height: 12em; overflow: auto; padding: 8px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg2); }
.hosting-deploy-when { color: var(--text3); font-size: 11px; }

/* Forge Move 1269: the settings a hosted platform needs, present or missing. */
.hosting-required { list-style: none; margin: 4px 0 8px; padding: 0; }
.hosting-required-item { padding: 4px 0; border-top: 1px solid var(--border); font-size: 13px; }
.hosting-required-item:first-child { border-top: none; }
.hosting-required-mark { display: inline-block; min-width: 6em; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.hosting-required-present .hosting-required-mark { color: var(--active); }
.hosting-required-missing .hosting-required-mark { color: var(--danger); }
.hosting-required-unknown .hosting-required-mark,
.hosting-required-unset .hosting-required-mark { color: var(--text3); }
.hosting-required-when { color: var(--text3); font-size: 11px; }
.hosting-required-why, .hosting-required-who { color: var(--text2); font-size: 12px; margin-left: 6em; }

/* Move 566: the onboarding answers card. */
.onboarding-answers-list { margin: 6px 0 8px; }
.onboarding-answers-list dt { font-size: 12px; font-weight: 600; color: var(--text2); margin-top: 6px; }
.onboarding-answers-list dd { margin: 2px 0 0; color: var(--text); }

/* Move 806: a Decisions check's earlier runs. */
.decisions-earlier { margin: 4px 0 8px; font-size: 12.5px; }
.decisions-earlier > summary { cursor: pointer; color: var(--text2); }
.decisions-earlier-run { margin: 4px 0 0 12px; }
.decisions-earlier-run > summary { cursor: pointer; color: var(--text); }

/* Move 816: Waiting on you, and each milestone's decision count. */
#waiting-body { padding: 4px 0 2px; }
.wait-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.wait-rows.ib-list { gap: 0; }
.wait-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--border); }
.wait-row:last-child { border-bottom: 0; }
.wait-act { flex: none; text-decoration: none; }
.wait-empty { margin: 0; padding: 14px 12px; font-size: 13px; color: var(--text2); }
.wn-decisions-waiting { font-size: 11px; font-weight: 600; color: var(--accent); background: none; border: 1px solid var(--accent); border-radius: 3px; padding: 1px 6px; cursor: pointer; }

/* Move 809: the project's recent sessions. Same row idiom as .dt-row, and the
   whole row is one link to the session's results page. */
#sessions-list-body { padding: 4px 0 2px; }
.sl-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.sl-row { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--border); }
.sl-row:last-child { border-bottom: 0; }
.sl-row:hover { background: var(--bg3); }
.sl-row--open { border-left: 3px solid var(--accent); }
.sl-link { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; color: inherit; text-decoration: none; }
.sl-line1 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.sl-title { font-size: 13.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-mark { flex: none; font-size: 10.5px; font-weight: 600; color: var(--accent); border: 1px solid var(--accent); border-radius: 3px; padding: 1px 5px; }
.sl-mark--warn { color: var(--waiting); border-color: var(--waiting); }
.sl-line2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--text2); }
.sl-where { font-size: 11.5px; color: var(--text3); }
.sl-when { margin-left: auto; font-size: 11px; color: var(--text3); font-variant-numeric: tabular-nums; }
.sl-state { font-weight: 600; }
.sl-state--running { color: var(--accent); }
.sl-state--blocked { color: var(--waiting); }
.sl-state--failed { color: var(--danger); }
.sl-detail { margin-left: -6px; color: var(--text3); }
.sl-landed { font-size: 11.5px; color: var(--text3); }
.sl-landed--yes { color: var(--text2); }
.sl-settled { font-size: 11.5px; color: var(--text3); }
.sl-cleanup-btn { padding: 3px 10px; font-size: 12.5px; background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius); cursor: pointer; }
.sl-cu { margin: 6px 0 12px; border: 1px solid var(--accent); border-radius: 8px; background: var(--bg2); }
.sl-cu-head { padding: 10px 12px 4px; }
.sl-cu-head h3 { margin: 0 0 2px; font-size: 14.5px; }
.sl-cu-head p { margin: 0; font-size: 12.5px; color: var(--text2); }
.sl-cu-group { padding: 2px 12px 6px; }
.sl-cu-group h4 { margin: 8px 0 2px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); }
.sl-cu-group--keep > summary { margin: 8px 0 2px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); cursor: pointer; }
.sl-cu-group--keep > summary + .sl-cu-item { border-top: 0; }
.sl-cu-item { display: grid; grid-template-columns: 20px 1fr auto; gap: 2px 8px; align-items: start; padding: 6px 0; border-top: 1px solid var(--border); }
.sl-cu-group h4 + .sl-cu-item { border-top: 0; }
.sl-cu-what { font-weight: 500; font-size: 13px; overflow-wrap: anywhere; }
.sl-cu-item--keep .sl-cu-what { color: var(--text2); }
.sl-cu-why { grid-column: 2 / 4; font-size: 12px; color: var(--text2); }
.sl-cu-why a { color: var(--accent); }
.sl-cu-tag { font-size: 11px; font-weight: 600; border: 1px solid var(--border); border-radius: 4px; padding: 0 6px; white-space: nowrap; color: var(--text2); }
.sl-cu-tag--delete_branch { color: var(--accent); border-color: var(--accent); }
.sl-cu-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 12px 10px; border-top: 1px solid var(--border); }
.sl-cu-fine { flex: 1 1 240px; font-size: 11.5px; color: var(--text3); }
.sl-cu-cancel, .sl-cu-apply { padding: 4px 12px; font-size: 12.5px; border-radius: var(--radius); border: 1px solid var(--border); background: none; color: var(--text); cursor: pointer; }
.sl-cu-apply { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.sl-cu-apply:disabled { opacity: .5; cursor: default; }
.sl-cu--done { padding: 8px 12px; }
.sl-cu-results { margin: 0 0 8px; padding-left: 18px; font-size: 12.5px; }
.sl-cu-refused { color: var(--text2); }
@media (max-width: 560px) { .sl-cu-item { grid-template-columns: 20px 1fr; } .sl-cu-tag { grid-column: 2; justify-self: start; } .sl-cu-why { grid-column: 2; } }
.sl-superseded { font-size: 11.5px; color: var(--text3); font-style: italic; }
.sl-more { display: block; margin: 8px auto 0; padding: 5px 14px; font-size: 12.5px; background: none; color: var(--text2); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.sl-more:hover { background: var(--bg3); }
.sl-empty { margin: 0; padding: 14px 12px; font-size: 13px; color: var(--text2); }
/* The one action a flagged row asks for, and the folds: earlier attempts under
   the newest, settled rows under a closed History. */
.sl-act-wrap { flex: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 12px 8px; max-width: 100%; }
.sl-action { font-size: 12px; font-weight: 600; color: var(--accent); background: none; border: 1px solid var(--accent); border-radius: var(--radius); padding: 3px 10px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.sl-action:hover { background: var(--bg3); }
.sl-action:disabled { opacity: 0.6; cursor: default; }
.sl-act-note { font-size: 11.5px; color: var(--danger); overflow-wrap: anywhere; }
.sl-act-note:empty { display: none; }
.sl-earlier { flex: 1 1 100%; min-width: 0; padding: 0 12px 8px 24px; }
.sl-earlier > summary, .sl-history > summary { cursor: pointer; font-size: 12px; color: var(--text3); }
.sl-rows--earlier { margin-top: 6px; }
.sl-history { margin-top: 10px; }
.sl-history > summary { padding: 4px 2px; font-weight: 600; color: var(--text2); }
.sl-history > .sl-rows { margin-top: 6px; }

/* Move 639: the conversation list inside the chat shell.
   Follows .dt-row rather than inventing a third row idiom, for the reason
   Move 546's catalogue gives -- .qs-row is canonical for dense lists and these
   are the same shape one level in. The difference from .dt- the reference
   actually has: a SECOND LINE ONLY ON THE ROWS THAT HAVE ONE, since the server
   sends no snippet for a read row.

   MOVE 711: THE LIST YIELDS, THE TRANSCRIPT DOES NOT. The list used to sit above
   the transcript with a 40vh cap while the transcript had min-height: 0, so the
   transcript was the only thing that gave way and could reach less than a line.
   Now the list shrinks first (flex-shrink 1, down to one visible row) and scrolls
   (settled by J.J. 2026-09-13: it scrolls, it does not collapse), and the
   transcript holds a floor. 30% is a starting point, not a measurement. It is a
   percentage of the shell rather than of the window, so it resolves wherever the
   shell has a definite height (the dock); in the overlay, which only has a
   max-height, it resolves to none and the flex shrink is what bounds it. */
#conversations-panel { padding: 0 12px 10px; border-bottom: 1px solid var(--border); flex: 0 1 auto; min-height: 88px; max-height: 30%; overflow-y: auto; }
/* Sticky, so New conversation stays in reach however far the list is scrolled.
   Opaque for the same reason: rows scroll underneath it. */
.conv-toolbar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; background: var(--bg2); }
.conv-toolbar-h { font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--text3); }
#btn-conv-new { padding: 4px 10px; font-size: 13.2px; }

.conv-group + .conv-group { margin-top: 14px; }
.conv-group-h { margin: 0 0 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--text3); }
.conv-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.conv-row { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--border); padding-right: 8px; }
.conv-row:last-child { border-bottom: 0; }
.conv-row:hover { background: var(--bg3); }
/* The conversation currently in the transcript below. Without this the list
   cannot say which of several conversations you are actually reading. */
.conv-row.is-active { background: var(--bg3); box-shadow: inset 2px 0 0 var(--accent); }

.conv-open { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; align-items: stretch; background: none; border: 0; padding: 9px 12px; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.conv-line1 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.conv-title { flex: 1 1 auto; font-size: 13.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.conv-anchor { flex: none; font-size: 11px; color: var(--text3); }
/* RIGHT ALIGNED, which is how the reference carries it. */
.conv-when { flex: none; margin-left: auto; font-size: 11px; color: var(--text3); font-variant-numeric: tabular-nums; }
.conv-line2 { display: block; font-size: 12.5px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-actions { flex: none; display: flex; gap: 2px; }
.conv-empty { margin: 0; padding: 12px; font-size: 13px; color: var(--text2); }

/* Move 689. The patch behind a merge decision, in both cards.
   WIDE CONTENT SCROLLS INSIDE ITS OWN BOX. A patch has long lines and the
   primary surface is a phone, so without this the page itself scrolls sideways
   and every other panel goes with it. max-height caps the card rather than the
   patch: the diff is capped server-side by line and byte count, and this stops
   even a legal one from pushing the merge button off the screen. */
.ms-diff, .agent-console__merge-diff { margin: .4rem 0; }
.md-summary { margin: .2rem 0; font-size: 13px; color: var(--text3); }
.md-rest { margin: .4rem 0 .2rem; font-size: 13px; color: var(--text3); }
.md-patch, .md-stat {
  margin: 0;
  max-height: 22rem;
  overflow: auto;
  padding: .5rem .6rem;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .78rem;
  line-height: 1.35;
  white-space: pre;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
}

/* Move 629. The commit a session started from, on the running console's strip.
   Quiet by default because it is provenance rather than an alert, and marked
   when Forge could not record it, since an unknown base is the one state a
   reader must not skim past as though it were a sha. */
.strip-base { color: var(--text3); font-size: 12px; }
.strip-base[data-state="unrecorded"] { color: var(--waiting); }

/* Move 698. A repository whose first commit never landed, in the Repository box.
   Colored rather than quiet, unlike its .ref-sub neighbors: those are
   provenance and this is a repository the user owns that holds none of their
   files, which is the one line in this box a reader must not skim past. */
.repo-half-made { color: var(--danger); }
.repo-finish-status { display: block; margin-top: 4px; color: var(--danger); }

/* Move 699. Acting on a staged handoff, and reviewing a retired one.
   The payload detail shares .staged-brief's fold: it is what promote would
   publish, and the reader opens the row to check it. The ACTIONS stay outside
   that fold, because a control that is only reachable after you have expanded
   the row is the findability failure this whole move is about. */
.staged-row .staged-details { display: none; }
.staged-row.open .staged-details { display: block; }
.staged-row .staged-section { margin: 6px 0 2px; font-size: 12px; color: var(--text2); text-transform: uppercase; letter-spacing: .04em; }
.staged-row .staged-items { margin: 0; padding-left: 16px; color: var(--text2); font-size: 12.5px; }
.staged-row .staged-items li { margin: 2px 0; }
.staged-row .staged-actions { margin-top: 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.staged-row .staged-status { font-size: 12px; color: var(--danger); }
.staged-discarded { margin-top: 2px; font-size: 12.5px; color: var(--text3); }
.staged-discarded summary { cursor: pointer; }
.staged-discarded-row { display: flex; gap: 8px; padding: 3px 0 0 14px; flex-wrap: wrap; }
.staged-discard-reason { color: var(--text2); }

/* ── Move 410: usage reporting ──────────────────────────────────────────────
   Built entirely from the theme variables, so the screen follows the three
   themes rather than carrying its own palette. Nothing here hardcodes a color. */
.usage-windows { display: flex; gap: 4px; flex-wrap: wrap; }
.usage-window-btn {
  background: var(--bg3); color: var(--text2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 5px 11px; font-size: 12.5px; cursor: pointer;
}
.usage-window-btn:hover { color: var(--text); border-color: var(--bd2); }
.usage-window-btn.active { background: var(--accent-dim); color: var(--text); border-color: var(--accent); }

.usage-window-note { margin: 10px 0 18px; display: flex; flex-direction: column; gap: 5px; }
/* The covers sentence and the caveats are the point of this block, so they are
   readable rather than fine print -- a total read as the whole bill is the
   misunderstanding this screen most invites. */
.usage-covers { font-size: 13px; color: var(--text2); max-width: 78ch; }
.usage-range { font-size: 12.5px; color: var(--text3); }
.usage-caveat {
  font-size: 12.5px; color: var(--warn); max-width: 78ch;
  border-left: 2px solid var(--warn); padding-left: 9px;
}

.usage-section-title {
  font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text3); margin: 0 0 9px;
}

.usage-stats { display: flex; gap: 9px; flex-wrap: wrap; }
.usage-stat {
  background: linear-gradient(var(--surface-a), var(--surface-b));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 9px 13px; min-width: 116px;
}
.usage-stat--total { border-color: var(--bd2); }
.usage-stat-label { font-size: 11.5px; color: var(--text3); }
.usage-stat-value { font-size: 18px; color: var(--text); font-variant-numeric: tabular-nums; margin-top: 2px; }

.usage-costs { display: flex; gap: 9px; flex-wrap: wrap; }
.usage-cost-card {
  background: linear-gradient(var(--surface-a), var(--surface-b));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 13px; min-width: 190px; max-width: 280px;
}
.usage-cost-label { font-size: 11.5px; color: var(--text3); }
.usage-cost-value { font-size: 20px; color: var(--text); font-variant-numeric: tabular-nums; margin-top: 2px; }
.usage-cost-meta { display: flex; gap: 7px; align-items: center; margin-top: 4px; font-size: 11.5px; color: var(--text3); }
.usage-src { text-transform: uppercase; letter-spacing: .04em; font-size: 10.5px; padding: 1px 5px; border-radius: 3px; }
/* 'reported' is a provider-billed figure and 'estimated' is our own arithmetic.
   Colored apart because a reader deciding whether to trust a number should not
   have to hover to find out which one they are looking at. */
.usage-src--reported { background: var(--done-dim); color: var(--done); }
.usage-src--estimated { background: var(--accent-dim); color: var(--text2); }
.usage-src--mixed { background: var(--accent-dim); color: var(--waiting); }
/* The unpriced warning is the honesty valve made visible: the figure above it
   is a floor, not a total. */
.usage-unpriced { margin-top: 6px; font-size: 11.5px; color: var(--waiting); }

/* Move 860: one bar per funding source, side by side and never stacked, since a
   stack's top edge would draw the combined cost the screen refuses to state.
   Each source takes a theme variable that differs from the others in all four
   themes (light's --done equals its --accent, so --done is not used here). */
.usage-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--text2); margin-bottom: 6px; }
.usage-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.usage-swatch { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.usage-series-chart {
  display: flex; align-items: stretch; gap: 3px;
  height: 160px; padding: 6px 0 0; overflow-x: auto;
}
.usage-bar-col {
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  height: 100%; min-width: 26px; flex: 1 1 26px; padding: 0; margin: 0;
  background: none; border: 1px solid transparent; border-radius: 3px; cursor: pointer;
  color: inherit; font: inherit;
}
.usage-bar-col:hover, .usage-bar-col:focus-visible { border-color: var(--bd2); background: var(--accent-dim); }
.usage-bar-col:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.usage-bar-group { flex: 1 1 auto; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 1px; min-height: 0; }
.usage-bar { flex: 1 1 0; max-width: 12px; min-width: 2px; border-radius: 2px 2px 0 0; min-height: 0; }
.usage-bar--ownerAmbient { background: var(--accent); }
.usage-bar--user { background: var(--waiting); }
.usage-bar--unknown { background: var(--text3); }
.usage-bar--none { background: var(--stale); }
/* The floor marker: a shape, not only a color, so it reads in every theme. */
.usage-floor-mark { height: 13px; line-height: 13px; font-size: 13px; font-weight: 700; color: var(--warn); }
.usage-bar-label { font-size: 10px; color: var(--text3); margin-top: 4px; white-space: nowrap; }
.usage-drill-back { align-self: flex-start; }
@media (max-width: 760px) {
  /* A month of days fits a phone without scrolling: columns may shrink to
     nothing, and only every Nth keeps its visible label. */
  /* The side padding holds the half of an edge label that overhangs its narrow
     column, so the first and last labels are neither clipped nor scrollable. */
  .usage-series-chart { overflow-x: hidden; gap: 1px; padding: 6px 14px 0; }
  .usage-bar-col { min-width: 0; flex: 1 1 0; }
  .usage-bar { min-width: 1px; }
  /* Hidden labels keep their line, so every baseline matches, but no width. */
  .usage-bar-col:not(.usage-bar-col--labeled) .usage-bar-label { visibility: hidden; max-width: 0; overflow: hidden; }
  .usage-bar-label { font-size: 9px; }
}

.usage-breakdown-header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.usage-groupby {
  background: var(--bg3); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 4px 8px; font-size: 12.5px;
}
.usage-breakdown { width: 100%; border-collapse: collapse; font-size: 13px; }
.usage-breakdown th {
  text-align: left; font-weight: 500; font-size: 11.5px; color: var(--text3);
  padding: 5px 8px; border-bottom: 1px solid var(--border);
}
.usage-breakdown td { padding: 6px 8px; border-bottom: 1px solid var(--border); color: var(--text2); }
.usage-row-label { color: var(--text); }
.usage-num { text-align: right; font-variant-numeric: tabular-nums; }
.usage-num--muted { color: var(--waiting); }

/* Move 842: the caching verdict leads, the four figures follow, the
   approximation note closes it. */
.usage-caching-verdict { font-size: 13.5px; color: var(--text); max-width: 78ch; margin-bottom: 7px; }
.usage-caching-row { font-size: 12.5px; color: var(--text2); padding: 2px 0; max-width: 78ch; }
.usage-caching-note { font-size: 12px; color: var(--text3); max-width: 78ch; margin-top: 6px; }
.usage-freshness { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 10px; }
.usage-freshness-title { font-size: 12px; color: var(--stale); margin-bottom: 5px; }
.usage-freshness-row { display: flex; gap: 8px; font-size: 12.5px; padding: 2px 0; }
.usage-freshness-name { color: var(--text); }
.usage-freshness-note { color: var(--text3); }

.usage-empty { color: var(--text3); font-size: 13px; padding: 10px 0; }

/* Narrow viewports: the cards wrap on their own, but the breakdown table has
   five columns and must scroll inside its own box rather than pushing the page
   sideways. */
@media (max-width: 760px) {
  .usage-cost-card { min-width: 100%; max-width: none; }
  .usage-breakdown { display: block; overflow-x: auto; white-space: nowrap; }
}

/* Move 410 follow-up: the terminal-session import, on a project's own Ledger. */
.usage-import-status { font-size: 12.5px; color: var(--text2); margin-left: 8px; }

/* A failed import is the one thing on this screen a user must not skim past, so
   it takes the warning color and weight. --warn rather than --danger: nothing
   was destroyed, something did not happen, and the three themes each define it. */
.usage-import-status--error { color: var(--warn); font-weight: 600; }

/* Move 717. The other half of the import's color rule. Green is reserved for
   an import that actually RECORDED something: an empty result keeps the neutral
   color, because a green "nothing found" would make green mean "the request
   completed" and cost the color its meaning, exactly as a colored success
   would have cost the warning color its own. */
.usage-import-status--ok { color: var(--done); font-weight: 600; }

/* Move 855: the project briefing. "Needs you" is orange (--warn, the attention
   color in every theme; --acting stays reserved for "Forge is working"), and it
   pulses twice when the page arrives, then holds still. */
.pb-section:not(.section--collapsed) .pb-body { display: flex; flex-direction: column; gap: 10px; }
.pb-headline { margin: 0; font-size: 15px; color: var(--text); }
.pb-label { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); margin-bottom: 4px; }
.pb-block p { margin: 0 0 4px; color: var(--text); }
.pb-muted { color: var(--text2) !important; font-size: 13px; }
.pb-rows { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 13.5px; }
.pb-row { display: contents; }
.pb-row-label { color: var(--text3); white-space: nowrap; }
.pb-row-text { color: var(--text); overflow-wrap: anywhere; }
@keyframes pb-attention { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
/* The action inbox (public/inbox.js). The category tag says how much an item
   holds up: Stopped in --danger, Land and Not live in --warn, the rest quiet. */
.ib-section:not([hidden]) { display: block; }
.ib-box { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; background: var(--bg2); }
.ib-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.ib-head h3 { margin: 0; font-size: 14px; }
.ib-count { color: var(--warn); font-weight: 700; font-size: 13px; }
.ib-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ib-item { display: grid; grid-template-columns: 6.5em 1fr auto; gap: 2px 10px; align-items: start; }
.ib-tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text2); padding-top: 3px; }
.ib-tag--stopped { color: var(--danger); }
.ib-tag--land, .ib-tag--not_live { color: var(--warn); }
/* Move 951: the label explains itself on hover (title) and on tap (details). */
.ib-tag-wrap { position: relative; min-width: 0; }
.ib-tag-wrap > summary { list-style: none; cursor: help; display: inline-block; text-decoration: underline dotted; text-underline-offset: 3px; }
.ib-tag-wrap > summary::-webkit-details-marker { display: none; }
.ib-tag-why { position: absolute; z-index: 5; left: 0; top: calc(100% + 4px); width: 18em; max-width: calc(100vw - 48px); box-sizing: border-box; padding: 6px 8px; font-size: 12.5px; line-height: 1.4; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); text-transform: none; letter-spacing: normal; font-weight: 400; }
.ib-older { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--border); }
.ib-older-head { cursor: pointer; font-size: 12.5px; color: var(--text2); }
.ib-older > .ib-list { margin-top: 6px; }
.ib-body { display: flex; flex-direction: column; min-width: 0; }
.ib-line { color: var(--text); overflow-wrap: anywhere; }
.ib-detail { color: var(--text2); font-size: 13px; }
.ib-error { color: var(--danger); font-size: 12.5px; }
.ib-item--unavailable .ib-line { color: var(--text2); }
.ib-action { white-space: nowrap; }
.ib-more-row { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 10px; }
.ib-more { cursor: pointer; font-size: 12.5px; color: var(--warn); }
.ib-more:hover { text-decoration: underline; }
.ib-empty { margin: 0; color: var(--text2); }
.ib-status { margin: 8px 0 0; font-size: 12.5px; color: var(--text2); }
.ib-status-part { cursor: pointer; color: inherit; text-decoration: none; }
.ib-status-part:hover { text-decoration: underline; }
.ib-status-label { color: var(--text3); }
/* Action inbox move 2: Not now, the snoozed count and the snoozed list. */
.ib-buttons { display: flex; gap: 6px; align-items: start; }
.ib-notnow { white-space: nowrap; background: none; border: 1px solid var(--border); color: var(--text2); }
.ib-head-sep { color: var(--text3); }
.ib-snoozed-toggle { cursor: pointer; font-size: 12.5px; color: var(--text2); }
.ib-snoozed-toggle:hover { text-decoration: underline; }
.ib-snooze-form { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; padding: 6px 0 2px; }
.ib-snooze-reason { flex: 1 1 14em; display: flex; gap: 6px; align-items: center; min-width: 0; }
.ib-snooze-reason input { flex: 1; min-width: 0; }
.ib-snooze-until { display: flex; gap: 6px; align-items: center; }
.ib-snooze-error { color: var(--danger); font-size: 12.5px; flex-basis: 100%; }
.ib-snooze-note { margin: 6px 0 0; font-size: 12.5px; color: var(--text2); }
.ib-snoozed-list { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.ib-snoozed-item { display: grid; grid-template-columns: 6.5em 1fr auto; gap: 2px 10px; align-items: start; }
@media (max-width: 760px) { .ib-snoozed-item { grid-template-columns: 1fr auto; } .ib-buttons { flex-wrap: wrap; } }
@media (max-width: 760px) { .ib-item { grid-template-columns: 1fr auto; } .ib-tag { grid-column: 1 / -1; } }
/* The portfolio inbox, and the project list's passive count (Delivery item 3).
   The count is quiet on purpose: no accent, no fill, nothing to click. */
#pf-inbox { margin: 0 0 16px; }
.ib-project { font-weight: 600; color: var(--text2); }
.ib-note { margin: 8px 0 0; font-size: 12.5px; color: var(--text2); }
.ib-badge { display: inline-block; min-width: 1.5em; text-align: center; font-size: 10.5px; font-weight: 600; color: var(--text2); border: 1px solid var(--border); border-radius: 8px; padding: 0 5px; margin-left: 5px; vertical-align: middle; }
@media (max-width: 760px) { .pb-rows { grid-template-columns: 1fr; gap: 2px; } .pb-row-label { margin-top: 6px; } }
/* Move 855: the finish-line flag beside a move's kind tag. */
.wn-finish-line-btn { background: none; border: none; padding: 0 4px; margin-right: 4px; font-size: 13px; line-height: 1; cursor: pointer; color: var(--text3); }
.wn-finish-line-btn:hover { color: var(--text); }
.wn-finish-line-btn--on { color: var(--accent); }
/* Move 855 follow-up: proposed by Planner or a session, not yet the owner's mark. */
.wn-finish-line-btn--proposed { color: var(--accent); opacity: 0.55; outline: 1px dashed var(--accent); outline-offset: -1px; border-radius: 3px; }
.planner-proposal-finish-line { font-size: 12px; color: var(--text3); margin-top: 2px; }

/* Move 773: attachments in Planner. */
.chat-attach-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 0 2px; }
.chat-attach-chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--border); border-radius: 6px; padding: 2px 4px; background: var(--bg3); max-width: 100%; }
.chat-attach-chip--on { border-color: var(--accent); }
.chat-attach-toggle { background: none; border: none; color: var(--text2); font-size: 12.5px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.chat-attach-chip--on .chat-attach-toggle { color: var(--text); }
.chat-attach-save { font-size: 11.5px; }
.chat-attach-saved { font-size: 11.5px; color: var(--text3); }
.chat-attach-note { margin: 2px 0; font-size: 12.5px; color: var(--text2); }
.chat-attach-note--bad { color: var(--warn); }
.chat-attach-btn { flex: 0 0 auto; }
/* The [hidden] attribute loses to a class's display, so say it outright. */
.chat-attach-btn[hidden], .chat-attach-row[hidden], .chat-attach-note[hidden] { display: none; }

/* Move 345: voice with Planner. The live dot says the mic is on; the three dots
   are the thinking animation, in the working-state color, and still under
   reduced motion. */
.chat-voice-btn { flex: 0 0 auto; }
.chat-voice-btn--on { color: var(--acting); box-shadow: inset 0 0 0 1px var(--acting); }
.chat-voice-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 0 2px; font-size: 12.5px; color: var(--text2); }
.chat-voice-bar #chat-voice-status { color: var(--text); font-weight: 600; }
.chat-voice-live { width: 8px; height: 8px; border-radius: 50%; background: var(--acting); animation: chat-voice-pulse 1.6s ease-in-out infinite; }
.chat-voice-thinking { display: inline-flex; gap: 3px; align-items: center; }
.chat-voice-thinking span { width: 5px; height: 5px; border-radius: 50%; background: var(--acting); opacity: .35; animation: chat-voice-dot 1.4s ease-in-out infinite; }
.chat-voice-thinking span:nth-child(2) { animation-delay: .2s; }
.chat-voice-thinking span:nth-child(3) { animation-delay: .4s; }
.chat-voice-bar .icon-btn { font-size: 12px; }
.chat-voice-pick-label { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.chat-voice-pick-label { min-width: 0; }
/* Move 878: thirty labeled voices; never wider than the bar on a phone. */
.chat-voice-pick-label select { max-width: 100%; font-size: 12px; background: var(--bg3); color: var(--text); border: 1px solid var(--border); border-radius: 4px; padding: 1px 4px; }
.chat-voice-heard { color: var(--text2); font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.chat-voice-btn[hidden], .chat-voice-bar[hidden], .chat-voice-thinking[hidden], .chat-voice-heard[hidden] { display: none; }
@keyframes chat-voice-pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes chat-voice-dot { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) {
  .chat-voice-live, .chat-voice-thinking span { animation: none; opacity: 1; }
}

/* Move 897: the Sources list on the project page. */
/* Move 907: attach an existing repository, on the Repository card. */
.repo-attach { margin-top: 8px; }
.repo-attach__form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.repo-attach__input { flex: 1 1 14em; min-width: 0; background: var(--bg3); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 13px; padding: 5px 8px; }
.repo-attach__error { flex-basis: 100%; color: var(--danger); font-size: 12.5px; margin: 4px 0 0; }
.repo-attach-note { font-size: 12.5px; color: var(--text2); margin: 6px 0 0; line-height: 1.45; }
/* 2026-10-01: Sources rows read like Documents rows (J.J.: "difficult to read"). */
.proj-sources__head { min-width: 0; }
.proj-sources__name { font-size: 14.4px; font-weight: 500; color: var(--text); text-decoration: none; overflow-wrap: break-word; }
.proj-sources__name:hover { color: var(--accent); text-decoration: underline; }
.proj-sources__owner { color: var(--text3); font-weight: 400; }
.proj-sources__perm { font-size: 9.6px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 1px 5px; border-radius: 4px; background: var(--accent-dim); color: var(--accent); margin-right: 4px; vertical-align: 1px; }
.proj-sources__state { font-size: 12px; color: var(--text3); margin: 3px 0 6px; }
.proj-sources__state--running { color: var(--waiting); }
.proj-sources__acts { flex-wrap: wrap; }
.proj-sources__acts .doc-btn:disabled { opacity: .5; cursor: default; }
#proj-sources .proj-sources__add { background: var(--bg3); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 5px 12px; font-size: 14.4px; }
#proj-sources .proj-sources__add:hover { border-color: var(--accent); color: var(--accent); }
.proj-sources__form { display: flex; gap: 0.4em; flex-wrap: wrap; margin-top: 0.5em; }
.proj-sources__input { flex: 1 1 14em; min-width: 0; }
.proj-sources__error { color: var(--danger); margin-top: 0.4em; }
.proj-sources__slite a { color: var(--accent); }
/* Move 917 follow-up: the Slite source box. The picked note's title had no
   rule, so it rendered in the browser's visited purple on the dark theme.
   --accent is set by every theme, so one rule covers them all. */
.slite-source__head a, .slite-source__head a:visited { color: var(--accent); text-decoration: none; overflow-wrap: break-word; }
.slite-source__head a:hover { text-decoration: underline; }
.slite-source__state { font-size: 12px; color: var(--text3); margin: 3px 0 6px; }
.slite-source__outcome { font-size: 12.5px; color: var(--text2); margin: 0 0 6px; }
.slite-source__outcome--error, .slite-source__error { color: var(--danger); }
.slite-source__acts { flex-wrap: wrap; }
.slite-source__acts .doc-btn:disabled { opacity: .5; cursor: progress; }
.slite-source__results-head { font-size: 12.5px; color: var(--text2); margin-top: 0.4em; }
.slite-source__result-picked { font-size: 12px; color: var(--text3); margin: 0 0.4em; }
.canon-source-label a, .canon-source-label a:visited { color: var(--accent); }
.proj-sources__report { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 28em; overflow: auto; font-size: 12px; line-height: 1.5; color: var(--text2); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; margin-top: 8px; }
.proj-sources__token { flex-basis: 100%; display: flex; flex-direction: column; gap: 0.3em; }

/* Move 1064: the project's address in Details, and the sentence a refused edit shows. */
.proj-slug-row { display: flex; align-items: center; gap: 2px; }
.proj-slug-prefix { font-family: ui-monospace, monospace; font-size: 13px; color: var(--text3); }
.proj-slug-row .field-input { font-family: ui-monospace, monospace; flex: 1 1 auto; min-width: 0; }
.proj-slug-note { font-size: 12px; color: var(--text3); margin: 4px 0 0; }
.proj-slug-note--error { color: var(--danger); }
.address-missing { padding: 32px 16px; }
.address-missing__text { margin: 0 0 12px; }

/* Reuse step (b): the Components block. Left out shares the plain look of used
   on purpose; only a contradiction or "not on Core" is marked. */
.components-card { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.components-card .components-title { margin: 0; font-size: 13px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: .04em; }
.components-card .components-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.components-card .components-row { font-size: 13px; line-height: 1.45; }
.components-card .components-core { font-weight: 600; }
.components-card .components-warn { color: var(--warn); }
.components-card .components-native { color: var(--text); font-style: italic; }
.components-card p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text2); }
.components-card button { background: var(--bg3); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 5px 12px; font-size: 14.4px; }
.components-card button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.components-card .components-toggle { margin-left: 6px; padding: 1px 8px; font-size: 12px; }
.components-card span.components-queued { margin-left: 6px; font-size: 12px; color: var(--text2); }

/* Forge Move 1216: public pages, the editor on Planner's card and the project's Pages section. */
.artifact-editor { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.artifact-editor .field-input { width: 100%; box-sizing: border-box; }
.artifact-label { margin-top: 8px; font-size: 12px; color: var(--text2); text-transform: uppercase; letter-spacing: 0.04em; }
.artifact-block, .artifact-field { display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid var(--border); border-radius: 6px; }
.artifact-kind { font-size: 12px; color: var(--text2); }
.artifact-inline { font-size: 13px; color: var(--text2); }
.artifact-add { display: flex; flex-wrap: wrap; gap: 8px; }
.artifact-remove { align-self: flex-start; font-size: 12px; }
.artifact-link { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.artifact-url { overflow-wrap: anywhere; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.artifact-row { padding: 8px 0; border-bottom: 1px solid var(--border); }
.artifact-row-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.artifact-row-title { font-weight: 600; }
.artifact-status { font-size: 12px; padding: 1px 6px; border-radius: 4px; background: var(--bg3); }
.artifact-status-revoked { opacity: 0.6; }
.artifact-row-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.artifact-hint { font-size: 12px; color: var(--text2); margin-left: 6px; }
.artifact-responses-head { display: flex; gap: 12px; align-items: center; margin: 8px 0; }
.artifact-responses { padding-left: 18px; }
.artifact-response { margin-bottom: 12px; }
.artifact-response-head { font-size: 13px; color: var(--text2); margin-bottom: 4px; }
.artifact-answers { margin: 0; }
.artifact-answers dt { font-size: 12px; color: var(--text2); margin-top: 4px; }
.artifact-answers dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.artifact-upload { margin-top: 4px; font-size: 13px; }

/* Move 1254: the plain-language summary at the top of a finished session. */
.agent-console__summary-box { margin-bottom: 10px; }
.agent-console__summary { margin: 4px 0 0; padding-left: 18px; font-size: 13px; color: #e2e8f0; }
.agent-console__summary li { margin-bottom: 4px; }

/* Move 1255: Knowledge > Meetings. */
.canon-meetings-section { margin-top: 18px; }
.canon-meetings-heading { display: flex; align-items: center; gap: 10px; }
.canon-meeting-form { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 12px; }
.canon-meetings-list { display: flex; flex-direction: column; gap: 6px; }
.canon-meeting-date { font-size: 12px; color: var(--text3); margin-right: 8px; }
.canon-meeting-title { font-weight: 600; }
/* Forge Move 1289: the title opens the transcript; Archive and Un-archive. */
button.canon-meeting-title { background: none; border: none; padding: 0; color: inherit; font: inherit; font-weight: 600; cursor: pointer; text-align: left; text-decoration: underline dotted; text-underline-offset: 3px; }
.canon-meeting-transcript { flex-basis: 100%; margin: 6px 0 4px; padding: 10px 12px; max-height: 420px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; background: var(--bg2); border: 1px solid var(--border); border-radius: 6px; }
.canon-meeting.archived .canon-meeting-title { color: var(--text3); }
.canon-meeting-badge { margin-left: 8px; }
.canon-meeting-unarchive { margin-left: auto; font-size: 12px; }
.canon-meeting-archive { font-size: 12px; }

/* Forge Move 1256: Process this meeting, and the evidence on its proposals. */
.canon-meeting { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.canon-meeting-process { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }
.canon-meeting-process-error { flex-basis: 100%; color: var(--danger); font-size: 0.85em; }
.planner-proposal-evidence { font-size: 12px; color: var(--text3); margin-bottom: 6px; font-style: italic; overflow-wrap: anywhere; }
.planner-proposal-flagged { color: var(--text2); font-weight: 600; }

/* Forge Move 1257: Fireflies meetings (public/fireflies-meetings.js). */
.ffm-section .section-header { display: flex; align-items: baseline; gap: 8px; }
.ffm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ffm-card { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.ffm-card.ffm-done { opacity: 0.85; }
.ffm-line { display: flex; flex-wrap: wrap; gap: 4px; }
.ffm-title { font-weight: 600; overflow-wrap: anywhere; }
.ffm-where { color: var(--text2); }
.ffm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.ffm-project { max-width: 100%; }
.ffm-always { font-size: 0.85em; color: var(--text2); }
.ffm-said { margin: 6px 0 0; font-size: 0.9em; }
.ffi { margin: 6px 0 10px; }
.ffi-body { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ffi-connect-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex-basis: 100%; }
.ffi-list { list-style: none; margin: 0; padding: 0; flex-basis: 100%; }
.ffi-row label { overflow-wrap: anywhere; }
.ffi-said { color: var(--danger); font-size: 0.85em; margin: 4px 0 0; }
/* Forge Move 1289: what the picker's list covers, and Show older. */
.ffi-window { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex-basis: 100%; }
.ffi-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ffi-here { margin-top: 4px; }

/* Forge Move 1323: the model a session is on, and the mismatch sentence. */
.session-model { padding: 6px 12px; font-size: 12px; color: var(--text2); }
.session-model__mismatch { margin-top: 4px; color: var(--danger); font-weight: 600; }
.sl-model { color: var(--text2); }
.sl-model--mismatch { color: var(--danger); font-weight: 600; }
