:root {
  color-scheme: light;
  --nav: #10202a;
  --nav-soft: #182d38;
  --canvas: #f3f5f6;
  --surface: #ffffff;
  --surface-subtle: #f7f9fa;
  --surface-strong: #eef2f4;
  --text: #15232e;
  --text-secondary: #475a67;
  --text-muted: #788893;
  --line: #dde4e8;
  --line-strong: #cbd6dc;
  --brand: #087f70;
  --brand-dark: #07695e;
  --brand-soft: #eaf4f1;
  --brand-faint: #f4f9f8;
  --info: #326b9d;
  --info-soft: #edf4fa;
  --watch: #9b650f;
  --watch-soft: #fbf4e8;
  --attention: #a95308;
  --attention-soft: #fff0df;
  --tracking: #4f6f82;
  --tracking-soft: #edf3f6;
  --danger: #a43a48;
  --danger-soft: #fbf0f2;
  --positive: #16704b;
  --negative: #a43a48;
  --font-xs: 12px;
  --font-sm: 13px;
  --font-base: 14px;
  --font-body-lg: 15px;
  --font-section: 17px;
  --font-title: 22px;
  --font-event-title: 25px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius: var(--radius-lg);
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --rail-width: 66px;
  --topbar-height: 64px;
  --surface-header-height: 64px;
  --surface-two-row-height: 115px;
  --surface-content-gap: 8px;
  --font: Inter, "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; }
body {
  overflow: hidden;
  color: var(--text);
  background: var(--canvas);
  font-family: var(--font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select { color: inherit; font: inherit; }
button { border: 0; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid rgba(8, 127, 112, .32);
  outline-offset: 2px;
}
[hidden], .hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.empty-inline { color: var(--text-muted); font-size: 12px; line-height: 1.6; }

/* Shell */
.app-shell { display: grid; grid-template-columns: var(--rail-width) minmax(0, 1fr); width: 100%; height: 100%; }
.rail { position: relative; z-index: 90; display: flex; flex-direction: column; align-items: center; min-width: 0; color: #c4d0d6; background: var(--nav); }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; margin: 12px 0 16px; border-radius: 9px; color: #083f39; background: #a9ddd2; font-family: "STSong", "Songti SC", serif; font-size: 18px; font-weight: 700; }
.rail-nav { display: grid; gap: 6px; width: 100%; }
.rail-button { position: relative; display: grid; justify-items: center; gap: 4px; width: 100%; min-height: 54px; padding: 7px 2px; color: #8fa2ad; background: transparent; cursor: pointer; }
.rail-button::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px; border-radius: 0 2px 2px 0; background: transparent; }
.rail-button:hover { color: #dbe5e9; background: rgba(255,255,255,.035); }
.rail-button.active { color: #9fe0d1; background: rgba(93, 189, 169, .08); }
.rail-button.active::before { background: #6bc6b2; }
.rail-button b { font-size: var(--font-xs); line-height: 1; font-weight: 500; white-space: nowrap; }
.rail-bottom { margin-top: auto; margin-bottom: 8px; }
.rail-icon { position: relative; display: block; width: 17px; height: 17px; color: currentColor; }
.icon-overview { border: 1.5px solid currentColor; border-radius: 5px; }
.icon-overview::after { content: ""; position: absolute; inset: 4px; border: 1px solid currentColor; border-radius: 50%; }
.icon-thread::before, .icon-thread::after { content: ""; position: absolute; left: 1px; right: 1px; height: 6px; border: 1.5px solid currentColor; border-radius: 3px; }
.icon-thread::before { top: 1px; }.icon-thread::after { bottom: 1px; }
.icon-alert::before { content: ""; position: absolute; left: 2px; right: 2px; bottom: 2px; height: 11px; border: 1.5px solid currentColor; border-radius: 8px 8px 4px 4px; }
.icon-alert::after { content: ""; position: absolute; left: 6px; bottom: 0; width: 5px; height: 2px; border-radius: 2px; background: currentColor; }
.icon-ops { border: 1.5px solid currentColor; border-radius: 50%; }
.icon-ops::before, .icon-ops::after { content: ""; position: absolute; background: currentColor; }
.icon-ops::before { left: 7px; top: -3px; width: 1px; height: 21px; }.icon-ops::after { top: 7px; left: -3px; width: 21px; height: 1px; }
.main-shell { display: grid; grid-template-rows: var(--topbar-height) minmax(0, 1fr); min-width: 0; min-height: 0; }
.topbar { display: flex; align-items: center; gap: 20px; min-width: 0; padding: 0 16px 0 22px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.page-heading { flex: 0 0 auto; min-width: 245px; }
.eyebrow { margin-bottom: 3px; color: var(--text-muted); font-size: var(--font-xs); line-height: 1; letter-spacing: .02em; }
.title-line { display: flex; align-items: baseline; gap: 10px; }
.title-line h1 { margin: 0; font-size: 18px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.title-line span { color: var(--text-muted); font-size: var(--font-xs); white-space: nowrap; }
.workspace-switch { display: flex; align-items: center; align-self: stretch; gap: 20px; }
.workspace-switch button { position: relative; align-self: stretch; padding: 0 1px; color: var(--text-muted); background: transparent; font-size: 12px; cursor: pointer; }
.workspace-switch button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; }
.workspace-switch button.active { color: var(--text); font-weight: 600; }
.workspace-switch button.active::after { background: var(--brand); }
.run-context { display: grid; gap: 2px; margin-left: auto; text-align: right; }
.run-context strong { color: var(--text-secondary); font-size: var(--font-xs); font-weight: 600; }
.run-context span { color: var(--text-muted); font-size: var(--font-xs); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.mode-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 6px; color: var(--text-secondary); background: var(--surface-subtle); font-size: var(--font-xs); white-space: nowrap; }
.mode-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.guide-button, .quiet-button { min-height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--text-secondary); background: #fff; font-size: var(--font-xs); cursor: pointer; }
.guide-button:hover, .quiet-button:hover { border-color: var(--line-strong); color: var(--text); background: var(--surface-subtle); }
.clock { min-width: 56px; color: var(--text-muted); font-size: var(--font-xs); font-variant-numeric: tabular-nums; text-align: right; }
.replay-disclosure { display: none; }
.business-workspace .replay-only, .business-workspace .replay-only-inline { display: none !important; }
.replay-workspace .business-only { display: none !important; }

/* Dashboard and three-column business surface */
.dashboard { min-width: 0; min-height: 0; padding: 12px 12px 14px; }
.business-workspace .dashboard { display: grid; grid-template-rows: minmax(0, 1fr); }
.workbench { display: grid; min-width: 0; min-height: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.business-workspace .workbench { grid-template-columns: clamp(312px, 22.5vw, 332px) minmax(0, 1fr) clamp(342px, 24vw, 366px); }
.panel { min-width: 0; min-height: 0; background: var(--surface); }
.stream-panel, .memory-panel { border-right: 1px solid var(--line); }
.stream-panel { display: flex; flex-direction: column; background: var(--surface-subtle); }
.memory-panel, .decision-panel { display: grid; grid-template-rows: 72px minmax(0, 1fr); }
.decision-panel { background: #fcfdfd; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; padding: 13px 15px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.98); }
.stream-panel > .panel-header { background: var(--surface-subtle); }
.panel-header > div:first-child { min-width: 0; }
.section-kicker { display: block; margin-bottom: 4px; color: var(--brand); font-size: var(--font-xs); line-height: 1; font-weight: 600; letter-spacing: .025em; }
.section-kicker b { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-right: 4px; border-radius: 50%; color: #fff; background: var(--brand); }
.panel-header h2 { margin: 0; font-size: 16px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.panel-header small { display: block; margin-top: 4px; overflow: hidden; color: var(--text-muted); font-size: var(--font-xs); line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.panel-actions { display: flex; align-items: center; gap: 7px; min-width: 0; }
.panel-actions select { width: min(290px, 22vw); height: 34px; padding: 0 30px 0 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; color: var(--text-secondary); background: #fff; font-size: var(--font-xs); text-overflow: ellipsis; }
.icon-button { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--text-secondary); background: #fff; font-size: var(--font-xs); cursor: pointer; }
.icon-button:disabled { opacity: .45; cursor: default; }
.panel-close { display: none; width: 30px; height: 30px; border-radius: 7px; color: var(--text-muted); background: var(--surface-subtle); font-size: 20px; cursor: pointer; }

.scope-badge { display: inline-flex; align-items: center; min-height: 21px; padding: 0 6px; border-radius: 4px; color: var(--info); background: var(--info-soft); font-size: var(--font-xs); font-weight: 600; white-space: nowrap; }
.scope-badge.industry { color: var(--watch); background: var(--watch-soft); }
.empty-state, .event-empty, .route-empty { display: grid; place-content: center; justify-items: center; gap: 7px; min-height: 180px; padding: 28px; color: var(--text-muted); text-align: center; }
.empty-state strong, .event-empty strong, .route-empty strong { color: var(--text-secondary); font-size: 13px; }
.empty-state span, .event-empty p, .route-empty span { max-width: 380px; margin: 0; font-size: var(--font-xs); line-height: 1.6; }
.empty-mark { position: relative; width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 50%; }
.empty-mark::before, .empty-mark::after { content: ""; position: absolute; background: var(--line-strong); }
.empty-mark::before { left: 7px; right: 7px; top: 13px; height: 1px; }.empty-mark::after { top: 7px; bottom: 7px; left: 13px; width: 1px; }
.empty-action { margin-top: 7px; padding: 7px 10px; border-radius: 6px; color: var(--brand); background: var(--brand-soft); font-size: var(--font-xs); cursor: pointer; }

/* Event dossier */
.event-card { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c8d2d8 transparent; }
.event-hero { padding: 22px 26px 20px; border-bottom: 1px solid var(--line); }
.event-breadcrumb { display: flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: var(--font-xs); }
.target-badge { color: var(--text-secondary); font-weight: 600; }
.phase-badge { margin-left: auto; padding: 4px 7px; border-radius: 5px; color: var(--info); background: var(--info-soft); font-size: var(--font-xs); }
.contract-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 14px; }
.contract-row > div:first-child { display: flex; align-items: baseline; gap: 7px; }
.contract-row > div:first-child > span { color: var(--text-muted); font-size: var(--font-xs); }
.contract-row > div:first-child > strong { color: var(--brand-dark); font-size: 13px; font-weight: 600; }
.event-audit-menu { position: relative; }
.event-audit-menu summary { color: var(--text-muted); font-size: var(--font-xs); list-style: none; cursor: pointer; }
.event-audit-menu summary::-webkit-details-marker { display: none; }
.event-audit-menu summary::after { content: "⌄"; margin-left: 4px; }
.event-audit-menu[open] summary { color: var(--brand); }
.contract-actions { position: absolute; z-index: 20; top: 25px; right: 0; display: grid; width: 140px; padding: 5px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; box-shadow: 0 12px 30px rgba(24,43,54,.14); }
.contract-actions button { padding: 8px 9px; border-radius: 5px; text-align: left; color: var(--text-secondary); background: transparent; font-size: var(--font-xs); cursor: pointer; }
.contract-actions button:hover { color: var(--brand-dark); background: var(--brand-soft); }
.event-hero > h2 { margin: 12px 0 0; color: var(--text); font-size: clamp(22px, 1.55vw, 26px); line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.event-story { display: grid; gap: 15px; margin-top: 18px; }
.story-block > span, .story-block header span, .identity-fields > span { color: var(--text-muted); font-size: var(--font-xs); font-weight: 600; }
.story-block p { margin: 7px 0 0; color: var(--text-secondary); font-size: 13px; line-height: 1.65; }
.delta-story { padding: 14px 16px; border-left: 4px solid var(--brand); border-radius: 0 7px 7px 0; background: var(--brand-soft); }
.delta-story header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.delta-story header span { color: var(--brand-dark); font-size: 12px; }
.delta-story header b { color: #729088; font-size: var(--font-xs); font-weight: 500; }
.delta-story p { margin-top: 7px; color: #244f49; font-size: 14px; line-height: 1.55; font-weight: 500; }
.delta-meta { display: flex; flex-wrap: wrap; gap: 7px 16px; margin-top: 9px; padding-top: 8px; border-top: 1px solid rgba(8,127,112,.13); color: #64827b; font-size: var(--font-xs); }
.delta-meta span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 6px 2px 0; border-radius: 50%; background: #5b9f90; }
.current-story { padding-top: 1px; }
.current-story p { color: var(--text-secondary); }
.identity-fields { display: grid; grid-template-columns: 84px minmax(0,1fr); gap: 8px; align-items: start; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.identity-fields > span { padding-top: 5px; }
.display-fields { display: flex; flex-wrap: wrap; gap: 6px 0; min-width: 0; }
.display-field { display: inline-flex; gap: 5px; padding: 3px 10px; border-left: 1px solid var(--line); color: var(--text-secondary); font-size: var(--font-xs); line-height: 1.45; }
.display-field:first-child { padding-left: 0; border-left: 0; }
.display-field b { color: var(--text-muted); font-weight: 500; }
.single-progress-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 16px; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.single-progress-meta > div { display: grid; gap: 5px; min-width: 0; }.single-progress-meta span { color: var(--text-muted); font-size: var(--font-xs); }.single-progress-meta strong { overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.subsection-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 18px 26px 10px; }
.subsection-head span { display: block; font-size: 15px; font-weight: 700; }
.subsection-head small { display: block; margin-top: 4px; color: var(--text-muted); font-size: var(--font-xs); }
.subsection-head > b { color: var(--text-muted); font-size: var(--font-xs); font-weight: 500; }
.timeline { position: relative; display: grid; gap: 0; padding: 0 26px 26px; }
.timeline-node { position: relative; margin-left: 16px; padding: 14px 14px 14px 20px; border-left: 1px solid var(--line-strong); background: transparent; cursor: pointer; }
.timeline-node::before { content: ""; position: absolute; left: -5px; top: 19px; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: #8da1ad; box-shadow: 0 0 0 1px #8da1ad; }
.timeline-node:hover { background: var(--surface-subtle); }
.timeline-node.active { background: var(--brand-faint); }
.timeline-node.active::before { background: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.node-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.node-topline > div { display: flex; align-items: center; gap: 8px; }
.node-kind { color: var(--brand-dark); font-size: var(--font-xs); font-weight: 600; }
.node-phase { padding: 2px 5px; border-radius: 4px; color: var(--text-muted); background: var(--surface-strong); font-size: var(--font-xs); }
.node-number { color: var(--text-muted); font-size: var(--font-xs); }
.node-temporal { display: flex; flex-wrap: wrap; gap: 5px 15px; margin-top: 7px; color: var(--text-muted); font-size: var(--font-xs); }
.node-temporal b { margin-right: 5px; color: #667883; font-weight: 600; }
.node-fact { margin-top: 8px; color: var(--text-secondary); font-size: 13px; line-height: 1.65; }
.node-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 9px; color: var(--text-muted); font-size: var(--font-xs); }
.cred-badge { color: var(--brand-dark); }.pending-badge { color: var(--watch); }
.recovery-note { margin-top: 10px; padding: 9px 11px; border-left: 2px solid var(--watch); background: var(--watch-soft); color: var(--text-secondary); font-size: var(--font-xs); line-height: 1.55; }
.recovery-note strong { display: block; margin-bottom: 3px; color: var(--watch); }
.recovery-note span { display: block; margin-top: 4px; color: var(--text-muted); font-size: var(--font-xs); }
.recovery-group { margin-top: 10px; border: 1px solid #ead9b8; border-radius: 7px; background: #fffaf1; }.recovery-group > summary { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 11px; color: var(--watch); list-style: none; cursor: pointer; }.recovery-group > summary::-webkit-details-marker { display: none; }.recovery-group > summary strong { font-size: var(--font-xs); }.recovery-group > summary span { margin-left: auto; color: var(--text-muted); font-size: var(--font-xs); }.recovery-group > summary i { width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); }.recovery-group[open] > summary i { transform: rotate(225deg) translate(-1px,-1px); }.recovery-group > div { max-height: 310px; overflow: auto; border-top: 1px solid #ead9b8; background: #fff; }.recovery-group article { padding: 10px 11px; border-bottom: 1px solid var(--line); color: var(--text-secondary); font-size: var(--font-xs); line-height: 1.55; }.recovery-group article:last-child { border-bottom: 0; }.recovery-group article span { display: block; margin-top: 4px; color: var(--text-muted); font-size: var(--font-xs); }
.recovery-ledger { display: grid; margin-top: 8px; border-top: 1px solid var(--line); }.recovery-ledger article { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--text-secondary); font-size: var(--font-xs); line-height: 1.55; }.recovery-ledger article span { display: block; margin-top: 3px; color: var(--text-muted); font-size: var(--font-xs); }
.node-evidence-preview { margin: 0 0 12px 36px; padding: 13px 14px; border: 1px solid #cfe0dc; border-radius: 7px; background: #fff; }
.node-evidence-preview > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.node-evidence-preview > header span { display: block; color: var(--text-muted); font-size: var(--font-xs); }
.node-evidence-preview > header strong { display: block; margin-top: 3px; font-size: 12px; }
.node-evidence-preview > header > div:last-child { display: flex; gap: 5px; }
.node-evidence-preview button { padding: 6px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--brand); background: #fff; font-size: var(--font-xs); cursor: pointer; }
.node-evidence-preview article { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.node-evidence-preview article p { margin: 0; color: var(--text-secondary); font-size: 12px; line-height: 1.65; }
.node-evidence-preview article footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; color: var(--text-muted); font-size: var(--font-xs); }
.seed-visual { position: relative; width: 58px; height: 34px; }
.seed-visual i { position: absolute; top: 11px; width: 10px; height: 10px; border: 2px solid var(--line-strong); border-radius: 50%; background: #fff; }
.seed-visual i:first-child { left: 5px; }.seed-visual i:nth-child(2) { right: 5px; }
.seed-visual span { position: absolute; left: 17px; right: 17px; top: 15px; height: 2px; background: var(--line-strong); }
.pending-boundary { display: block; max-width: 520px; margin-top: 8px; padding: 9px 11px; border-left: 2px solid var(--watch); color: var(--watch); background: var(--watch-soft); font-size: var(--font-xs); line-height: 1.55; }
.event-empty.pending-selection { place-content: start; justify-items: stretch; min-height: 100%; padding: 28px; text-align: left; }
.pending-state-card { width: min(620px,100%); padding: 26px 28px; border: 1px solid #eadfc9; border-radius: 9px; background: #fdfaf4; }
.pending-state-card > span { color: var(--watch); font-size: var(--font-xs); font-weight: 600; }.pending-state-card h2 { margin: 7px 0 0; color: var(--text); font-size: 22px; line-height: 1.3; }.pending-state-card > p { max-width: 560px; margin: 10px 0 0; color: var(--text-secondary); font-size: 13px; line-height: 1.7; }
.pending-state-card > div { display: grid; gap: 7px; margin-top: 20px; padding: 14px 16px; border-left: 3px solid var(--watch); background: #fff; }.pending-state-card > div small { color: var(--text-muted); font-size: var(--font-xs); }.pending-state-card > div strong { color: var(--text); font-size: 14px; line-height: 1.65; }
.pending-state-card footer { display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 10px; margin-top: 18px; color: var(--text-secondary); font-size: 12px; line-height: 1.65; }.pending-state-card footer b { color: var(--watch); }
.pending-state-actions { display: flex; gap: 10px; margin-top: 18px; }
.pending-state-actions button { min-height: 34px; padding: 0 14px; border: 1px solid #d7c7a9; border-radius: 6px; background: #fff; color: #82530f; font-size: 12px; font-weight: 600; cursor: pointer; }
.pending-state-actions button:hover { border-color: #b58a48; background: #fffaf0; }

/* Decision and credibility */
.decision-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c8d2d8 transparent; }
.decision-card { padding: 20px 17px 18px; border-bottom: 1px solid var(--line); }
.decision-eyebrow { display: block; color: var(--text-muted); font-size: var(--font-xs); font-weight: 600; }
.decision-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-top: 5px; }
.decision-topline > div { display: grid; gap: 2px; }
.decision-action { color: var(--text); font-size: 23px; line-height: 1.18; font-weight: 700; letter-spacing: -.01em; }
.decision-card.push .decision-action { color: var(--attention); }
.decision-card.watch .decision-action { color: var(--tracking); }
.decision-card.archive .decision-action { color: #637681; }
.decision-topline > div > strong { color: var(--text-muted); font-size: var(--font-xs); font-weight: 500; }
.reason-block { margin-top: 14px; padding: 11px 12px; border-left: 3px solid var(--attention); background: var(--attention-soft); }
.decision-card.watch .reason-block { border-left-color: var(--tracking); background: var(--tracking-soft); }
.decision-card.archive .reason-block { border-left-color: #8798a2; background: var(--surface-strong); }
.reason-block span, .uncertainty-block > span { color: var(--text-muted); font-size: var(--font-xs); font-weight: 600; }
.reason-block p { margin: 5px 0 0; color: var(--text-secondary); font-size: 12px; line-height: 1.6; }
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.impact-grid > div { min-width: 0; padding: 10px 8px; border-right: 1px solid var(--line); }
.impact-grid > div:first-child { padding-left: 0; }.impact-grid > div:last-child { padding-right: 0; border-right: 0; }
.impact-grid span, .impact-subject span { display: block; color: var(--text-muted); font-size: var(--font-xs); }
.impact-grid strong { display: block; margin-top: 4px; overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.decision-trust-line { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 3px 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }.decision-trust-line > span { color: var(--text-muted); font-size: var(--font-xs); }.decision-trust-line > strong { justify-self: end; font-size: 12px; }.decision-trust-line > small { grid-column: 1 / 3; color: var(--text-muted); font-size: var(--font-xs); text-align: right; }
.impact-subject { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 14px; }
.impact-subject strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.impact-detail-block { margin-top: 12px; border-top: 1px solid var(--line); }
.impact-detail-block > summary { display: flex; align-items: center; gap: 8px; min-height: 42px; color: var(--text-secondary); list-style: none; cursor: pointer; }.impact-detail-block > summary::-webkit-details-marker { display: none; }.impact-detail-block > summary span { font-size: 12px; font-weight: 600; }.impact-detail-block > summary i { width: 7px; height: 7px; margin-left: auto; border-right: 1px solid var(--text-muted); border-bottom: 1px solid var(--text-muted); transform: rotate(45deg); transition: transform .15s ease; }.impact-detail-block[open] > summary i { transform: rotate(225deg); }.impact-detail-body { padding-bottom: 4px; }
.industry-transmission { margin-top: 9px; padding: 10px 11px; border-left: 3px solid var(--brand); background: var(--brand-faint); }
.industry-transmission > span { display: block; color: var(--text-muted); font-size: var(--font-xs); }
.industry-transmission > div { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 6px; margin-top: 7px; color: var(--text-secondary); font-size: var(--font-xs); }
.industry-transmission b, .industry-transmission strong { overflow: hidden; font-weight: 600; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.industry-transmission strong { color: var(--brand-dark); }.industry-transmission i { color: var(--text-muted); font-style: normal; }
.affected-entities { margin-top: 6px; }
.affected-row { padding: 11px 0; border-top: 1px solid var(--line); }
.affected-row header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.affected-row header span { font-size: 12px; font-weight: 600; }
.affected-row header b { color: var(--text-secondary); font-size: var(--font-xs); font-weight: 600; }
.affected-row header b.positive { color: var(--positive); }.affected-row header b.negative { color: var(--negative); }
.affected-row p { margin: 5px 0 0; color: var(--text-secondary); font-size: 12px; line-height: 1.6; }
.affected-row footer { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.affected-row footer span, .affected-row footer em { padding: 3px 5px; border-radius: 4px; color: var(--text-muted); background: var(--surface-strong); font-size: var(--font-xs); font-style: normal; }
.affected-row footer em { color: var(--info); background: var(--info-soft); }
.impact-pending-state { display: block; margin-top: 9px; padding: 11px 12px; border: 1px solid #eadfc9; border-radius: 6px; background: #fdf9f2; }
.impact-pending-state strong { color: #66522e; font-size: 12px; }
.impact-pending-state p { margin: 6px 0 0; color: #745d35; font-size: var(--font-xs); line-height: 1.6; }
.impact-pending-state small { display: block; margin-top: 6px; color: var(--text-muted); font-size: var(--font-xs); line-height: 1.5; }
.uncertainty-block { margin-top: 8px; padding: 10px 11px; border: 1px solid #eadfc9; border-radius: 6px; background: #fdf9f2; }
.impact-uncertainty { margin: 5px 0 0; color: #745d35; font-size: var(--font-xs); line-height: 1.6; }
.decision-details { border-bottom: 1px solid var(--line); background: #fff; }
.decision-details > summary { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 17px; list-style: none; cursor: pointer; }
.decision-details > summary::-webkit-details-marker { display: none; }
.decision-details > summary span { font-size: 12px; font-weight: 600; }
.decision-details > summary strong { margin-left: auto; overflow: hidden; color: var(--text-muted); font-size: var(--font-xs); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.decision-details > summary i { width: 7px; height: 7px; border-right: 1px solid var(--text-muted); border-bottom: 1px solid var(--text-muted); transform: rotate(45deg); transition: transform .15s ease; }
.decision-details[open] > summary i { transform: rotate(225deg); }
.decision-details-body { display: grid; gap: 0; padding: 0 17px 16px; }
.insight-card { padding: 14px 0; border-top: 1px solid var(--line); }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-heading span { color: var(--text-muted); font-size: var(--font-xs); }
.card-heading h3 { margin: 3px 0 0; font-size: 12px; font-weight: 600; }
.card-heading button { padding: 6px 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--brand); background: #fff; font-size: var(--font-xs); cursor: pointer; }
.source-funnel { display: grid; grid-template-columns: 1fr 14px 1fr 14px 1fr; align-items: center; margin-top: 12px; }
.source-funnel > div { display: grid; justify-items: center; gap: 2px; min-width: 0; padding: 9px 3px; background: var(--surface-subtle); }
.source-funnel > div:first-child { border-radius: 6px 0 0 6px; }.source-funnel > div:last-child { border-radius: 0 6px 6px 0; }
.source-funnel strong { font-size: 16px; font-weight: 700; }
.source-funnel span { color: var(--text-muted); font-size: var(--font-xs); white-space: nowrap; }
.source-funnel > i { color: #9babb4; font-style: normal; text-align: center; }
.source-funnel.is-pending { opacity: .65; }
.credibility-axes { display: grid; gap: 0; margin-top: 12px; border-top: 1px solid var(--line); }
.credibility-axes > div, .independence-row { display: grid; grid-template-columns: 84px minmax(0,1fr); gap: 8px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); }
.credibility-axes span, .independence-row span { color: var(--text-muted); font-size: var(--font-xs); }
.credibility-axes strong, .independence-row strong { color: var(--text-secondary); font-size: var(--font-xs); font-weight: 600; text-align: right; }
.card-note { margin: 9px 0 0; color: var(--text-muted); font-size: var(--font-xs); line-height: 1.6; }
.cred-signal, .quality-signal { padding: 4px 6px; border-radius: 5px; color: var(--text-muted); background: var(--surface-strong); font-size: var(--font-xs); }
.cred-signal.strong { color: var(--positive); background: #eaf4ef; }.cred-signal.conflict { color: var(--danger); background: var(--danger-soft); }
.quality-signal.normal { color: var(--positive); background: #eaf4ef; }.quality-signal.review { color: var(--watch); background: var(--watch-soft); }.quality-signal.risk { color: var(--danger); background: var(--danger-soft); }
.cred-transition { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 7px; margin-top: 11px; color: var(--text-muted); font-size: var(--font-xs); }
.cred-transition span, .cred-transition strong { padding: 7px; border-radius: 5px; background: var(--surface-subtle); text-align: center; }
.cred-transition strong { color: var(--brand-dark); font-weight: 600; }
.decision-gate { margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); }
.decision-gate > span { color: var(--text-muted); font-size: var(--font-xs); }
.reason-codes { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.reason-codes span { padding: 4px 6px; border-radius: 4px; color: var(--text-secondary); background: var(--surface-strong); font-size: var(--font-xs); }
.business-workspace .advanced-details { display: none; }
.matrix-layout { display: grid; grid-template-columns: 62px minmax(0,1fr); grid-template-rows: 120px 20px; gap: 4px 8px; margin-top: 10px; }
.matrix-y { display: grid; align-content: space-between; color: var(--text-muted); font-size: var(--font-xs); }
.decision-matrix { position: relative; border: 1px solid var(--line); background: var(--surface-subtle); }
.decision-matrix i { position: absolute; left: var(--matrix-x, 17%); bottom: var(--matrix-y, 7%); width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 1px var(--brand); transform: translate(-50%, 50%); }
.decision-matrix.is-impact-pending { display: grid; place-items: center; border-style: dashed; background: #f7f5ef; }
.decision-matrix.is-impact-pending::before { content: "影响暂不可分级"; color: #806b44; font-size: var(--font-xs); font-weight: 600; }
.decision-matrix.is-impact-pending i { display: none; }
.matrix-layout.is-impact-pending .matrix-x { opacity: .38; }
.matrix-x { grid-column: 2; display: flex; justify-content: space-between; color: var(--text-muted); font-size: var(--font-xs); }
.matrix-caption { margin: 8px 0 0; font-size: var(--font-xs); }
.matrix-card > small { color: var(--text-muted); font-size: var(--font-xs); }
.decision-toggle { display: none; }

/* Replay: linear inspection mode */
.replay-workspace .dashboard { display: grid; grid-template-rows: 64px 54px minmax(0,1fr); gap: 9px; }
.replay-workspace .workbench { grid-template-columns: 302px minmax(0,1fr) 350px; }
.arrival-strip { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(470px,.75fr); align-items: center; min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.arrival-copy { display: grid; grid-template-columns: 86px minmax(0,1fr); align-items: center; min-width: 0; padding: 0 14px; }
.arrival-time { display: grid; gap: 4px; padding-right: 13px; border-right: 1px solid var(--line); }
.arrival-time span { color: var(--text-muted); font-size: var(--font-xs); }.arrival-time time { color: var(--brand-dark); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.arrival-copy > div:last-child { min-width: 0; padding-left: 13px; }
.arrival-copy strong, .arrival-copy > div:last-child span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arrival-copy strong { font-size: var(--font-sm); font-weight: var(--weight-semibold); }.arrival-copy > div:last-child span { margin-top: 4px; color: var(--text-muted); font-size: var(--font-xs); }
.arrival-progress { display: flex; align-items: center; gap: 14px; padding: 0 14px; border-left: 1px solid var(--line); }
.arrival-progress-label { color: var(--text-muted); font-size: var(--font-xs); }
.arrival-flow { display: grid; grid-template-columns: 1fr 30px 1fr 30px 1fr; align-items: center; flex: 1; }
.arrival-flow > em { height: 1px; background: var(--line-strong); }
.arrival-step { display: grid; grid-template-columns: 16px minmax(0,1fr); gap: 1px 6px; text-align: left; background: transparent; cursor: pointer; }
.arrival-step > i { grid-row: 1 / 3; align-self: center; width: 16px; height: 16px; border: 1.5px solid var(--line-strong); border-radius: 50%; }
.arrival-step.done > i { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 4px #fff; }.arrival-step.active > i { border-color: var(--info); }
.arrival-step span { font-size: var(--font-xs); font-weight: 600; }.arrival-step small { color: var(--text-muted); font-size: var(--font-xs); }
.stats-strip { display: grid; grid-template-columns: repeat(6,1fr); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.stats-strip > div { display: grid; grid-template-columns: auto auto; align-content: center; justify-content: start; gap: 1px 6px; padding: 0 13px; border-right: 1px solid var(--line); }
.stats-strip > div:last-child { border-right: 0; }.stats-strip span { color: var(--text-secondary); font-size: var(--font-xs); }.stats-strip strong { grid-row: 1 / 3; font-size: 17px; font-weight: 700; }.stats-strip small { color: var(--text-muted); font-size: var(--font-xs); }
.stats-strip .pending-stat strong { color: var(--watch); }.stats-strip .alert-stat strong { color: var(--info); }
.filter-row { display: flex; gap: 3px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--surface-subtle); }
.filter-chip { padding: 6px 8px; border-radius: 5px; color: var(--text-muted); background: transparent; font-size: var(--font-xs); cursor: pointer; }.filter-chip.active { color: var(--brand-dark); background: var(--brand-soft); font-weight: 600; }
.news-feed { flex: 1; min-height: 0; overflow-y: auto; }
.news-item { border-bottom: 1px solid var(--line); background: transparent; }.news-item.active { background: var(--brand-faint); box-shadow: inset 3px 0 var(--brand); }
.news-card-main { padding: 12px 13px; cursor: pointer; }
.news-meta, .news-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text-muted); font-size: var(--font-xs); }
.news-item h3 { margin: 7px 0 0; font-size: var(--font-sm); line-height: 1.5; font-weight: var(--weight-semibold); }.news-item p { display: -webkit-box; margin: 5px 0 0; overflow: hidden; color: var(--text-secondary); font-size: var(--font-xs); line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.news-footer { margin-top: 8px; }.news-footer b { font-weight: 500; }.news-status { padding: 3px 5px; border-radius: 4px; background: var(--surface-strong); }.news-status.pending, .news-status.partial { color: var(--watch); background: var(--watch-soft); }.news-status.complete, .news-status.recovered { color: var(--brand-dark); background: var(--brand-soft); }.news-status.no-observation { color: var(--text-secondary); background: var(--surface-strong); }
.news-observations { display: grid; gap: 4px; margin-top: 8px; }.news-observations small { color: var(--text-muted); font-size: var(--font-xs); }
.observation-chip { display: grid; grid-template-columns: auto auto minmax(0,1fr); gap: 5px; align-items: center; width: 100%; padding: 5px 6px; border: 1px solid var(--line); border-radius: 5px; text-align: left; background: #fff; font-size: var(--font-xs); cursor: pointer; }.observation-chip b, .observation-chip em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.observation-chip em { color: var(--text-muted); font-style: normal; }
.news-actions { display: grid; grid-template-columns: repeat(3,1fr); padding: 0 10px 9px; gap: 4px; }.news-actions button { padding: 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--brand); background: #fff; font-size: var(--font-xs); cursor: pointer; }
.replay-dock { position: fixed; z-index: 70; left: var(--rail-width); right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 56px; padding: 7px 24px; border-top: 1px solid var(--line-strong); background: rgba(255,255,255,.98); box-shadow: 0 -8px 22px rgba(24,43,54,.08); }
.business-workspace .replay-dock { display: none; }.replay-progress { flex: 0 1 430px; min-width: 180px; }.replay-progress > span { font-size: var(--font-xs); font-weight: 600; }.replay-progress small { display: block; color: var(--text-muted); font-size: var(--font-xs); }.replay-progress > div { height: 2px; margin-top: 5px; background: var(--surface-strong); }.replay-progress i { display: block; width: 0; height: 100%; background: var(--brand); }
.replay-dock button, .replay-dock select { min-height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: var(--font-xs); }.replay-dock button { cursor: pointer; }.replay-dock button:disabled { opacity: .45; cursor: default; }.play-button { color: var(--brand-dark); }.play-button span { display: none; }

/* Replay keeps its dense three-panel workflow, but uses the same readable scale as the event center. */
.arrival-time span,
.arrival-progress-label,
.arrival-step span,
.arrival-step small,
.arrival-copy > div:last-child span { font-size: 13px; }
.arrival-time time,
.arrival-copy strong { font-size: 14px; }
.stats-strip span,
.stats-strip small { font-size: 13px; }
.filter-chip { font-size: 13px; }
.news-card-main { padding: 13px 14px; }
.news-meta,
.news-footer { font-size: 13px; }
.news-item h3 { font-size: 14px; line-height: 1.55; }
.news-item p { color: #526773; font-size: 13px; line-height: 1.6; }
.news-footer { margin-top: 9px; }
.news-observations small,
.observation-chip { font-size: 13px; }
@media (min-width: 981px) { .replay-workspace .dashboard { padding-bottom: 56px; } }

/* Route pages: event library and continuous archive */
.route-page { position: fixed; z-index: 100; inset: 0 0 0 var(--rail-width); display: none; grid-template-rows: 76px 56px minmax(0,1fr); min-width: 0; min-height: 0; background: var(--canvas); }
.library-page { top: 0; grid-template-rows: var(--surface-header-height) minmax(0,1fr); }
.route-library #libraryPage, .route-archive #archivePage { display: grid; }
.route-header { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 0 28px; border-bottom: 1px solid var(--line); background: #fff; }
.route-back { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 108px; height: 38px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--text-secondary); background: #fff; cursor: pointer; white-space: nowrap; }.route-back span { font-size: 18px; line-height: 1; }.route-back b { font-size: var(--font-xs); font-weight: 500; }
.route-header > div:nth-child(2) > span { color: var(--text-muted); font-size: var(--font-xs); }.route-header h1 { margin: 4px 0 0; font-size: 20px; line-height: 1.2; font-weight: 700; }
.route-header-meta { display: grid; gap: 3px; text-align: right; }.route-header-meta b { font-size: 12px; }.route-header-meta small { color: var(--text-muted); font-size: var(--font-xs); }
.library-compact-toolbar { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 56px; padding: 9px 28px; border-bottom: 1px solid var(--line); background: #fff; }
.library-compact-toolbar .route-back { flex: none; min-width: 104px; height: 36px; }
.library-filter-fields { display: grid; grid-template-columns: minmax(240px,1.35fr) minmax(170px,.48fr) minmax(190px,.78fr) minmax(190px,.78fr) minmax(150px,auto); align-items: center; gap: 10px; width: 100%; min-width: 0; }
.library-filter-fields > .route-scope { height: 36px; border-radius: 7px; }
.library-filter-fields > .route-scope button { min-height: 28px; font-size: 13px; }
.route-toolbar { display: grid; grid-template-columns: minmax(300px,420px) minmax(480px,1fr); align-items: center; gap: 14px; padding: 0 28px; border-bottom: 1px solid var(--line); background: #fff; }
.route-tabs { display: flex; align-items: stretch; height: 100%; gap: 18px; }
.route-tabs button { position: relative; color: var(--text-muted); background: transparent; font-size: var(--font-xs); cursor: pointer; }.route-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; }.route-tabs button.active { color: var(--brand-dark); font-weight: 600; }.route-tabs button.active::after { background: var(--brand); }
.route-scope { display: grid; grid-template-columns: repeat(3,1fr); padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-subtle); }.route-scope button { min-height: 30px; border-radius: 5px; color: var(--text-muted); background: transparent; font-size: var(--font-xs); cursor: pointer; }.route-scope button.active { color: var(--brand-dark); background: #fff; box-shadow: 0 1px 2px rgba(25,42,52,.08); }
.route-toolbar > input { width: 100%; height: 36px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; font-size: var(--font-xs); }
.library-action-filters { display: flex; align-items: center; gap: 4px; min-width: 0; }.library-action-filters > span { margin-right: 3px; color: var(--text-muted); font-size: var(--font-xs); white-space: nowrap; }.library-action-filters button { min-height: 32px; padding: 0 8px; border: 1px solid transparent; border-radius: 6px; color: var(--text-muted); background: transparent; font-size: var(--font-xs); cursor: pointer; white-space: nowrap; }.library-action-filters button b { margin-left: 2px; color: inherit; font-size: var(--font-xs); }.library-action-filters button:hover { color: var(--text-secondary); background: #fff; }.library-action-filters button.active { border-color: var(--line); color: var(--brand-dark); background: #fff; font-weight: 600; }
.library-search-filter { min-width: 0; height: 36px; }
.library-search-filter input { height: 36px; color: #233b47; background: #fbfcfc; font-size: 14px; }
.library-select-filter { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 9px; height: 36px; min-width: 0; padding: 0 10px; border: 1px solid #cfdbde; border-radius: 7px; background: #fff; }
.library-select-filter > span { color: #6a7d86; font-size: 13px; font-weight: var(--weight-regular); white-space: nowrap; }
.library-select-filter select { width: 100%; min-width: 0; height: 34px; padding: 0 27px 0 0; overflow: hidden; border: 0; color: #233b47; background-color: transparent; font-size: 13px; text-overflow: ellipsis; outline: 0; }
.library-filter-feedback { display: flex; align-items: center; justify-content: flex-end; gap: 9px; min-width: 0; min-height: 36px; padding-left: 10px; border-left: 1px solid var(--line); white-space: nowrap; }
.library-filter-feedback[hidden] { display: none; }
.library-clear-filters { min-height: 30px; padding: 0 8px; border: 1px solid #d5dfe1; border-radius: 6px; color: var(--brand-dark); background: #fff; font-size: 13px; font-weight: var(--weight-medium); cursor: pointer; white-space: nowrap; }.library-clear-filters:hover { border-color: #94b9b0; color: var(--brand-dark); background: #f5faf8; }.library-clear-filters:disabled { opacity: .45; cursor: default; }
.library-filter-result { overflow: hidden; color: #60757f; font-size: 13px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.route-content { min-height: 0; overflow-y: auto; padding: 22px 28px 36px; }
.route-content.library-content-paginated { display: grid; grid-template-rows: 40px minmax(0,1fr) 50px; overflow: hidden; padding-bottom: 22px; }
.library-content-paginated .instance-grid, .library-content-paginated .contract-grid { min-height: 0; overflow-x: hidden; overflow-y: auto; border-radius: 0; overscroll-behavior: contain; scrollbar-gutter: stable; }
.library-content-paginated .list-pagination { grid-template-columns: minmax(0,1fr) auto; gap: 8px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; }
.library-content-paginated .list-pagination > span { display: none; }
.library-content-paginated .pagination-jump { display: flex; }
.library-list-head, .library-row { display: grid; align-items: center; width: 100%; min-width: 0; column-gap: 24px; box-sizing: border-box; }
.library-list-head { min-height: 40px; padding: 0 17px; border: 1px solid var(--line); border-bottom: 0; border-radius: 9px 9px 0 0; color: #566c77; background: #edf2f1; font-size: 16px; font-weight: var(--weight-semibold); }
.instance-head, .instance-card { grid-template-columns: minmax(310px, 1.15fr) minmax(330px, 1.3fr) minmax(180px,.65fr) 130px; }
.contract-head, .contract-card { grid-template-columns: minmax(230px,.9fr) minmax(280px,1.05fr) minmax(320px,1.35fr) 100px; column-gap: 24px; }
.instance-grid, .contract-grid { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; overflow: hidden; background: #fff; }
.library-row { width: 100%; min-height: 108px; padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; background: #fff; cursor: pointer; }
.library-row:last-child { border-bottom: 0; }.library-row:hover { background: var(--brand-faint); }
.library-primary { display: grid; min-width: 0; gap: 6px; }.library-primary small { overflow: hidden; color: #6c7f89; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.library-primary strong { display: -webkit-box; overflow: hidden; color: #172b36; font-size: 17px; line-height: 1.45; font-weight: var(--weight-semibold); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }.library-primary span { color: var(--text-muted); font-size: 13px; }
.library-delta, .library-assessment { min-width: 0; }.library-delta b { color: var(--brand); font-size: 14px; }.library-delta p, .library-tracking, .library-definition { display: -webkit-box; margin: 0; overflow: hidden; color: #405560; font-size: 15px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }.library-assessment { display: grid; gap: 7px; }.library-assessment strong { font-size: 14px; }.library-assessment span { color: var(--text-muted); font-size: 13px; }
.library-row-end { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 5px 9px; color: var(--text-muted); font-size: var(--font-xs); }.library-row-end b { color: var(--brand); font-size: 12px; font-weight: 600; }.library-row-end b.push { color: var(--attention); }.library-row-end b.watch { color: var(--tracking); }.library-row-end b.archive { color: #687984; }.library-row-end i { grid-column: 2; grid-row: 1 / 3; color: var(--brand); font-size: 16px; font-style: normal; }
.library-rule-action { grid-template-columns: auto auto; justify-content: end; gap: 8px; white-space: nowrap; }.library-rule-action b { font-size: 14px; }.library-rule-action i { font-size: 18px; }
.archive-page { grid-template-rows: 76px 54px minmax(0,1fr); }
.archive-tabs { padding: 0 28px; border-bottom: 1px solid var(--line); background: #fff; }
.archive-content { scroll-behavior: smooth; }
.archive-dossier, .archive-stack, .archive-timeline, .archive-articles { display: grid; gap: 14px; width: min(1180px, 100%); margin: 0 auto; }
.archive-overview-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 14px; }
.archive-main-card, .archive-facts, .archive-contract, .archive-section, .archive-ledger, .archive-impact { border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.archive-main-card { padding: 20px; }.archive-main-card > span, .archive-contract > div > span, .archive-section header span, .archive-ledger > header span, .archive-impact > header span { color: var(--text-muted); font-size: var(--font-xs); }
.archive-main-card h2 { margin: 8px 0 0; font-size: 18px; line-height: 1.55; font-weight: 600; }.archive-delta { margin-top: 14px; padding: 12px 13px; border-left: 3px solid var(--brand); background: var(--brand-soft); }.archive-delta b { color: var(--brand-dark); font-size: 12px; }.archive-delta p { margin: 6px 0 0; color: #315b55; font-size: 13px; line-height: 1.55; }.archive-delta small { display: block; margin-top: 5px; color: #67857e; font-size: var(--font-xs); }
.archive-main-card .display-fields { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.archive-facts { display: grid; grid-template-columns: repeat(2,1fr); padding: 9px; }.archive-facts > div { display: grid; align-content: center; gap: 5px; min-height: 74px; padding: 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }.archive-facts > div:nth-child(2n) { border-right: 0; }.archive-facts > div:nth-last-child(-n+2) { border-bottom: 0; }.archive-facts span { color: var(--text-muted); font-size: var(--font-xs); }.archive-facts strong { font-size: 14px; line-height: 1.35; }.archive-facts strong.push { color: var(--attention); }.archive-facts strong.watch { color: var(--tracking); }
.archive-contract { padding: 17px 19px; }.archive-contract > div { display: flex; justify-content: space-between; gap: 12px; }.archive-contract button { color: var(--brand); background: transparent; font-size: var(--font-xs); cursor: pointer; }.archive-contract > strong { display: block; margin-top: 8px; color: var(--text); font-size: 13px; }.archive-contract p { display: -webkit-box; margin: 7px 0 0; overflow: hidden; color: var(--text-secondary); font-size: 12px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.archive-section { padding: 17px 19px; }.archive-section > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 12px; }.archive-section header h2 { margin: 4px 0 0; font-size: 15px; }.archive-section header small { color: var(--text-muted); font-size: var(--font-xs); }
.archive-timeline > article { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; }.archive-line { display: grid; grid-template-rows: 12px minmax(0,1fr); justify-items: center; gap: 4px; color: var(--text-muted); font-size: var(--font-xs); }.archive-line i { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }.archive-line::after { content: ""; width: 1px; height: 100%; background: var(--line-strong); }.archive-timeline > article:last-child .archive-line::after { display: none; }
.archive-timeline > article > div:last-child { padding: 12px 13px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }.archive-timeline header { display: flex; align-items: center; gap: 9px; color: var(--text-muted); font-size: var(--font-xs); }.archive-timeline header b { color: var(--brand); }.archive-timeline header em { margin-left: auto; color: var(--info); font-style: normal; }.archive-timeline h3 { margin: 8px 0; font-size: 13px; line-height: 1.6; }.archive-timeline footer { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: var(--font-xs); }.archive-timeline footer button { margin-left: auto; color: var(--brand); background: transparent; font-size: var(--font-xs); cursor: pointer; }
.archive-two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.archive-ledger, .archive-impact { padding: 16px 18px; }.archive-ledger > header, .archive-impact > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }.archive-ledger > header h3, .archive-impact > header h3 { margin: 5px 0 0; font-size: 14px; }.archive-ledger > header > b, .archive-impact > header > b { color: var(--brand); font-size: var(--font-xs); white-space: nowrap; }.archive-impact > header > b.push { color: var(--attention); }.archive-impact > header > b.watch { color: var(--tracking); }
.archive-ledger-metrics { display: grid; grid-template-columns: 1fr 14px 1fr 14px 1fr; align-items: center; margin: 12px 0; text-align: center; }.archive-ledger-metrics span { display: grid; gap: 2px; padding: 8px 3px; color: var(--text-muted); background: var(--surface-subtle); font-size: var(--font-xs); }.archive-ledger-metrics strong { color: var(--text); font-size: 16px; }.archive-ledger-metrics i { color: var(--text-muted); font-style: normal; }.archive-ledger > p { margin: 0; color: var(--text-secondary); font-size: 12px; line-height: 1.6; }
.archive-impact > div { display: grid; gap: 7px; margin-top: 11px; }.archive-impact article { display: grid; grid-template-columns: 1fr auto auto; gap: 5px 8px; padding: 9px 0; border-top: 1px solid var(--line); }.archive-impact article strong { font-size: 12px; }.archive-impact article span, .archive-impact article em { color: var(--text-muted); font-size: var(--font-xs); font-style: normal; }.archive-impact article em.positive { color: var(--positive); }.archive-impact article em.negative { color: var(--negative); }.archive-impact article p { grid-column: 1 / 4; margin: 2px 0 0; color: var(--text-secondary); font-size: var(--font-xs); line-height: 1.55; }.archive-impact article.impact-pending-state { display: block; padding: 11px 12px; border: 1px solid #eadfc9; }.archive-impact article.impact-pending-state p { margin-top: 6px; }.archive-impact > footer { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line); color: var(--text-secondary); font-size: var(--font-xs); line-height: 1.55; }
.archive-articles > article { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 15px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }.archive-articles span { color: var(--text-muted); font-size: var(--font-xs); }.archive-articles h3 { margin: 5px 0 0; font-size: 13px; line-height: 1.45; }.archive-articles p { display: -webkit-box; margin: 5px 0 0; overflow: hidden; color: var(--text-secondary); font-size: 12px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }.archive-articles footer { display: grid; justify-items: end; gap: 7px; color: var(--text-muted); font-size: var(--font-xs); }.archive-articles button { padding: 7px 8px; border-radius: 5px; color: var(--brand); background: var(--brand-soft); font-size: var(--font-xs); cursor: pointer; }
.route-library .replay-dock, .route-archive .replay-dock { display: none; }

/* Drawer, guide and feedback */
.drawer-scrim { position: fixed; z-index: 120; inset: 0; background: rgba(16,32,42,.26); }
.detail-drawer { position: fixed; z-index: 130; top: 0; right: 0; bottom: 0; display: grid; grid-template-rows: 84px auto minmax(0,1fr); width: min(580px, calc(100vw - 36px)); border-left: 1px solid var(--line-strong); background: #fff; box-shadow: -20px 0 44px rgba(16,32,42,.18); transform: translateX(102%); transition: transform .2s ease; }
.detail-drawer.open { transform: translateX(0); }.detail-drawer > header { display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--line); }.detail-drawer > header > div { flex: 1; min-width: 0; }.detail-drawer > header > div > span { color: var(--brand); font-size: var(--font-xs); }.detail-drawer > header h2 { display: -webkit-box; margin: 4px 0 0; overflow: hidden; font-size: 17px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }.detail-drawer > header button { flex: 0 0 auto; height: 32px; border-radius: 7px; color: var(--text-muted); background: var(--surface-subtle); cursor: pointer; }.detail-drawer > header .drawer-close { width: 32px; font-size: 20px; }.detail-drawer > header .drawer-back { display: inline-flex; align-items: center; gap: 5px; max-width: 150px; padding: 0 9px; color: var(--brand-dark); font-size: 12px; }.detail-drawer > header .drawer-back span { overflow: hidden; color: inherit; font-size: var(--font-xs); text-overflow: ellipsis; white-space: nowrap; }
.drawer-tabs { display: flex; gap: 16px; min-height: 45px; padding: 0 20px; border-bottom: 1px solid var(--line); }.drawer-tabs button { position: relative; color: var(--text-muted); background: transparent; font-size: var(--font-xs); cursor: pointer; }.drawer-tabs button.active { color: var(--brand-dark); font-weight: 600; }.drawer-tabs button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand); }
.drawer-tabs.empty { display: none; }
.drawer-content { min-height: 0; overflow-y: auto; padding: 18px 20px 28px; }.drawer-section + .drawer-section { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }.drawer-section h3 { margin: 0 0 8px; font-size: 13px; }.drawer-section p { margin: 0; color: var(--text-secondary); font-size: 12px; line-height: 1.65; }.drawer-evidence, .ledger-list { display: grid; gap: 8px; }.evidence-row, .ledger-row { padding: 10px 11px; border: 1px solid var(--line); border-radius: 6px; color: var(--text-secondary); background: var(--surface-subtle); font-size: var(--font-xs); line-height: 1.6; }.evidence-row footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; color: var(--text-muted); font-size: var(--font-xs); }.evidence-row button { color: var(--brand); background: transparent; font-size: var(--font-xs); cursor: pointer; }.ledger-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }.ledger-row strong { font-size: var(--font-xs); }.ledger-row span { color: var(--text-muted); font-size: var(--font-xs); text-align: right; }
.contract-result-section h3 { margin-bottom: 10px; font-size: 15px; }
.contract-result-card { padding: 14px 15px 13px; border: 1px solid #d9e3e1; border-left: 3px solid #aab9b5; border-radius: 8px; background: #f8faf9; }
.contract-result-card > header { display: flex; align-items: center; gap: 9px; }
.contract-result-card > header i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #8d9d98; }
.contract-result-card > header strong { color: #243943; font-size: 16px; line-height: 1.45; }
.contract-result-card > p { margin-top: 7px; color: #556b75; font-size: 14px; line-height: 1.65; }
.contract-result-card.has-events { border-left-color: var(--brand); background: #f2f8f6; }
.contract-result-card.has-events > header i { background: var(--brand); }
.contract-result-card.has-clues { border-left-color: #c48a2c; background: #fffaf1; }
.contract-result-card.has-clues > header i { background: #c48a2c; }
.contract-result-metrics { display: flex; align-items: center; gap: 18px; margin-top: 11px; padding-top: 10px; border-top: 1px solid rgba(114,137,130,.18); color: #667983; font-size: 13px; }
.contract-result-metrics span { display: inline-flex; align-items: baseline; gap: 4px; }
.contract-result-metrics b { color: #2c4550; font-size: 15px; font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; }
.drawer-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }.drawer-section-title span { color: var(--text); font-size: 13px; font-weight: 600; }.drawer-section-title b { color: var(--text-muted); font-size: var(--font-xs); font-weight: 500; }

/* Audit receipts */
.routing-summary > span { color: var(--brand); font-size: var(--font-xs); font-weight: 600; }.routing-summary h3 { margin-top: 5px; }.routing-summary > div { display: flex; flex-wrap: wrap; gap: 7px 0; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }.routing-summary > div span { display: inline-flex; gap: 5px; padding: 2px 10px; border-left: 1px solid var(--line); color: var(--text-secondary); font-size: var(--font-xs); }.routing-summary > div span:first-child { padding-left: 0; border-left: 0; }.routing-summary > div b { color: var(--text-muted); font-weight: 500; }
.routing-list { display: grid; gap: 14px; }.routing-receipt { padding: 14px 0 2px; border-top: 1px solid var(--line); }.routing-receipt:first-child { padding-top: 0; border-top: 0; }.routing-receipt > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }.routing-receipt > header > div { display: grid; gap: 3px; }.routing-receipt > header span { color: var(--text-muted); font-size: var(--font-xs); }.routing-receipt > header strong { color: var(--brand-dark); font-size: 13px; }.routing-receipt > header time { color: var(--text-muted); font-size: var(--font-xs); white-space: nowrap; }.routing-receipt > p { margin-top: 10px; }.routing-receipt > aside { margin-top: 10px; padding: 10px 11px; border-left: 3px solid var(--info); color: var(--text-secondary); background: var(--info-soft); font-size: var(--font-xs); line-height: 1.6; }.routing-receipt dl { display: grid; grid-template-columns: 1fr 1fr; margin: 12px 0 0; border-top: 1px solid var(--line); }.routing-receipt dl > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; padding: 8px 9px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }.routing-receipt dl > div:nth-child(2n) { border-right: 0; }.routing-receipt dt { color: var(--text-muted); font-size: var(--font-xs); }.routing-receipt dd { margin: 0; color: var(--text); font-size: var(--font-xs); font-weight: 600; text-align: right; }.routing-receipt > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--text-muted); font-size: var(--font-xs); }.routing-receipt > footer button { padding: 6px 8px; border-radius: 5px; color: var(--brand); background: var(--brand-soft); font-size: var(--font-xs); cursor: pointer; }
.technical-diagnostics { margin-top: 11px; border-top: 1px solid var(--line); }.technical-diagnostics > summary { display: flex; align-items: center; gap: 8px; min-height: 38px; color: var(--text-muted); list-style: none; cursor: pointer; }.technical-diagnostics > summary::-webkit-details-marker { display: none; }.technical-diagnostics > summary span { font-size: var(--font-xs); font-weight: 600; }.technical-diagnostics > summary i { width: 7px; height: 7px; margin-left: auto; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }.technical-diagnostics[open] > summary i { transform: rotate(225deg); }.technical-diagnostics > p { margin: 0; padding: 9px 10px; color: var(--text-secondary); background: var(--surface-subtle); font-size: var(--font-xs); line-height: 1.55; }

/* Original article and 观察抽取 result */
.full-article { --evidence-support-bg: #e4f2ef; --evidence-support-edge: #70aa9f; --evidence-pending-bg: #fff0d6; --evidence-pending-edge: #c6882f; }
.full-article > header { padding-bottom: 15px; border-bottom: 1px solid var(--line); }.full-article > header > span { color: var(--brand); font-size: var(--font-xs); font-weight: 600; }.full-article > header h3 { margin: 7px 0 10px; font-size: 18px; line-height: 1.45; letter-spacing: -.01em; }.full-article > header > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 12px; color: var(--text-muted); font-size: var(--font-xs); }.full-article code { padding: 3px 5px; border-radius: 4px; color: var(--text-secondary); background: var(--surface-strong); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: var(--font-xs); }
.article-quality { margin-top: 14px; padding: 11px 12px; border-left: 3px solid var(--line-strong); background: var(--surface-subtle); }.article-quality.review { border-left-color: var(--watch); background: var(--watch-soft); }.article-quality.risk { border-left-color: var(--danger); background: var(--danger-soft); }.article-quality.normal { border-left-color: var(--positive); background: #edf6f1; }.article-quality span { color: var(--text-muted); font-size: var(--font-xs); }.article-quality strong { margin-left: 8px; font-size: var(--font-xs); }.article-quality p { margin-top: 5px; font-size: var(--font-xs); line-height: 1.55; }
.article-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 15px; color: var(--text-muted); font-size: var(--font-xs); }.article-legend span { display: inline-flex; align-items: center; gap: 6px; }.article-legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--evidence-support-bg); box-shadow: inset 0 0 0 1px var(--evidence-support-edge); }.article-legend i.pending { background: var(--evidence-pending-bg); box-shadow: inset 0 0 0 1px var(--evidence-pending-edge); }.article-legend button { margin-left: auto; padding: 5px 8px; border-radius: 5px; color: var(--brand); background: var(--brand-soft); font-size: var(--font-xs); font-weight: 600; cursor: pointer; }
.article-body { margin-top: 11px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--text-secondary); font-size: 15px; line-height: 1.85; white-space: normal; overflow-wrap: anywhere; word-break: normal; text-align: left; }.article-body mark { padding: 1px 2px; border-radius: 2px; color: inherit; background: var(--evidence-support-bg); box-shadow: inset 0 -1px 0 var(--evidence-support-edge); -webkit-box-decoration-break: clone; box-decoration-break: clone; }.article-body mark.pending { background: var(--evidence-pending-bg); box-shadow: inset 0 0 0 1px rgba(198,136,47,.38), inset 0 -2px 0 var(--evidence-pending-edge); }.article-body mark.located { outline: 2px solid var(--brand); outline-offset: 3px; }
.article-observations { display: grid; gap: 14px; }.observation-detail-card { padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }.observation-detail-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }.observation-detail-card > header div { display: grid; gap: 4px; }.observation-detail-card > header span { color: var(--text-muted); font-size: var(--font-xs); }.observation-detail-card > header strong { font-size: 12px; }.observation-detail-card > header > b { color: var(--brand); font-size: var(--font-xs); }.observation-fields { display: grid; grid-template-columns: 1fr 1fr; margin: 12px 0 0; border-top: 1px solid var(--line); }.observation-fields > div { min-width: 0; padding: 9px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }.observation-fields > div:nth-child(2n), .observation-fields > div.wide { border-right: 0; }.observation-fields > div.wide { grid-column: 1 / 3; }.observation-fields dt { color: var(--text-muted); font-size: var(--font-xs); }.observation-fields dd { margin: 4px 0 0; color: var(--text-secondary); font-size: var(--font-xs); line-height: 1.55; }.evidence-sentences { display: grid; gap: 6px; }.evidence-sentence { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px; align-items: start; width: 100%; padding: 7px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--text-secondary); background: var(--surface-subtle); text-align: left; cursor: pointer; }.evidence-sentence:hover { border-color: var(--brand); background: var(--brand-soft); }.evidence-sentence span { color: var(--brand); font-size: var(--font-xs); font-weight: 600; white-space: nowrap; }.evidence-sentence p { margin: 0; font-size: var(--font-xs); line-height: 1.55; }.article-body-loading { display: flex; align-items: center; gap: 8px; color: var(--text-muted); }.article-body-loading i { width: 14px; height: 14px; border: 2px solid #d6e2de; border-top-color: var(--brand); border-radius: 50%; animation: source-spin .8s linear infinite; }.inline-locate { margin-top: 11px; padding: 7px 9px; border-radius: 5px; color: var(--brand); background: var(--brand-soft); font-size: var(--font-xs); cursor: pointer; }
.trace-summary { display: grid; grid-template-columns: 1.4fr 1fr 1fr; margin: 12px 0 18px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-subtle); }.trace-summary > span { display: grid; gap: 4px; padding: 9px 10px; border-right: 1px solid var(--line); color: var(--text-muted); font-size: var(--font-xs); }.trace-summary > span:last-child { border-right: 0; }.trace-summary strong { overflow: hidden; color: var(--text-secondary); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.process-trace { display: grid; }.trace-row { display: grid; grid-template-columns: 58px 12px minmax(0,1fr) auto; gap: 8px; align-items: start; min-height: 54px; }.trace-row time, .trace-row > b { color: var(--text-muted); font-size: var(--font-xs); font-weight: 500; }.trace-row > i { position: relative; width: 9px; height: 9px; margin-top: 2px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }.trace-row > i::after { content: ""; position: absolute; left: 4px; top: 12px; width: 1px; height: 35px; background: var(--line); }.trace-row:last-child > i::after { display: none; }.trace-row > div { display: grid; gap: 3px; }.trace-row strong { font-size: var(--font-xs); }.trace-row span { color: var(--text-muted); font-size: var(--font-xs); }

/* Contract and operations drawers */
.contract-identity { display: flex; align-items: center; gap: 9px; }.contract-identity strong { font-size: 14px; }.contract-summary { display: grid; grid-template-columns: 1fr; margin: 13px 0 0; border-top: 1px solid var(--line); }.contract-summary > div { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }.contract-summary dt { color: var(--text-muted); font-size: var(--font-xs); }.contract-summary dd { margin: 0; color: var(--text-secondary); font-size: var(--font-xs); }.contract-summary code { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: var(--font-xs); }.definition-copy { white-space: pre-wrap; }
.detail-drawer[data-mode="contract"] { grid-template-rows: 96px auto minmax(0,1fr); width: min(660px, calc(100vw - 36px)); }
.detail-drawer[data-mode="contract"] > header { padding: 0 28px; }
.detail-drawer[data-mode="contract"] > header > div > span { font-size: 14px; font-weight: var(--weight-medium); }
.detail-drawer[data-mode="contract"] > header h2 { margin-top: 5px; font-size: 22px; line-height: 1.32; }
.detail-drawer[data-mode="contract"] > header .drawer-close { width: 36px; height: 36px; }
.detail-drawer[data-mode="contract"] > header .drawer-back,
.detail-drawer[data-mode="contract"] > header .drawer-back span { font-size: 13px; }
.detail-drawer[data-mode="contract"] .drawer-content { padding: 26px 28px 40px; }
.detail-drawer[data-mode="contract"] .drawer-section + .drawer-section { margin-top: 24px; padding-top: 23px; }
.detail-drawer[data-mode="contract"] .contract-identity { gap: 12px; }
.detail-drawer[data-mode="contract"] .contract-identity .scope-badge { min-height: 26px; padding: 0 8px; border-radius: 6px; font-size: 14px; }
.detail-drawer[data-mode="contract"] .contract-identity strong { color: #20343e; font-size: 18px; line-height: 1.4; }
.detail-drawer[data-mode="contract"] .contract-summary { margin-top: 17px; }
.detail-drawer[data-mode="contract"] .contract-summary > div { grid-template-columns: 112px minmax(0,1fr); gap: 14px; padding: 12px 0; }
.detail-drawer[data-mode="contract"] .contract-summary dt { color: #6b7f89; font-size: 14px; }
.detail-drawer[data-mode="contract"] .contract-summary dd { color: #405660; font-size: 15px; line-height: 1.55; }
.detail-drawer[data-mode="contract"] .contract-summary code { font-size: 14px; }
.detail-drawer[data-mode="contract"] .drawer-section h3 { margin-bottom: 11px; color: #20343e; font-size: 17px; line-height: 1.4; }
.detail-drawer[data-mode="contract"] .drawer-section p { color: #405660; font-size: 16px; line-height: 1.75; }
.detail-drawer[data-mode="contract"] .contract-result-card { padding: 18px 20px 17px; border-radius: 9px; }
.detail-drawer[data-mode="contract"] .contract-result-card > header { gap: 11px; }
.detail-drawer[data-mode="contract"] .contract-result-card > header i { width: 9px; height: 9px; }
.detail-drawer[data-mode="contract"] .contract-result-card > header strong { font-size: 18px; line-height: 1.45; }
.detail-drawer[data-mode="contract"] .contract-result-card > p { margin-top: 8px; font-size: 15px; line-height: 1.7; }
.detail-drawer[data-mode="contract"] .contract-result-metrics { gap: 24px; margin-top: 14px; padding-top: 13px; font-size: 14px; }
.detail-drawer[data-mode="contract"] .contract-result-metrics b { font-size: 17px; }
.ops-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }.ops-cell { display: grid; gap: 4px; padding: 10px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }.ops-cell:nth-child(2n) { border-right: 0; }.ops-cell span { color: var(--text-muted); font-size: var(--font-xs); }.ops-cell strong { font-size: 12px; }.activity-detail { display: grid; }.activity-detail > div { display: grid; grid-template-columns: 8px minmax(0,1fr) auto; gap: 8px; align-items: center; min-height: 34px; border-bottom: 1px solid var(--line); }.activity-detail i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }.activity-detail span, .activity-detail time { font-size: var(--font-xs); }.activity-detail time { color: var(--text-muted); }
.guide-overlay { position: fixed; z-index: 160; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(16,32,42,.32); }.guide-dialog { position: relative; width: min(720px, 100%); padding: 28px; border-radius: 12px; background: #fff; box-shadow: 0 24px 60px rgba(16,32,42,.22); }.guide-close { position: absolute; right: 16px; top: 14px; width: 30px; height: 30px; border-radius: 7px; color: var(--text-muted); background: var(--surface-subtle); font-size: 20px; cursor: pointer; }.guide-dialog header > span { color: var(--brand); font-size: var(--font-xs); }.guide-dialog header h2 { margin: 6px 0; font-size: 22px; }.guide-dialog header p { margin: 0; color: var(--text-secondary); font-size: 12px; }.guide-steps { display: grid; gap: 10px; margin-top: 20px; }.guide-steps article { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }.guide-steps article > b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; background: var(--brand); }.guide-steps strong { font-size: 12px; }.guide-steps p { margin: 4px 0 0; color: var(--text-secondary); font-size: var(--font-xs); line-height: 1.55; }.guide-dialog aside { margin-top: 14px; padding: 12px; border-left: 3px solid var(--info); background: var(--info-soft); }.guide-dialog aside strong, .guide-dialog aside span { display: block; }.guide-dialog aside strong { font-size: var(--font-xs); }.guide-dialog aside span { margin-top: 4px; color: var(--text-secondary); font-size: var(--font-xs); line-height: 1.55; }.guide-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 18px; color: var(--text-muted); font-size: var(--font-xs); }.guide-dialog footer button { padding: 8px 13px; border-radius: 6px; color: #fff; background: var(--brand); cursor: pointer; }
.event-toast { position: fixed; z-index: 180; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px; max-width: 380px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--text-secondary); background: #fff; box-shadow: 0 10px 28px rgba(16,32,42,.15); font-size: var(--font-xs); opacity: 0; pointer-events: none; transform: translateY(8px); transition: .16s ease; }.event-toast.show { opacity: 1; transform: translateY(0); }.event-toast i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }.event-toast.error i { background: var(--danger); }
.mobile-tabs { display: none; }

/* Readability pass: business copy is never rendered at diagnostic-log scale. */
body :is(.eyebrow, .run-context span, .mode-pill, .section-kicker, .story-block > span, .story-block header span, .identity-fields > span, .display-field, .node-phase, .node-number, .node-temporal, .node-footer, .node-evidence-preview > header span, .node-evidence-preview article footer, .reason-block span, .uncertainty-block > span, .impact-grid span, .impact-subject span, .decision-trust-line > span, .decision-trust-line > small, .affected-row header b, .affected-row footer span, .affected-row footer em, .card-heading span, .source-funnel span, .credibility-axes span, .independence-row span, .decision-gate > span, .reason-codes span, .drawer-section-title b, .routing-receipt > header span, .routing-receipt > header time, .routing-receipt dt, .routing-receipt > footer, .evidence-row footer, .article-legend, .observation-fields dt, .trace-row time, .trace-row > b, .trace-row span) { font-size: var(--font-xs); }
body :is(.title-line span, .run-context strong, .workspace-switch button, .guide-button, .quiet-button, .panel-header small, .panel-actions select, .icon-button, .event-breadcrumb, .phase-badge, .contract-row > div:first-child > span, .event-audit-menu summary, .contract-actions button, .delta-meta, .single-progress-meta strong, .subsection-head small, .subsection-head > b, .node-kind, .node-evidence-preview button, .decision-eyebrow, .decision-topline > div > strong, .decision-details > summary span, .decision-details > summary strong, .card-heading h3, .card-heading button, .credibility-axes strong, .independence-row strong, .card-note, .drawer-tabs button, .evidence-row, .ledger-row, .routing-receipt > aside, .routing-receipt dd, .routing-receipt > footer button, .article-quality strong, .article-quality p, .observation-detail-card > header strong, .observation-fields dd, .inline-locate, .trace-row strong) { font-size: 12px; }
body :is(.empty-state span, .event-empty p, .route-empty span, .story-block p, .node-fact, .node-evidence-preview article p, .reason-block p, .impact-grid strong, .decision-trust-line > strong, .impact-subject strong, .affected-row header span, .affected-row p, .drawer-section p, .article-body) { font-size: 13px; }
body .article-body { font-size: 15px; line-height: 1.85; }
.delta-story p { font-size: 15px; }.node-fact, .affected-row p, .drawer-section p { line-height: 1.7; }
.impact-grid { gap: 16px; border-top: 1px solid var(--line); border-bottom: 0; }.impact-grid > div { padding: 11px 0; border-right: 0; }
.single-progress .node-evidence-preview { margin: 18px 26px 26px; }

/* Round 3: visual hierarchy, scan efficiency, and business story. */
button, summary, .timeline-node, .library-row { transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
button:active:not(:disabled), .library-row:active { transform: translateY(1px); }

.topbar { gap: var(--space-5); padding: 0 var(--space-4) 0 var(--space-5); }
.page-heading { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.eyebrow { margin: 0; color: var(--brand-dark); font-size: var(--font-body-lg); font-weight: var(--weight-semibold); letter-spacing: 0; }
.brand-divider { color: var(--line-strong); font-size: 18px; }
.title-line { gap: 0; }
.title-line h1 { font-size: 20px; font-weight: var(--weight-bold); letter-spacing: -.01em; }
.title-line span { display: none; }
.workspace-switch { gap: var(--space-5); }
.workspace-switch button, .guide-button, .quiet-button, .mode-pill, .run-context strong { font-size: var(--font-xs); }
.workspace-switch button.active { font-weight: var(--weight-semibold); }
.run-context { margin-left: auto; }
.run-context span { display: none; }
.mode-pill { padding: 6px 9px; }

.memory-panel, .decision-panel { grid-template-rows: 68px minmax(0, 1fr); }
.panel-header { min-height: 68px; padding: 12px 15px; }
.panel-header h2 { font-size: var(--font-section); font-weight: var(--weight-bold); letter-spacing: -.01em; }
.panel-header small, .section-kicker { font-size: var(--font-xs); }
.event-hero { padding: 22px 26px 20px; }
.event-breadcrumb, .phase-badge, .contract-row > div:first-child > span, .event-audit-menu summary { font-size: var(--font-xs); }
.contract-row { margin-top: 12px; }
.contract-row > div:first-child > strong { font-size: var(--font-sm); font-weight: var(--weight-semibold); }
.contract-actions { width: 168px; }
.contract-actions button { font-size: var(--font-xs); }
.event-hero > h2 { margin-top: 12px; font-size: clamp(24px, 1.65vw, var(--font-event-title)); font-weight: var(--weight-bold); letter-spacing: -.01em; }
.event-story { margin-top: 20px; }
.story-block > span, .story-block header span, .identity-fields > span { font-size: var(--font-xs); font-weight: var(--weight-semibold); }
.story-block p { font-size: var(--font-base); }
.delta-story { padding: 14px 16px; }
.delta-story header span { font-size: var(--font-sm); }
.delta-story header b { font-size: var(--font-xs); font-weight: var(--weight-medium); }
.delta-story p { font-size: var(--font-body-lg); font-weight: var(--weight-medium); }
.delta-meta { font-size: var(--font-xs); }
.single-progress-meta span, .single-progress-meta strong, .display-field { font-size: var(--font-xs); }
.single-progress-meta strong { font-weight: var(--weight-semibold); }
.identity-fields { margin-top: 16px; }
.monitor-rule-note { margin-top: 12px; border-top: 1px solid var(--line); }
.monitor-rule-note > summary { display: flex; align-items: center; gap: 8px; min-height: 38px; color: var(--text-muted); font-size: var(--font-xs); list-style: none; cursor: pointer; }
.monitor-rule-note > summary::-webkit-details-marker { display: none; }
.monitor-rule-note > summary i { width: 6px; height: 6px; margin-left: auto; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.monitor-rule-note[open] > summary i { transform: rotate(225deg); }
.monitor-rule-note p { margin: 0 0 8px; padding: 10px 12px; border-left: 2px solid var(--line-strong); color: var(--text-secondary); background: var(--surface-subtle); font-size: var(--font-xs); line-height: 1.65; }
.subsection-head { align-items: center; }
.subsection-head span { font-size: var(--font-body-lg); }
.subsection-head small { font-size: var(--font-xs); }
.timeline-status { display: grid; gap: 3px; justify-items: end; }
.timeline-status span { color: var(--brand-dark); font-size: var(--font-xs); font-weight: var(--weight-semibold); }
.timeline-status b { color: var(--text-muted); font-size: var(--font-xs); font-weight: var(--weight-medium); }
.timeline-node { transition-duration: .18s; }
.node-kind, .node-phase, .node-number, .node-temporal, .node-footer { font-size: var(--font-xs); }
.node-fact { font-size: var(--font-base); }

.decision-card { padding: 20px 18px 18px; }
.decision-eyebrow { font-size: var(--font-xs); font-weight: var(--weight-semibold); }
.decision-action { font-size: 24px; font-weight: var(--weight-bold); letter-spacing: -.01em; }
.decision-topline > div > strong { font-size: var(--font-xs); font-weight: var(--weight-medium); }
.reason-block { margin-top: 16px; padding: 12px 13px; }
.reason-block span { font-size: var(--font-xs); font-weight: var(--weight-semibold); }
.reason-block p { font-size: var(--font-base); line-height: 1.65; }
.impact-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding: 0; border: 0; }
.impact-summary > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-subtle); }
.impact-summary > div:first-child, .impact-summary > div:last-child { padding: 7px 10px; }
.impact-summary strong { order: 1; margin: 0; font-size: var(--font-base); font-weight: var(--weight-semibold); }
.impact-summary span { order: 2; font-size: var(--font-xs); }
.decision-evidence-summary { display: block; margin-top: 16px; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.decision-evidence-summary header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.decision-evidence-summary header span { color: var(--text-muted); font-size: var(--font-xs); }
.decision-evidence-summary header strong { font-size: var(--font-base); font-weight: var(--weight-semibold); }
.decision-evidence-summary p { margin: 5px 0 0; color: var(--text-muted); font-size: var(--font-xs); line-height: 1.5; }
.impact-subject { margin-top: 15px; }
.impact-subject span { font-size: var(--font-xs); }
.impact-subject strong { font-size: var(--font-base); font-weight: var(--weight-semibold); }
.impact-detail-block > summary span, .decision-details > summary span { font-size: var(--font-sm); font-weight: var(--weight-semibold); }
.decision-details > summary strong { font-size: var(--font-xs); font-weight: var(--weight-medium); }

.event-empty.pending-selection { padding: 30px 32px; }
.pending-state-card { width: min(660px,100%); padding: 4px 0 24px; border: 0; border-radius: 0; background: transparent; }
.pending-state-card > .pending-state-label { display: inline-flex; padding: 4px 8px; border-radius: var(--radius-sm); color: var(--watch); background: var(--watch-soft); font-size: var(--font-xs); font-weight: var(--weight-semibold); }
.pending-state-card h2 { margin-top: 12px; font-size: var(--font-title); font-weight: var(--weight-bold); letter-spacing: -.01em; }
.pending-state-card > p { margin-top: 10px; font-size: var(--font-base); }
.pending-clue { display: grid; gap: 8px; margin-top: 24px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pending-clue small { color: var(--text-muted); font-size: var(--font-xs); }
.pending-clue strong { font-size: var(--font-body-lg); font-weight: var(--weight-semibold); line-height: 1.65; }
.pending-reasons { margin-top: 20px; }
.pending-reasons h3 { margin: 0; font-size: var(--font-base); }
.pending-reasons ul { display: grid; gap: 7px; margin: 10px 0 0; padding-left: 20px; color: var(--text-secondary); font-size: var(--font-sm); line-height: 1.65; }
.pending-reasons li::marker { color: var(--watch); }
.pending-state-card footer { grid-template-columns: 82px minmax(0,1fr); margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--font-sm); }
.pending-state-card footer b { color: var(--text-secondary); }
.pending-state-actions button { min-height: 36px; border-color: var(--line-strong); color: var(--brand-dark); font-size: var(--font-xs); font-weight: var(--weight-semibold); }
.pending-state-actions button:hover { border-color: rgba(8,127,112,.35); background: var(--brand-faint); }

.event-empty.article-result-state { display: block; min-height: 100%; padding: 24px 28px 34px; overflow-y: auto; color: var(--text); text-align: left; scrollbar-width: thin; scrollbar-color: #c8d2d8 transparent; }
.article-result-card { width: min(860px,100%); margin: 0 auto; }
.article-result-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.article-result-status > span { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 12px; color: var(--brand-dark); background: var(--brand-soft); font-size: var(--font-xs); font-weight: var(--weight-semibold); }
.article-result-status > small { color: var(--text-muted); font-size: var(--font-xs); font-variant-numeric: tabular-nums; }
.article-result-card > h2 { margin: 13px 0 0; color: var(--text); font-size: var(--font-title); line-height: 1.35; font-weight: var(--weight-bold); letter-spacing: -.01em; }
.article-result-lead { max-width: 760px !important; margin: 8px 0 0 !important; color: var(--text-secondary); font-size: var(--font-base) !important; line-height: 1.7 !important; }
.article-result-document { margin-top: 20px; padding: 15px 16px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-subtle); }
.article-result-document > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.article-result-document > header span { color: var(--brand-dark); font-size: var(--font-xs); font-weight: var(--weight-semibold); }
.article-result-document > header time { color: var(--text-muted); font-size: var(--font-xs); font-variant-numeric: tabular-nums; }
.article-result-document h3 { margin: 10px 0 0; color: var(--text); font-size: var(--font-body-lg); line-height: 1.5; font-weight: var(--weight-semibold); }
.article-result-document p { display: -webkit-box; max-width: none; margin: 7px 0 0; overflow: hidden; color: var(--text-secondary); font-size: var(--font-sm); line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.article-result-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 16px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.article-result-metrics > div { min-width: 0; padding: 12px 13px; border-right: 1px solid var(--line); }
.article-result-metrics > div:last-child { border-right: 0; }
.article-result-metrics dt { color: var(--text-muted); font-size: var(--font-xs); }
.article-result-metrics dd { margin: 5px 0 0; overflow: hidden; color: var(--text); font-size: var(--font-base); line-height: 1.4; font-weight: var(--weight-semibold); text-overflow: ellipsis; white-space: nowrap; }
.article-result-metrics small { display: block; margin-top: 4px; overflow: hidden; color: var(--text-muted); font-size: var(--font-xs); line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.article-result-clues { margin-top: 18px; }
.article-result-clues > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.article-result-clues > header span { color: var(--text-secondary); font-size: var(--font-sm); font-weight: var(--weight-semibold); }
.article-result-clues > header b { color: var(--text-muted); font-size: var(--font-xs); font-weight: var(--weight-medium); }
.article-result-clues > div { display: grid; gap: 7px; }
.article-result-clues button { display: grid; gap: 5px; width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); background: #fff; text-align: left; cursor: pointer; }
.article-result-clues button:hover { border-color: rgba(8,127,112,.35); background: var(--brand-faint); }
.article-result-clues button span, .article-result-clues button small { color: var(--text-muted); font-size: var(--font-xs); }
.article-result-clues button strong { color: var(--text-secondary); font-size: var(--font-sm); line-height: 1.55; font-weight: var(--weight-semibold); }
.article-result-clues button small { color: var(--brand-dark); }
.article-result-clues > p { max-width: none; margin: 8px 0 0; color: var(--text-muted); font-size: var(--font-xs); }
.article-result-path { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 16px; }
.article-result-path > div { position: relative; display: grid; grid-template-columns: 25px minmax(0,1fr); gap: 3px 9px; align-content: start; min-height: 76px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.article-result-path i { grid-row: 1 / 3; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: var(--brand-dark); background: var(--brand-soft); font-size: var(--font-xs); font-style: normal; font-weight: var(--weight-bold); }
.article-result-path span { color: var(--text-muted); font-size: var(--font-xs); }
.article-result-path strong { overflow: hidden; color: var(--text-secondary); font-size: var(--font-sm); line-height: 1.45; font-weight: var(--weight-semibold); }
.article-result-destination { display: grid; grid-template-columns: 86px minmax(0,1fr); gap: 4px 12px; margin-top: 10px; padding: 13px 14px; border-left: 3px solid var(--brand); background: var(--brand-faint); }
.article-result-destination > span { grid-row: 1 / 3; color: var(--brand-dark); font-size: var(--font-xs); font-weight: var(--weight-semibold); }
.article-result-destination > strong { color: var(--text); font-size: var(--font-sm); font-weight: var(--weight-semibold); }
.article-result-destination > p { max-width: none; margin: 0; color: var(--text-secondary); font-size: var(--font-xs); line-height: 1.55; }
.article-result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.article-result-actions button { min-height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--brand-dark); background: #fff; font-size: var(--font-xs); font-weight: var(--weight-semibold); cursor: pointer; }
.article-result-actions button:hover { border-color: rgba(8,127,112,.4); background: var(--brand-faint); }

.observation-detail-card { padding: 16px; border-radius: var(--radius-md); }
.observation-detail-card > header span, .observation-detail-card > header > b { font-size: var(--font-xs); }
.observation-detail-card > header strong { font-size: var(--font-sm); }
.recognition-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; margin-top: 14px; color: var(--text-muted); font-size: var(--font-xs); }
.recognition-summary strong { color: var(--text-secondary); font-size: var(--font-sm); font-weight: var(--weight-semibold); }
.recognition-summary i { color: var(--line-strong); font-style: normal; }
.news-event-chain { display: grid; grid-template-columns: minmax(0,.8fr) 16px minmax(0,1.25fr) 16px minmax(0,.8fr); align-items: stretch; gap: 6px; margin-top: 14px; }
.news-event-chain > div { display: grid; align-content: start; gap: 5px; min-width: 0; padding: 11px; border-radius: var(--radius-sm); background: var(--surface-subtle); }
.news-event-chain > div:nth-of-type(2) { background: var(--brand-faint); }
.news-event-chain span { color: var(--text-muted); font-size: var(--font-xs); }
.news-event-chain strong { color: var(--text-secondary); font-size: var(--font-sm); font-weight: var(--weight-semibold); line-height: 1.5; }
.news-event-chain > i { align-self: center; color: var(--text-muted); font-style: normal; text-align: center; }
.observation-new-fact { margin-top: 16px; padding-left: 12px; border-left: 3px solid var(--brand); }
.observation-new-fact span { color: var(--brand-dark); font-size: var(--font-xs); font-weight: var(--weight-semibold); }
.observation-new-fact p { margin: 5px 0 0; color: var(--text); font-size: var(--font-base); line-height: 1.65; }
.observation-event-size { margin-top: 14px; color: var(--text-muted); font-size: var(--font-xs); }
.observation-event-size strong { color: var(--text-secondary); }
.observation-event-size.pending { color: var(--watch); }
.observation-technical-details { margin-top: 14px; border-top: 1px solid var(--line); }
.observation-technical-details > summary { display: flex; align-items: center; min-height: 40px; color: var(--text-muted); font-size: var(--font-xs); list-style: none; cursor: pointer; }
.observation-technical-details > summary::-webkit-details-marker { display: none; }
.observation-technical-details > summary i { width: 6px; height: 6px; margin-left: auto; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.observation-technical-details[open] > summary i { transform: rotate(225deg); }
.observation-technical-details .observation-fields { margin-top: 0; }
.observation-fields dt, .observation-fields dd { font-size: var(--font-xs); }
.inline-locate { min-height: 34px; margin-top: 12px; padding: 0 11px; font-size: var(--font-xs); font-weight: var(--weight-semibold); }

/* Source document drawer: compact evidence review, secondary to the event workspace. */
.detail-drawer[data-mode="article"] { grid-template-rows: 72px 42px minmax(0,1fr); width: min(580px,calc(100vw - 24px)); box-shadow: -16px 0 36px rgba(16,32,42,.15); }
.detail-drawer[data-mode="article"] > header { gap: 10px; padding: 0 18px; }
.detail-drawer[data-mode="article"] > header > div > span { font-size: var(--font-xs); font-weight: var(--weight-medium); }
.detail-drawer[data-mode="article"] > header h2 { margin-top: 3px; font-size: 16px; line-height: 1.3; }
.detail-drawer[data-mode="article"] > header .drawer-close { width: 30px; height: 30px; border-radius: 6px; font-size: 18px; }
.detail-drawer[data-mode="article"] .drawer-tabs { gap: 24px; min-height: 42px; padding: 0 18px; }
.detail-drawer[data-mode="article"] .drawer-content { padding: 16px 18px 26px; }
.detail-drawer[data-mode="article"] .drawer-section-title { margin-bottom: 8px; }
.full-article > header { padding-bottom: 12px; }
.full-article > header h3 { margin: 6px 0 8px; font-size: 17px; line-height: 1.42; }
.detail-drawer[data-mode="article"] .full-article > header > span,
.detail-drawer[data-mode="article"] .full-article > header > div { font-size: var(--font-sm); }
.article-quality { display: grid; grid-template-columns: 20px auto minmax(0,1fr); align-items: center; gap: 7px 9px; min-height: 52px; margin-top: 12px; padding: 9px 11px; border: 1px solid #e4e8e6; border-left-width: 1px; border-radius: 6px; background: #f8faf9; }
.article-quality > i { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; color: #6f7d84; background: #eef1f1; font-size: 12px; line-height: 1; font-style: normal; font-weight: var(--weight-bold); }
.article-quality > div { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.article-quality span { color: #6d7d84; font-size: var(--font-xs); }
.article-quality strong { margin-left: 0; color: #3f535d; font-size: 12px; }
.article-quality p { margin: 0; color: #63727a; font-size: var(--font-xs); line-height: 1.5; }
.article-quality.review { border-color: #eadfc9; background: #fffaf2; }
.article-quality.review > i { color: #8d5f18; background: #f7e8c8; }
.article-quality.review strong { color: #8b5c12; }
.article-quality.risk { border-color: #ecdadd; background: #fff8f8; }
.article-quality.risk > i { color: var(--danger); background: #f7e5e8; }
.article-quality.normal { border-color: #dce9e5; background: #f7faf9; }
.article-quality.normal > i { color: var(--brand-dark); background: #e8f2ef; }
.detail-drawer[data-mode="article"] .article-quality span,
.detail-drawer[data-mode="article"] .article-quality strong,
.detail-drawer[data-mode="article"] .article-quality p { font-size: var(--font-sm); }
.article-legend { gap: 7px 14px; margin-top: 12px; }
.detail-drawer[data-mode="article"] .article-legend { font-size: var(--font-sm); }
.article-legend i { width: 10px; height: 10px; }
.article-body { margin-top: 9px; padding-top: 12px; color: #526575; font-size: 15px; line-height: 1.75; }
body .detail-drawer[data-mode="article"] .article-body { font-size: 15px; line-height: 1.75; }
.article-observations { gap: 11px; }
.observation-detail-card { padding: 14px; border-color: #e3e9e7; border-radius: 7px; }
.observation-detail-card > header { align-items: center; }
.observation-detail-card > header > b.observation-route-state { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 12px; font-size: var(--font-xs); font-weight: var(--weight-semibold); white-space: nowrap; }
.observation-route-state.resolved { color: var(--brand-dark); background: var(--brand-soft); }
.observation-route-state.pending { color: #8d5d13; background: #fbf1df; }
.observation-route-state.neutral { color: #65747c; background: #eef2f2; }
.recognition-summary { margin-top: 11px; }
.news-event-chain { grid-template-columns: max-content minmax(26px,1fr) max-content minmax(26px,1fr) max-content; align-items: center; gap: 10px; min-height: 48px; margin-top: 12px; padding: 12px 16px; border: 0; border-radius: 7px; background: #f6f9f8; }
.news-event-chain strong { overflow: hidden; color: #40565f; font-size: 13px; line-height: 1.35; font-weight: var(--weight-semibold); text-align: center; white-space: nowrap; }
.news-event-chain strong.pending { color: #8d641f; }
.news-event-chain > i { align-self: center; justify-self: center; width: auto; height: auto; color: #829890; background: transparent; font-size: 20px; font-style: normal; font-weight: 400; line-height: 1; }
.news-event-chain > i::after { content: none; }
.observation-new-fact { margin-top: 12px; padding: 11px 12px; border-left: 0; border-radius: 6px; background: #f3f8f6; }
.observation-new-fact span { color: #456a61; font-size: 12px; }
.observation-new-fact p { margin-top: 4px; color: #314852; font-size: 14px; line-height: 1.62; }
.observation-event-size { margin-top: 11px; line-height: 1.55; }
.observation-event-size.pending { color: #8d641f; }
.observation-technical-details { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e3e9e7; }
.observation-technical-details .observation-fields { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 18px; margin: 0; border-top: 0; }
.observation-technical-details .observation-fields > div { padding: 0; border: 0; }
.observation-technical-details .observation-fields > div.wide { padding-top: 2px; }
.observation-technical-details .observation-fields dt { color: #829099; }
.observation-technical-details .observation-fields dd { margin-top: 3px; color: #425965; }
.observation-technical-details .evidence-sentences { margin-top: 6px; }
.observation-technical-details .evidence-sentence { padding: 8px 10px; border-color: #e3e9e7; background: #f8faf9; }
.inline-locate { min-height: 32px; margin-top: 9px; }

.library-row { border-bottom-color: #e8eeec; }
.archive-dossier { gap: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.archive-overview-grid { gap: 20px; padding-bottom: 20px; }
.archive-main-card, .archive-facts { border: 0; border-radius: 0; }
.archive-main-card { padding: 0; }
.archive-contract, .archive-section, .archive-ledger, .archive-impact { padding: 20px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.archive-two-column { gap: 24px; border-top: 1px solid var(--line); }
.archive-two-column .archive-ledger, .archive-two-column .archive-impact { border-top: 0; }
.archive-main-card h2 { font-size: var(--font-section); font-weight: var(--weight-semibold); }
.archive-section header h2 { font-size: var(--font-body-lg); }
.archive-timeline > article > div:last-child { border-color: #e8edef; box-shadow: none; }
.archive-stack { gap: 0; padding: 0 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }

/* Responsive */
@media (min-width: 981px) {
  /* Desktop navigation stays in the rail. Each primary surface owns its title
     and first-row controls, so the legacy workspace header has no visual row. */
  .business-workspace .main-shell,
  .replay-workspace .main-shell { grid-template-rows: 0 minmax(0,1fr); }
  .business-workspace .topbar,
  .replay-workspace .topbar { visibility: hidden; min-height: 0; overflow: hidden; border: 0; }
  body.business-workspace.route-library .library-page { top: 0; }
  .business-workspace .decision-panel,
  .replay-workspace .decision-panel { top: 10px; }
}
@media (max-width: 1399px) {
  .business-workspace .workbench, .replay-workspace .workbench { grid-template-columns: 318px minmax(0,1fr); }
  .memory-panel { border-right: 0; }
  .decision-panel { position: fixed; z-index: 110; top: calc(var(--topbar-height) + 10px); right: 10px; bottom: 10px; width: min(410px, calc(100vw - 20px)); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: -18px 0 40px rgba(16,32,42,.18); transform: translateX(calc(100% + 22px)); transition: transform .2s ease; }
  .decision-open .decision-panel { transform: translateX(0); }.panel-close { display: block; }.replay-workspace .decision-toggle { position: fixed; z-index: 80; right: 16px; bottom: 70px; display: block; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--brand-dark); background: rgba(255,255,255,.98); font-size: var(--font-xs); font-weight: var(--weight-semibold); cursor: pointer; box-shadow: 0 8px 22px rgba(16,32,42,.12); }
  .topbar { gap: 15px; }.page-heading { min-width: 0; }.run-context span { display: none; }.clock { display: none; }
  .event-hero { padding-left: 22px; padding-right: 22px; }.timeline { padding-left: 22px; padding-right: 22px; }.subsection-head { padding-left: 22px; padding-right: 22px; }
  .decision-card, .decision-details > summary, .decision-details-body { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 1219px) {
  .business-workspace .workbench, .replay-workspace .workbench { grid-template-columns: 300px minmax(0,1fr); }
  .decision-panel { position: fixed; z-index: 110; top: calc(var(--topbar-height) + 10px); right: 10px; bottom: 10px; width: min(390px, calc(100vw - 20px)); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: -18px 0 40px rgba(16,32,42,.18); transform: translateX(calc(100% + 22px)); transition: transform .2s ease; }
  .decision-open .decision-panel { transform: translateX(0); }.panel-close { display: block; }.replay-workspace .decision-toggle { position: fixed; z-index: 80; right: 16px; bottom: 70px; display: block; padding: 10px 13px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--brand-dark); background: rgba(255,255,255,.98); font-size: var(--font-xs); font-weight: var(--weight-semibold); cursor: pointer; box-shadow: 0 8px 22px rgba(16,32,42,.12); }
  .arrival-strip { grid-template-columns: 1fr; }.arrival-progress { display: none; }
  .route-toolbar { grid-template-columns: minmax(270px,330px) minmax(320px,1fr); }.library-filter-fields { grid-template-columns: minmax(200px,1.1fr) minmax(150px,.48fr) minmax(160px,.8fr) minmax(160px,.8fr) minmax(140px,auto); gap: 8px; }.library-filter-feedback { gap: 7px; padding-left: 7px; }.instance-head, .instance-card { grid-template-columns: minmax(280px,1fr) minmax(300px,1fr) 180px 120px; }.contract-head, .contract-card { grid-template-columns: minmax(230px,.7fr) minmax(300px,1.1fr) minmax(350px,1.35fr) 92px; column-gap: 16px; }
}
@media (max-width: 980px) {
  :root { --rail-width: 0px; --topbar-height: 62px; }.app-shell { grid-template-columns: minmax(0,1fr); }.main-shell { grid-column: 1; }.rail { display: none; }.topbar { padding: 0 14px; }.page-heading { min-width: 0; }.eyebrow, .brand-divider, .run-context, .topbar-actions .guide-button { display: none; }.workspace-switch { margin-left: auto; }.dashboard { padding: 8px; }
  .mobile-tabs { display: grid; grid-template-columns: repeat(3,1fr); min-height: 38px; margin-bottom: 7px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }.mobile-tabs button { color: var(--text-muted); background: transparent; font-size: var(--font-xs); }.mobile-tabs button.active { color: var(--brand-dark); background: var(--brand-soft); font-weight: 600; }
  .business-workspace .dashboard { grid-template-rows: 38px minmax(0,1fr); gap: 7px; }.workbench { display: block; }.workbench > .panel { width: 100%; height: 100%; border-right: 0; }.workbench[data-mobile-active="feed"] .memory-panel, .workbench[data-mobile-active="feed"] .decision-panel, .workbench[data-mobile-active="memory"] .stream-panel, .workbench[data-mobile-active="memory"] .decision-panel, .workbench[data-mobile-active="decision"] .stream-panel, .workbench[data-mobile-active="decision"] .memory-panel { display: none; }.decision-panel { position: static; display: grid; width: auto; border: 0; border-radius: 0; box-shadow: none; transform: none; }.decision-toggle { display: none; }
  .replay-workspace .dashboard { grid-template-rows: 56px 48px 38px minmax(0,1fr); }.stats-strip { grid-template-columns: repeat(3,1fr); }.stats-strip > div:nth-child(3) { border-right: 0; }.stats-strip > div:nth-child(n+4) { display: none; }
  .route-page { grid-template-rows: 76px auto minmax(0,1fr); }.library-page { grid-template-rows: auto minmax(0,1fr); }.archive-page { grid-template-rows: 76px 54px minmax(0,1fr); }
  .route-header { padding: 0 14px; }.route-toolbar { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 7px; height: auto; padding: 8px 14px; }.route-toolbar .route-tabs { grid-column: 1; grid-row: 1; min-height: 36px; }.route-scope { grid-column: 2; grid-row: 1; }.route-toolbar > input { grid-column: 1 / 3; grid-row: 2; }.library-compact-toolbar { align-items: flex-start; padding: 8px 14px; }.library-filter-fields { grid-template-columns: minmax(0,1fr) 210px; }.library-search-filter { grid-column: 1; }.library-filter-fields > .route-scope { grid-column: 2; }.library-filter-feedback { grid-column: 1 / 3; min-height: 30px; border-left: 0; }.library-action-filters { grid-column: 1 / 3; flex-wrap: wrap; }.library-action-filters > span { flex-basis: 100%; }.route-content { padding: 14px; }.route-content.library-content-paginated { grid-template-rows: minmax(0,1fr) 50px; padding-bottom: 14px; }.library-list-head { display: none; }.library-row { grid-template-columns: 1fr; gap: 9px; }.library-row-end { grid-template-columns: 1fr auto; }.library-rule-action { grid-template-columns: auto auto; justify-content: start; }.archive-overview-grid, .archive-two-column { grid-template-columns: 1fr; }.archive-facts { grid-template-columns: repeat(4,1fr); }.archive-facts > div { min-height: 62px; border-bottom: 0; }.archive-facts > div:nth-child(2) { border-right: 1px solid var(--line); }.archive-facts > div:last-child { border-right: 0; }
}
@media (max-width: 640px) {
  .workspace-switch { gap: 12px; }.workspace-switch button { font-size: var(--font-xs); }.topbar-actions { display: none; }.panel-actions select { width: 150px; }.memory-header .panel-actions { flex: 0 1 43%; min-width: 0; }.memory-header .panel-actions .icon-button { display: none; }.memory-header .panel-actions select { width: 100%; min-width: 0; }.event-hero { padding: 18px 15px; }.event-hero > h2 { font-size: 21px; }.identity-fields { grid-template-columns: 1fr; }.subsection-head { padding: 16px 15px 9px; }.timeline { padding: 0 15px 20px; }.node-evidence-preview { margin-left: 18px; }.decision-card { padding: 18px 15px; }.route-header-meta { display: none; }.route-header { grid-template-columns: auto minmax(0,1fr); gap: 9px; }.route-back { min-width: 96px; padding: 0 9px; }.library-compact-toolbar { flex-direction: column; }.library-compact-toolbar .route-back { width: 100%; }.library-filter-fields { grid-template-columns: 1fr; width: 100%; }.library-search-filter,.library-filter-fields > .route-scope,.library-select-filter,.library-filter-feedback { grid-column: 1; }.library-filter-feedback { justify-content: space-between; }.archive-tabs { padding: 0 14px; overflow-x: auto; }.archive-tabs button { flex: 0 0 auto; }.archive-facts { grid-template-columns: repeat(2,1fr); }.archive-facts > div:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }.archive-facts > div:nth-child(3) { border-right: 1px solid var(--line); }.archive-articles > article { grid-template-columns: 1fr; }.archive-articles footer { justify-items: start; }.guide-dialog { padding: 22px 18px; }.guide-dialog footer { align-items: flex-start; flex-direction: column; }
  .news-event-chain { grid-template-columns: max-content minmax(18px,1fr) max-content minmax(18px,1fr) max-content; gap: 6px; padding-inline: 10px; }
  .news-event-chain > i { display: block; font-size: 18px; }
  .event-empty.pending-selection { padding: 22px 18px; }
  .pending-state-card footer { grid-template-columns: 1fr; }
  .event-empty.article-result-state { padding: 20px 16px 28px; }
  .article-result-status { align-items: flex-start; flex-direction: column; gap: 7px; }
  .article-result-card > h2 { font-size: 20px; }
  .article-result-document > header { align-items: flex-start; flex-direction: column; gap: 4px; }
  .article-result-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .article-result-metrics > div { border-bottom: 1px solid var(--line); }
  .article-result-metrics > div:nth-child(2) { border-right: 0; }
  .article-result-metrics > div:nth-child(n+3) { border-bottom: 0; }
  .article-result-path { grid-template-columns: 1fr; }
  .article-result-path > div { min-height: 64px; }
  .article-result-destination { grid-template-columns: 1fr; }
  .article-result-destination > span { grid-row: auto; }
}
@media (max-height: 790px) and (min-width: 981px) {
  .panel-header { min-height: 66px; padding-top: 10px; padding-bottom: 10px; }.memory-panel, .decision-panel { grid-template-rows: 66px minmax(0,1fr); }.event-hero { padding-top: 17px; padding-bottom: 16px; }.event-hero > h2 { font-size: 21px; }.event-story { margin-top: 14px; gap: 12px; }.delta-story { padding-top: 11px; padding-bottom: 11px; }.subsection-head { padding-top: 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; } }

/* Event-first product surface */
.business-workspace .dashboard { padding: 0; background: #f4f7f6; }
.business-workspace .guide-button { display: none; }
.business-center { min-width: 0; min-height: 0; height: 100%; overflow: hidden; }
.center-loading { display: grid; place-content: center; height: 100%; text-align: center; }
.center-loading span, .section-titlebar > div > span { color: var(--brand); font-size: var(--font-xs); font-weight: var(--weight-semibold); letter-spacing: .13em; }
.center-loading h2 { margin: 8px 0; font-size: 24px; }
.center-shell { display: grid; grid-template-rows: auto auto minmax(0,1fr); width: 100%; height: 100%; min-height: 0; overflow: hidden; }
.center-hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 20px; min-height: 52px; padding: 5px 28px; border-bottom: 1px solid var(--line); background: linear-gradient(118deg,#fff 0%,#fbfdfc 68%,#eff8f5 100%); }
.center-heading { min-width: 0; }.center-heading h2, .section-titlebar h2 { margin: 0; font-size: 21px; line-height: 1.25; letter-spacing: 0; }.center-heading p, .section-titlebar p { margin: 5px 0 0; color: var(--text-muted); font-size: var(--font-xs); line-height: 1.45; }.center-heading p { white-space: nowrap; }
.center-hero-range { display: flex; align-items: center; gap: 6px; min-width: 0; }
.center-hero-range .update-presets { flex: 1 1 auto; min-width: 0; }
.center-hero-range .update-presets button { flex: 1 1 0; min-width: 0; padding-right: 6px; padding-left: 6px; }
.center-view-group { display: block; justify-self: stretch; width: 100%; min-width: 0; }
.center-view-tabs { display: flex; align-items: center; justify-content: flex-end; gap: 3px; min-width: 0; padding: 3px; border: 1px solid #d9e4e1; border-radius: 9px; background: rgba(241,246,244,.92); }
.center-view-tabs button { display: flex; flex: 1 1 0; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 34px; padding: 0 9px; border-radius: 6px; color: var(--text-muted); background: transparent; font-size: var(--font-xs); cursor: pointer; white-space: nowrap; }
.center-view-tabs button b { color: inherit; font-size: var(--font-sm); }.center-view-tabs button:hover { color: var(--text-secondary); background: rgba(255,255,255,.75); }.center-view-tabs button.active { color: var(--brand-dark); background: #fff; font-weight: var(--weight-semibold); box-shadow: 0 1px 5px rgba(24,50,45,.09); }
.center-controls { position: relative; z-index: 5; display: block; padding: 7px 28px; border-bottom: 1px solid var(--line); background: #fff; }
.center-primary-controls { display: grid; grid-template-columns: minmax(260px,.42fr) minmax(0,1.75fr) auto; align-items: center; gap: 12px; min-width: 0; }
.center-search { position: relative; min-width: 0; }
.center-search > i { position: absolute; left: 13px; top: 50%; width: 13px; height: 13px; border: 1.5px solid #769087; border-radius: 50%; transform: translateY(-58%); pointer-events: none; }
.center-search > i::after { content: ""; position: absolute; right: -5px; bottom: -3px; width: 6px; height: 1.5px; background: #769087; transform: rotate(45deg); }
.center-search input { width: 100%; height: 36px; padding: 0 12px 0 39px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fbfcfc; font-size: var(--font-sm); }
.center-search input:focus { border-color: rgba(8,127,112,.5); background: #fff; box-shadow: 0 0 0 3px rgba(8,127,112,.07); outline: 0; }
.center-filter-panel { min-width: 0; }.center-filter-toggle { display: none; }
.center-facets { display: flex; align-items: center; gap: 8px; min-width: 0; }
.center-facets .segmented { display: flex; flex: 1 1 184px; height: 36px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-subtle); }
.center-facets .segmented button { flex: 1; border-radius: 5px; color: var(--text-muted); background: transparent; font-size: var(--font-xs); cursor: pointer; }
.center-facets .segmented button.active { color: var(--brand-dark); background: #fff; font-weight: var(--weight-semibold); box-shadow: 0 1px 3px rgba(24,50,45,.08); }
.center-facets label { display: grid; flex: 1 1 210px; grid-template-columns: auto minmax(95px,1fr); align-items: center; gap: 7px; height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }.center-facets label.center-impact-filter { flex: .85 1 185px; grid-template-columns: auto minmax(108px,1fr); }
.center-facets label > span { color: var(--text-muted); font-size: var(--font-xs); white-space: nowrap; }.center-facets select { min-width: 0; border: 0; background: transparent; font-size: var(--font-xs); outline: 0; }
.clear-center-filters { flex: none; min-height: 34px; margin-left: auto; padding: 0 7px; color: var(--brand-dark); background: transparent; font-size: var(--font-xs); cursor: pointer; }
.update-workspace { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: #f8faf9; }
.update-range-label { display: inline-flex; flex: none; align-items: center; gap: 6px; padding: 0 11px 0 3px; border-right: 1px solid var(--line); color: var(--text-secondary); font-size: var(--font-xs); font-weight: var(--weight-semibold); white-space: nowrap; }
.date-field > span { color: var(--text-muted); font-size: var(--font-xs); white-space: nowrap; }
.update-presets { display: flex; gap: 2px; padding: 3px; border-radius: 7px; background: #eef3f2; }.update-presets button { min-height: 30px; padding: 0 10px; border-radius: 5px; color: var(--text-muted); background: transparent; font-size: var(--font-xs); cursor: pointer; white-space: nowrap; }
.update-presets button.active { color: var(--brand-dark); background: #fff; font-weight: var(--weight-semibold); box-shadow: 0 1px 3px rgba(24,50,45,.09); }
.center-date-filter { position: relative; flex: none; }.center-date-filter > summary { display: flex; align-items: center; gap: 7px; min-height: 28px; max-width: 210px; padding: 0 8px; overflow: hidden; border-radius: 5px; color: var(--text-muted); background: transparent; font-size: var(--font-xs); text-overflow: ellipsis; white-space: nowrap; list-style: none; cursor: pointer; }.center-date-filter > summary::-webkit-details-marker { display: none; }.center-date-filter > summary i { width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); }.center-date-filter.active > summary,.center-date-filter[open] > summary { color: var(--brand-dark); background: var(--brand-soft); }.center-date-filter[open] > summary i { transform: rotate(225deg) translate(-1px,-1px); }
.center-date-menu { position: absolute; z-index: 40; top: calc(100% + 7px); right: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 310px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; box-shadow: 0 12px 28px rgba(16,32,42,.13); }.center-date-menu .date-field { display: grid; gap: 5px; }.date-field input { width: 100%; height: 31px; padding: 0 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--text-secondary); background: #fff; font-size: var(--font-xs); }
.date-apply-button { display: inline-flex; height: 31px; align-items: center; justify-content: center; padding: 0 17px; border: 1px solid #94c0b6; border-radius: 6px; color: #087568; background: #eef8f5; font-size: 12px; font-weight: var(--weight-semibold); cursor: pointer; }
.date-apply-button:hover { border-color: #67a99a; background: #e5f4ef; }
.center-date-menu .center-date-apply { grid-column: 1 / -1; justify-self: end; }
.update-range-summary { display: flex; align-items: baseline; gap: 5px; padding: 0 5px 0 12px; border-left: 1px solid var(--line); color: var(--text-muted); font-size: var(--font-xs); white-space: nowrap; }.update-range-summary strong { color: var(--text); font-size: var(--font-sm); font-variant-numeric: tabular-nums; }.update-range-summary i { width: 1px; height: 14px; margin: 0 5px; background: var(--line); }
.center-results { display: grid; grid-template-rows: 40px minmax(0,1fr) 46px; min-height: 0; padding: var(--surface-content-gap) 28px 14px; background: #f4f7f6; }
.center-column-head, .center-event-row { display: grid; grid-template-columns: minmax(240px,1.03fr) minmax(300px,1.28fr) minmax(190px,.75fr) minmax(200px,.7fr); width: 100%; min-width: 0; column-gap: 22px; box-sizing: border-box; }
.center-column-head { align-items: center; padding: 0 17px; border: 1px solid var(--line); border-radius: 9px 9px 0 0; color: #566c77; background: #edf2f1; font-size: 16px; font-weight: var(--weight-semibold); }
.center-event-list { min-height: 0; overflow: auto; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 9px 9px; background: #fff; scrollbar-width: thin; }
.center-results > .center-event-list { border-radius: 0; }
.center-results > .list-pagination { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 9px 9px; }
.center-event-row { position: relative; width: 100%; min-height: 100px; padding: 12px 17px; border-bottom: 1px solid #e8eeec; text-align: left; background: #fff; cursor: pointer; transition: background .14s,box-shadow .14s; }
.center-event-row:last-child { border-bottom: 0; }.center-event-row:hover { z-index: 1; background: #f8fbfa; box-shadow: inset 3px 0 0 var(--brand); }
.center-event-row > div { min-width: 0; }.event-meta-line { display: flex; align-items: center; gap: 6px; overflow: hidden; color: var(--text-muted); font-size: 13px; white-space: nowrap; }.event-meta-line i { width: 3px; height: 3px; border-radius: 50%; background: #b8c4c0; }
.scope-dot { padding: 3px 6px; border-radius: 4px; color: var(--info); background: var(--info-soft); font-weight: var(--weight-semibold); }.scope-dot.industry { color: var(--watch); background: var(--watch-soft); }
.center-event-identity h3 { display: -webkit-box; margin: 9px 0 0; overflow: hidden; font-size: 17px; line-height: 1.42; font-weight: var(--weight-semibold); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.center-event-progress { display: grid; align-content: start; gap: 5px; padding-right: 16px; }.cell-label { color: var(--brand); font-size: 14px; font-weight: var(--weight-semibold); }.center-event-progress p { display: -webkit-box; margin: 0; overflow: hidden; color: #405560; font-size: 15px; line-height: 1.58; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }.center-event-progress small { display: flex; align-items: center; min-width: 0; color: #71838e; font-size: 13px; }.center-event-progress small > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.center-event-assessment { display: grid; align-content: center; justify-items: start; gap: 9px; }.attention-label { display: inline-flex; align-items: center; min-height: 28px; padding: 0 9px; border-radius: 7px; color: var(--text-secondary); background: var(--surface-strong); font-size: 14px; line-height: 1; font-weight: var(--weight-semibold); }.attention-label.push { color: var(--attention); background: var(--attention-soft); }.attention-label.watch { color: var(--tracking); background: var(--tracking-soft); }.attention-label.archive { color: #5f6f78; background: #eef2f3; }.attention-label.pending { color: #6f7780; background: #f0f2f4; }
.center-impact-line { display: flex; align-items: center; gap: 14px; min-width: 0; }.center-impact-direction,.center-impact-magnitude { display: inline-flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }.center-impact-direction { font-size: 16px; font-weight: var(--weight-medium); }.center-impact-direction i { font-size: 18px; line-height: 1; font-style: normal; }.center-impact-direction.positive { color: var(--positive); }.center-impact-direction.negative { color: var(--negative); }.center-impact-direction.mixed { color: #416b8c; }.center-impact-direction.neutral,.center-impact-direction.uncertain { color: #667782; }.center-impact-direction b,.center-impact-magnitude b { font-weight: var(--weight-semibold); }.center-impact-magnitude { color: #425968; font-size: 16px; }.center-impact-magnitude small { color: #657985; font-size: 14px; font-weight: var(--weight-medium); }.magnitude-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }.magnitude-bars i { width: 7px; height: 12px; border-radius: 2px; background: #dce4e7; }.magnitude-bars i.active { background: #4f6f82; }.center-impact-magnitude.pending b { color: #71838e; font-size: 14px; }
.center-event-scale { display: grid; align-content: center; justify-items: start; gap: 8px; padding-right: 24px; }.verification-state { display: inline-flex; align-items: center; gap: 8px; color: #314955; font-size: 16px; line-height: 1.35; font-weight: var(--weight-semibold); }.verification-state > i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #8b989f; }.verification-state.unverified > i { background: #bd7a13; }.verification-state.confirmed { color: #315f87; }.verification-state.confirmed > i { border-radius: 2px; background: #4d82ad; transform: rotate(45deg); }.verification-state.corroborated { color: #176d5b; }.verification-state.corroborated > i { background: #2b927d; }.verification-state.conflict { color: #8f3f4c; }.verification-state.conflict > i { background: #a94d5b; }.verification-state.clarified { color: #4b6878; }.verification-state.clarified > i { background: #6f8c9b; }.center-event-scale > p { display: -webkit-box; margin: 0; overflow: hidden; color: #586d78; font-size: 14px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }.center-event-scale em { position: absolute; right: 17px; top: 50%; color: #a3b6b0; font-size: 17px; font-style: normal; opacity: .72; transform: translateY(-50%); transition: color .14s,opacity .14s,transform .14s; }.center-event-row:hover .center-event-scale em { color: var(--brand); opacity: 1; transform: translate(2px,-50%); }
.center-list-more { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 42px; padding: 0 17px; border-top: 1px solid var(--line); color: var(--text-secondary); background: #fbfcfc; font-size: var(--font-xs); cursor: pointer; }.center-list-more:hover { color: var(--brand-dark); background: var(--brand-faint); }.center-list-more i { color: var(--brand); font-style: normal; }
.center-empty { display: grid; place-items: center; align-content: center; min-height: 220px; padding: 35px; color: var(--text-muted); text-align: center; }.center-empty i { width: 34px; height: 34px; margin-bottom: 12px; border: 1px solid #b9ccc6; border-radius: 50%; box-shadow: inset 0 0 0 8px #f1f7f5; }.center-empty strong { color: var(--text-secondary); }.center-empty p { margin: 7px 0 0; font-size: var(--font-xs); }

/* Visible source documents */
.source-shell { padding: 0 28px 22px; }
.source-shell { grid-template-rows: auto auto auto minmax(0,1fr); }
.section-titlebar { display: flex; align-items: center; justify-content: space-between; min-height: 98px; margin: 0 -28px; padding: 18px 28px; border-bottom: 1px solid var(--line); background: linear-gradient(118deg,#fff,#f4faf8); }
.section-titlebar > strong { display: grid; justify-items: end; color: var(--brand-dark); font-size: 25px; }.section-titlebar > strong small { margin-top: 3px; color: var(--text-muted); font-size: var(--font-xs); font-weight: var(--weight-regular); }
.source-filter-groups { display: flex; align-items: center; gap: 18px; min-width: 0; padding: 0 0 12px; }
.source-filter-row { display: flex; align-items: center; gap: 8px; min-width: 0; }.source-filter-row > span { flex: none; color: var(--text-muted); font-size: var(--font-xs); font-weight: var(--weight-semibold); white-space: nowrap; }.source-filter-row.secondary { flex: 1; padding-left: 18px; border-left: 1px solid var(--line); }.source-filter-row > small { margin-left: auto; color: var(--text-muted); font-size: var(--font-xs); line-height: 1.45; text-align: right; }
.source-status-tabs { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; }.source-status-tabs button { display: inline-flex; flex: none; align-items: center; gap: 7px; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--text-muted); background: #fff; font-size: var(--font-xs); cursor: pointer; }.source-status-tabs button b { color: inherit; font-size: inherit; }.source-status-tabs button.active { border-color: #9bc8bd; color: var(--brand-dark); background: var(--brand-faint); font-weight: var(--weight-semibold); }
.source-list { display: grid; grid-template-rows: 38px minmax(0,1fr) 50px; min-height: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }.source-list > header, .source-scroll > button { display: grid; grid-template-columns: minmax(420px,1fr) 170px 150px 100px; gap: 20px; align-items: center; }.source-list > header { min-height: 38px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--text-muted); background: #edf2f1; font-size: var(--font-xs); }.source-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }.source-scroll > button { width: 100%; min-height: 92px; padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; background: #fff; cursor: pointer; }.source-scroll > button:hover { background: #f8fbfa; }.source-scroll > button > div:first-child { min-width: 0; }.source-scroll > button > div:first-child span { color: var(--text-muted); font-size: var(--font-xs); }.source-scroll > button > div:first-child strong { display: block; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.source-scroll > button > div:first-child p { margin: 5px 0 0; overflow: hidden; color: var(--text-muted); font-size: var(--font-xs); text-overflow: ellipsis; white-space: nowrap; }.source-scroll > button > div:nth-child(2) { display: grid; gap: 5px; font-size: var(--font-xs); }.source-scroll > button > div:nth-child(2) span, .source-scroll time { color: var(--text-muted); font-size: var(--font-xs); }.source-scroll em { color: var(--brand); font-size: var(--font-xs); font-style: normal; text-align: right; }

/* Source document list follows the event-center reading scale. */
.source-filter-row > span { font-size: 13px; }
.source-status-tabs button { font-size: 13px; }
.source-list { grid-template-rows: 42px minmax(0,1fr) 50px; }
.source-list > header { min-height: 42px; color: #566c77; font-size: 14px; font-weight: var(--weight-semibold); }
.source-scroll > button { min-height: 98px; padding-top: 14px; padding-bottom: 14px; }
.source-scroll > button > div:first-child span { font-size: 13px; }
.source-scroll > button > div:first-child strong { font-size: 15px; line-height: 1.45; font-weight: var(--weight-semibold); }
.source-scroll > button > div:first-child p { color: #657985; font-size: 13px; line-height: 1.5; }
.source-scroll > button > div:nth-child(2) { gap: 6px; font-size: 14px; }
.source-scroll > button > div:nth-child(2) span,
.source-scroll time { font-size: 13px; }
.source-scroll em { font-size: 13px; font-weight: var(--weight-medium); }

.source-loading { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 100px; color: var(--text-muted); font-size: var(--font-xs); }
.source-loading i { width: 16px; height: 16px; border: 2px solid #d6e2de; border-top-color: var(--brand); border-radius: 50%; animation: source-spin .8s linear infinite; }
.drawer-loading { min-height: 220px; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; }
.drawer-loading > span { width: 22px; height: 22px; border: 2px solid #d6e2de; border-top-color: var(--brand); border-radius: 50%; animation: source-spin .8s linear infinite; }
.drawer-loading > strong { font-size: 15px; color: var(--text); }
.drawer-loading > p { margin: 0; font-size: 13px; color: var(--text-muted); }
.list-pagination { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; min-width: 0; min-height: 50px; padding: 0 12px; border-top: 1px solid var(--line-strong); color: var(--text-muted); background: #f8fbfa; font-size: var(--font-xs); }
.list-pagination > span { white-space: nowrap; }.pagination-pages { display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; }.pagination-pages button { display: grid; place-items: center; min-width: 29px; height: 29px; padding: 0 6px; border: 1px solid transparent; border-radius: 6px; color: var(--text-secondary); background: transparent; font-size: var(--font-xs); cursor: pointer; }.pagination-pages button:hover:not(:disabled) { border-color: var(--line-strong); background: #fff; }.pagination-pages button.active { color: #fff; background: var(--brand); font-weight: var(--weight-semibold); }.pagination-pages button:disabled { cursor: default; opacity: .42; }.pagination-pages button.active:disabled { opacity: 1; }.pagination-ellipsis { display: grid; place-items: center; min-width: 18px; color: var(--text-muted); }.pagination-jump { display: flex; align-items: center; gap: 4px; white-space: nowrap; }.pagination-jump input { width: 45px; height: 29px; padding: 0 5px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: #fff; text-align: center; font: inherit; }.pagination-jump input:focus { border-color: #79b9aa; outline: 2px solid rgba(27,143,122,.12); }
@keyframes source-spin { to { transform: rotate(360deg); } }

/* Independent event detail: compact 70/30 layout. */
.archive-page { background: #f4f7f6; }.archive-page .route-header { min-height: 76px; }.archive-page .archive-tabs { min-height: 52px; padding-left: 28px; background: #fff; }.archive-page .archive-content { padding: 20px 28px 34px; }
.event-detail-layout { display: grid; grid-template-columns: minmax(0,7fr) minmax(300px,3fr); gap: 18px; max-width: 1240px; margin: 0 auto; align-items: start; }.event-detail-layout > main { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }.event-current-block { padding: 27px 29px 25px; }.event-current-block > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }.event-current-block > header span { color: var(--brand); font-size: var(--font-xs); font-weight: var(--weight-semibold); }.event-current-block > header small { color: var(--text-muted); font-size: var(--font-xs); }.event-current-block h2 { margin: 12px 0 0; font-size: 21px; line-height: 1.55; letter-spacing: -.01em; }.event-current-block > p { margin: 13px 0 0; padding: 9px 11px; border-radius: 6px; color: #805b20; background: var(--watch-soft); font-size: var(--font-xs); }
.event-current-block > footer { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; color: var(--text-muted); font-size: var(--font-xs); }
.event-current-block > footer span + span { padding-left: 16px; border-left: 1px solid var(--line); }
.event-current-block.compact { padding: 13px 29px 12px; border-bottom: 1px solid var(--line); background: #fbfcfc; }
.event-current-block.compact h2 { display: -webkit-box; margin-top: 7px; overflow: hidden; font-size: 16px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.event-current-block.compact > footer { margin-top: 6px; }
.selected-progress-block { margin: 0 29px; padding: 17px 18px; border-left: 3px solid var(--brand); border-radius: 0 7px 7px 0; background: #edf7f4; }.selected-progress-block.historical { border-left-color: #c88920; background: #fff9ef; }.selected-progress-block > header { display: flex; justify-content: space-between; }.selected-progress-block > header span { color: var(--brand-dark); font-size: var(--font-xs); font-weight: var(--weight-semibold); }.selected-progress-block.historical > header span { color: var(--watch); }.selected-progress-block > header b { color: var(--text-muted); font-size: var(--font-xs); }.selected-progress-block p { margin: 8px 0 0; line-height: 1.7; }.selected-progress-block footer { display: flex; gap: 14px; margin-top: 10px; color: var(--text-muted); font-size: var(--font-xs); }
.event-key-fields { margin: 22px 29px 0; padding-top: 18px; border-top: 1px solid var(--line); }.event-key-fields > span { color: var(--text-muted); font-size: var(--font-xs); }.event-key-fields > div { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 10px; }.event-key-fields p { display: flex; gap: 6px; margin: 0; padding-right: 14px; border-right: 1px solid var(--line); font-size: var(--font-xs); }.event-key-fields p b { color: var(--text-muted); }.event-key-fields p span { color: var(--text-secondary); }
.overview-timeline, .full-timeline, .evidence-focus, .detail-sources { margin-top: 24px; padding: 23px 29px 29px; border-top: 1px solid var(--line); }.overview-timeline > header, .full-timeline > header, .evidence-focus > header, .detail-sources > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }.overview-timeline > header span, .full-timeline > header span, .evidence-focus > header span, .detail-sources > header span { color: var(--text-muted); font-size: var(--font-xs); }.overview-timeline > header h3, .full-timeline > header h3, .evidence-focus > header h3, .detail-sources > header h3 { margin: 4px 0 0; font-size: 17px; }.overview-timeline > header button { color: var(--brand); background: transparent; font-size: var(--font-xs); cursor: pointer; }.timeline-fold-note { margin: 10px 0 0 42px; color: var(--text-muted); font-size: var(--font-xs); }
.detail-timeline-node { display: grid; grid-template-columns: 31px minmax(0,1fr); gap: 10px; width: 100%; padding: 13px 0; text-align: left; background: transparent; cursor: pointer; }.detail-timeline-marker { position: relative; display: grid; justify-items: center; color: var(--text-muted); font-size: var(--font-xs); }.detail-timeline-marker::after { content: ""; position: absolute; top: 18px; bottom: -15px; width: 1px; background: var(--line); }.detail-timeline-node:last-child .detail-timeline-marker::after { display: none; }.detail-timeline-marker i { z-index: 1; width: 10px; height: 10px; margin-top: 3px; border: 2px solid #fff; border-radius: 50%; background: #a7bbb5; box-shadow: 0 0 0 1px #a7bbb5; }.detail-timeline-node.active .detail-timeline-marker i { background: var(--brand); box-shadow: 0 0 0 1px var(--brand); }.detail-timeline-marker b { margin-top: 7px; font-weight: var(--weight-medium); }.detail-timeline-body { display: grid; gap: 7px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }.detail-timeline-node.active .detail-timeline-body { border-color: #9fcfc4; background: #f1f8f6; }.detail-timeline-body > span:first-child { display: flex; align-items: center; gap: 7px; }.detail-timeline-body > span:first-child b { color: var(--brand-dark); font-size: var(--font-xs); }.detail-timeline-body em { padding: 2px 5px; border-radius: 4px; color: var(--info); background: var(--info-soft); font-size: var(--font-xs); font-style: normal; }.detail-timeline-body > span:first-child small { margin-left: auto; color: var(--text-muted); font-size: var(--font-xs); }.detail-timeline-body > strong { font-size: var(--font-sm); line-height: 1.55; }.detail-timeline-body > small, .detail-timeline-body > i { color: var(--text-muted); font-size: var(--font-xs); font-style: normal; }
.full-timeline { margin-top: 0; }.full-timeline > header { padding-bottom: 18px; }.full-timeline > header p { max-width: 470px; margin: 0; color: var(--text-muted); font-size: var(--font-xs); line-height: 1.5; text-align: right; }.timeline-group { padding-top: 15px; border-top: 1px solid var(--line); }.timeline-group + .timeline-group { margin-top: 12px; }.timeline-group > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }.timeline-group > header span { color: var(--text-secondary); font-size: var(--font-xs); font-weight: var(--weight-semibold); }.timeline-group > header b { color: var(--watch); font-size: var(--font-xs); font-weight: var(--weight-medium); }.timeline-group.undated { margin-top: 22px; padding: 15px 16px; border: 0; border-left: 3px solid #d3a24c; border-radius: 0 8px 8px 0; background: #fffbf4; }
.event-assessment-panel { position: sticky; top: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }.event-assessment-panel > header { padding: 16px 18px 13px; border-bottom: 1px solid var(--line); }.event-assessment-panel > header span { display: block; color: var(--brand); font-size: var(--font-xs); font-weight: var(--weight-semibold); }.event-assessment-panel > header small { display: block; margin-top: 4px; color: var(--text-muted); font-size: var(--font-xs); }.assessment-action { padding: 18px; border-left: 3px solid #9aaca6; background: #f8faf9; }.assessment-action.push { border-left-color: var(--brand); background: #edf7f4; }.assessment-action.watch { border-left-color: #bf8220; background: #fff9ef; }.assessment-action > span, .assessment-impact header span, .assessment-evidence header span, .assessment-subject > span { color: var(--text-muted); font-size: var(--font-xs); }.assessment-action strong { display: block; margin-top: 5px; color: var(--text); font-size: 22px; }.assessment-action p { margin: 9px 0 0; color: var(--text-secondary); font-size: var(--font-xs); line-height: 1.65; }
.assessment-impact, .assessment-evidence, .assessment-subject { padding: 17px 18px; border-top: 1px solid var(--line); }.assessment-impact header, .assessment-evidence header { display: flex; justify-content: space-between; gap: 8px; }.assessment-impact header strong, .assessment-evidence header strong { font-size: var(--font-sm); text-align: right; }.assessment-impact > div { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 13px; }.assessment-impact > div span { display: grid; gap: 4px; padding: 0 8px; border-right: 1px solid var(--line); color: var(--text-muted); font-size: var(--font-xs); }.assessment-impact > div span:first-child { padding-left: 0; }.assessment-impact > div span:last-child { border-right: 0; }.assessment-impact > div b { color: var(--text-secondary); font-size: var(--font-sm); }
.assessment-evidence > div, .evidence-funnel { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; padding: 11px; border-radius: 6px; background: var(--surface-subtle); }.assessment-evidence > div span, .evidence-funnel span { display: grid; gap: 3px; color: var(--text-muted); font-size: var(--font-xs); text-align: center; }.assessment-evidence > div b, .evidence-funnel b { color: var(--text); font-size: 17px; }.assessment-evidence > div i, .evidence-funnel i { color: #b3c1bc; font-style: normal; }.assessment-evidence p, .assessment-subject p { margin: 10px 0 0; color: var(--text-muted); font-size: var(--font-xs); line-height: 1.6; }.assessment-subject strong { display: block; margin-top: 5px; }
.evidence-focus { margin-top: 0; }.evidence-focus > header h3 { max-width: 620px; line-height: 1.5; }.evidence-focus > header > strong { flex: none; color: var(--brand-dark); font-size: var(--font-sm); }.evidence-funnel { max-width: 540px; margin-top: 18px; }.evidence-funnel span { min-width: 110px; }.evidence-quotes { display: grid; gap: 9px; margin-top: 18px; }.evidence-quotes article { padding: 13px 15px; border-left: 2px solid #a9cfc5; background: #f7faf9; }.evidence-quotes span { color: var(--brand); font-size: var(--font-xs); }.evidence-quotes p { margin: 6px 0; color: var(--text-secondary); line-height: 1.65; }.evidence-quotes small { color: var(--text-muted); font-size: var(--font-xs); }.detail-sources { margin-top: 0; }.detail-sources > div { margin-top: 14px; }.detail-sources > div > button { display: grid; width: 100%; gap: 6px; padding: 14px 0; border-top: 1px solid var(--line); text-align: left; background: #fff; cursor: pointer; }.detail-sources > div > button span { color: var(--text-muted); font-size: var(--font-xs); }.detail-sources > div > button strong { font-size: var(--font-sm); }.detail-sources > div > button p { margin: 0; overflow: hidden; color: var(--text-muted); font-size: var(--font-xs); text-overflow: ellipsis; white-space: nowrap; }.detail-sources > div > button em { color: var(--brand); font-size: var(--font-xs); font-style: normal; }

.assessment-action.push { border-left-color: var(--attention); background: var(--attention-soft); }
.assessment-action.watch { border-left-color: var(--tracking); background: var(--tracking-soft); }
.evidence-metrics, .assessment-evidence > .evidence-metrics { display: grid; grid-template-columns: repeat(3,1fr); align-items: stretch; justify-content: initial; margin-top: 13px; padding: 11px; border-radius: 6px; background: var(--surface-subtle); }
.evidence-metrics span, .assessment-evidence > .evidence-metrics span { display: grid; gap: 3px; min-width: 0; padding: 0 9px; border-right: 1px solid var(--line); color: var(--text-muted); font-size: var(--font-xs); text-align: center; }
.evidence-metrics span:first-child { padding-left: 0; }.evidence-metrics span:last-child { padding-right: 0; border-right: 0; }.evidence-metrics b, .assessment-evidence > .evidence-metrics b { color: var(--text); font-size: 17px; }
.evidence-metrics-main { max-width: 560px; margin-top: 18px; }
.evidence-metrics-note { max-width: 680px; margin: 8px 0 0; color: var(--text-muted); font-size: var(--font-sm); line-height: 1.55; }
.detail-timeline-body > small, .detail-timeline-body > i, .evidence-quotes small, .detail-sources > div > button span, .detail-sources > div > button p { font-size: var(--font-sm); }

.detail-sources-more { display: block; min-height: 36px; margin: 14px auto 0; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--brand-dark); background: #fff; font-size: var(--font-xs); cursor: pointer; }
.detail-sources-more:hover { border-color: #9fcfc4; background: var(--brand-faint); }

/* Event dossier: readable identity, concise overview, decision-first assessment */
.archive-page { grid-template-rows: 94px 52px minmax(0,1fr); }
.archive-page .route-header { min-height: 94px; }
.archive-title-stack { min-width: 0; }
.archive-title-stack > span { font-size: 13px !important; }
.archive-title-stack h1 { overflow: hidden; margin-top: 3px; font-size: 23px; font-weight: var(--weight-semibold); text-overflow: ellipsis; white-space: nowrap; }
.archive-status-line { display: flex; align-items: center; gap: 7px; min-height: 22px; margin-top: 7px; overflow: hidden; }
.archive-status-line > span { flex: none; padding: 3px 7px; border-radius: 5px; color: var(--text-secondary); background: var(--surface-strong); font-size: 12.5px; line-height: 1.25; white-space: nowrap; }
.archive-status-line .archive-status-action { color: var(--tracking); background: var(--tracking-soft); font-weight: var(--weight-semibold); }
.archive-status-line .archive-status-action.push { color: var(--attention); background: var(--attention-soft); }
.archive-status-line .archive-status-action.archive { color: #657681; background: #eef2f4; }
.archive-page .route-header-meta b { font-size: 13px; }.archive-page .route-header-meta small { font-size: 13px; }
.archive-page .archive-content { padding-top: 22px; }
.event-detail-layout { grid-template-columns: minmax(0,1fr) 380px; max-width: 1260px; gap: 20px; }
.event-current-block { padding: 25px 29px 23px; }
.event-current-block > header span,.event-current-block > header small { font-size: 13px; }
.event-current-block h2 { margin-top: 11px; font-size: 18px; line-height: 1.72; font-weight: var(--weight-medium); letter-spacing: 0; }
.event-current-block > footer { gap: 10px 20px; margin-top: 15px; font-size: 13px; }
.event-current-block > footer span { display: inline-flex; align-items: center; gap: 7px; }
.event-current-block > footer span + span { padding-left: 20px; }.event-current-block > footer b { color: var(--text-muted); font-weight: var(--weight-regular); }
.event-current-block.compact { padding: 14px 29px 13px; }
.event-current-block.compact h2 { font-size: 16px; font-weight: var(--weight-medium); }
.event-key-fields { margin-top: 20px; padding-top: 19px; }
.event-key-fields > span { font-size: 13px; font-weight: var(--weight-medium); }
.event-key-fields > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-top: 11px; }
.event-key-fields p { display: grid; gap: 5px; min-height: 64px; padding: 11px 13px; border: 0; border-radius: 7px; background: var(--surface-subtle); font-size: 14px; }
.event-key-fields p b { font-size: 13px; font-weight: var(--weight-regular); }.event-key-fields p span { color: var(--text); font-size: 15px; line-height: 1.5; }
.overview-timeline { margin-top: 20px; padding-top: 20px; }
.overview-timeline > header span { font-size: 13px; }.overview-timeline > header button { font-size: 13px; font-weight: var(--weight-medium); }
.overview-timeline.single-record { padding-bottom: 24px; }
.single-record-summary { display: flex; align-items: center; gap: 13px; margin-top: 15px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fafcfc; }
.single-record-summary > i { width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.single-record-summary > div { display: grid; gap: 5px; }.single-record-summary strong { font-size: 15px; font-weight: var(--weight-medium); }.single-record-summary p { margin: 0; color: var(--text-secondary); font-size: 13px; }
.detail-timeline-body > strong { font-size: 14px; line-height: 1.65; font-weight: var(--weight-medium); }
.detail-timeline-body > small,.detail-timeline-body > i { font-size: 13px; }
.event-assessment-panel > header { padding: 17px 20px 14px; }
.event-assessment-panel > header span,.event-assessment-panel > header small { font-size: 13px; }
.assessment-action { padding: 20px; border-left-width: 4px; }
.assessment-action > span,.assessment-impact header span,.assessment-evidence header span,.assessment-watchpoints > span { color: var(--text-muted); font-size: 13px; }
.assessment-action strong { margin-top: 6px; font-size: 24px; font-weight: var(--weight-semibold); }
.assessment-action p { margin-top: 10px; color: #425761; font-size: 15px; line-height: 1.7; }
.assessment-impact,.assessment-evidence,.assessment-watchpoints { padding: 18px 20px; border-top: 1px solid var(--line); }
.assessment-impact > div { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 13px; }
.assessment-impact > div span { gap: 5px; min-width: 0; padding: 10px 9px; border: 0; border-radius: 7px; background: var(--surface-subtle); }
.assessment-impact > div small { color: var(--text-muted); font-size: 12.5px; }.assessment-impact > div b { overflow-wrap: anywhere; color: var(--text); font-size: 14px; line-height: 1.4; }
.assessment-evidence header { align-items: start; }.assessment-evidence header strong { max-width: 210px; color: var(--text); font-size: 14px; line-height: 1.45; }
.assessment-evidence-summary { margin: 11px 0 0; color: var(--text-secondary); font-size: 14px; line-height: 1.6; }.assessment-evidence-summary b { color: var(--text); }
.assessment-evidence > button { margin-top: 9px; padding: 0; color: var(--brand-dark); background: transparent; font-size: 13px; font-weight: var(--weight-medium); cursor: pointer; }
.assessment-watchpoints ul { display: grid; gap: 9px; margin: 11px 0 0; padding: 0; list-style: none; }
.assessment-watchpoints li { position: relative; padding-left: 16px; color: var(--text-secondary); font-size: 14px; line-height: 1.65; }
.assessment-watchpoints li::before { content: ""; position: absolute; left: 1px; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: #8ba49d; }
.assessment-rationale { border-top: 1px solid var(--line); }
.assessment-rationale > summary { display: flex; align-items: center; min-height: 48px; padding: 0 20px; color: var(--text-secondary); list-style: none; cursor: pointer; }.assessment-rationale > summary::-webkit-details-marker { display: none; }
.assessment-rationale > summary span { font-size: 13px; font-weight: var(--weight-medium); }.assessment-rationale > summary i { width: 7px; height: 7px; margin-left: auto; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); transition: transform .15s ease; }.assessment-rationale[open] > summary i { transform: rotate(225deg); }
.assessment-rationale > div { padding: 0 20px 19px; }.assessment-rationale > div > span { color: var(--text-muted); font-size: 13px; }.assessment-rationale > div > strong { display: block; margin-top: 5px; font-size: 15px; }.assessment-rationale p { margin: 10px 0 0; color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

/* Event dossier refinement: presentation-scale hierarchy without changing the data model. */
.archive-page {
  --text-secondary: #3d515d;
  --text-muted: #687b86;
  --line: #d7e0e3;
  --surface-subtle: #f5f8f8;
  grid-template-rows: auto 58px minmax(0,1fr);
  background: #f3f6f5;
}
.archive-page .route-header { min-height: 112px; gap: 18px; padding: 15px 32px; }
.archive-page .route-back { min-width: 118px; height: 40px; border-color: #c8d5d9; font-size: 14px; }
.archive-page .route-back b { font-size: 14px; font-weight: var(--weight-medium); }
.archive-title-stack > span { color: #617784 !important; font-size: 14px !important; font-weight: var(--weight-medium); }
.archive-title-stack h1 {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  font-size: 27px;
  line-height: 1.28;
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.archive-status-line { gap: 8px; min-height: 25px; margin-top: 8px; }
.archive-status-line > span { padding: 4px 8px; border-radius: 6px; font-size: 13px; font-weight: var(--weight-medium); }
.archive-status-line .archive-impact-state { color: #2f596a; background: #edf4f6; }
.archive-status-line .archive-verification-state.unverified { color: #8b5b0f; background: #fff6e8; }
.archive-status-line .archive-verification-state.confirmed { color: #315f87; background: #edf4fa; }
.archive-status-line .archive-verification-state.corroborated { color: #176d5b; background: #edf7f4; }
.archive-status-line .archive-verification-state.conflict { color: #8f3f4c; background: #fbf0f2; }
.archive-status-line .archive-history-state { color: #76571e; background: #f7f1e5; }
.archive-page .route-header-meta { min-width: 230px; gap: 5px; }
.archive-page .route-header-meta b { color: var(--text); font-size: 15px; font-weight: var(--weight-semibold); }
.archive-page .route-header-meta small { color: var(--text-muted); font-size: 14px; }
.archive-page .archive-tabs { min-height: 58px; gap: 28px; padding-left: 32px; }
.archive-page .archive-tabs button { color: #617480; font-size: 15px; font-weight: var(--weight-medium); }
.archive-page .archive-tabs button.active { color: var(--brand-dark); font-weight: var(--weight-semibold); }
.archive-page .archive-content { padding: 20px 32px 38px; }
.event-detail-layout { grid-template-columns: minmax(0,1fr) 390px; gap: 0; max-width: 1480px; overflow: visible; border: 1px solid #d3dddf; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(20,42,50,.025); }
@media (min-width: 1101px) {
  .event-detail-layout.single-progress { gap: 20px; border: 0; background: transparent; box-shadow: none; }
  .event-detail-layout.single-progress > main,
  .event-detail-layout.single-progress > .event-assessment-panel { border: 1px solid #d3dddf; border-radius: 10px; }
}
.event-detail-loading { display: grid; place-content: center; justify-items: center; gap: 9px; min-height: 420px; max-width: 1480px; margin: 0 auto; border: 1px solid #d3dddf; border-radius: 10px; color: var(--text-muted); background: #fff; }
.event-detail-loading i { width: 24px; height: 24px; border: 2px solid #d6e2de; border-top-color: var(--brand); border-radius: 50%; animation: source-spin .8s linear infinite; }
.event-detail-loading strong { color: var(--text); font-size: 17px; }
.event-detail-loading span { font-size: 14px; }
.event-detail-layout > main { border: 0; border-radius: 0; box-shadow: none; }
.event-assessment-panel { border: 0; border-left: 1px solid #d3dddf; border-radius: 0; box-shadow: none; }
.event-current-block { padding: 24px 27px 21px; }
.event-current-block > header span { color: var(--brand-dark); font-size: 15px; font-weight: var(--weight-semibold); }
.event-current-block > header small { color: var(--text-muted); font-size: 14px; }
.event-current-block h2 { margin-top: 10px; color: #162934; font-size: 18px; line-height: 1.68; font-weight: var(--weight-medium); }
.event-current-block > footer { gap: 10px 20px; margin-top: 13px; color: var(--text-secondary); font-size: 14px; }
.event-current-block > footer b { color: var(--text-muted); font-size: 14px; }
.event-current-block.compact { padding: 15px 27px 14px; }
.event-current-block.compact > header span,.event-current-block.compact > header small { font-size: 14px; }
.event-current-block.compact h2 { margin-top: 8px; font-size: 17px; line-height: 1.6; }
.event-key-fields { margin: 0; padding: 19px 27px 21px; border-top: 1px solid var(--line); }
.event-key-fields > header > span { color: #536974; font-size: 15px; font-weight: var(--weight-semibold); }
.event-key-fields > .event-key-groups { display: grid; grid-template-columns: repeat(auto-fit,minmax(310px,1fr)); gap: 11px; margin-top: 11px; }
.event-key-group { min-width: 0; padding: 13px 15px 12px; border: 1px solid #e8edef; border-radius: 8px; background: #f7f9f9; }
.event-key-group > strong { color: #405d69; font-size: 15px; font-weight: var(--weight-semibold); }
.event-key-group > div { display: grid; margin-top: 7px; }
.event-key-group p { display: grid; grid-template-columns: minmax(112px,.42fr) minmax(0,1fr); gap: 12px; min-height: 0; margin: 0; padding: 8px 0; border: 0; border-bottom: 1px solid #e4eaec; border-radius: 0; background: transparent; }
.event-key-group p:last-child { border-bottom: 0; }
.event-key-group p b { color: #697d88; font-size: 14px; line-height: 1.55; font-weight: var(--weight-medium); }
.event-key-group p span { display: -webkit-box; overflow: hidden; color: #172b36; font-size: 15px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.event-time-warning { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 15px; padding: 11px 13px; border-left: 3px solid #c58a2b; border-radius: 0 7px 7px 0; background: #fff9ef; }
.event-time-warning > div { display: grid; gap: 4px; }
.event-time-warning strong { color: #72521b; font-size: 14px; }
.event-time-warning span { color: #5f6870; font-size: 14px; line-height: 1.55; }
.event-time-warning button { flex: none; color: #7d5b20; background: transparent; font-size: 13px; font-weight: var(--weight-medium); cursor: pointer; }
.overview-timeline,.full-timeline,.evidence-focus,.detail-sources { margin-top: 0; padding: 21px 27px 25px; border-top: 1px solid var(--line); }
.event-detail-layout > main > .full-timeline:first-child { border-top: 0; }
.overview-timeline > header span,.full-timeline > header span,.evidence-focus > header span,.detail-sources > header span { color: #667985; font-size: 14px; }
.overview-timeline > header h3,.full-timeline > header h3,.evidence-focus > header h3,.detail-sources > header h3 { margin-top: 5px; font-size: 18px; line-height: 1.45; }
.overview-timeline > header button { font-size: 14px; font-weight: var(--weight-medium); }
.single-record-summary { margin-top: 14px; padding: 13px 15px; border-radius: 8px; background: #f8fbfa; }
.single-record-summary > div { gap: 6px; }
.single-record-summary strong { font-size: 16px; }
.single-record-summary p { color: var(--text-secondary); font-size: 14px; }
.timeline-header-actions { display: grid; justify-items: end; gap: 7px; }
.full-timeline > header p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.timeline-header-actions > button { min-height: 30px; padding: 0 10px; border: 1px solid #cbd9d6; border-radius: 6px; color: var(--brand-dark); background: #fff; font-size: 13px; cursor: pointer; }
.timeline-group > header span,.timeline-group > header b { font-size: 14px; }
.timeline-group > header span small { margin-left: 5px; color: #71848f; font-size: 13px; font-weight: var(--weight-medium); }
.timeline-group > header > div { display: flex; align-items: center; gap: 10px; }
.timeline-group > header button { color: var(--brand-dark); background: transparent; font-size: 13px; font-weight: var(--weight-medium); cursor: pointer; }
.timeline-group.overlapping > header > div b { max-width: 430px; color: #6c7780; line-height: 1.45; text-align: right; }
.timeline-group.overlapping .detail-timeline-marker::after { display: none; }
.timeline-group.undated,.timeline-group.conflict { margin-top: 18px; padding: 15px 16px; border: 0; border-left: 3px solid #d3a24c; border-radius: 0 8px 8px 0; background: #fffbf4; }
.timeline-group.conflict { border-left-color: #c78829; background: #fff8ec; }
.timeline-group-summary { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 54px; margin-top: 9px; padding: 0 14px; border: 1px dashed #cad6d8; border-radius: 7px; color: #49616c; background: rgba(255,255,255,.75); text-align: left; cursor: pointer; }
.timeline-group-summary strong { font-size: 14px; }.timeline-group-summary span { color: #71838d; font-size: 13px; }
.timeline-group-more { display: flex; align-items: center; justify-content: space-between; width: calc(100% - 40px); min-height: 38px; margin: 4px 0 0 40px; padding: 0 12px; border-radius: 6px; color: #607581; background: #f5f8f8; font-size: 13px; cursor: pointer; }
.timeline-group-more span { color: var(--brand-dark); font-weight: var(--weight-medium); }
.detail-timeline-node { grid-template-columns: 30px minmax(0,1fr); gap: 10px; padding: 11px 0; }
.detail-timeline-body { gap: 7px; padding: 13px 15px; border-radius: 8px; }
.detail-timeline-body > span:first-child b,.detail-timeline-body em,.detail-timeline-body > span:first-child small { font-size: 14px; }
.detail-timeline-body > strong { color: #253c48; font-size: 15px; line-height: 1.7; }
.detail-timeline-body > small,.detail-timeline-body > i { color: #667b87; font-size: 14px; line-height: 1.5; }
.evidence-focus > header > strong { font-size: 16px; }
.evidence-metrics-main { max-width: 620px; margin-top: 20px; padding: 14px; }
.evidence-metrics span,.assessment-evidence > .evidence-metrics span { color: #607581; font-size: 14px; }
.evidence-metrics b,.assessment-evidence > .evidence-metrics b { font-size: 19px; }
.evidence-metrics-note { max-width: 760px; margin-top: 10px; color: #526975; font-size: 14px; line-height: 1.65; }
.evidence-quotes { gap: 11px; margin-top: 20px; }
.evidence-quotes .evidence-article-group { padding: 15px 17px; border-left-width: 3px; }
.evidence-article-group > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.evidence-article-group > header > div { display: grid; gap: 4px; min-width: 0; }
.evidence-article-group > header span { color: var(--brand-dark); font-size: 14px; font-weight: var(--weight-semibold); }
.evidence-article-group > header strong { overflow: hidden; color: #536a76; font-size: 14px; font-weight: var(--weight-medium); text-overflow: ellipsis; white-space: nowrap; }
.evidence-article-group > header > b { flex: none; color: #6a7d87; font-size: 13px; font-weight: var(--weight-medium); }
.evidence-quote-list { display: grid; gap: 8px; margin-top: 11px; }
.evidence-article-group blockquote { margin: 0; padding-left: 12px; border-left: 2px solid #c6dad5; color: #314a57; font-size: 15px; line-height: 1.75; }
.evidence-article-group details { margin-top: 10px; }
.evidence-article-group details > summary { color: var(--brand-dark); font-size: 13px; list-style: none; cursor: pointer; }
.evidence-article-group details > summary::-webkit-details-marker { display: none; }
.evidence-article-group details > div { display: grid; gap: 8px; margin-top: 9px; }
.evidence-groups-more { width: 100%; min-height: 40px; margin-top: 11px; border: 1px solid #d4dfdf; border-radius: 7px; color: var(--brand-dark); background: #f8fbfa; font-size: 14px; cursor: pointer; }
.detail-sources > div { margin-top: 16px; }
.detail-sources > div > button { gap: 8px; padding: 17px 0; }
.detail-sources > div > button span { font-size: 14px; }
.detail-sources > div > button strong { font-size: 16px; line-height: 1.55; }
.detail-sources > div > button p { color: #647985; font-size: 14px; line-height: 1.6; }
.detail-sources > div > button em { font-size: 14px; font-weight: var(--weight-medium); }
.event-assessment-panel > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 50px; padding: 13px 18px; }
.event-assessment-panel > header span { color: var(--brand-dark); font-size: 15px; font-weight: var(--weight-semibold); }
.event-assessment-panel > header small { margin-top: 0; color: var(--text-muted); font-size: 13px; white-space: nowrap; }
.assessment-action { padding: 16px 18px 17px; border-left-width: 4px; }
.assessment-action.archive { border-left-color: #7e909a; background: #f2f5f6; }
.assessment-action > span { font-size: 14px; font-weight: var(--weight-medium); }
.assessment-action strong { margin-top: 5px; font-size: 22px; line-height: 1.3; }
.assessment-action p { margin-top: 8px; color: #344d5a; font-size: 14.5px; line-height: 1.65; }
.assessment-impact,.assessment-evidence,.assessment-watchpoints { padding: 14px 18px; }
.assessment-impact header span,.assessment-evidence header > span,.assessment-watchpoints > span { color: #526975; font-size: 15px; font-weight: var(--weight-semibold); }
.assessment-impact > div { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 10px; }
.assessment-impact > div span { grid-template-columns: auto 1fr; align-items: baseline; gap: 8px; min-height: 0; padding: 0; background: transparent; }
.assessment-impact > div small { color: #6b7f89; font-size: 14px; }
.assessment-impact > div b { color: #172b36; font-size: 16px; }
.assessment-evidence header { align-items: center; }
.assessment-evidence header .verification-state { max-width: 230px; color: #314955; font-size: 15px; text-align: right; }
.assessment-evidence header .verification-state.unverified { color: #8b5b0f; }
.assessment-evidence header .verification-state.confirmed { color: #315f87; }
.assessment-evidence header .verification-state.corroborated { color: #176d5b; }
.assessment-evidence header .verification-state.conflict { color: #8f3f4c; }
.assessment-evidence-summary { margin-top: 8px; color: #405965; font-size: 14px; line-height: 1.6; }
.assessment-evidence > button { margin-top: 7px; font-size: 13.5px; }
.assessment-watchpoints ul { gap: 7px; margin-top: 8px; }
.assessment-watchpoints li { padding-left: 15px; color: #3d5662; font-size: 14px; line-height: 1.6; }
.assessment-rationale > summary { min-height: 46px; padding: 0 18px; }
.assessment-rationale > summary span { font-size: 14px; font-weight: var(--weight-medium); }
.assessment-rationale > div { padding: 0 22px 22px; }
.assessment-rationale > div > span { font-size: 14px; }
.assessment-rationale > div > strong { margin-top: 6px; font-size: 16px; }
.assessment-rationale p { margin-top: 11px; color: #3d5662; font-size: 15px; line-height: 1.75; }

@media (max-width: 1240px) and (min-width: 981px) {
  .archive-page .archive-content { padding-right: 18px; padding-left: 18px; }
  .event-detail-layout { grid-template-columns: minmax(0,1fr) 350px; gap: 0; }
  .archive-page .route-header { padding-right: 20px; padding-left: 20px; }
  .archive-title-stack h1 { font-size: 24px; }
}

@media (max-width: 1100px) {
  .archive-page .archive-content { padding: 14px 18px 34px; }
  .archive-page .event-detail-layout { grid-template-columns: 1fr; max-width: 800px; }
  .archive-page .event-assessment-panel { position: static; margin-top: 0; border-top: 1px solid #d3dddf; border-left: 0; }
}

@media (max-width: 1600px) and (min-width: 981px) {
  .center-primary-controls > .update-range-summary { display: none; }
}

@media (max-width: 1250px) {
  .center-hero { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; }.center-view-tabs button { padding: 0 6px; }.center-primary-controls { grid-template-columns: minmax(220px,.5fr) minmax(520px,1.5fr); gap: 12px; }.center-primary-controls > .update-range-summary { display: none; }.center-facets { gap: 6px; }.center-facets .segmented { flex-basis: 156px; }.center-facets label { grid-template-columns: auto minmax(95px,1fr); }.center-column-head,.center-event-row { grid-template-columns: minmax(250px,.9fr) minmax(340px,1.25fr) 225px 185px; gap: 16px; }
  .center-filter-panel { position: relative; }
  .center-filter-toggle { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 76px; min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--text-secondary); background: #fff; font-size: var(--font-xs); cursor: pointer; }
  .center-filter-toggle b { display: grid; place-items: center; min-width: 18px; height: 18px; border-radius: 9px; color: #fff; background: var(--brand); font-size: 10px; }
  .center-filter-toggle i { width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); }
  .center-filter-panel.open > .center-filter-toggle { color: var(--brand-dark); border-color: #9fcfc4; background: var(--brand-faint); }
  .center-filter-panel.open > .center-filter-toggle i { transform: rotate(225deg) translate(-1px,-1px); }
  .center-filter-panel:not(.open) > .center-facets { display: none; }
  .center-filter-panel.open > .center-facets { position: absolute; z-index: 45; top: calc(100% + 6px); right: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; width: min(620px,calc(100vw - 32px)); padding: 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; box-shadow: 0 12px 28px rgba(16,32,42,.13); }
  .center-facets .segmented { grid-column: 1 / 3; width: 100%; }
  .center-facets label,.center-facets label.center-impact-filter { grid-template-columns: 1fr; height: auto; gap: 4px; padding: 7px 9px; }
  .clear-center-filters { justify-self: end; margin-left: 0; }
}
@media (max-width: 1100px) and (min-width: 981px) {
  .center-hero { grid-template-columns: minmax(0,1fr); grid-template-areas: "range" "views"; }
  .center-hero-range { grid-area: range; }.center-view-group { grid-area: views; }
  .center-column-head,.center-event-row { grid-template-columns: minmax(220px,1fr) minmax(260px,1.15fr) 195px 165px; gap: 12px; }
  .center-impact-line { gap: 9px; }
  .center-impact-magnitude small { display: none; }
}
@media (max-width: 980px) {
  .business-workspace .dashboard { display: block; }
  .business-center { overflow: auto; }
  .center-shell { height: auto; min-height: 100%; overflow: visible; }
  .center-hero { grid-template-columns: minmax(0,1fr); grid-template-areas: "range" "views"; gap: 9px; width: 100%; min-width: 0; padding: 12px 16px; overflow: hidden; }
  .center-hero-range { grid-area: range; flex-wrap: wrap; }.center-view-group { grid-area: views; }
  .center-view-group { overflow: hidden; }.center-view-tabs { max-width: 100%; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .center-view-tabs button { flex: 0 0 auto; min-width: 108px; }
  .center-controls { width: 100%; min-width: 0; padding: 9px 16px; }
  .center-primary-controls { position: relative; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
  .center-filter-toggle { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 68px; min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--text-secondary); background: #fff; font-size: var(--font-xs); cursor: pointer; }
  .center-filter-toggle b { display: grid; place-items: center; min-width: 18px; height: 18px; border-radius: 9px; color: #fff; background: var(--brand); font-size: 10px; }
  .center-filter-toggle i { width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); }
  .center-filter-panel.open > .center-filter-toggle { color: var(--brand-dark); border-color: #9fcfc4; background: var(--brand-faint); }
  .center-filter-panel.open > .center-filter-toggle i { transform: rotate(225deg) translate(-1px,-1px); }
  .center-filter-panel:not(.open) > .center-facets { display: none; }
  .center-filter-panel.open > .center-facets { position: absolute; z-index: 45; top: calc(100% + 6px); right: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; width: min(560px,calc(100vw - 32px)); padding: 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; box-shadow: 0 12px 28px rgba(16,32,42,.13); }
  .center-facets .segmented { grid-column: 1 / 3; width: 100%; }
  .center-facets label { grid-template-columns: 1fr; height: auto; gap: 4px; padding: 7px 9px; }
  .clear-center-filters { justify-self: end; margin-left: 0; }
  .update-workspace { flex-wrap: wrap; gap: 6px; }
  .update-range-summary { display: none; }
  .center-results { display: block; width: 100%; min-width: 0; padding: 0 16px 20px; }
  .center-column-head { display: none; }
  .center-event-list { overflow: visible; border-top: 1px solid var(--line); border-radius: 9px; }
  .center-event-row { grid-template-columns: 1fr; gap: 12px; min-height: 0; }
  .center-event-progress { padding-right: 0; }
  .center-event-scale { justify-items: start; }
  .source-shell { padding: 0 16px 20px; }
  .section-titlebar { margin: 0 -16px; padding: 17px 16px; }
  .source-filter-groups { align-items: stretch; flex-direction: column; gap: 9px; }
  .source-filter-row.secondary { padding-top: 9px; padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .source-filter-row > small { text-align: left; }
  .source-list { grid-template-rows: minmax(0,1fr) auto; height: calc(100vh - 330px); min-height: 400px; max-height: 720px; }
  .source-list > header { display: none; }
  .source-scroll > button { grid-template-columns: 1fr; gap: 9px; }
  .source-scroll em { text-align: left; }
  .archive-page .archive-content { padding: 14px; }.event-detail-layout { grid-template-columns: 1fr; }.event-assessment-panel { position: static; }.event-current-block { padding: 22px 18px; }.selected-progress-block,.event-key-fields { margin-left: 18px; margin-right: 18px; }.overview-timeline,.full-timeline,.evidence-focus,.detail-sources { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 640px) {
  .center-heading { display: block; }.center-heading p { margin-top: 4px; }.center-view-tabs button { min-width: 84px; padding-right: 4px; padding-left: 4px; gap: 4px; }.center-filter-panel.open > .center-facets { grid-template-columns: 1fr; }.center-facets .segmented { grid-column: 1; }.clear-center-filters { width: 100%; justify-self: stretch; }.update-workspace { flex-wrap: nowrap; overflow: hidden; }.update-range-label { display: none; }.update-presets { flex: 1; min-width: 0; padding-left: 0; overflow-x: auto; scrollbar-width: none; }.update-presets button { flex: none; padding-right: 6px; padding-left: 6px; }.center-date-filter > summary { max-width: 78px; padding-right: 5px; padding-left: 5px; }.source-filter-row { display: grid; grid-template-columns: minmax(0,1fr); gap: 6px; }.source-filter-row.secondary { padding-top: 9px; }.source-filter-row > small { margin-left: 0; }.source-status-tabs { width: 100%; }.center-event-row { padding: 14px; }.list-pagination { grid-template-columns: minmax(0,1fr); padding: 0 7px; }.list-pagination > span,.pagination-jump { display: none; }.pagination-pages { justify-content: center; }.event-current-block > header { align-items: flex-start; flex-direction: column; gap: 4px; }.selected-progress-block footer { flex-direction: column; gap: 4px; }.full-timeline > header { align-items: flex-start; flex-direction: column; }.full-timeline > header p { text-align: left; }.detail-timeline-body > span:first-child { flex-wrap: wrap; }.detail-timeline-body > span:first-child small { width: 100%; margin-left: 0; }
}

@media (max-width: 980px) {
  .archive-page { grid-template-rows: auto 52px minmax(0,1fr); }
  .archive-page .route-header { min-height: 104px; padding-top: 12px; padding-bottom: 12px; }
  .archive-title-stack h1 { display: -webkit-box; overflow: hidden; font-size: 21px; line-height: 1.3; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .archive-status-line { flex-wrap: wrap; overflow: visible; }
  .event-detail-layout { max-width: 760px; }
  .event-assessment-panel { margin-top: 2px; }
}

@media (max-width: 640px) {
  .archive-page .route-header { min-height: 92px; }
  .archive-title-stack > span { font-size: 12px !important; }
  .archive-title-stack h1 { font-size: 19px; }
  .archive-status-line { display: none; }
  .event-current-block h2 { font-size: 17px; line-height: 1.65; }
  .event-current-block > footer { align-items: flex-start; flex-direction: column; gap: 7px; }
  .event-current-block > footer span + span { padding-left: 0; border-left: 0; }
  .event-key-fields > div { grid-template-columns: 1fr; }
  .assessment-impact > div { gap: 6px; }
  .assessment-impact > div span { padding: 9px 7px; }
}

@media (max-width: 1100px) {
  .route-content.library-content-paginated.library-contract-view { grid-template-rows: minmax(0,1fr) 50px; }
  .library-contract-view .contract-head { display: none; }
  .library-contract-view .contract-card {
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-areas: "primary action" "tracking action" "definition action";
    gap: 10px 18px;
    min-height: 172px;
  }
  .library-contract-view .contract-card .library-primary { grid-area: primary; }
  .library-contract-view .contract-card .library-tracking { grid-area: tracking; }
  .library-contract-view .contract-card .library-definition { grid-area: definition; }
  .library-contract-view .contract-card .library-rule-action { grid-area: action; align-self: center; }
}

@media (max-width: 640px) {
  .library-contract-view .contract-card {
    grid-template-columns: 1fr;
    grid-template-areas: "primary" "tracking" "definition" "action";
    min-height: 0;
  }
  .library-contract-view .contract-card .library-rule-action { justify-content: start; }
}

/* Event detail dossier: stable fact -> impact -> evidence -> watchpoint reading order. */
.archive-page .archive-content { background: #f3f6f5; }
.archive-page .event-detail-layout,
.archive-page .event-detail-layout.single-progress {
  grid-template-columns: minmax(0,1fr) 390px;
  gap: 20px;
  max-width: 1420px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.archive-page .event-detail-layout > main,
.archive-page .event-detail-layout.single-progress > main {
  display: grid;
  gap: 14px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.dossier-section,
.archive-page .event-detail-layout > main > .event-current-block,
.archive-page .event-detail-layout > main > .full-timeline,
.archive-page .event-detail-layout > main > .evidence-focus,
.archive-page .event-detail-layout > main > .detail-sources {
  min-width: 0;
  margin: 0;
  padding: 24px 27px 26px;
  border: 1px solid #d5dfe1;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(19,45,52,.025);
}
.dossier-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.dossier-section-head > div { min-width: 0; }
.dossier-section-head > div > span { color: #647b85; font-size: 14px; font-weight: var(--weight-semibold); letter-spacing: .02em; }
.dossier-section-head h3 { margin: 5px 0 0; color: #172c37; font-size: 20px; line-height: 1.4; font-weight: var(--weight-semibold); }
.dossier-section-head > small { flex: none; color: #6b7f89; font-size: 14px; }
.dossier-section-head > button,
.dossier-section-link { flex: none; color: var(--brand-dark); background: transparent; font-size: 14px; font-weight: var(--weight-medium); cursor: pointer; }

.core-fact-statement { margin-top: 19px; padding: 18px 20px; border-left: 4px solid #2d8577; border-radius: 0 9px 9px 0; background: #f0f7f5; }
.core-fact-statement.unverified { border-left-color: #c98c2d; background: #fff8ec; }
.core-fact-statement > span { color: #527069; font-size: 14px; font-weight: var(--weight-semibold); }
.core-fact-statement.unverified > span { color: #855d1d; }
.core-fact-statement h2 { margin: 8px 0 0; color: #142a35; font-size: 19px; line-height: 1.72; font-weight: var(--weight-medium); }
.core-fact-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 15px; padding: 13px 0; border-top: 1px solid #e0e7e8; border-bottom: 1px solid #e0e7e8; }
.core-fact-meta.has-business-time { grid-template-columns: repeat(4,minmax(0,1fr)); }
.core-fact-meta > span { display: grid; gap: 5px; padding: 0 16px; border-right: 1px solid #e0e7e8; }
.core-fact-meta > span:first-child { padding-left: 0; }.core-fact-meta > span:last-child { padding-right: 0; border-right: 0; }
.core-fact-meta small { color: #6a7f89; font-size: 13px; }.core-fact-meta strong { color: #233a46; font-size: 15px; font-weight: var(--weight-medium); }
.dossier-core-fact .event-key-groups { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 11px; margin-top: 18px; }

.dossier-evolution > div:last-of-type { margin-top: 14px; }
.dossier-evolution .detail-timeline-node { padding: 7px 0; }
.dossier-evolution .detail-timeline-body { background: #fbfcfc; }
.dossier-evolution .timeline-fold-note { margin-top: 11px; }

.dossier-impact-summary { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.dossier-impact-summary span { padding: 5px 9px; border-radius: 6px; color: #315967; background: #eef4f5; font-size: 13px; font-weight: var(--weight-medium); }
.impact-transmission-row { margin-top: 16px; padding: 16px 17px; border: 1px solid #dce5e6; border-radius: 9px; background: #fbfcfc; }
.impact-transmission-row.conditional { border-color: #eadfc9; background: #fffaf2; }
.impact-transmission-path { display: grid; grid-template-columns: minmax(80px,auto) 18px minmax(100px,auto) 18px minmax(120px,1fr); align-items: center; gap: 7px; }
.impact-transmission-path span { padding: 6px 9px; border-radius: 6px; color: #49636f; background: #edf3f4; font-size: 13px; text-align: center; }
.impact-transmission-row.conditional .impact-transmission-path span { color: #765a2a; background: #f7edda; }
.impact-transmission-path i { color: #91a2a8; font-size: 15px; font-style: normal; text-align: center; }
.impact-transmission-path strong { color: #17313d; font-size: 15px; }
.impact-transmission-row > p { margin: 12px 0 0; color: #3c5460; font-size: 15px; line-height: 1.72; }
.impact-transmission-row > footer { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.impact-transmission-row > footer span,.impact-transmission-row > footer em { padding: 3px 7px; border-radius: 5px; color: #627781; background: #eef3f3; font-size: 12.5px; font-style: normal; }
.impact-uncertainty-line { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 16px; margin-top: 16px; padding: 14px 16px; border-left: 3px solid #bd8a36; background: #fff9ef; }
.impact-uncertainty-line strong { color: #76571f; font-size: 14px; }.impact-uncertainty-line p { margin: 0; color: #4e5d64; font-size: 14px; line-height: 1.65; }

.evidence-profile-badge { flex: none; max-width: 330px; padding: 6px 9px; border-radius: 6px; color: #3a6170; background: #edf4f6; font-size: 13px; line-height: 1.35; text-align: right; }
.evidence-profile-badge.unverified { color: #885b13; background: #fff5e4; }
.evidence-profile-badge.reposted { color: #655a7b; background: #f1eef7; }
.evidence-profile-badge.official,.evidence-profile-badge.corroborated { color: #176d5b; background: #edf7f4; }
.evidence-profile-card { display: grid; grid-template-columns: minmax(0,1fr) 330px; grid-template-areas: "title metrics" "summary metrics"; gap: 7px 24px; margin-top: 17px; padding: 16px 18px; border: 1px solid #dce5e6; border-left: 4px solid #5d8e82; border-radius: 8px; background: #f8fbfa; }
.evidence-profile-card.unverified { border-left-color: #c68b2b; background: #fffaf2; }.evidence-profile-card.reposted { border-left-color: #81739d; background: #faf8fc; }
.evidence-profile-card > strong { grid-area: title; color: #203944; font-size: 16px; }.evidence-profile-card > p { grid-area: summary; margin: 0; color: #48606b; font-size: 14px; line-height: 1.65; }
.evidence-profile-card > div { grid-area: metrics; display: grid; grid-template-columns: repeat(3,1fr); align-self: stretch; }
.evidence-profile-card > div span { display: grid; place-content: center; gap: 4px; padding: 0 11px; border-left: 1px solid #dce5e6; color: #647983; font-size: 12.5px; text-align: center; }
.evidence-profile-card > div b { color: #1f3945; font-size: 20px; }
.evidence-preview { margin-top: 18px; }.evidence-preview > span { color: #617680; font-size: 13px; font-weight: var(--weight-semibold); }
.evidence-preview > .evidence-article-group { margin-top: 9px; padding: 14px 16px; border-left: 3px solid #9ec7bd; border-radius: 0 8px 8px 0; background: #f8faf9; }
.dossier-section-link { display: block; margin-top: 15px; }

.evidence-material-flow { display: grid; grid-template-columns: minmax(0,1fr) 28px minmax(0,1fr) 28px minmax(0,1fr); align-items: center; margin-top: 19px; padding: 15px 17px; border: 1px solid #d8e2e3; border-radius: 9px; background: #f7faf9; }
.evidence-material-flow > span { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 7px; min-width: 0; }
.evidence-material-flow b { color: #17323e; font-size: 23px; line-height: 1; }.evidence-material-flow em { color: #304b57; font-size: 14px; font-style: normal; font-weight: var(--weight-medium); }.evidence-material-flow small { grid-column: 1 / 3; margin-top: 4px; color: #71848c; font-size: 12.5px; }
.evidence-material-flow > i { color: #8ca0a6; font-size: 18px; font-style: normal; text-align: center; }
.evidence-ledger-note { margin: 11px 1px 0; color: #617680; font-size: 13px; line-height: 1.6; }
.evidence-material-list { display: grid; gap: 11px; margin-top: 15px; }
.evidence-material-card { padding: 16px 17px; border: 1px solid #d9e3e4; border-left: 4px solid #6c948a; border-radius: 8px; background: #fbfcfc; }
.evidence-material-card.official { border-left-color: #21806f; background: #f6fbf9; }.evidence-material-card.direct { border-left-color: #52889a; background: #f7fafb; }.evidence-material-card.reported { border-left-color: #c38a2d; background: #fffaf2; }.evidence-material-card.unattributed { border-left-color: #87969c; }
.evidence-material-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.evidence-material-card > header > div { display: grid; gap: 4px; }.evidence-material-card > header span { color: #667c86; font-size: 12.5px; }.evidence-material-card > header strong { color: #19343f; font-size: 16px; line-height: 1.4; }.evidence-material-card > header > b { flex: none; padding: 4px 8px; border-radius: 5px; color: #2a665b; background: #e8f4f0; font-size: 12.5px; font-weight: var(--weight-medium); }
.evidence-material-card.reported > header > b { color: #815a1c; background: #f7ecd7; }
.evidence-material-origin { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 12px; margin-top: 13px; padding-top: 12px; border-top: 1px solid #e0e7e8; }.evidence-material-origin span { color: #6b7f88; font-size: 13px; }.evidence-material-origin strong { color: #304a56; font-size: 14px; font-weight: var(--weight-medium); }
.evidence-material-card blockquote { margin: 12px 0 0; padding: 0; color: #3b535e; font-size: 14px; line-height: 1.7; }
.evidence-material-card > footer { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 11px; color: #697d86; font-size: 12.5px; }
.evidence-material-card.compact { margin-top: 9px; padding: 14px 16px; }.evidence-material-card.compact blockquote { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }.evidence-material-card.compact > footer { display: none; }
.evidence-material-missing { margin: 12px 0 0; color: #6b7d85; font-size: 14px; }

.propagation-sources { padding: 0 !important; overflow: hidden; }
.propagation-sources > details > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 21px 27px; cursor: pointer; list-style: none; }.propagation-sources > details > summary::-webkit-details-marker { display: none; }
.propagation-sources > details > summary div { min-width: 0; }.propagation-sources > details > summary span { color: #667b85; font-size: 14px; font-weight: var(--weight-semibold); }.propagation-sources > details > summary h3 { margin: 5px 0 0; color: #172c37; font-size: 18px; line-height: 1.4; }.propagation-sources > details > summary b { flex: none; color: var(--brand-dark); font-size: 13px; font-weight: var(--weight-medium); }
.propagation-sources > details[open] > summary { border-bottom: 1px solid #e0e7e8; }
.propagation-sources-note { margin: 15px 27px 0; color: #617680; font-size: 13px; line-height: 1.6; }
.propagation-source-list { margin: 7px 27px 0; }.propagation-source-list > button { display: grid; width: 100%; gap: 6px; padding: 14px 0; border-top: 1px solid var(--line); text-align: left; background: #fff; cursor: pointer; }.propagation-source-list > button span { color: #667b85; font-size: 13px; }.propagation-source-list > button strong { color: #203641; font-size: 15px; }.propagation-source-list > button p { margin: 0; overflow: hidden; color: #667b85; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.propagation-source-list > button em { color: var(--brand-dark); font-size: 13px; font-style: normal; }
.propagation-sources .detail-sources-more { margin: 5px 27px 20px; }

.dossier-watchpoints ol { display: grid; gap: 10px; margin: 17px 0 0; padding: 0; list-style: none; }
.dossier-watchpoints li { display: grid; grid-template-columns: 92px minmax(0,1fr); align-items: start; gap: 15px; padding: 14px 16px; border: 1px solid #dde5e6; border-radius: 8px; background: #fbfcfc; }
.dossier-watchpoints li > span { padding: 4px 7px; border-radius: 5px; color: #6d572d; background: #f5eddd; font-size: 13px; text-align: center; }
.dossier-watchpoints li > p { margin: 0; color: #354e5a; font-size: 15px; line-height: 1.65; }
.dossier-empty-state { margin-top: 16px; padding: 17px 18px; border: 1px dashed #cbd7d9; border-radius: 8px; background: #fafcfc; }
.dossier-empty-state strong { color: #38515d; font-size: 15px; }.dossier-empty-state p { margin: 6px 0 0; color: #637781; font-size: 14px; line-height: 1.6; }

.archive-page .event-assessment-panel,
.archive-page .event-detail-layout.single-progress > .event-assessment-panel {
  position: sticky;
  top: 0;
  max-height: calc(100vh - 190px);
  overflow-y: auto;
  border: 1px solid #ccd9dc;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(24,51,58,.055);
  scrollbar-width: thin;
}
.assessment-boundary { padding: 14px 18px; border-top: 1px solid var(--line); background: #f8faf9; }
.assessment-boundary strong { color: #526974; font-size: 14px; }.assessment-boundary p { margin: 6px 0 0; color: #5d7079; font-size: 13px; line-height: 1.6; }

@media (max-width: 1100px) {
  .archive-page .event-detail-layout,
  .archive-page .event-detail-layout.single-progress { grid-template-columns: 1fr; max-width: 820px; }
  .archive-page .event-assessment-panel,
  .archive-page .event-detail-layout.single-progress > .event-assessment-panel { position: static; max-height: none; }
  .evidence-profile-card { grid-template-columns: 1fr; grid-template-areas: "title" "summary" "metrics"; }
  .evidence-profile-card > div { min-height: 74px; margin-top: 7px; }
  .core-fact-meta.has-business-time { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 640px) {
  .dossier-section,
  .archive-page .event-detail-layout > main > .event-current-block,
  .archive-page .event-detail-layout > main > .full-timeline,
  .archive-page .event-detail-layout > main > .evidence-focus,
  .archive-page .event-detail-layout > main > .detail-sources { padding: 20px 17px 22px; }
  .dossier-section-head { flex-direction: column; gap: 9px; }.dossier-section-head h3 { font-size: 18px; }
  .core-fact-statement { padding: 15px 16px; }.core-fact-statement h2 { font-size: 17px; }
  .core-fact-meta,.core-fact-meta.has-business-time { grid-template-columns: 1fr; padding: 4px 0; }.core-fact-meta > span,.core-fact-meta > span:first-child,.core-fact-meta > span:last-child { padding: 9px 0; border-right: 0; border-bottom: 1px solid #e0e7e8; }.core-fact-meta > span:last-child { border-bottom: 0; }
  .dossier-core-fact .event-key-groups { grid-template-columns: 1fr; }
  .dossier-impact-summary { justify-content: flex-start; }
  .impact-transmission-path { grid-template-columns: 1fr 14px 1fr; }.impact-transmission-path strong { grid-column: 1 / 4; padding-top: 6px; text-align: center; }.impact-uncertainty-line { grid-template-columns: 1fr; gap: 6px; }
  .evidence-profile-badge { max-width: none; text-align: left; }.evidence-profile-card { padding: 14px; }.evidence-profile-card > div span { padding: 0 5px; }
  .evidence-material-flow { grid-template-columns: 1fr; gap: 9px; }.evidence-material-flow > i { transform: rotate(90deg); }.evidence-material-card > header { flex-direction: column; gap: 9px; }.evidence-material-origin { grid-template-columns: 1fr; gap: 5px; }.propagation-sources > details > summary { padding: 19px 17px; }.propagation-sources-note,.propagation-source-list { margin-left: 17px; margin-right: 17px; }.propagation-sources .detail-sources-more { margin-left: 17px; margin-right: 17px; }
  .dossier-watchpoints li { grid-template-columns: 1fr; gap: 8px; }.dossier-watchpoints li > span { justify-self: start; }
}

/* High-volume source archive. */
.archive-source-shell { grid-template-rows: auto minmax(0,1fr); }
.archive-source-shell { row-gap: var(--surface-content-gap); }
.source-titlebar { min-height: 112px; padding-top: 21px; padding-bottom: 21px; }
.source-titlebar h2 { font-size: 25px; }
.source-titlebar p { margin-top: 7px; color: #5f747e; font-size: 14px; }
.source-titlebar > strong { font-size: 29px; }
.source-titlebar > strong small { margin-top: 5px; font-size: 13px; }

.source-controls {
  display: grid;
  gap: 7px;
  padding: 8px 0 10px;
}
.source-compact-toolbar { display: grid; grid-template-columns: minmax(220px,.9fr) 170px minmax(170px,.78fr) minmax(165px,.82fr) minmax(165px,.82fr) 160px auto; align-items: center; justify-content: start; gap: 8px; min-width: 0; }
.source-compact-toolbar .source-search,
.source-compact-toolbar .source-search input { height: 36px; }
.source-compact-toolbar .source-search input { padding-left: 39px; font-size: 14px; }
.source-scope { display: flex; align-items: stretch; height: 36px; padding: 3px; border: 1px solid #d7e1e2; border-radius: 7px; background: #eef3f2; }
.source-scope button { flex: 1; min-width: 0; border-radius: 5px; color: #66746f; background: transparent; font-size: 13px; cursor: pointer; }
.source-scope button:hover { color: #28453e; background: rgba(255,255,255,.65); }
.source-scope button.active { color: #0f766e; background: #fff; font-weight: var(--weight-semibold); box-shadow: 0 1px 3px rgba(24,50,45,.09); }
.source-inline-filter { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 9px; height: 36px; min-width: 0; padding: 0 10px; border: 1px solid #cfdbde; border-radius: 7px; background: #fff; }
.source-inline-filter > span { color: #6a7d86; font-size: 13px; white-space: nowrap; }
.source-inline-filter select { width: 100%; height: 34px; min-width: 0; padding: 0 27px 0 0; border: 0; color: #233b47; background-color: transparent; font-size: 13px; outline: 0; }
.source-time-filter { position: relative; z-index: 2; height: 36px; min-width: 0; }
.source-time-filter[open] { z-index: 60; }
.source-time-filter > summary { display: grid; grid-template-columns: auto minmax(0,1fr) 8px; align-items: center; gap: 8px; height: 36px; min-width: 0; padding: 0 10px; border: 1px solid #cfdbde; border-radius: 7px; color: #6a7d86; background: #fff; font-size: 13px; list-style: none; cursor: pointer; }
.source-time-filter > summary::-webkit-details-marker { display: none; }
.source-time-filter > summary strong { overflow: hidden; color: #233b47; font-size: 13px; font-weight: var(--weight-medium); text-overflow: ellipsis; white-space: nowrap; }
.source-time-filter > summary i { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-1px,-1px); }
.source-time-filter.active > summary { border-color: #a8cdc5; background: #fbfdfc; }
.source-time-filter[open] > summary { border-color: #70ad9f; box-shadow: 0 0 0 2px rgba(19,128,110,.08); }
.source-time-filter[open] > summary i { transform: rotate(225deg) translate(-1px,-1px); }
.source-time-menu { position: absolute; z-index: 60; top: calc(100% + 7px); right: 0; display: grid; gap: 12px; width: 390px; padding: 12px; border: 1px solid #cfdbde; border-radius: 9px; background: #fff; box-shadow: 0 14px 32px rgba(20,43,51,.16); }
.source-time-presets { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; padding: 3px; border-radius: 7px; background: #eef3f2; }
.source-time-presets button { height: 30px; padding: 0 7px; border-radius: 5px; color: #61756e; background: transparent; font-size: 12px; cursor: pointer; white-space: nowrap; }
.source-time-presets button:hover { color: #24483f; background: rgba(255,255,255,.65); }
.source-time-presets button.active { color: #0b7565; background: #fff; font-weight: var(--weight-semibold); box-shadow: 0 1px 3px rgba(24,50,45,.09); }
.source-time-custom { display: grid; grid-template-columns: auto minmax(0,1fr) auto minmax(0,1fr); align-items: end; gap: 8px; }
.source-time-custom > span { grid-column: 1 / 5; color: #647881; font-size: 12px; font-weight: var(--weight-semibold); }
.source-time-custom label { display: grid; gap: 4px; min-width: 0; }
.source-time-custom label small { color: #71838a; font-size: var(--font-xs); }
.source-time-custom input { width: 100%; height: 31px; min-width: 0; padding: 0 6px; border: 1px solid #d4dfe1; border-radius: 5px; color: #29434e; background: #fff; font-size: 12px; }
.source-time-custom > i { align-self: center; color: #809098; font-size: 12px; font-style: normal; }
.source-time-custom .source-date-apply { grid-column: 1 / -1; justify-self: end; }
.source-reset { height: 36px; padding: 0 10px; font-size: 13px; white-space: nowrap; }
.source-primary-statuses { display: flex; width: min(100%,1590px); height: 32px; gap: 5px; }
.source-primary-statuses button { display: inline-flex; flex: 1 1 0; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 32px; padding: 0 9px; border: 1px solid #d6e0e1; border-radius: 7px; color: #617680; background: #f7f9f8; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.source-primary-statuses button.active { border-color: #9bc8bd; color: #086f5f; background: #fff; font-weight: var(--weight-semibold); }
.source-primary-statuses button b { color: inherit; font-size: inherit; }

.archive-source-shell .source-list { grid-template-rows: 44px minmax(0,1fr) 52px; }
.archive-source-shell .source-list > header,
.archive-source-shell .source-scroll > button { grid-template-columns: minmax(460px,1.45fr) minmax(180px,.7fr) 150px minmax(330px,.9fr) 28px; gap: 20px; }
.archive-source-shell .source-list > header { min-height: 44px; padding: 0 33px 0 18px; color: #536a74; font-size: 14px; }
.archive-source-shell .source-scroll > button { min-height: 68px; padding: 8px 18px; }
.archive-source-shell .source-list > header > span:nth-child(2),
.source-publisher-cell { padding-left: 28px; }
.archive-source-shell .source-list > header > span:nth-child(3),
.archive-source-shell .source-scroll time { transform: translateX(-56px); }
.source-document-cell { min-width: 0; }
.source-document-cell strong { display: -webkit-box !important; margin: 0 !important; overflow: hidden; color: #1e3742; font-size: 15px; line-height: 1.45; font-weight: var(--weight-semibold); white-space: normal !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.archive-source-shell .source-scroll > button.source-row-duplicate { min-height: 78px; }
.source-document-cell.has-duplicate strong { -webkit-line-clamp: 1; }
.source-document-cell.has-duplicate small { display: block; margin-top: 4px; overflow: hidden; color: #74878f; font-size: var(--font-xs); line-height: 1.35; font-weight: var(--weight-medium); text-overflow: ellipsis; white-space: nowrap; }
.source-publisher-cell { display: block !important; min-width: 0; }
.source-publisher-cell span { display: block; overflow: hidden; color: #334f5b !important; font-size: 15px !important; line-height: 1.45; font-weight: var(--weight-semibold); text-overflow: ellipsis; white-space: nowrap; }
.source-context-cell { display: block; min-width: 0; }
.source-context-cell strong { display: block; overflow: hidden; color: #294b59; font-size: 14.5px; line-height: 1.5; font-weight: var(--weight-semibold); text-overflow: ellipsis; white-space: nowrap; }
.source-context-cell strong i { color: #8aa0a8; font-style: normal; font-weight: var(--weight-medium); }
.archive-source-shell .source-scroll time { color: #405d69; font-size: 14.5px; line-height: 1.5; font-weight: var(--weight-semibold); white-space: nowrap; }
.archive-source-shell .source-scroll em { grid-column: 5; justify-self: end; color: #168371; font-size: 18px; font-style: normal; font-weight: var(--weight-medium); }

/* Event center: time/view controls above, business facets below. */
.event-center-shell .center-hero { grid-template-columns: minmax(560px,.9fr) minmax(760px,1.1fr); gap: 16px; }
.event-center-shell .center-hero-range .update-presets { flex: 1 1 520px; max-width: 680px; }
.event-center-shell .center-view-group { display: grid; grid-template-columns: minmax(0,1fr) minmax(170px,.34fr) minmax(150px,.3fr); align-items: center; gap: 8px; overflow: visible; }
.event-center-shell .center-view-tabs { height: 36px; padding: 2px; box-sizing: border-box; }
.event-center-shell .center-view-tabs button { min-height: 30px; }
.event-center-shell .center-hero-filter { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 7px; width: 100%; min-width: 0; height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.event-center-shell .center-hero-filter > span { color: var(--text-muted); font-size: var(--font-xs); white-space: nowrap; }
.event-center-shell .center-hero-filter select { width: 100%; min-width: 0; overflow: hidden; padding-right: 18px; border: 0; background: transparent; font-size: var(--font-xs); text-overflow: ellipsis; white-space: nowrap; outline: 0; }
.event-center-shell .center-facets .segmented,
.event-center-shell .center-facets label,
.event-center-shell .center-facets label.center-impact-filter { width: 100%; min-width: 0; height: 36px; max-width: none; }
.event-center-shell .center-facets .segmented { flex: none; }
.event-center-shell .center-facets .segmented button { min-width: 0; padding: 0 8px; white-space: nowrap; }
.event-center-shell .center-facets label,
.event-center-shell .center-facets label.center-impact-filter { grid-template-columns: auto minmax(0,1fr); }
.event-center-shell .center-facets select { width: 100%; }
.event-center-shell .center-facets select { overflow: hidden; padding-right: 18px; text-overflow: ellipsis; white-space: nowrap; }
.event-center-shell .clear-center-filters { min-height: 36px; margin-left: 0; padding: 0 10px; }

@media (min-width: 1601px) {
  .event-center-shell .center-primary-controls { grid-template-columns: minmax(0,1.25fr) minmax(0,.75fr) minmax(0,1fr) minmax(0,1fr) minmax(0,.9fr) minmax(0,.9fr) 52px; gap: 8px; }
  .event-center-shell .center-filter-panel,
  .event-center-shell .center-facets { display: contents; }
  .event-center-shell .event-center-reset:disabled { visibility: hidden; }

  /* The wide business surfaces share the same first-row divider and the
     same overall depth whenever they contain a second filter row. */
  .source-controls {
    position: relative;
    height: var(--surface-two-row-height);
    grid-template-rows: var(--surface-header-height) minmax(0,1fr);
    row-gap: 0;
  }
  .source-controls {
    margin: 0 -28px;
    padding: 0 28px;
    border-bottom: 1px solid var(--line);
  }
  .source-controls::after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    top: calc(var(--surface-header-height) - 1px);
    height: 1px;
    background: var(--line);
    pointer-events: none;
  }
  .source-controls > .source-primary-statuses { align-self: center; }
}

@media (max-width: 1600px) and (min-width: 1251px) {
  .event-center-shell .center-hero { grid-template-columns: minmax(0,1fr); grid-template-areas: "range" "views"; gap: 8px; }
  .event-center-shell .center-hero-range { grid-area: range; }
  .event-center-shell .center-view-group { grid-area: views; }
  .event-center-shell .center-primary-controls { grid-template-columns: minmax(300px,1fr) auto; gap: 8px; }
  .event-center-shell .center-filter-panel { position: relative; display: block; justify-self: end; }
  .event-center-shell .center-filter-toggle { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 76px; min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--text-secondary); background: #fff; font-size: var(--font-xs); cursor: pointer; }
  .event-center-shell .center-filter-toggle b { display: grid; place-items: center; min-width: 18px; height: 18px; border-radius: 9px; color: #fff; background: var(--brand); font-size: 10px; }
  .event-center-shell .center-filter-toggle i { width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); }
  .event-center-shell .center-filter-panel.open > .center-filter-toggle { color: var(--brand-dark); border-color: #9fcfc4; background: var(--brand-faint); }
  .event-center-shell .center-filter-panel.open > .center-filter-toggle i { transform: rotate(225deg) translate(-1px,-1px); }
  .event-center-shell .center-filter-panel:not(.open) > .center-facets { display: none; }
  .event-center-shell .center-filter-panel.open > .center-facets { position: absolute; z-index: 45; top: calc(100% + 6px); right: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; width: min(700px,calc(100vw - 32px)); padding: 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; box-shadow: 0 12px 28px rgba(16,32,42,.13); }
  .event-center-shell .center-facets .segmented { grid-column: 1 / 3; width: 100%; }
  .event-center-shell .center-facets label,
  .event-center-shell .center-facets label.center-impact-filter { grid-template-columns: 1fr; height: auto; gap: 4px; padding: 7px 9px; }
  .event-center-shell .clear-center-filters { justify-self: end; margin-left: 0; }
}

@media (max-width: 1600px) {
  .event-center-shell .event-center-reset:disabled { display: none; }
}

@media (max-width: 1250px) {
  .event-center-shell .center-hero { grid-template-columns: minmax(0,1fr); grid-template-areas: "range" "views"; gap: 8px; }
  .event-center-shell .center-hero-range { grid-area: range; }
  .event-center-shell .center-view-group { grid-area: views; }
}

@media (max-width: 1100px) and (min-width: 981px) {
  .event-center-shell .center-hero { grid-template-columns: minmax(0,1fr); grid-template-areas: "range" "views"; }
}

@media (max-width: 980px) {
  .event-center-shell .center-hero { grid-template-columns: minmax(0,1fr); grid-template-areas: "range" "views"; }
}

@media (max-width: 640px) {
  .event-center-shell .center-view-group { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .event-center-shell .center-view-tabs { grid-column: 1 / 3; }
}

@media (max-width: 1400px) {
  .source-compact-toolbar { grid-template-columns: minmax(160px,1.15fr) minmax(132px,180px) repeat(3,minmax(120px,.82fr)) minmax(132px,160px) auto; gap: 8px; }
  .archive-source-shell .source-list > header,
  .archive-source-shell .source-scroll > button { grid-template-columns: minmax(300px,1.45fr) minmax(125px,.65fr) 110px minmax(240px,.9fr) 22px; gap: 16px; }
}

@media (max-width: 980px) {
  .source-compact-toolbar { grid-template-columns: minmax(0,1fr) 210px; }
  .source-compact-toolbar .source-search { grid-column: 1 / 3; }
  .source-inline-filter { min-width: 0; }
  .source-primary-statuses { width: 100%; overflow-x: auto; }
  .source-primary-statuses button { flex: 0 0 auto; }
  .archive-source-shell .source-list { height: auto; min-height: 560px; max-height: none; }
  .archive-source-shell .source-list > header { display: none; }
  .archive-source-shell .source-scroll > button { grid-template-columns: minmax(0,1fr) auto; gap: 10px 16px; }
  .source-document-cell { grid-column: 1 / 3; }.source-publisher-cell { grid-column: 1; grid-row: 2; }.archive-source-shell .source-scroll time { grid-column: 2; grid-row: 2; text-align: right; }.source-context-cell { grid-column: 1; grid-row: 3; align-self: start; }.archive-source-shell .source-scroll em { grid-column: 2; grid-row: 3; }
  .source-publisher-cell { padding-left: 0; }
}

@media (max-width: 640px) {
  .source-titlebar { align-items: flex-start; flex-direction: column; min-height: 0; gap: 11px; }
  .source-titlebar > strong { justify-items: start; font-size: 25px; }
  .source-search,.source-primary-statuses { grid-column: 1; }
  .source-compact-toolbar { grid-template-columns: 1fr; }
  .source-compact-toolbar .source-search { grid-column: 1; }
  .source-time-filter { width: 100%; }
  .source-time-menu { right: auto; left: 0; width: min(390px,calc(100vw - 32px)); }
  .source-reset { width: 100%; }
  .archive-source-shell .source-scroll > button { grid-template-columns: 1fr; }.source-document-cell,.source-publisher-cell,.source-context-cell,.archive-source-shell .source-scroll time,.archive-source-shell .source-scroll em { grid-column: 1; grid-row: auto; text-align: left; justify-self: start; }
}

/* Monitoring overview — display-first command surface */
@media (min-width: 981px) {
  :root { --rail-width: 184px; }
  .rail { align-items: stretch; padding: 0 11px; color: #a9c0bf; background: linear-gradient(180deg,#0d3b43 0%,#0b3840 56%,#09363e 100%); box-shadow: inset -1px 0 rgba(205,231,225,.1); }
  .brand-lockup { display: flex; align-items: center; gap: 8px; min-height: 68px; padding: 0 4px; color: #fff; }
  .brand-lockup .brand-mark { flex: 0 0 26px; width: 26px; height: 26px; margin: 0; border-radius: 50% 50% 46% 54%; color: #064a41; background: linear-gradient(145deg,#60e0bd,#2bc29e); font-family: var(--font); font-size: 0; box-shadow: 0 0 0 4px rgba(81,210,179,.08); }
  .brand-lockup .brand-mark::before { content: ""; width: 11px; height: 11px; border: 2px solid currentColor; border-radius: 4px 7px 4px 7px; transform: rotate(45deg); }
  .brand-lockup .brand-mark span { display: none; }
  .brand-lockup > div:last-child { display: block; min-width: 0; white-space: nowrap; }
  .brand-lockup strong { display: none; }
  .brand-lockup small { display: block; overflow: hidden; color: #f0f8f8; font-size: var(--font-xs); font-weight: 600; letter-spacing: 0; text-overflow: ellipsis; }
  .rail-nav { gap: 7px; margin-top: 4px; }
  .rail-button { grid-template-columns: 22px minmax(0,1fr); align-items: center; justify-items: start; gap: 10px; min-height: 47px; padding: 0 13px; border-radius: 7px; color: #aec3c1; }
  .rail-button::before { display: block; left: -11px; top: 8px; bottom: 8px; width: 3px; }
  .rail-button:hover { color: #edf6f4; background: rgba(255,255,255,.04); }
  .rail-button.active { color: #edf6f4; background: rgba(20,158,141,.16); box-shadow: inset 0 0 0 1px rgba(75,211,185,.06); }
  .rail-button.active::before { background: #3fc3aa; }
  .rail-button b { font-size: 13px; line-height: 1.2; font-weight: 600; }
  .rail-icon { width: 18px; height: 18px; }
  .icon-event { border: 1.5px solid currentColor; border-radius: 4px; }
  .icon-event::before { content: ""; position: absolute; left: 4px; right: 4px; top: 4px; height: 2px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; box-shadow: 0 4px 0 -1px currentColor; }
  .rail-ops { margin-top: 7px; }
}

.monitor-overview-active .main-shell { grid-template-rows: 0 minmax(0,1fr); }
.monitor-overview-active .topbar { visibility: hidden; min-height: 0; overflow: hidden; border: 0; }
.monitor-overview-active .dashboard { background: radial-gradient(circle at 64% -15%,#fff 0,#f7f9f8 42%,#f3f6f5 100%); }
.monitor-overview-active .business-center { overflow: hidden; }
.monitor-overview-shell { --ov-ink:#0f2d3d; --ov-muted:#6a7e8b; --ov-line:#dce6e3; width: 100%; height: 100%; padding: 0 18px 10px; overflow-y: auto; color: var(--ov-ink); scrollbar-width: thin; scrollbar-color: #bdcfca transparent; }
.monitor-overview-shell button { cursor: pointer; }
.overview-card { border: 1px solid var(--ov-line); border-radius: 9px; background: rgba(255,255,255,.94); box-shadow: 0 2px 8px rgba(29,65,61,.035); }
.overview-toolbar { position: sticky; z-index: 15; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: var(--surface-header-height); margin: 0 -18px; padding: 10px 28px 8px; border-bottom: 1px solid rgba(216,227,223,.9); background: rgba(248,250,249,.94); backdrop-filter: blur(12px); }
.overview-title-block { display:flex; align-items:center; gap:20px; min-width:0; white-space:nowrap; }
.overview-title-block h2 { margin: 0; font-size: 25px; line-height: 1.2; letter-spacing: -.035em; }
.overview-title-block p { margin:0; color:#526a78; font-size:16px; line-height:22px; font-weight:500; }
.overview-title-block p b { color:#173748; font-size:17px; font-weight:700; font-variant-numeric:tabular-nums; }
.overview-title-block p span { color:#6e818b; font-size:14px; font-weight:400; }
.overview-toolbar-actions { display: flex; align-items: center; gap: 10px; }
.overview-toolbar-actions > span { margin-right: 5px; color: #536a77; font-size: 11.5px; white-space: nowrap; }
.overview-toolbar-actions > span b { color: #244150; font-weight: 500; }
.overview-presets { display: flex; height: 34px; padding: 2px; border: 1px solid #dde6e4; border-radius: 7px; background: #eef2f2; }
.overview-presets button { min-width: 66px; padding: 0 12px; border-radius: 5px; color: #526976; background: transparent; font-size: 11.5px; }
.overview-presets button:hover { color: #086e65; }
.overview-presets button.active { color: #087a70; background: #fff; font-weight: 700; box-shadow: 0 1px 4px rgba(42,73,69,.1); }
.overview-date-filter { position: relative; }
.overview-date-filter > summary { display:grid; place-items:center; min-width:66px; height:34px; padding:0 12px; border:1px solid #dbe5e2; border-radius:7px; color:#526976; background:#fff; font-size:11.5px; font-weight:500; list-style:none; cursor:pointer; }
.overview-date-filter > summary::-webkit-details-marker { display: none; }
.overview-date-filter > summary:hover,.overview-date-filter > summary.active,.overview-date-filter[open] > summary { border-color:#b9cec8; color:#087a70; background:#f7fbf9; }
.overview-date-filter > div { position: absolute; z-index: 30; top: 42px; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 8px; width: 370px; padding: 13px; border: 1px solid #ccd9d6; border-radius: 8px; background: #fff; box-shadow: 0 15px 34px rgba(23,55,55,.15); }
.overview-date-filter label { display: grid; gap: 5px; color: #6b7e87; font-size: 10px; }
.overview-date-filter input { width: 100%; height: 32px; border: 1px solid #d8e2df; border-radius: 5px; }
.overview-date-filter > div > i { padding-bottom: 9px; color: #91a1a8; font-size: var(--font-xs); font-style: normal; }
.overview-date-filter .overview-date-apply { grid-column: 1 / -1; justify-self: end; }
.overview-refresh { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 11px; border: 1px solid #dbe5e2; border-radius: 7px; color: #2e5260; background: #fff; font-size: 11.5px; }
.overview-refresh:hover { border-color: #a9c4bd; color: #087a70; background: #f5faf8; }

.overview-summary-strip { min-height:76px; margin-top:var(--surface-content-gap); overflow:hidden; }
.overview-summary-metrics { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); width:100%; height:100%; min-height:74px; }
.overview-summary-metric { display:grid; place-items:center; min-width:0; padding:0 8px; border-right:1px solid #e3ebe8; color:#294653; text-align:center; background:rgba(255,255,255,.78); }
.overview-summary-metric:last-child { border-right:0; }
.overview-summary-metric:hover { background:#f7fbf9; }
.overview-summary-metric-content { display:flex; align-items:center; justify-content:center; gap:9px; min-width:0; }
.overview-summary-metric strong { font-size:29px; line-height:34px; font-weight:750; letter-spacing:-.035em; font-variant-numeric:tabular-nums; }
.overview-summary-metric span { overflow:hidden; font-size:15px; line-height:22px; font-weight:650; text-overflow:ellipsis; white-space:nowrap; }
.overview-summary-metric.events strong { color:#087b70; }.overview-summary-metric.sources strong { color:#244c59; }.overview-summary-metric.progress strong { color:#168477; }
.overview-summary-action.push strong { color:#d93125; }.overview-summary-action.watch strong { color:#e88705; }.overview-summary-action.archive strong { color:#087c70; }

.overview-main-grid { display: grid; grid-template-columns: minmax(440px,38fr) minmax(0,62fr); gap: 12px; margin-top: 12px; }
.overview-main-grid > article { min-height: 410px; }
.overview-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 11px 16px 7px; }
.overview-card-heading > div { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.overview-card-heading h3 { margin: 0; font-size: 15.5px; line-height: 1.35; letter-spacing: -.01em; }
.overview-card-heading p,.overview-card-heading h3 small { margin: 0; color: #73858f; font-size: 11.5px; font-weight: 400; }
.overview-card-heading > button:not([aria-label]) { padding: 4px 0; color: #087c70; background: transparent; font-size: 11.5px; white-space: nowrap; }
.overview-card-heading > button:not([aria-label]):hover { text-decoration: underline; text-underline-offset: 3px; }
.overview-structure { display: grid; grid-template-rows: 44px 200px repeat(2,minmax(0,1fr)); padding: 0 3px 4px; }
.overview-event-trend { min-width:0; min-height:0; padding:7px 24px 4px; border-top:1px solid #edf1f0; }
.overview-event-trend svg { display:block; width:100%; height:180px; overflow:visible; }
.overview-event-trend svg line { stroke:#dce6e3; stroke-width:1; }
.overview-event-trend svg polygon { fill:rgba(27,143,124,.1); }
.overview-event-trend svg polyline { fill:none; stroke:#168c79; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.overview-event-trend svg circle { fill:#168c79; stroke:#fff; stroke-width:1.5; }
.overview-event-trend svg text { fill:#6d858f; font-family:var(--font); font-size:12.5px; }
.overview-structure-group { display: flex; flex-direction: column; justify-content: center; min-height:0; padding: 5px 18px 7px; border-top:1px solid #edf1f0; }
.overview-structure-group h4 { margin: 0 0 7px; font-size: 14px; }
.overview-distribution-bar { display: flex; width: 100%; height: 12px; overflow: hidden; border-radius: 7px; background: #edf1f2; }
.overview-distribution-bar > i { flex: 0 0 var(--segment); min-width: 1px; height: 100%; border-right: 1px solid rgba(255,255,255,.5); }
.overview-distribution-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 9px; }
.overview-distribution-legend > span { display: inline-flex; align-items: center; gap: 7px; color: #516975; font-size: 12.5px; white-space: nowrap; }
.overview-distribution-legend > span > i { width: 9px; height: 9px; border-radius: 2px; }
.overview-distribution-legend b { margin-left: 2px; color: #213f4d; font-size: 13px; }
.overview-distribution-bar .push,.overview-distribution-legend .push { background:#d93427; }.overview-distribution-bar .watch,.overview-distribution-legend .watch { background:#f19305; }.overview-distribution-bar .archive,.overview-distribution-legend .archive { background:#278c7e; }
.overview-distribution-bar .reported,.overview-distribution-legend .reported { background:#294e7d; }.overview-distribution-bar .corroborated,.overview-distribution-legend .corroborated { background:#4eb8a6; }.overview-distribution-bar .confirmed,.overview-distribution-legend .confirmed { background:#2c6bd2; }.overview-distribution-bar .conflict,.overview-distribution-legend .conflict { background:#a942c5; }.overview-distribution-bar .clarified,.overview-distribution-legend .clarified { background:#788eac; }.overview-distribution-bar .unassessed,.overview-distribution-legend .unassessed { background:#b9c8c9; }
.overview-distribution-bar .impact-high,.overview-distribution-legend .impact-high { background:#dd3025; }.overview-distribution-bar .impact-medium,.overview-distribution-legend .impact-medium { background:#f09a08; }.overview-distribution-bar .impact-low,.overview-distribution-legend .impact-low { background:#2f70d0; }.overview-distribution-bar .impact-pending,.overview-distribution-legend .impact-pending { background:#d2dade; }
.overview-priority { min-width: 0; overflow: hidden; }
.overview-priority-list { padding: 0 15px 4px; }
.overview-priority-row { display: grid; grid-template-columns: 25px minmax(260px,1fr) 160px 116px 8px; align-items: center; gap: 10px; width: 100%; min-height: 70px; padding: 9px 2px; border-top: 1px solid #e6ecea; text-align: left; background: transparent; }
.overview-priority-row:first-child { border-top: 0; }
.overview-priority-row:hover { background: linear-gradient(90deg,rgba(238,248,245,.35),rgba(238,248,245,.75),rgba(238,248,245,.2)); }
.overview-priority-row > .rank { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: #fff; background: #9da9ae; font-size: 11.5px; font-style: normal; font-weight: 700; }
.overview-priority-row > .rank-1 { background:#dc3829; }.overview-priority-row > .rank-2,.overview-priority-row > .rank-3 { background:#ed8a04; }
.overview-priority-main { min-width: 0; }
.overview-priority-main > strong,.overview-priority-main > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overview-priority-main > strong { font-size: 16px; line-height: 23px; font-weight:650; }
.overview-priority-main > span { margin-top: 3px; color: #607b88; font-size: 12.5px; line-height: 18px; }
.overview-priority-tags { display:grid; grid-template-columns:74px 78px; align-items:center; justify-content:end; gap:8px; white-space:nowrap; }
.overview-priority-tags i { padding: 4px 6px; border-radius: 5px; font-size: 12px; line-height: 18px; font-style: normal; font-weight: 600; text-align:center; }
.impact-high { color:#c82d24; background:#fff0ed; }.impact-medium { color:#c66d00; background:#fff5e6; }.impact-low { color:#2767b6; background:#edf4ff; }.impact-undetermined { color:#71838b; background:#f0f3f4; }
.verify-confirmed,.verify-corroborated { color:#087a6f; background:#e9f6f2; }.verify-unverified,.verify-unassessed { color:#5c7180; background:#eef3f5; }.verify-conflict { color:#a63a53; background:#faedf1; }.verify-clarified { color:#536f95; background:#edf2f8; }
.action-push { color:#c82f25; background:#fdeced; }.action-watch { color:#5d7180; background:#edf2f5; }.action-archive { color:#087a70; background:#e9f5f1; }
.overview-priority-row > time { color:#607b88; font-size:12px; text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.overview-row-arrow { color: #799098; font-size: 19px; font-style: normal; }

.overview-lower-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; margin-top: 14px; padding-bottom: 12px; }
.overview-lower-grid > article { min-height: 350px; }
.overview-lower-grid .overview-card-heading { min-height: 52px; padding: 12px 18px 9px; border-bottom: 1px solid #edf1f0; }
.overview-lower-grid .overview-card-heading h3 { font-size: 16px; }
.overview-lower-grid .overview-card-heading p,.overview-lower-grid .overview-card-heading h3 small { font-size: 12px; }
.overview-lower-grid .overview-card-heading > button:not([aria-label]) { font-size: 12.5px; }
.overview-distribution-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); min-height:0; }
.overview-ranking-pane { min-width:0; padding-top:7px; }
.overview-ranking-pane + .overview-ranking-pane { border-left:1px solid #e5ece9; }
.overview-ranking-pane > h4 { display:flex; align-items:center; min-height:26px; margin:0; padding:0 18px; color:#3b5662; font-size:13.5px; line-height:20px; }
.overview-ranking-list { display: grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:24px; padding: 0 18px 10px; }
.overview-ranking-column { display:grid; align-content:start; min-width:0; }
.overview-ranking-pane:first-child > h4 { padding-right:28px; }
.overview-ranking-pane:first-child .overview-ranking-list { padding-right:28px; }
.overview-ranking-pane + .overview-ranking-pane > h4 { padding-left:28px; }
.overview-ranking-pane + .overview-ranking-pane .overview-ranking-list { padding-left:28px; }
.overview-ranking-list button { display: grid; grid-template-columns: 24px minmax(74px,1fr) minmax(54px,.62fr) 32px; align-items: center; gap: 6px; width: 100%; min-height: 42px; padding: 0; text-align: left; background: transparent; }
.overview-ranking-list button:hover span { color:#087c70; }
.overview-ranking-list em { color:#82969f; font-size:12px; line-height: 16px; font-style:normal; font-variant-numeric:tabular-nums; }
.overview-ranking-list span { overflow:hidden; color: #294652; font-size:14px; line-height: 20px; font-weight: 500; text-overflow:ellipsis; white-space:nowrap; }
.overview-ranking-list button > i { height:8px; border-radius:5px; background:#e5ecea; overflow:hidden; }
.overview-ranking-list button > i > b { display:block; width:var(--bar); height:100%; border-radius:4px; }
.overview-ranking-list .teal { background:#208b79; }.overview-ranking-list .mint { background:#58a99b; }
.overview-ranking-list button > strong { color:#274653; font-size:14px; line-height:20px; font-weight:600; text-align:right; font-variant-numeric: tabular-nums; }
.overview-empty-compact { display:grid; place-items:center; min-height:100px; color:#788b94; font-size:var(--font-xs); }

@media (max-width: 1280px) and (min-width:981px) {
  :root { --rail-width: 184px; }
  .overview-toolbar-actions > span { display:none; }
  .overview-presets button { min-width:55px; padding:0 8px; }
  .overview-main-grid { grid-template-columns:minmax(360px,38fr) minmax(0,62fr); }
  .overview-priority-tags { gap:5px; }
  .overview-lower-grid { grid-template-columns:minmax(0,1fr); }
  .overview-ranking-pane:first-child > h4,.overview-ranking-pane:first-child .overview-ranking-list { padding-right:24px; }
  .overview-ranking-pane + .overview-ranking-pane > h4,.overview-ranking-pane + .overview-ranking-pane .overview-ranking-list { padding-left:24px; }
}

@media (max-height: 980px) and (min-width: 1281px) {
  .overview-toolbar { min-height:var(--surface-header-height); padding-top:6px; padding-bottom:5px; }
  .overview-title-block h2 { font-size:23px; }.overview-title-block p { font-size:15px; }.overview-title-block p b { font-size:16px; }.overview-title-block p span { font-size:13.5px; }
  .overview-summary-strip { min-height:70px; height:70px; }.overview-summary-metrics { min-height:68px; }
  .overview-main-grid { height:397px; }.overview-main-grid > article { min-height:0; height:397px; }
  .overview-structure { grid-template-rows:40px 185px repeat(2,minmax(0,1fr)); }.overview-structure-group { padding-top:4px; padding-bottom:5px; }
  .overview-event-trend svg { height:174px; }
  .overview-card-heading { min-height:40px; padding-top:8px; padding-bottom:6px; }
  .overview-priority-row { min-height:66px; height:66px; padding-top:7px; padding-bottom:7px; }
  .overview-lower-grid { height:350px; }.overview-lower-grid > article { min-height:0; height:350px; }
}

@media (max-width: 980px) {
  .monitor-overview-active .main-shell { grid-template-rows:0 minmax(0,1fr); }
  .monitor-overview-shell { padding:0 10px 12px; }
  .overview-toolbar { position:relative; flex-direction:column; align-items:stretch; min-height:0; margin:0 -10px; padding:14px 12px; }
  .overview-toolbar-actions { overflow-x:auto; }.overview-toolbar-actions > span { display:none; }
  .overview-presets { flex:1; }.overview-presets button { flex:1; min-width:58px; padding:0 8px; }
  .overview-summary-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .overview-summary-metric { min-height:64px; padding:0 10px; }.overview-summary-metric:nth-child(3n) { border-right:0; }.overview-summary-metric:nth-child(-n+3) { border-bottom:1px solid #e3ebe8; }
  .overview-main-grid,.overview-lower-grid { grid-template-columns:1fr; }
  .overview-main-grid > article { min-height:0; }.overview-priority-row { grid-template-columns:23px minmax(0,1fr) auto 7px; }.overview-priority-row > time { display:none; }
  .overview-ranking-list { grid-template-columns:1fr; }
}

@media (max-width: 640px) {
  .overview-summary-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .overview-summary-metric:nth-child(3n) { border-right:1px solid #e3ebe8; }.overview-summary-metric:nth-child(2n) { border-right:0; }.overview-summary-metric:nth-child(-n+4) { border-bottom:1px solid #e3ebe8; }
  .overview-distribution-columns { grid-template-columns:1fr; }
  .overview-ranking-pane + .overview-ranking-pane { border-top:1px solid #e5ece9; border-left:0; }
  .overview-ranking-pane:first-child > h4,.overview-ranking-pane:first-child .overview-ranking-list { padding-right:18px; }
  .overview-ranking-pane + .overview-ranking-pane > h4,.overview-ranking-pane + .overview-ranking-pane .overview-ranking-list { padding-left:18px; }
}

/* Primary surfaces use the overview pattern: page identity and the first
   meaningful controls share one compact, information-rich row. */
.surface-page-title { display: none; margin: 0; color: #102d3d; font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -.03em; white-space: nowrap; }

@media (min-width: 981px) {
  .surface-page-title { display: flex; align-items: center; min-width: 0; }

  .event-center-shell .center-hero {
    grid-template-columns: 150px minmax(390px,.72fr) minmax(720px,1.28fr);
    grid-template-areas: "title range views";
    gap: 16px;
    min-height: var(--surface-header-height);
    padding-top: 7px;
    padding-bottom: 7px;
  }
  .event-surface-title { grid-area: title; }
  .event-center-shell .center-hero-range { grid-area: range; }
  .event-center-shell .center-view-group { grid-area: views; }
  .event-center-shell .center-hero-range .update-presets { flex: 0 1 390px; max-width: 390px; }
  .event-center-shell .center-hero-range .update-presets button { min-height: 28px; padding-right: 6px; padding-left: 6px; }

  .source-controls {
    grid-template-columns: 150px minmax(0,1fr);
    grid-template-areas: "title toolbar" "statuses statuses";
    column-gap: 16px;
  }
  .source-surface-title { grid-area: title; }
  .source-compact-toolbar { grid-area: toolbar; }
  .source-controls > .source-primary-statuses { grid-area: statuses; }

  .library-compact-toolbar { min-height: var(--surface-header-height); }
  .library-surface-title { flex: 0 0 140px; }

  .arrival-strip { grid-template-columns: 150px minmax(0,1.25fr) minmax(470px,.75fr); }
  .replay-surface-title { align-self: stretch; padding: 0 16px; border-right: 1px solid var(--line); }
}

@media (max-width: 1600px) and (min-width: 981px) {
  .event-center-shell .center-hero {
    grid-template-columns: 150px minmax(0,1fr);
    grid-template-areas: "title range" "views views";
    column-gap: 16px;
    row-gap: 8px;
  }
}

@media (max-width: 1500px) and (min-width: 981px) {
  .source-controls { grid-template-columns: minmax(0,1fr); grid-template-areas: "title" "toolbar" "statuses"; }
  .source-surface-title { min-height: 34px; }
}

@media (max-width: 1399px) and (min-width: 981px) {
  .arrival-strip { grid-template-columns: 150px minmax(0,1fr); }
}

@media (max-width: 1199px) and (min-width: 981px) {
  .library-compact-toolbar { flex-wrap: wrap; }
  .library-surface-title { flex-basis: 100%; min-height: 34px; }
  .library-filter-fields { flex: 1 1 100%; }
}

@media (max-width: 1100px) and (min-width: 981px) {
  .event-center-shell { grid-template-columns: minmax(0,1fr); }
  .event-center-shell .center-hero { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; grid-template-columns: 132px minmax(0,1fr); }
  .event-center-shell .center-hero-range .update-presets { flex-basis: 360px; max-width: 360px; }
  .source-compact-toolbar { grid-template-columns: minmax(0,1fr) 190px; }
  .source-compact-toolbar .source-search { grid-column: 1 / 3; }
  .archive-source-shell .source-list { grid-template-rows: minmax(0,1fr) 52px; }
  .archive-source-shell .source-list > header { display: none; }
  .archive-source-shell .source-scroll > button { grid-template-columns: minmax(0,1fr) auto; gap: 10px 16px; }
  .source-document-cell { grid-column: 1 / 3; }
  .source-publisher-cell { grid-column: 1; grid-row: 2; }
  .source-publisher-cell { padding-left: 0; }
  .archive-source-shell .source-scroll time { grid-column: 2; grid-row: 2; text-align: right; }
  .source-context-cell { grid-column: 1; grid-row: 3; align-self: start; }
  .archive-source-shell .source-scroll em { grid-column: 2; grid-row: 3; }
}

@media (max-width: 1400px) and (min-width: 1101px) {
  .archive-source-shell .source-list > header,
  .archive-source-shell .source-scroll > button {
    grid-template-columns: minmax(280px,1.45fr) minmax(120px,.65fr) 140px minmax(220px,.9fr) 20px;
    gap: 14px;
  }
  .archive-source-shell .source-list > header > span:nth-child(2),.source-publisher-cell { padding-left: 20px; }
  .archive-source-shell .source-list > header > span:nth-child(3),.archive-source-shell .source-scroll time { transform: translateX(-30px); }
}

@media (min-width: 1281px) {
  .overview-ranking-list button {
    grid-template-columns: 24px minmax(86px,1fr) minmax(68px,.62fr) 34px;
    gap: 7px;
  }
}

/* System run workspace: one readable audit path, with deeper judgment on demand. */
.replay-workspace #threadSelect { display: none; }
.replay-workspace .filter-row {
  gap: 4px;
  padding: 9px 13px;
  overflow-x: auto;
  background: #f8faf9;
  scrollbar-width: none;
}
.replay-workspace .filter-row::-webkit-scrollbar { display: none; }
.replay-workspace .filter-chip {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #61747d;
  font-size: 13px;
  white-space: nowrap;
}
.replay-workspace .filter-chip:hover { color: #244c45; background: #eff6f4; }
.replay-workspace .filter-chip.active {
  border-color: #d9e9e5;
  color: #087565;
  background: #fff;
  box-shadow: 0 1px 3px rgba(20,58,51,.07);
}
.replay-workspace .news-feed { background: #fff; scrollbar-color: #c9d5d2 transparent; }
.replay-workspace .news-item { border-bottom-color: #e7edeb; background: #fff; }
.replay-workspace .news-item:hover { background: #fafcfb; }
.replay-workspace .news-item.active {
  background: #f1f8f6;
  box-shadow: inset 3px 0 #198b79;
}
.replay-workspace .news-card-main { padding: 15px 16px 14px; }
.replay-workspace .news-meta,
.replay-workspace .news-footer { color: #71848d; font-size: 12.5px; }
.replay-workspace .news-meta > span {
  overflow: hidden;
  color: #587078;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.replay-workspace .news-meta time,
.replay-workspace .news-footer b { flex: none; font-variant-numeric: tabular-nums; }
.replay-workspace .news-item h3 {
  margin-top: 8px;
  color: #17313b;
  font-size: 15px;
  line-height: 1.55;
  font-weight: var(--weight-semibold);
}
.replay-workspace .news-item p {
  margin-top: 6px;
  color: #536970;
  font-size: 13.5px;
  line-height: 1.65;
}
.replay-workspace .news-observations { gap: 6px; margin-top: 10px; }
.replay-workspace .news-observations small { font-size: 12.5px; }
.replay-workspace .observation-chip {
  grid-template-columns: auto minmax(0,auto) minmax(0,1fr);
  min-height: 34px;
  padding: 7px 8px;
  border-color: #dce7e4;
  border-radius: 7px;
  font-size: 12.5px;
}
.replay-workspace .observation-chip:hover { border-color: #9ec9bf; background: #f7fbfa; }
.replay-workspace .news-footer { margin-top: 11px; }
.replay-workspace .news-status { padding: 4px 7px; border-radius: 5px; }
.replay-workspace .news-actions {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 7px;
  padding: 0 14px 13px;
}
.replay-workspace .news-actions button {
  min-height: 32px;
  border-color: #d5e3df;
  border-radius: 6px;
  font-size: 12.5px;
}
.replay-workspace .news-actions button:hover { border-color: #93bfb5; background: #f5faf8; }

.replay-workspace .event-empty.article-result-state {
  place-content: start normal;
  justify-items: stretch;
  padding: 28px clamp(26px,3vw,48px) 40px;
  background: #fff;
}
.replay-workspace .article-result-card { width: min(960px,100%); }
.replay-workspace .article-result-status > span {
  min-height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  font-size: 12.5px;
}
.replay-workspace .article-result-status > small { font-size: 12.5px; }
.replay-workspace .article-result-card > h2 {
  margin-top: 15px;
  color: #142d38;
  font-size: 25px;
  line-height: 1.35;
}
.replay-workspace .article-result-lead {
  max-width: 830px !important;
  margin-top: 9px !important;
  color: #536870;
  font-size: 15px !important;
  line-height: 1.75 !important;
}
.replay-workspace .article-result-document {
  margin-top: 23px;
  padding: 17px 18px 18px;
  border-color: #dfe8e5;
  border-radius: 9px;
  background: #f8faf9;
}
.replay-workspace .article-result-document > header span,
.replay-workspace .article-result-document > header time { font-size: 12.5px; }
.replay-workspace .article-result-document h3 { margin-top: 11px; font-size: 16px; }
.replay-workspace .article-result-document p { margin-top: 8px; font-size: 14px; line-height: 1.75; }
.replay-workspace .article-result-clues { margin-top: 21px; }
.replay-workspace .article-result-clues > header { margin-bottom: 10px; }
.replay-workspace .article-result-clues > header span { color: #314f57; font-size: 14px; }
.replay-workspace .article-result-clues button {
  gap: 6px;
  padding: 13px 15px;
  border-color: #dce7e4;
  border-radius: 8px;
}
.replay-workspace .article-result-clues button span,
.replay-workspace .article-result-clues button small { font-size: 12.5px; }
.replay-workspace .article-result-clues button strong { font-size: 14px; line-height: 1.6; }
.replay-workspace .article-result-path {
  gap: 0;
  margin-top: 21px;
  overflow: hidden;
  border: 1px solid #dde7e4;
  border-radius: 9px;
  background: #f8faf9;
}
.replay-workspace .article-result-path > div {
  min-height: 84px;
  padding: 15px 16px;
  border: 0;
  border-right: 1px solid #dde7e4;
  border-radius: 0;
  background: transparent;
}
.replay-workspace .article-result-path > div:last-child { border-right: 0; }
.replay-workspace .article-result-path i { width: 27px; height: 27px; font-size: 12.5px; }
.replay-workspace .article-result-path span { font-size: 12.5px; }
.replay-workspace .article-result-path strong { font-size: 14px; line-height: 1.5; }
.replay-workspace .article-result-destination {
  grid-template-columns: 92px minmax(0,1fr);
  gap: 5px 14px;
  margin-top: 12px;
  padding: 15px 16px;
  border: 1px solid #d9e9e4;
  border-left: 3px solid #168675;
  border-radius: 7px;
  background: #f2f8f6;
}
.replay-workspace .article-result-destination > span,
.replay-workspace .article-result-destination > p { font-size: 12.5px; }
.replay-workspace .article-result-destination > strong { font-size: 14px; }
.replay-workspace .article-result-actions { gap: 9px; margin-top: 16px; }
.replay-workspace .article-result-actions button {
  min-height: 36px;
  padding: 0 14px;
  border-color: #cddfda;
  border-radius: 7px;
  font-size: 13px;
}

@media (min-width: 981px) {
  .replay-workspace .dashboard {
    grid-template-rows: 64px 72px minmax(0,1fr);
    gap: var(--surface-content-gap);
    padding: 0 28px 70px;
    background: #f4f7f6;
  }
  .replay-workspace .arrival-strip {
    grid-template-columns: 160px minmax(340px,.95fr) minmax(500px,1.05fr);
    border: 0;
    border-bottom: 1px solid #dbe5e2;
    border-radius: 0;
    background: #fff;
  }
  .replay-workspace .replay-surface-title {
    align-self: center;
    padding: 0;
    border-right: 0;
  }
  .replay-workspace .arrival-copy { grid-template-columns: 96px minmax(0,1fr); padding: 0 21px 0 0; }
  .replay-workspace .arrival-time { grid-template-columns: minmax(0,1fr); gap: 3px; padding-right: 17px; }
  .replay-workspace .arrival-time span { color: #71837e; font-size: 12.5px; white-space: nowrap; }
  .replay-workspace .arrival-time time { color: #1d594e; font-size: 14px; }
  .replay-workspace .arrival-copy > div:last-child { padding-left: 17px; }
  .replay-workspace .arrival-copy strong { color: #17343c; font-size: 14px; }
  .replay-workspace .arrival-copy > div:last-child span { color: #71837e; font-size: 12.5px; }
  .replay-workspace .arrival-progress { gap: 16px; padding: 0 0 0 22px; border-left-color: #e0e8e5; }
  .replay-workspace .arrival-progress-label { font-size: 12.5px; white-space: nowrap; }
  .replay-workspace .arrival-flow { grid-template-columns: minmax(94px,1fr) 22px minmax(94px,1fr) 22px minmax(94px,1fr); }
  .replay-workspace .arrival-step { grid-template-columns: 17px minmax(0,1fr); gap: 2px 7px; }
  .replay-workspace .arrival-step span { color: #34575e; font-size: 13px; }
  .replay-workspace .arrival-step small { font-size: 12px; }

  .replay-workspace .stats-strip {
    grid-template-columns: repeat(5,minmax(0,1fr));
    min-height: 72px;
    border-color: #dce6e3;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(21,61,52,.035);
  }
  .replay-workspace .stats-strip > div {
    grid-template-columns: auto minmax(0,1fr);
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 10px;
    row-gap: 4px;
    padding: 0 clamp(14px,1.35vw,24px);
    border-right-color: #e2e9e7;
  }
  .replay-workspace .stats-strip strong {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    color: #123842;
    font-size: clamp(22px,1.5vw,27px);
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  .replay-workspace .stats-strip span {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    color: #34545b;
    font-size: 13.5px;
    font-weight: var(--weight-semibold);
    white-space: nowrap;
  }
  .replay-workspace .stats-strip small {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    overflow: hidden;
    color: #83928f;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .replay-workspace .stats-strip > div:nth-child(2) strong,
  .replay-workspace .stats-strip > div:nth-child(3) strong,
  .replay-workspace .stats-strip > div:nth-child(4) strong { color: #10806e; }
  .replay-workspace .stats-strip .pending-stat strong { color: #b27314; }

  .replay-workspace .workbench {
    grid-template-columns: clamp(360px,23vw,430px) minmax(0,1fr);
    border-color: #dce6e3;
    border-radius: 10px;
    box-shadow: 0 5px 18px rgba(24,57,50,.035);
  }
  .replay-workspace .stream-panel { border-right-color: #dfe7e5; background: #fff; }
  .replay-workspace .memory-panel { border-right: 0; }
  .replay-workspace .memory-panel,
  .replay-workspace .decision-panel { grid-template-rows: 74px minmax(0,1fr); }
  .replay-workspace .panel-header { min-height: 74px; padding: 12px 16px; }
  .replay-workspace .stream-panel > .panel-header { background: #fff; }
  .replay-workspace .panel-header h2 { color: #17313b; font-size: 17px; }
  .replay-workspace .panel-header small { margin-top: 5px; color: #73858c; font-size: 12.5px; }
  .replay-workspace .section-kicker { margin-bottom: 5px; color: #1b8171; font-size: 12px; }
  .replay-workspace .memory-header .panel-actions { flex: none; }
  .replay-workspace .memory-header .decision-toggle {
    position: static;
    z-index: auto;
    right: auto;
    bottom: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #b9d7cf;
    border-radius: 7px;
    color: #087565;
    background: #f4faf8;
    font-size: 12.5px;
    font-weight: var(--weight-semibold);
    box-shadow: none;
    cursor: pointer;
    white-space: nowrap;
  }
  .replay-workspace .memory-header .decision-toggle:hover { border-color: #81b8aa; background: #eaf6f2; }

  .replay-workspace .decision-panel {
    position: fixed;
    z-index: 110;
    top: 12px;
    right: 14px;
    bottom: 68px;
    width: min(460px,calc(100vw - var(--rail-width) - 28px));
    overflow: hidden;
    border: 1px solid #cfddda;
    border-radius: 11px;
    background: #fcfdfd;
    box-shadow: -18px 8px 44px rgba(14,39,46,.18);
    transform: translateX(calc(100% + 30px));
    transition: transform .22s ease;
  }
  .replay-workspace.decision-open .decision-panel { transform: translateX(0); }
  .replay-workspace .decision-panel .panel-close { display: grid; place-items: center; }

  .replay-workspace .replay-dock {
    min-height: 54px;
    gap: 8px;
    padding: 7px 28px;
    border-top-color: #d6e1de;
    background: rgba(255,255,255,.985);
    box-shadow: 0 -5px 18px rgba(25,56,50,.06);
  }
  .replay-workspace .replay-progress { flex-basis: 470px; }
  .replay-workspace .replay-progress > span { color: #35555c; font-size: 12.5px; }
  .replay-workspace .replay-progress small { margin-top: 2px; color: #7d8e92; font-size: 11.5px; }
  .replay-workspace .replay-dock button,
  .replay-workspace .replay-dock select { min-height: 32px; border-color: #d6e1de; font-size: 12.5px; }
}

@media (max-width: 1219px) and (min-width: 981px) {
  .replay-workspace .arrival-strip { grid-template-columns: 160px minmax(0,1fr); }
  .replay-workspace .arrival-progress { display: none; }
  .replay-workspace .workbench { grid-template-columns: 350px minmax(0,1fr); }
  .replay-workspace .filter-row { gap: 2px; padding-right: 10px; padding-left: 10px; }
  .replay-workspace .filter-chip { padding-right: 7px; padding-left: 7px; }
  .replay-workspace .stats-strip > div { padding-right: 13px; padding-left: 13px; }
  .replay-workspace .stats-strip strong { font-size: 21px; }
  .replay-workspace .stats-strip small { display: none; }
  .replay-workspace .stats-strip span { align-self: center; }
}

@media (max-width: 1100px) and (min-width: 981px) {
  .replay-workspace .stats-strip > div {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: auto auto;
    gap: 5px;
    justify-items: center;
    padding-right: 7px;
    padding-left: 7px;
    text-align: center;
  }
  .replay-workspace .stats-strip strong {
    grid-column: 1;
    grid-row: 1;
    font-size: 20px;
  }
  .replay-workspace .stats-strip span {
    grid-column: 1;
    grid-row: 2;
    font-size: 12.5px;
  }
  .replay-workspace .article-result-path { grid-template-columns: minmax(0,1fr); }
  .replay-workspace .article-result-path > div {
    min-height: 66px;
    border-right: 0;
    border-bottom: 1px solid #dde7e4;
  }
  .replay-workspace .article-result-path > div:last-child { border-bottom: 0; }
  .replay-workspace .article-result-destination { grid-template-columns: minmax(0,1fr); }
  .replay-workspace .article-result-destination > span { grid-row: auto; }
}

@media (max-width: 980px) {
  .replay-workspace .memory-header .decision-toggle { display: none; }
  .replay-workspace .news-card-main { padding: 14px; }
  .replay-workspace .news-item h3 { font-size: 14px; }
  .replay-workspace .event-empty.article-result-state { padding: 22px 18px 30px; }
  .replay-workspace .article-result-card > h2 { font-size: 21px; }
  .replay-workspace .article-result-path > div { border-right: 0; border-bottom: 1px solid #dde7e4; }
  .replay-workspace .article-result-path > div:last-child { border-bottom: 0; }
}

/* Event detail workspace: conclusion -> narrative -> chronology -> decision. */
.archive-page {
  --dossier-ink: #16303a;
  --dossier-muted: #667b83;
  --dossier-line: #dce5e5;
  --dossier-green: #078672;
  --dossier-green-soft: #eef8f5;
  --dossier-amber: #c57616;
  --dossier-amber-soft: #fff7eb;
  background: #f4f7f6;
}
.archive-page .route-header {
  min-height: 132px;
  padding-top: 18px;
  padding-bottom: 17px;
  background: linear-gradient(110deg,#fff 0%,#fff 72%,#fbfdfc 100%);
}
.archive-title-stack h1 {
  max-width: 930px;
  margin-top: 5px;
  color: #102a35;
  font-size: 27px;
  line-height: 1.34;
}
.archive-page .route-header-meta {
  min-width: 290px;
  align-self: end;
  padding-bottom: 5px;
}
.archive-page .route-header-meta b { color: #203a44; }
.archive-page .route-header-meta small { line-height: 1.55; }
.archive-page .archive-tabs { min-height: 54px; box-shadow: 0 1px 0 rgba(20,52,58,.02); }
.archive-page .archive-content { padding-top: 16px; }

.archive-page .event-detail-layout,
.archive-page .event-detail-layout.single-progress {
  display: grid;
  grid-template-columns: minmax(560px,1fr) minmax(230px,270px) 340px;
  gap: 14px;
  max-width: 1500px;
  align-items: start;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.archive-page .event-detail-layout.no-timeline-rail,
.archive-page .event-detail-layout.single-progress.no-timeline-rail { grid-template-columns: minmax(0,1fr) 340px; }
.archive-page .event-detail-layout > main,
.archive-page .event-detail-layout.single-progress > main {
  display: grid;
  gap: 14px;
  min-width: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.dossier-section,
.event-timeline-rail,
.archive-page .event-assessment-panel {
  border: 1px solid var(--dossier-line);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(22,55,58,.035);
}
.dossier-section { padding: 21px 22px 23px; }
.dossier-section-head > div > span {
  color: var(--dossier-green);
  font-size: 14px;
  letter-spacing: 0;
}
.dossier-section-head h3 { margin-top: 3px; color: var(--dossier-ink); font-size: 19px; }
.dossier-section-head > small { padding-top: 2px; color: #72858c; font-size: 13px; }
.dossier-section-head div > small { display: block; margin-top: 4px; color: #829197; font-size: 12.5px; }

.core-fact-statement {
  margin-top: 15px;
  padding: 16px 18px 17px;
  border-left: 3px solid #168f7a;
  border-radius: 0 8px 8px 0;
  background: #f1f8f6;
}
.fact-semantic-label { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.fact-semantic-label span,
.fact-semantic-label em {
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 12.5px;
  font-style: normal;
  font-weight: var(--weight-medium);
}
.fact-semantic-label span { color: #136f60; background: #dff2ed; }
.fact-semantic-label em { color: #8a5c19; background: #fff0d8; }
.core-fact-statement h2 { margin-top: 9px; color: #15313b; font-size: 18px; line-height: 1.68; }
.core-fact-statement > p { margin: 9px 0 0; color: #6c6047; font-size: 12.5px; line-height: 1.6; }
.core-fact-meta.story-fact-grid {
  grid-template-columns: .72fr 1.12fr 1.38fr;
  gap: 0;
  margin-top: 14px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e0e8e8;
  border-radius: 8px;
  background: #fbfcfc;
}
.core-fact-meta.story-fact-grid > span,
.core-fact-meta.story-fact-grid > span:first-child,
.core-fact-meta.story-fact-grid > span:last-child {
  min-height: 84px;
  padding: 13px 14px;
  border-right: 1px solid #e0e8e8;
}
.core-fact-meta.story-fact-grid > span:last-child { border-right: 0; }
.core-fact-meta.story-fact-grid small { color: #70838b; font-size: 12.5px; }
.core-fact-meta.story-fact-grid strong {
  display: block;
  overflow: visible;
  color: #203b45;
  font-size: 14px;
  line-height: 1.52;
}
.core-fact-meta.story-fact-grid .progress-highlight { background: #f2f8f6; }
.core-fact-meta.story-fact-grid .progress-highlight small { color: #147362; font-weight: var(--weight-semibold); }

.impact-transmission-row { margin-top: 13px; padding: 14px 15px; border-color: #e0e7e8; background: #fbfcfc; }
.impact-transmission-path { display: flex; grid-template-columns: none; align-items: center; gap: 9px; }
.impact-transmission-path span { flex: none; color: #176e60; background: #e5f3ef; font-weight: var(--weight-medium); }
.impact-transmission-path strong { color: #26444e; font-size: 14px; }
.impact-transmission-row > p { margin-top: 9px; font-size: 14px; line-height: 1.68; }
.impact-transmission-row > footer { margin-top: 8px; }
.impact-uncertainty-line { grid-template-columns: 86px minmax(0,1fr); gap: 10px; margin-top: 12px; padding: 12px 14px; border-left-width: 3px; }
.impact-uncertainty-line p { font-size: 13px; line-height: 1.6; }

.dossier-evidence-overview .evidence-material-flow.has-terminal {
  grid-template-columns: minmax(0,1fr) 18px minmax(0,1fr) 18px minmax(0,1fr) 18px minmax(0,1.05fr);
  gap: 4px;
  margin-top: 15px;
  padding: 14px;
  background: linear-gradient(90deg,#f8fbfa,#f3f8f6);
}
.evidence-material-ledger .evidence-material-flow.has-terminal { grid-template-columns: minmax(0,1fr) 24px minmax(0,1fr) 24px minmax(0,1fr) 24px minmax(0,1fr); }
.dossier-evidence-overview .evidence-material-flow > span { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 3px 6px; }
.dossier-evidence-overview .evidence-material-flow b { color: #126f60; font-size: 21px; }
.dossier-evidence-overview .evidence-material-flow em { font-size: 12.5px; line-height: 1.35; }
.dossier-evidence-overview .evidence-material-flow small { font-size: 11.5px; }
.dossier-evidence-overview .evidence-flow-result { padding-left: 3px; }
.dossier-evidence-overview .evidence-flow-result b { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: #fff; background: #168d77; font-size: 13px; }
.evidence-profile-summary { margin: 11px 2px 0; color: #60757d; font-size: 12.5px; line-height: 1.58; }
.evidence-profile-summary > span { margin-right: 8px; color: #275b55; font-weight: var(--weight-semibold); }
.evidence-preview { margin-top: 13px; }
.evidence-material-card.compact { padding: 12px 14px; }
.evidence-material-card.compact blockquote { margin-top: 9px; font-size: 13px; line-height: 1.62; }
.evidence-material-card.compact .evidence-material-origin { margin-top: 9px; padding-top: 9px; }

.event-timeline-rail {
  position: sticky;
  top: 0;
  overflow: hidden;
}
.event-timeline-rail > header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 17px 17px 14px;
  border-bottom: 1px solid #e3e9e9;
}
.event-timeline-rail > header span { color: #164b51; font-size: 16px; font-weight: var(--weight-semibold); }
.event-timeline-rail > header small { padding-top: 2px; color: #7a898f; font-size: 12px; font-weight: var(--weight-medium); }
.timeline-rail-list { padding: 8px 13px; }
.timeline-rail-list .detail-timeline-node { padding: 7px 0; }
.timeline-rail-list .detail-timeline-body { gap: 5px; padding: 9px 10px; }
.timeline-rail-list .detail-timeline-body > strong { display: block; overflow: visible; white-space: normal; overflow-wrap: anywhere; }
.timeline-rail-list .detail-timeline-body > small { font-size: 11.5px; line-height: 1.4; }
.timeline-rail-list .detail-timeline-body > i { display: none; }

.event-detail-side { position: sticky; top: 0; display: grid; gap: 14px; min-width: 0; }
.archive-page .event-assessment-panel,
.archive-page .event-detail-layout.single-progress > .event-assessment-panel {
  position: static;
  max-height: none;
  overflow: hidden;
  border: 1px solid var(--dossier-line);
  border-radius: 11px;
}
.event-assessment-panel > header { min-height: 48px; padding: 14px 16px 12px; }
.event-assessment-panel > header span { color: #0d685d; font-size: 15px; }
.event-assessment-panel > header small { margin-top: 0; font-size: 12px; }
.assessment-action { padding: 16px; border-left-width: 3px; }
.assessment-action strong { font-size: 23px; }
.assessment-action p { margin-top: 7px; font-size: 13.5px; line-height: 1.62; }
.assessment-impact,.assessment-evidence { padding: 14px 16px; }
.assessment-impact > div { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 9px; }
.assessment-impact > div span { padding: 8px 10px; }
.assessment-evidence-summary { margin-top: 8px; font-size: 12.5px; line-height: 1.55; }
.assessment-push-reason { padding: 14px 16px; border-top: 1px solid var(--dossier-line); }
.assessment-push-reason strong { color: #526b73; font-size: 12.5px; }
.assessment-push-reason p { margin: 6px 0 0; color: #3d555d; font-size: 13px; line-height: 1.6; }
.assessment-rationale > summary { min-height: 44px; padding: 0 16px; }
.assessment-rationale > div { padding: 0 16px 15px; }
.assessment-boundary { margin: 11px -16px -15px; padding: 11px 16px; }
.assessment-boundary p { margin-top: 4px; }
.event-detail-side .dossier-watchpoints { padding: 17px 16px 18px; }
.event-detail-side .dossier-watchpoints .dossier-section-head h3 { font-size: 17px; }
.event-detail-side .dossier-watchpoints ol { gap: 7px; margin-top: 12px; }
.event-detail-side .dossier-watchpoints li { grid-template-columns: 74px minmax(0,1fr); gap: 9px; padding: 10px; }
.event-detail-side .dossier-watchpoints li > span { font-size: 11.5px; }
.event-detail-side .dossier-watchpoints li > p { font-size: 12.5px; line-height: 1.55; }

@media (max-width: 1380px) and (min-width: 1101px) {
  .archive-page .route-header { padding-right: 24px; padding-left: 24px; }
  .archive-page .archive-content { padding-right: 20px; padding-left: 20px; }
  .archive-page .event-detail-layout,
  .archive-page .event-detail-layout.single-progress { grid-template-columns: minmax(520px,1fr) 230px 315px; gap: 11px; }
  .archive-page .event-detail-layout.no-timeline-rail,
  .archive-page .event-detail-layout.single-progress.no-timeline-rail { grid-template-columns: minmax(0,1fr) 315px; }
  .archive-page .route-header-meta { min-width: 250px; }
  .dossier-section { padding-right: 19px; padding-left: 19px; }
  .core-fact-meta.story-fact-grid { grid-template-columns: .7fr 1fr 1.25fr; }
}

@media (max-width: 1100px) {
  .archive-page .route-header {
    grid-template-columns: auto minmax(0,1fr);
    grid-template-areas:
      "back title"
      "back meta";
    align-items: start;
    min-height: 0;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .archive-page .route-back { grid-area: back; }
  .archive-page .archive-title-stack { grid-area: title; }
  .archive-page .route-header-meta {
    grid-area: meta;
    display: flex;
    min-width: 0;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 10px;
    padding-bottom: 0;
    text-align: left;
  }
  .archive-page .archive-title-stack h1 {
    max-width: none;
    font-size: 24px;
    -webkit-line-clamp: 3;
  }
  .archive-page .archive-status-line { flex-wrap: wrap; overflow: visible; }
  .archive-page .event-detail-layout,
  .archive-page .event-detail-layout.single-progress { grid-template-columns: minmax(0,1fr) 320px; max-width: 900px; }
  .archive-page .event-detail-layout.no-timeline-rail,
  .archive-page .event-detail-layout.single-progress.no-timeline-rail { grid-template-columns: minmax(0,1fr) 320px; }
  .archive-page .event-detail-layout > main { grid-column: 1; grid-row: 1 / 3; }
  .event-timeline-rail { position: static; grid-column: 2; grid-row: 1; }
  .event-detail-side { position: static; grid-column: 2; grid-row: 2; }
  .archive-page .event-detail-layout.no-timeline-rail > main { grid-row: 1; }
  .archive-page .event-detail-layout.no-timeline-rail > .event-detail-side { grid-row: 1; }
}

@media (max-width: 820px) {
  .archive-page .route-header { min-height: 0; }
  .archive-page .event-detail-layout,
  .archive-page .event-detail-layout.single-progress { grid-template-columns: 1fr; }
  .archive-page .event-detail-layout > main,
  .event-timeline-rail,
  .event-detail-side { grid-column: 1; grid-row: auto; }
  .archive-page .event-detail-layout:not(.no-timeline-rail) > main,
  .archive-page .event-detail-layout:not(.no-timeline-rail) > .event-detail-side { display: contents; }
  .archive-page .event-detail-layout:not(.no-timeline-rail) .dossier-core-fact { order: 1; }
  .archive-page .event-detail-layout:not(.no-timeline-rail) .event-assessment-panel { order: 2; }
  .archive-page .event-detail-layout:not(.no-timeline-rail) .event-timeline-rail { order: 3; }
  .archive-page .event-detail-layout:not(.no-timeline-rail) .dossier-impact { order: 4; }
  .archive-page .event-detail-layout:not(.no-timeline-rail) .dossier-evidence-overview { order: 5; }
  .archive-page .event-detail-layout:not(.no-timeline-rail) .dossier-watchpoints { order: 6; }
  .archive-page .event-detail-layout > *,
  .archive-page .event-detail-layout > main > *,
  .archive-page .event-detail-side > * { min-width: 0; }
  .core-fact-meta.story-fact-grid { grid-template-columns: 1fr; }
  .core-fact-meta.story-fact-grid > span,
  .core-fact-meta.story-fact-grid > span:first-child,
  .core-fact-meta.story-fact-grid > span:last-child { min-height: 0; border-right: 0; border-bottom: 1px solid #e0e8e8; }
  .core-fact-meta.story-fact-grid > span:last-child { border-bottom: 0; }
  .dossier-evidence-overview .evidence-material-flow.has-terminal { grid-template-columns: 1fr; gap: 8px; }
  .dossier-evidence-overview .evidence-material-flow > i { transform: rotate(90deg); }
}

@media (max-width: 640px) {
  .archive-page .route-header {
    gap: 9px;
    padding: 10px 12px 11px;
  }
  .archive-page .route-back {
    align-self: start;
    min-width: 88px;
    height: 36px;
    padding: 0 7px;
  }
  .archive-page .archive-title-stack h1 {
    font-size: 18px;
    line-height: 1.34;
    overflow-wrap: anywhere;
    -webkit-line-clamp: 3;
  }
  .archive-page .archive-status-line {
    display: flex;
    gap: 5px;
    min-height: 0;
    margin-top: 7px;
  }
  .archive-page .archive-status-line > span { padding: 3px 6px; font-size: 11.5px; }
  .archive-page .route-header-meta { display: none; }
  .archive-page .archive-content { padding-right: 10px; padding-left: 10px; }
  .dossier-section { padding: 17px 15px 19px; }
  .core-fact-statement h2,
  .assessment-action p { overflow-wrap: anywhere; }
}

/* Event detail visual system v3: compact header, decision-first three-column dossier. */
.archive-page {
  --detail-ink: #102f3a;
  --detail-body: #405a63;
  --detail-muted: #75878d;
  --detail-line: #dde6e6;
  --detail-teal: #078879;
  --detail-teal-dark: #056b61;
  --detail-teal-soft: #edf8f5;
  --detail-orange: #e97814;
  --detail-orange-soft: #fff5e9;
  grid-template-rows: auto minmax(0,1fr);
  color: var(--detail-ink);
  background: #f6f8f7;
}
.archive-page .route-header {
  display: grid;
  grid-template-columns: minmax(0,13fr) minmax(430px,7fr);
  grid-template-areas: none;
  align-items: center;
  column-gap: clamp(36px,4vw,72px);
  min-height: 150px;
  padding: 20px 36px 22px;
  border-bottom: 1px solid #e1e8e8;
  background: #fff;
}
.archive-page .archive-title-stack {
  display: grid;
  grid-area: auto;
  min-width: 0;
  align-content: center;
}
.archive-breadcrumb {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: #6b7e85;
  font-size: 13px;
  line-height: 22px;
}
.archive-breadcrumb-back {
  display: inline-flex;
  flex: none;
  min-width: 0;
  height: 20px;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  color: #506b74;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}
.archive-breadcrumb-back span { font-size: 15px; line-height: 1; }
.archive-breadcrumb-back b { font-size: 13px; font-weight: 550; }
.archive-breadcrumb-back:hover { color: var(--detail-teal-dark); }
.archive-breadcrumb > i { flex: none; color: #a6b3b7; font-style: normal; }
.archive-breadcrumb > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.archive-page .archive-title-stack h1 {
  display: block;
  max-width: none;
  margin: 8px 0 0;
  overflow: visible;
  color: #0d2935;
  font-size: clamp(26px,1.55vw,31px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -.01em;
  text-overflow: clip;
  white-space: normal;
}
.archive-page .archive-status-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  margin-top: 11px;
  overflow: visible;
}
.archive-page .archive-status-line > span {
  display: inline-flex;
  height: 26px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
}
.archive-page .archive-status-line .archive-status-action.push { color: #d95f0a; border-color: #ffd4b4; background: #fff1e5; }
.archive-page .archive-status-line .archive-status-action.watch { color: #9a6919; border-color: #f0dfb9; background: #fff8e8; }
.archive-page .archive-status-line .archive-status-action.archive { color: #66777d; border-color: #dce3e4; background: #f3f6f6; }
.archive-page .archive-status-line .archive-impact-direction { color: #087a6e; background: #e8f6f2; }
.archive-page .archive-status-line .archive-impact-state { color: #d4630e; background: #fff2e7; }
.archive-page .archive-status-line .archive-impact-summary { color: #087a6e; background: #e8f6f2; }
.archive-page .archive-status-line .archive-impact-summary.impact-high { color: #c45c0d; background: #fff1e5; }
.archive-page .archive-status-line .archive-impact-summary.impact-medium { color: #9a6919; background: #fff8e8; }
.archive-page .archive-status-line .archive-impact-summary.impact-pending { color: #64767d; background: #f0f4f4; }
.archive-page .archive-status-line .archive-verification-state { color: #256da6; background: #edf5fb; }
.archive-page .archive-status-line .archive-verification-state.unverified,
.archive-page .archive-status-line .archive-verification-state.unassessed { color: #956719; background: #fff4d9; }
.archive-page .archive-status-line .archive-verification-state.conflict { color: #8f3f4c; background: #fbf0f2; }
.archive-page .archive-status-line .archive-verification-state.corroborated,
.archive-page .archive-status-line .archive-verification-state.official { color: #087566; background: #e9f6f2; }
.archive-header-summary {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 13px;
  padding: 0;
}
.archive-metrics {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  column-gap: clamp(24px,2.25vw,46px);
  margin: 0;
}
.archive-metrics > div { display: grid; min-width: 0; gap: 5px; }
.archive-metrics dt { color: #7b8b90; font-size: 12.5px; line-height: 1.3; white-space: nowrap; }
.archive-metrics dd { margin: 0; color: #223d47; font-size: 17px; font-weight: 600; line-height: 1.35; font-variant-numeric: tabular-nums; white-space: nowrap; }
.archive-identity-line {
  display: flex;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  gap: clamp(14px,1.15vw,20px);
  padding: 16px 10px 3px;
  border-top: 1px solid #edf1f1;
  color: var(--text);
  font-size: 18px;
  font-weight: var(--weight-bold);
  line-height: 1.5;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.archive-identity-line > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.archive-identity-subject { font-variant-numeric: tabular-nums; }
.archive-identity-separator { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--text); }
.archive-page .archive-tabs {
  min-height: 49px;
  padding: 0 32px;
  border-bottom-color: #e1e8e8;
  background: #fff;
  box-shadow: none;
}
.archive-page .archive-tabs button { min-height: 49px; padding: 0 8px; font-size: 13.5px; }
.archive-page .archive-tabs button + button { margin-left: 20px; }
.archive-page .archive-content { padding: 20px 20px 34px; background: #f6f8f7; }

.archive-page .event-detail-layout,
.archive-page .event-detail-layout.single-progress {
  display: grid;
  grid-template-columns: minmax(480px,2fr) minmax(250px,1fr) minmax(250px,1fr);
  gap: 14px;
  width: 100%;
  max-width: 1510px;
  margin: 0 auto;
  align-items: start;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.archive-page .event-detail-layout.no-timeline-rail,
.archive-page .event-detail-layout.single-progress.no-timeline-rail { grid-template-columns: minmax(0,1fr) 330px; max-width: 1280px; }
.archive-page .event-detail-layout > main,
.archive-page .event-detail-layout.single-progress > main { display: grid; gap: 18px; min-width: 0; overflow: visible; border: 0; background: transparent; }
.dossier-section,
.event-timeline-rail,
.archive-page .event-assessment-panel {
  border: 1px solid var(--detail-line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 9px rgba(19,50,54,.035);
}
.dossier-section { padding: 18px 19px 19px; }
.dossier-core-fact,
.dossier-impact { padding: 22px 22px 24px; }
.dossier-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.dossier-heading-copy { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.dossier-heading-copy > div { min-width: 0; }
.dossier-heading-icon {
  position: relative;
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  margin-top: 1px;
  border-radius: 50%;
  color: #fff;
  background: var(--detail-teal);
  font-size: 0;
  font-style: normal;
}
.dossier-heading-icon::before { font-size: var(--font-xs); font-weight: var(--weight-bold); }
.dossier-heading-icon.fact::before { content: "◇"; }
.dossier-heading-icon.attention { background: #f39a20; }
.dossier-heading-icon.attention::before { content: "★"; font-size: 10px; }
.dossier-heading-icon.evidence::before { content: "✓"; }
.dossier-heading-icon.watch::before {
  content: "";
  width: 14px;
  height: 14px;
  background: center / 14px 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.2 4.7h5.1a3.4 3.4 0 0 1 3.4 3.4v2.3h2.8M11.2 8.1l2.4 2.4-2.4 2.4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.dossier-section-head h3 { margin: 0; color: var(--detail-ink); font-size: 18px; font-weight: 700; line-height: 1.35; }
.dossier-section-head div > small { display: block; margin-top: 4px; color: #819096; font-size: 13.5px; line-height: 1.5; }
.dossier-section-head > time { flex: none; padding-top: 2px; color: #71848b; font-size: 13px; line-height: 1.5; }

.core-fact-statement,
.core-fact-statement.unverified {
  margin-top: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.fact-semantic-label { display: flex; flex-wrap: wrap; gap: 7px; }
.fact-semantic-label span,
.fact-semantic-label em { padding: 4px 9px; border-radius: 5px; font-size: 13px; font-style: normal; font-weight: 600; }
.fact-semantic-label span { color: #08786a; background: #e8f6f2; }
.fact-semantic-label em { color: #9c6515; background: #fff1dd; }
.core-fact-statement h2 { margin: 10px 0 0; color: #17343e; font-size: 18.5px; font-weight: var(--weight-semibold); line-height: 1.65; }
.core-fact-statement > h2:first-child { margin-top: 0; }
.core-fact-statement > p { margin: 8px 0 0; color: #7b6b4d; font-size: 13.5px; line-height: 1.65; }
.core-fact-meta.story-fact-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 0;
  margin-top: 17px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dfe8e6;
  border-radius: 10px;
  background: #f7faf9;
}
.core-fact-meta.story-fact-grid > span,
.core-fact-meta.story-fact-grid > span:first-child,
.core-fact-meta.story-fact-grid > span:last-child {
  position: relative;
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 110px;
  padding: 18px 20px;
  border-right: 0;
}
.core-fact-meta.story-fact-grid > span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 0;
  bottom: 22px;
  width: 1px;
  background: #dfe7e6;
}
.core-fact-meta.story-fact-grid small { color: #74858b; font-size: 13px; font-weight: var(--weight-semibold); line-height: 1.4; }
.core-fact-meta.story-fact-grid strong { display: block; color: #17343e; font-size: 16px; font-weight: var(--weight-semibold); line-height: 1.45; }
.core-fact-meta.story-fact-grid em { color: #8a989c; font-size: 12.5px; font-style: normal; line-height: 1.45; }
.core-fact-meta.story-fact-grid .progress-highlight { background: transparent; }
.core-fact-meta.story-fact-grid .progress-highlight small { color: #08796b; font-weight: var(--weight-semibold); }
.core-fact-meta.story-fact-grid .progress-highlight strong { color: #17343e; }
.event-time-warning { gap: 12px; margin-top: 14px; padding: 11px 13px; border-left-width: 2px; background: #fff8ef; }
.event-time-warning > div { gap: 2px; }
.event-time-warning strong { font-size: 13.5px; }
.event-time-warning span { font-size: 13px; line-height: 1.55; }
.event-time-warning button { font-size: 13px; }
.core-trust-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  color: #63777d;
  font-size: 13px;
  line-height: 1.55;
}
.core-trust-line i {
  display: grid;
  width: 19px;
  height: 19px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #138b78;
  font-size: 10px;
  font-style: normal;
}
.core-trust-line strong { color: #315f58; font-size: 13px; }
.core-trust-line.unverified i,
.core-trust-line.unassessed i { background: #d39432; }
.core-trust-line.unverified strong,
.core-trust-line.unassessed strong { color: #8d611c; }
.core-trust-line.conflict i { background: #a34c58; }
.core-trust-line.conflict strong { color: #8f3f4c; }

.dossier-impact-summary { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.dossier-impact-summary span { padding: 5px 11px; border-radius: 5px; color: #087366; background: #edf7f4; font-size: 13px; font-weight: 600; white-space: nowrap; }
.impact-decision-chain {
  display: grid;
  grid-template-columns: minmax(0,max-content) minmax(38px,1fr) minmax(0,max-content) minmax(38px,1fr) minmax(0,max-content);
  align-items: center;
  gap: 9px;
  margin-top: 17px;
  padding: 15px;
  border: 1px solid #deebe8;
  border-radius: 8px;
  background: linear-gradient(105deg,#f7fbfa,#eff7f5);
}
.impact-decision-chain > span { display: grid; min-width: 0; gap: 6px; }
.impact-decision-chain small { color: #71858a; font-size: 12.5px; font-weight: var(--weight-semibold); line-height: 1.4; }
.impact-decision-chain strong { color: #21434b; font-size: 14px; font-weight: var(--weight-semibold); line-height: 1.5; overflow-wrap: anywhere; }
.impact-decision-chain > span:nth-of-type(2) strong { color: #087466; }
.impact-decision-chain > i {
  position: relative;
  display: block;
  width: min(32px,100%);
  height: 20px;
  align-self: center;
  justify-self: center;
  color: #43887c;
  font-size: 0;
  font-style: normal;
}
.impact-decision-chain > i::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 7px;
  left: 1px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  transform: translateY(-50%);
}
.impact-decision-chain > i::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
  transform: translateY(-50%);
}
.impact-chain-reason { margin: 14px 0 0; color: var(--detail-ink); font-size: 14.5px; font-weight: var(--weight-semibold); line-height: 1.75; }
.significance-point { margin-top: 14px; }
.significance-point + .significance-point { padding-top: 12px; border-top: 1px solid #e5ebeb; }
.significance-point > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.significance-point > div span { padding: 4px 9px; border-radius: 5px; color: #557078; background: #eef3f3; font-size: 13px; }
.significance-point > div strong { color: #24414a; font-size: 14px; }
.significance-point > p { margin: 8px 0 0; color: var(--detail-body); font-size: 14.5px; line-height: 1.75; }
.impact-uncertainty-line { display: grid; grid-template-columns: 86px minmax(0,1fr); gap: 12px; margin-top: 15px; padding: 12px 14px; border-left: 2px solid #e4a03e; background: #fff8ef; }
.impact-uncertainty-line strong { align-self: center; justify-self: center; color: #a5630e; font-size: 13.5px; text-align: center; }
.impact-uncertainty-line p { margin: 0; color: #626c6e; font-size: 14.5px; line-height: 1.7; }

.evidence-profile-badge { max-width: 210px; padding: 4px 7px; border-radius: 5px; font-size: 11.5px; }
.dossier-evidence-overview .evidence-material-flow.has-terminal {
  grid-template-columns: minmax(0,1fr) 14px minmax(0,1fr) 14px minmax(0,1fr) 14px minmax(0,1.08fr);
  gap: 3px;
  margin-top: 14px;
  padding: 12px 13px;
  border-color: #e0e8e7;
  background: linear-gradient(90deg,#f9fbfa,#f2f8f6);
}
.dossier-evidence-overview .evidence-material-flow > span { grid-template-columns: auto minmax(0,1fr); gap: 2px 5px; }
.dossier-evidence-overview .evidence-material-flow b { color: #08776a; font-size: 20px; }
.dossier-evidence-overview .evidence-material-flow em { font-size: 11.5px; line-height: 1.3; }
.dossier-evidence-overview .evidence-material-flow small { margin-top: 2px; font-size: 10px; }
.dossier-evidence-overview .evidence-material-flow > i { color: #93aaa6; font-size: 13px; }
.dossier-evidence-overview .evidence-flow-result b { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; color: #fff; background: var(--detail-teal); font-size: var(--font-xs); }
.evidence-profile-summary { margin: 8px 1px 0; color: #6b7f85; font-size: 11.5px; line-height: 1.5; }
.evidence-profile-summary > span { margin-right: 7px; color: #315c57; font-weight: var(--weight-semibold); }
.evidence-index { margin-top: 13px; border-top: 1px solid #e3eaea; }
.evidence-index > header { display: flex; align-items: center; justify-content: space-between; padding: 10px 0 5px; }
.evidence-index > header strong { color: #38535c; font-size: 12.5px; }
.evidence-index > header span { color: #849297; font-size: 10.5px; }
.evidence-index-row { display: grid; grid-template-columns: 22px minmax(0,1fr) 88px; gap: 9px; align-items: center; min-height: 52px; padding: 7px 0; border-bottom: 1px solid #edf1f1; }
.evidence-index-row > b { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; color: #fff; background: var(--detail-teal); font-size: 10px; }
.evidence-index-row > div { display: grid; gap: 4px; min-width: 0; }
.evidence-index-row > div span { display: flex; align-items: center; gap: 6px; overflow: hidden; color: #667b82; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.evidence-index-row > div em { flex: none; padding: 2px 5px; border-radius: 4px; color: #315c57; background: #ecf4f2; font-style: normal; }
.evidence-index-row > div strong { display: block; overflow: hidden; color: #2b4650; font-size: 12px; font-weight: 500; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.evidence-index-row > time { color: #7b898e; font-size: 10.5px; text-align: right; }
.dossier-section-link { display: inline-flex; margin-top: 11px; padding: 0; color: var(--detail-teal-dark); background: transparent; font-size: 11.5px; font-weight: 600; }

.event-context-rail { position: static; display: grid; gap: 14px; min-width: 0; }
.event-timeline-rail { position: static; overflow: hidden; }
.event-timeline-rail > header { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 17px 16px 15px; border-bottom: 1px solid #e4eaea; }
.event-timeline-rail > header > div { display: flex; align-items: center; gap: 8px; }
.event-timeline-rail > header i { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #08786b; background: #e9f6f2; font-size: 13px; font-style: normal; }
.event-timeline-rail > header span { color: #173641; font-size: 17px; font-weight: 700; }
.event-timeline-rail > header small { color: #71848b; font-size: 13.5px; font-weight: var(--weight-medium); line-height: 1.45; white-space: nowrap; }
.timeline-rail-list { padding: 13px 14px 15px; }
.timeline-rail-list .detail-timeline-node {
  display: grid;
  grid-template-columns: 22px minmax(0,1fr);
  gap: 4px;
  width: 100%;
  padding: 9px 0;
  text-align: left;
  background: transparent;
}
.timeline-rail-list .detail-timeline-marker { position: relative; display: grid; justify-items: center; min-height: 100%; }
.timeline-rail-list .detail-timeline-marker > i { position: relative; z-index: 1; width: 9px; height: 9px; margin-top: 16px; border: 2px solid #fff; border-radius: 50%; background: #a7bbb6; box-shadow: 0 0 0 1px #a7bbb6; }
.timeline-rail-list .detail-timeline-marker::after { content: ""; position: absolute; top: 25px; bottom: -17px; width: 1px; background: #d5e1de; }
.timeline-rail-list .detail-timeline-node:last-child .detail-timeline-marker::after { display: none; }
.timeline-rail-list .detail-timeline-body {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #dfe7e7;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}
.timeline-rail-list .detail-timeline-node.latest-collected .detail-timeline-marker > i { background: var(--detail-teal); box-shadow: 0 0 0 1px var(--detail-teal); }
.timeline-rail-list .detail-timeline-node.active .detail-timeline-marker > i { background: var(--detail-orange); box-shadow: 0 0 0 1px var(--detail-orange); }
.timeline-rail-list .detail-timeline-node.active .detail-timeline-body { border-color: #f2d4b1; background: #fff8ef; }
.timeline-rail-list .detail-timeline-body > span:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.timeline-rail-list .detail-timeline-body > span:first-child b { color: #087568; font-size: 12px; font-weight: var(--weight-semibold); }
.timeline-rail-list .detail-timeline-body > span:first-child em { padding: 3px 6px; border-radius: 4px; color: #426d98; background: #edf4fa; font-size: 11.5px; font-style: normal; }
.timeline-rail-list .detail-timeline-node.active .detail-timeline-body > span:first-child b { color: #b76112; }
.timeline-rail-list .detail-timeline-node.active .detail-timeline-body > span:first-child em { color: #7a5a2c; background: #ffecd4; }
.timeline-rail-list .detail-timeline-body > strong {
  display: block;
  overflow: visible;
  color: #263f48;
  font-size: 14px;
  font-weight: var(--weight-semibold);
  line-height: 1.65;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: initial;
  -webkit-line-clamp: unset;
}
.timeline-rail-list .detail-timeline-body > small { color: #667a82; font-size: 13px; font-weight: var(--weight-medium); line-height: 1.6; }
.timeline-rail-list .detail-timeline-body > i { color: #6f8187; font-size: 12px; font-style: normal; line-height: 1.5; }
.event-detail-side { position: sticky; top: 0; display: grid; gap: 14px; min-width: 0; }
.side-evidence-drawer-card {
  overflow: hidden;
  border: 1px solid #dbe5e4;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(24,58,61,.035);
}
.side-evidence-drawer-card > button {
  display: grid;
  width: 100%;
  gap: 11px;
  padding: 15px 14px 14px;
  color: var(--detail-ink);
  text-align: left;
  background: #fff;
  cursor: pointer;
}
.side-evidence-drawer-card > button:hover { background: #f8fcfb; }
.side-evidence-drawer-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.side-evidence-drawer-card header > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.side-evidence-drawer-card header i { display: grid; width: 23px; height: 23px; flex: none; place-items: center; border-radius: 50%; color: #08796c; background: #eaf7f3; font-size: var(--font-xs); font-style: normal; }
.side-evidence-drawer-card header span { color: #203b45; font-size: 15px; font-weight: 700; }
.side-evidence-drawer-card header em { display: inline-flex; flex: none; align-items: center; gap: 5px; color: #08796c; font-size: 13px; font-style: normal; font-weight: 600; }
.side-evidence-drawer-card header em svg { width: 16px; height: 10px; overflow: visible; }
.side-evidence-drawer-card header em path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.side-evidence-verdict { display: grid; gap: 3px; }
.side-evidence-verdict > strong { color: #087566; font-size: 18px; line-height: 1.25; }
.side-evidence-verdict > strong.unverified,
.side-evidence-verdict > strong.unassessed { color: #956719; }
.side-evidence-verdict > strong.conflict { color: #8f3f4c; }
.side-evidence-verdict > p { margin: 0; color: #5c7279; font-size: 14px; line-height: 1.55; }
.side-evidence-drawer-card dl { display: grid; margin: 0; border-top: 1px solid #edf2f1; }
.side-evidence-drawer-card dl.two-step { grid-template-columns: repeat(2,minmax(0,1fr)); }
.side-evidence-drawer-card dl.three-step { grid-template-columns: repeat(3,minmax(0,1fr)); }
.side-evidence-drawer-card dl > div { position: relative; min-width: 0; padding: 11px 4px 1px; border-right: 1px solid #edf2f1; text-align: center; }
.side-evidence-drawer-card dl > div:last-child { border-right: 0; }
.side-evidence-drawer-card dl > div + div::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 12px;
  left: -14px;
  width: 28px;
  height: 18px;
  background: #fff;
}
.side-evidence-drawer-card dl > div + div::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 15px;
  left: -10px;
  width: 20px;
  height: 12px;
  background: center / 20px 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 12'%3E%3Cpath d='M1.5 6H19M14 1.5 19 6l-5 4.5' fill='none' stroke='%2343887c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.side-evidence-drawer-card dt { color: #24444d; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.side-evidence-drawer-card dd { margin: 3px 0 0; color: #657b81; font-size: 12.5px; line-height: 1.4; overflow-wrap: anywhere; }

.detail-drawer[data-mode="archive-evidence"] {
  grid-template-rows: 72px minmax(0,1fr);
  width: min(520px,calc(100vw - 24px));
  box-shadow: -16px 0 38px rgba(16,32,42,.16);
}
.detail-drawer[data-mode="archive-evidence"] > header { padding: 0 18px; }
.detail-drawer[data-mode="archive-evidence"] > header > div > span { font-size: var(--font-xs); font-weight: 600; }
.detail-drawer[data-mode="archive-evidence"] > header h2 { margin-top: 2px; font-size: 18px; }
.detail-drawer[data-mode="archive-evidence"] .drawer-content { padding: 17px 18px 28px; }
.archive-evidence-drawer-summary > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.archive-evidence-drawer-summary > header > span { color: #637980; font-size: 12px; font-weight: 600; }
.archive-evidence-drawer-summary > header > strong { display: inline-flex; align-items: center; gap: 6px; color: #087566; font-size: 12px; }
.archive-evidence-drawer-summary > header > strong i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.archive-evidence-drawer-summary > header > strong.unverified,
.archive-evidence-drawer-summary > header > strong.unassessed { color: #956719; }
.archive-evidence-drawer-summary > header > strong.conflict { color: #8f3f4c; }
.archive-evidence-drawer-summary > dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 14px 0 11px; border: 1px solid #dfe8e6; border-radius: 8px; background: #f5faf8; }
.archive-evidence-drawer-summary > dl > div { padding: 11px 10px; border-right: 1px solid #dfe8e6; }
.archive-evidence-drawer-summary > dl > div:last-child { border-right: 0; }
.archive-evidence-drawer-summary dt { color: #123b43; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.archive-evidence-drawer-summary dd { margin: 2px 0 0; color: #6c7e84; font-size: 10.5px; }
.detail-drawer[data-mode="archive-evidence"] .archive-evidence-drawer-summary > p { color: #516970; font-size: 12px; line-height: 1.65; }
.archive-evidence-drawer-materials .evidence-material-list { gap: 10px; margin-top: 0; }
.detail-drawer[data-mode="archive-evidence"] .evidence-material-card { padding: 13px 14px; }
.detail-drawer[data-mode="archive-evidence"] .evidence-material-card > header strong { font-size: 14px; }
.detail-drawer[data-mode="archive-evidence"] .evidence-material-card > header span,
.detail-drawer[data-mode="archive-evidence"] .evidence-material-card > header > b,
.detail-drawer[data-mode="archive-evidence"] .evidence-material-card > footer { font-size: var(--font-xs); }
.detail-drawer[data-mode="archive-evidence"] .evidence-material-origin { grid-template-columns: 108px minmax(0,1fr); margin-top: 10px; padding-top: 9px; }
.detail-drawer[data-mode="archive-evidence"] .evidence-material-card blockquote { margin-top: 10px; font-size: 12.5px; line-height: 1.7; }
.archive-evidence-drawer-sources > p { margin-bottom: 9px; }
.archive-drawer-source-list { display: grid; }
.archive-drawer-source-list > button { display: grid; width: 100%; gap: 5px; padding: 12px 0; border-top: 1px solid #e6eceb; text-align: left; background: #fff; cursor: pointer; }
.archive-drawer-source-list > button > span { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #71848a; font-size: 10.5px; }
.archive-drawer-source-list > button > span b { overflow: hidden; color: #557078; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.archive-drawer-source-list > button time { flex: none; font-variant-numeric: tabular-nums; }
.archive-drawer-source-list > button > strong { color: #203a44; font-size: 13px; line-height: 1.45; }
.archive-drawer-source-list > button > p { display: -webkit-box; overflow: hidden; color: #687c83; font-size: 11.5px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.archive-drawer-source-list > button > em { color: #08796c; font-size: var(--font-xs); font-style: normal; font-weight: 600; }
.archive-drawer-more { width: 100%; min-height: 34px; margin-top: 8px; border: 1px solid #dbe6e3; border-radius: 6px; color: #08796c; background: #f5faf8; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.archive-page .event-assessment-panel,
.archive-page .event-detail-layout.single-progress > .event-assessment-panel { position: static; max-height: none; overflow: hidden; border-color: var(--detail-line); border-radius: 9px; box-shadow: 0 2px 9px rgba(19,50,54,.035); }
.event-assessment-panel > header { display: flex; min-height: 48px; align-items: center; justify-content: flex-start; gap: 7px; padding: 13px 15px 12px; }
.event-assessment-panel > header > div { display: flex; align-items: center; gap: 7px; }
.event-assessment-panel > header i { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; color: #08786b; background: #e9f6f2; font-size: var(--font-xs); font-style: normal; }
.event-assessment-panel > header span { color: #173641; font-size: 16px; font-weight: var(--weight-bold); }
.event-assessment-panel > header small { color: #829095; font-size: 10px; }
.assessment-action { padding: 19px 15px 20px; border-left-width: 0; border-top: 1px solid #f5dfc8; background: linear-gradient(115deg,#fff8ef,#fff3e5); }
.assessment-action.push { border-left: 0; background: linear-gradient(115deg,#fff8ef,#fff2e4); }
.assessment-action > span { color: #7b6953; font-size: 14.5px; font-weight: 700; line-height: 1.4; }
.assessment-action strong { display: block; margin-top: 10px; color: #e2630a; font-size: 24px; font-weight: var(--weight-bold); line-height: 1.25; }
.assessment-action.archive strong { color: #66777d; }
.assessment-action.watch strong,
.assessment-action.pending strong { color: #956719; }
.assessment-action p { margin: 6px 0 0; color: #5b5b55; font-size: 12px; line-height: 1.55; }
.assessment-summary-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 11px; }
.assessment-summary-line > span { display: inline-flex; min-height: 27px; align-items: center; padding: 4px 8px; border-radius: 5px; font-size: 12.5px; font-weight: var(--weight-semibold); line-height: 1.25; }
.assessment-summary-impact { color: #087568; background: #e8f6f2; }
.assessment-summary-impact.impact-high { color: #b75a12; background: #ffead7; }
.assessment-summary-impact.impact-medium { color: #956719; background: #fff4d9; }
.assessment-summary-impact.impact-pending { color: #64767d; background: #edf2f2; }
.assessment-impact,
.assessment-evidence { padding: 12px 14px; border-top: 1px solid #e5ebeb; }
.assessment-impact header span,
.assessment-evidence header > span { color: #526b73; font-size: 12.5px; font-weight: var(--weight-semibold); }
.assessment-impact > div { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; margin-top: 8px; }
.assessment-impact > div span { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 7px; padding: 4px 8px 4px 0; border-radius: 0; background: transparent; }
.assessment-impact > div span + span { padding-left: 11px; border-left: 1px solid #e4eaea; }
.assessment-impact > div small { color: #7b8b90; font-size: 10.5px; }
.assessment-impact > div b { color: #243f49; font-size: 13.5px; }
.assessment-evidence header { align-items: center; }
.assessment-evidence header .verification-state { max-width: 150px; color: #246b9e; font-size: 12.5px; }
.assessment-evidence-summary { margin-top: 6px; color: #64767c; font-size: 11.5px; line-height: 1.5; }
.assessment-evidence > button { margin-top: 6px; color: var(--detail-teal-dark); font-size: 11.5px; }
.assessment-push-reason { padding: 15px 15px 16px; border-top: 1px solid #e5ebeb; }
.assessment-push-reason strong { color: #405d66; font-size: 14px; font-weight: var(--weight-semibold); }
.assessment-push-reason p { margin: 7px 0 0; color: #354f58; font-size: 13.5px; line-height: 1.65; }
.assessment-rationale { border-top: 1px solid #e5ebeb; }
.assessment-rationale > summary { min-height: 41px; padding: 0 14px; }
.assessment-rationale > summary span { color: #61757c; font-size: 11.5px; }
.assessment-rationale > div { padding: 0 14px 13px; }
.assessment-rationale > div > span { font-size: 11.5px; }
.assessment-rationale > div > strong { font-size: 13px; }
.assessment-rationale p { font-size: 11.5px; line-height: 1.55; }
.assessment-boundary { margin: 10px -14px -13px; padding: 10px 14px; }
.assessment-boundary strong { font-size: 11.5px; }
.assessment-boundary p { margin-top: 3px; font-size: 10.5px; }
.event-detail-side .dossier-watchpoints { padding: 15px 14px 16px; }
.event-detail-side .dossier-watchpoints .dossier-section-head h3 { font-size: 15px; }
.event-detail-side .dossier-watchpoints .dossier-section-head div > small { color: #71858c; font-size: 13.5px; line-height: 1.55; }
.event-detail-side .dossier-watchpoints ol { gap: 0; margin-top: 10px; }
.event-detail-side .dossier-watchpoints li { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 9px; padding: 10px 0; border: 0; border-top: 1px solid #edf1f1; border-radius: 0; background: transparent; }
.event-detail-side .dossier-watchpoints li > b { display: grid; width: 19px; height: 19px; place-items: center; margin-top: 1px; border-radius: 50%; color: #fff; background: var(--detail-teal); font-size: 12px; }
.event-detail-side .dossier-watchpoints li > div { min-width: 0; }
.event-detail-side .dossier-watchpoints li strong { color: #294650; font-size: 13.5px; }
.event-detail-side .dossier-watchpoints li p { margin: 4px 0 0; color: #687b81; font-size: 13px; line-height: 1.55; }

/* Six event-detail section titles share one visual rhythm after their decorative icons are removed. */
.dossier-core-fact .dossier-section-head h3,
.dossier-impact .dossier-section-head h3,
.event-timeline-rail > header span,
.event-assessment-panel > header span,
.side-evidence-drawer-card header span,
.event-detail-side .dossier-watchpoints .dossier-section-head h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 1320px) and (min-width: 1101px) {
  .archive-page .route-header { grid-template-columns: minmax(0,13fr) minmax(390px,7fr); column-gap: 28px; padding-right: 22px; padding-left: 22px; }
  .archive-page .archive-content { padding-right: 16px; padding-left: 16px; }
  .archive-page .event-detail-layout,
  .archive-page .event-detail-layout.single-progress { grid-template-columns: minmax(440px,2fr) minmax(200px,1fr) minmax(200px,1fr); gap: 11px; }
  .archive-page .archive-title-stack h1 { font-size: 27px; }
  .archive-metrics { column-gap: 22px; }
  .dossier-section { padding-right: 16px; padding-left: 16px; }
}

@media (max-width: 1100px) {
  .archive-page .route-header {
    grid-template-columns: 1fr;
    row-gap: 16px;
    min-height: 0;
    padding: 18px 18px 19px;
  }
  .archive-header-summary { grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 18px; padding-top: 10px; border-top: 1px solid #edf1f1; }
  .archive-metrics { width: min(100%,520px); }
  .archive-identity-line { max-width: 380px; justify-content: flex-end; padding-top: 0; border-top: 0; text-align: right; }
  .archive-page .event-detail-layout,
  .archive-page .event-detail-layout.single-progress { grid-template-columns: 1fr; max-width: 820px; }
  .archive-page .event-detail-layout:not(.no-timeline-rail) > main,
  .archive-page .event-detail-layout:not(.no-timeline-rail) > .event-detail-side { display: contents; }
  .archive-page .event-detail-layout:not(.no-timeline-rail) .dossier-core-fact { order: 1; }
  .archive-page .event-detail-layout:not(.no-timeline-rail) .event-assessment-panel { order: 2; }
  .archive-page .event-detail-layout:not(.no-timeline-rail) .event-context-rail { order: 3; }
  .archive-page .event-detail-layout:not(.no-timeline-rail) .dossier-impact { order: 4; }
  .archive-page .event-detail-layout:not(.no-timeline-rail) .side-evidence-drawer-card { order: 5; }
  .archive-page .event-detail-layout:not(.no-timeline-rail) .dossier-watchpoints { order: 6; }
  .event-context-rail,
  .event-detail-side { position: static; grid-column: 1; grid-row: auto; }
  .archive-page .event-detail-layout.no-timeline-rail,
  .archive-page .event-detail-layout.single-progress.no-timeline-rail { grid-template-columns: 1fr; max-width: 820px; }
}

@media (max-width: 640px) {
  .archive-page { grid-template-rows: auto minmax(0,1fr); }
  .archive-page .route-header {
    grid-template-columns: 1fr;
    row-gap: 11px;
    padding: 10px 12px 12px;
  }
  .archive-page .archive-title-stack h1 { font-size: 20px; line-height: 1.35; }
  .archive-breadcrumb { gap: 6px; font-size: 11.5px; }
  .archive-breadcrumb-back b { font-size: 11.5px; }
  .archive-page .archive-status-line { gap: 4px; margin-top: 7px; }
  .archive-page .archive-status-line > span { height: 22px; padding: 0 6px; font-size: 10.5px; }
  .archive-header-summary { grid-template-columns: 1fr; align-items: start; gap: 8px; }
  .archive-metrics { width: 100%; column-gap: 12px; }
  .archive-metrics dt { font-size: 10.5px; }
  .archive-metrics dd { font-size: 14px; }
  .archive-identity-line { max-width: none; justify-content: flex-start; gap: 9px; font-size: 14px; text-align: left; }
  .archive-page .archive-tabs { min-height: 45px; padding: 0 12px; overflow-x: auto; }
  .archive-page .archive-tabs button { min-height: 45px; font-size: 12.5px; white-space: nowrap; }
  .archive-page .archive-tabs button + button { margin-left: 13px; }
  .archive-page .archive-content { padding: 10px 9px 24px; }
  .dossier-section { padding: 15px 14px 16px; }
  .dossier-section-head { flex-direction: column; gap: 7px; }
  .dossier-section-head h3 { font-size: 16px; }
  .dossier-section-head > time { padding-left: 0; }
  .core-fact-statement h2 { font-size: 15px; }
  .core-fact-meta.story-fact-grid { grid-template-columns: 1fr; }
  .core-fact-meta.story-fact-grid > span,
  .core-fact-meta.story-fact-grid > span:first-child,
  .core-fact-meta.story-fact-grid > span:last-child { min-height: 0; padding: 10px 12px; border-right: 0; border-bottom: 1px solid #e1e9e8; }
  .core-fact-meta.story-fact-grid > span:last-child { border-bottom: 0; }
  .core-fact-meta.story-fact-grid > span:not(:last-child)::after { display: none; }
  .event-time-warning { align-items: flex-start; flex-direction: column; }
  .dossier-impact-summary { justify-content: flex-start; padding-left: 0; }
  .impact-decision-chain { grid-template-columns: 1fr; gap: 7px; }
  .impact-decision-chain > i { width: 20px; height: 32px; justify-self: center; transform: none; }
  .impact-decision-chain > i::before { top: 1px; right: auto; bottom: 7px; left: 50%; width: 4px; height: auto; background: currentColor; transform: translateX(-50%); }
  .impact-decision-chain > i::after { top: auto; right: auto; bottom: 0; left: 50%; border-top: 9px solid currentColor; border-right: 6px solid transparent; border-bottom: 0; border-left: 6px solid transparent; transform: translateX(-50%); }
  .impact-uncertainty-line { grid-template-columns: 1fr; gap: 4px; }
  .dossier-evidence-overview .evidence-material-flow.has-terminal { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .dossier-evidence-overview .evidence-material-flow > i { display: none; }
  .dossier-evidence-overview .evidence-material-flow > span { min-height: 62px; padding: 8px; border: 1px solid #e2eae8; border-radius: 6px; background: #fff; }
  .evidence-index-row { grid-template-columns: 22px minmax(0,1fr); }
  .evidence-index-row > time { grid-column: 2; text-align: left; }
  .event-assessment-panel > header { align-items: flex-start; }
  .event-assessment-panel > header small { max-width: 118px; text-align: right; }
}

/* System run: one global run receipt, one selected record, and bounded feed pages. */
.replay-workspace .replay-title-block {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 5px 10px;
  min-width: 0;
  padding-right: 18px;
  border-right: 1px solid #e0e8e5;
}
.replay-workspace .replay-title-block > div { display: contents; }
.replay-workspace .replay-title-block .replay-surface-title {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  padding: 0;
  border: 0;
}
.replay-workspace #replayRunState {
  grid-column: 1;
  grid-row: 2;
  overflow: hidden;
  color: #087568;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.replay-workspace #replayRunNote {
  grid-column: 1 / 3;
  grid-row: 3;
  overflow: hidden;
  color: #71858b;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.replay-workspace #opsMetricsButton {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  min-height: 30px;
  padding: 0 10px;
  border-color: #cddfd9;
  color: #087568;
  background: #f7fbfa;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}
.replay-workspace #opsMetricsButton:hover { border-color: #8fbeaf; background: #eef8f5; }

.replay-workspace .feed-pagination {
  flex: none;
  display: block;
  min-height: 58px;
  padding: 0;
  background: transparent;
}
.replay-workspace .feed-pagination[hidden] { display: none; }
.replay-workspace .feed-pagination > .list-pagination {
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 10px;
  min-height: 58px;
  padding: 0 14px;
  border-top: 1px solid #dfe8e5;
  color: #63777e;
  background: #f8fbfa;
  font-size: 13px;
}
.replay-workspace .feed-pagination > .list-pagination > span { font-weight: 500; }
.replay-workspace .feed-pagination .pagination-pages { gap: 3px; }
.replay-workspace .feed-pagination .pagination-pages button {
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #526a72;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.replay-workspace .feed-pagination .pagination-pages button:hover:not(:disabled) { border-color: #b9d8d0; background: #fff; }
.replay-workspace .feed-pagination .pagination-pages button.active { border-color: var(--brand); color: #fff; background: var(--brand); font-weight: 700; }
.replay-workspace .feed-pagination .pagination-pages button:disabled { cursor: default; opacity: .42; }
.replay-workspace .feed-pagination .pagination-pages button.active:disabled { opacity: 1; }
.replay-workspace .feed-pagination .pagination-ellipsis { color: #71848b; font-size: 13px; }
.replay-workspace .feed-pagination .pagination-jump { gap: 5px; color: #71848b; font-size: 13px; font-weight: 500; }
.replay-workspace .feed-pagination .pagination-jump input { width: 50px; height: 34px; border-color: #d7e1df; border-radius: 7px; font-size: 13px; }
.replay-workspace .decision-toggle:disabled {
  border-color: #dce4e2;
  color: #82908d;
  background: #f4f6f5;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}
.replay-workspace .mobile-tabs button:disabled {
  color: #98a5a2;
  background: #f6f8f7;
  cursor: not-allowed;
}

.detail-drawer[data-mode="ops"] .ops-grid {
  overflow: hidden;
  border: 1px solid #dfe7e5;
  border-radius: 8px;
  background: #fff;
}
.detail-drawer[data-mode="ops"] .ops-cell { gap: 5px; padding: 13px 12px; }
.detail-drawer[data-mode="ops"] .ops-cell span { color: #708188; font-size: 12.5px; }
.detail-drawer[data-mode="ops"] .ops-cell strong { color: #203b45; font-size: 14px; line-height: 1.4; }
.detail-drawer[data-mode="ops"] .activity-detail > div { min-height: 43px; }
.detail-drawer[data-mode="ops"] .activity-detail span,
.detail-drawer[data-mode="ops"] .activity-detail time { font-size: 12.5px; }
.detail-drawer[data-mode="ops"] .activity-detail span b { margin-right: 7px; color: #173b42; font-weight: 700; }

@media (min-width: 981px) {
  .replay-workspace .dashboard {
    grid-template-rows: 80px 78px minmax(0,1fr);
    gap: 9px;
    padding: 0 28px 70px;
  }
  .replay-workspace .arrival-strip {
    grid-template-columns: 268px minmax(300px,.9fr) minmax(420px,1.1fr);
    min-height: 80px;
  }
  .replay-workspace .arrival-copy { padding-right: 20px; padding-left: 19px; }
  .replay-workspace .arrival-time span,
  .replay-workspace .arrival-progress-label { font-size: 13px; }
  .replay-workspace .arrival-time time { font-size: 15px; }
  .replay-workspace .arrival-copy strong { font-size: 14.5px; }
  .replay-workspace .arrival-copy > div:last-child span { font-size: 12.5px; }
  .replay-workspace .arrival-progress { padding-left: 20px; }

  .replay-workspace .stats-strip {
    grid-template-columns: repeat(6,minmax(0,1fr));
    min-height: 78px;
  }
  .replay-workspace .stats-strip > div { min-width: 0; padding: 0 clamp(12px,1.15vw,21px); }
  .replay-workspace .stats-strip strong { font-size: clamp(21px,1.35vw,25px); }
  .replay-workspace .stats-strip span { font-size: 13.5px; }
  .replay-workspace .stats-strip small { font-size: 12px; }
  .replay-workspace .stats-strip > div:nth-child(2) strong,
  .replay-workspace .stats-strip > div:nth-child(3) strong,
  .replay-workspace .stats-strip > div:nth-child(5) strong { color: #10806e; }
  .replay-workspace .stats-strip > div:nth-child(4) strong,
  .replay-workspace .stats-strip .pending-stat strong { color: #ae7116; }

  .replay-workspace .workbench { grid-template-columns: clamp(370px,24vw,430px) minmax(0,1fr); }
  .replay-workspace .panel-header { min-height: 76px; padding: 13px 16px; }
  .replay-workspace .panel-header h2 { font-size: 17px; line-height: 1.3; }
  .replay-workspace .panel-header small { color: #6f8289; font-size: 13px; }
  .replay-workspace .section-kicker { font-size: 12.5px; }
  .replay-workspace .filter-row { min-height: 50px; align-items: center; padding: 8px 11px; }
  .replay-workspace .filter-chip { min-height: 32px; padding: 0 8px; font-size: 13px; }
  .replay-workspace .news-card-main { padding: 14px 15px; }
  .replay-workspace .news-item h3 { font-size: 14.5px; line-height: 1.55; }
  .replay-workspace .news-item p { font-size: 13px; line-height: 1.62; }
  .replay-workspace .news-meta,
  .replay-workspace .news-footer { font-size: 12.5px; }
  .replay-workspace .memory-header .decision-toggle { min-height: 36px; font-size: 13px; }
}

@media (max-width: 1219px) and (min-width: 981px) {
  .replay-workspace .dashboard { grid-template-rows: 80px 112px minmax(0,1fr); }
  .replay-workspace .arrival-strip { grid-template-columns: 260px minmax(0,1fr); }
  .replay-workspace .arrival-progress { display: none; }
  .replay-workspace .stats-strip { grid-template-columns: repeat(3,minmax(0,1fr)); min-height: 112px; }
  .replay-workspace .stats-strip > div { min-height: 55px; }
  .replay-workspace .stats-strip > div:nth-child(3n) { border-right: 0; }
  .replay-workspace .stats-strip > div:nth-child(-n+3) { border-bottom: 1px solid #e2e9e7; }
  .replay-workspace .workbench { grid-template-columns: 330px minmax(0,1fr); }
  .replay-workspace .filter-chip { padding-right: 5px; padding-left: 5px; font-size: 12.5px; }
}

@media (max-width: 980px) {
  .replay-workspace .dashboard { grid-template-rows: 58px 54px 38px minmax(0,1fr); gap: 7px; padding: 8px 8px 68px; }
  .replay-workspace .arrival-strip { grid-template-columns: minmax(0,1fr); min-height: 58px; }
  .replay-workspace .arrival-copy,
  .replay-workspace .arrival-progress { display: none; }
  .replay-workspace .replay-title-block { grid-template-columns: minmax(0,1fr) auto; padding: 0 12px; border-right: 0; }
  .replay-workspace .replay-title-block .replay-surface-title { display: block; font-size: 20px; }
  .replay-workspace #replayRunNote { display: none; }
  .replay-workspace .stats-strip { grid-template-columns: repeat(3,minmax(0,1fr)); min-height: 54px; }
  .replay-workspace .stats-strip > div { padding: 0 8px; }
  .replay-workspace .stats-strip > div:nth-child(n+4) { display: none; }
  .replay-workspace .stats-strip strong { font-size: 18px; }
  .replay-workspace .stats-strip span { font-size: 11.5px; }
  .replay-workspace .stats-strip small { display: none; }
}

@media (max-width: 520px) {
  .replay-workspace .dashboard { grid-template-rows: 58px 62px 38px minmax(0,1fr); }
  .replay-workspace .stats-strip > div {
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: auto auto;
    align-content: center;
    justify-items: center;
    gap: 2px;
    text-align: center;
  }
  .replay-workspace .stats-strip strong { grid-column: 1; grid-row: 1; font-size: 18px; }
  .replay-workspace .stats-strip span { grid-column: 1; grid-row: 2; font-size: var(--font-xs); white-space: nowrap; }
  .replay-workspace .filter-row { padding-right: 7px; padding-left: 7px; }
  .replay-workspace .filter-chip { min-height: 30px; padding-right: 5px; padding-left: 5px; font-size: 12px; }
  .replay-workspace .replay-dock { justify-content: stretch; gap: 6px; padding-right: 10px; padding-left: 10px; }
  .replay-workspace .replay-progress { flex: 1 1 auto; min-width: 0; }
  .replay-workspace .replay-progress > span,
  .replay-workspace .replay-progress small { overflow: hidden; font-size: var(--font-xs); text-overflow: ellipsis; white-space: nowrap; }
  .replay-workspace .replay-dock button,
  .replay-workspace .replay-dock select { flex: none; min-height: 32px; padding-right: 7px; padding-left: 7px; }
  .replay-workspace #stepButton { display: none; }
  .replay-workspace .feed-pagination > .list-pagination { grid-template-columns: minmax(0,1fr); padding: 0 8px; }
  .replay-workspace .feed-pagination > .list-pagination > span,
  .replay-workspace .feed-pagination .pagination-jump { display: none; }
  .replay-workspace .feed-pagination .pagination-pages { justify-content: center; }
}

/* System run v3: completed-run receipt, full archive, and one-article result. */
.replay-workspace .dashboard {
  grid-template-rows: 84px 86px minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  padding-bottom: 14px;
  background: #f3f7f6;
}
.replay-workspace .arrival-strip {
  display: block;
  min-height: 84px;
  border-color: #d8e3e0;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(34, 69, 63, .035);
}
.replay-workspace .replay-title-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 24px;
  border: 0;
}
.replay-workspace .replay-title-copy {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}
.replay-workspace .replay-title-block > .replay-title-copy { display: flex; }
.replay-workspace .replay-title-copy .replay-surface-title {
  display: block;
  margin: 0;
  padding-right: 24px;
  border-right: 1px solid #dce6e3;
  color: #102f38;
  font-size: 24px;
  font-weight: var(--weight-bold);
  letter-spacing: 0;
}
.replay-workspace .replay-title-copy > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.replay-workspace #replayRunState {
  color: #087d69;
  font-size: 15px;
  font-weight: 700;
}
.replay-workspace #replayRunNote {
  display: block;
  color: #6c8086;
  font-size: 13px;
  font-weight: 400;
}
.replay-workspace .replay-title-block > .replay-title-actions { display: flex; gap: 9px; }
.replay-workspace .replay-title-actions .quiet-button {
  min-height: 38px;
  padding: 0 15px;
  border-color: #cbdcd7;
  border-radius: 8px;
  color: #275c53;
  font-size: 13px;
  font-weight: var(--weight-semibold);
}
.replay-workspace #processReplayButton {
  border-color: #a9cfc5;
  color: #087d69;
  background: #eef8f5;
}
.replay-workspace .replay-title-actions .quiet-button:hover:not(:disabled) {
  border-color: #7eb6a7;
  background: #e9f6f2;
}
.replay-workspace .replay-title-actions .quiet-button:disabled { opacity: .45; cursor: not-allowed; }

.replay-workspace .stats-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 86px;
  border-color: #d8e3e0;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(34, 69, 63, .03);
}
.replay-workspace .stats-strip > div,
.replay-workspace .stats-strip > div:nth-child(n) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-content: center;
  justify-content: stretch;
  gap: 2px;
  min-height: 0;
  padding: 0 clamp(18px, 2vw, 32px);
  border-right: 1px solid #e0e8e6;
  border-bottom: 0;
}
.replay-workspace .stats-strip > div:last-child { border-right: 0; }
.replay-workspace .stats-strip strong,
.replay-workspace .stats-strip > div:nth-child(n) strong {
  grid-column: 1;
  grid-row: 1;
  color: #0b6558;
  font-size: clamp(23px, 1.6vw, 28px);
  line-height: 1.15;
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
}
.replay-workspace .stats-strip span,
.replay-workspace .stats-strip > div:nth-child(n) span {
  grid-column: 1;
  grid-row: 2;
  color: #274a51;
  font-size: 13.5px;
  font-weight: var(--weight-semibold);
}
.replay-workspace .stats-strip small,
.replay-workspace .stats-strip > div:nth-child(n) small {
  display: block;
  grid-column: 1;
  grid-row: 3;
  color: #849499;
  font-size: 12px;
}

.replay-workspace .workbench {
  grid-template-columns: minmax(350px, .52fr) minmax(0, 1fr);
  border-color: #d8e3e0;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(34, 69, 63, .035);
}
.replay-workspace .stream-panel { border-right: 1px solid #dce6e3; background: #fff; }
.replay-workspace .memory-panel {
  grid-template-rows: 78px minmax(0, 1fr);
  border-right: 0;
  background: #fbfdfc;
}
.replay-workspace .decision-panel,
.replay-workspace .memory-header .panel-actions { display: none !important; }
.replay-workspace .panel-header { min-height: 78px; padding: 13px 18px; }
.replay-workspace .panel-header h2 { color: #16343d; font-size: 18px; }
.replay-workspace .panel-header small { margin-top: 5px; color: #71848a; font-size: 13px; }
.replay-workspace .section-kicker { margin-bottom: 5px; color: #168171; font-size: 12.5px; }

.replay-workspace .system-feed-search {
  position: relative;
  padding: 11px 13px 8px;
  background: #fff;
}
.replay-workspace .system-feed-search label::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 26px;
  top: 24px;
  width: 10px;
  height: 10px;
  border: 1.5px solid #78908b;
  border-radius: 50%;
}
.replay-workspace .system-feed-search label::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 35px;
  top: 34px;
  width: 5px;
  height: 1.5px;
  background: #78908b;
  transform: rotate(45deg);
}
.replay-workspace .system-feed-search input {
  width: 100%;
  height: 39px;
  padding: 0 38px 0 36px;
  border: 1px solid #d7e2df;
  border-radius: 8px;
  color: #17343c;
  background: #f9fbfa;
  font-size: 13px;
}
.replay-workspace .system-feed-search input::placeholder { color: #8a999d; }
.replay-workspace .system-feed-search input:focus {
  border-color: #87bbae;
  background: #fff;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(9, 129, 109, .07);
}
.replay-workspace .system-feed-search button {
  position: absolute;
  right: 20px;
  top: 18px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  color: #70827f;
  background: #edf3f1;
  font-size: 16px;
  cursor: pointer;
}
.replay-workspace .filter-row {
  gap: 4px;
  min-height: 49px;
  padding: 6px 12px 9px;
  overflow-x: auto;
  border-bottom-color: #e3ebe9;
  background: #fff;
  scrollbar-width: none;
}
.replay-workspace .filter-chip {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #657a80;
  font-size: 12.5px;
  white-space: nowrap;
}
.replay-workspace .filter-chip b { margin-left: 3px; color: inherit; font-size: 11.5px; font-weight: 600; }
.replay-workspace .filter-chip.active { border-color: #c9ddd7; color: #076f5e; background: #edf7f4; }

.replay-workspace .news-feed { background: #fff; }
.replay-workspace .news-item { border-bottom-color: #e6edeb; }
.replay-workspace .news-item:hover { background: #f8fbfa; }
.replay-workspace .news-item.active { background: #f0f8f5; box-shadow: inset 4px 0 #15917c; }
.replay-workspace .news-card-main { padding: 15px 17px 14px; }
.replay-workspace .news-meta { color: #778a8f; font-size: 12.5px; }
.replay-workspace .news-meta > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.replay-workspace .news-item h3 {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: #17343d;
  font-size: 15px;
  line-height: 1.5;
  font-weight: var(--weight-semibold);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.replay-workspace .news-item .system-record-context {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  color: #397069;
  font-size: 12.5px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.replay-workspace .news-footer { justify-content: flex-start; margin-top: 10px; font-size: 12.5px; }
.replay-workspace .news-status { padding: 4px 7px; border-radius: 5px; }
.replay-workspace .news-status.complete { color: #087965; background: #e8f5f1; }
.replay-workspace .news-status.pending { color: #a86508; background: #fff3df; }
.replay-workspace .news-status.no-observation { color: #64767b; background: #eff3f2; }
.replay-workspace .system-record-note { color: #a86508; font-size: 12px; font-weight: 600; }
.replay-workspace .system-feed-loading { padding: 4px 0; }
.replay-workspace .system-feed-skeleton { display: grid; gap: 9px; padding: 17px; border-bottom: 1px solid #edf1f0; }
.replay-workspace .system-feed-skeleton i,
.replay-workspace .system-feed-skeleton span,
.replay-workspace .system-feed-skeleton b { display: block; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #edf2f0, #f7f9f8, #edf2f0); background-size: 200% 100%; animation: system-shimmer 1.3s infinite; }
.replay-workspace .system-feed-skeleton i { width: 42%; height: 8px; }
.replay-workspace .system-feed-skeleton span { width: 88%; height: 14px; }
.replay-workspace .system-feed-skeleton b { width: 58%; }
@keyframes system-shimmer { to { background-position: -200% 0; } }
.replay-workspace .event-empty.article-result-state {
  display: block;
  min-height: 0;
  padding: 0;
  overflow-y: auto;
  text-align: left;
  background: #fbfdfc;
}
.replay-workspace .system-result-card {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 3vw, 42px);
}
.replay-workspace .system-result-document { padding-bottom: 22px; border-bottom: 1px solid #e1e9e7; }
.replay-workspace .system-result-document > span { color: #71848a; font-size: 13px; }
.replay-workspace .system-result-document h2 {
  margin: 9px 0 0;
  color: #12333c;
  font-size: clamp(19px, 1.55vw, 24px);
  line-height: 1.45;
  font-weight: var(--weight-bold);
  letter-spacing: 0;
}
.replay-workspace .system-result-conclusion {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid #cfe3dd;
  border-radius: 10px;
  background: #f0f8f5;
}
.replay-workspace .system-result-conclusion > i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: #15917c;
  font-size: 17px;
  font-style: normal;
  font-weight: var(--weight-bold);
}
.replay-workspace .has-pending .system-result-conclusion { border-color: #efd8ad; background: #fff9ef; }
.replay-workspace .has-pending .system-result-conclusion > i { background: #d28a1b; }
.replay-workspace .no-trigger .system-result-conclusion { border-color: #dce5e3; background: #f5f8f7; }
.replay-workspace .no-trigger .system-result-conclusion > i { background: #83938f; }
.replay-workspace .system-result-conclusion span { color: #135f54; font-size: 14px; font-weight: 700; }
.replay-workspace .has-pending .system-result-conclusion span { color: #985b07; }
.replay-workspace .no-trigger .system-result-conclusion span { color: #5d716f; }
.replay-workspace .system-result-conclusion p { margin: 5px 0 0; color: #2d5056; font-size: 15px; line-height: 1.75; }

.replay-workspace .system-process-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
  margin-top: 24px;
}
.replay-workspace .system-process-step {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 4px 9px;
  align-content: center;
  min-height: 92px;
  padding: 13px;
  border: 1px solid #d8e5e1;
  border-radius: 9px;
  background: #fff;
}
.replay-workspace .system-process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 44px;
  right: -26px;
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: #62a99b;
}
.replay-workspace .system-process-step:not(:last-child)::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 40px;
  right: -29px;
  border-top: 5.5px solid transparent;
  border-bottom: 5.5px solid transparent;
  border-left: 7px solid #4f998a;
}
.replay-workspace .system-process-step > i {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  align-self: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: #168b77;
  font-size: 12.5px;
  font-style: normal;
  font-weight: var(--weight-bold);
}
.replay-workspace .system-process-step > span { color: #6d8085; font-size: 12.5px; }
.replay-workspace .system-process-step > strong { color: #173d43; font-size: 14px; line-height: 1.45; font-weight: var(--weight-semibold); }
.replay-workspace .system-process-step.pending { border-color: #edd8b1; background: #fffaf1; }
.replay-workspace .system-process-step.pending > i { background: #d28a1b; }
.replay-workspace .system-process-step.pending > strong { color: #9a600b; }
.replay-workspace .system-process-step.na,
.replay-workspace .system-process-step.neutral { border-color: #e1e7e5; background: #f6f8f7; }
.replay-workspace .system-process-step.na > i,
.replay-workspace .system-process-step.neutral > i { color: #6f817d; background: #e2e9e7; }
.replay-workspace .system-process-step.na > strong,
.replay-workspace .system-process-step.neutral > strong { color: #778783; }
.replay-workspace .system-process-step.na:not(:last-child)::after { background: #bdc9c6; }
.replay-workspace .system-process-step.neutral:not(:last-child)::after { background: #bdc9c6; }
.replay-workspace .system-process-step.na:not(:last-child)::before,
.replay-workspace .system-process-step.neutral:not(:last-child)::before { border-left-color: #aab9b5; }

.replay-workspace .system-destination-card {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid #d8e4e1;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(40, 72, 66, .045);
}
.replay-workspace .system-destination-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #e2eae8;
  background: #f3f9f7;
}
.replay-workspace .system-destination-card > header div { display: grid; gap: 4px; }
.replay-workspace .system-destination-card > header span { color: #71848a; font-size: 12.5px; }
.replay-workspace .system-destination-card > header strong { color: #0a7463; font-size: 15px; }
.replay-workspace .system-destination-card > header b { padding: 5px 8px; border-radius: 5px; color: #27635a; background: #e4f2ee; font-size: 12px; }
.replay-workspace .system-destination-card > h3 { margin: 20px 20px 0; color: #12333c; font-size: 19px; line-height: 1.45; }
.replay-workspace .system-destination-card > p { margin: 10px 20px 0; color: #3d5b61; font-size: 14.5px; line-height: 1.75; }
.replay-workspace .system-event-change { display: grid; gap: 5px; margin: 18px 20px 0; padding: 14px 16px; border-left: 3px solid #54a594; background: #f5faf8; }
.replay-workspace .system-event-change span { color: #71848a; font-size: 12.5px; }
.replay-workspace .system-event-change strong { color: #244c50; font-size: 14px; line-height: 1.55; }
.replay-workspace .system-destination-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 18px 20px 0; padding: 15px 0; border-top: 1px solid #e6ecea; }
.replay-workspace .system-destination-card dl > div { padding: 0 16px; border-right: 1px solid #e5ecea; }
.replay-workspace .system-destination-card dl > div:first-child { padding-left: 0; }
.replay-workspace .system-destination-card dl > div:last-child { border-right: 0; }
.replay-workspace .system-destination-card dt { color: #7b8d91; font-size: 12px; }
.replay-workspace .system-destination-card dd { margin-top: 5px; overflow: hidden; color: #284950; font-size: 13.5px; font-weight: var(--weight-semibold); text-overflow: ellipsis; white-space: nowrap; }
.replay-workspace .system-destination-card > footer { display: flex; justify-content: flex-end; padding: 14px 20px 18px; }
.replay-workspace .system-destination-card > footer button { min-height: 38px; padding: 0 13px; border: 1px solid #b9d6cf; border-radius: 7px; color: #087763; background: #eef8f5; font-size: 13px; font-weight: var(--weight-semibold); cursor: pointer; }
.replay-workspace .system-destination-card > footer button:hover { border-color: #7fb5a8; background: #e7f5f1; }
.replay-workspace .pending-destination > header { background: #fff8ec; }
.replay-workspace .pending-destination > header strong,
.replay-workspace .pending-destination > header b { color: #9b5e08; }
.replay-workspace .pending-destination > header b { background: #ffedcf; }
.replay-workspace .neutral-destination > header { background: #f5f8f7; }
.replay-workspace .neutral-destination > header strong { color: #536c69; }
.replay-workspace .neutral-destination > header b { color: #607571; background: #e8eeec; }
.replay-workspace .system-result-loading { display: grid; place-items: center; gap: 8px; min-height: 360px; color: #6d817f; text-align: center; }
.replay-workspace .system-result-loading i { width: 28px; height: 28px; border: 3px solid #d4e3df; border-top-color: #168b77; border-radius: 50%; animation: system-spin .8s linear infinite; }
.replay-workspace .system-result-loading strong { color: #244a4e; font-size: 16px; }
.replay-workspace .system-result-loading span { font-size: 13px; }
@keyframes system-spin { to { transform: rotate(360deg); } }

.detail-drawer[data-mode="ops"] .ops-context-note { background: #f3f8f6; }
.detail-drawer[data-mode="ops"] .ops-context-note p { margin-top: 7px; color: #536d70; line-height: 1.7; }
.detail-drawer[data-mode="ops"] .ops-cell small { display: block; margin-top: 5px; color: #879590; font-size: 11.5px; font-weight: 400; }
.detail-drawer[data-mode="article"][data-tab="trace"] { grid-template-rows: 72px minmax(0, 1fr); }
.detail-drawer[data-mode="article"][data-tab="trace"] .drawer-content { grid-row: 2; }
.detail-drawer[data-mode="article"][data-tab="trace"] .article-replay-player {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid #cfe2dd;
  border-radius: 10px;
  background: linear-gradient(135deg, #f4faf8 0%, #fbfdfc 100%);
  box-shadow: 0 8px 24px rgba(28, 78, 68, .06);
}
.article-replay-player > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.article-replay-player > header > div { display: grid; gap: 5px; min-width: 0; }
.article-replay-player > header span { color: #668079; font-size: 12.5px; }
.article-replay-player > header strong { overflow: hidden; color: #17473f; font-size: 15px; line-height: 1.45; font-weight: var(--weight-semibold); text-overflow: ellipsis; white-space: nowrap; }
.article-replay-player > header > b { flex: none; color: #087d69; font-size: 14px; font-weight: var(--weight-bold); font-variant-numeric: tabular-nums; }
.article-replay-progress { height: 6px; margin-top: 13px; overflow: hidden; border-radius: 999px; background: #dfeae7; }
.article-replay-progress > i { display: block; height: 100%; border-radius: inherit; background: #15927d; transition: width .25s ease; }
.article-replay-player > footer {
  display: grid;
  grid-template-columns: auto auto auto minmax(108px, 1fr);
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}
.article-replay-player button,
.article-replay-player select {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #c9dad6;
  border-radius: 7px;
  color: #315a53;
  background: #fff;
  font-size: 12.5px;
  font-weight: var(--weight-semibold);
}
.article-replay-player button { cursor: pointer; }
.article-replay-player button:hover:not(:disabled) { border-color: #82b8aa; background: #edf7f4; }
.article-replay-player button.primary { border-color: #138874; color: #fff; background: #138874; }
.article-replay-player button.primary:hover:not(:disabled) { border-color: #087461; background: #087461; }
.article-replay-player button:disabled { opacity: .42; cursor: not-allowed; }
.article-replay-player label { display: flex; align-items: center; justify-content: flex-end; gap: 7px; color: #6a7f7a; font-size: 12px; }
.article-replay-player select { min-width: 74px; padding-right: 7px; padding-left: 8px; cursor: pointer; }
.article-replay-player > p { margin: 11px 0 0; color: #738783; font-size: 12px; line-height: 1.55; }
.article-replay-trace { margin-top: 0; }
.article-replay-trace .trace-row {
  margin: 0 -6px;
  padding: 7px 6px;
  border-radius: 7px;
  transition: color .22s ease, background-color .22s ease, opacity .22s ease;
}
.article-replay-trace .trace-row.is-waiting { opacity: .43; }
.article-replay-trace .trace-row.is-waiting > i { background: #b9c9c5; box-shadow: 0 0 0 3px #edf2f0; }
.article-replay-trace .trace-row.is-waiting > i::after { background: #dce5e2; }
.article-replay-trace .trace-row.is-active { opacity: 1; background: #edf8f5; }
.article-replay-trace .trace-row.is-active > i { background: #0f947e; animation: article-trace-pulse 1s ease-in-out infinite; }
.article-replay-trace .trace-row.is-active strong { color: #087461; }
.article-replay-trace .trace-row.is-complete { opacity: 1; }
.article-replay-trace .trace-row.is-complete > i { background: #15927d; }
@keyframes article-trace-pulse {
  0%, 100% { box-shadow: 0 0 0 3px #d9eee9; }
  50% { box-shadow: 0 0 0 7px rgba(21, 146, 125, .14); }
}

@media (max-width: 1380px) and (min-width: 981px) {
  .replay-workspace .dashboard { grid-template-rows: 78px 82px minmax(0, 1fr); }
  .replay-workspace .arrival-strip { min-height: 78px; }
  .replay-workspace .workbench { grid-template-columns: minmax(340px, .48fr) minmax(0, 1fr); }
  .replay-workspace .system-process-path { gap: 25px; }
  .replay-workspace .system-process-step { padding: 11px 9px; }
  .replay-workspace .system-process-step:not(:last-child)::after { right: -20px; width: 14px; }
  .replay-workspace .system-process-step:not(:last-child)::before { right: -23px; }
}

@media (max-width: 1220px) and (min-width: 981px) {
  .replay-workspace .system-process-path { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .replay-workspace .system-process-step { min-height: 78px; padding: 12px; }
  .replay-workspace .system-process-step:not(:last-child)::after,
  .replay-workspace .system-process-step:not(:last-child)::before { display: none; }
}

@media (max-width: 980px) {
  .replay-workspace .dashboard {
    grid-template-rows: 66px 72px 40px minmax(0, 1fr);
    gap: 8px;
    padding: 9px;
  }
  .replay-workspace .arrival-strip { min-height: 66px; }
  .replay-workspace .replay-title-block { padding: 0 14px; }
  .replay-workspace .replay-title-copy { gap: 14px; }
  .replay-workspace .replay-title-copy .replay-surface-title { padding-right: 14px; font-size: 20px; }
  .replay-workspace #replayRunState { font-size: 13.5px; }
  .replay-workspace #replayRunNote { display: none; }
  .replay-workspace .replay-title-actions .quiet-button { min-height: 34px; padding: 0 10px; font-size: 12px; }
  .replay-workspace .stats-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: 72px; }
  .replay-workspace .stats-strip > div,
  .replay-workspace .stats-strip > div:nth-child(n) { display: grid; min-height: 0; padding: 0 10px; border-right: 1px solid #e0e8e6; border-bottom: 0; }
  .replay-workspace .stats-strip > div:last-child { border-right: 0; }
  .replay-workspace .stats-strip strong,
  .replay-workspace .stats-strip > div:nth-child(n) strong { font-size: 19px; }
  .replay-workspace .stats-strip span,
  .replay-workspace .stats-strip > div:nth-child(n) span { font-size: 11.5px; white-space: nowrap; }
  .replay-workspace .stats-strip small,
  .replay-workspace .stats-strip > div:nth-child(n) small { display: none; }
  .replay-workspace .mobile-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .replay-workspace .system-result-card { padding: 24px 20px 32px; }
  .replay-workspace .system-process-path { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .replay-workspace .system-process-step:not(:last-child)::after,
  .replay-workspace .system-process-step:not(:last-child)::before { display: none; }
}

@media (max-width: 560px) {
  .replay-workspace .dashboard { grid-template-rows: 64px 106px 40px minmax(0, 1fr); }
  .replay-workspace .replay-title-copy { gap: 9px; }
  .replay-workspace .replay-title-block .replay-title-copy .replay-surface-title { display: none; }
  .replay-workspace .replay-title-copy > div { display: grid; }
  .replay-workspace #replayRunState { font-size: 13px; white-space: nowrap; }
  .replay-workspace .replay-title-actions { gap: 5px; }
  .replay-workspace .replay-title-actions .quiet-button { padding: 0 8px; }
  .replay-workspace .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 106px; }
  .replay-workspace .stats-strip > div,
  .replay-workspace .stats-strip > div:nth-child(n) { min-height: 53px; border-bottom: 1px solid #e5ecea; }
  .replay-workspace .stats-strip > div:nth-child(2n) { border-right: 0; }
  .replay-workspace .stats-strip > div:nth-child(n+3) { border-bottom: 0; }
  .replay-workspace .stats-strip strong,
  .replay-workspace .stats-strip > div:nth-child(n) strong { font-size: 18px; }
  .replay-workspace .panel-header { min-height: 72px; padding: 12px 14px; }
  .replay-workspace .memory-panel { grid-template-rows: 72px minmax(0, 1fr); }
  .replay-workspace .system-result-card { padding: 20px 14px 28px; }
  .replay-workspace .system-result-document h2 { font-size: 18px; }
  .replay-workspace .system-result-conclusion { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 15px; }
  .replay-workspace .system-result-conclusion > i { width: 30px; height: 30px; }
  .replay-workspace .system-result-conclusion p { font-size: 14px; }
  .replay-workspace .system-process-path { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .replay-workspace .system-process-step { min-height: 72px; }
  .replay-workspace .system-destination-card > header,
  .replay-workspace .system-destination-card > footer { padding-right: 15px; padding-left: 15px; }
  .replay-workspace .system-destination-card > h3,
  .replay-workspace .system-destination-card > p,
  .replay-workspace .system-event-change,
  .replay-workspace .system-destination-card dl { margin-right: 15px; margin-left: 15px; }
  .replay-workspace .system-destination-card dl { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .replay-workspace .system-destination-card dl > div,
  .replay-workspace .system-destination-card dl > div:first-child { padding: 0; border-right: 0; }
  .article-replay-player > footer { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .article-replay-player button { padding: 0 7px; }
  .article-replay-player label { grid-column: 1 / -1; justify-content: space-between; margin-top: 2px; }
  .article-replay-player select { flex: 0 0 92px; }
}

@media (prefers-reduced-motion: reduce) {
  .article-replay-progress > i,
  .article-replay-trace .trace-row { transition: none; }
  .article-replay-trace .trace-row.is-active > i { animation: none; }
}

/* Global run replay: a quiet bottom toolbar, never a floating content card. */
.replay-workspace .dashboard { padding-bottom: 56px; }
.replay-workspace .replay-dock {
  left: var(--rail-width);
  right: 0;
  bottom: 0;
  display: flex !important;
  justify-content: center;
  width: auto;
  min-height: 54px;
  padding: 6px clamp(16px, 2vw, 30px);
  border: 0;
  border-top: 1px solid #d7e2df;
  border-radius: 0;
  background: rgba(255, 255, 255, .985);
  box-shadow: 0 -5px 18px rgba(22, 60, 53, .07);
  backdrop-filter: none;
}
.replay-workspace.route-library .replay-dock,
.replay-workspace.route-archive .replay-dock { display: none !important; }
.replay-workspace .replay-progress {
  flex: 0 1 500px;
  min-width: 260px;
  max-width: 500px;
}
.replay-workspace .replay-progress > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.replay-workspace .replay-progress > header strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #244b45;
  font-size: 12.5px;
  font-weight: var(--weight-semibold);
}
.replay-workspace .replay-progress > header strong i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7ca79e;
  box-shadow: 0 0 0 2px #e7f1ee;
}
.replay-workspace .replay-dock.is-playing .replay-progress > header strong i {
  background: #11927c;
  animation: global-replay-pulse 1.2s ease-in-out infinite;
}
.replay-workspace .replay-progress > header span {
  color: #087966;
  font-size: 12.5px;
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.replay-workspace .replay-progress small {
  margin-top: 1px;
  color: #71847f;
  font-size: 11.5px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.replay-workspace .replay-progress > div {
  height: 2px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe9e6;
}
.replay-workspace .replay-progress i { border-radius: inherit; background: #15927d; transition: width .25s ease; }
.replay-workspace .replay-dock button,
.replay-workspace .replay-dock select {
  flex: none;
  min-height: 32px;
  padding: 0 9px;
  border-color: #cbdad6;
  border-radius: 7px;
  color: #315a53;
  background: #fff;
  font-size: 12px;
  font-weight: var(--weight-semibold);
}
.replay-workspace .replay-dock button:hover:not(:disabled) { border-color: #82b7a9; background: #eef8f5; }
.replay-workspace .replay-dock .play-button { min-width: 64px; border-color: #158b76; color: #fff; background: #158b76; }
.replay-workspace .replay-dock .play-button:hover:not(:disabled) { border-color: #087461; background: #087461; }
.replay-workspace .replay-dock .play-button:disabled { color: #6d817c; background: #edf2f0; }
.replay-workspace .replay-dock #resetButton.restart-ready { border-color: #8fbdb2; color: #087461; background: #eef8f5; }
@keyframes global-replay-pulse {
  0%, 100% { box-shadow: 0 0 0 3px #d9eee9; }
  50% { box-shadow: 0 0 0 7px rgba(21, 146, 125, .14); }
}

@media (max-width: 720px) {
  .replay-workspace .dashboard { padding-bottom: 96px; }
  .replay-workspace .replay-dock {
    left: 0;
    right: 0;
    bottom: 0;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 72px;
    gap: 5px;
    width: 100vw;
    min-height: 92px;
    padding: 6px 10px;
  }
  .replay-workspace .replay-progress { grid-column: 1 / -1; width: 100%; min-width: 0; }
  .replay-workspace .replay-dock button,
  .replay-workspace .replay-dock select { width: 100%; min-width: 0; padding: 0 6px; }
  .replay-workspace #stepButton { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .replay-workspace .replay-progress i { transition: none; }
  .replay-workspace .replay-dock.is-playing .replay-progress > header strong i { animation: none; }
}

/* System run: keep the three primary totals in the page header. */
.replay-workspace .dashboard {
  grid-template-rows: 92px minmax(0, 1fr);
}
.replay-workspace .arrival-strip { min-height: 92px; }
.replay-workspace .replay-title-block { gap: 20px; }
.replay-workspace .replay-title-copy {
  flex: 1 1 auto;
  gap: 0;
}
.replay-workspace .replay-title-copy .replay-surface-title {
  flex: none;
  padding-right: clamp(20px, 2vw, 32px);
}
.replay-workspace .replay-title-copy > .replay-title-metrics {
  display: flex;
  align-self: stretch;
  align-items: center;
  min-width: 0;
  gap: 0;
}
.replay-workspace .replay-title-metrics > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
  padding: 0 clamp(20px, 2.4vw, 38px);
  border-right: 1px solid #e0e8e5;
  white-space: nowrap;
}
.replay-workspace .replay-title-metrics > div:last-child { border-right: 0; }
.replay-workspace .replay-title-metrics strong {
  color: #087568;
  font-size: clamp(23px, 1.65vw, 29px);
  line-height: 1;
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
}
.replay-workspace .replay-title-metrics span {
  color: #294a52;
  font-size: 13.5px;
  line-height: 1.2;
  font-weight: var(--weight-semibold);
}

@media (max-width: 1220px) and (min-width: 981px) {
  .replay-workspace .replay-title-block { padding: 0 18px; gap: 12px; }
  .replay-workspace .replay-title-copy .replay-surface-title { padding-right: 16px; }
  .replay-workspace .replay-title-metrics > div { gap: 6px; padding: 0 14px; }
  .replay-workspace .replay-title-metrics strong { font-size: 22px; }
  .replay-workspace .replay-title-metrics span { font-size: 12px; }
}

@media (max-width: 980px) {
  .replay-workspace .dashboard { grid-template-rows: 72px 40px minmax(0, 1fr); }
  .replay-workspace .arrival-strip { min-height: 72px; }
  .replay-workspace .replay-title-copy .replay-surface-title { padding-right: 12px; }
  .replay-workspace .replay-title-metrics > div { gap: 4px; padding: 0 9px; }
  .replay-workspace .replay-title-metrics strong { font-size: 18px; }
  .replay-workspace .replay-title-metrics span { font-size: 10.5px; }
}

@media (max-width: 720px) {
  .replay-workspace .dashboard { grid-template-rows: 116px 40px minmax(0, 1fr); }
  .replay-workspace .arrival-strip { min-height: 116px; }
  .replay-workspace .replay-title-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-content: center;
    row-gap: 12px;
  }
  .replay-workspace .replay-title-copy {
    grid-column: 1 / -1;
    width: 100%;
  }
  .replay-workspace .replay-title-copy .replay-surface-title { display: block; }
  .replay-workspace .replay-title-metrics { flex: 1 1 auto; }
  .replay-workspace .replay-title-metrics > div { flex: 1 1 0; justify-content: center; }
  .replay-workspace .replay-title-actions { grid-column: 2; justify-self: end; }
}

@media (max-width: 560px) {
  .replay-workspace .replay-title-copy .replay-surface-title { display: none; }
  .replay-workspace .replay-title-metrics > div { display: grid; justify-items: center; gap: 3px; }
  .replay-workspace .replay-title-metrics strong { font-size: 19px; }
  .replay-workspace .replay-title-metrics span { font-size: 10.5px; }
}

/* System run v9: the global replay belongs to the page header. */
.replay-workspace .dashboard {
  grid-template-rows: 94px minmax(0, 1fr);
  padding-bottom: 14px;
}
.replay-workspace .arrival-strip { min-height: 94px; }
.replay-workspace .replay-title-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 22px;
}
.replay-workspace .replay-title-copy {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}
.replay-workspace .replay-title-block > .replay-title-actions {
  display: flex;
  flex: 0 1 620px;
  width: min(620px, 38vw);
  min-width: 480px;
}
.replay-workspace .replay-title-actions .replay-dock {
  position: static;
  z-index: auto;
  inset: auto;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  width: 100%;
  min-height: 0;
  padding: 0 0 0 20px;
  border: 0;
  border-left: 1px solid #dce6e3;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.replay-workspace.route-library .replay-title-actions .replay-dock,
.replay-workspace.route-archive .replay-title-actions .replay-dock { display: none !important; }
.replay-workspace .replay-title-actions .replay-progress {
  flex: 1 1 290px;
  width: auto;
  min-width: 210px;
  max-width: none;
}
.replay-workspace .replay-title-actions .replay-progress > header strong,
.replay-workspace .replay-title-actions .replay-progress > header span { font-size: 13px; }
.replay-workspace .replay-title-actions .replay-progress small {
  margin-top: 2px;
  font-size: 12.5px;
}
.replay-workspace .replay-title-actions .replay-progress > div {
  height: 3px;
  margin-top: 5px;
}
.replay-workspace .replay-title-actions .replay-dock button,
.replay-workspace .replay-title-actions .replay-dock select {
  min-height: 34px;
  padding: 0 9px;
  font-size: 12.5px;
}
.replay-workspace .replay-title-actions .replay-dock .play-button { min-width: 64px; }
.replay-workspace .decision-panel { bottom: 14px; }

@media (max-width: 1540px) and (min-width: 981px) {
  .replay-workspace .dashboard { grid-template-rows: 142px minmax(0, 1fr); }
  .replay-workspace .arrival-strip { min-height: 142px; }
  .replay-workspace .replay-title-block {
    align-items: stretch;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
  }
  .replay-workspace .replay-title-copy { flex: none; width: 100%; }
  .replay-workspace .replay-title-copy .replay-surface-title { padding-right: 18px; }
  .replay-workspace .replay-title-metrics > div { padding: 0 clamp(14px, 2vw, 28px); }
  .replay-workspace .replay-title-metrics strong { font-size: 23px; }
  .replay-workspace .replay-title-block > .replay-title-actions {
    flex: none;
    width: 100%;
    min-width: 0;
  }
  .replay-workspace .replay-title-actions .replay-dock {
    justify-content: flex-start;
    padding: 10px 0 0;
    border-left: 0;
    border-top: 1px solid #e1e9e7;
  }
}

@media (max-width: 980px) {
  .replay-workspace .dashboard {
    grid-template-rows: 142px 40px minmax(0, 1fr);
    padding: 9px;
    padding-bottom: 9px;
  }
  .replay-workspace .arrival-strip { min-height: 142px; }
  .replay-workspace .replay-title-block {
    align-items: stretch;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 11px 16px;
  }
  .replay-workspace .replay-title-copy { flex: none; width: 100%; gap: 0; }
  .replay-workspace .replay-title-copy .replay-surface-title {
    display: block;
    padding-right: 12px;
    font-size: 20px;
  }
  .replay-workspace .replay-title-metrics > div { gap: 6px; padding: 0 13px; }
  .replay-workspace .replay-title-metrics strong { font-size: 20px; }
  .replay-workspace .replay-title-metrics span { font-size: 12px; }
  .replay-workspace .replay-title-block > .replay-title-actions {
    flex: none;
    width: 100%;
    min-width: 0;
  }
  .replay-workspace .replay-title-actions .replay-dock {
    justify-content: flex-start;
    padding: 9px 0 0;
    border-left: 0;
    border-top: 1px solid #e1e9e7;
  }
  .replay-workspace .replay-title-actions .replay-progress { min-width: 190px; }
  .replay-workspace .decision-panel { bottom: 9px; }
}

@media (max-width: 720px) {
  .replay-workspace .dashboard {
    grid-template-rows: 174px 40px minmax(0, 1fr);
    padding-bottom: 9px;
  }
  .replay-workspace .arrival-strip { min-height: 174px; }
  .replay-workspace .replay-title-block {
    display: flex;
    gap: 9px;
    padding: 11px 13px;
  }
  .replay-workspace .replay-title-copy {
    display: flex;
    grid-column: auto;
    width: 100%;
  }
  .replay-workspace .replay-title-copy .replay-surface-title { font-size: 19px; }
  .replay-workspace .replay-title-metrics { flex: 1 1 auto; }
  .replay-workspace .replay-title-metrics > div {
    flex: 1 1 0;
    justify-content: center;
    gap: 4px;
    padding: 0 7px;
  }
  .replay-workspace .replay-title-metrics strong { font-size: 18px; }
  .replay-workspace .replay-title-metrics span { font-size: 11.5px; }
  .replay-workspace .replay-title-actions {
    grid-column: auto;
    justify-self: stretch;
  }
  .replay-workspace .replay-title-actions .replay-dock {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 76px;
    gap: 6px;
    width: 100%;
    min-height: 0;
    padding: 8px 0 0;
  }
  .replay-workspace .replay-title-actions .replay-progress {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }
  .replay-workspace .replay-title-actions .replay-dock button,
  .replay-workspace .replay-title-actions .replay-dock select {
    width: 100%;
    min-width: 0;
    padding: 0 6px;
  }
  .replay-workspace #stepButton { display: block; }
}

@media (max-width: 560px) {
  .replay-workspace .replay-title-copy .replay-surface-title { display: none; }
  .replay-workspace .replay-title-copy > .replay-title-metrics { width: 100%; }
  .replay-workspace .replay-title-metrics > div {
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 0 5px;
  }
  .replay-workspace .replay-title-metrics strong { font-size: 19px; }
  .replay-workspace .replay-title-metrics span { font-size: 11.5px; }
}

/* System run v10: align the header with the other primary surfaces. */
.replay-workspace .dashboard {
  grid-template-rows: var(--surface-header-height) minmax(0, 1fr);
  gap: 10px;
  padding: 0 14px 14px;
}
.replay-workspace .arrival-strip {
  min-height: var(--surface-header-height);
  margin: 0 -14px;
  border: 0;
  border-bottom: 1px solid #dbe5e2;
  border-radius: 0;
  background: rgba(255, 255, 255, .97);
  box-shadow: none;
}
.replay-workspace .replay-title-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  height: var(--surface-header-height);
  padding: 0 28px;
}
.replay-workspace .replay-title-block > .replay-title-copy {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 0;
  width: 100%;
  min-width: 0;
}
.replay-workspace .replay-title-copy .replay-surface-title {
  display: flex;
  align-items: center;
  width: 150px;
  height: 34px;
  padding: 0 20px 0 0;
  border-right: 1px solid #dce6e3;
}
.replay-workspace .replay-title-copy > .replay-title-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: center;
  align-items: center;
  width: 100%;
  min-width: 0;
}
.replay-workspace .replay-title-metrics > div {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 9px;
  height: 34px;
  padding: 0 14px;
  border-right: 1px solid #e0e8e5;
}
.replay-workspace .replay-title-metrics > div:last-child { border-right: 0; }
.replay-workspace .replay-title-block > .replay-title-actions {
  display: flex;
  flex: none;
  width: auto;
  min-width: 0;
}
.replay-workspace .replay-title-actions .replay-dock {
  justify-content: flex-start;
  gap: 6px;
  width: auto;
  padding: 0 0 0 18px;
}
.replay-workspace .replay-title-actions .replay-progress {
  flex: 0 0 220px;
  width: 220px;
  min-width: 220px;
}
.replay-workspace .replay-title-actions .replay-progress > header {
  justify-content: flex-start;
  gap: 14px;
}
.replay-workspace .replay-title-actions .replay-progress > header span { margin-left: 0; }
.replay-workspace .replay-title-actions .replay-progress > div { width: 220px; }

@media (max-width: 1380px) and (min-width: 721px) {
  .replay-workspace .dashboard { grid-template-rows: 112px minmax(0, 1fr); }
  .replay-workspace .arrival-strip { min-height: 112px; }
  .replay-workspace .replay-title-block {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 42px 54px;
    align-content: center;
    gap: 0;
    height: 112px;
  }
  .replay-workspace .replay-title-block > .replay-title-actions { width: 100%; }
  .replay-workspace .replay-title-actions .replay-dock {
    width: 100%;
    padding: 8px 0 0;
    border-top: 1px solid #e1e9e7;
    border-left: 0;
  }
}

@media (max-width: 980px) and (min-width: 721px) {
  .replay-workspace .dashboard {
    grid-template-rows: 112px 40px minmax(0, 1fr);
    padding: 0 9px 9px;
  }
  .replay-workspace .arrival-strip { margin: 0 -9px; }
  .replay-workspace .replay-title-block { padding: 0 18px; }
}

@media (max-width: 720px) {
  .replay-workspace .dashboard {
    grid-template-rows: 158px 40px minmax(0, 1fr);
    gap: 8px;
    padding: 0 9px 9px;
  }
  .replay-workspace .arrival-strip {
    min-height: 158px;
    margin: 0 -9px;
  }
  .replay-workspace .replay-title-block {
    display: flex;
    height: 158px;
    padding: 10px 14px;
  }
  .replay-workspace .replay-title-block > .replay-title-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .replay-workspace .replay-title-copy .replay-surface-title { display: none; }
  .replay-workspace .replay-title-metrics > div {
    display: grid;
    justify-items: center;
    gap: 3px;
    height: 38px;
    padding: 0 5px;
  }
  .replay-workspace .replay-title-block > .replay-title-actions { width: 100%; }
  .replay-workspace .replay-title-actions .replay-dock {
    width: 100%;
    padding: 8px 0 0;
    border-top: 1px solid #e1e9e7;
    border-left: 0;
  }
  .replay-workspace .replay-title-actions .replay-progress,
  .replay-workspace .replay-title-actions .replay-progress > div {
    width: 220px;
    min-width: 220px;
  }
}
