/* Reality Graph — Control Center (Dashboard V2).
   Identity: a calm "control room / engineering blueprint". Cool off-white, evergreen trust accent,
   amber for owner-gated, clay for blockers. System fonts only (local-first; no CDN/network). */
:root {
  --ink: #16201d;
  --paper: #eef1ed;
  --panel: #ffffff;
  --panel-2: #f8faf7;
  --line: #e2e7e0;
  --line-strong: #d2d9d0;
  --muted: #4f5950;
  --faint: #6e7a70;

  --signal: #1f7a5c;        /* evergreen — functional success / ready / done ONLY */
  --signal-soft: #e6f2ec;
  --signal-line: #bfe0d1;

  /* Reality Graph brand accents (realitygraph.dev family). cyan = primary brand,
     violet = secondary brand. Green/amber/red stay FUNCTIONAL status only.
     Light-theme values are darkened for AA contrast on the paper surface. */
  --brand: #0e7c86;         /* cyan (website #3fd0d8, darkened for light) */
  --brand-soft: #e2f4f5;
  --brand-line: #b8e3e6;
  --brand-2: #6d5fd6;       /* violet (website #8b7cf6, darkened for light) */
  --brand-2-soft: #ece9fb;
  --info: #2f6f8f;          /* current / active step */
  --info-soft: #e5eef3;
  --attention: #a06a0c;     /* owner-gated / draft / waiting */
  --attention-soft: #f7eed7;
  --halt: #b0473a;          /* real blocker */
  --halt-soft: #f6e6e2;

  --ink-rev: #eaf1ed;
  --shadow-sm: 0 1px 2px rgba(20, 35, 28, .05);
  --shadow: 0 1px 2px rgba(20, 35, 28, .04), 0 10px 28px rgba(20, 35, 28, .06);
  --radius: 14px;
  --radius-sm: 9px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Mobile app-shell chrome heights (excludes the iPhone safe-area inset, which is added separately
     with env(); see the MOBILE-DASHBOARD-SHELL1 block near the bottom). Desktop never reads these. */
  --m-top-h: 52px;
  --m-bot-h: 62px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper); color: var(--ink); font-family: var(--sans);
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }

.rail {
  position: sticky; top: 0; align-self: start; height: 100vh;
  background: var(--panel); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 22px 16px;
}
.rail-brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; }
.rail-mark {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: grid; place-items: center; overflow: hidden;
}
.rail-mark svg { display: block; width: 34px; height: 34px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.rail-brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.rail-name { font-weight: 650; letter-spacing: -.01em; }
.rail-edition { font-size: 11.5px; color: var(--muted); }
.rail-site { font-size: 11px; color: var(--brand); text-decoration: none; margin-top: 2px; font-weight: 550; }
.rail-site:hover { text-decoration: underline; }

.rail-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.demo-disclaimer {
  margin: 8px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 82%, var(--brand) 8%);
  color: var(--muted);
  padding: 9px 10px;
  font-size: 11.5px;
  line-height: 1.35;
}
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: var(--radius-sm);
  color: var(--muted); cursor: pointer; border: 0; background: none; width: 100%; text-align: left;
  font-size: 14px; font-family: inherit; transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--panel-2); color: var(--ink); }
.nav-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav-ic { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav-item.active .nav-ic { opacity: 1; }
.nav-badge {
  margin-left: auto; font-size: 11px; font-weight: 600; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; display: grid; place-items: center; background: var(--halt-soft); color: var(--halt);
}

.rail-foot { margin-top: auto; padding: 14px 8px 2px; }
.trust-badge {
  display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--signal);
  background: var(--signal-soft); border-radius: 999px; padding: 7px 12px; font-weight: 550;
}
.trust-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.rail-meta { margin-top: 10px; font-size: 11.5px; color: var(--faint); padding-left: 4px; }
.dot-sep { margin: 0 5px; }

/* ---------- stage ---------- */
.stage { padding: 30px 38px 60px; max-width: 1080px; }
.loading { color: var(--faint); padding: 80px 0; text-align: center; }
.view { animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.sec-head { margin-bottom: 22px; }
.eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--brand); font-weight: 650;
}
.sec-title { font-size: 25px; font-weight: 680; letter-spacing: -.02em; margin: 6px 0 4px; }
.sec-q { color: var(--muted); font-size: 14.5px; }

/* ---------- panels ---------- */
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 20px 22px; margin-bottom: 18px;
}
.panel-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint);
  font-weight: 650; margin: 0 0 3px;
}
.why { color: var(--faint); font-size: 12.5px; margin: 0 0 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

/* ---------- hero (overview) ---------- */
.hero {
  background:
    linear-gradient(0deg, rgba(31,122,92,.015), rgba(31,122,92,.015)),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(22,32,29,.035) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(22,32,29,.035) 23px 24px),
    var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 26px 24px; margin-bottom: 18px;
}
.hero-top { display: flex; align-items: flex-start; gap: 16px; }
.beacon { width: 14px; height: 14px; border-radius: 50%; margin-top: 7px; flex: none; }
.beacon.green { background: var(--signal); box-shadow: 0 0 0 5px var(--signal-soft); }
.beacon.amber { background: var(--attention); box-shadow: 0 0 0 5px var(--attention-soft); }
.beacon.clay  { background: var(--halt); box-shadow: 0 0 0 5px var(--halt-soft); }
.hero-headline { font-size: 23px; font-weight: 680; letter-spacing: -.02em; margin: 0; max-width: 32ch; }
.hero-sub { color: var(--muted); margin: 7px 0 0; max-width: 60ch; }
.hero-readiness { margin-left: auto; text-align: right; }
.hero-readiness .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.hero-readiness .val { font-size: 13px; color: var(--muted); max-width: 18ch; }

/* next action */
.cta { margin-top: 20px; border-radius: 12px; background: var(--ink); color: var(--ink-rev); padding: 15px 17px; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.cta-label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; opacity: .65; }
.cta-do { font-size: 15px; font-weight: 600; margin-top: 3px; }
.cmd {
  font-family: var(--mono); font-size: 12.5px; background: rgba(255,255,255,.09); color: var(--ink-rev);
  border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: 8px 11px; display: inline-block;
  word-break: break-word;
}
.cmd.light { background: var(--panel-2); color: var(--ink); border-color: var(--line); }

/* pipeline signature */
.pipe { display: flex; align-items: flex-start; margin-top: 22px; }
.pipe-step { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; text-align: center; }
.pipe-step::before {
  content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px;
  background: var(--line-strong); z-index: 0;
}
.pipe-step:first-child::before { display: none; }
.pipe-step.done::before, .pipe-step.current::before { background: var(--signal-line); }
.pipe-node {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; z-index: 1;
  background: var(--panel); border: 2px solid var(--line-strong); color: var(--faint);
  font-size: 12px; font-weight: 700;
}
.pipe-step.done .pipe-node { background: var(--signal); border-color: var(--signal); color: #fff; }
.pipe-step.current .pipe-node {
  background: var(--info-soft); border-color: var(--info); color: var(--info);
  box-shadow: 0 0 0 4px var(--info-soft); animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px var(--info-soft); } 50% { box-shadow: 0 0 0 6px rgba(47,111,143,.12); } }
.pipe-label { font-size: 11.5px; margin-top: 8px; color: var(--muted); max-width: 11ch; }
.pipe-step.current .pipe-label { color: var(--info); font-weight: 600; }
.pipe-step.done .pipe-label { color: var(--ink); }
@media (max-width: 760px) { .pipe { flex-wrap: wrap; gap: 14px; } .pipe-step { flex: 0 0 30%; }
  .pipe-step::before { display: none; } }

/* ---------- chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.ready, .chip.active, .chip.present, .chip.running, .chip.available, .chip.done { color: var(--signal); background: var(--signal-soft); }
.chip.attention, .chip.held, .chip.draft, .chip.next, .chip.partial { color: var(--attention); background: var(--attention-soft); }
.chip.blocked, .chip.missing { color: var(--halt); background: var(--halt-soft); }
.chip.future, .chip.pending, .chip.planned, .chip.optional, .chip.none, .chip.empty, .chip.not_set_up, .chip.waiting_owner, .chip.unavailable { color: var(--muted); background: #eceeea; }
/* brand identity chips (not status): cyan = primary, violet = secondary */
.chip.info { color: var(--info); background: var(--info-soft); }
.chip.brand { color: var(--brand); background: var(--brand-soft); }
.chip.brand2 { color: var(--brand-2); background: var(--brand-2-soft); }

/* ---------- key/value rows ---------- */
.rows { display: flex; flex-direction: column; }
.kvr { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.kvr:first-child { border-top: 0; }
.kvr .k { color: var(--muted); font-size: 13.5px; }
.kvr .v { text-align: right; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--faint); }

/* ---------- blockers ---------- */
.blocker { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.blocker:first-child { border-top: 0; }
.blk-mark { width: 8px; height: 8px; border-radius: 50%; background: var(--attention); margin-top: 7px; flex: none; }
.blk-body .t { font-weight: 600; }
.blk-body .w { color: var(--muted); font-size: 13px; }
.blk-body .a { color: var(--signal); font-size: 13px; margin-top: 2px; }
.all-clear { display: flex; align-items: center; gap: 10px; color: var(--signal); font-weight: 550; }

/* ---------- QA groups ---------- */
.qa-group { margin-bottom: 18px; }
.qa-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.qa-name { font-weight: 650; font-size: 16px; }
.qa-readiness { font-family: var(--mono); font-size: 13px; color: var(--signal); }
.meter { height: 7px; border-radius: 999px; background: #e7eae5; overflow: hidden; margin: 8px 0 14px; }
.meter > i { display: block; height: 100%; border-radius: 999px; background: var(--signal); transition: width .5s ease; }
.gate { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 12px 0; border-top: 1px solid var(--line); align-items: start; }
.gate:first-of-type { border-top: 0; }
.gate-name { font-weight: 550; }
.gate-reason { grid-column: 1 / 2; color: var(--muted); font-size: 13px; }
.gate-action { grid-column: 1 / 2; color: var(--signal); font-size: 12.5px; margin-top: 2px; }
.gate-chip { grid-row: 1 / 2; grid-column: 2 / 3; }

/* ---------- roadmap ---------- */
.rm-counts { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.epic { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.epic-head { display: flex; align-items: center; gap: 12px; padding: 15px 18px; cursor: pointer; }
.epic-id { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--info-soft); color: var(--info); font-weight: 700; font-size: 13px; flex: none; }
.epic-meta { min-width: 0; }
.epic-title { font-weight: 620; }
.epic-story { color: var(--faint); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.epic-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.epic-caret { color: var(--faint); transition: transform .2s; font-size: 12px; }
.epic.open .epic-caret { transform: rotate(90deg); }
.epic-body { display: none; padding: 0 18px 8px; }
.epic.open .epic-body { display: block; }
.sprint { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px dashed var(--line); }
.sprint-tag { font-family: var(--mono); font-size: 12px; color: var(--ink); }
.sprint-sum { color: var(--muted); font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sprint-chip { margin-left: auto; flex: none; }

/* ---------- system map ---------- */
.map { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.map-node {
  flex: 1 1 150px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--panel-2);
  display: flex; flex-direction: column; gap: 4px; position: relative;
}
.map-node .mn-label { font-weight: 620; font-size: 14px; }
.map-node .mn-sub { color: var(--faint); font-size: 12px; }
.map-node .mn-detail { color: var(--muted); font-size: 12px; margin-top: auto; }
.map-node.planned { border-style: dashed; background: var(--panel); opacity: .82; }
.map-note { margin-top: 16px; color: var(--muted); font-size: 13px; background: var(--signal-soft); border-radius: 10px; padding: 12px 14px; }

/* ---------- plan ladder ---------- */
.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 4px; }
@media (max-width: 820px) { .ladder { grid-template-columns: 1fr 1fr; } }
.tier { border: 1px solid var(--line); border-radius: 12px; padding: 15px; background: var(--panel-2); }
.tier.current { border-color: var(--signal); background: var(--signal-soft); box-shadow: 0 0 0 1px var(--signal-line); }
.tier-name { font-weight: 680; display: flex; align-items: center; gap: 8px; }
.tier-blurb { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.tier-current-tag { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--signal); }

/* ---------- empty states ---------- */
.empty {
  border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 28px; text-align: center;
  background: var(--panel-2);
}
.empty-title { font-size: 18px; font-weight: 650; }
.empty-body { color: var(--muted); max-width: 56ch; margin: 8px auto 16px; }

/* ---------- misc ---------- */
.chips-line { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { font-size: 11.5px; font-family: var(--mono); color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; }
.spacer { height: 2px; }

/* ---------- inline glossary tooltips ---------- */
.lbl-tip { display: inline-flex; align-items: center; gap: 5px; }
.tip { position: relative; display: inline-flex; vertical-align: middle; margin-left: 5px; }
.tip-mark {
  width: 15px; height: 15px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--panel-2); color: var(--muted); font-size: 10px; font-weight: 700; font-style: italic;
  font-family: var(--mono); line-height: 1; cursor: help; padding: 0; display: grid; place-items: center;
  transition: background .15s, color .15s, border-color .15s;
}
.sec-title .tip-mark { width: 18px; height: 18px; font-size: 11px; }
.tip-mark:hover, .tip-mark:focus-visible { background: var(--signal-soft); color: var(--signal); border-color: var(--signal-line); outline: none; }
.tip-mark:focus-visible { box-shadow: 0 0 0 3px var(--signal-soft); }
.tip-bubble {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 260px; z-index: 20; background: var(--ink); color: var(--ink-rev);
  border-radius: 9px; padding: 9px 11px; font-size: 12px; line-height: 1.45; font-weight: 400;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity .14s, transform .14s;
  pointer-events: none; text-align: left; white-space: normal;
}
.tip-bubble b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--signal-line); margin-bottom: 3px; }
.tip-bubble::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--ink); }
.tip:hover .tip-bubble, .tip:focus-within .tip-bubble { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(-2px); }

/* ---------- RG Support / Help Center ---------- */
.help-intro { font-size: 14.5px; color: var(--muted); max-width: 70ch; margin: -4px 0 18px; }
.help-ol { margin: 0; padding-left: 20px; color: var(--ink); }
.help-ol li { padding: 4px 0; }
.help-cmd-row { padding: 9px 0; border-top: 1px solid var(--line); }
.help-cmd-row:first-child { border-top: 0; padding-top: 0; }
.help-cmd-row .cmd { display: block; word-break: break-all; }
.help-cmd-what { color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.help-ul { margin: 0; padding-left: 18px; }
.help-ul li { padding: 4px 0; color: var(--ink); position: relative; }
.help-ul.good li::marker { color: var(--signal); }
.help-ul.never li::marker { color: var(--halt); }
.tips { display: flex; flex-direction: column; gap: 2px; }
.tip-item { display: flex; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--line); font-size: 13.5px; }
.tip-item:first-child { border-top: 0; }
.tip-bullet { color: var(--signal); font-weight: 700; flex: none; }
.gloss { display: flex; flex-direction: column; }
.gloss-item { border-top: 1px solid var(--line); padding: 4px 0; }
.gloss-item:first-child { border-top: 0; }
.gloss-item summary { cursor: pointer; list-style: none; padding: 8px 0; display: flex; flex-direction: column; gap: 2px; }
.gloss-item summary::-webkit-details-marker { display: none; }
.gloss-item summary::before { content: "▸"; color: var(--faint); font-size: 11px; float: right; margin-left: 8px; transition: transform .15s; }
.gloss-item[open] summary::before { transform: rotate(90deg); }
.gloss-term { font-weight: 620; }
.gloss-short { color: var(--muted); font-size: 13px; }
.gloss-more { color: var(--muted); font-size: 13px; padding: 0 0 10px; max-width: 72ch; }
.issue { padding: 11px 0; border-top: 1px solid var(--line); }
.issue:first-child { border-top: 0; padding-top: 0; }
.issue-q { font-weight: 600; }
.issue-a { color: var(--muted); font-size: 13px; margin-top: 2px; max-width: 72ch; }
.share-grid { gap: 14px; }
.share { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--panel-2); }
.share.safe { border-color: var(--signal-line); background: var(--signal-soft); }
.share.danger { border-color: var(--halt-soft); background: var(--halt-soft); }
.share-head { font-weight: 650; font-size: 13px; margin-bottom: 8px; }
.share.safe .share-head { color: var(--signal); }
.share.danger .share-head { color: var(--halt); }
.share .help-ul li { font-size: 13px; }
.help-note { color: var(--muted); font-size: 13px; background: var(--attention-soft); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.help-foot { color: var(--faint); font-size: 12.5px; text-align: center; padding: 4px 0 0; }

/* ====================== DASHBOARD-V2-BETA-MVP1-FIX2: utility features ====================== */

/* ---------- dark mode ---------- */
/* Dark theme = the realitygraph.dev brand surface: blue-graphite base, slate text, white-low-alpha
   hairlines, cyan primary + violet secondary brand accents. Green/amber/red stay FUNCTIONAL status. */
html[data-theme="dark"] {
  --ink: #e6ecf3; --paper: #0a0c10; --panel: #0e1116; --panel-2: #12161d;
  --line: rgba(255,255,255,.08); --line-strong: rgba(255,255,255,.15); --muted: #aab4c4; --faint: #828d9d;
  --signal: #5fe3a1; --signal-soft: #0f2a20; --signal-line: #1f4a39;   /* website mint, success only */
  --info: #5aa8cb; --info-soft: #142b35; --attention: #d6a44e; --attention-soft: #332a16;
  --halt: #df7a6b; --halt-soft: #321f1c; --ink-rev: #e6ecf3;
  --brand: #3fd0d8; --brand-soft: #0c2a2c; --brand-line: #1f4a4d;       /* website cyan */
  --brand-2: #8b7cf6; --brand-2-soft: #1a1636;                          /* website violet */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.35); --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px rgba(0,0,0,.5);
}
/* A11Y-DESKTOP-FIX1: dark theme's bright mint/cyan tokens fail 4.5:1 with white text
   (measured 1.62:1 / 1.86:1 in A11Y-DESKTOP-COMPLIANCE-AUDIT1); dark ink on these bright
   backgrounds measures >=10:1. Light theme already darkens the same tokens and is unaffected. */
html[data-theme="dark"] .primary-btn,
html[data-theme="dark"] .report-btn.primary,
html[data-theme="dark"] .pipe-step.done .pipe-node,
html[data-theme="dark"] .copy-btn.copied { color: var(--paper); }
html[data-theme="dark"] .chip.future, html[data-theme="dark"] .chip.pending,
html[data-theme="dark"] .chip.planned, html[data-theme="dark"] .chip.optional,
html[data-theme="dark"] .chip.none, html[data-theme="dark"] .chip.empty,
html[data-theme="dark"] .chip.not_set_up, html[data-theme="dark"] .chip.waiting_owner,
html[data-theme="dark"] .chip.unavailable { background: #222b28; color: var(--muted); }
html[data-theme="dark"] .cta { background: #0c1210; }
html[data-theme="dark"] .meter, html[data-theme="dark"] .cg-bar, html[data-theme="dark"] .nl-bar { background: #222b28; }
body { transition: background .2s, color .2s; }

/* ---------- copy buttons & command lines ---------- */
.cmd-line { display: flex; align-items: stretch; gap: 8px; margin-top: 10px; }
.cmd-line .cmd { flex: 1; display: flex; align-items: center; }
.copy-btn {
  flex: none; font-family: var(--sans); font-size: 12px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--panel-2); color: var(--muted);
  border-radius: 8px; padding: 0 12px; transition: background .15s, color .15s, border-color .15s;
}
.copy-btn:hover { background: var(--signal-soft); color: var(--signal); border-color: var(--signal-line); }
.copy-btn.copied { background: var(--signal); color: #fff; border-color: var(--signal); }
.cmd-line.on-dark .copy-btn { background: rgba(255,255,255,.09); color: var(--ink-rev); border-color: rgba(255,255,255,.18); }
.cmd-line.on-dark .copy-btn:hover { background: rgba(255,255,255,.18); }

/* ---------- OS toggle ---------- */
.os-toggle { display: inline-flex; gap: 2px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; padding: 3px; margin-bottom: 6px; }
.os-opt { border: 0; background: none; cursor: pointer; font-family: inherit; font-size: 12px; color: var(--muted); padding: 5px 12px; border-radius: 7px; }
.os-opt:hover { color: var(--ink); }
.os-opt.active { background: var(--panel); color: var(--signal); font-weight: 600; box-shadow: var(--shadow-sm); }

/* ---------- live activity ---------- */
.activity { display: flex; flex-direction: column; gap: 6px; }
.activity-loop {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.activity-loop-step {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel-2);
  padding: 10px 10px 9px 28px;
  overflow: hidden;
}
.activity-loop-step::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand) 18%, transparent), transparent);
  transform: translateX(-120%);
  animation: activitySweep 5.2s ease-in-out infinite;
  animation-delay: calc(var(--loop-delay, 0) * .6s);
  pointer-events: none;
}
.activity-loop-step.step-0 { --loop-delay: 0; }
.activity-loop-step.step-1 { --loop-delay: 1; }
.activity-loop-step.step-2 { --loop-delay: 2; }
.activity-loop-step.step-3 { --loop-delay: 3; }
.loop-dot {
  position: absolute;
  left: 11px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
  animation: blpulse 2s ease-in-out infinite;
}
.loop-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 650;
}
.loop-state {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}
@keyframes activitySweep {
  0%, 42% { transform: translateX(-120%); opacity: 0; }
  52% { opacity: 1; }
  72%, 100% { transform: translateX(120%); opacity: 0; }
}
.act-group-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); font-weight: 650; margin: 8px 0 2px; }
.act-group-label:first-child { margin-top: 0; }
.activity-empty { text-align: center; padding: 22px; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--panel-2); }
.ae-title { font-weight: 620; }
.ae-body { color: var(--muted); font-size: 13px; margin-top: 4px; }
.act-card { border: 1px solid var(--line); border-radius: 11px; background: var(--panel-2); overflow: hidden; }
.act-card > summary { display: flex; align-items: center; gap: 12px; padding: 11px 14px; cursor: pointer; list-style: none; }
.act-card > summary::-webkit-details-marker { display: none; }
.act-ic { width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: #eceeea; color: var(--muted); }
.act-ic.running { background: var(--info-soft); color: var(--info); animation: pulse 2s ease-in-out infinite; }
.act-ic.done { background: var(--signal-soft); color: var(--signal); }
.act-ic.blocked, .act-ic.failed { background: var(--halt-soft); color: var(--halt); }
.act-ic.waiting { background: var(--attention-soft); color: var(--attention); }
.act-main { min-width: 0; flex: 1; }
.act-label { font-weight: 600; font-size: 14px; }
.act-meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; flex-wrap: wrap; }
.act-source { font-size: 11.5px; color: var(--faint); }
.act-ts { font-size: 11.5px; color: var(--faint); font-family: var(--mono); margin-left: auto; }
.act-detail { padding: 0 14px 13px 52px; color: var(--muted); font-size: 13px; }
.act-card[open] .act-detail { border-top: 1px dashed var(--line); padding-top: 11px; }
.act-kv { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* --- SLICE4: activity journal polish (renderer-only) ---
   Calm, human-readable journal. The default (info) glyph uses the brand tint instead of a hardcoded
   light square so it never reads as a broken avatar in the dark theme; status-specific .act-ic rules
   above still win on their own specificity. */
.act-ic { background: var(--brand-soft); color: var(--brand); }
.act-row { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.act-row .act-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-count {
  flex: none; font-size: 11px; font-weight: 650; letter-spacing: .02em;
  color: var(--brand); background: var(--brand-soft); border: 1px solid var(--brand-line);
  border-radius: 999px; padding: 1px 8px; font-variant-numeric: tabular-nums;
}
.act-when { font-size: 11.5px; color: var(--faint); margin-left: auto; white-space: nowrap; }
.act-dtext { color: var(--muted); }
.act-occ { margin-top: 10px; }
.act-occ-h { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 650; margin-bottom: 6px; }
.act-occ-list { display: flex; flex-wrap: wrap; gap: 6px; }
.act-occ-ts { font-size: 11px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.activity-empty .ae-mark {
  display: inline-grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 10px;
  border-radius: 9px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 15px;
}

/* ---------- roadmap route bar + lanes ---------- */
.route-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.route-item { flex: 1 1 180px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 12px 15px; box-shadow: var(--shadow-sm); }
.route-k { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); font-weight: 650; }
.route-v { display: block; font-family: var(--mono); font-size: 13px; margin-top: 4px; word-break: break-all; }
.lane-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 1100px) { .lane-board { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .lane-board { grid-template-columns: 1fr; } }
.lane { border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); padding: 10px; min-height: 60px; }
.lane-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; padding: 0 4px; }
.lane-title { font-weight: 650; font-size: 12.5px; }
.lane-count { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; min-width: 20px; text-align: center; padding: 1px 6px; }
.lane-cards { display: flex; flex-direction: column; gap: 7px; }
.lane-card { border: 1px solid var(--line); border-left: 3px solid var(--line-strong); border-radius: 8px; background: var(--panel); padding: 9px 10px; }
.lane-card.done { border-left-color: var(--signal); }
.lane-card.next { border-left-color: var(--info); }
.lane-card.draft { border-left-color: var(--attention); }
.lane-card.held { border-left-color: var(--attention); }
.lane-card.planned { border-left-color: var(--line-strong); }
.lc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lc-tag { font-family: var(--mono); font-size: 11px; font-weight: 600; word-break: break-all; }
.lc-lane { font-size: 10px; color: var(--faint); flex: none; }
.lc-sum { color: var(--muted); font-size: 12px; margin-top: 4px; }
.lc-why { color: var(--faint); font-size: 11px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lane-empty { color: var(--faint); text-align: center; padding: 8px; font-size: 12px; }
.native-lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .native-lanes { grid-template-columns: 1fr; } }
.native-lane { }
.nl-name { font-size: 12.5px; font-weight: 600; margin-bottom: 5px; }
.nl-bar { height: 6px; border-radius: 999px; background: #e7eae5; overflow: hidden; }
.nl-bar > i { display: block; height: 100%; background: var(--signal); border-radius: 999px; }
.nl-meta { font-size: 11.5px; color: var(--faint); margin-top: 4px; }

/* ---------- trust strip / flow ---------- */
.trust-strip { display: flex; align-items: center; gap: 10px; background: var(--signal-soft); color: var(--signal); border: 1px solid var(--signal-line); border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }
.trust-strip .trust-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); flex: none; }
.trust-strip.subtle { background: var(--panel-2); color: var(--muted); border-color: var(--line); margin-bottom: 12px; }
.flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.flow-step { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.flow-step b { width: 18px; height: 18px; border-radius: 50%; background: var(--signal-soft); color: var(--signal); display: grid; place-items: center; font-size: 11px; }

/* ---------- key commands ---------- */
.key-cmds { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.kc-label { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }

/* ---------- evidence search / reports ---------- */
.ev-search { width: 100%; font-family: inherit; font-size: 14px; padding: 10px 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--panel-2); color: var(--ink); }
.ev-search:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.ev-filters { display: flex; align-items: center; gap: 6px; margin: 12px 0; flex-wrap: wrap; }
.ef-label { font-size: 12px; color: var(--faint); margin-right: 2px; }
.ef-btn { font-family: inherit; font-size: 12px; cursor: pointer; border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); border-radius: 7px; padding: 4px 11px; }
.ef-btn:hover { color: var(--ink); }
.ef-btn.active { background: var(--signal-soft); color: var(--signal); border-color: var(--signal-line); font-weight: 600; }
.ev-list { display: flex; flex-direction: column; gap: 10px; }
.ev-item { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--panel-2); }
.ev-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ev-mission { color: var(--muted); font-size: 13px; margin: 5px 0; }
.report-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.report-btn { font-family: inherit; font-size: 13px; cursor: pointer; text-decoration: none; display: inline-block;
  border: 1px solid var(--line-strong); background: var(--panel-2); color: var(--ink); border-radius: 9px; padding: 8px 14px; }
.report-btn:hover { background: var(--signal-soft); color: var(--signal); border-color: var(--signal-line); }
.report-out { margin-top: 12px; }
.report-pre { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; font-family: var(--mono); font-size: 12px; white-space: pre-wrap; word-break: break-word; max-height: 360px; overflow: auto; margin: 12px 0 0; color: var(--ink); }

/* ---------- QA reframe ---------- */
.rg-readiness-banner { background: var(--attention-soft); color: var(--attention); border: 1px solid var(--attention); border-radius: 10px; padding: 11px 14px; font-size: 13px; margin: 4px 0 16px; }
.qa-group.rg-owner { border-left: 3px solid var(--attention); }

/* ---------- support ticket form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 12px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field-l { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.field-select, .field-text, .field-area { font-family: inherit; font-size: 14px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--panel-2); color: var(--ink); width: 100%; }
.field-area { resize: vertical; }
.field-select:focus, .field-text:focus, .field-area:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field-check { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.field-check input { margin-top: 3px; }
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.primary-btn { font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; border: 0; background: var(--signal); color: #fff; border-radius: 10px; padding: 10px 18px; }
.primary-btn:hover { filter: brightness(1.05); }
.primary-btn:disabled { opacity: .6; cursor: default; }
.ticket-out { margin-top: 14px; }
.ticket-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.ticket-id { font-size: 13px; font-weight: 600; }

/* ---------- codegraph ---------- */
.cg-headline { font-size: 16px; font-weight: 620; margin-bottom: 14px; }
.cg-areas { display: flex; flex-direction: column; gap: 9px; margin-bottom: 8px; }
.cg-area { display: grid; grid-template-columns: 140px 1fr 40px; gap: 12px; align-items: center; }
.cg-name { font-size: 13px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cg-bar { height: 8px; border-radius: 999px; background: #e7eae5; overflow: hidden; }
.cg-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--signal), var(--info)); border-radius: 999px; }
.cg-count { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; }
@media (max-width: 600px) { .cg-area { grid-template-columns: 90px 1fr 34px; } }

/* ---------- CodeGraph 4D ---------- */
.cg4d-answers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
@media (max-width: 820px) { .cg4d-answers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .cg4d-answers { grid-template-columns: 1fr; } }
.cg4d-ans { border: 1px solid var(--line); border-left: 3px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--panel-2); padding: 11px 13px; }
.cg4d-ans.good { border-left-color: var(--signal); }
.cg4d-ans.warn { border-left-color: var(--attention); }
.cg4d-ans.blocked { border-left-color: var(--halt); }
.cg4d-ans-q { font-size: 11.5px; color: var(--muted); margin-bottom: 5px; }
.cg4d-ans-a { font-size: 13.5px; font-weight: 550; color: var(--ink); line-height: 1.35; word-break: break-word; }
.cg4d-ans-a .mono { font-family: var(--mono); font-size: 12.5px; }
.cg4d-why { font-weight: 400; color: var(--muted); }

.cg4d-canvas { display: flex; justify-content: center; padding: 6px 0 2px; }
.cg4d-svg { width: 100%; max-width: 560px; height: auto; }
.cg4d-empty { padding: 28px; text-align: center; color: var(--muted); font-size: 13px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--panel-2); }
.cg4d-edge { stroke: var(--brand-line); opacity: .9; }
.cg4d-edge.gated { stroke: var(--attention); stroke-dasharray: 4 4; opacity: .7; }
.cg4d-node circle { stroke-width: 2; }
.cg4d-node.fresh circle { fill: var(--signal-soft); stroke: var(--signal); }
.cg4d-node.stale circle { fill: var(--attention-soft); stroke: var(--attention); }
.cg4d-node.unknown circle { fill: #eceeea; stroke: var(--faint); }
.cg4d-label { font-family: var(--sans); font-size: 10.5px; fill: var(--muted); }
.cg4d-num { font-family: var(--mono); font-size: 11px; font-weight: 600; fill: var(--ink); }
.cg4d-rel-note { margin-top: 4px; font-size: 12px; color: var(--attention); text-align: center; }
.cg4d-legend { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 10px;
  font-size: 12px; color: var(--muted); }
.cg4d-key { display: inline-flex; align-items: center; gap: 6px; }
.cg4d-dot { width: 12px; height: 12px; border-radius: 999px; border: 2px solid var(--faint); display: inline-block; }
.cg4d-dot.fresh { background: var(--signal-soft); border-color: var(--signal); }
.cg4d-dot.stale { background: var(--attention-soft); border-color: var(--attention); }
.cg4d-dot.unknown { background: #eceeea; border-color: var(--faint); }
.cg4d-line { width: 18px; height: 0; border-top: 3px solid var(--brand-line); display: inline-block; }

.cg4d-dims { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 700px) { .cg4d-dims { grid-template-columns: 1fr; } }
.cg4d-dim { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2); padding: 11px 13px; }
.cg4d-dim-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.cg4d-dim-label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.cg4d-dim-q { font-size: 12px; color: var(--info); margin-bottom: 4px; }
.cg4d-dim-sum { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.cg4d-dim-src { font-size: 11px; color: var(--faint); margin-top: 5px; font-family: var(--mono); }

html[data-theme="dark"] .cg4d-node.unknown circle { fill: #222b28; }
html[data-theme="dark"] .cg4d-dot.unknown { background: #222b28; }

/* ---------- 4D Layer Graph (self-contained dark mission-control surface) ---------- */
.g4d-wrap { display: flex; flex-direction: column; gap: 12px; }
.g4d-board {
  display: grid; grid-template-columns: 232px 1fr; gap: 0; border-radius: 14px; overflow: hidden;
  border: 1px solid #1c2433;
  background:
    radial-gradient(1200px 480px at 62% 8%, rgba(60,90,160,.16), transparent 60%),
    linear-gradient(180deg, #0b1018 0%, #0a0d14 100%);
  color: #cdd6e4;
}
@media (max-width: 820px) { .g4d-board { grid-template-columns: 1fr; } }
/* left layer legend */
.g4d-layerlist { padding: 16px 14px; border-right: 1px solid rgba(255,255,255,.06); display: flex; flex-direction: column; gap: 9px; }
@media (max-width: 820px) { .g4d-layerlist { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.06); flex-direction: row; flex-wrap: wrap; } }
.g4d-layeritem { display: flex; align-items: flex-start; gap: 9px; }
.g4d-swatch { width: 11px; height: 11px; border-radius: 3px; margin-top: 3px; flex: none; box-shadow: 0 0 7px rgba(255,255,255,.12); }
.g4d-layermeta { min-width: 0; flex: 1; }
.g4d-layername { font-size: 12.5px; font-weight: 600; color: #e6ecf6; }
.g4d-layerq { font-size: 10.5px; color: #76829a; line-height: 1.3; }
.g4d-layeritem .chip { font-size: 9.5px; padding: 1px 6px; }
/* svg canvas */
.g4d-canvas { padding: 8px 12px 14px; min-width: 0; }
.g4d-svg { width: 100%; height: auto; display: block; }
/* spatial viewport: preset bar + projected volume + controls + orientation cube */
.g4d-viewcol { min-width: 0; display: flex; flex-direction: column; }
.g4d-presetbar { display: flex; align-items: center; gap: 7px; padding: 11px 14px 9px; flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,.05); }
.g4d-preset-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: #6b7488; margin-right: 2px; }
.g4d-preset { font-family: inherit; font-size: 11.5px; color: #aeb9cc; cursor: pointer;
  background: rgba(255,255,255,.03); border: 1px solid #283246; border-radius: 999px; padding: 5px 13px;
  transition: background .14s, color .14s, border-color .14s; }
.g4d-preset:hover { color: #eaf0fa; border-color: #3a4760; }
.g4d-preset.active { background: rgba(90,140,235,.18); border-color: #5a8ceb; color: #dce8ff; }
/* layer-focus nav (right of the preset bar) */
.g4d-layernav { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding-left: 10px; }
.g4d-layernav-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: #6b7488; }
.g4d-layernav-btn { font-family: inherit; font-size: 12px; line-height: 1; color: #aeb9cc; cursor: pointer;
  background: rgba(255,255,255,.03); border: 1px solid #283246; border-radius: 7px; padding: 4px 8px;
  transition: background .14s, color .14s, border-color .14s; }
.g4d-layernav-btn:hover { color: #eaf0fa; border-color: #3a4760; }
.g4d-layernav-btn:active { background: rgba(90,140,235,.24); }
.g4d-layer-cur { font-size: 11px; color: #cbd5e6; min-width: 96px; text-align: center; }
.g4d-viewport { position: relative; min-width: 0; }
/* the projected volume is the primary surface: drag to orbit, scroll to zoom */
.g4d-stage { padding: 4px 10px 8px; min-width: 0; cursor: grab; touch-action: none;
  user-select: none; -webkit-user-select: none; outline: none; }
.g4d-stage.dragging { cursor: grabbing; }
.g4d-stage:focus-visible { box-shadow: inset 0 0 0 2px rgba(90,140,235,.5); border-radius: 12px; }
.g4d-space { fill: transparent; }
/* interaction hint (top-left overlay) */
.g4d-hint { position: absolute; left: 16px; top: 10px; font-size: 11px; color: #8893a8; pointer-events: none;
  background: rgba(10,14,20,.6); border: 1px solid rgba(255,255,255,.06); border-radius: 999px;
  padding: 4px 11px; backdrop-filter: blur(3px); letter-spacing: .01em; }
/* d-pad + zoom controls (bottom-left overlay); the d-pad is a demoted fallback — drag is primary */
.g4d-controls { position: absolute; left: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 10px; }
.g4d-dpad { display: grid; grid-template-columns: repeat(3, 32px); grid-auto-rows: 32px; gap: 4px;
  opacity: .4; transition: opacity .16s; }
.g4d-viewport:hover .g4d-dpad, .g4d-dpad:focus-within { opacity: 1; }
.g4d-zoom { display: flex; gap: 4px; }
.g4d-ctl { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 1; color: #cdd6e4; cursor: pointer;
  background: rgba(13,19,28,.78); border: 1px solid #2a3447; border-radius: 8px;
  backdrop-filter: blur(3px); transition: background .14s, border-color .14s, color .14s; }
.g4d-ctl:hover { background: rgba(40,58,86,.9); border-color: #466; color: #eaf0fa; }
.g4d-ctl:active { background: rgba(90,140,235,.28); }
/* orientation cube (bottom-right depth cue) */
.g4d-cube-wrap { position: absolute; right: 14px; bottom: 14px; width: 80px; height: 80px; pointer-events: none; }
.g4d-cube { width: 80px; height: 80px; overflow: visible; }
.g4d-cube line { stroke: rgba(150,170,205,.55); stroke-width: 1; }
.g4d-cube-l { position: absolute; font-size: 8.5px; color: #7c8aa3; text-transform: uppercase; letter-spacing: .04em; }
.g4d-cube-l.up { top: -4px; left: 50%; transform: translateX(-50%); }
.g4d-cube-l.down { bottom: -4px; left: 50%; transform: translateX(-50%); }
.g4d-cube-l.left { left: -16px; top: 50%; transform: translateY(-50%); }
.g4d-cube-l.right { right: -22px; top: 50%; transform: translateY(-50%); }
.g4d-cube-l.front { bottom: 14px; left: 50%; transform: translateX(-50%); color: #95a3bd; }
.g4d-plane { fill: var(--lc); fill-opacity: .07; stroke: var(--lc); stroke-opacity: .28; stroke-width: 1; }
.g4d-plane.k-unavailable { fill-opacity: .025; stroke-opacity: .12; }
.g4d-plane.gated { fill: #e9a23b; fill-opacity: .06; stroke: #e9a23b; stroke-opacity: .4; stroke-dasharray: 6 5; }
.g4d-plane.focused { fill-opacity: .17; stroke-opacity: .65; stroke-width: 1.8; }
.g4d-plane-edge { stroke: var(--lc); stroke-opacity: .55; stroke-width: 1.4; }
.g4d-layer-label { font-family: var(--sans); font-size: 12px; font-weight: 700; fill: var(--lc); }
.g4d-layer-sub { font-family: var(--mono); font-size: 9px; fill: #6b7488; text-transform: uppercase; letter-spacing: .04em; }
/* edges */
.g4d-edge.dep { stroke: #38d6e0; stroke-opacity: .8; }
.g4d-edge.dep.gated { stroke: #e9a23b; stroke-dasharray: 4 4; stroke-opacity: .65; }
.g4d-edge.bind { stroke: #cfe0ff; stroke-opacity: .7; }
.g4d-arrow-head { fill: #cfe0ff; }
.g4d-gap { stroke: rgba(180,195,225,.28); stroke-dasharray: 2 5; stroke-width: 1.2; }
/* nodes */
.g4d-node circle { fill: var(--lc); stroke: #0a0d14; stroke-width: 1.5; filter: drop-shadow(0 0 5px color-mix(in srgb, var(--lc) 60%, transparent)); }
.g4d-node.st-unavailable circle { fill: transparent; stroke: var(--lc); stroke-opacity: .5; stroke-dasharray: 3 3; filter: none; }
.g4d-node.st-stale circle { stroke: #e9a23b; stroke-width: 2; stroke-dasharray: 3 3; }
.g4d-node.st-blocked circle { stroke: #ff6b5e; stroke-width: 2.5; filter: drop-shadow(0 0 6px rgba(255,107,94,.7)); }
.g4d-node-label { font-family: var(--sans); font-size: 11px; font-weight: 600; fill: #eaf0fa; }
.g4d-node-sub { font-family: var(--sans); font-size: 9.5px; fill: #828ea3; }
/* signal-kind + edge legend */
.g4d-legend { display: flex; flex-direction: column; gap: 6px; padding: 0 2px; }
.g4d-legend-row { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.g4d-key { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); }
.g4d-dot { width: 11px; height: 11px; border-radius: 999px; display: inline-block; border: 2px solid var(--faint); }
.g4d-dot.k-real { background: #2f7d4f; border-color: #46c578; }
.g4d-dot.k-partial { background: #7a5a16; border-color: #e9a23b; }
.g4d-dot.k-advisory { background: #2a4a86; border-color: #5b8def; }
.g4d-dot.k-unavailable { background: transparent; border-color: var(--faint); border-style: dashed; }
.g4d-line { width: 20px; height: 0; display: inline-block; }
.g4d-line.dependency { border-top: 3px solid #38d6e0; }
.g4d-line.contract_binding { border-top: 2px solid #8fb4ff; }
.g4d-line.not_bound { border-top: 2px dashed rgba(150,165,195,.6); }
/* bottom status bar */
.g4d-statusbar { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px 12px; border-radius: 10px;
  background: linear-gradient(180deg, #0d1219, #0b0f16); border: 1px solid #1c2433; }
.g4d-statcell { display: flex; flex-direction: column; gap: 2px; padding: 2px 12px; min-width: 0; }
.g4d-statcell + .g4d-statcell { border-left: 1px solid rgba(255,255,255,.07); }
.g4d-stat-k { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: #6b7488; }
.g4d-stat-v { font-size: 12.5px; color: #d8e0ec; }
.g4d-stat-v .mono { font-family: var(--mono); font-size: 11.5px; }
.g4d-statcell.good .g4d-stat-v { color: #5fd089; }
.g4d-statcell.warn .g4d-stat-v { color: #f0b24b; }

/* ---------- theme button ---------- */
.theme-btn { display: flex; align-items: center; gap: 8px; width: 100%; cursor: pointer; font-family: inherit; font-size: 13px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); border-radius: 999px; padding: 7px 12px; margin-bottom: 10px; transition: background .15s, color .15s; }
.theme-btn:hover { background: var(--signal-soft); color: var(--signal); border-color: var(--signal-line); }
.theme-ic { display: inline-flex; }

/* ---------- Setup Center ---------- */
.setup-os { display: flex; align-items: center; gap: 10px; margin: 2px 0 14px; }
.setup-list { display: flex; flex-direction: column; }
.setup-step { padding: 14px 0; border-top: 1px solid var(--line); }
.setup-step:first-child { border-top: none; }
.setup-step.blocked, .setup-step.missing { border-left: 3px solid var(--signal-line); padding-left: 12px; margin-left: -12px; }
.setup-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.setup-label { font-weight: 600; font-size: 14px; }
.setup-writes { color: var(--faint); font-size: 12px; margin: 4px 0 8px; font-family: var(--mono); }
.setup-verify { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.setup-ex { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--panel-2); margin-bottom: 12px; }
.setup-ex .panel-title { margin-bottom: 8px; }
.setup-ex .kc-label { color: var(--faint); font-size: 11.5px; margin: 8px 0 3px; text-transform: uppercase; letter-spacing: .04em; }

/* ====================== Durable Events — Governed-Runner durable advisory event card ======================
   Renderer-only surface. Signature element: a chain-integrity strip drawn from the reader's chain status +
   event totals. Brand tokens only (graphite base, cyan/violet identity, mint=functional pass, amber=degraded,
   clay=invalid). Green is used only where the chain literally verifies, with a precise non-correctness label. */

/* state banner — accent rule + reader's own label + plain-language meaning (never colour-only) */
.de-banner { border: 1px solid var(--line); border-left: 3px solid var(--line-strong); border-radius: 12px;
  padding: 15px 17px; background: var(--panel-2); margin-bottom: 18px; }
.de-banner-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.de-banner-state { font-weight: 660; font-size: 15.5px; letter-spacing: -.01em; color: var(--ink); }
.de-banner-meaning { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; max-width: 66ch; }
.de-verified { border-left-color: var(--signal); background: var(--signal-soft); }
.de-verified .de-banner-state { color: var(--signal); }
.de-quiet { border-left-color: var(--brand-line); }
.de-unbound { border-left-color: var(--attention); background: var(--attention-soft); }
.de-unbound .de-banner-state { color: var(--attention); }
.de-tampered { border-left-color: var(--halt); background: var(--halt-soft); }
.de-tampered .de-banner-state { color: var(--halt); }
.de-unknown { border-left-color: var(--attention); }
.de-unknown .de-banner-state { color: var(--attention); }

/* chain-integrity strip (signature) + count caption */
.de-chain-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding: 2px 2px 0; margin-bottom: 18px; }
.de-chain { display: flex; align-items: center; min-height: 24px; }
.de-link { width: 20px; height: 20px; border-radius: 6px; flex: none; box-sizing: border-box; }
.de-link-solid { background: var(--brand-soft); border: 1.5px solid var(--brand-line); }
.de-link-head { background: var(--brand-2-soft); border: 1.5px solid var(--brand-2); box-shadow: 0 0 0 3px var(--brand-2-soft); }
.de-link-suspect { background: var(--halt-soft); border: 1.5px solid var(--halt); }
.de-link-ghost { background: transparent; border: 1.5px dashed var(--line-strong); }
.de-join { width: 16px; height: 2px; background: var(--brand-line); flex: none; }
.de-join-ghost { background: none; border-top: 2px dashed var(--line-strong); height: 0; }
.de-join-break { width: 18px; background: none; border-top: 2px dotted var(--halt); height: 0; }
.de-anchor { color: var(--faint); font-weight: 700; padding-right: 6px; font-family: var(--mono); font-size: 14px; }
.de-chain-ghost-tag { margin-left: 11px; font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.de-chain-count { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.de-chain-count b { color: var(--ink); font-weight: 660; font-variant-numeric: tabular-nums; }
.de-chain-count .de-dot { color: var(--faint); margin: 0 2px; }

/* latest durable advisory event — a contained record block, only when one exists */
.de-event { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 15px 17px;
  box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.de-event-head { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.de-event-title { font-weight: 640; font-size: 13.5px; }
.de-event-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 24px; }
@media (max-width: 640px) { .de-event-grid { grid-template-columns: 1fr; } }
.de-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.de-field-k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); font-weight: 650; }
.de-field-v { font-size: 13.5px; color: var(--ink); word-break: break-word; }

/* quiet provenance line */
.de-source { margin-bottom: 14px; }
.de-path { word-break: break-all; }

/* claim clarity — the honesty statement, always visible, plain language */
.de-claim { display: flex; align-items: baseline; gap: 9px; font-size: 12.5px; color: var(--muted);
  padding: 11px 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; }
.de-claim-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); flex: none; align-self: center; }
.de-claim-em { font-family: var(--mono); font-size: 12px; color: var(--ink); white-space: nowrap; }

/* renderer guarantees — technical pins, collapsed until asked for; keyboard-focusable */
.de-guarantees { border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); margin-bottom: 14px; }
.de-guarantees-sum { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 10px;
  padding: 11px 14px; font-weight: 600; font-size: 13px; color: var(--ink); border-radius: 10px; }
.de-guarantees-sum::-webkit-details-marker { display: none; }
.de-guarantees-sum::after { content: "\25B8"; color: var(--faint); margin-left: auto; font-size: 11px; transition: transform .15s; }
.de-guarantees[open] .de-guarantees-sum::after { transform: rotate(90deg); }
.de-guarantees-sum:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-soft); border-color: var(--brand); }
.de-guarantees-hint { color: var(--faint); font-weight: 400; font-size: 12px; }
.de-guarantees-body { padding: 2px 14px 14px; display: flex; flex-direction: column; gap: 7px; border-top: 1px solid var(--line); }
.de-guarantees-body .kc-label { margin: 8px 0 0; }

.de-foot { color: var(--faint); font-size: 12px; line-height: 1.5; max-width: 74ch; }

/* ====================== AAA cockpit (Overview refresh) ====================== */
/* Claim-safety ribbon — makes "internal / advisory" obvious without alarm. */
.claim-ribbon { display: flex; align-items: center; gap: 9px; margin-top: 16px; font-size: 12.5px;
  color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 13px; }
.claim-ribbon .cr-dot { width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--attention); box-shadow: 0 0 0 4px var(--attention-soft); }
.claim-ribbon .cr-txt { line-height: 1.45; }

/* Run Journey — the signature. Owner identity carries the colour: cyan = Reality Graph,
   violet = Claude, neutral = you. Status is shown by fill/opacity, never a green success theatre. */
.jrny-track { display: flex; align-items: flex-start; margin: 4px 0 16px; }
.jrny-stage { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center;
  position: relative; padding: 0 6px; }
.jrny-stage::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px;
  background: var(--line-strong); z-index: 0; }
.jrny-stage:first-child::before { display: none; }
.jrny-stage.is-waiting { opacity: .72; }
.jrny-node { width: 32px; height: 32px; border-radius: 50%; z-index: 1; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; background: var(--panel); border: 2px solid var(--line-strong); color: var(--faint); }
.jrny-node.rg { border-color: var(--brand); color: var(--brand); }
.jrny-node.claude { border-color: var(--brand-2); color: var(--brand-2); }
.jrny-node.you { border-color: var(--line-strong); color: var(--muted); }
.jrny-node.is-ready.rg { background: var(--brand-soft); }
.jrny-node.is-ready.claude { background: var(--brand-2-soft); }
.jrny-node.is-current { box-shadow: 0 0 0 4px var(--brand-soft); }
.jrny-label { font-size: 12.5px; font-weight: 620; margin-top: 9px; color: var(--ink); max-width: 14ch; }
.jrny-owner { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; margin-top: 3px;
  color: var(--faint); font-weight: 650; }
.jrny-desc { font-size: 11.5px; color: var(--muted); margin-top: 5px; max-width: 18ch; line-height: 1.4; }
.jrny-legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 13px 0 2px; border-top: 1px solid var(--line); }
.jl { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.jl i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.jl.rg i { background: var(--brand); }
.jl.claude i { background: var(--brand-2); }
.jl.you i { background: var(--faint); }
.jrny-now { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; }
.jrny-now-k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--brand);
  font-weight: 700; flex: none; }
.jrny-now-v { font-size: 13px; color: var(--ink); line-height: 1.45; }
@media (max-width: 760px) {
  .jrny-track { flex-wrap: wrap; row-gap: 18px; }
  .jrny-stage { flex: 0 0 33%; }
  .jrny-stage::before { display: none; }
}

/* Safety boundary rail — guarantees read from the live boundary contract. */
.srail { display: flex; flex-direction: column; }
.srail-row { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-top: 1px solid var(--line); }
.srail-row:first-child { border-top: 0; }
.srail-mark { width: 22px; height: 22px; flex: none; border-radius: 7px; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; background: var(--brand-soft); color: var(--brand); }
.srail-row.unknown .srail-mark { background: var(--attention-soft); color: var(--attention); }
.srail-txt { font-size: 13.5px; color: var(--ink); }

/* Advisory evidence trace — honest unbound state, advisory framing. */
.atrace-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.atrace-tag { font-size: 11px; color: var(--faint); font-family: var(--mono); }
.atrace-empty { border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--panel-2); padding: 14px; }
.atrace-empty-t { font-size: 13px; color: var(--muted); }
.atrace-empty-b { font-size: 12px; color: var(--faint); margin-top: 5px; line-height: 1.45; }
.atrace-foot { font-size: 11.5px; color: var(--faint); margin-top: 12px; line-height: 1.45; }

/* Advanced technical ledger — raw internal fields, collapsed by default. */
.tledger { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  box-shadow: var(--shadow-sm); margin-bottom: 18px; overflow: hidden; }
.tledger > summary { display: flex; align-items: baseline; gap: 10px; padding: 15px 20px; cursor: pointer; list-style: none; }
.tledger > summary::-webkit-details-marker { display: none; }
.tledger > summary::before { content: "\25B8"; color: var(--faint); font-size: 11px; }
.tledger[open] > summary::before { content: "\25BE"; }
.tledger > summary:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--brand-soft); }
.tl-title { font-weight: 620; font-size: 13.5px; }
.tl-hint { font-size: 11.5px; color: var(--faint); margin-left: auto; }
.tl-body { padding: 0 20px 16px; }

/* ====================== DASHBOARD-AAA-UX-REFRESH-VERTICAL-SLICE2 ====================== */

/* Route rail — the between-sprint view: where you are -> the registry's next step.
   Reuses the journey's owner-colour vocabulary (cyan = Reality Graph leads). */
.route-rail { display: flex; align-items: stretch; gap: 14px; margin: 2px 0 14px; }
.rr-node { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel-2); padding: 13px 15px; }
.rr-node.is-current { border-color: var(--brand-line); }
.rr-node.is-current::before { content: ""; display: block; width: 26px; height: 3px; border-radius: 2px;
  background: var(--brand); margin-bottom: 9px; }
.rr-node.is-next { border-style: dashed; }
.rr-node.is-next::before { content: ""; display: block; width: 26px; height: 3px; border-radius: 2px;
  background: var(--line-strong); margin-bottom: 9px; }
.rr-node-k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.rr-node-v { font-size: 13px; color: var(--ink); margin-top: 5px; word-break: break-word; line-height: 1.4; }
.rr-arrow { flex: none; align-self: center; color: var(--faint); font-size: 20px; }
.rr-prov { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.rr-prov-t { font-size: 11px; color: var(--faint); font-family: var(--mono); }
.rr-foot { font-size: 11.5px; color: var(--faint); margin-top: 10px; line-height: 1.45; }
@media (max-width: 640px) {
  .route-rail { flex-direction: column; }
  .rr-arrow { transform: rotate(90deg); align-self: flex-start; }
}

/* Advisory signals strip — calm, honest degraded/status cards. Never functional green: a live
   signal is brand-cyan (informational), a degraded/off one is neutral. No alarm red. */
.sigstrip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .sigstrip { grid-template-columns: 1fr; } }
.sig-card { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2); padding: 13px 15px; }
.sig-card-h { display: flex; align-items: center; gap: 8px; }
.sig-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--line-strong); }
.sig-card.is-ok { border-color: var(--brand-line); }
.sig-card.is-ok .sig-dot { background: var(--brand); }
.sig-card-t { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 620; }
.sig-card-v { font-size: 16px; font-weight: 640; color: var(--ink); margin-top: 9px; letter-spacing: -.01em; }
.sig-card.is-ok .sig-card-v { color: var(--brand); }
.sig-card-n { font-size: 11.5px; color: var(--faint); margin-top: 5px; line-height: 1.45; }

/* Grouped technical ledger — six meaningful clusters instead of one flat dump. */
.tl-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 26px; }
@media (max-width: 760px) { .tl-groups { grid-template-columns: 1fr; } }
.tl-group { padding: 12px 0; border-top: 1px solid var(--line); }
.tl-group-h { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--brand);
  font-weight: 680; margin-bottom: 4px; }

/* ---------- slice3: the 60-second read ----------
   The command-center summary. Seven plain Q/A rows, each with a calm tone marker. Tone is
   informational, never green success theater: a held boundary reads brand-cyan, not signal-green. */
.glance { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
@media (max-width: 720px) { .glance { grid-template-columns: 1fr; } }
.glance-row { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.glance-row:first-child, .glance-row:nth-child(2) { border-top: 0; }
@media (max-width: 720px) { .glance-row:nth-child(2) { border-top: 1px solid var(--line); } }
.g-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; margin-top: 6px;
  background: var(--line-strong); box-shadow: 0 0 0 4px transparent; }
.glance-row.is-info .g-dot { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.glance-row.is-held .g-dot { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.glance-row.is-attention .g-dot { background: var(--attention); box-shadow: 0 0 0 4px var(--attention-soft); }
.glance-row.is-calm .g-dot { background: var(--muted); }
.glance-row.is-muted .g-dot { background: var(--faint); }
.g-q { font-size: 13.5px; font-weight: 640; color: var(--ink); letter-spacing: -.01em; }
.g-a { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.5; max-width: 46ch; }
.glance-row.is-muted .g-a { color: var(--faint); }

/* Plain-language guide — a collapsed glossary that reuses the ledger's disclosure shell. */
.glossary { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  box-shadow: var(--shadow-sm); margin-bottom: 14px; overflow: hidden; }
.glossary > summary { display: flex; align-items: baseline; gap: 10px; padding: 14px 20px; cursor: pointer; list-style: none; }
.glossary > summary::-webkit-details-marker { display: none; }
.glossary > summary::before { content: "\25B8"; color: var(--faint); font-size: 11px; }
.glossary[open] > summary::before { content: "\25BE"; }
.glossary > summary:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--brand-soft); }
.gloss { display: grid; gap: 2px; }
.gloss-row { display: grid; grid-template-columns: minmax(0, 16em) 1fr; gap: 6px 18px; align-items: baseline;
  padding: 10px 0; border-top: 1px solid var(--line); }
@media (max-width: 620px) { .gloss-row { grid-template-columns: 1fr; gap: 2px; } }
.gloss-term { color: var(--brand); font-size: 12.5px; }
.gloss-plain { font-size: 13px; color: var(--ink); line-height: 1.5; }

/* Advisory evidence chain — the durable trail as a vertical chain, not a row of labels.
   Each link is honest about its state; the unbound terminal link is shown open, never hidden. */
.evchain { display: flex; flex-direction: column; margin: 4px 0 2px; }
.evn { display: flex; gap: 14px; position: relative; padding: 0 0 16px; }
.evn:last-child { padding-bottom: 0; }
.evn::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 2px;
  background: var(--line); }
.evn:last-child::before { display: none; }
.evn-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; margin-top: 2px; z-index: 1;
  border: 2px solid var(--line-strong); background: var(--panel); box-sizing: border-box; }
.evn.is-done .evn-dot { border-color: var(--brand); background: var(--brand-soft); }
.evn.is-done::before { background: var(--brand-line); }
.evn.is-open .evn-dot { border-style: dashed; border-color: var(--line-strong); }
.evn-k { font-size: 13.5px; font-weight: 620; color: var(--ink); }
.evn.is-idle .evn-k, .evn.is-open .evn-k { color: var(--muted); }
.evn-v { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; max-width: 52ch; }
.evn.is-open .evn-v { color: var(--faint); }

/* Safety boundary summary — a calm held-count line above the rail. Not green success theater. */
.srail-sum { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line); }
.srail-sum-n { font-size: 19px; font-weight: 680; color: var(--brand); letter-spacing: -.02em; }
.srail-sum.partial .srail-sum-n { color: var(--attention); }
.srail-sum-t { font-size: 12.5px; color: var(--muted); }

/* Run journey — tint the connector leading into each reached stage, so flow/progress reads at a glance. */
.jrny-stage.is-ready::before, .jrny-stage.is-current::before { background: var(--brand-line); }

/* ====================== DASHBOARD-AAA-UX-REFRESH-VERTICAL-SLICE5 ======================
   Primary nav is five plain destinations; multi-section groups open a secondary pill nav. The
   information architecture is presentation only — Reality Graph still leads, the dashboard displays. */

/* Secondary nav — a calm pill row above the section view, sectioning a group without adding a card. */
.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line); }
.subnav-tab { border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer;
  font-family: inherit; font-size: 13px; padding: 7px 14px; border-radius: 999px; transition: background .15s, color .15s, border-color .15s; }
.subnav-tab:hover { background: var(--panel-2); color: var(--ink); }
.subnav-tab.active { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); font-weight: 600; }
.subnav-tab:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-soft); border-color: var(--brand); }

/* Run journey raised as the cockpit's signature band — a touch more presence than a plain panel,
   never loud. A hairline brand edge at the top reads as "this is the spine of the run." */
.journey-hero { border-color: var(--brand-line); background:
  linear-gradient(180deg, var(--brand-soft) 0%, transparent 64px), var(--panel); }
.journey-hero > .panel-title { font-size: 15.5px; }

/* Slim trust strip — the four standing reassurances, spaced to breathe under the review panel. */
.trust-strip { margin-top: 14px; margin-bottom: 4px; }

/* Collapsible disclosure (shares the ledger's chrome) — the detail behind the cockpit, folded away. */
.foldsec { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  box-shadow: var(--shadow-sm); margin-bottom: 18px; overflow: hidden; }
.foldsec > summary { display: flex; align-items: baseline; gap: 10px; padding: 15px 20px; cursor: pointer; list-style: none; }
.foldsec > summary::-webkit-details-marker { display: none; }
.foldsec > summary::before { content: "\25B8"; color: var(--faint); font-size: 11px; }
.foldsec[open] > summary::before { content: "\25BE"; }
.foldsec > summary:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--brand-soft); }
.foldsec .tl-body > .panel { border: 0; box-shadow: none; margin: 0; padding: 0; background: none; }

@media (prefers-reduced-motion: reduce) {
  .subnav-tab, .nav-item { transition: none; }
}

/* ---------- Mobile app shell (MOBILE-DASHBOARD-SHELL1) ----------
   At phone width the 252px desktop rail (the prep finding's main mobile blocker) is replaced by a
   premium webapp chrome: a sticky top header (brand · current section · theme) and a fixed bottom nav
   for the five primary groups, with full-bleed content between them. Built in JS (mount) so it stays
   in sync with GROUPS and the active route — no data contract changes. The chrome is display:none
   until 720px, so every desktop rule above is untouched. No animation loops / rAF; CSS transitions
   only. Both .m-topbar and .m-bottomnav inherit the theme tokens, so dark and light both read clean. */
.m-topbar, .m-demo-disclaimer, .m-bottomnav { display: none; }

@media (max-width: 720px) {
  .shell { grid-template-columns: 1fr; }
  .rail { display: none; }

  .stage {
    max-width: 100%;
    padding: calc(var(--m-top-h) + env(safe-area-inset-top, 0px) + 52px) 16px
             calc(var(--m-bot-h) + env(safe-area-inset-bottom, 0px) + 22px);
  }

  /* sticky top header */
  .m-topbar {
    display: flex; align-items: center; gap: 9px;
    position: fixed; top: 0; left: 0; right: 0; z-index: 60;
    height: calc(var(--m-top-h) + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 16px 0;
    background: var(--panel);
    background: color-mix(in srgb, var(--panel) 90%, transparent);
    -webkit-backdrop-filter: saturate(1.1) blur(10px); backdrop-filter: saturate(1.1) blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .m-brand { display: flex; align-items: center; gap: 8px; flex: none; }
  .m-brand svg { display: block; border-radius: 7px; box-shadow: var(--shadow-sm); }
  .m-brand-name { font-weight: 650; font-size: 13px; letter-spacing: -.01em; white-space: nowrap; }
  .m-sec-sep { color: var(--faint); flex: none; }
  .m-sec-title { font-weight: 650; font-size: 15.5px; letter-spacing: -.01em;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1 1 auto; }
  .m-theme {
    margin-left: auto; flex: none; min-width: 44px; min-height: 44px;
    display: grid; place-items: center; border-radius: 11px;
    background: none; border: 1px solid var(--line); color: var(--muted);
    cursor: pointer; font-family: inherit; transition: color .15s, background .15s, border-color .15s;
  }
  .m-theme:hover, .m-theme:active { color: var(--brand); border-color: var(--brand-line); background: var(--brand-soft); }

  .m-demo-disclaimer {
    display: block;
    position: fixed;
    top: calc(var(--m-top-h) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    z-index: 59;
    padding: 8px 16px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--panel) 94%, var(--brand) 6%);
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.3;
    white-space: normal;
  }

  /* fixed bottom nav — the five primary destinations, always reachable (no hamburger) */
  .m-bottomnav {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 6px 6px calc(env(safe-area-inset-bottom, 0px) + 6px);
    background: var(--panel);
    background: color-mix(in srgb, var(--panel) 92%, transparent);
    -webkit-backdrop-filter: saturate(1.1) blur(10px); backdrop-filter: saturate(1.1) blur(10px);
    border-top: 1px solid var(--line);
  }
  .m-navitem {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 50px; padding: 5px 2px; border: 0; background: none; cursor: pointer;
    color: var(--faint); font-family: inherit; font-size: 10.5px; font-weight: 550;
    border-radius: 12px; transition: color .15s, background .15s;
  }
  .m-navitem .nav-ic { width: 21px; height: 21px; opacity: .9; }
  .m-navitem.active { color: var(--brand); background: var(--brand-soft); }
  .m-navitem.active .nav-ic { opacity: 1; }
  .m-navlabel { line-height: 1; white-space: nowrap; }
  .m-navitem .nav-badge { position: absolute; top: 3px; left: 50%; margin-left: 5px; }

  /* sub-nav folds into a horizontal, swipeable chip row (no wrap, no sideways page scroll) */
  .subnav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    gap: 7px; margin: 0 -16px 16px; padding: 2px 16px 9px; scrollbar-width: none; }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav-tab { flex: 0 0 auto; min-height: 40px; }

  /* readability: 16px form fields (no iOS focus-zoom), comfortable touch targets, calmer panels */
  input, select, textarea { font-size: 16px; }
  .nav-item, .subnav-tab, button { touch-action: manipulation; }
  .panel { padding: 16px 16px; }

  /* no horizontal overflow: a long unbreakable value (repo path, commit tag, command) must wrap inside
     its own row, never stretch the view wider than the phone and force a sideways page scroll. The
     min-width:0 resets let flex/grid children shrink below their intrinsic content width. */
  .stage, .view, .panel, .grid2, .grid3 { min-width: 0; }
  /* key/value rows stack so a long value (commit tag, repo path) gets the panel's full width instead of
     being crammed beside its label and forced past the screen edge. */
  .kvr { flex-direction: column; align-items: flex-start; gap: 3px; }
  .kvr .k, .kvr .v { min-width: 0; max-width: 100%; }
  .kvr .v { text-align: left; overflow-wrap: anywhere; word-break: break-word; }
  .kvr .v .chip { white-space: normal; }
  .cmd, code { overflow-wrap: anywhere; word-break: break-word; }
}

/* ======= V1 Operator Control Center ======= */
.cc-wrap { display: flex; flex-direction: column; gap: 20px; }
.cc-header { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow-sm); }
.cc-state-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.cc-state-label { color: var(--muted); font-size: 13px; }
.cc-state-note { font-size: 14px; color: var(--text); margin-bottom: 10px; }
.cc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 900px) { .cc-grid { grid-template-columns: 1fr; } }
.cc-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm); }
.cc-card-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px;
  border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.cc-card-eyebrow { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.cc-card-title { font-size: 14.5px; font-weight: 600; color: var(--text); }
.cc-rows .kvr { padding: 7px 0; font-size: 13px; }
.cc-rows .kvr .k { font-size: 13px; }

/* ======= Reality AI Agile Board (DASHBOARD-REALITY-AI-AGILE-BOARD1) ======= */
/* Sprint flight strip: last -> recommended next -> after. The middle (current) cell is the focus. */
.flight-strip { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; align-items: stretch; }
.flight-cell { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 15px; display: flex; flex-direction: column; gap: 7px; position: relative; }
.flight-cell.current { border-color: var(--brand-line); background: var(--brand-soft); }
.flight-cell.future { opacity: .82; }
.fc-slot { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.fc-tag { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--ink);
  word-break: break-word; line-height: 1.3; }
.flight-cell.current .fc-tag { color: var(--brand); }
.fc-why { font-size: 12px; color: var(--muted); line-height: 1.45; flex: 1; }
.fc-foot { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }

/* Operator next action — the one panel to act from. Dark CTA surface like the overview CTA. */
.board-next { background: var(--ink); color: var(--ink-rev); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 18px; box-shadow: var(--shadow); }
html[data-theme="dark"] .board-next { background: #0c1210; border: 1px solid var(--line-strong); }
.bn-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.bn-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; opacity: .65; }
.bn-do { font-size: 16.5px; font-weight: 650; letter-spacing: -.01em; margin-top: 3px; max-width: 52ch; }
.bn-why { font-size: 13px; opacity: .8; margin-top: 9px; max-width: 70ch; line-height: 1.5; }
.bn-improves { font-size: 12.5px; opacity: .72; margin-top: 6px; }
.board-next .cmd-line { margin-top: 13px; }
.bn-donot { margin-top: 14px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 11px; }
.bn-donot-h { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; opacity: .6; margin-bottom: 6px; }
.bn-donot-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.bn-donot-list li { font-size: 12.5px; opacity: .82; line-height: 1.45; }

/* AI roadmap lanes — RG-native concerns. Calm, high-density grid. */
.board-lanes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1100px) { .board-lanes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .board-lanes { grid-template-columns: 1fr; } }
/* Vertical / scroll-friendly board (DASHBOARD-SHELL-ROADMAP-UX-STABILITY1): lanes stack in a single
   column so the operator scrolls DOWN through them instead of overflowing sideways. Cards inside a
   lane stay stacked (taller, more readable) — never a primarily-horizontal layout. */
.board-lanes.vertical { display: flex; flex-direction: column; gap: 12px; grid-template-columns: none; }
.board-lane { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 13px; display: flex; flex-direction: column; gap: 9px; }
.lane-head { display: flex; flex-direction: column; gap: 4px; }
.lane-title-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.lane-title { font-size: 13px; font-weight: 650; color: var(--ink); margin: 0; }
.lane-meaning { font-size: 11.5px; color: var(--faint); line-height: 1.4; }
.lane-detail { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.lane-cards { display: flex; flex-direction: column; gap: 7px; }
/* Compact, scannable sprint card. It is a real <button>: full-width, text-aligned, keyboard-native.
   The face holds only high-scan signals; full detail opens in the drawer on click. */
.lane-card { position: relative; width: 100%; text-align: left; font: inherit; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--line-strong);
  border-radius: 9px; padding: 9px 11px 9px 10px; display: flex; flex-direction: column; gap: 5px;
  transition: border-color .14s ease, box-shadow .14s ease, transform .12s ease, background .14s ease; }
.lane-card.clickable:hover { border-color: var(--brand-line); border-left-color: var(--brand);
  box-shadow: var(--shadow-sm); transform: translateY(-1px); background: var(--panel-2); }
.lane-card.clickable:focus-visible { outline: none; border-color: var(--brand-line);
  box-shadow: 0 0 0 3px var(--brand-soft); }
.lane-card.clickable:active { transform: translateY(0); }
.lane-card.head { border-left-color: var(--brand); }
.lane-card.head:hover { border-left-color: var(--brand); }
.lc-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.lc-tag { font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--ink);
  word-break: break-all; line-height: 1.3; }
.lc-active { flex: none; font-size: 8.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 2px 7px; }
.lc-status-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lc-why { font-size: 11px; color: var(--muted); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lc-route { font-size: 10.5px; color: var(--brand); }
.lc-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.lc-open { font-size: 10px; color: var(--faint); font-weight: 600; letter-spacing: .02em;
  opacity: .65; transition: color .14s ease, opacity .14s ease; }
.lc-open::after { content: " →"; }
.lane-card.clickable:hover .lc-open, .lane-card.clickable:focus-visible .lc-open { color: var(--brand); opacity: 1; }
.lc-claim { font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }
.lane-empty { font-size: 11.5px; color: var(--faint); padding: 6px 0; }
.lane-more { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ---- Compact, elongated sprint cards (DASHBOARD-KNOWLEDGE-UPLOAD-AIROADMAP-COMPACT-FIX1) ----
   Dense horizontal rows so far more cards fit on one screen. Less vertical padding, single-line reason,
   chips inline on the header line. All high-scan info stays visible; full detail opens in the drawer. */
.lane-cards { gap: 5px; }
.lane-card.compact { padding: 6px 9px; gap: 3px; border-radius: 7px; }
.lane-card.compact .lc-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.lane-card.compact .lc-top { justify-content: space-between; }
.lane-card.compact .lc-tag { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; word-break: normal; font-size: 10.5px; }
.lane-card.compact .lc-chips { display: flex; align-items: center; gap: 4px; flex: none; }
.lane-card.compact .lc-sub { justify-content: space-between; gap: 8px; }
.lane-card.compact .lc-why { flex: 1 1 auto; min-width: 0; margin: 0; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; display: block; -webkit-line-clamp: none; font-size: 11px; }
.lane-card.compact .lc-route { flex: none; font-size: 10px; white-space: nowrap; max-width: 45%;
  overflow: hidden; text-overflow: ellipsis; }
.lane-card.compact .lc-foot { justify-content: space-between; gap: 6px; }
.lane-card.compact .lc-chips .chip, .lane-card.compact .lc-foot .chip { font-size: 9.5px; padding: 1px 6px; }

/* ---- Ticket-type pills + metadata filter (DASHBOARD-SHELL-ROADMAP-UX-STABILITY1) ----
   RG-brand-compatible gradient pills per inferred ticket type. The type is derived from the sprint
   tag, so the legend/pill is labelled "inferred" in the UI — never presented as authoritative. */
.tt-pill { flex: none; display: inline-flex; align-items: center; font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; line-height: 1; padding: 3px 7px; border-radius: 999px;
  color: #fff; border: 1px solid rgba(255,255,255,.14); white-space: nowrap; }
.lane-card.compact .lc-top .tt-pill { margin-right: 2px; }
/* Gradients keyed off the brand/signal palette; each type is visually distinct but on-brand. */
.tt-epic     { background: linear-gradient(135deg, #7c3aed, #4f46e5); }
.tt-story    { background: linear-gradient(135deg, var(--brand, #2dd4bf), #0ea5e9); }
.tt-task     { background: linear-gradient(135deg, #475569, #334155); }
.tt-bug      { background: linear-gradient(135deg, #f97316, #ea580c); }
.tt-risk     { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.tt-decision { background: linear-gradient(135deg, #d946ef, #a21caf); }
.tt-release  { background: linear-gradient(135deg, #10b981, #059669); }
.tt-evidence { background: linear-gradient(135deg, #0891b2, #0e7490); }
.tt-spec     { background: linear-gradient(135deg, #6366f1, #4338ca); }
.tt-unknown  { background: linear-gradient(135deg, #64748b, #475569); }

.tt-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tt-legend-h { font-size: 10.5px; }
.tt-legend-items { display: flex; flex-wrap: wrap; gap: 5px; }

.board-search { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; position: relative;
  margin-bottom: 12px; }
.board-search .bs-ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--faint); pointer-events: none; display: inline-flex; }
.board-search-input { flex: 1 1 320px; min-width: 220px; font: inherit; font-size: 12.5px;
  color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px 8px 32px; transition: border-color .14s ease, box-shadow .14s ease; }
.board-search-input:focus-visible { outline: none; border-color: var(--brand-line);
  box-shadow: 0 0 0 3px var(--brand-soft); }
.board-search-status { flex: none; font-size: 11.5px; }
/* Non-matching cards progressively disappear; matching ones stay. */
.lane-card.filtered-out { display: none; }
.board-lane.lane-no-match { opacity: .6; }

/* ---- Roadmap UX polish (DASHBOARD-SETTINGS-PLANKEY-ROADMAP-STABILITY-FIX1) ----
   Compact four-corner cards in a responsive grid (no excessive horizontal stretch; the board still
   scrolls vertically), clickable type quick-filters, search-driven lane collapse, and dynamic
   product lanes. No animation loop — CSS transitions only, honouring the no-rAF board architecture. */

/* Four-corner AAA cards: a responsive grid so cards stay compact tiles rather than full-width rows. */
.lane-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 7px; }
.lane-card.compact { border-radius: 10px; }

/* Lanes with no current match COLLAPSE into a small accordion header (count visible), not a dead box. */
.board-lane.lane-collapsed .lane-cards,
.board-lane.lane-collapsed .lane-more { display: none; }
.board-lane.lane-collapsed { opacity: .7; }
.board-lane.lane-collapsed .lane-head::after {
  content: "0 matching — hidden by filter"; font-size: 10.5px; color: var(--faint); }

/* Clickable ticket-type quick filters (reuse the .tt-<id> gradients; inactive = dimmed). */
.tt-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tt-filter-h { font-size: 10.5px; }
.tt-filter-items { display: flex; flex-wrap: wrap; gap: 5px; }
.tt-filter-pill { cursor: pointer; font-family: inherit; opacity: .5;
  transition: opacity .12s ease, box-shadow .12s ease, transform .12s ease; }
.tt-filter-pill:hover { opacity: .82; }
.tt-filter-pill.active { opacity: 1; box-shadow: 0 0 0 2px var(--brand-soft); transform: translateY(-1px); }
.tt-filter-pill:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.tt-filter-clear { cursor: pointer; font: inherit; font-size: 11px; color: var(--brand);
  background: none; border: 1px solid var(--brand-line); border-radius: 999px; padding: 2px 10px; }
.tt-filter-clear:hover { background: var(--brand-soft); }

/* Flight-strip cells are clickable buttons that open a quick detail drawer. */
.flight-cell.clickable { cursor: pointer; font: inherit; text-align: left; width: 100%; }
.flight-cell.clickable { transition: border-color .14s ease, box-shadow .14s ease, transform .12s ease; }
.flight-cell.clickable:hover { border-color: var(--brand-line); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.flight-cell.clickable:focus-visible { outline: none; border-color: var(--brand-line); box-shadow: 0 0 0 3px var(--brand-soft); }
.fc-open { font-size: 10px; font-weight: 600; color: var(--faint); opacity: .65; margin-top: 4px; }
.fc-open::after { content: " →"; }
.flight-cell.clickable:hover .fc-open, .flight-cell.clickable:focus-visible .fc-open { color: var(--brand); opacity: 1; }

/* Board groups (stable RG lanes vs dynamic product lanes) + product lane accent. */
.board-group-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin: 16px 0 6px; }
.board-scope > .board-group-h:first-child { margin-top: 0; }
.board-group-note { font-size: 11px; color: var(--faint); margin-bottom: 8px; line-height: 1.4; }
.product-lane .lane-title { color: var(--brand); }

/* Plan Key entry surface. */
.plan-key-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.plan-key-input { flex: 1 1 280px; min-width: 200px; }
.plan-key-out { margin: 6px 0; min-height: 18px; }
.plan-key-result { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.plan-key-mask { font-size: 12px; color: var(--muted); }
.plan-key-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 0 2px; }
.upgrade-link { font-weight: 600; }

/* ---- Sprint detail drawer (DASHBOARD-ROADMAP-CARDS-UX-POLISH1) ----
   Right-side panel; CSS-transition slide-in only (no rAF). Overlay dims the board and traps the click. */
body.drawer-locked { overflow: hidden; }
.drawer-overlay { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-end;
  background: rgba(20, 35, 28, 0); transition: background .2s ease; }
.drawer-overlay.open { background: rgba(20, 35, 28, .34); }
.card-drawer { width: min(460px, 94vw); max-width: 94vw; height: 100%; overflow-y: auto;
  background: var(--panel); border-left: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; transform: translateX(24px); opacity: 0;
  transition: transform .22s ease, opacity .2s ease; }
.drawer-overlay.open .card-drawer { transform: translateX(0); opacity: 1; }
.drawer-head { position: sticky; top: 0; z-index: 1; background: var(--panel-2);
  border-bottom: 1px solid var(--line); padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 9px; }
.dh-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dh-lane { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); font-weight: 700; }
.drawer-close { flex: none; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel); color: var(--muted); font-size: 13px; cursor: pointer; line-height: 1;
  transition: background .14s ease, color .14s ease, border-color .14s ease; }
.drawer-close:hover { background: var(--halt-soft); color: var(--halt); border-color: var(--halt-soft); }
.drawer-close:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.dh-tag { font-family: var(--mono); font-size: 14px; font-weight: 650; color: var(--ink); word-break: break-all; line-height: 1.3; }
.dh-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.drawer-body { padding: 4px 18px 26px; display: flex; flex-direction: column; }
.drawer-sec { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; }
.drawer-sec:last-child { border-bottom: 0; }
.ds-h { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 700; }
.ds-p { font-size: 13px; color: var(--ink); line-height: 1.55; margin: 0; }
.ds-hint { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin: 0; }
.ds-sub { font-size: 11px; color: var(--muted); font-weight: 650; margin-top: 2px; }
.ds-kv { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ds-k { font-size: 12px; color: var(--muted); flex: none; }
.ds-v { font-size: 12.5px; color: var(--ink); text-align: right; }
.ds-code { font-family: var(--mono); font-size: 11px; color: var(--brand); background: var(--brand-soft);
  border-radius: 5px; padding: 1px 6px; word-break: break-all; }
.ds-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ds-list { margin: 0; padding-left: 17px; display: flex; flex-direction: column; gap: 5px; }
.ds-list li { font-size: 12.5px; line-height: 1.45; color: var(--ink); }
.ds-list li.blk::marker { color: var(--halt); }
.ds-list li.adv::marker { color: var(--attention); }
.ds-clear { font-size: 12.5px; color: var(--muted); }
@media (max-width: 620px) { .card-drawer { width: 100vw; } }
@media (prefers-reduced-motion: reduce) {
  .card-drawer, .drawer-overlay { transition: none; }
  .lane-card.clickable:hover { transform: none; }
}
.ds-none { color: var(--muted); font-style: italic; }

/* Review / Run history (DASHBOARD-REVIEW-RUN-HISTORY-MVP1) — searchable run list + rows. */
.review-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.review-search { flex: 1 1 280px; min-width: 200px; padding: 8px 12px; border: 1px solid var(--line);
  border-radius: 9px; font-size: 13px; background: var(--panel); color: var(--ink); }
.review-search:focus-visible, .review-filter:focus-visible, .review-export:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px; }
.review-filter, .review-export { padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 12.5px; background: var(--panel); color: var(--ink); }
.review-export { cursor: pointer; }
.review-export:hover { border-color: var(--brand); color: var(--brand); }
.review-count { font-size: 12px; color: var(--muted); margin-left: auto; }
.review-list { display: flex; flex-direction: column; gap: 8px; }
.review-list + .foldsec { margin-top: 18px; }
.review-row { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--panel); cursor: pointer; transition: border-color .12s; }
.review-row:hover { border-color: var(--brand); }
.review-row:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.rr-main { min-width: 0; }
.rr-id { font-size: 12px; color: var(--brand); font-weight: 650; }
.rr-prompt { font-size: 12.5px; color: var(--ink); margin-top: 2px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; max-width: 56ch; }
.rr-chips { display: flex; align-items: center; gap: 8px; flex: none; }
.rr-arts { font-size: 11px; color: var(--muted); }
.review-empty { padding: 18px; text-align: center; color: var(--muted); font-size: 12.5px;
  border: 1px dashed var(--line); border-radius: 11px; }

/* Evidence & trust strip — seven signal tiles. */
.board-trust { display: grid; grid-template-columns: repeat(7, 1fr); gap: 9px; }
@media (max-width: 980px) { .board-trust { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .board-trust { grid-template-columns: repeat(2, 1fr); } }
.trust-tile { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 12px; display: flex; flex-direction: column; gap: 7px; }
.tt-label { font-size: 11px; color: var(--muted); line-height: 1.3; }

/* Release readiness rail. */
.rr-note { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-bottom: 14px; }
.rr-h { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 7px; }
.rr-list { margin: 0; padding-left: 17px; display: flex; flex-direction: column; gap: 5px; }
.rr-list li { font-size: 12.5px; line-height: 1.45; color: var(--ink); }
.rr-list li.blk::marker { color: var(--halt); }
.rr-list li.adv::marker { color: var(--attention); }
.rr-clear { font-size: 12.5px; color: var(--muted); }

/* Project reality surface — link to the frozen 4D graph. */
.surface-open { margin-top: 10px; border: 1px solid var(--brand-line); background: var(--brand-soft);
  color: var(--brand); border-radius: var(--radius-sm); padding: 10px 15px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .15s ease; }
.surface-open:hover { background: var(--brand-line); }
.surface-open:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }

/* Future / deferred rows. */
.future-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.future-row:last-child { border-bottom: 0; }
.fr-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.fr-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.fr-note { font-size: 12px; color: var(--muted); line-height: 1.5; }

@media (max-width: 720px) { .flight-strip { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .activity-loop { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .activity-loop { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .activity-loop-step::after,
  .loop-dot { animation: none; }
}

/* ---- Live board rail (ROADMAP-LIVE-EVENT-BOARD1) ----
   Moves only from real recorded events; pulses briefly when live.signature changes. */
.board-live { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 16px; box-shadow: var(--shadow-sm); transition: box-shadow .3s ease; }
.board-live.pulsing { box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow); border-color: var(--brand-line); }
.bl-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bl-head-l { display: flex; align-items: flex-start; gap: 11px; }
.bl-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; flex: none; }
.bl-dot.live { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); animation: blpulse 2s ease-in-out infinite; }
.bl-dot.idle { background: var(--line-strong); }
@keyframes blpulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.bl-eyebrow { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 650; }
.bl-latest { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.bl-latest-lbl { font-size: 14px; font-weight: 600; color: var(--ink); }
.bl-latest-rel { font-size: 12px; color: var(--muted); }
.le-ic { width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; flex: none;
  background: var(--brand-soft); color: var(--brand); }
.le-ic.done { background: var(--signal-soft); color: var(--signal); }
.le-ic.blocked, .le-ic.failed { background: var(--halt-soft); color: var(--halt); }
.le-ic.running, .le-ic.waiting { background: var(--info-soft); color: var(--info); }
.bl-static { display: flex; align-items: flex-start; gap: 11px; }
.bl-static-h { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.bl-static-b { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 2px; max-width: 70ch; }
.phase-stepper { display: flex; align-items: center; gap: 4px; }
.phase-step { display: flex; flex-direction: column; align-items: center; gap: 3px; opacity: .5; }
.phase-step .ps-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.phase-step .ps-lbl { font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.phase-step.live { opacity: 1; }
.phase-step.live .ps-dot { background: var(--info); box-shadow: 0 0 0 3px var(--info-soft); }
.phase-step.live .ps-lbl { color: var(--info); font-weight: 700; }
.bl-highlight { display: flex; align-items: center; gap: 8px; margin-top: 11px; padding: 8px 11px; border-radius: var(--radius-sm);
  font-size: 12.5px; font-weight: 550; }
.bl-highlight.blk { background: var(--halt-soft); color: var(--halt); }
.bl-highlight.adv { background: var(--attention-soft); color: var(--attention); }
.bl-ticker { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.le-row { display: flex; align-items: flex-start; gap: 9px; }
.le-body { flex: 1; min-width: 0; }
.le-top { display: flex; align-items: center; gap: 8px; }
.le-lbl { font-size: 12.5px; font-weight: 550; color: var(--ink); }
.le-lane { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); background: var(--brand-soft);
  border-radius: 999px; padding: 1px 7px; }
.le-meta { display: flex; gap: 9px; font-size: 11px; color: var(--muted); margin-top: 1px; }
.le-sprint { font-family: var(--mono); font-size: 10.5px; }
.bl-foot { margin-top: 10px; font-size: 11px; color: var(--muted); }
.lane-live { display: none; }
.lane-live.on { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--info);
  background: var(--info-soft); border-radius: 999px; padding: 1px 8px; font-weight: 600; }
.lane-live .ll-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--info); }
/* DoR / DoD compact chips */
.dor-dod { display: flex; flex-direction: column; gap: 12px; }
.dor-group .dor-h { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 650;
  color: var(--ink); margin-bottom: 6px; }
.dor-count { font-size: 11px; color: var(--muted); font-weight: 500; }
.dor-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dor-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; border-radius: 999px; padding: 2px 9px;
  border: 1px solid var(--line); color: var(--muted); }
.dor-chip .dc-mark { font-weight: 700; }
.dor-chip.ready { color: var(--signal); background: var(--signal-soft); border-color: var(--signal-line); }
.dor-chip.blocked { color: var(--halt); background: var(--halt-soft); border-color: var(--halt-soft); }
.dor-chip.pending { color: var(--muted); background: var(--panel-2); }
@media (prefers-reduced-motion: reduce) { .bl-dot.live { animation: none; } .board-live.pulsing { box-shadow: var(--shadow); } }

/* ---- LIVE cockpit (DASHBOARD-LIVE-SCREEN-MVP1) ----
   The dynamic region pulses briefly when the live reducer signature changes; an idle journal stays
   calm and still. Reuses board / activity tokens; adds only the cockpit-specific chrome. */
.live-cockpit { transition: box-shadow .3s ease; border-radius: var(--radius); }
.live-cockpit.pulsing { box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow); }
.live-state { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--line-strong);
  border-radius: var(--radius); padding: 15px 17px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.live-state.tone-live { border-left-color: var(--info); }
.live-state.tone-blocked { border-left-color: var(--halt); }
.live-state.tone-done { border-left-color: var(--signal); }
.live-state.tone-calm { border-left-color: var(--line-strong); }
.ls-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ls-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; background: var(--line-strong); }
.ls-dot.live { background: var(--info); box-shadow: 0 0 0 4px var(--info-soft); animation: blpulse 2s ease-in-out infinite; }
.ls-dot.blocked { background: var(--halt); box-shadow: 0 0 0 4px var(--halt-soft); }
.ls-dot.done { background: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); }
.ls-headings { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 11px; }
.ls-eyebrow { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 650; }
.ls-state { font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.ls-note { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 8px; max-width: 78ch; }
.ls-latest { display: flex; align-items: center; gap: 8px; margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ls-latest.none { color: var(--muted); font-size: 12.5px; }
.ls-latest-pre { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 650; }
.ls-latest-lbl { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.live-next { margin: 14px 0; }
.live-files { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.live-files li { font-size: 12px; color: var(--ink); }
.live-empty { padding: 6px 2px; }
.live-empty .le-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.live-empty .le-body { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 3px; max-width: 76ch; }
.live-timeline { display: flex; flex-direction: column; gap: 8px; max-height: 460px; overflow-y: auto; }
.lt-row { display: flex; align-items: flex-start; gap: 9px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.lt-row:last-child { border-bottom: 0; padding-bottom: 0; }
.lt-body { flex: 1; min-width: 0; }
.lt-top { display: flex; align-items: center; gap: 8px; }
.lt-lbl { font-size: 12.5px; font-weight: 550; color: var(--ink); }
.lt-meta { display: flex; gap: 9px; align-items: baseline; font-size: 11px; color: var(--muted); margin-top: 2px; flex-wrap: wrap; }
.lt-detail { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52ch; }
.live-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 14px 0; }
.live-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.live-link:hover { border-color: var(--brand-line); background: var(--brand-soft); }
.live-link:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.live-link .ll-arrow { color: var(--brand); font-weight: 700; }
.live-pins { margin-top: 8px; }
@media (max-width: 720px) { .live-links { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .ls-dot.live { animation: none; } .live-cockpit.pulsing { box-shadow: var(--shadow); } }

/* ---- Overview live monitor (founder refit) — the calm signature band at the top of Overview ---- */
.overview-view .panel { margin-bottom: 14px; }
.ov-live { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--line-strong);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.ov-live.tone-live { border-left-color: var(--info); }
.ov-live.tone-blocked { border-left-color: var(--halt); }
.ov-live.tone-done { border-left-color: var(--signal); }
.ov-live.tone-calm { border-left-color: var(--line-strong); }
.ov-live.pulsing { box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow); }
.ovl-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ovl-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--line-strong); }
.ovl-dot.live { background: var(--info); box-shadow: 0 0 0 4px var(--info-soft); animation: blpulse 2s ease-in-out infinite; }
.ovl-dot.blocked { background: var(--halt); box-shadow: 0 0 0 4px var(--halt-soft); }
.ovl-dot.done { background: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); }
.ovl-dot.calm { background: var(--line-strong); }
.ovl-state { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 11px; }
.ovl-eyebrow { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 650; }
.ovl-label { font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.ovl-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 13px; }
.ovl-latest { display: flex; align-items: center; gap: 8px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ovl-latest.none { color: var(--muted); font-size: 12.5px; }
.ovl-latest-lbl { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.ovl-latest-rel { font-size: 11.5px; color: var(--muted); }
.ovl-foot { font-size: 12.5px; color: var(--muted); margin-top: 9px; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .ovl-dot.live { animation: none; } .ov-live.pulsing { box-shadow: var(--shadow); } }

/* ---- Reports (Ai-Roadmap · Reports) — honest column inventory before a real-data CSV ---- */
.report-cols { display: flex; flex-direction: column; gap: 8px; }
.report-col { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2); }
.rc-label { font-size: 13px; font-weight: 600; color: var(--ink); min-width: 132px; }
.rc-note { font-size: 11.5px; line-height: 1.4; }

/* ---- Settings screen ---- */
.settings-view .panel { margin-bottom: 14px; }
.settings-note { margin-top: 10px; font-size: 13px; color: var(--ink); line-height: 1.5; }
.settings-fine { margin-top: 6px; font-size: 12px; color: var(--faint); line-height: 1.5; }
.about-link { color: var(--brand); text-decoration: none; border-bottom: 1px solid var(--brand-soft); }
.about-link:hover { border-bottom-color: var(--brand); }
.settings-sub { margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.settings-list { margin: 8px 0 0; padding-left: 18px; }
.settings-list li { font-size: 13px; color: var(--ink); line-height: 1.6; }
.settings-prov { font-weight: 600; }

/* ---- Project Knowledge screen (RG-KNOWLEDGE-DASHBOARD-MVP1) ---- */
.knowledge-view .panel { margin-bottom: 14px; }
.kn-body { display: grid; grid-template-columns: 220px 1fr; gap: 16px; margin: 4px 0 16px; align-items: start; }
.kn-rail-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.kn-rail-h { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 8px; }
.kn-rail { display: flex; flex-direction: column; gap: 2px; }
.kn-cat-item { padding: 8px 9px; border-radius: var(--radius-sm); cursor: default; }
.kn-cat-item:hover { background: var(--panel-2); }
.kn-cat-row { display: flex; align-items: center; gap: 9px; }
.kn-folder { color: var(--brand); flex: none; display: inline-flex; opacity: .78; }
.kn-cat-item:hover .kn-folder { opacity: 1; }
.kn-cat-label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.kn-cat-count { font-size: 12px; margin-left: auto; }
.kn-cat-hint { font-size: 11.5px; color: var(--faint); line-height: 1.4; margin-top: 2px; padding-left: 24px; }
.kn-main { min-width: 0; }

/* ---- Working local-knowledge add panel (DASHBOARD-KNOWLEDGE-UPLOAD-AIROADMAP-COMPACT-FIX1) ----
   Reality Graph's own local store: stored, not indexed, never sent. Distinct from EvidenceCore intake. */
.kn-add { display: flex; flex-direction: column; gap: 10px; }
.kn-add.disabled { opacity: .82; }
.kn-add-note { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.kn-add-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; align-items: end; }
@media (max-width: 760px) { .kn-add-grid { grid-template-columns: 1fr; } }
.kn-file-pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kn-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.kn-file-pick .report-btn { cursor: pointer; }
.kn-file-name { font-size: 11.5px; }
.kn-add-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.kn-add-out { display: flex; align-items: center; gap: 8px; font-size: 12px; flex-wrap: wrap; }
.kn-add-ok { display: flex; align-items: center; gap: 8px; }
.kn-add-err { color: var(--danger, #c0392b); font-size: 12.5px; }
.kn-add-fine { font-size: 11px; color: var(--faint); line-height: 1.5; }
/* "What happens to files you add" explainer — current / planned / never, honestly grouped. */
.kn-usage { margin-top: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.kn-usage-sum { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--ink); padding: 8px 11px; list-style: none; }
.kn-usage-sum::-webkit-details-marker { display: none; }
.kn-usage-sum::before { content: "▸ "; color: var(--faint); }
.kn-usage[open] .kn-usage-sum::before { content: "▾ "; }
.kn-usage-body { padding: 0 12px 10px; display: flex; flex-direction: column; gap: 9px; }
.kn-usage-h { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.kn-usage-grp.now .kn-usage-h { color: var(--brand); }
.kn-usage-grp.never .kn-usage-h { color: var(--danger, #c0392b); }
.kn-usage-list { margin: 4px 0 0; padding-left: 18px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.report-btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---- Locally stored knowledge items (metadata only) ---- */
.kn-local { margin: 14px 0; }
.kn-local-h { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650;
  color: var(--ink); margin-bottom: 8px; }
.kn-local-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.kn-local-card { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--signal);
  border-radius: var(--radius); padding: 11px 12px; display: flex; flex-direction: column; gap: 6px; }
.kn-local-foot { font-size: 10.5px; line-height: 1.45; }
.kn-empty.subtle { opacity: .85; }

.kn-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.kn-card { display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 13px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease; }
.kn-card:hover { border-color: var(--brand-line); box-shadow: var(--shadow); }
.kn-card:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.kn-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kn-card-name { font-size: 14px; font-weight: 650; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kn-card-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11.5px; color: var(--muted); }
.kn-kind, .kn-dk { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.kn-mime { color: var(--faint); }
.kn-outs { display: flex; flex-wrap: wrap; gap: 5px; }
.kn-out { font-size: 11px; color: var(--brand); background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: 6px; padding: 1px 7px; }
.kn-outs.muted { font-size: 11.5px; color: var(--faint); }
.kn-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.kn-cat { font-size: 11.5px; color: var(--muted); }
.kn-cat.muted { color: var(--faint); }

.kn-empty { background: var(--panel); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 26px 20px; text-align: center; }
.kn-empty-h { font-size: 14.5px; font-weight: 650; color: var(--ink); }
.kn-empty-b { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; max-width: 56ch; margin-left: auto; margin-right: auto; }

.kn-refs { display: flex; flex-direction: column; gap: 7px; margin-bottom: 10px; }
.kn-ref { display: flex; align-items: center; gap: 9px; }
.kn-ref-kind { font-size: 11.5px; color: var(--muted); }
.kn-refs-empty { font-size: 12.5px; line-height: 1.5; margin-bottom: 10px; }
.kn-adv summary { cursor: pointer; font-size: 12.5px; color: var(--muted); }
.kn-adv-body { margin-top: 8px; }

/* ====================== DASHBOARD-WORKSPACE-READABILITY-SETTINGS-FAQ-FIX1 ====================== */

/* ---------- rail: website link + connect/social cluster ---------- */
.rail-connect { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; padding: 0 2px; }
.rail-connect-link {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--faint);
  text-decoration: none; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel-2); transition: color .15s, border-color .15s, background .15s;
}
.rail-connect-link:hover { color: var(--brand); border-color: var(--brand-line); background: var(--brand-soft); }
.rail-connect-link svg { opacity: .85; flex: none; }

/* ---------- Settings: service-health taxonomy list ---------- */
.svc-legend { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 14px; }
.svc-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.svc-legend-n { font-size: 12px; font-weight: 650; color: var(--muted); }
.svc-list { display: flex; flex-direction: column; }
.svc-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.svc-row:first-child { border-top: none; }
.svc-main { min-width: 0; flex: 1; }
.svc-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.svc-detail { font-size: 12px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.svc-row .chip { flex: none; }

/* ---------- readability floors (both themes): keep the smallest fine-print legible ----------
   Color contrast is handled by the lifted --muted / --faint tokens; these only ensure the tiniest
   text never drops below a comfortable size and line-height. No layout-model change. */
.settings-fine, .cg4d-dim-src, .act-source, .act-ts, .kn-add-fine, .rail-meta { font-size: 11.8px; }
.why, .settings-note, .sec-q, .kn-empty-b, .kn-refs-empty { line-height: 1.55; }
.settings-fine { line-height: 1.5; }
html[data-theme="dark"] body { font-size: 15px; letter-spacing: .002em; }

/* ---------- 4D Graph: light-mode chrome (ADDITIVE — dark spatial graph is the frozen default) ----
   Only the spatial graph's CHROME (background, label/edge ink, vignette, control surfaces) is remapped
   for legibility on a light page. Layer colours (--lc), layer meaning, signal_kind and the visual model
   are untouched — this is a text-clarity / degraded-on-light fix, not a colour-meaning change. */
html[data-theme="light"] .g4d-board {
  border-color: var(--line-strong); color: var(--ink);
  background:
    radial-gradient(1200px 480px at 62% 8%, rgba(60,90,160,.07), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
}
html[data-theme="light"] .g4d-layerlist { border-right-color: var(--line); }
html[data-theme="light"] .g4d-layerlist[data-stacked] { border-bottom-color: var(--line); }
html[data-theme="light"] .g4d-layername { color: var(--ink); }
html[data-theme="light"] .g4d-layerq { color: var(--muted); }
html[data-theme="light"] .g4d-swatch { box-shadow: 0 0 0 1px rgba(20,35,28,.14); }
html[data-theme="light"] .g4d-stage {
  background: radial-gradient(circle at 50% 38%, rgba(255,255,255,.6) 0%, rgba(231,236,243,.5) 100%);
  border-radius: 12px;
}
html[data-theme="light"] .g4d-node circle { stroke: #ffffff; }
html[data-theme="light"] .g4d-node-label { fill: #1b2330; }
html[data-theme="light"] .g4d-node-sub { fill: #5a6473; }
html[data-theme="light"] .g4d-layer-sub { fill: #7a838f; }
html[data-theme="light"] .g4d-edge.dep { stroke: #0d8c97; }
html[data-theme="light"] .g4d-edge.bind { stroke: #5577c4; }
html[data-theme="light"] .g4d-arrow-head { fill: #5577c4; }
html[data-theme="light"] .g4d-line.dependency { border-top-color: #0d8c97; }
html[data-theme="light"] .g4d-line.contract_binding { border-top-color: #5577c4; }
html[data-theme="light"] .g4d-gap { stroke: rgba(90,105,135,.35); }
html[data-theme="light"] .g4d-vignette { opacity: 0; }            /* dark corner vignette off on light */
html[data-theme="light"] .g4d-presetbar { border-bottom-color: var(--line); }
html[data-theme="light"] .g4d-preset, html[data-theme="light"] .g4d-layernav-btn {
  color: var(--muted); background: var(--panel-2); border-color: var(--line-strong); }
html[data-theme="light"] .g4d-preset:hover, html[data-theme="light"] .g4d-layernav-btn:hover { color: var(--ink); }
html[data-theme="light"] .g4d-preset.active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
html[data-theme="light"] .g4d-preset-lbl, html[data-theme="light"] .g4d-layernav-lbl,
html[data-theme="light"] .g4d-stat-k { color: var(--faint); }
html[data-theme="light"] .g4d-layer-cur { color: var(--muted); }
html[data-theme="light"] .g4d-ctl { color: var(--muted); background: var(--panel); border-color: var(--line-strong); }
html[data-theme="light"] .g4d-ctl:hover { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); }
html[data-theme="light"] .g4d-hint { color: var(--muted); background: rgba(255,255,255,.7); border-color: var(--line); }
html[data-theme="light"] .g4d-cube line { stroke: rgba(70,90,130,.5); }
html[data-theme="light"] .g4d-cube-l { color: var(--faint); }
html[data-theme="light"] .g4d-cube-l.front { color: var(--muted); }
html[data-theme="light"] .g4d-statusbar { background: var(--panel-2); border-color: var(--line); }
html[data-theme="light"] .g4d-stat-v { color: var(--ink); }
html[data-theme="light"] .g4d-statcell.good .g4d-stat-v { color: var(--signal); }
html[data-theme="light"] .g4d-statcell.warn .g4d-stat-v { color: var(--attention); }
html[data-theme="light"] .g4d-statcell + .g4d-statcell { border-left-color: var(--line); }
html[data-theme="light"] .g4d-dot.k-real { background: var(--signal-soft); border-color: var(--signal); }
html[data-theme="light"] .g4d-dot.k-partial { background: var(--attention-soft); border-color: var(--attention); }
html[data-theme="light"] .g4d-dot.k-advisory { background: var(--info-soft); border-color: var(--info); }

/* ---------- Workspace upload: durable-source status card + draft-suggestions editor ---------- */
.ws-source-card {
  border: 1px solid var(--signal-line); background: var(--signal-soft); border-radius: var(--radius-sm);
  padding: 13px 15px; margin-top: 12px;
}
.ws-source-head { display: flex; align-items: center; gap: 9px; font-weight: 620; color: var(--ink); }
.ws-source-head .chip { margin-left: auto; }
.ws-source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin-top: 10px; }
@media (max-width: 700px) { .ws-source-grid { grid-template-columns: 1fr; } }
.ws-source-row { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; }
.ws-source-k { color: var(--muted); min-width: 116px; }
.ws-source-v { color: var(--ink); font-weight: 550; }
.ws-source-v.ok { color: var(--signal); }
.ws-source-v.pending { color: var(--attention); }
.ws-source-note { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.ws-safety {
  font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 12px;
  border-left: 3px solid var(--brand-line); padding: 8px 0 8px 12px; background: var(--brand-soft);
  border-radius: 0 8px 8px 0;
}
.ws-draft { margin-top: 12px; }
.ws-draft-head { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 650; margin-bottom: 8px; }
.ws-draft-empty {
  border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 16px;
  text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.5; background: var(--panel-2);
}
.ws-draft-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; align-items: center;
  padding: 9px 0; border-top: 1px solid var(--line); }
.ws-draft-row:first-child { border-top: none; }
.ws-draft-field { font-size: 12.5px; color: var(--muted); }
.ws-draft-actions { display: flex; gap: 6px; }

/* ---------- Workspace Profile (active project profile layer) ---------- */
.workspace-view .panel { margin-bottom: 14px; }
.ws-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-preset {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; background: var(--panel-2);
}
.ws-preset.on { border-color: var(--brand); background: var(--brand-soft); }
.ws-preset .chip { margin-left: 2px; }
.ws-modes { display: flex; flex-direction: column; gap: 7px; margin-bottom: 10px; }
.ws-mode { display: flex; align-items: baseline; gap: 9px; font-size: 12.5px; }
.ws-mode-hint { line-height: 1.4; }
.ws-boundary { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.ws-boundary li { margin: 2px 0; }
.ws-secs { display: flex; flex-direction: column; gap: 14px; }
.ws-sec-h { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 650; margin-bottom: 6px; }
.ws-sec-rows { display: flex; flex-direction: column; gap: 5px; }
.ws-frow { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-size: 12.5px; }
.ws-fk { color: var(--muted); min-width: 150px; }
.ws-fv { color: var(--ink); font-weight: 550; word-break: break-word; }
.ws-cli { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.ws-cli-line { display: block; padding: 8px 11px; font-size: 12px; }

/* ---------- Workspace field generators (Generate -> preview/edit -> accept) ---------- */
.ws-gen-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.ws-gen-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--panel-2); }
.ws-gen-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ws-gen-title { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.ws-gen-field { font-size: 11.5px; }
.ws-gen-summary { font-size: 12px; margin-top: 3px; }
.ws-gen-editor { margin-top: 11px; display: flex; flex-direction: column; gap: 9px; }
.ws-gen-editor[hidden] { display: none; }
.ws-gen-choice-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 650; }
.ws-gen-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.ws-gen-chip { font-family: inherit; font-size: 12px; padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--panel); color: var(--muted); cursor: pointer; }
.ws-gen-chip.active { border-color: var(--accent); color: var(--ink); background: var(--panel-3, var(--panel)); font-weight: 600; }
.ws-gen-text { width: 100%; font-family: inherit; font-size: 13px; line-height: 1.5; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; resize: vertical; }
.ws-gen-draftlbl { font-size: 11.5px; color: var(--faint); font-style: italic; }
.ws-gen-safety { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.ws-gen-safety li { font-size: 11.5px; color: var(--muted); }
.ws-gen-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ws-gen-saved { margin-top: 9px; display: flex; align-items: center; gap: 4px; font-size: 12.5px; }
.ws-gen-out { margin-top: 8px; }

/* ---------- Workspace AI Interview (Markdown round-trip) ---------- */
.ws-iv-steps { margin: 8px 0 14px; padding-left: 20px; color: var(--ink-2); font-size: 12.5px; line-height: 1.5; }
.ws-iv-step { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.ws-iv-step:first-of-type { border-top: 0; padding-top: 0; }
.ws-iv-step-lbl { font-weight: 600; font-size: 12.5px; margin-bottom: 8px; color: var(--ink); }
.ws-iv-targets { display: flex; gap: 8px; flex-wrap: wrap; }
.ws-iv-answer, .ws-iv-val { width: 100%; box-sizing: border-box; margin-top: 8px; }
.ws-iv-file { display: block; margin-bottom: 6px; font-size: 12px; }
.ws-iv-out { margin-top: 8px; }
.ws-iv-preview { display: flex; flex-direction: column; gap: 10px; }
.ws-iv-field { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--panel-2); }
.ws-iv-field-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ws-iv-rejected { margin-top: 6px; }
.ws-iv-note { margin-bottom: 8px; font-size: 12.5px; }

/* ---------- RG Support FAQ (searchable, AAA) ---------- */
.faq-search { position: relative; margin: 4px 0 16px; }
.faq-search input {
  width: 100%; font-family: inherit; font-size: 14px; color: var(--ink);
  background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 11px;
  padding: 12px 14px 12px 40px; transition: border-color .15s, box-shadow .15s;
}
.faq-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.faq-search .faq-search-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.faq-cats { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.faq-cat {
  font-family: inherit; font-size: 12px; color: var(--muted); cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
  transition: color .14s, background .14s, border-color .14s;
}
.faq-cat:hover { color: var(--ink); }
.faq-cat.active { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); font-weight: 600; }
.faq-count { font-size: 12px; color: var(--faint); margin-bottom: 10px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1px solid var(--line); border-radius: 11px; background: var(--panel); overflow: hidden; }
.faq-item > summary { display: flex; align-items: flex-start; gap: 11px; padding: 13px 15px; cursor: pointer; list-style: none; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-q { font-weight: 600; font-size: 14px; color: var(--ink); flex: 1; min-width: 0; }
.faq-item .faq-tag { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; flex: none; align-self: center; }
.faq-chev { flex: none; color: var(--faint); transition: transform .15s; margin-top: 2px; }
.faq-item[open] .faq-chev { transform: rotate(90deg); }
.faq-a { padding: 0 15px 14px 15px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.faq-item[open] .faq-a { border-top: 1px solid var(--line); padding-top: 12px; }
.faq-a ul { margin: 8px 0 0; padding-left: 18px; }
.faq-a li { margin: 3px 0; }
.faq-empty { text-align: center; padding: 28px; border: 1px dashed var(--line-strong); border-radius: 12px;
  background: var(--panel-2); color: var(--muted); font-size: 13px; }
.faq-empty b { color: var(--ink); }
.faq-foot { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
  font-size: 12.5px; color: var(--muted); }
.faq-foot a { color: var(--brand); text-decoration: none; }
.faq-foot a:hover { text-decoration: underline; }
@media (max-width: 720px) { .kn-body { grid-template-columns: 1fr; } }

/* RG Lessons panel (WORKSPACE-LESSONS-PANEL-MVP1) — read-only Workspace memory of admitted lessons. */
.ws-lesson-summaries { display: flex; flex-wrap: wrap; gap: 14px 22px; margin: 12px 0 4px; }
.ws-lesson-sumblk { flex: 1 1 220px; }
.ws-lesson-sumh { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.ws-lesson-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 14px 0; }
.ws-lesson-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px;
  background: var(--panel-2); display: flex; flex-direction: column; gap: 8px; }
.ws-lesson-top { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.ws-lesson-id { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 130px; }
.ws-lesson-rule { font-size: 13.5px; line-height: 1.4; color: var(--ink); }
.ws-lesson-kpis, .ws-lesson-facets { display: flex; flex-wrap: wrap; gap: 6px; }
.ws-lesson-paths { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.ws-lesson-path { font-size: 11px; color: var(--muted); background: var(--panel); border: 1px solid var(--line);
  border-radius: 6px; padding: 2px 7px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-lesson-anchorsum { margin: 12px 0 4px; }
.ws-lesson-anchornote, .ws-lesson-ppnote { font-size: 12px; line-height: 1.45; margin-top: 6px; }
.ws-lesson-ppnote { margin-top: 10px; }
.ws-lesson-times { font-size: 11px; }
.ws-lesson-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 10px; }
.ws-lesson-kpinote { font-size: 12px; flex: 1 1 240px; }
.ws-lesson-safety { margin-top: 12px; }
.ws-lesson-empty { padding: 10px 0 14px; font-size: 13.5px; }
.ws-lesson-search { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.ws-lesson-searchstatus { font-size: 12px; }
.ws-lesson-list { display: flex; flex-direction: column; gap: 10px; }
.ws-lesson-top-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ws-lesson-retire { font-size: 11px; padding: 3px 9px; border-radius: 8px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); cursor: pointer; }
.ws-lesson-retire:hover { color: var(--ink); border-color: var(--ink); }
.ws-lesson-retire:disabled { opacity: .5; cursor: default; }
.ws-lesson-retire-msg { font-size: 11px; }
.ws-lesson-manage { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.ws-lesson-manage-head { font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); margin-bottom: 10px; }
.ws-lesson-form { display: flex; flex-direction: column; gap: 8px; }
.ws-lesson-form-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-lesson-form-row > * { flex: 1 1 200px; }
.ws-lesson-form-row .primary-btn { flex: 0 0 auto; }
.ws-lesson-addstatus { font-size: 12px; min-height: 1em; }
.ws-lesson-addstatus.why, .ws-lesson-retire-msg.why { color: var(--danger, #c0392b); }
.ws-lesson-addstatus.ok { color: var(--ok, #3fb27f); }
@media (max-width: 720px) { .ws-lesson-grid { grid-template-columns: 1fr; } }

/* ---- Workspace surface (DASHBOARD-WORKSPACE-SURFACE-CONVERGENCE1) ---- */
/* Local tab strip — a calm, product-grade row of destinations inside the one Workspace section. */
.ws-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line); }
.ws-tab { border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer;
  border-radius: 999px; padding: 8px 16px; font-size: 13.5px; font-weight: 550; }
.ws-tab:hover { background: var(--panel-2); color: var(--ink); }
.ws-tab.active { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); font-weight: 650; }
.ws-tab:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-soft); border-color: var(--brand); }
.ws-tabpane { display: block; }

/* Files: folder grid → file grid. */
.ws-browser { display: flex; flex-direction: column; gap: 14px; }
.ws-browser-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ws-back { border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer;
  border-radius: var(--radius-sm); padding: 5px 11px; font-size: 12.5px; font-weight: 600; }
.ws-back:hover { background: var(--panel-2); border-color: var(--brand-line); }
.ws-folder-title { font-size: 15px; font-weight: 650; color: var(--ink); }
.ws-folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ws-folder-card { display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 14px 15px; }
.ws-folder-card:hover { border-color: var(--brand-line); box-shadow: var(--shadow); transform: translateY(-1px); }
.ws-folder-card:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-soft); border-color: var(--brand); }
.ws-folder-card.empty { opacity: .72; }
.ws-folder-ic { color: var(--brand); flex: none; display: inline-flex; }
.ws-folder-body { min-width: 0; flex: 1 1 auto; }
.ws-folder-label { font-size: 14px; font-weight: 650; color: var(--ink); }
.ws-folder-hint { font-size: 11.5px; line-height: 1.4; margin-top: 2px; }
.ws-folder-count { font-size: 11.5px; color: var(--muted); flex: none; font-family: var(--mono); }
.ws-file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ws-file-card { display: flex; flex-direction: column; gap: 9px; text-align: left; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--brand);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 13px 14px; }
.ws-file-card:hover { border-color: var(--brand-line); box-shadow: var(--shadow); }
.ws-file-card:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-soft); border-color: var(--brand); }
.ws-file-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ws-file-name { font-size: 13.5px; font-weight: 650; color: var(--ink); min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.ws-file-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11.5px; }
.ws-file-ext { font-family: var(--mono); font-weight: 700; color: var(--brand); background: var(--brand-soft);
  border-radius: 5px; padding: 1px 6px; font-size: 10.5px; }
.ws-file-folder { font-size: 11.5px; }
.ws-files-foot { font-size: 11px; line-height: 1.5; }
.ws-empty { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 22px; text-align: center;
  background: var(--panel-2); }
.ws-empty.subtle { opacity: .9; }
.ws-empty-h { font-size: 14px; font-weight: 650; color: var(--ink); }
.ws-empty-b { color: var(--muted); font-size: 13px; max-width: 56ch; margin: 6px auto 0; }
.ws-kstore { display: flex; flex-direction: column; gap: 12px; }

/* Coding Memory tab. */
.ws-mem-list { display: flex; flex-direction: column; gap: 10px; }
.ws-mem-row { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2); padding: 12px 14px; }
.ws-mem-row-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ws-mem-title { font-size: 13.5px; font-weight: 650; color: var(--ink); }
.ws-mem-body { font-size: 12.5px; line-height: 1.5; margin-top: 5px; }
.ws-mem-note { font-size: 11.5px; line-height: 1.5; margin-top: 12px; }
@media (max-width: 720px) { .ws-folder-grid, .ws-file-grid { grid-template-columns: 1fr; } }

/* ---- 4D deep-zoom drilldown (GRAPH-4D-DEEP-ZOOM-DRILLDOWN1) — themed via tokens, light + dark ---- */
.g4d-drill { display: flex; flex-direction: column; gap: 10px; }
.g4d-drill-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; }
.g4d-drill-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.g4d-crumb { border: 0; background: none; padding: 2px 6px; border-radius: 6px; font-size: 12.5px; color: var(--muted); cursor: default; }
.g4d-crumb.link { color: var(--brand); cursor: pointer; }
.g4d-crumb.link:hover { background: var(--brand-soft); }
.g4d-crumb.here { color: var(--ink); font-weight: 600; }
.g4d-crumb-sep { color: var(--faint); }
.g4d-drill-search { width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); font-size: 13px; box-sizing: border-box; }
.g4d-drill-search:focus { outline: none; border-color: var(--brand); }
.g4d-drill-count { font-size: 11.5px; color: var(--faint); }
.g4d-drill-list { display: flex; flex-direction: column; gap: 6px; max-height: 440px; overflow-y: auto; }
.g4d-drill-row { display: flex; align-items: stretch; gap: 6px; }
.g4d-drill-row-main { flex: 1; min-width: 0; text-align: left; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); padding: 8px 11px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.g4d-drill-row-main:hover { border-color: var(--brand-line); background: var(--brand-soft); }
.g4d-drill-row-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.g4d-drill-name { font-weight: 600; color: var(--ink); font-size: 13px; word-break: break-word; }
.g4d-drill-name.mono { font-family: var(--mono); font-size: 12.5px; }
.g4d-drill-go { color: var(--faint); font-size: 14px; flex: none; }
.g4d-drill-row-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.g4d-mc { font-size: 11px; color: var(--muted); }
.g4d-drill-kinds { font-size: 11px; }
.g4d-drill-detail { flex: none; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--muted); font-size: 11.5px; padding: 0 10px; cursor: pointer; }
.g4d-drill-detail:hover { border-color: var(--brand-line); color: var(--brand); }
.g4d-drill-detail.inline { padding: 3px 9px; }
.g4d-kind { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; border-radius: 5px; font-weight: 600; background: #eceeea; color: var(--muted); }
.g4d-kind.k-class { background: var(--brand-2-soft); color: var(--brand-2); }
.g4d-kind.k-function { background: var(--brand-soft); color: var(--brand); }
.g4d-kind.k-method { background: var(--info-soft); color: var(--info); }
.g4d-drill-line { font-size: 11px; font-family: var(--mono); }
.g4d-drill-fileline { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.g4d-drill-path { font-family: var(--mono); font-size: 12px; color: var(--muted); word-break: break-all; }
.g4d-drill-empty { padding: 14px 4px; font-size: 13px; }
.g4d-drill-note { font-size: 11px; color: var(--faint); }
html[data-theme="dark"] .g4d-kind { background: #222b28; }

/* ---------- Lane header count + manual fold (MOBILE-DASHBOARD-4D-ROADMAP1) ----------
   Additive, presentation-only, all widths. A real mapped-card count and a fold control on every board
   lane. The fold class (lane-user-collapsed) is independent of the filter's .lane-collapsed, so manual
   folding and search-driven collapse never collide. Harmless on desktop; valuable on a long phone board. */
.lane-count { flex: none; font-size: 10px; color: var(--faint); white-space: nowrap; }
.lane-toggle { flex: none; margin-left: auto; cursor: pointer; font: inherit; line-height: 1;
  color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 7px;
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  transition: color .14s ease, border-color .14s ease; }
.lane-toggle:hover { color: var(--brand); border-color: var(--brand-line); }
.lane-toggle:focus-visible { outline: none; border-color: var(--brand-line); box-shadow: 0 0 0 3px var(--brand-soft); }
.board-lane.lane-user-collapsed .lane-cards,
.board-lane.lane-user-collapsed .lane-more,
.board-lane.lane-user-collapsed .lane-meaning,
.board-lane.lane-user-collapsed .lane-detail { display: none; }
.board-lane.lane-user-collapsed { opacity: .85; }

/* ---------- Mobile 4D Graph + Ai-Roadmap (MOBILE-DASHBOARD-4D-ROADMAP1) ----------
   Presentation-only, ≤720px only. Desktop and the 4D visual freeze are untouched: this only changes
   touch behaviour, hides a decorative depth cue that has no room on a phone, and makes the existing
   controls finger-sized. No new view, no fabricated data, no animation loop. */
@media (max-width: 720px) {
  /* 4D: a vertical swipe scrolls the page and the browser may pinch-zoom for accessibility; a
     mostly-horizontal drag still orbits the graph (pointer events). This replaces touch-action:none,
     which trapped page scroll on the full-width stage and disabled pinch-zoom over it. */
  .g4d-stage { touch-action: pan-y pinch-zoom; }
  /* The orientation cube is a decorative depth cue (pointer-events:none) with no room at phone width —
     it was crowding and clipping the right edge. Hide it; the graph and its controls are the real surface. */
  .g4d-cube-wrap { display: none; }
  /* Finger-sized camera + layer + preset controls. */
  .g4d-controls { left: 10px; bottom: 10px; }
  .g4d-ctl { width: 44px; height: 44px; font-size: 16px; }
  .g4d-presetbar { gap: 8px; padding: 12px 12px 10px; }
  .g4d-preset { padding: 9px 15px; font-size: 13px; }
  .g4d-layernav { margin-left: 0; padding-left: 0; width: 100%; justify-content: flex-start; }
  .g4d-layernav-btn { min-width: 44px; min-height: 40px; padding: 8px 12px; font-size: 15px; }
  .g4d-layer-cur { min-width: 72px; }
  /* The drill list flows with the page instead of trapping scroll in a 440px inner pane. */
  .g4d-drill-list { max-height: none; }
  .g4d-drill-detail { min-height: 38px; }

  /* Ai-Roadmap: single-column cards. minmax(0,1fr) — NOT 1fr — so the column min is 0 and a card can
     shrink to the phone width (its inner ellipsis clips), instead of the 290px min track (which could
     overflow a 320px phone) or min-content (which 1fr would let blow out). */
  .lane-cards { grid-template-columns: minmax(0, 1fr); }
  .board-search-input { flex: 1 1 100%; min-width: 0; }
  .tt-filter-pill, .tt-filter-clear { min-height: 34px; }
  .lane-toggle { width: 40px; height: 40px; font-size: 15px; }
  .flight-cell { padding: 11px 13px; }
}
/* Below the smallest phones the two-up evidence/trust strip can't fit two non-wrapping status chips
   side by side — stack it so a narrow viewport never scrolls sideways. */
@media (max-width: 380px) {
  .board-trust { grid-template-columns: 1fr; }
}

/* ---------- Mobile accessibility polish (MOBILE-DASHBOARD-A11Y-POLISH1) ----------
   Presentation/a11y only. Fixes the deferred Overview live-monitor crowding and gives the mobile chrome
   a visible keyboard-focus ring. No data contract, no 4D behaviour, no redesign. */
@media (max-width: 720px) {
  /* The mobile bottom-nav items and the theme toggle had no visible focus ring — a keyboard / switch
     user could not see where focus was. Match the brand-soft ring used elsewhere. */
  .m-navitem:focus-visible, .m-theme:focus-visible {
    outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
  .m-navitem:focus-visible { background: var(--brand-soft); }
}
@media (max-width: 560px) {
  /* Overview live monitor: on a narrow phone the eyebrow ("Reality Graph"), the big state label, and the
     5-step phase stepper were colliding on one row. Stack the state label and drop the stepper to its own
     full-width line that spreads evenly, so nothing overlaps. Same data, just an honest vertical layout. */
  .ovl-row { gap: 8px 12px; }
  .ovl-state { flex-direction: column; align-items: flex-start; gap: 1px; }
  .ovl-label { font-size: 17px; line-height: 1.15; }
  .phase-stepper { width: 100%; justify-content: space-between; gap: 2px; margin-top: 2px; }
  .phase-step { flex: 1 1 0; min-width: 0; }
  .phase-step .ps-lbl { font-size: 8px; letter-spacing: .02em; }
  /* A long sprint tag in a status chip (e.g. "next · MOBILE-DASHBOARD-A11Y-POLISH1") can't fit on one
     line on the smallest phones — let it wrap inside the pill instead of overflowing the viewport. */
  .ovl-chips .chip { white-space: normal; word-break: break-word; }
}

/* ====================== multi-project chip + switcher (MULTI-PROJECT-CORE1) ====================== */
.rail-project { position: relative; padding: 0 4px 14px; }
.proj-chip {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
  color: var(--ink); font: inherit;
}
.proj-chip:hover { border-color: var(--brand-line); background: var(--brand-soft); }
.proj-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.proj-chip-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.proj-chip-name { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-chip-sub { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-chip-caret { color: var(--faint); font-size: 12px; }
.proj-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--faint); }
.proj-dot.st-ok { background: var(--signal); }
.proj-dot.st-stale { background: var(--halt); }
.proj-dot.st-needs_init { background: var(--attention); }
.proj-dot.st-empty { background: var(--info); }
.proj-dot.st-missing_state { background: var(--attention); }
.proj-dot.st-none { background: var(--faint); }
.proj-panel {
  position: absolute; top: calc(100% - 6px); left: 4px; right: 4px; z-index: 60;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(10, 20, 16, .14); padding: 10px; max-height: 60vh; overflow: auto;
}
.proj-panel-head { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 2px 4px 8px; }
.proj-list { display: flex; flex-direction: column; gap: 2px; }
.proj-row { display: flex; align-items: center; gap: 4px; border-radius: 8px; }
.proj-row.active { background: var(--brand-soft); }
.proj-row-main {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; cursor: pointer;
  background: none; border: 0; padding: 7px 8px; color: var(--ink); font: inherit; text-align: left;
  border-radius: 8px;
}
.proj-row-main:hover { background: var(--panel-2); }
.proj-row.active .proj-row-main:hover { background: var(--brand-soft); }
.proj-row-name { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-row-note { margin-left: auto; font-size: 11px; color: var(--muted); flex: none; }
.proj-row-remove {
  flex: none; cursor: pointer; background: none; border: 0; color: var(--faint); border-radius: 6px;
  padding: 5px 7px; font-size: 12px;
}
.proj-row-remove:hover { color: var(--halt); background: var(--panel-2); }
.proj-empty { color: var(--muted); font-size: 12.5px; padding: 6px 4px; }
.proj-cap { color: var(--muted); font-size: 11.5px; padding: 9px 4px 6px; border-top: 1px solid var(--line); margin-top: 8px; }
.proj-add { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.proj-input {
  background: var(--panel-2); color: var(--ink); border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 9px; font: inherit; font-size: 12.5px; width: 100%; box-sizing: border-box;
}
.proj-input:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.proj-add-btn {
  cursor: pointer; background: var(--brand); color: #fff; border: 0; border-radius: 8px;
  padding: 8px 10px; font: inherit; font-size: 12.5px; font-weight: 600;
}
.proj-add-btn:hover { filter: brightness(1.06); }
.proj-add-note { color: var(--faint); font-size: 11px; line-height: 1.45; }
.proj-status { font-size: 12px; padding: 6px 4px 0; min-height: 1em; }
.proj-status.ok { color: var(--signal); }
.proj-status.why { color: var(--halt); }
.proj-status.muted { color: var(--muted); }
.proj-banner {
  background: var(--info-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 14px;
}
.proj-banner.warn { background: var(--attention-soft); }
.proj-banner-title { font-weight: 700; margin-bottom: 4px; }
.proj-banner-body { color: var(--muted); font-size: 13.5px; margin-bottom: 8px; }
.proj-scope-note { color: var(--muted); font-size: 12.5px; margin: -6px 0 14px; }
