:root {
  color-scheme: dark;
  --bg: #000000;
  --sidebar: #0c0c0c;
  --panel: #111111;
  --raised: #1b1b19;
  --inset: #0b0b0a;
  --line: #2c2b27;
  --line-strong: #555247;
  --text: #f5f3eb;
  --muted: #bcb9af;
  --subtle: #a19d91;
  --brand: #f3ca20;
  --accent: #f3ca20;
  --accent-hover: #ffdc49;
  --on-accent: #000000;
  --action-line: #f3ca20;
  --accent-tint: #252109;
  --accent-line: #6b591b;
  --red: #ff9b94;
  --red-tint: #382320;
  --red-line: #6a3c36;
  --amber: #e8c482;
  --amber-tint: #332c20;
  --amber-line: #655433;
  --shadow: 0 4px 20px #0000000a;
  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Space Grotesk", "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-synthesis: none;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f5f0;
  --sidebar: #f0efe8;
  --panel: #ffffff;
  --raised: #f2f0e8;
  --inset: #f8f7f2;
  --line: #dedbd0;
  --line-strong: #b8b3a3;
  --text: #171713;
  --muted: #5d5a50;
  --subtle: #6e6859;
  --accent: #745900;
  --action-line: #a38b1b;
  --accent-tint: #fff5c3;
  --accent-line: #cdbb69;
  --red: #ae3934;
  --red-tint: #fff0eb;
  --red-line: #ecc1b9;
  --amber: #825c12;
  --amber-tint: #fff6e5;
  --amber-line: #e4ce9d;
  --shadow: 0 4px 20px #352e1805;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; min-width: 320px; font-size: 14px; line-height: 1.5; background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; }
button, a, input, summary, [tabindex] { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button:disabled { opacity: .5; }
a { color: inherit; }
button, a, input { transition: background-color .16s, border-color .16s, color .16s, opacity .16s; }
[hidden] { display: none !important; }
::selection { background: var(--accent-tint); color: var(--accent); }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 20px; background: var(--accent); color: var(--on-accent); border-radius: 8px; transform: translateY(-160%); text-decoration: none; }
.skip-link:focus { transform: translateY(0); }
.app-shell { display: flex; min-height: 100vh; min-height: 100dvh; }
.sidebar { width: 224px; flex: 0 0 224px; position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 30px 18px 22px; display: flex; flex-direction: column; overflow-y: auto; background: var(--sidebar); border-right: 1px solid var(--line); scrollbar-width: thin; }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sidebar .drawer-close, .sidebar-backdrop { display: none; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 22px; font-weight: 650; letter-spacing: -.9px; }
.brand-mark { width: 36px; height: 40px; flex: 0 0 auto; color: var(--accent); display: grid; place-items: center; }
.brand-mark .icon { width: 34px; height: 34px; stroke-width: 1.5; }
.brand-light { font-weight: 400; color: var(--muted); }
.brand small { display: block; margin-top: 3px; color: var(--subtle); font: 9px var(--mono); letter-spacing: 1.7px; }
.workspace-label { margin: 44px 12px 12px; color: var(--subtle); font: 10px var(--mono); letter-spacing: 1.5px; }
.workspace-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 11px; min-height: 46px; padding: 11px 12px; border: 1px solid transparent; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 500; }
.nav-item .icon { width: 18px; height: 18px; }
.nav-item:hover { background: var(--raised); color: var(--text); }
.nav-item.active { background: var(--brand); border-color: var(--action-line); color: var(--on-accent); }
.nav-counter { margin-left: auto; font: 10px var(--mono); opacity: .75; }
.sidebar-note { margin: 50px 10px 36px; }
.sidebar-note-icon { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 15px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--accent); }
.sidebar-note-icon .icon { width: 17px; height: 17px; }
.sidebar-note strong { font-family: var(--display); font-size: 15px; font-weight: 500; line-height: 1.6; letter-spacing: -.2px; }
.sidebar-note p { color: var(--subtle); font-size: 12px; line-height: 1.8; margin-top: 10px; }
.sidebar-note a { display: flex; align-items: center; gap: 6px; width: fit-content; padding: 10px 0; margin-top: 8px; font-size: 11px; color: var(--muted); text-decoration: none; }
.sidebar-note a:hover { color: var(--accent); }
.sidebar-note a .icon { width: 13px; height: 13px; }
.sidebar-bottom { margin-top: auto; }
.sidebar-status { display: flex; align-items: center; gap: 8px; padding: 15px 8px; border-bottom: 1px solid var(--line); color: var(--subtle); font: 9px var(--mono); letter-spacing: .5px; }
.status-dot, .network-dot { display: inline-block; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); }
.sidebar-status[data-state="starting"] .status-dot { background: var(--amber); animation: pulse 1.6s ease-in-out infinite; }
.sidebar-status[data-state="error"] .status-dot { background: var(--red); }
.agent-card { display: flex; align-items: center; gap: 10px; padding: 18px 5px 8px; }
.agent-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 9px; background: var(--raised); color: var(--accent); }
.agent-avatar .icon { width: 17px; height: 17px; }
.agent-card strong { display: block; font-size: 12px; font-weight: 600; }
.agent-card small { display: block; margin-top: 3px; color: var(--subtle); font-size: 10px; }
.agent-indicator { width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: var(--accent); }
.sidebar-footnote { margin: 8px 5px 0; color: var(--subtle); font-size: 10px; line-height: 1.8; }

.main { min-width: 0; flex: 1; max-width: 1536px; padding: 0 36px 26px; margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 78px; border-bottom: 1px solid var(--line); gap: 16px; }
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sidebar-toggle { flex: 0 0 auto; }
.theme-control { display: flex; align-items: center; min-height: 40px; gap: 7px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--panel); }
.theme-control > .icon { width: 16px; height: 16px; }
.theme-control select { min-height: 38px; max-width: 86px; padding: 0 2px; border: 0; border-radius: 2px; background: transparent; color: var(--text); cursor: pointer; font-size: 12px; }
.theme-control option { color: var(--text); background: var(--panel); }
.breadcrumb { color: var(--subtle); font-size: 12px; }
.breadcrumb span { margin: 0 12px; color: var(--line-strong); }
.breadcrumb strong { color: var(--text); font-weight: 500; }
.topbar-right { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.network-pill, .runtime-pill { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; font: 9px var(--mono); letter-spacing: .5px; color: var(--muted); white-space: nowrap; }
.network-pill .network-dot { margin-right: 2px; width: 5px; height: 5px; }
.runtime-pill { color: var(--amber); background: var(--amber-tint); border-color: var(--amber-line); }
.runtime-pill[data-state="ready"] { color: var(--accent); background: var(--accent-tint); border-color: var(--accent-line); }
.runtime-pill[data-state="error"] { color: var(--red); background: var(--red-tint); border-color: var(--red-line); }
.icon-button { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 8px; text-decoration: none; }
.icon-button .icon { width: 17px; height: 17px; }
.icon-button:hover:not(:disabled) { border-color: var(--line-strong); color: var(--text); background: var(--raised); }
.source-link { background: transparent; border-color: transparent; }

.page-heading { display: grid; grid-template-columns: 1.13fr 1fr; gap: 35px; align-items: center; padding: 43px 0 32px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--subtle); font: 9px var(--mono); letter-spacing: 1.35px; }
.eyebrow-line { width: 17px; height: 2px; background: var(--accent); }
h1 { margin-top: 18px; font-family: var(--display); font-size: clamp(34px, 3.62vw, 56px); font-weight: 600; letter-spacing: -2.2px; line-height: 1.12; text-wrap: balance; }
h1 > span { color: var(--accent); }
.hero-copy > p { color: var(--muted); font-size: 15px; margin-top: 19px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; margin-top: 25px; }
.primary-button, .execute-button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 46px; padding: 12px 17px; border: 1px solid var(--action-line); background: var(--brand); color: var(--on-accent); border-radius: 6px; font-size: 13px; font-weight: 650; box-shadow: 0 2px 2px #00000010; transition: background-color .16s, transform .16s; }
.primary-button .icon, .execute-button .icon { width: 16px; height: 16px; }
.primary-button .arrow-icon { margin-left: 12px; }
.primary-button:hover:not(:disabled), .execute-button:hover:not(:disabled) { background: var(--accent-hover); transform: translateY(-2px); }
.primary-button:active:not(:disabled), .execute-button:active:not(:disabled) { transform: translateY(1px); }
.demo-caption { color: var(--subtle); font-size: 11px; }

.boundary-card { position: relative; min-width: 0; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--brand); border-radius: 10px; box-shadow: var(--shadow); }
.boundary-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(transparent, #000 40%, transparent); }
.boundary-top { position: relative; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 20px 20px 0; }
.micro-label { color: var(--subtle); font: 9px var(--mono); letter-spacing: .8px; }
.boundary-badge { display: flex; align-items: center; gap: 5px; color: var(--accent); font: 9px var(--mono); padding: 5px 7px; background: var(--accent-tint); border: 1px solid var(--accent-line); border-radius: 5px; }
.boundary-badge .icon { width: 12px; height: 12px; }
.boundary-flow { position: relative; display: grid; grid-template-columns: 1fr 24px 1fr 24px 1fr; gap: 0; align-items: center; padding: 28px 16px 20px; }
.flow-node { min-width: 0; text-align: center; }
.flow-icon { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 10px; background: var(--raised); border: 1px solid var(--line-strong); border-radius: 11px; color: var(--muted); }
.flow-icon .icon { width: 21px; height: 21px; }
.flow-node strong { display: block; font-family: var(--display); font-size: 13px; font-weight: 550; }
.flow-node small { display: block; margin-top: 4px; color: var(--subtle); font-size: 10px; white-space: nowrap; }
.vault-node .flow-icon { width: 52px; height: 52px; color: var(--accent); border-color: var(--accent-line); background: var(--accent-tint); box-shadow: 0 0 0 5px var(--panel), 0 0 0 6px var(--line); }
.vault-node .flow-icon .icon { width: 28px; height: 28px; }
.vault-node strong { color: var(--accent); }
.flow-line { color: var(--line-strong); align-self: start; margin-top: 19px; }
.flow-line .icon { width: 22px; height: 22px; }
.boundary-attack { position: relative; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin: 3px 20px 20px; padding: 12px 0 0; border-top: 1px dashed var(--line-strong); color: var(--subtle); font-size: 10px; }
.boundary-attack .icon { width: 14px; height: 14px; color: var(--red); }
.boundary-attack strong { color: var(--red); font-weight: 500; margin-left: 3px; }
.boundary-bottom { position: relative; display: flex; align-items: center; gap: 8px; padding: 13px 20px; color: var(--muted); font-size: 10px; background: var(--inset); border-top: 1px solid var(--line); }

.runtime-notice { display: flex; align-items: center; gap: 13px; padding: 15px 18px; margin-bottom: 20px; background: var(--inset); border: 1px solid var(--line); border-radius: 9px; }
.notice-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; background: var(--raised); color: var(--accent); border-radius: 8px; }
.notice-icon .icon { width: 18px; height: 18px; }
.runtime-notice strong { display: block; font-size: 12px; font-weight: 550; }
.runtime-notice p { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.7; }
.notice-meta { margin-left: auto; font: 8px var(--mono); color: var(--subtle); white-space: nowrap; }
.runtime-notice[data-state="error"] { border-color: var(--red-line); background: var(--red-tint); }
.runtime-notice[data-state="error"] .notice-icon { color: var(--red); background: var(--red-tint); }
.runtime-notice[data-state="starting"] .notice-icon .icon { animation: pulse 1.5s ease-in-out infinite; }
.runtime-notice .text-button { margin-left: auto; flex: 0 0 auto; }

.demo-comparison { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 20px; }
.comparison-step { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 70px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--subtle); text-align: left; }
.comparison-number { color: var(--subtle); font: 10px var(--mono); }
.comparison-step strong { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
.comparison-step small { display: block; margin-top: 5px; font: 10px var(--mono); }
.comparison-step > .icon { width: 17px; height: 17px; margin-left: auto; }
.comparison-step.complete { border-color: var(--accent-line); background: var(--accent-tint); color: var(--accent); }
.comparison-step.complete.control-step { border-color: var(--red-line); background: var(--red-tint); color: var(--red); }
.comparison-step.selected { box-shadow: inset 0 0 0 1px currentColor; }
.comparison-step:hover:not(:disabled) { border-color: currentColor; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat-card { position: relative; min-width: 0; padding: 18px 18px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 5px; font: 9px var(--mono); letter-spacing: .6px; color: var(--muted); }
.stat-top .icon { width: 16px; height: 16px; color: var(--subtle); }
.loss-stat .stat-top .icon { color: var(--red); }
.defense-stat .stat-top .icon, .paid-stat .stat-top .icon { color: var(--accent); }
.stat-value { display: flex; align-items: baseline; gap: 7px; margin-top: 13px; font-family: var(--display); font-size: 32px; font-weight: 550; letter-spacing: -1px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-value small { font-family: var(--font); font-size: 11px; color: var(--subtle); font-weight: 400; letter-spacing: 0; }
.stat-caption { color: var(--muted); font-size: 10px; margin-top: 7px; min-height: 30px; line-height: 1.55; }
.policy-value { margin-top: 19px; margin-bottom: 7px; font-size: 23px; white-space: nowrap; }
.stat-visual { height: 18px; margin-top: 10px; }
.loss-bars { display: flex; align-items: end; gap: 4px; }
.loss-bars i { height: 28%; width: 10%; background: var(--red); opacity: .16; border-radius: 2px; }
.loss-bars i:nth-child(2n) { height: 44%; }
.loss-bars i:nth-child(3n) { height: 64%; }
.loss-bars i:nth-child(n+7) { height: 80%; }
.loss-bars i:nth-last-child(-n+2) { height: 100%; }
.loss-stat.has-results .loss-bars i { opacity: .55; }
.defense-segments { display: flex; gap: 3px; align-items: center; }
.defense-segments i { flex: 1; height: 13px; border-radius: 2px; background: var(--line); }
.defense-segments i.verified { background: var(--accent); opacity: .65; }
.paid-line svg { width: 100%; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: .23; }
.paid-stat.has-results .paid-line svg { opacity: .7; }
progress { display: block; width: 100%; height: 5px; border: 0; border-radius: 3px; overflow: hidden; accent-color: var(--accent); background: var(--line); appearance: none; }
progress::-webkit-progress-bar { background: var(--line); border-radius: 3px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 3px; transition: width .2s; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 3px; }
.budget-meter { margin-top: 20px; }

.workbench { display: grid; grid-template-columns: 1.06fr 1fr; gap: 18px; scroll-margin-top: 24px; }
.panel { min-width: 0; padding: 23px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.panel-kicker { display: flex; align-items: center; gap: 8px; color: var(--subtle); font: 9px var(--mono); letter-spacing: 1px; }
.panel-kicker > span { color: var(--accent); font-size: 10px; padding-right: 7px; border-right: 1px solid var(--line-strong); }
h2 { margin-top: 8px; font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -.55px; line-height: 1.4; }
.case-count { color: var(--subtle); font: 10px var(--mono); white-space: nowrap; padding: 5px 7px; background: var(--raised); border: 1px solid var(--line); border-radius: 5px; }
.case-filters { display: flex; gap: 4px; padding: 3px; background: var(--inset); border: 1px solid var(--line); border-radius: 7px; }
.filter-button { min-height: 35px; flex: 1; padding: 7px 10px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--subtle); font-size: 11px; }
.filter-button:hover { color: var(--text); }
.filter-button.active { color: var(--text); background: var(--raised); border-color: var(--line); box-shadow: 0 1px 3px #00000012; }
.scenario-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; margin-top: 10px; background: var(--inset); color: var(--subtle); }
.scenario-search:focus-within { border-color: var(--accent-line); outline: 1px solid var(--accent-line); }
.scenario-search .icon { width: 16px; height: 16px; }
.scenario-search input { min-width: 0; width: 100%; border: 0; padding: 8px 0; background: transparent; color: var(--text); font-size: 12px; outline: none; }
.scenario-search input:focus-visible { outline: none; }
.scenario-search input::placeholder { color: var(--subtle); opacity: 1; }
.scenario-search kbd { width: 18px; text-align: center; border: 1px solid var(--line); border-radius: 3px; font: 10px var(--mono); }
.scenario-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; max-height: 265px; min-height: 80px; overflow-y: auto; overscroll-behavior: contain; padding: 3px 5px 3px 3px; margin: 11px -3px 0; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.scenario-button { display: flex; align-items: flex-start; gap: 9px; min-width: 0; min-height: 78px; padding: 11px; border: 1px solid var(--line); background: var(--raised); color: var(--muted); border-radius: 7px; text-align: left; }
.scenario-button:hover:not(:disabled) { border-color: var(--line-strong); background: var(--inset); }
.scenario-button.selected { border-color: var(--accent-line); background: var(--accent-tint); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent-line); }
.scenario-button > .icon { width: 15px; height: 15px; margin-top: 2px; color: var(--subtle); }
.scenario-button.selected > .icon { color: var(--accent); }
.scenario-copy { min-width: 0; flex: 1; }
.scenario-title { display: block; color: var(--text); font-size: 11px; font-weight: 550; line-height: 1.45; }
.scenario-description { display: block; margin-top: 4px; color: var(--subtle); font-size: 10px; line-height: 1.5; }
.scenario-button.selected .scenario-title { color: var(--accent); }
.case-result-mark { display: inline-grid; place-items: center; width: 13px; height: 16px; margin-top: 1px; color: var(--accent); font-size: 12px; }
.scenario-empty { text-align: center; padding: 32px 12px 20px; color: var(--subtle); }
.scenario-empty > .icon { width: 28px; height: 28px; margin-bottom: 10px; }
.scenario-empty strong { display: block; color: var(--text); font-size: 13px; }
.scenario-empty p { margin-top: 4px; font-size: 12px; }
.scenario-empty .text-button { margin-top: 7px; }
.agent-message { margin-top: 17px; padding: 15px; background: var(--inset); border: 1px solid var(--line); border-radius: 8px; }
.message-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--muted); font: 9px var(--mono); letter-spacing: .45px; }
.agent-mini { display: grid; place-items: center; width: 21px; height: 21px; flex: 0 0 auto; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--raised); color: var(--text); font: 9px var(--mono); }
.untrusted-badge { margin-left: auto; color: var(--amber); font-size: 8px; }
.agent-message p { color: var(--text); font-size: 12px; line-height: 1.8; margin: 10px 0 0; padding-left: 13px; border-left: 2px solid var(--line-strong); }
.payment-details { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.detail-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; font: 9px var(--mono); color: var(--subtle); letter-spacing: .55px; }
.detail-title code { color: var(--muted); font: 9px var(--mono); padding: 4px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--inset); letter-spacing: 0; }
.detail-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 33px; padding: 4px 0; color: var(--subtle); font-size: 11px; }
.detail-row > span { flex: 0 0 auto; }
.detail-row code { max-width: 68%; color: var(--muted); font: 10px/1.6 var(--mono); text-align: right; overflow-wrap: anywhere; }
.detail-row strong { color: var(--text); font-family: var(--display); font-size: 15px; font-weight: 500; text-align: right; }
.invoice-detail { border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 5px; }
.invoice-detail code { color: var(--accent); }
.panel-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid var(--line); background: var(--raised); border-radius: 9px; color: var(--muted); }
.panel-icon .icon { width: 18px; height: 18px; }
.decision-panel { display: flex; flex-direction: column; }
.decision-banner { display: grid; grid-template-columns: 35px 1fr; column-gap: 11px; padding: 17px; border: 1px solid var(--accent-line); background: var(--accent-tint); border-radius: 9px; color: var(--accent); }
.decision-banner.ready { border-color: var(--line); background: var(--raised); color: var(--subtle); }
.decision-banner.block { border-color: var(--red-line); background: var(--red-tint); color: var(--red); }
.decision-banner.warn { border-color: var(--amber-line); background: var(--amber-tint); color: var(--amber); }
.decision-banner.pending { border-color: var(--accent-line); background: var(--accent-tint); }
.decision-symbol { display: grid; place-items: center; width: 34px; height: 34px; background: var(--panel); border: 1px solid currentColor; border-radius: 10px; }
.decision-symbol .icon { width: 18px; height: 18px; }
.decision-banner.pending .decision-symbol { animation: pulse 1.5s ease-in-out infinite; }
.decision-copy { min-width: 0; }
.decision-label { font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: .2px; }
.decision-subtitle { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.decision-tag { grid-column: 2; width: fit-content; margin-top: 10px; color: inherit; font: 8px var(--mono); letter-spacing: .5px; }
.decision-case { padding: 13px 0; margin-bottom: 1px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.evidence-heading { display: flex; justify-content: space-between; gap: 8px; margin: 17px 0 10px; color: var(--subtle); font: 8px var(--mono); letter-spacing: .75px; }
.evidence-list { min-height: 171px; margin-bottom: 16px; }
.evidence-item { display: flex; align-items: flex-start; gap: 9px; padding: 8px 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.evidence-mark { display: inline-grid; place-items: center; width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); font-size: 10px; }
.evidence-mark.failed { color: var(--red); background: var(--red-tint); }
.evidence-placeholder { display: flex; align-items: center; gap: 11px; padding: 12px 0; color: var(--subtle); font-size: 11px; }
.evidence-placeholder .icon { width: 16px; height: 16px; opacity: .65; }
.evidence-empty-caption { margin-top: 9px; color: var(--subtle); font-size: 11px; line-height: 1.7; }
.approval-box { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--inset); margin-bottom: 20px; }
.approval-heading { display: flex; align-items: center; gap: 9px; }
.approval-check { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 auto; color: var(--accent); background: var(--accent-tint); border-radius: 7px; }
.approval-check .icon { width: 15px; height: 15px; }
.approval-heading strong { display: block; color: var(--text); font-size: 11px; font-weight: 550; }
.approval-heading small { display: block; color: var(--subtle); font-size: 10px; margin-top: 3px; }
.approval-lock { margin-left: auto; width: 15px; height: 15px; color: var(--subtle); }
.approval-fingerprint { margin: 10px 0 0 38px; color: var(--subtle); font: 9px/1.8 var(--mono); overflow-wrap: anywhere; }
.gate-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.execute-button { width: 100%; min-height: 45px; font-size: 12px; }
.execute-button .icon:last-child { margin-left: auto; }
.execute-button .icon:first-child { margin-right: auto; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--muted); background: var(--raised); font-size: 11px; font-weight: 500; }
.secondary-button .icon { width: 16px; height: 16px; }
.secondary-button:hover:not(:disabled) { color: var(--text); border-color: var(--accent-line); background: var(--accent-tint); }
.progress-area { min-height: 43px; margin-top: 12px; }
.run-progress { color: var(--muted); font-size: 10px; line-height: 1.8; }
#sequence-progress { margin-top: 9px; }
.gate-disclaimer { color: var(--subtle); font-size: 10px; text-align: center; margin-top: 10px; line-height: 1.7; }
.is-busy::before { content: ""; width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.is-busy > .icon:first-child { display: none; }

.proof-panel { margin-top: 20px; }
.compact-button { min-height: 38px; font-size: 10px; flex: 0 0 auto; }
.proof-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 27px; }
.transaction-proof { min-width: 0; }
.balance-proof { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--inset); font-size: 11px; color: var(--muted); }
.balance-proof > span { display: flex; align-items: center; gap: 7px; }
.balance-dot { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: var(--subtle); }
.balance-proof strong { flex: 0 0 auto; font-family: var(--display); font-size: 19px; font-weight: 550; color: var(--muted); letter-spacing: -.4px; }
.balance-proof strong.loss { color: var(--red); }
.balance-proof strong.protected { color: var(--accent); }
.receipt-label { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; }
.copy-button { width: 30px; height: 30px; background: transparent; border-color: transparent; }
.copy-button .icon { width: 14px; height: 14px; }
.transaction-hash { display: block; margin-top: 5px; color: var(--text); font: 11px/1.9 var(--mono); overflow-wrap: anywhere; }
.receipt-meta { margin-top: 7px; color: var(--subtle); font-size: 10px; line-height: 1.7; }
.receipt-details { border-top: 1px solid var(--line); margin-top: 17px; }
.receipt-details summary { display: flex; align-items: center; gap: 8px; list-style: none; min-height: 45px; color: var(--muted); font-size: 11px; cursor: pointer; }
.receipt-details summary::-webkit-details-marker { display: none; }
.receipt-details summary .icon { width: 15px; height: 15px; }
.receipt-details summary > span { margin-left: auto; font-size: 18px; font-weight: 300; }
.receipt-details[open] summary > span { transform: rotate(45deg); }
.receipt-details pre { max-height: 270px; margin: 0; padding: 15px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 7px; background: var(--inset); color: var(--muted); font: 10px/1.9 var(--mono); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.policy-proof { min-width: 0; border-left: 1px solid var(--line); padding-left: 27px; scroll-margin-top: 24px; }
.policy-proof-heading { display: flex; align-items: center; gap: 10px; }
h3 { font-family: var(--display); font-size: 15px; font-weight: 500; letter-spacing: -.3px; }
.policy-proof-heading p { color: var(--subtle); font-size: 10px; margin-top: 3px; }
.scope-badge { margin-left: auto; color: var(--accent); font: 8px var(--mono); background: var(--accent-tint); border: 1px solid var(--accent-line); border-radius: 4px; padding: 5px 6px; }
.scope-badge.full-access { color: var(--amber); border-color: var(--amber-line); background: var(--amber-tint); }
.policy-limits { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 17px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.policy-limits span { display: block; color: var(--subtle); font: 8px var(--mono); letter-spacing: .65px; }
.policy-limits strong { display: block; margin-top: 6px; color: var(--text); font-family: var(--display); font-size: 18px; font-weight: 500; }
.key-proof { white-space: pre-line; color: var(--muted); font: 9px/2 var(--mono); overflow-wrap: anywhere; }
.policy-footnote { margin-top: 10px; color: var(--subtle); font-size: 10px; line-height: 1.8; }

.audit-panel { margin-top: 20px; padding-bottom: 15px; scroll-margin-top: 24px; }
.audit-heading { margin-bottom: 18px; }
.audit-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.audit-count { color: var(--subtle); font: 9px var(--mono); }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); font-size: 11px; }
.text-button .icon { width: 14px; height: 14px; }
.text-button:hover:not(:disabled) { color: var(--text); background: var(--raised); border-color: var(--line); }
.audit-table-wrap { max-height: 360px; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: separate; border-spacing: 0; white-space: nowrap; min-width: 720px; }
th { position: sticky; top: 0; z-index: 1; padding: 12px 10px; border-bottom: 1px solid var(--line); background: var(--panel); color: var(--subtle); text-align: left; font: 8px var(--mono); letter-spacing: .5px; }
td { padding: 12px 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
td:first-child { color: var(--subtle); font: 9px var(--mono); }
td:nth-child(3) { font: 9px var(--mono); }
.audit-result-button { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; margin: -7px -6px; padding: 7px 6px; color: var(--text); background: transparent; border: 0; border-radius: 4px; font-size: 11px; text-align: left; }
.audit-result-button:hover { color: var(--accent); }
.audit-result-button .icon { width: 12px; height: 12px; color: var(--subtle); }
.audit-row.selected td { background: var(--inset); }
.result-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 4px; font: 8px var(--mono); letter-spacing: .25px; }
.result-pill .icon { width: 10px; height: 10px; }
.result-pill.allow { color: var(--accent); background: var(--accent-tint); }
.result-pill.warn { color: var(--amber); background: var(--amber-tint); }
.result-pill.block { color: var(--red); background: var(--red-tint); }
.empty-row td { text-align: center; padding: 31px 12px; white-space: normal; font-family: var(--font); }
.empty-row .empty-icon { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 11px; color: var(--subtle); background: var(--raised); border: 1px solid var(--line); border-radius: 11px; }
.empty-row strong { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.empty-row p { color: var(--subtle); font-size: 11px; line-height: 1.8; margin-top: 5px; }
.audit-table-wrap:has(.empty-row) table { min-width: 0; }
.audit-footnote { display: flex; align-items: center; gap: 7px; color: var(--subtle); font-size: 10px; padding-top: 13px; line-height: 1.7; }
.audit-footnote .status-dot { width: 4px; height: 4px; }
.footer-note { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 25px 1px 0; color: var(--subtle); font: 8px var(--mono); letter-spacing: .35px; }
.footer-note a { display: flex; align-items: center; gap: 6px; text-decoration: none; }
.footer-note a:hover { color: var(--accent); }
.footer-note .icon { width: 12px; height: 12px; }
.footer-brand { font-family: var(--display); font-size: 14px; letter-spacing: -.4px; color: var(--muted); }
.footer-brand .icon { width: 17px; height: 17px; color: var(--accent); }
.toast { position: fixed; bottom: 22px; right: 24px; z-index: 60; max-width: 390px; padding: 14px 18px; border: 1px solid var(--accent-line); background: var(--raised); color: var(--text); border-radius: 9px; box-shadow: 0 8px 40px #00000033; font-size: 12px; line-height: 1.7; opacity: 0; transform: translateY(12px); transition: opacity .18s, transform .18s; pointer-events: none; }
.toast.visible { opacity: 1; transform: translateY(0); }
.noscript-notice { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; padding: 20px; background: var(--panel); color: var(--text); border-top: 1px solid var(--line); }

@keyframes pulse { 50% { opacity: .4; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 1600px) {
  .main { padding-right: 48px; padding-left: 48px; }
  .page-heading { padding-top: 52px; padding-bottom: 40px; }
  .panel { padding: 28px; }
  .scenario-title { font-size: 12px; }
  .scenario-description { font-size: 11px; }
  .scenario-list { max-height: 283px; }
}
@media (max-width: 1250px) {
  .sidebar { width: 205px; flex-basis: 205px; padding-left: 14px; padding-right: 14px; }
  .main { padding-left: 26px; padding-right: 26px; }
  .page-heading { gap: 24px; }
  .notice-meta { display: none; }
  .stat-card { padding: 16px 13px 13px; }
  .stat-top { font-size: 8px; }
  .stat-caption { font-size: 10px; }
  .panel { padding: 20px; }
  .scenario-button { padding: 10px 9px; gap: 7px; }
  .scenario-button > .icon { display: none; }
  .hero-actions { gap: 10px; }
  .demo-caption { font-size: 10px; }
  .boundary-top { padding-left: 15px; padding-right: 15px; }
  .boundary-top .micro-label { font-size: 8px; }
  .boundary-badge { font-size: 8px; }
  .flow-node small { font-size: 9px; }
  h2 { font-size: 19px; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .page-heading { grid-template-columns: 1fr; }
  .hero-copy { max-width: 650px; }
  h1 { font-size: 48px; }
  .desktop-break { display: none; }
  .boundary-card { display: none; }
  .workbench { grid-template-columns: 1fr; }
  .scenario-button > .icon { display: block; }
  .scenario-title { font-size: 12px; }
  .scenario-description { font-size: 11px; }
  .decision-panel { min-height: 580px; }
  .sidebar-note { margin-top: 40px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-grid { grid-template-columns: 1fr; }
  .policy-proof { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 22px; }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 24px; }
  .app-shell { flex-direction: column; }
  .sidebar { position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; width: min(288px, calc(100vw - 48px)); height: 100dvh; padding: 24px 18px; border-right: 1px solid var(--line); z-index: 50; transform: translateX(-100%); visibility: hidden; }
  :root[data-drawer="open"] { overflow: hidden; }
  :root[data-drawer="open"] .sidebar { visibility: visible; transform: translateX(0); }
  .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 40; padding: 0; border: 0; background: #00000099; cursor: pointer; }
  .sidebar .drawer-close { display: inline-grid; width: 44px; height: 44px; flex: 0 0 auto; }
  .brand { font-size: 20px; flex: 0 0 auto; }
  .brand small { font-size: 8px; }
  .brand-mark { width: 29px; }
  .brand-mark .icon { width: 29px; height: 29px; }
  .workspace-label { margin-top: 32px; }
  .sidebar-note { margin-top: 32px; }
  .workspace-nav { flex-direction: column; gap: 6px; }
  .nav-item { min-height: 48px; padding: 12px; gap: 10px; font-size: 13px; }
  .main { width: 100%; padding: 0 24px 24px; }
  .page-heading { gap: 24px; padding-top: 32px; grid-template-columns: 1.15fr 1fr; }
  h1 { font-size: clamp(34px, 4.9vw, 44px); letter-spacing: -1.8px; }
  .hero-copy > p { font-size: 14px; }
  .hero-actions { margin-top: 21px; }
  .primary-button { font-size: 12px; padding: 11px 14px; }
  .demo-caption { display: none; }
  .eyebrow { font-size: 8px; letter-spacing: .8px; }
  .boundary-top { gap: 6px; }
  .boundary-badge { display: none; }
  .boundary-flow { padding-top: 25px; padding-left: 10px; padding-right: 10px; grid-template-columns: 1fr 20px 1fr 20px 1fr; }
  .flow-node strong { font-size: 12px; }
  .flow-icon { width: 35px; height: 35px; }
  .vault-node .flow-icon { width: 44px; height: 44px; }
  .boundary-bottom { padding: 13px 15px; font-size: 9px; }
  .boundary-attack { font-size: 9px; margin-left: 14px; margin-right: 14px; }
  .workbench { gap: 14px; }
  .panel { padding: 20px; }
  h2 { font-size: 17px; }
  .case-count { font-size: 9px; }
  .scenario-list { grid-template-columns: 1fr; max-height: 255px; }
  .scenario-button { min-height: 64px; }
  .scenario-button > .icon { display: block; }
  .scenario-title { font-size: 12px; }
  .scenario-description { font-size: 11px; }
  .proof-grid { gap: 20px; }
  .policy-proof { padding-left: 20px; }
  .receipt-meta { font-size: 10px; }
  .balance-proof { flex-wrap: wrap; padding: 12px; }
  .balance-proof strong { font-size: 18px; }
  .stats-grid { gap: 9px; }
  .stat-value { font-size: 29px; }
  .policy-value { font-size: 20px; }
  .stat-value small { font-size: 9px; }
  .stat-top { font-size: 8px; }
  .stat-top .icon { width: 14px; height: 14px; }
  .footer-note > span { text-align: center; max-width: 250px; line-height: 1.8; }
}
@media (max-width: 700px) {
  .demo-comparison { grid-template-columns: 1fr; gap: 7px; }
  .comparison-step { min-height: 62px; }
  .brand { font-size: 19px; gap: 6px; }
  .nav-item { font-size: 13px; padding: 12px; gap: 10px; }
  .nav-item .icon { width: 20px; height: 20px; }
  .topbar { min-height: 65px; }
  .breadcrumb { font-size: 11px; }
  .topbar-left .breadcrumb { display: none; }
  .breadcrumb span { margin: 0 7px; }
  .network-detail { display: none; }
  .source-link { display: none; }
  .main { padding-left: 18px; padding-right: 18px; }
  .page-heading { grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { max-width: 520px; }
  h1 { font-size: 46px; letter-spacing: -2px; }
  .eyebrow { font-size: 9px; letter-spacing: 1px; }
  .hero-copy > p { font-size: 15px; }
  .desktop-break { display: none; }
  .demo-caption { display: inline; font-size: 11px; }
  .boundary-card { max-width: 100%; }
  .boundary-top .micro-label { font-size: 9px; }
  .boundary-badge { display: flex; font-size: 9px; }
  .boundary-flow { padding-top: 25px; padding-bottom: 18px; grid-template-columns: 1fr 30px 1fr 30px 1fr; }
  .flow-node strong { font-size: 13px; }
  .flow-node small { font-size: 11px; }
  .flow-icon { width: 40px; height: 40px; }
  .vault-node .flow-icon { width: 48px; height: 48px; }
  .boundary-attack { font-size: 10px; }
  .boundary-bottom { font-size: 11px; }
  .runtime-notice { padding: 14px; gap: 10px; }
  .runtime-notice p { font-size: 11px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-card { padding: 17px 15px 14px; }
  .stat-top { font-size: 9px; }
  .stat-value { font-size: 32px; }
  .stat-value small { font-size: 10px; }
  .stat-caption { font-size: 11px; }
  .policy-value { font-size: 23px; }
  .workbench { grid-template-columns: 1fr; gap: 17px; }
  .panel { padding: 21px; }
  h2 { font-size: 21px; }
  .case-count { font-size: 10px; }
  .scenario-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 266px; }
  .scenario-button { min-height: 78px; padding: 12px 10px; }
  .scenario-button > .icon { display: none; }
  .filter-button { font-size: 12px; min-height: 38px; }
  .scenario-search { height: 44px; }
  .scenario-search input { font-size: 13px; }
  .agent-message p { font-size: 13px; }
  .detail-row { font-size: 12px; min-height: 37px; }
  .detail-row code { font-size: 11px; }
  .decision-label { font-size: 17px; }
  .decision-subtitle { font-size: 12px; }
  .decision-tag { font-size: 9px; }
  .evidence-heading { font-size: 9px; }
  .evidence-item, .evidence-placeholder { font-size: 12px; }
  .evidence-list { min-height: 160px; }
  .approval-heading strong { font-size: 12px; }
  .approval-heading small { font-size: 11px; }
  .execute-button { font-size: 13px; min-height: 46px; }
  .secondary-button { font-size: 12px; min-height: 44px; }
  .run-progress, .gate-disclaimer { font-size: 11px; }
  .decision-panel { min-height: 580px; }
  .proof-grid { grid-template-columns: 1fr; gap: 22px; }
  .policy-proof { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 22px; }
  .balance-proof { flex-wrap: nowrap; font-size: 12px; }
  .balance-proof strong { font-size: 20px; }
  .transaction-hash { font-size: 12px; }
  .receipt-meta, .receipt-details summary { font-size: 11px; }
  .key-proof { font-size: 10px; }
  .policy-footnote { font-size: 11px; }
  .audit-count { font-size: 9px; }
  .audit-actions { gap: 6px; }
  .text-button { font-size: 12px; min-height: 44px; }
  .audit-heading { flex-wrap: wrap; align-items: flex-start; }
  .audit-actions { margin-left: auto; }
  .compact-button { font-size: 10px; padding: 9px; }
  .proof-panel > .panel-heading { flex-wrap: wrap; }
  .footer-note { flex-wrap: wrap; }
  .footer-note > span { order: 3; max-width: none; width: 100%; text-align: left; margin-top: 2px; }
  .toast { left: 18px; right: 18px; bottom: 18px; max-width: none; font-size: 12px; }
}
@media (max-width: 420px) {
  .brand { font-size: 18px; }
  h1 { font-size: clamp(30px, 9.1vw, 35px); letter-spacing: -1.6px; }
  .hero-copy > p { font-size: 14px; }
  .eyebrow { font-size: 8px; letter-spacing: .55px; }
  .topbar { gap: 8px; }
  .breadcrumb { font-size: 10px; }
  .breadcrumb span { margin: 0 5px; }
  .topbar-right { gap: 5px; }
  .network-pill { padding: 5px 6px; font-size: 8px; }
  .runtime-pill { font-size: 8px; padding: 5px 6px; }
  .theme-control { gap: 4px; padding: 0 7px; }
  .icon-button { width: 34px; height: 36px; }
  .hero-actions { gap: 12px; }
  .primary-button { width: 100%; justify-content: space-between; font-size: 13px; }
  .demo-caption { width: 100%; text-align: center; }
  .boundary-badge { font-size: 8px; }
  .boundary-top .micro-label { font-size: 8px; }
  .boundary-flow { grid-template-columns: 1fr 19px 1fr 19px 1fr; }
  .flow-node small { font-size: 9px; }
  .boundary-bottom { font-size: 10px; }
  .boundary-attack { font-size: 9px; }
  .stat-card { padding: 15px 12px; }
  .stat-top { font-size: 8px; letter-spacing: .3px; }
  .stat-top .icon { width: 13px; height: 13px; }
  .stat-value { font-size: 30px; }
  .stat-value small { font-size: 9px; }
  .policy-value { font-size: 21px; }
  .stat-caption { font-size: 10px; }
  .panel { padding: 18px; }
  h2 { font-size: 19px; }
  .panel-heading { gap: 8px; }
  .case-count { font-size: 9px; padding: 4px 5px; }
  .scenario-list { grid-template-columns: 1fr; max-height: 260px; }
  .scenario-button { min-height: 65px; }
  .scenario-button > .icon { display: block; }
  .scenario-title { font-size: 12px; }
  .scenario-description { font-size: 11px; }
  .detail-row { font-size: 11px; gap: 10px; }
  .detail-row code { font-size: 10px; }
  .message-heading { font-size: 8px; }
  .untrusted-badge { font-size: 7px; }
  .decision-banner { padding: 15px 12px; column-gap: 9px; }
  .decision-label { font-size: 15px; }
  .evidence-heading { font-size: 8px; }
  .approval-lock { display: none; }
  .approval-fingerprint { margin-left: 0; }
  .balance-proof { flex-wrap: wrap; font-size: 11px; }
  .runtime-notice .notice-icon { display: none; }
  .runtime-notice strong { font-size: 12px; }
  .runtime-notice .text-button { min-width: 75px; padding: 7px; }
  .audit-actions { margin-left: 0; width: 100%; justify-content: space-between; }
}
@media (min-width: 901px) {
  :root[data-sidebar="collapsed"] .sidebar { width: 76px; flex-basis: 76px; padding-left: 12px; padding-right: 12px; }
  :root[data-sidebar="collapsed"] .brand { justify-content: center; width: 100%; }
  :root[data-sidebar="collapsed"] .brand-copy,
  :root[data-sidebar="collapsed"] .workspace-label,
  :root[data-sidebar="collapsed"] .nav-label,
  :root[data-sidebar="collapsed"] .nav-counter,
  :root[data-sidebar="collapsed"] .sidebar-note,
  :root[data-sidebar="collapsed"] .agent-copy,
  :root[data-sidebar="collapsed"] .agent-indicator,
  :root[data-sidebar="collapsed"] .sidebar-footnote,
  :root[data-sidebar="collapsed"] #chain-status-label { display: none; }
  :root[data-sidebar="collapsed"] .workspace-nav { margin-top: 44px; }
  :root[data-sidebar="collapsed"] .nav-item { justify-content: center; padding: 12px; }
  :root[data-sidebar="collapsed"] .sidebar-status,
  :root[data-sidebar="collapsed"] .agent-card { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
