@import url("/fonts/fonts.css");

:root {
  color-scheme: dark;
  --bg: #030509;
  --bg-2: #080b11;
  --surface: #0b0f16;
  --surface-2: #10151e;
  --surface-3: #161d29;
  --ink: #edf1f7;
  --ink-2: #b7c1d1;
  --muted: #7d889c;
  --faint: #4a5467;
  --line: rgba(148, 163, 184, .13);
  --line-2: rgba(148, 163, 184, .07);
  --edge: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .025) 40%, rgba(255, 255, 255, .015));
  --accent: #38bdf8;
  --accent-2: #f5a524;
  --accent-soft: rgba(56, 189, 248, .10);
  --glow: 0 0 0 1px rgba(56, 189, 248, .35), 0 0 24px rgba(56, 189, 248, .18);

  --crit: #ff5d6c;
  --high: #ff8a3d;
  --mod: #f5c04a;
  --low: #3ddc97;
  --ok: #3ddc97;
  --ok-soft: rgba(61, 220, 151, .1);
  --bad: #ff6b7a;
  --bad-soft: rgba(255, 107, 122, .1);
  --warn: #f5c04a;
  --warn-soft: rgba(245, 192, 74, .08);

  --fact: #2dd4bf;
  --claim: #fbbf24;
  --inference: #a78bfa;
  --hypothesis: #60a5fa;
  --forecast: #22d3ee;
  --recommendation: #4ade80;

  /* mapping states */
  --st-observed: #2dd4bf;
  --st-inferred: #a78bfa;
  --st-suggested: #f5a524;
  --st-confirmed: #3ddc97;
  --st-rejected: #ff6b7a;
  --st-unknown: #5b6679;

  --radius: 14px;
  --radius-s: 9px;
  --font: "Inter", "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Jost", "Inter", "Segoe UI Light", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 15px;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; color: var(--ink); min-height: 100vh; font-family: var(--font); line-height: 1.5;
  font-feature-settings: "cv11", "ss01", "ss03"; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(56, 189, 248, .085), transparent 62%),
    radial-gradient(900px 480px at -8% 108%, rgba(245, 165, 36, .06), transparent 60%),
    radial-gradient(700px 400px at 45% 120%, rgba(167, 139, 250, .05), transparent 60%),
    var(--bg);
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: linear-gradient(rgba(148, 163, 184, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { background: var(--bg-2); color: var(--ink); }
::placeholder { color: var(--faint); }
::selection { background: rgba(56, 189, 248, .3); }
code, .mono { font-family: var(--mono); font-size: .88em; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: #1d2635; border-radius: 6px; border: 2px solid var(--bg); } ::-webkit-scrollbar-track { background: transparent; }

/* ---- top bar ---------------------------------------------------------- */
.topbar {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap; position: sticky; top: 0; z-index: 20;
  padding: 10px 28px; background: rgba(3, 5, 9, .78); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 18px; }
.mark { font-family: var(--display); font-weight: 200; letter-spacing: .38em; font-size: 2.35rem; line-height: 1; margin-right: -.38em; }
.mark .a { color: #f4f7fb; }
.mark .b { background: linear-gradient(120deg, #38bdf8, #7dd3fc 45%, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { color: var(--muted); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; line-height: 1.55; border-left: 1px solid var(--line); padding-left: 18px; }
.tagline b { color: var(--ink-2); font-weight: 600; }
.casebar { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 260px; }
.casebar select { min-width: 0; max-width: 560px; width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 600; font-size: .9rem; }
.analyst { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; }
.analyst input { width: 170px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; text-transform: none; letter-spacing: 0; font-size: .9rem; }
.analyst input.missing { border-color: var(--bad); background: var(--bad-soft); }
.who { gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.who .who-name { color: var(--ink, inherit); text-transform: none; letter-spacing: 0; font-size: .9rem; }
.who .who-roles { display: inline-flex; gap: 4px; }
.who button { text-transform: none; letter-spacing: 0; font-size: .8rem; padding: 6px 10px; border-radius: 8px; }
.signin { max-width: 440px; margin: 48px auto; }
.signin h2 { margin-top: 0; }
.archive-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; border: 1px solid rgba(245, 165, 36, .55); background: linear-gradient(180deg, rgba(245, 165, 36, .16), rgba(245, 165, 36, .06)); color: var(--accent-2); font-weight: 700; letter-spacing: .18em; cursor: pointer; font-size: .72rem; transition: box-shadow .2s, transform .2s; }
.archive-btn:hover { box-shadow: 0 0 24px rgba(245, 165, 36, .25); transform: translateY(-1px); }
.archive-btn small { font-weight: 500; letter-spacing: 0; color: var(--muted); font-size: .72rem; }

.tabs {
  display: flex; gap: 4px; align-items: stretch; flex-wrap: wrap; position: sticky; top: 63px; z-index: 19;
  padding: 0 28px; background: rgba(6, 9, 14, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.tabs a { position: relative; padding: 13px 16px; color: var(--muted); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: .72rem; transition: color .2s; text-decoration: none; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--ink); }
.tabs a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #38bdf8, #a78bfa); box-shadow: 0 0 12px rgba(56, 189, 248, .7); }
.tabs .cycle { margin-left: auto; align-self: center; color: var(--faint); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; }

main { position: relative; z-index: 1; padding: 26px 28px 70px; max-width: 1640px; margin: 0 auto; outline: none; animation: rise .35s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- layout ------------------------------------------------------------- */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.head h1 { margin: 0; font-size: 1.75rem; font-weight: 600; letter-spacing: -.015em; }
.head h1 .cid { font-family: var(--display); color: var(--accent); font-weight: 300; letter-spacing: .02em; }
.head .sub { color: var(--muted); margin-top: 6px; font-size: .92rem; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }
.split-r { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); }
@media (max-width: 1250px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .g3, .split, .split-r { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .g2, .g4 { grid-template-columns: 1fr; } .tabs .cycle, .tagline { display: none; } main { padding: 16px; } .topbar, .tabs { padding-left: 16px; padding-right: 16px; } }

.panel {
  position: relative; min-width: 0; border-radius: var(--radius); border: 1px solid transparent;
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 90px) padding-box, var(--edge) border-box;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 20px 40px -24px rgba(0, 0, 0, .7);
}
.panel > h2, .panel > header { margin: 0; padding: 13px 18px; border-bottom: 1px solid var(--line-2); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); font-weight: 650; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.panel > h2::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); margin-right: 10px; flex: none; }
.panel > h2 { justify-content: flex-start; }
.panel > h2 .count, .panel > header .count { margin-left: auto; color: var(--muted); font-weight: 500; letter-spacing: 0; text-transform: none; font-size: .8rem; }
.panel .body { padding: 16px 18px; }
.panel .body.tight { padding: 0; }
.note { color: var(--muted); font-size: .84rem; }
.empty { color: var(--muted); font-style: italic; padding: 16px 18px; }
.stack > * + * { margin-top: 14px; }

/* ---- tiles -------------------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (max-width: 1400px) { .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { --tc: #5c677b; position: relative; border-radius: var(--radius); padding: 14px 15px; min-height: 118px; cursor: pointer; border: 1px solid transparent;
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--tc) 18%, transparent), transparent 70%) padding-box,
              linear-gradient(180deg, var(--surface-2), var(--surface)) padding-box,
              linear-gradient(180deg, color-mix(in srgb, var(--tc) 55%, transparent), rgba(255, 255, 255, .03) 55%) border-box;
  transition: transform .18s ease, box-shadow .18s ease; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -16px color-mix(in srgb, var(--tc) 55%, transparent); }
.tile .k { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.tile .v { font-size: clamp(.92rem, 1.02vw, 1.4rem); font-weight: 700; margin-top: 8px; line-height: 1.12; overflow-wrap: normal; word-break: normal; color: var(--tc); letter-spacing: -.01em; text-shadow: 0 0 22px color-mix(in srgb, var(--tc) 35%, transparent); }
@media (max-width: 1400px) { .tile .v { font-size: 1.32rem; } }
.tile .s { font-size: .76rem; color: var(--muted); margin-top: 7px; line-height: 1.4; }
.tile .why { display: none; position: absolute; left: -1px; right: -1px; top: calc(100% + 6px); z-index: 30; background: #141b27; border: 1px solid #293447; color: var(--ink); padding: 11px 13px; border-radius: 12px; font-size: .8rem; box-shadow: 0 20px 44px rgba(0,0,0,.6); min-width: 250px; }
.tile:hover .why, .tile:focus .why { display: block; }
/* The explanation must sit above everything below the tile row, and never leave the screen. */
.tiles { position: relative; z-index: 20; }
.tile:hover, .tile:focus, .tile:focus-within { z-index: 40; }
.tile .why { width: max(calc(100% + 2px), 280px); max-width: min(360px, calc(100vw - 32px)); }
@media (min-width: 1401px) { .tiles .tile:nth-child(9n) .why, .tiles .tile:nth-child(9n-1) .why { left: auto; right: -1px; } }
@media (min-width: 901px) and (max-width: 1400px) { .tiles .tile:nth-child(5n) .why, .tiles .tile:nth-child(5n-1) .why { left: auto; right: -1px; } }
@media (max-width: 900px) { .tiles .tile:nth-child(2n) .why { left: auto; right: -1px; } }
.tile:focus { outline: none; box-shadow: var(--glow); }
.t-crit { --tc: var(--crit); } .t-high { --tc: var(--high); } .t-mod { --tc: var(--mod); } .t-low { --tc: var(--low); }
.t-info { --tc: var(--accent); } .t-muted { --tc: #8a95a8; } .t-violet { --tc: var(--inference); }

/* ---- badges & chips ----------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; border: 1px solid transparent; }
.b-ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(61, 220, 151, .25); }
.b-bad { background: var(--bad-soft); color: var(--bad); border-color: rgba(255, 107, 122, .25); }
.b-warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(245, 192, 74, .25); }
.b-info { background: var(--accent-soft); color: var(--accent); border-color: rgba(56, 189, 248, .25); }
.b-FACT { background: rgba(45, 212, 191, .1); color: var(--fact); }
.b-CLAIM { background: rgba(251, 191, 36, .1); color: var(--claim); }
.b-INFERENCE { background: rgba(167, 139, 250, .12); color: var(--inference); }
.b-HYPOTHESIS { background: rgba(96, 165, 250, .12); color: var(--hypothesis); }
.b-FORECAST { background: rgba(34, 211, 238, .1); color: var(--forecast); }
.b-RECOMMENDATION { background: rgba(74, 222, 128, .1); color: var(--recommendation); }
.b-OBSERVED { background: rgba(45, 212, 191, .1); color: var(--fact); }
.b-REPORTED { background: rgba(251, 191, 36, .1); color: var(--claim); }
.b-INFERRED { background: rgba(167, 139, 250, .12); color: var(--inference); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border: 1px solid var(--line); border-radius: 7px; font-size: .77rem; background: rgba(255, 255, 255, .025); margin: 2px 4px 2px 0; white-space: nowrap; color: var(--ink-2); }
.chip.obs { border-color: rgba(45, 212, 191, .45); background: rgba(45, 212, 191, .07); color: #99f6e4; }
.chip.inf { border-color: rgba(167, 139, 250, .5); background: rgba(167, 139, 250, .07); border-style: dashed; color: #ddd6fe; }
.chip.fc { border-color: rgba(34, 211, 238, .5); background: rgba(34, 211, 238, .05); border-style: dotted; color: #a5f3fc; }
.chip button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0 0 0 2px; }
[data-pivot] { cursor: pointer; }
.chip[data-pivot]:hover, .pv:hover { border-color: var(--accent); color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }

/* mapping state pills */
.st { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 999px; font-size: .64rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; border: 1px solid; white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-OBSERVED { color: var(--st-observed); border-color: rgba(45, 212, 191, .4); background: rgba(45, 212, 191, .08); }
.st-INFERRED { color: var(--st-inferred); border-color: rgba(167, 139, 250, .4); background: rgba(167, 139, 250, .08); border-style: dashed; }
.st-SUGGESTED { color: var(--st-suggested); border-color: rgba(245, 165, 36, .45); background: rgba(245, 165, 36, .07); border-style: dashed; }
.st-CONFIRMED { color: var(--st-confirmed); border-color: rgba(61, 220, 151, .45); background: rgba(61, 220, 151, .09); }
.st-CONFIRMED::before { content: "✓"; background: none; width: auto; height: auto; font-size: .8rem; line-height: 1; }
.st-REJECTED { color: var(--st-rejected); border-color: rgba(255, 107, 122, .4); background: rgba(255, 107, 122, .07); text-decoration: line-through; }
.st-UNKNOWN { color: #8a95a8; border-color: rgba(138, 149, 168, .3); background: repeating-linear-gradient(135deg, rgba(138,149,168,.06), rgba(138,149,168,.06) 4px, transparent 4px, transparent 8px); }
.st-CONTESTED { color: var(--warn); border-color: rgba(245, 192, 74, .45); background: var(--warn-soft); }
.legend-states { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- tables ------------------------------------------------------------- */
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .87rem; }
th { text-align: left; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .015); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr.dim td { color: var(--muted); text-decoration: line-through; }
tr.sel td { background: var(--accent-soft); }
tr.click { cursor: pointer; transition: background .15s; } tr.click:hover td { background: rgba(56, 189, 248, .045); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { height: 6px; background: rgba(255, 255, 255, .05); border-radius: 4px; overflow: hidden; min-width: 80px; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, #0ea5e9, #38bdf8); border-radius: 4px; }
.bar.good > span { background: linear-gradient(90deg, #10b981, #3ddc97); } .bar.poor > span { background: linear-gradient(90deg, #f97316, #ff8a3d); }

/* ---- forms -------------------------------------------------------------- */
form.f { display: grid; gap: 11px; }
.f label { display: grid; gap: 6px; font-size: .76rem; color: var(--ink-2); font-weight: 600; letter-spacing: .03em; }
.f input, .f select, .f textarea { padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; font-weight: 400; font-size: .9rem; transition: border-color .15s, box-shadow .15s; }
.f input:focus, .f select:focus, .f textarea:focus, .casebar select:focus, .analyst input:focus { outline: none; border-color: rgba(56, 189, 248, .6); box-shadow: 0 0 0 4px var(--accent-soft); }
.f textarea { min-height: 72px; resize: vertical; }
.f .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.f .hint { font-weight: 400; color: var(--muted); font-size: .76rem; letter-spacing: 0; }
td.nowrap, .nowrap { white-space: nowrap; }
.chip .note { white-space: normal; }
.st-TRIGGERED { color: var(--bad); border-color: rgba(255, 107, 122, .45); background: rgba(255, 107, 122, .1); }
/* A checkbox sits beside its words, at its own size, in every form. */
.f input[type=checkbox] { width: auto; height: auto; padding: 0; margin: 0; flex: none; }
.f label:has(> input[type=checkbox]) { flex-direction: row; align-items: center; gap: 8px; }
@media (max-width: 640px) {
  table.acts thead { display: none; }
  table.acts, table.acts tbody { display: block; min-width: 0; }
  table.acts tr { display: grid; grid-template-columns: 22px 1fr; gap: 6px 10px; padding: 12px 4px; border-bottom: 1px solid #1f2a3a; }
  table.acts td { display: block; border: 0; padding: 0; min-width: 0; word-break: normal; }
  table.acts td:nth-child(n+3) { grid-column: 2; }
  table.acts td:nth-child(3):empty { display: none; }
  /* Other tables keep readable columns and scroll inside their own container rather than crush words. */
  .scroll > table:not(.acts):not(.rchk) { min-width: 640px; }
}
.lin-review { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; margin-top: 8px; }
.lin-review .row { flex: 1 1 460px; margin: 0; }
.lin-review > button { align-self: flex-end; }
.checks { display: flex; flex-wrap: wrap; gap: 4px 12px; font-weight: 400; }
.checks label { display: inline-flex; flex-direction: row; gap: 6px; align-items: center; font-weight: 400; white-space: nowrap; width: auto; }
.checks label input { margin: 0; width: auto; }
#in-estate .checks label { white-space: normal; }
@media (max-width: 700px) { .checks label { white-space: normal; max-width: 100%; } }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: 10px; border: 1px solid rgba(56, 189, 248, .8); background: linear-gradient(180deg, #4cc6fa, #22a8e6); color: #02111b; font-weight: 700; cursor: pointer; font-size: .84rem; text-decoration: none; transition: box-shadow .15s, transform .15s, filter .15s; }
.btn:hover { box-shadow: 0 8px 22px -8px rgba(56, 189, 248, .7); transform: translateY(-1px); text-decoration: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost { background: rgba(56, 189, 248, .06); color: var(--accent); border-color: rgba(56, 189, 248, .4); }
.btn.small { padding: 4px 10px; font-size: .76rem; border-radius: 8px; }
.btn.warn { background: rgba(255, 107, 122, .06); color: var(--bad); border-color: rgba(255, 107, 122, .45); }
.btn.ok { background: linear-gradient(180deg, #4ee4a4, #22c883); border-color: #3ddc97; color: #02150c; }
.btns { display: flex; gap: 6px; flex-wrap: wrap; }
.subtabs { display: inline-flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.subtabs button { padding: 7px 14px; border-radius: 9px; border: 0; background: transparent; cursor: pointer; font-weight: 600; color: var(--muted); font-size: .84rem; transition: color .15s, background .15s; }
.subtabs button:hover { color: var(--ink); }
.subtabs button.on { background: linear-gradient(180deg, rgba(56, 189, 248, .22), rgba(56, 189, 248, .1)); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .4); }

/* ---- ACH ---------------------------------------------------------------- */
.ach select { padding: 4px 6px; border-radius: 7px; border: 1px solid var(--line); font-weight: 700; min-width: 58px; }
.ach select.r-CC { background: rgba(61, 220, 151, .3); } .ach select.r-C { background: rgba(61, 220, 151, .12); }
.ach select.r-I { background: rgba(255, 107, 122, .15); } .ach select.r-II { background: rgba(255, 107, 122, .34); }
.ach th.hyp { white-space: normal; min-width: 150px; text-transform: none; letter-spacing: 0; font-size: .8rem; color: var(--ink); }
.ach th.lead { background: var(--accent-soft); }

/* ---- judgment columns ------------------------------------------------------ */
.epi { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1250px) { .epi { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .epi { grid-template-columns: 1fr; } }
.epi > div { padding: 14px 16px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); min-width: 0; }
.epi h3 { margin: 0 0 10px; font-size: .7rem; letter-spacing: .1em; }
.epi ul { margin: 0; padding-left: 16px; font-size: .85rem; color: var(--ink-2); }
.epi li + li { margin-top: 7px; }

/* ---- charts ------------------------------------------------------------------ */
.chart { width: 100%; display: block; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .lbl { fill: var(--ink-2); font-size: 12px; }
.chart .big { fill: var(--ink); font-size: 26px; font-weight: 300; font-family: var(--display); }
.chart .grid-l { stroke: rgba(148, 163, 184, .12); stroke-width: 1; }
.chart .hit { cursor: pointer; transition: opacity .15s, filter .15s; }
.chart .hit:hover { filter: brightness(1.35) drop-shadow(0 0 6px rgba(56, 189, 248, .5)); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .76rem; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.chart-tip { position: fixed; pointer-events: none; z-index: 60; background: rgba(20, 27, 39, .96); border: 1px solid #293447; color: var(--ink); padding: 8px 11px; border-radius: 10px; font-size: .78rem; max-width: 380px; box-shadow: 0 16px 40px rgba(0,0,0,.6); backdrop-filter: blur(8px); }

/* ---- lens ------------------------------------------------------------------ */
.matrix { display: grid; grid-template-columns: repeat(15, minmax(124px, 1fr)); gap: 6px; min-width: 1900px; }
.matrix .col h4 { margin: 0 0 6px; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); min-height: 32px; }
.matrix .cell { font-size: .74rem; padding: 6px 8px; border-radius: 7px; border: 1px solid var(--line); margin-bottom: 5px; background: rgba(255, 255, 255, .02); color: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; line-height: 1.3; }
.matrix .cell:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); color: var(--ink); }
.matrix .cell.OBSERVED, .matrix .cell.CONFIRMED { background: linear-gradient(180deg, rgba(45, 212, 191, .2), rgba(45, 212, 191, .08)); border-color: rgba(45, 212, 191, .6); color: #d9fbf5; }
.matrix .cell.CONFIRMED { border-color: rgba(61, 220, 151, .7); }
.matrix .cell.INFERRED { background: rgba(167, 139, 250, .1); border-color: rgba(167, 139, 250, .55); border-style: dashed; color: #ece7fe; }
.matrix .cell.SUGGESTED { background: rgba(245, 165, 36, .08); border-color: rgba(245, 165, 36, .55); border-style: dashed; color: #fde7bd; }
.matrix .cell.REJECTED { border-color: rgba(255, 107, 122, .45); color: #ffb3bb; text-decoration: line-through; background: rgba(255, 107, 122, .05); }
.matrix .cell.FORECAST { background: rgba(34, 211, 238, .06); border-color: rgba(34, 211, 238, .5); border-style: dotted; }
.matrix .cell.dim { opacity: .28; }
.matrix .cell.hl { box-shadow: 0 0 0 2px var(--accent), 0 0 18px rgba(56, 189, 248, .4); opacity: 1; }
.matrix .col.emptycol h4 { color: var(--faint); }
.matrix .col h4 .cov { display: block; margin-top: 4px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.matrix .col h4 .cov span { display: block; height: 100%; background: linear-gradient(90deg, #2dd4bf, #38bdf8); }
.chain { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 900px) { .chain { grid-template-columns: 1fr; } }
.stage { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--surface); min-height: 170px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.stage:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.stage.OBSERVED, .stage.CONFIRMED { border-color: rgba(45, 212, 191, .55); background: linear-gradient(180deg, rgba(45, 212, 191, .12), rgba(45, 212, 191, .02) 70%); box-shadow: inset 0 3px 0 var(--fact); }
.stage.INFERRED { border-style: dashed; border-color: rgba(167, 139, 250, .55); background: rgba(167, 139, 250, .05); }
.stage.SUGGESTED { border-style: dashed; border-color: rgba(245, 165, 36, .5); background: rgba(245, 165, 36, .04); }
.stage.NOT, .stage.UNKNOWN { background: repeating-linear-gradient(135deg, #0a0e14, #0a0e14 8px, #0d121a 8px, #0d121a 16px); color: var(--muted); border-style: dashed; }
.stage.current { box-shadow: 0 0 0 2px var(--accent), 0 0 28px rgba(56, 189, 248, .25); }
.stage h4 { margin: 0 0 8px; font-size: .95rem; }
.stage .num-big { font-family: var(--display); font-size: 2rem; font-weight: 300; line-height: 1; color: var(--ink); margin: 8px 0; }

/* ---- drawer (pivot) --------------------------------------------------------- */
.drawer-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 44; animation: fade .2s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); z-index: 45; overflow-y: auto; animation: slide .25s ease-out;
  background: linear-gradient(180deg, #0f141d, #090c12); border-left: 1px solid #243044; box-shadow: -30px 0 60px rgba(0, 0, 0, .6); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.drawer header { position: sticky; top: 0; z-index: 2; padding: 16px 20px 12px; background: rgba(15, 20, 29, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.drawer header .kind { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.drawer header h3 { margin: 4px 0 0; font-size: 1.12rem; font-weight: 600; line-height: 1.35; }
.drawer .crumbs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; font-size: .74rem; color: var(--muted); }
.drawer .crumbs a { color: var(--muted); } .drawer .crumbs a:hover { color: var(--accent); }
.drawer .sec { padding: 14px 20px; border-bottom: 1px solid var(--line-2); }
.drawer .sec h4 { margin: 0 0 10px; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.drawer .close { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: var(--muted); font-size: 1.3rem; cursor: pointer; }
.mapitem { border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; margin-bottom: 8px; background: rgba(255, 255, 255, .02); }
.mapitem .top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mapitem .why { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.mapitem .hist { font-size: .75rem; color: var(--muted); margin-top: 6px; border-left: 2px solid var(--line); padding-left: 8px; }
.mapitem form { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.mapitem form input { flex: 1; min-width: 160px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: .8rem; }
.pv { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); margin: 3px 5px 3px 0; font-size: .8rem; background: rgba(255, 255, 255, .025); cursor: pointer; color: var(--ink-2); transition: all .15s; }
.pv .k { font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---- crosswalk graph -------------------------------------------------------- */
.xgraph .node { cursor: pointer; transition: opacity .2s; }
.xgraph .link { transition: opacity .2s, stroke-width .2s; fill: none; }
.xgraph.focus .node:not(.on), .xgraph.focus .link:not(.on) { opacity: .1; }
.xgraph .node.on rect { filter: drop-shadow(0 0 8px rgba(56, 189, 248, .55)); }
.xgraph .coltitle { fill: var(--muted); font-size: 10px; letter-spacing: 2.4px; text-transform: uppercase; font-weight: 700; }

/* ---- misc ------------------------------------------------------------------ */
#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: rgba(20, 27, 39, .96); border: 1px solid #293447; color: var(--ink); padding: 11px 18px; border-radius: 12px; max-width: min(680px, 92vw); box-shadow: 0 18px 44px rgba(0,0,0,.6); z-index: 50; font-size: .88rem; backdrop-filter: blur(10px); animation: rise .2s; }
#toast.err { background: rgba(58, 20, 27, .96); border-color: #6b2230; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: .87rem; }
/* on a phone a long label (max-content) would push the page wider than the screen: label above value instead */
@media (max-width: 600px) { .kv { grid-template-columns: minmax(0, 1fr); gap: 2px 0; } }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.sealed { border: 1px solid #263245; background: repeating-linear-gradient(0deg, #0b1017, #0b1017 22px, #0d131b 22px, #0d131b 23px); border-radius: var(--radius); padding: 14px 16px; }
.sealed h4 { margin: 0 0 6px; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 10px rgba(56, 189, 248, .5); }
.timeline li.closed::before { background: var(--muted); border-color: var(--muted); box-shadow: none; }
.timeline li:last-child { border-left-color: transparent; }
details > summary { cursor: pointer; color: var(--ink-2); }
.cite { font-size: .76rem; color: var(--muted); }
.cite a { word-break: break-all; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.state-ACTIVE { background: var(--accent-soft); color: var(--accent); }
.state-CLOSED { background: var(--surface-3); color: var(--ink-2); }
.state-REOPENED { background: rgba(245, 165, 36, .12); color: var(--accent-2); }
.hr { height: 1px; background: var(--line-2); margin: 14px 0; }
.big { font-size: 1.15rem; font-weight: 650; }
.kpi { font-family: var(--display); font-weight: 300; font-size: 2.2rem; line-height: 1; letter-spacing: -.01em; }
.kpi small { font-family: var(--font); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 6px; font-weight: 600; }
.warnline { background: var(--warn-soft); border: 1px solid rgba(245, 192, 74, .25); padding: 9px 13px; border-radius: 10px; font-size: .85rem; color: #f3dfae; }
.okline { background: var(--ok-soft); border: 1px solid rgba(61, 220, 151, .25); padding: 9px 13px; border-radius: 10px; font-size: .85rem; color: #c3f5df; }
.unk { background: repeating-linear-gradient(135deg, rgba(138,149,168,.07), rgba(138,149,168,.07) 6px, transparent 6px, transparent 12px); border: 1px dashed rgba(138,149,168,.35); border-radius: 10px; padding: 9px 13px; font-size: .85rem; color: #c3cad6; }

/* ---- archive dialog ------------------------------------------------------------ */
.modal-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 40; display: flex; align-items: flex-start; justify-content: center; padding: 10vh 16px; backdrop-filter: blur(4px); animation: fade .2s; }
.modal { width: min(640px, 100%); background: linear-gradient(180deg, #121925, #0b0f16); border: 1px solid #293447; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.7); animation: rise .25s; }
.modal header { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal header h3 { margin: 0; letter-spacing: .2em; font-size: .78rem; text-transform: uppercase; color: var(--accent-2); }
.modal .body { padding: 18px 20px; }
.xbtn { background: none; border: 0; color: var(--muted); font-size: 1.2rem; cursor: pointer; }

/* ---- responsive hardening (browser certification) ------------------------------------ */
/* Break a string only when it is longer than the line, never to make a column narrower than its words
   (overflow-wrap: anywhere did that, producing E-/00/1). Wide tables scroll inside .scroll instead. */
.chip { max-width: 100%; white-space: normal; overflow-wrap: break-word; }
td .chip, .rd-objs .chip { white-space: nowrap; }   /* short ids in cells never split (E-/003) */
td { overflow-wrap: break-word; }
.g6 { display: grid; gap: 14px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1250px) { .g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  main table { display: block; overflow-x: auto; }
  .panel .body > svg.chart, .panel .body svg.chart { max-width: 100%; }
  .kpi { font-size: 1.7rem; }
  .brand .mark { font-size: 1.8rem; }
  /* WebKit lets a native select's longest option widen its parent's scrollable area past a phone screen. The bar clips it;
     5 px of padding (offset by margin) keeps the 4 px focus ring inside the clip, so layout and focus are unchanged. */
  .casebar { min-width: 0; flex-basis: 100%; overflow: hidden; padding: 5px; margin: -5px; }
  .f label:has(> select) { overflow: hidden; padding: 5px; margin: -5px; }   /* the same WebKit select behaviour inside a form */
  .analyst input { width: 130px; }
}
.f input, .f select, .f textarea { min-width: 0; max-width: 100%; width: 100%; }
.f .row > label, .f label { min-width: 0; }
.grid > *, .split > *, .split-r > * { min-width: 0; }
.g21 { display: grid; gap: 16px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 900px) { .g21 { grid-template-columns: 1fr; } }

/* B7: collection readings, never combined */
.ladder { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ladder .rung { border: 1px solid #263245; border-radius: 10px; padding: 8px 10px; background: #0b1017; opacity: .78; }
.ladder .rung.on { border-color: rgba(61, 220, 151, .35); background: var(--ok-soft); opacity: 1; }
.ladder .rung b { display: block; font-size: .62rem; letter-spacing: .14em; }
.ladder .rung span { font-size: .78rem; color: var(--accent); }
.ladder .rung .why { font-size: .74rem; margin-top: 4px; }
.chain-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .78rem; }
@media (max-width: 900px) { .ladder { grid-template-columns: 1fr; } }

/* B8: surfaced disconfirming evidence */
.mind-alert { margin-bottom: 14px; display: grid; gap: 6px; border-left: 3px solid var(--warn); }
.mind-alert .btn { justify-self: start; }

/* B9: source lineage */
.lchain { display: grid; gap: 2px; margin-top: 8px; }
.lstep { border: 1px solid #263245; border-radius: 9px; padding: 6px 10px; background: #0b1017; display: grid; gap: 2px; font-size: .8rem; }
.lstep b { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.lstep.unknown { border-style: dashed; border-color: rgba(245, 192, 74, .5); }
.lstep.circular, .lstep.retracted { border-color: rgba(255, 107, 122, .5); }
.lstep.ev { border-color: rgba(56, 189, 248, .4); }
.lstep.use { border-color: rgba(61, 220, 151, .35); }
.larrow { font-size: .7rem; color: var(--muted, #8a97aa); padding-left: 14px; }
.lgraph { display: block; min-width: 520px; }
.lgraph .lhead { font-size: 9px; letter-spacing: .16em; fill: #6f7d92; }
.lgraph .ledge { fill: none; stroke: #3a4a62; stroke-width: 1.4; }
.lgraph .ledge.r-REPUBLISHES, .lgraph .ledge.r-CITES, .lgraph .ledge.r-DERIVED_FROM { stroke: #7aa2d6; }
.lgraph .lrel { font-size: 8.5px; fill: #7aa2d6; text-anchor: middle; }
.lgraph .lnode rect { fill: #0d141d; stroke: #2f3d52; }
.lgraph .lnode.k-evidence rect { stroke: rgba(56, 189, 248, .6); cursor: pointer; }
.lgraph .lnode.k-evidence.st-UNKNOWN rect { stroke: rgba(245, 192, 74, .7); }
.lgraph .lnode.unknown rect { stroke-dasharray: 4 3; stroke: rgba(245, 192, 74, .7); }
.lgraph .lnode.circular rect, .lgraph .lnode.retracted rect, .lgraph .lnode.k-evidence.st-CIRCULAR rect { stroke: rgba(255, 107, 122, .8); }
.lgraph .lid { font-size: 10px; fill: #e6edf6; font-weight: 600; }
.lgraph .lname { font-size: 9px; fill: #8a97aa; }
.hist.muted { opacity: .6; }
td.num, th.num { text-align: right; }

/* B10: time */
.tchips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tchip { border: 1px solid #263245; background: #0d141d; border-radius: 999px; padding: 5px 12px; font-size: .78rem; color: var(--muted); }
.tchip b { color: var(--ink); margin-right: 3px; }
.tchip.warn { border-color: rgba(245, 192, 74, .4); } .tchip.warn b { color: var(--warn); }
.tchip.bad { border-color: rgba(255, 107, 122, .45); } .tchip.bad b { color: var(--bad); }
.tchip.zero { opacity: .55; }
.tlegend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .74rem; color: var(--muted); margin-bottom: 12px; }
.tlegend span { display: inline-flex; align-items: center; gap: 6px; }
.tcursor { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 4px 0 10px; }
.tcursor label { display: flex; align-items: center; gap: 10px; font-size: .82rem; }
.tcursor input[type=range] { width: min(460px, 70vw); accent-color: var(--accent); }
.tcursor .warnc { color: var(--warn); }
.tchart-wrap { border-radius: 12px; }
.tchart { display: block; min-width: 900px; font-family: inherit; }
.tchart .plotbg { fill: #0a0f16; }
.tchart .tgrid { stroke: #16202d; stroke-width: 1; } .tchart .tgrid.day { stroke: #243246; }
.tchart .ttick { font-size: 10px; fill: #5f6d82; } .tchart .ttick.day { fill: #9fb0c6; font-weight: 600; }
.tchart .rowbg { fill: transparent; }
.tchart g.trow { cursor: pointer; transition: opacity .15s; }
.tchart g.trow:hover .rowbg { fill: rgba(56, 189, 248, .06); }
.tchart g.trow.contra .rowbg { fill: rgba(255, 107, 122, .07); }
.tchart .rid { font-size: 11.5px; font-weight: 700; fill: #e6edf6; }
.tchart .rst { font-size: 11px; fill: #aebbd0; }
.tchart .rsrc { font-size: 9.5px; fill: #607089; }
:is(.tchart, .tlegend) .mark.happened { fill: #e6edf6; }
:is(.tchart, .tlegend) .mark.observed { fill: #0a0f16; stroke: #e6edf6; stroke-width: 2; }
:is(.tchart, .tlegend) .mark.reported { fill: #0a0f16; stroke: #a78bfa; stroke-width: 2; }
:is(.tchart, .tlegend) .band { fill: url(#approxg); stroke: #cdd8e6; stroke-width: 1; }
:is(.tchart, .tlegend) .band.happened { fill: rgba(230, 237, 246, .38); }
.tchart .band.approx { fill: url(#approxg); }
.tchart linearGradient stop { stop-color: #e6edf6; }
.tchart .band.observed { fill: rgba(230, 237, 246, .12); stroke-dasharray: none; }
.tchart .band.reported { fill: rgba(167, 139, 250, .2); stroke: #a78bfa; }
:is(.tchart, .tlegend) .band.tz { stroke-dasharray: 3 3; stroke: #f5c04a; fill: rgba(245, 192, 74, .12); }
.tchart .extra { fill: none; stroke: #7d8aa0; stroke-width: 1.4; }
.tchart .extra.reported { stroke: #a78bfa; }
:is(.tchart, .tlegend) .known { fill: #38bdf8; filter: drop-shadow(0 0 4px rgba(56, 189, 248, .7)); }
:is(.tchart, .tlegend) .latency { stroke: #38bdf8; stroke-width: 1.4; stroke-dasharray: 2 3; opacity: .7; }
:is(.tchart, .tlegend) .latency.late { stroke: #f5c04a; opacity: 1; stroke-width: 1.8; }
.tchart .earlier { font-size: 9.5px; fill: #f5c04a; }
.tchart .later { font-size: 9.5px; fill: #f5c04a; opacity: 0; }
.tchart g.trow.unknown-then { opacity: .22; }
.tchart g.trow.later-discovered { opacity: .5; }
.tchart g.trow.later-discovered .later { opacity: 1; }
.tchart .rule line { stroke-width: 1.2; }
.tchart .rule.judgment line { stroke: #a78bfa; stroke-dasharray: 5 4; } .tchart .rule.judgment text { fill: #c4b5fd; font-size: 9.5px; }
.tchart .rule.intervention line { stroke: #2dd4bf; } .tchart .rule.intervention text { fill: #5eead4; font-size: 9.5px; font-weight: 600; }
.tchart .rulespan { fill: rgba(45, 212, 191, .07); }
.tchart .nowline { stroke: #ff6b7a; stroke-width: 1; stroke-dasharray: 2 2; } .tchart .nowlbl { fill: #ff6b7a; font-size: 9.5px; }
.tchart .cursor line { stroke: #38bdf8; stroke-width: 1.6; }
.tchart .cursor .unknownzone { fill: url(#hatch); opacity: .35; pointer-events: none; }
.tchart .hatchline { stroke: #1b2735; stroke-width: 3; }
.leg-judgment { stroke: #a78bfa; stroke-dasharray: 4 3; stroke-width: 1.5; }
.leg-intervention { stroke: #2dd4bf; stroke-width: 2; }
.lgroup { border-left: 2px solid rgba(167, 139, 250, .5); padding-left: 12px; }
.lgt .lgaxis { stroke: #2a3749; stroke-width: 1.2; } .lgt .lglbl { font-size: 10px; fill: #aebbd0; }
.lgt .mark.reported { fill: #0a0f16; stroke: #a78bfa; stroke-width: 2; cursor: pointer; }
.ttable td { padding: 5px 8px; vertical-align: top; } .ttable tr.muted { opacity: .55; }
details.timebox { border: 1px dashed #2a3749; border-radius: 10px; padding: 8px 12px; }
details.timebox summary { cursor: pointer; font-size: .82rem; color: var(--accent-2); }
details.timebox code { font-size: .74rem; }
.tlegend :is(.mark.observed, .mark.reported) { fill: #0d141d; }
.tzoom { display: inline-flex; gap: 2px; background: #0b1017; border: 1px solid #263245; border-radius: 10px; padding: 3px; margin-bottom: 10px; }
.tzoom button { background: none; border: 0; color: var(--muted); padding: 5px 12px; border-radius: 8px; font: inherit; font-size: .78rem; cursor: pointer; }
.tzoom button.on { background: rgba(56, 189, 248, .14); color: var(--accent); }
.tchart .rnum { fill: #0a0f16; stroke-width: 1.5; }
.tchart .rule.judgment .rnum { stroke: #a78bfa; } .tchart .rule.intervention .rnum { stroke: #2dd4bf; }
.tchart .rnumt { font-size: 9px; font-weight: 700; fill: #e6edf6; }
/* Sovereign Intelligence B26: campaign in time */
.tchart.cg .cg-lane { stroke: #243246; stroke-width: 1; }
.tchart.cg .cg-item { fill: rgba(230, 237, 246, .38); stroke: #cdd8e6; stroke-width: 1; cursor: pointer; }
.tchart.cg .cg-item:hover { fill: rgba(56, 189, 248, .45); }
.tchart.cg .cg-item.approx { fill: rgba(230, 237, 246, .16); }
.tchart.cg .cg-item.tz { stroke-dasharray: 3 3; stroke: #f5c04a; fill: rgba(245, 192, 74, .12); }
.tchart.cg .cg-item.late { stroke: #f5c04a; stroke-width: 2; }
.tchart.cg .cg-gap { fill: rgba(96, 112, 137, .14); }
.rulekey { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: .78rem; }
.rulekey span b { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: .66rem; margin-right: 4px; border: 1.5px solid; }
.rulekey .judgment b { border-color: #a78bfa; color: #c4b5fd; } .rulekey .intervention b { border-color: #2dd4bf; color: #5eead4; }
.tcursor label { flex-wrap: wrap; max-width: 100%; min-width: 0; }
.tcursor input[type=range] { flex: 1 1 180px; width: auto; max-width: min(460px, 100%); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }

/* B11: decision trace */
.tsel { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tsel button { background: #0d141d; border: 1px solid #263245; color: var(--muted); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .78rem; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tsel button.on { border-color: var(--accent); color: var(--ink); background: rgba(56, 189, 248, .1); }
.tsel button.lead { font-weight: 600; }
.tsubj { margin: 4px 0 10px; font-size: 1.05rem; }
.spine-key { display: flex; gap: 14px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.spine-key span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: var(--gc); vertical-align: -1px; }
.g-ev { --gc: #38bdf8; } .g-rs { --gc: #a78bfa; } .g-jd { --gc: #fbbf24; } .g-ac { --gc: #2dd4bf; }
.spine { position: relative; display: grid; gap: 10px; }
.spine::before { content: ""; position: absolute; left: 15px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(#38bdf8, #a78bfa 35%, #fbbf24 70%, #2dd4bf); opacity: .5; }
.stop { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; }
.stop .dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #0a0f16; border: 2px solid var(--gc); z-index: 1; box-shadow: 0 0 12px color-mix(in srgb, var(--gc) 35%, transparent); }
.stop .dot span { font-size: .72rem; font-weight: 700; color: var(--gc); }
.stop.empty .dot { box-shadow: none; opacity: .55; border-style: dashed; }
.stop .card { border: 1px solid #1f2a3a; border-left: 3px solid var(--gc); border-radius: 10px; padding: 9px 12px; background: #0b1017; }
.stop.empty .card { opacity: .62; }
.stop .items { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 5px; }
.stop .tgi { font-size: .72rem; }
.evo { display: block; min-width: 760px; }
.evo .evo-line { fill: none; stroke: #e6edf6; stroke-width: 1.8; }
.evo .evo-grid { stroke: #16202d; } .evo .evo-ax { font-size: 9.5px; fill: #5f6d82; }
.evo .evo-win { fill: rgba(56, 189, 248, .08); stroke: rgba(56, 189, 248, .45); stroke-dasharray: 3 3; }
.evo .evo-ev { fill: #38bdf8; } .evo .evo-dec { fill: #fbbf24; }
.evo .evo-lane { font-size: 9px; letter-spacing: .12em; fill: #5f6d82; text-transform: uppercase; }
.evo .evo-att line { stroke: #f472b6; stroke-width: 1.4; stroke-dasharray: 4 3; } .evo .evo-att text { fill: #f9a8d4; font-size: 9.5px; }
.evo-key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .74rem; color: var(--muted); margin-top: 6px; }
.evo-key i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; opacity: .6; }
.evo-key i.line { height: 2px; background: #e6edf6; vertical-align: 3px; opacity: 1; }
.evo-key i.win { background: rgba(56, 189, 248, .2); border: 1px dashed rgba(56, 189, 248, .6); }
.evo-key b.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #38bdf8; margin-right: 6px; }
.evo-key b.dia { display: inline-block; width: 7px; height: 7px; background: #fbbf24; transform: rotate(45deg); margin-right: 6px; }
.evo .evo-none { fill: url(#hatch); fill: rgba(95, 109, 130, .06); }
.evo .evo-nonet { font-size: 10.5px; fill: #5f6d82; font-style: italic; }
.evo .evo-flip circle { fill: none; stroke: #f472b6; stroke-width: 2; }
.evo-key b.flip { display: inline-block; width: 8px; height: 8px; border-radius: 50%; border: 2px solid #f472b6; margin-right: 6px; }

/* B12: forecasts - analytical, never a betting slip */
.fcard .fc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fcard .fc-stmt { font-size: 1.02rem; line-height: 1.45; color: var(--ink); }
.fcard .fc-measure { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) minmax(0, 1.2fr); gap: 18px; padding: 10px 0; border-top: 1px solid #1c2636; border-bottom: 1px solid #1c2636; }
@media (max-width: 900px) { .fcard .fc-measure { grid-template-columns: 1fr; } }
.fcard .fk { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.fcard .fv { font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; margin: 2px 0 4px; }
.fcard .fv.sm { font-size: 1rem; }
.fh { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); margin: 6px 0 4px; }
.pscale { display: block; max-width: 100%; }
.pscale .ps-axis { stroke: #2a3749; stroke-width: 2; } .pscale .ps-t { stroke: #2a3749; }
.pscale .ps-cur { fill: #e6edf6; } .pscale .ps-issued { stroke: #7d8aa0; stroke-width: 1.5; stroke-dasharray: 2 2; }
.pscale .ps-saga { fill: none; stroke: #38bdf8; stroke-width: 1.8; }
.wstrip { display: block; min-width: 520px; }
.wstrip .ws-win { fill: rgba(56, 189, 248, .14); stroke: rgba(56, 189, 248, .45); }
.wstrip .ws-gap { fill: url(#hatch); fill: rgba(245, 192, 74, .22); stroke: rgba(245, 192, 74, .7); stroke-dasharray: 3 2; }
.wstrip .ws-issue { fill: #e6edf6; } .wstrip .ws-rev { fill: #0a0f16; stroke: #a78bfa; stroke-width: 1.8; }
.wstrip .ws-iv line { stroke: #2dd4bf; stroke-width: 2; } .wstrip .ws-out { fill: #fbbf24; }
.wstrip .ws-now { stroke: #ff6b7a; stroke-dasharray: 2 2; } .wstrip .ws-l { font-size: 9.5px; fill: #7d8aa0; }
.setbar { display: flex; height: 26px; border-radius: 8px; overflow: hidden; font-size: .72rem; font-weight: 600; }
.setbar span { display: flex; align-items: center; padding: 0 8px; color: #0a0f16; white-space: nowrap; overflow: hidden; opacity: .85; }
.setbar span.rest { background: repeating-linear-gradient(45deg, #1b2533, #1b2533 4px, #141c28 4px, #141c28 8px); color: var(--muted); }
.retro .rlabel { border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; border: 1px solid; }
.retro .rlabel b { text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; }
.retro .rlabel.rw { border-color: rgba(167, 139, 250, .5); background: rgba(167, 139, 250, .08); }
.retro .rlabel.wg { border-color: rgba(56, 189, 248, .45); background: rgba(56, 189, 248, .07); }
.retro .rlabel.cn { border-color: rgba(45, 212, 191, .45); background: rgba(45, 212, 191, .06); }
@media (max-width: 640px) {
  .ttable.rchk tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid #1f2a3a; }
  .ttable.rchk td { display: block; border: 0; padding: 0 8px; }
  .ttable.rchk td:nth-child(3) { grid-column: 1 / -1; }
  .ttable.rchk tr.sel { background: rgba(56, 189, 248, .06); }
  .ttable.rchk tr.sel td { background: transparent; }
}
/* B13 Analytic Lab navigation and readiness */
.labnav { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 16px; align-items: flex-end; }
.labnav .lgrp { display: flex; flex-direction: column; gap: 4px; }
.labnav .lgh { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-left: 6px; }
.labnav .subtabs { margin-bottom: 0; }
.rd-strip { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.rd-cell { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 10px; border: 1px solid #1f2a3a; text-decoration: none; color: var(--ink); background: rgba(255, 255, 255, .02); min-width: 0; }
.rd-cell i { display: block; height: 4px; border-radius: 3px; background: var(--rdc); }
.rd-cell span { font-size: .78rem; font-weight: 600; line-height: 1.25; }
.rd-cell em { font-style: normal; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rdc); }
.rd-cell:hover { border-color: var(--rdc); }
.rd-ADEQUATE { --rdc: var(--ok); } .rd-LIMITED { --rdc: var(--warn); } .rd-WEAK { --rdc: var(--bad); } .rd-NOT_APPLICABLE { --rdc: #64748b; }
.rd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.rd-grid > div { display: flex; }
.rdim { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 14px; border: 1px solid #1f2a3a; border-top: 3px solid var(--rdc); background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01)); }
.rdim header { display: flex; flex-direction: column; gap: 2px; }
.rdim h3 { margin: 0; font-size: .98rem; }
.rd-state { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--rdc); }
.rd-head { font-size: 1.02rem; font-weight: 600; }
.rd-facts { margin: 0; padding-left: 16px; color: var(--muted); font-size: .82rem; display: flex; flex-direction: column; gap: 4px; }
.rd-objs { display: inline-flex; flex-wrap: wrap; gap: 3px; vertical-align: middle; }
.rd-next { font-size: .82rem; border-left: 2px solid var(--rdc); padding-left: 10px; }
.rd-next b { display: block; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.rd-rule { font-size: .78rem; color: var(--muted); }
.rd-rule summary { cursor: pointer; }
.rdim .btn { align-self: flex-start; margin-top: auto; }
.rd-decision { border-radius: 12px; padding: 12px 14px; border: 1px solid #1f2a3a; display: flex; flex-direction: column; gap: 6px; }
.rd-decision.rd-READY { border-color: rgba(61, 220, 151, .4); background: var(--ok-soft); }
.rd-decision.rd-NOT_READY { border-color: rgba(245, 192, 74, .4); background: var(--warn-soft); }
.rd-dk { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.rd-why { font-size: .98rem; }
@media (max-width: 1100px) { .rd-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .rd-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rd-grid { grid-template-columns: 1fr; } }
.quad { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; font-size: .74rem; }
.quad div { border: 1px solid #1f2a3a; border-radius: 8px; padding: 8px; color: var(--muted); min-height: 44px; }
.quad div.on { border-color: var(--accent); color: var(--ink); background: rgba(56, 189, 248, .08); }
.kf { font-size: .8rem; margin-bottom: 4px; }
.kc { display: inline-block; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; border-radius: 999px; padding: 2px 8px; margin-right: 6px; border: 1px solid; }
.kc-then { border-color: #f472b6; color: #f9a8d4; } .kc-able { border-color: #fbbf24; color: #fcd34d; }
.kc-unk, .kc-inf { border-color: #5f6d82; color: #9fb0c6; } .kc-later { border-color: #38bdf8; color: #7dd3fc; }
.cal { display: block; max-width: 100%; }
.cal .cal-bg { fill: #0a0f16; } .cal .cal-diag { stroke: #3a4a62; stroke-dasharray: 4 4; }
.cal .cal-pt { fill: rgba(56, 189, 248, .35); stroke: #38bdf8; stroke-width: 1.5; } .cal .cal-pt.thin { fill: none; stroke-dasharray: 3 2; }
.cal .cal-ci { stroke: #7dd3fc; stroke-width: 1.5; } .cal .cal-n, .cal .cal-ax { font-size: 9.5px; fill: #7d8aa0; } .cal .cal-lbl { font-size: 10px; fill: #9fb0c6; }
.sharp rect { fill: rgba(167, 139, 250, .55); } .sharp text { font-size: 8.5px; fill: #7d8aa0; }
details.fforms { border-top: 1px dashed #263245; padding-top: 8px; }

/* C2 two-tier judgment: SAGA's assessment beside the analyst's */
.tt-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tt-side { border: 1px solid #1f2a3a; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tt-saga { border-left: 3px solid var(--accent); background: var(--accent-soft); }
.tt-human { border-left: 3px solid var(--accent-2); background: rgba(245, 165, 36, .06); }
.tt-empty { border-style: dashed; background: transparent; }
.tt-k { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tt-pos { font-size: 1.05rem; font-weight: 600; color: var(--ink); overflow-wrap: break-word; }
.tt-why { color: var(--ink-2); font-size: .9rem; }
.tt-basis { display: flex; flex-wrap: wrap; gap: 4px; }
@media (max-width: 800px) { .tt-pair { grid-template-columns: 1fr; } }

/* C5 provenance drawer: SHOW ME THE EVIDENCE · SHOW ME THE REASONING */
.tt-side .btn { align-self: flex-start; margin-top: 4px; }
.prov-step, .prov-ev { padding: 10px 0; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 4px; }
.prov-step:last-child, .prov-ev:last-child { border-bottom: 0; }
.prov-text { color: var(--ink); overflow-wrap: break-word; }
.prov-why { color: var(--ink-2); font-size: .88rem; border-left: 2px solid var(--line); padding-left: 10px; }
.prov-saga { font-size: .84rem; color: var(--ink-2); background: var(--accent-soft); border-radius: 8px; padding: 8px 10px; }
.prov-retracted .prov-text { text-decoration: line-through; color: var(--muted); }
.drawer.prov header { padding-right: 48px; }

/* C1 products: a document composed from the record, every statement traceable */
.pr-layout { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: 16px; align-items: start; }
.pr-list { display: flex; flex-direction: column; gap: 6px; }
.pr-item { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid #1f2a3a;
  background: transparent; color: var(--ink-2); cursor: pointer; font: inherit; }
.pr-item:hover, .pr-item.on { border-color: rgba(56, 189, 248, .45); background: var(--accent-soft); color: var(--ink); }
.pr-id { font-size: .7rem; letter-spacing: .14em; color: var(--muted); }
.pr-t { font-weight: 600; }
.pr-doc { padding: 0; }
.panel > header.pr-head { padding: 22px 26px 16px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px;
  align-items: stretch; justify-content: flex-start; font-size: .9rem; letter-spacing: normal; text-transform: none; font-weight: 400; color: var(--ink-2); }
.pr-kind { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.pr-title { margin: 0; font-size: 1.45rem; line-height: 1.25; }
.pr-legend { font-size: .82rem; color: var(--muted); }
.pr-change div { margin-top: 3px; }
.pr-sec { padding: 16px 26px; border-bottom: 1px solid var(--line-2); }
.pr-sec h3 { margin: 0 0 10px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.pr-blk { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 8px 0; }
.pr-blk + .pr-blk { border-top: 1px dashed var(--line-2); }
.pr-text { color: var(--ink); line-height: 1.55; overflow-wrap: break-word; }
.pr-cat .badge { white-space: nowrap; }
.b-judgment { background: rgba(245, 165, 36, .14); color: #f7c77a; border-color: rgba(245, 165, 36, .35); }
.b-saga { background: var(--accent-soft); color: #9fdcfb; border-color: rgba(56, 189, 248, .35); }
.b-method { background: transparent; color: var(--muted); border-color: var(--line); }
@media (max-width: 900px) {
  .pr-layout { grid-template-columns: minmax(0, 1fr); }
  .pr-blk { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pr-blk .pr-prov { justify-self: start; }
  .panel > header.pr-head, .pr-sec { padding-left: 16px; padding-right: 16px; }
}

/* C6 publication */
.pr-standing { font-weight: 600; font-size: .88rem; padding: 7px 11px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink-2); }
.pr-st-ISSUED { border-color: rgba(61, 220, 151, .4); background: var(--ok-soft); color: #bff3da; }
.pr-st-SUPERSEDED { border-color: rgba(245, 192, 74, .4); background: var(--warn-soft); color: #f3dfae; }
.pr-st-RETRACTED { border-color: rgba(255, 107, 122, .45); background: var(--bad-soft); color: #ffc2c9; }
.pr-pub .stack { gap: 8px; }
.pr-exports { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pr-pub code { overflow-wrap: anywhere; font-size: .78rem; }
.chk { display: flex; gap: 8px; align-items: flex-start; }

/* C3 roadmap horizons in the defensive actions table */
td.hz { min-width: 150px; }
td.hz .chip { margin: 2px 2px 0 0; }
.hz-form form { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }

/* C4 DYNAMIC RUNBOOK */
.rb-gen { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rb-gen input { min-width: 240px; }
.rb-banner { margin-bottom: 14px; }
.rb-banner div { margin-top: 3px; }
.rb-dxs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.rb-dx { border: 1px solid #1f2a3a; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rb-dxk { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rb-dxt { color: var(--ink); font-size: .9rem; overflow-wrap: break-word; }
.rb-dx .btn { align-self: flex-start; }
.rb-lanes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 12px; overflow-x: auto; padding: 14px; }
.rb-lane h3 { margin: 0 0 8px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); display: flex; justify-content: space-between; }
.rb-lane h3 span { color: var(--muted); letter-spacing: 0; }
.rb-act { border: 1px solid #1f2a3a; border-left: 3px solid var(--accent); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px;
  display: flex; flex-direction: column; gap: 6px; background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)); min-width: 0; }
.rb-act header { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rb-seq { font-weight: 700; color: var(--ink); min-width: 1.4em; }
.rb-cat { font-size: .72rem; letter-spacing: .14em; color: var(--ink-2); }
.rb-text { color: var(--ink); font-weight: 600; overflow-wrap: break-word; }
.rb-wait { font-size: .82rem; color: #f3dfae; }
.rb-row { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.rb-full { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.rb-kv { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 10px; font-size: .84rem; padding: 3px 0; }
.rb-kv > span:first-child { color: var(--muted); }
.rb-decide form { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.rb-d-COMPLETE { border-left-color: var(--ok); opacity: .82; }
.rb-d-REJECT { border-left-color: var(--bad); opacity: .7; }
.rb-d-DEFER, .rb-d-MODIFY { border-left-color: var(--warn); }
.rb-br { border-left: 3px solid var(--line); padding-left: 10px; }
.rb-br-TRIGGERED { border-left-color: var(--bad); }
.rb-ver { border-bottom: 1px solid var(--line-2); padding-bottom: 8px; display: flex; flex-direction: column; gap: 4px; }
.rb-ver code { font-size: .74rem; color: var(--muted); }
@media (max-width: 800px) {
  .rb-lanes { grid-auto-flow: row; grid-auto-columns: auto; overflow-x: visible; padding: 10px; }
  .rb-kv { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rb-gen input { min-width: 0; width: 100%; }
}

/* D1 Decision Lab: dimension by dimension, never a score */
.dl-open { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; }
.dl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.dl-matrix td, .dl-matrix th { vertical-align: top; }
.dl-matrix th { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); min-width: 130px; }
.dl-matrix td:first-child { min-width: 240px; }
.dl-matrix td:first-child .btn { margin: 4px 4px 0 0; }
.dl-cell { font-size: .82rem; min-width: 130px; border-left: 3px solid transparent; }
.dl-cell .note { font-size: .76rem; }
.dl-gain.dl-h { border-left-color: var(--ok); } .dl-gain.dl-m { border-left-color: rgba(61, 220, 151, .5); }
.dl-cost.dl-h { border-left-color: var(--bad); } .dl-cost.dl-m { border-left-color: var(--warn); }
.dl-l, .dl-n { border-left-color: var(--line); }
tr.dl-rec td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
tr.dl-chosen td:first-child { box-shadow: inset 3px 0 0 var(--accent-2); }
@media (max-width: 800px) { .dl-open { grid-template-columns: minmax(0, 1fr); } }

/* D5 Time Machine */
.tm-banner { border: 1px solid rgba(245, 165, 36, .45); background: rgba(245, 165, 36, .08); color: #f7d9a4; border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; }
.tm-bar { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.tm-bar input[type=range] { width: 100%; accent-color: var(--accent-2); }
.tm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 14px; }
.tm-tile { border: 1px solid #1f2a3a; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tm-tile span { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tm-tile b { overflow-wrap: break-word; }

/* D7 cross-case relationships */
.xc-rel { border: 1px solid #1f2a3a; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.xc-rel header { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.xc-read { color: var(--ink-2); font-size: .88rem; }
.xc-sim { font-size: .84rem; padding: 3px 0 3px 8px; border-left: 2px solid var(--line); overflow-wrap: anywhere; }
.xc-d { border-left-color: var(--accent); }
.xc-c { border-left-color: var(--faint); color: var(--muted); }
form.f.xc-inv, form.f.xc-judge { display: flex; flex-direction: row; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.xc-inv input, .xc-judge input { flex: 1; min-width: 160px; }
.xc-h { border-top: 1px dashed var(--line-2); padding-top: 8px; display: flex; flex-direction: column; gap: 4px; }

/* D9-D10 looking back */
.dl-cf { border-left: 3px solid var(--warn); padding-left: 10px; }
.dl-cf ul { margin: 6px 0; padding-left: 18px; }
.dl-rev { border-top: 1px solid var(--line-2); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }


/* RESTORE PATH (Phase E1) */
.rbv-nav { margin-bottom: 14px; }
.rp-verdict { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-bottom: 14px; }
.rp-side { border: 1px solid #1f2a3a; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rp-k { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.rp-decide { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.rp-dims { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.rp-dim { border: 1px solid #1f2a3a; border-left: 3px solid var(--line); border-radius: 10px; padding: 9px 11px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rp-dim header { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.rp-dn { font-weight: 600; color: var(--ink); font-size: .86rem; }
.rp-dh { font-size: .84rem; color: var(--ink-2); overflow-wrap: break-word; }
.rp-dim.rp-MET { border-left-color: var(--ok); } .rp-dim.rp-NOT_MET { border-left-color: var(--bad); } .rp-dim.rp-UNKNOWN { border-left-color: var(--warn); border-left-style: dashed; }
.rp-fact { font-size: .82rem; margin: 3px 0; overflow-wrap: break-word; }
.rp-graphwrap { overflow-x: auto; margin-bottom: 12px; }
.rp-graph .lnode { cursor: pointer; }
.rp-graph .rp-c-RESTORED rect, .rp-graph .rp-c-TRUSTED rect { stroke: rgba(61, 220, 151, .7); }
.rp-graph .rp-c-CAN_RETURN_NOW rect { stroke: rgba(56, 189, 248, .8); }
.rp-graph .rp-c-REQUIRES_VERIFICATION rect { stroke: rgba(245, 192, 74, .8); }
.rp-graph .rp-c-UNKNOWN rect { stroke: rgba(245, 192, 74, .7); stroke-dasharray: 4 3; }
.rp-graph .rp-c-BLOCKED rect, .rp-graph .rp-c-UNTRUSTED rect { stroke: rgba(255, 107, 122, .85); }
.rp-graph .rp-edge-bad { stroke: rgba(255, 107, 122, .7); }
.rp-graph .rp-arrowhead { fill: #3a4a62; }
.rp-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.rp-group h3 { margin: 0 0 6px; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); display: flex; justify-content: space-between; gap: 8px; }
.rp-group h3 span { color: var(--muted); letter-spacing: 0; }
.rp-node-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; text-align: left; background: rgba(255, 255, 255, .02);
  border: 1px solid #1f2a3a; border-radius: 9px; padding: 8px 10px; margin-bottom: 6px; color: var(--ink-2); cursor: pointer; font: inherit; }
.rp-node-btn:hover { border-color: var(--accent); }
.rp-why { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.rp-warnrow { font-size: .82rem; color: #f3dfae; overflow-wrap: break-word; }
.rp-stage { padding: 12px 14px 4px; }
.rp-stage h3 { margin: 0 0 8px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rp-stage h3 span { color: var(--muted); letter-spacing: 0; text-transform: none; }
.rp-step.rp-s-VERIFIED { border-left-color: var(--ok); }
.rp-step.rp-s-EXECUTED { border-left-color: var(--warn); }
.rp-step.rp-s-DECLINED { border-left-color: var(--bad); opacity: .75; }
.rp-step.rp-blocked { border-left-color: var(--bad); }
.rp-step select[multiple] { min-height: 60px; }
.rp-next { font-size: .88rem; overflow-wrap: break-word; }
.rp-in { display: flex; flex-direction: column; gap: 5px; margin: 8px 0; }
@media (max-width: 700px) { .rp-graphwrap { display: none; } }

/* BREACH ANATOMY (Phase E2) */
.an-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 8px; }
.an-tile { border: 1px solid #1f2a3a; border-radius: 10px; padding: 9px 11px; min-width: 0; }
.an-k { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.an-v { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.an-headline { margin: 4px 0 14px; }
.an-toggles { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.an-ov { cursor: pointer; font: inherit; }
.an-ov.on { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }
.an-graphwrap { overflow-x: auto; padding-bottom: 6px; }
.an-graph { display: block; }
.an-graph .an-n rect { fill: #0d141d; stroke: #2f3d52; stroke-width: 1.4; }
.an-graph .an-n.b-OBSERVED rect { stroke: rgba(61, 220, 151, .65); }
.an-graph .an-n.b-INFERRED rect { stroke: rgba(56, 189, 248, .65); stroke-dasharray: 6 3; }
.an-graph .an-n.b-REPORTED rect { stroke: rgba(245, 192, 74, .7); stroke-dasharray: 3 3; }
.an-graph .an-n.an-unk rect { stroke: rgba(245, 192, 74, .75); stroke-dasharray: 4 4; fill: rgba(245, 192, 74, .04); }
.an-graph .an-n.an-contested rect { stroke: rgba(255, 107, 122, .85); }
.an-graph .an-n.an-impact rect { fill: rgba(255, 107, 122, .07); }
.an-graph .an-n, .an-graph .an-tr { cursor: pointer; outline: none; }
.an-graph .an-n:hover rect, .an-graph .an-n:focus rect { stroke: var(--accent); }
.an-graph .an-l { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; fill: var(--ink); }
.an-graph .an-t { font-size: 10px; fill: #aeb8c8; }
.an-graph .an-tech { fill: #99f6e4; }
.an-graph .an-miss { fill: #f5c04a; }
.an-graph .an-impt { fill: #ff9aa5; font-size: 10.5px; }
.an-graph .an-e { stroke: #56708f; stroke-width: 2; fill: none; }
.an-graph .an-e.an-loose { stroke-dasharray: 5 4; }
.an-graph .an-e.an-unexpl { stroke: #f5c04a; }
.an-graph .an-hit { fill: transparent; }
.an-graph .an-el { font-size: 9.5px; fill: #9fc3ea; text-anchor: middle; }
.an-graph .an-q { fill: #f5c04a; }
.an-graph .an-ctl { fill: #c4b5fd; }
.an-graph .an-ah { fill: #56708f; }
.an-graph .an-cont line { stroke: rgba(255, 107, 122, .8); stroke-width: 2; stroke-dasharray: 3 3; }
.an-graph .an-contl { fill: #ff9aa5; text-anchor: start; }
.an-list { display: none; list-style: none; padding: 0; margin: 0; }
.an-li { margin-bottom: 6px; }
.an-node-btn, .an-tr-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; text-align: left; font: inherit; cursor: pointer;
  background: rgba(255, 255, 255, .02); border: 1px solid #1f2a3a; border-radius: 9px; padding: 8px 10px; color: var(--ink-2); }
.an-tr-btn { border-style: dashed; margin: 4px 0 0 14px; width: calc(100% - 14px); font-size: .84rem; }
.an-unknown .an-node-btn { border-style: dashed; border-color: rgba(245, 192, 74, .6); }
.an-possible { margin-top: 12px; border-top: 1px solid var(--line-2); padding-top: 10px; }
.an-prow { margin: 6px 0; overflow-wrap: anywhere; }
.an-assign { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.an-cond { border-bottom: 1px solid var(--line-2); padding-bottom: 8px; display: flex; flex-direction: column; gap: 3px; overflow-wrap: anywhere; }
.an-retracted { opacity: .6; }
.an-kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 10px; font-size: .84rem; }
.an-cform { display: flex; flex-direction: column; gap: 6px; }
.an-sug { border-left: 3px solid var(--accent); padding-left: 8px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 3px; }
@media (max-width: 700px) { .an-graphwrap, .an-toggles { display: none; } .an-list { display: block; } }

.an-kinds label { display: flex; flex-direction: row; align-items: center; gap: 6px; margin: 0; }
.an-kinds input[type=checkbox] { width: auto; margin: 0; flex: none; }
.an-assign { flex-direction: row; }
.an-assign select, .an-assign input { width: auto; min-width: 0; flex: 1 1 140px; }
.an-decide summary { cursor: pointer; font-size: .82rem; color: var(--accent); }
.nobr { white-space: nowrap; }   /* a command-line switch stays one word (core.js keepSwitches) */

/* CONTROL EVOLUTION (Phase E3) */
.ev-board { display: flex; flex-direction: column; gap: 12px; }
.ev-row { border: 1px solid #1f2a3a; border-radius: 12px; padding: 12px 14px; background: rgba(255, 255, 255, .015); display: flex; flex-direction: column; gap: 8px; min-width: 0; outline: none; }
.ev-row:focus, .ev-row:hover { border-color: rgba(56, 189, 248, .45); }
.ev-row header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.ev-open { font: inherit; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 0; }
.ev-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.ev-cell { border-left: 2px solid #26344a; padding-left: 8px; min-width: 0; overflow-wrap: anywhere; font-size: .86rem; display: flex; flex-direction: column; gap: 3px; }
.ev-cell:nth-child(2) { border-left-color: rgba(255, 107, 122, .6); }
.ev-cell:nth-child(3) { border-left-color: rgba(56, 189, 248, .7); }
.ev-cell:nth-child(4) { border-left-color: rgba(61, 220, 151, .6); }
.ev-cell:nth-child(6) { border-left-color: rgba(245, 192, 74, .7); }
.ev-cl { margin-bottom: 2px; }
.ev-graph .ev-n rect { fill: #0d141d; stroke: #2f3d52; stroke-width: 1.4; }
.ev-graph .ev-n.an-unk rect { stroke: rgba(245, 192, 74, .75); stroke-dasharray: 4 4; }
.ev-graph .ev-tr { cursor: pointer; outline: none; }
.ev-graph .ev-e { stroke-width: 3; fill: none; }
.ev-graph .ev-open .ev-e { stroke: rgba(255, 107, 122, .85); stroke-dasharray: 6 4; }
.ev-graph .ev-open .an-el { fill: #ff9aa5; }
.ev-graph .ev-proposed .ev-e { stroke: rgba(245, 192, 74, .85); stroke-dasharray: 3 3; }
.ev-graph .ev-proposed .an-el { fill: #f5c04a; }
.ev-graph .ev-accepted .ev-e { stroke: rgba(56, 189, 248, .9); }
.ev-graph .ev-verified .ev-e { stroke: rgba(61, 220, 151, .9); }
.ev-graph .ev-verified .an-el { fill: #86efac; }
.an-tr-btn.ev-open { border-color: rgba(255, 107, 122, .6); }
.an-tr-btn.ev-verified { border-color: rgba(61, 220, 151, .6); border-style: solid; }
.ev-legend { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.ev-ctl { border: 1px solid #1f2a3a; border-radius: 12px; padding: 12px 14px; margin: 10px 0; display: flex; flex-direction: column; gap: 5px; overflow-wrap: anywhere; }
.ev-states { margin: 0; padding-left: 18px; font-size: .86rem; }
.ev-ints { display: flex; flex-direction: column; gap: 4px; }
.ev-int { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .84rem; margin: 0; }
.ev-int select { width: auto; min-width: 0; flex: 1 1 150px; }
@media (max-width: 1280px) { .ev-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .ev-grid { grid-template-columns: minmax(0, 1fr); } }

/* BREAKPOINT (Phase E4) */
.bp-graph .bp-m { stroke: #0b1119; stroke-width: 1.5; cursor: pointer; outline: none; }
.bp-graph .bp-m.bp-OBSERVED { fill: #3ddc97; }
.bp-graph .bp-m.bp-MISSED { fill: #ff6b7a; }
.bp-graph .bp-m.bp-POTENTIAL { fill: #38bdf8; }
.bp-graph .bp-m.bp-COUNTERFACTUAL { fill: #a78bfa; }
.bp-graph .bp-m.bp-UNKNOWN { fill: #f5c04a; }
.bp-graph .bp-m:hover, .bp-graph .bp-m:focus { stroke: var(--ink); stroke-width: 2.5; }
.bp-graph .bp-tr .ev-e { stroke: #56708f; stroke-width: 2.5; fill: none; }
.bp-graph .bp-tr.bp-layer .ev-e { stroke: rgba(61, 220, 151, .95); stroke-width: 4; }
.bp-graph .bp-tr.bp-viable .ev-e { stroke: rgba(255, 107, 122, .9); stroke-dasharray: 6 4; }
.bp-graph .bp-tr.bp-damage .an-el { fill: #ff9aa5; }
.bp-set { border: 1px solid #1f2a3a; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; overflow-wrap: anywhere; }
.bp-setbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.bp-x { font: inherit; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0 2px; }
.bp-result { border-left: 3px solid var(--accent); padding-left: 8px; display: flex; flex-direction: column; gap: 3px; }
.bp-group h4 { margin: 4px 0; overflow-wrap: anywhere; }
.bp-row { border-bottom: 1px solid var(--line-2); padding: 8px 0; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.bp-rowhead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bp-pick { display: inline-flex; margin: 0; }
.bp-pick input { width: auto; margin: 0; }
.bp-ul { margin: 0; padding-left: 18px; font-size: .86rem; }
.bp-drift { display: flex; flex-direction: column; gap: 3px; }
.bp-record { display: flex; flex-direction: column; gap: 6px; }
.bp-row .ev-open { overflow-wrap: anywhere; text-align: left; }
.bp-graph .bp-tr.bp-rel-DEPENDENCY .ev-e { stroke: rgba(61, 220, 151, .8); }
.bp-graph .bp-tr.bp-rel-ORDER_UNCERTAIN .ev-e, .bp-graph .bp-tr.bp-rel-SEQUENCE_ONLY .ev-e { stroke-dasharray: 5 4; }
.bp-theo { padding: 6px 0; border-bottom: 1px dashed var(--line-2); opacity: .8; overflow-wrap: anywhere; }
.bp-theo .ev-open { text-align: left; overflow-wrap: anywhere; }
.bp-layers { display: flex; flex-direction: column; gap: 4px; border-left: 3px solid var(--accent); padding-left: 8px; }
.bp-test { font-size: .86rem; padding: 4px 0; border-bottom: 1px solid var(--line-2); overflow-wrap: anywhere; }
.bp-test.bp-flip { color: var(--warn); }
.bp-tier1 { border-left: 3px solid var(--warn); padding-left: 8px; }
.bp-chpick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.bp-chpick select { max-width: 100%; }
.an-cond, .bp-bias, .bp-info { overflow-wrap: anywhere; }

/* Dynamic Runbook reasoning (Phase E5) */
.rb-restraint { margin-top: 10px; }
.rb-reading { margin-top: 8px; }
.rb-hold { margin-top: 6px; }
.rb-graph { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rb-phase h4 { margin: 0 0 6px; letter-spacing: .12em; font-size: .78rem; color: var(--muted); }
.rb-node { border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 8px; margin-bottom: 6px; overflow-wrap: anywhere; }
.rb-node .ev-open { text-align: left; overflow-wrap: anywhere; }
.rb-edges { margin-top: 10px; display: flex; flex-direction: column; gap: 3px; }
.rb-edge, .rb-declined, .rb-ref, .rb-rev { overflow-wrap: anywhere; }
.rb-chain { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
@media (max-width: 900px) { .rb-graph { grid-template-columns: 1fr; } }

/* INVESTIGATE (Cognitive Architecture C1–C3). Observed access and potential reachability are never drawn alike:
   what was seen is solid and warm; what was merely reachable is dashed and muted. */
.iv-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 4px; }
.iv-controls input[name="rationale"] { flex: 1 1 220px; min-width: 0; }
.iv-cand { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; overflow-wrap: anywhere; }
.iv-cand.iv-defeated { opacity: .78; }
.iv-candhead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.iv-details summary { cursor: pointer; color: var(--muted); font-size: .82rem; }
.iv-details h5 { margin: 10px 0 4px; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.iv-src { margin-left: 4px; overflow-wrap: anywhere; }
.iv-disc, .iv-question, .iv-run { overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 4px; }
.iv-ev { cursor: pointer; }
.iv-ids { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.iv-readonly { margin-bottom: 10px; }
.iv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.iv-q { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; overflow-wrap: anywhere; min-width: 0; }
.iv-q h4, .iv-reach h4 { margin: 0 0 6px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.iv-reach { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.iv-observed { border: 1px solid rgba(248, 113, 113, .55); background: rgba(248, 113, 113, .06); border-radius: 10px; padding: 10px 12px; min-width: 0; overflow-wrap: anywhere; }
.iv-reachable { border: 1px dashed rgba(148, 163, 184, .45); background: transparent; color: var(--muted); border-radius: 10px; padding: 10px 12px; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 900px) { .iv-grid, .iv-reach { grid-template-columns: 1fr; } }

/* Cognitive Hardening S7: internal status, unresolved structure, interpretation trails, conditional reach. */
.iv-cand.iv-impossible, .iv-cand.iv-excluded { opacity: .8; }
.iv-counter { margin-top: 2px; }
.iv-trail .chip { font-size: .72rem; }
.iv-because { border-left: 2px solid var(--accent); padding-left: 8px; }
.iv-us { overflow-wrap: anywhere; }
.iv-us .warnline { margin-bottom: 8px; }
.iv-finding { overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 4px; }
.iv-conditional { margin-top: 10px; border-top: 1px dashed rgba(148, 163, 184, .35); padding-top: 8px; }
.iv-conditional h4 { color: var(--muted); }
.iv-bounded { margin: 8px 0; }

/* Cognitive Completion Tranche: latent processes and the reasoning loop (generated, never evidence) */
.iv-latent { border-left: 2px dashed var(--accent); padding-left: 8px; }
.iv-rounds { margin-bottom: 6px; }
.iv-rejected { margin-top: 6px; }

/* Identity Security workspace (Track B) */
.an-card{border:1px solid var(--line,#2a2f3a);border-radius:8px;padding:10px 12px;margin:8px 0;background:var(--panel,#141821)}
.id-detail h3{margin:14px 0 6px;font-size:13px;letter-spacing:.02em;text-transform:uppercase;opacity:.8}
.id-detail .kv{display:flex;gap:10px;margin:4px 0;flex-wrap:wrap}
.id-detail .kv>span:first-child{min-width:180px;opacity:.7}
.id-row{cursor:pointer}
.id-row.sel{outline:2px solid var(--accent,#4a9eff);outline-offset:-2px}
.id-metrics .tile .s{opacity:.7;font-size:11px}

/* Identity Security — surfaces and graph */
.idsubnav{display:flex;flex-wrap:wrap;gap:4px;margin:10px 0 14px;border-bottom:1px solid var(--line,#2a2f3a);padding-bottom:8px}
.idsub{background:transparent;border:1px solid transparent;border-radius:6px;padding:5px 10px;color:var(--muted,#9aa3b2);font-size:12px;cursor:pointer}
.idsub:hover{color:var(--fg,#e6ebf2);background:var(--panel,#141821)}
.idsub.on{color:var(--fg,#e6ebf2);border-color:var(--accent,#4a9eff);background:var(--panel,#141821)}
.idg-legend{display:flex;flex-wrap:wrap;gap:14px;margin:4px 0 10px;font-size:11px;color:var(--muted,#9aa3b2)}
.idg-leg{display:inline-flex;align-items:center;gap:5px}
.idg-leg i{display:inline-block;width:14px;height:3px;border-radius:2px}
svg.idgraph{display:block;min-width:100%}
.idg-node{cursor:pointer}
.idg-node:focus{outline:2px solid var(--accent,#4a9eff)}
.idg-detail{margin-top:12px}
ul.id-fails{margin:6px 0;padding-left:18px}
ul.id-fails li{margin:6px 0}

/* identity graph intelligence: attack paths, persistence hunt, containment plan */
.id-pick{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 10px}
.id-pick .chip.on{border-color:var(--accent,#4a9eff);color:var(--fg,#e6ebf2)}
.id-hops{line-height:2;overflow-wrap:anywhere}
.id-hop{display:inline-block;border:1px solid;border-radius:10px;padding:0 7px;font-size:11px;color:var(--muted,#9aa3b2);margin:0 2px}
.id-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.id-steps{margin:8px 0 8px 20px}
.id-steps li{margin:3px 0}

/* identity cognition: the reasoning stepper and lists */
.id-stage-head{display:flex;gap:8px;align-items:baseline;margin-bottom:4px}
.id-stage-what{font-weight:600;margin:4px 0;overflow-wrap:anywhere}
.id-list{margin:6px 0 4px 18px;padding:0}
.id-list li{margin:3px 0;overflow-wrap:anywhere}
.id-stepper{position:sticky;top:0;z-index:1;background:var(--bg,#0d1117);padding:6px 0}

/* ---- THE MORNING (G30) ---------------------------------------------------------------------------------------------- */
.mo-watch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 11px 16px; margin-bottom: 16px; border-radius: 12px; font-size: .84rem; color: var(--ink-2); border: 1px solid var(--line); background: var(--surface); }
.mo-watch.live { border-color: rgba(61, 220, 151, .3); background: linear-gradient(90deg, rgba(61, 220, 151, .07), transparent 60%), var(--surface); }
.mo-watch.off { border-color: rgba(245, 192, 74, .35); background: var(--warn-soft); }
.mo-watch .bad { color: var(--bad); }
.mo-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: mo-pulse 2.4s infinite; flex: none; }
@keyframes mo-pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .55); } 70% { box-shadow: 0 0 0 10px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }
@media (prefers-reduced-motion: reduce) { .mo-pulse { animation: none; } }
.mo-case { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); }
.mo-case.first { border-color: rgba(255, 107, 122, .35); box-shadow: 0 0 0 1px rgba(255, 107, 122, .12), 0 18px 40px -24px rgba(255, 107, 122, .5); }
.mo-rank { font-family: var(--display, inherit); font-size: 1.6rem; font-weight: 300; color: var(--faint); line-height: 1; text-align: center; }
.mo-case.first .mo-rank { color: var(--bad); }
.mo-title { font-weight: 650; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mo-title .cid, .mo-ev .cid { color: var(--accent); font-family: var(--mono, monospace); font-size: .82rem; }
.mo-lead { color: var(--ink-2); font-size: .86rem; margin: 6px 0 8px; overflow-wrap: anywhere; }
.mo-why { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.mo-reason { font-size: .74rem; padding: 3px 9px; border-radius: 999px; background: var(--bad-soft); color: #ffb1ba; border: 1px solid rgba(255, 107, 122, .2); }
.mo-case .btns { display: flex; flex-wrap: wrap; gap: 8px; }
.mo-q { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 14px; }
.mo-qcard { border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; background: var(--surface); min-width: 0; }
.mo-qcard.is-empty { opacity: .6; }
.mo-qcard h4 { margin: 0 0 8px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); display: flex; gap: 8px; }
.mo-qcard h4 .n { color: var(--accent); font-variant-numeric: tabular-nums; }
.mo-item { font-size: .82rem; line-height: 1.45; padding: 6px 0; border-top: 1px solid var(--line-2); overflow-wrap: anywhere; }
.mo-item:first-of-type { border-top: 0; }
.mo-refs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.mo-ref { display: inline-flex; gap: 5px; align-items: center; font: inherit; font-size: .7rem; padding: 1px 7px; border-radius: 6px; border: 1px solid rgba(56, 189, 248, .25); background: var(--accent-soft); color: var(--accent); cursor: pointer; max-width: 100%; }
.mo-ref .k { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: .62rem; }
.mo-ref:hover, .mo-ref:focus-visible { border-color: var(--accent); outline: none; }
.mo-feed { max-height: 420px; overflow: auto; }
.mo-ev { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; padding: 9px 16px; border-bottom: 1px solid var(--line-2); font-size: .8rem; color: var(--ink-2); }
.mo-ev .t { font-variant-numeric: tabular-nums; color: var(--muted); }
.mo-gate { padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 107, 122, .25); background: var(--bad-soft); }
.mo-gate .top { margin-bottom: 6px; overflow-wrap: anywhere; }
.mo-gate .btns { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.mo-evt { flex: 1 1 100%; min-width: 0; overflow-wrap: anywhere; color: var(--ink); }
.mo-econ { margin-top: 16px; }
.mo-cap { font-size: .88rem; color: var(--ink-2); }
.mo-egrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.mo-ecol { border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; background: var(--surface); min-width: 0; }
.mo-ecol h4 { margin: 0 0 2px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.mo-ecol > .note { margin-bottom: 6px; font-size: .74rem; }
.mo-eitem { font-size: .8rem; padding: 5px 0; border-top: 1px solid var(--line-2); overflow-wrap: anywhere; }
.mo-eitem .cid { color: var(--accent); font-family: var(--mono, monospace); font-size: .74rem; }
.mo-none { opacity: .6; }
.mo-uu { margin-top: 8px; font-style: italic; }
.mo-whynot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .86rem; }
.mo-whynot input { flex: 1 1 220px; min-width: 0; }
.mo-wn { font-size: .84rem; overflow-wrap: anywhere; }
.mo-tie { margin: -2px 0 8px; font-style: italic; }

/* ---- G31 CONSEQUENCE & VERIFICATION ------------------------------------------------------------------------------- */
.vr-life { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
@media (max-width: 760px) { .vr-life { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vr-stage { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; background: var(--surface); opacity: .55; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vr-stage.done { opacity: 1; border-color: rgba(61, 220, 151, .35); }
.vr-stage.branch { border-color: rgba(255, 107, 122, .45); }
.vr-stage b { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.vr-stage span { font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }
.vr-branch { font-size: .84rem; padding: 7px 12px; border-radius: 10px; margin-bottom: 8px; background: var(--warn-soft); color: var(--ink-2); }
.vr-branch.bad { background: var(--bad-soft); }
.vr-act, .vr-chg { border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; background: var(--surface-2); min-width: 0; }
.vr-chg.material { border-color: rgba(245, 192, 74, .35); }
.vr-head { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; overflow-wrap: anywhere; }
.vr-head .btn { margin-left: auto; }
.vr-body { display: grid; gap: 8px; margin-top: 10px; font-size: .84rem; }
.vr-body > div, .vr-crow { overflow-wrap: anywhere; }
.vr-k { display: inline-block; min-width: 110px; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.vr-ev { margin: 3px 0; }
.vr-ref { display: inline-flex; gap: 4px; font-size: .74rem; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line); color: var(--ink-2); }
.vr-ref .k { color: var(--muted); text-transform: uppercase; font-size: .62rem; letter-spacing: .06em; }
.vr-dl, .vr-dlf { font-size: .84rem; overflow-wrap: anywhere; }
.vr-dlf { display: grid; gap: 6px; padding: 10px; border-radius: 10px; border: 1px solid rgba(245, 192, 74, .3); background: var(--warn-soft); }
.vr-dlf label { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.vr-dlf input { flex: 1 1 180px; min-width: 0; }

/* ---- G32 MEANING ------------------------------------------------------------------------------------------------- */
.mn-text { font-size: .95rem; line-height: 1.7; overflow-wrap: anywhere; }
.mn-span { background: rgba(56, 189, 248, .12); color: var(--ink); border-bottom: 1px solid rgba(56, 189, 248, .5); padding: 0 1px; border-radius: 3px; }
.mn-span sup { color: var(--accent); font-size: .6rem; margin-left: 2px; }
.mn-claim { border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; background: var(--surface-2); min-width: 0; }
.mn-prop { margin: 8px 0; font-size: .9rem; overflow-wrap: anywhere; }
.mn-f { font-size: .8rem; padding: 2px 0; overflow-wrap: anywhere; }
.mn-cf { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.mn-cf input { flex: 1 1 160px; min-width: 0; }

/* G33 World */
.wd-sel { background: rgba(250, 204, 21, .25); border-bottom-color: rgba(250, 204, 21, .9); }
.wd-old { text-decoration: line-through; text-decoration-color: rgba(248, 113, 113, .7); }
.wd-prop.wd-on { border-color: rgba(250, 204, 21, .8); box-shadow: 0 0 0 1px rgba(250, 204, 21, .4); }
.wd-prop .vr-head { cursor: pointer; }
.wd-x { border-left: 2px solid rgba(248, 113, 113, .6); padding-left: 8px; }
.btn.on { outline: 1px solid var(--accent); }

/* --- Phase 2: Intake Desk ------------------------------------------------------------------------------------------- */
.intake-grid { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.intake-grid > * { min-width: 0; }
.intake-left { display: grid; gap: 16px; }
.intake-main { display: grid; gap: 16px; }
.ws-intro h1 { margin: 0 0 4px; font-size: 1.25rem; }
.ws-intro p { margin: 0 0 14px; color: var(--ink-2); max-width: 980px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row2 > *, .row3 > *, .f > * { min-width: 0; }
.f input, .f select, .f textarea { max-width: 100%; min-width: 0; box-sizing: border-box; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.intake-docs td, .intake-q td { vertical-align: top; }
.intake-docs tr.sel td { background: var(--accent-soft); }
.intake-q .passage, .intake-main .passage { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .86rem; line-height: 1.45; }
.intake-main mark { background: rgba(245, 165, 36, .28); color: var(--ink); border-radius: 3px; padding: 0 2px; }
.intake-q tr.open td { background: rgba(255, 255, 255, .025); }
.intake-q tr.editor td { background: rgba(56, 189, 248, .04); }
.intake-bulk { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 10px; }
.intake-bulk .pager { margin-left: auto; color: var(--muted); }
.intake-flags { display: grid; gap: 6px; margin-top: 10px; }
.intake-main .subtabs a { padding: 6px 12px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: .84rem; text-decoration: none; }
.intake-main .subtabs a.on { background: linear-gradient(180deg, rgba(56, 189, 248, .22), rgba(56, 189, 248, .1)); color: var(--ink); }
.intake-main .btns { display: flex; gap: 4px; margin-top: 6px; }
button.mini { padding: 3px 9px; font-size: .74rem; }
.intake-main .badge.ok, .intake-left .badge.ok { background: var(--ok-soft); color: #c3f5df; }
.intake-main .badge.bad, .intake-left .badge.bad { background: rgba(244, 63, 94, .14); color: #fecdd3; }
.intake-main .badge.warn, .intake-left .badge.warn { background: rgba(245, 165, 36, .14); color: #fde68a; }
@media (max-width: 1000px) { .intake-grid { grid-template-columns: minmax(0, 1fr); } .row2, .row3 { grid-template-columns: minmax(0, 1fr); } }
.intake-main, .intake-left { overflow-wrap: anywhere; }
@media (max-width: 1000px) { .intake-q, .intake-docs { display: block; overflow-x: auto; max-width: 100%; } }

/* ---- THE WATCH FLOOR (Phase 3) ---------------------------------------------------------------------------------- */
.tabs a.floor { color: #9fd8f5; }
.fl-grid { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 16px; align-items: start; }
.fl-grid > * { min-width: 0; }
@media (max-width: 1100px) { .fl-grid { grid-template-columns: 1fr; } }
main .badge.ok { background: var(--ok-soft); color: #c3f5df; }
main .badge.bad { background: rgba(244, 63, 94, .14); color: #fecdd3; }
main .badge.warn { background: rgba(245, 165, 36, .14); color: #fde68a; }
main .badge.t-crit, main .badge.t-high, main .badge.t-mod, main .badge.t-low { background: color-mix(in srgb, var(--tc) 18%, transparent); color: var(--tc); }
.fl-alerts tr.sel td { background: var(--accent-soft); }
.fl-alerts td { padding: 9px 10px; }
.fl-tier { border-left: 3px solid var(--tc); padding: 8px 12px; margin-bottom: 12px; background: color-mix(in srgb, var(--tc) 8%, transparent); border-radius: 8px; font-weight: 600; }
.fl-list { margin: 0; padding-left: 18px; }
.fl-list li { margin: 2px 0; }
.fl-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.fl-actions form.inline, form.f.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.fl-actions form.inline input, form.f.inline input { width: 200px; }
.fl-interp { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.fl-interp h3, .panel .body h3 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 16px 0 6px; }
.fl-prop { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }

/* Adversary investigation: the attribution evidence graph (actorgraph.js) */
.ag-edge { border: 1px solid var(--line, #263042); border-radius: 6px; padding: 6px 10px; margin: 6px 0; }
.ag-edge summary { cursor: pointer; }
.ag-sup { border-left: 3px solid var(--line, #263042); padding: 4px 10px; margin: 6px 0; }
.ag-sup .passage { font-style: italic; }

/* --- Stage S1: SIMULATION (everything here is SIMULATED; the band never scrolls out of a scenario's context) --- */
#tabs a.sim { border-bottom: 2px dashed rgba(245, 192, 74, .55); }
.sim-band { position: sticky; top: 0; z-index: 5; margin-bottom: 14px; padding: 9px 14px; border-radius: 10px; font-size: .82rem;
  background: repeating-linear-gradient(135deg, rgba(245, 192, 74, .16) 0 12px, rgba(245, 192, 74, .07) 12px 24px);
  border: 1px solid rgba(245, 192, 74, .45); color: #f3dfae; }
.sim-band b { letter-spacing: .14em; margin-right: 8px; color: var(--warn); }
.sim-item { padding: 8px 10px; border-radius: 9px; border: 1px solid transparent; }
.sim-item.on, .sim-item:hover { border-color: rgba(245, 192, 74, .4); background: var(--warn-soft); }
.sim-title { font-size: 1.05rem; margin: 0 0 4px; }
.sim-dl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sim-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 8px 0 12px; }
.sim-nums div { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: rgba(255, 255, 255, .02); }
.sim-nums b { display: block; font-size: 1.35rem; font-family: var(--display); }
.sim-nums span { font-size: .74rem; color: var(--muted); }
.sim-cols5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.sim-col { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.sim-col h4 { margin: 0 0 6px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.sim-step { display: inline-block; padding: 1px 7px; border-radius: 6px; font-family: var(--mono); font-size: .72rem; border: 1px solid var(--line); margin: 1px 0; }
.sim-step.d-alert { border-color: rgba(61, 220, 151, .55); color: #c3f5df; }
.sim-step.d-signal { border-color: rgba(245, 192, 74, .55); color: #f3dfae; }
.sim-step.d-gap, .sim-step.d-blinded { border-color: rgba(255, 107, 122, .5); color: #ffc2c9; border-style: dashed; }
.sim-step.d-blocked { border-color: var(--ok); background: var(--ok-soft); color: #c3f5df; text-decoration: line-through; }
.sim-step.d-unreached { opacity: .38; }
.sim-path { padding: 6px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.sim-out { margin-left: 6px; }
.sim-layers { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-bottom: 14px; }
.sim-layer { border-radius: 12px; padding: 10px 12px; border: 1px solid var(--line); position: relative; }
.sim-layer h4 { margin: 0 0 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; }
.sim-layer.cur { border-color: rgba(255, 107, 122, .35); }
.sim-layer.pro { border-color: rgba(245, 192, 74, .4); border-style: dashed; }
.sim-layer.tgt { border-color: rgba(56, 189, 248, .4); border-style: dashed; }
.sim-layer.ver { border-color: rgba(61, 220, 151, .4); }
.sim-big { font-family: var(--display); font-size: 1.6rem; margin-top: 8px; }
.sim-matrix td { vertical-align: top; }
.sim-rec, .sim-iv { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; margin-bottom: 8px; }
.sim-dev, .sim-fam { border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; margin-bottom: 8px; }
@media (max-width: 720px) { .sim-grid { grid-template-columns: 1fr; } }

/* S21 the reader inspector */
.rd-mech { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 8px 0; }
.rd-mech > summary { cursor: pointer; }
.rd-chain { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 10px 0; }
@media (max-width: 900px) { .rd-chain { grid-template-columns: 1fr; } }
.rd-stage { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: .84rem; overflow-wrap: anywhere; }
.rd-stage .hint { text-transform: uppercase; letter-spacing: .14em; font-size: .62rem; }
.rd-supply { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.rd-pill { border: 1px dashed var(--line); border-radius: 999px; padding: 3px 10px; font-size: .76rem; color: var(--muted); }
.rd-pill.on { border-style: solid; color: inherit; background: var(--bad-soft); }
.rd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 900px) { .rd-cols { grid-template-columns: 1fr; } }
.rd-claims { overflow-x: auto; }
.rd-claims td { vertical-align: top; }
.rd-claims .passage { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .82rem; }

/* S23: the founder's blind review */
.in-blind-nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.in-blind-opt { display: block; margin: 3px 0; }
.in-blind-item h5 { margin: 12px 0 4px; }
.in-blind-reveal { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 8px 12px; margin-top: 10px; }
.in-blind-reveal > div { margin: 4px 0; }
.in-comp-row { margin: 6px 0; }
.in-comp-row ul { margin: 2px 0 6px 18px; }
.in-reason h5 { margin: 10px 0 4px; }
.in-reason-checks td { vertical-align: top; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent, inherit); text-decoration: underline; cursor: pointer; font: inherit; }
.ls-record { margin-top: 10px; border-top: 1px solid var(--line, #ddd); padding-top: 8px; }
.ls-record h4 { margin: 4px 0 8px; }
.in-lessons-here ul, .ls-episode ul { margin: 4px 0 6px 18px; }
.ls-episode h5 { margin: 8px 0 2px; }

/* Directive 24: the Semantic Investigation View */
.sem-sum { margin: 8px 0 10px; padding: 8px 12px; border-left: 3px solid var(--line); background: var(--surface-2); font-size: .86rem; }
.sem-view { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--line); }
.sem-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.sem-grid section { min-width: 0; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface-2); }
.sem-grid h4, .sem-view > h4 { margin: 0 0 8px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sem-list { margin: 0; padding-left: 18px; font-size: .86rem; }
.sem-list li + li { margin-top: 8px; }
.sem-q { font-size: .8rem; margin-top: 4px; }
.sem-id { margin: 6px 0; }
.sem-id .kv dd ol, .sem-id .kv dd ul { margin: 0; padding-left: 18px; }
.sem-chain, .sem-ways { margin: 10px 0; }
.sem-kql { white-space: pre-wrap; font-size: .74rem; background: var(--surface-3); padding: 8px; border-radius: 6px; margin: 4px 0; }
.sem-pb { margin: 6px 0 6px 8px; }
.sem-ents { font-size: .82rem; margin-top: 6px; color: var(--ink-2); }
.sem-adopt { margin-top: 12px; padding: 8px 12px; border: 1px dashed var(--line); border-radius: 8px; }
.sem-adopt input { min-width: 260px; }
@media (max-width: 900px) { .sem-grid { grid-template-columns: 1fr; } }

/* Full Sail VI Build 19: the analyst workflow */
.wf-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; }
.wf-step { display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 9px; border: 1px solid rgba(56, 189, 248, .3); background: rgba(56, 189, 248, .04); color: inherit; cursor: pointer; font-size: .82rem; }
.wf-step.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.wf-step.done .wf-n { background: var(--ok-soft); color: var(--ok); }
.wf-n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .06); font-size: .72rem; }
.wf-arrow { color: var(--muted); }
.wf-item { display: grid; grid-template-columns: 130px 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.wf-q { margin: 6px 0; padding: 4px 10px; border-left: 3px solid var(--accent); color: var(--muted); font-size: .86rem; }
.wf-links { margin-top: 6px; display: flex; gap: 6px; }
@media (max-width: 700px) { .wf-item { grid-template-columns: 1fr; } }

/* Operation Prometheus C37: the command palette and the "on this page" bar */
#cockpit { position: fixed; inset: 0; z-index: 90; background: rgba(3, 5, 9, .72); display: flex; justify-content: center;
  align-items: flex-start; padding: 10vh 16px 16px; }
#cockpit .ck-card { width: min(760px, 100%); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--glow); overflow: hidden; }
#cockpit input { width: 100%; box-sizing: border-box; padding: 14px 16px; font-size: 15px; background: var(--surface);
  color: var(--ink); border: 0; border-bottom: 1px solid var(--line); outline: none; }
#cockpit .ck-list { max-height: 60vh; overflow-y: auto; }
#cockpit .ck-item { padding: 8px 16px; cursor: pointer; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
#cockpit .ck-item.on, #cockpit .ck-item:hover { background: var(--accent-soft); color: var(--ink); }
#cockpit .ck-k { display: inline-block; min-width: 92px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--accent); }
#cockpit .ck-foot { padding: 8px 16px; }
#ck-bar { position: sticky; top: 0; z-index: 5; margin: 0 0 12px; padding: 6px 10px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; line-height: 1.8; }
#ck-bar a { color: var(--ink-2); text-decoration: none; }
#ck-bar a:hover { color: var(--accent); }

/* Operation Athena C58: the unified workbench */
.wb-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; margin: 0 0 12px; position: sticky; top: 0; z-index: 5;
  background: var(--bg); padding: 8px 0; border-bottom: 1px solid var(--line, #ddd); }
.wb-chip { display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line, #ddd); border-radius: 8px;
  padding: 4px 10px; background: var(--bg-2); cursor: pointer; font: inherit; color: inherit; min-width: 96px; }
.wb-chip .k { font-size: 11px; opacity: .7; text-transform: uppercase; letter-spacing: .04em; }
.wb-chip .v { font-weight: 600; }
.wb-chip.bad { border-color: #c0392b; } .wb-chip.warn { border-color: #d68910; }
.wb-next { flex: 1 1 260px; align-self: center; font-size: 14px; } .wb-next .k { font-weight: 700; margin-right: 6px; }
.wb-nav { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 0 0 12px; font-size: 13px; }
.wb-nav select { margin-left: 6px; }
.wb-link { cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.wb-link.ghost { opacity: .75; }
.wb-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 12px; }
@media (max-width: 1100px) { .wb-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .wb-cols { grid-template-columns: minmax(0, 1fr); } }
.wb-col h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.wb-col { border-top: 3px solid var(--line, #ddd); padding-top: 6px; min-width: 0; overflow-wrap: anywhere; }
.wb-col.obs { border-top-color: #1e8449; } .wb-col.hyp { border-top-color: #7d3c98; }
.wb-col.fc { border-top-color: #2471a3; } .wb-col.dec { border-top-color: #d68910; }
.wb-slot { scroll-margin-top: 90px; }
.wb-flash > .panel, .wb-flash > section { outline: 2px solid #2471a3; outline-offset: 2px; transition: outline-color 1s; }
.wb-more > summary { padding: 10px 14px; cursor: pointer; }

/* Iron Gate: long unbroken text never widens the page. Queries keep their lines and scroll inside their own box (pre.code had
   no rule, so a KQL line in a hunt proposal widened Workbench by 3,144 px at 390 px); hashes, paths and identifiers in
   cards and tight lists break where they must (the eradication list on Command overflowed by 241 px at 390 px) */
pre.code { max-width: 100%; overflow-x: auto; white-space: pre; }
.mapitem, ul.tight > li { overflow-wrap: anywhere; }
.mapitem .top > * { min-width: 0; }
