:root {
  --ink: #0b1d2d;
  --night: #07131f;
  --paper: #f2eee4;
  --paper-deep: #e8dfd0;
  --mist: #d1dde0;
  --sea: #156a73;
  --gold: #b18645;
  --orange: #b95935;
  --muted: #6c716e;
  --line: rgba(11, 29, 45, .18);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); min-height: 100vh; overflow-x: hidden; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: 10px; padding: 10px 14px; color: #fff; background: var(--sea); transform: translateY(-150%); transition: transform .18s ease; }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
:focus-visible { outline: 3px solid #d9a33f; outline-offset: 3px; }
.grain { pointer-events: none; position: fixed; inset: 0; opacity: .18; z-index: 10; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E"); }
.topbar { position: sticky; top: 0; z-index: 20; min-height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 5vw; background: rgba(7,19,31,.97); color: #edf1ec; border-bottom: 1px solid rgba(223, 237, 233, .14); }
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 10px; font: 600 16px var(--serif); letter-spacing: .08em; }
.brand-seal { width: 29px; height: 29px; display: grid; place-items: center; color: #efcf8c; border: 1px solid #c6a25d; font: 700 15px var(--serif); }
.topbar-note, .label, .eyebrow, .rail-title { font: 500 11px var(--mono); letter-spacing: .12em; }
.top-nav { display: flex; gap: 22px; margin-left: auto; margin-right: 28px; }
.top-nav a { color: #b8ccca; text-decoration: none; font: 11px var(--mono); letter-spacing: .07em; }
.top-nav a:hover { color: #efcf8c; }
.topbar-note { color: #a9bdbe; display: flex; align-items: center; gap: 8px; }
.pulse, .status-dot { width: 7px; height: 7px; display: inline-block; background: #62c4b1; border-radius: 50%; box-shadow: 0 0 0 5px rgba(98, 196, 177, .12); }
.shell { width: min(1440px, calc(100% - 56px)); margin: 0 auto; padding: 67px 0 38px; }
.masthead { display: flex; justify-content: space-between; gap: 56px; align-items: end; padding-bottom: 47px; }
.eyebrow { color: var(--sea); margin: 0 0 15px; }
h1 { margin: 0; max-width: 700px; font: 700 clamp(45px, 5.2vw, 78px)/1.08 var(--serif); letter-spacing: -.06em; }
h1 span { color: var(--sea); position: relative; }
h1 span::after { content: ""; position: absolute; bottom: -4px; height: 5px; left: 0; right: 0; opacity: .65; background: var(--gold); }
.platform-masthead { padding-bottom: 37px; }
.runtime-notice { position: sticky; z-index: 19; top: 68px; display: flex; justify-content: center; align-items: center; gap: 16px; min-height: 42px; padding: 8px 5vw; color: #d7e7e4; background: #124f59; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 12px; }
.runtime-notice button { min-height: 30px; padding: 4px 10px; color: #f6dfac; background: transparent; border: 1px solid rgba(246,223,172,.55); font-size: 11px; }
.runtime-notice.hidden { display: none; }
.cockpit-hero { overflow: hidden; color: #eef3ef; background: var(--night); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 26px 70px rgba(7,19,31,.18); }
.cockpit-kicker { min-height: 43px; display: flex; align-items: center; justify-content: space-between; padding: 0 21px; color: #8eb7b5; border-bottom: 1px solid rgba(215,232,228,.14); font: 10px var(--mono); letter-spacing: .11em; }
.cockpit-kicker strong { display: flex; align-items: center; gap: 9px; color: #cddbd8; font-weight: 500; }
.cockpit-kicker i { width: 7px; height: 7px; background: #5ac1ae; border-radius: 50%; box-shadow: 0 0 0 5px rgba(90,193,174,.1); }
.cockpit-grid { display: grid; grid-template-columns: minmax(270px,.85fr) minmax(440px,1.35fr) minmax(265px,.8fr); min-height: 510px; }
.cockpit-brief { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px,3vw,50px); border-right: 1px solid rgba(215,232,228,.14); }
.cockpit-brief .eyebrow { color: #6fb6b1; }
.cockpit-brief h1 { max-width: 520px; font-size: clamp(40px,4vw,66px); color: #f3f0e8; letter-spacing: -.055em; }
.cockpit-brief h1 span { display: inline-block; color: #e8c570; }
.cockpit-brief h1 span::after { height: 2px; background: #bb593a; }
.cockpit-brief h1 .hero-line { color: inherit; white-space: nowrap; }
.cockpit-brief h1 .hero-line::after { display: none; }
.hero-lead { max-width: 27em; margin: 26px 0 0; color: #b9c8c5; font-size: 14px; line-height: 1.85; }
.cockpit-brief .button-link { border-color: #8db6b1; color: #d8e5e2; }
.cockpit-brief .button-link.primary { color: var(--night); background: #e3bd68; border-color: #e3bd68; }
.cockpit-brief .button-link:hover { color: #fff; background: #176b73; border-color: #176b73; }
.hero-boundary { margin: 18px 0 0; color: #718a88; font: 9px/1.6 var(--mono); letter-spacing: .07em; }
.boundary-map { position: relative; min-width: 0; margin: 0; padding: 25px 24px 18px; background:
  linear-gradient(rgba(83,139,139,.075) 1px, transparent 1px),
  linear-gradient(90deg, rgba(83,139,139,.075) 1px, transparent 1px),
  radial-gradient(circle at 43% 47%, rgba(28,104,111,.21), transparent 45%);
  background-size: 32px 32px, 32px 32px, auto;
  border-right: 1px solid rgba(215,232,228,.14);
}
.boundary-map figcaption { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.boundary-map figcaption span { color: #6da9a5; font: 9px var(--mono); letter-spacing: .08em; }
.boundary-map figcaption strong { color: #dce7e3; font: 500 13px var(--serif); }
.boundary-map svg { width: 100%; height: auto; margin-top: 30px; overflow: visible; }
.map-track, .map-flow { fill: none; stroke-linecap: round; }
.map-track { stroke: rgba(185,207,203,.18); stroke-width: 11; }
.map-flow { stroke: url(#flow); stroke-width: 4; stroke-dasharray: 8 10; animation: route-flow 8s linear infinite; }
.map-node circle { fill: var(--night); stroke: #68b6ad; stroke-width: 4; }
.map-node text { fill: #b5cac6; font: 13px var(--sans); }
.map-node text:first-of-type { fill: #6eb3ad; font: 10px var(--mono); letter-spacing: .06em; }
.map-node.boundary circle { fill: #3a211c; stroke: #dc7553; }
.map-node.boundary text { fill: #efbca7; }
.boundary-line { fill: none; stroke: rgba(220,117,83,.7); stroke-width: 2; stroke-dasharray: 5 7; }
.boundary-label { fill: #de8b6c; font: 11px var(--mono); letter-spacing: .08em; }
.map-legend { position: absolute; left: 24px; right: 24px; bottom: 18px; display: flex; flex-wrap: wrap; gap: 16px; color: #91aaa6; font-size: 10px; }
.map-legend span { display: flex; align-items: center; gap: 6px; }
.map-legend i { width: 8px; height: 8px; border-radius: 50%; }
.signal-a { background: #56b8b2; }.signal-b { background: #d8ad54; }.signal-c { background: #c85e3d; }
.agent-briefing { padding: 27px 24px; background: #0b1824; }
.agent-briefing-head { padding-bottom: 20px; border-bottom: 1px solid rgba(215,232,228,.14); }
.agent-briefing-head span { display: block; color: #6fa9a6; font: 9px var(--mono); letter-spacing: .09em; }
.agent-briefing-head strong { display: block; margin-top: 7px; color: #f0d18d; font: 600 18px var(--serif); }
.agent-briefing section { display: grid; grid-template-columns: 30px 1fr; gap: 13px; padding: 22px 0; border-bottom: 1px solid rgba(215,232,228,.1); }
.agent-briefing section:last-child { border-bottom: 0; }
.brief-index { width: 27px; height: 27px; display: grid; place-items: center; color: #9fd2cc; border: 1px solid #337a78; font: 9px var(--mono); }
.brief-index.warn { color: #f0ce81; border-color: #a27d36; }
.brief-index.action { color: #ebb39e; border-color: #a34f36; }
.agent-briefing small { color: #76928f; font: 9px var(--mono); letter-spacing: .08em; }
.agent-briefing p { margin: 7px 0 0; color: #c7d2cf; font-size: 12px; line-height: 1.75; }
.theory-strip { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1.18fr; align-items: stretch; border-top: 1px solid rgba(215,232,228,.14); background: #0a151f; }
.theory-strip div { padding: 17px 19px; }
.theory-strip > b { align-self: center; color: #3c6665; font: 400 19px var(--serif); }
.theory-strip span, .theory-strip strong { display: block; }
.theory-strip span { color: #6fa9a6; font: 8px var(--mono); letter-spacing: .08em; }
.theory-strip strong { margin-top: 6px; color: #cbd8d4; font: 500 11px/1.55 var(--sans); }
.theory-strip .limit { background: rgba(185,89,53,.12); box-shadow: inset 3px 0 #b95935; }
.theory-strip .limit span { color: #da8c70; }
@keyframes route-flow { to { stroke-dashoffset: -180; } }
.disclaimer { display: grid; gap: 8px; max-width: 365px; margin-bottom: 9px; padding: 5px 0 5px 18px; border-left: 3px solid var(--gold); color: #4e5753; font-size: 13px; line-height: 1.8; }
.disclaimer b { color: var(--ink); font: 600 16px var(--serif); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.button-link { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 11px 16px; border: 1px solid var(--sea); color: var(--sea); background: transparent; text-decoration: none; font: 600 12px var(--sans); transition: color .18s ease, background .18s ease, border-color .18s ease; }
.button-link.primary { color: #fff; background: var(--sea); }
.button-link:hover { color: #fff; background: var(--ink); border-color: var(--ink); }
.platform-status { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.platform-status > div { padding: 18px 22px; border-right: 1px solid var(--line); }
.platform-status > div:last-child { border-right: 0; }
.platform-status .label { margin: 0 0 7px; color: var(--sea); }
.platform-status strong { font: 600 14px var(--serif); }
.section-heading { display: flex; justify-content: space-between; gap: 48px; align-items: end; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading h2 { margin: 0; font: 600 31px/1.25 var(--serif); letter-spacing: -.035em; }
.section-heading > p { max-width: 425px; margin: 0 0 3px; color: #5e6662; font-size: 13px; line-height: 1.8; }
.module-deck, .project-zone, .knowledge-zone, .authority-zone, .lab-zone, .evaluation-zone { padding-top: 72px; }
.section-heading.compact { align-items: center; margin-bottom: 20px; }
.section-heading.compact h2 { font-size: 28px; }
.module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 25px; background: var(--line); border: 1px solid var(--line); }
.module-card { position: relative; min-height: 236px; padding: 24px; background: rgba(255,255,255,.38); }
.module-card:hover { background: #faf8f1; }
.module-card.is-planned { background: #e9e5db; color: #666963; }
.module-index, .module-status { color: var(--sea); font: 10px var(--mono); letter-spacing: .07em; }
.module-card h3 { margin: 39px 0 10px; font: 600 22px var(--serif); }
.module-card p { color: #5e6662; font-size: 13px; line-height: 1.8; }
.module-status { position: absolute; left: 24px; bottom: 22px; color: #775421; text-decoration: none; }
.module-status:hover { color: var(--sea); }
.project-zone { padding-bottom: 10px; }
.project-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.project-list-wrap, .project-form { background: rgba(255,255,255,.42); padding: 22px; }
.project-list { display: grid; gap: 10px; }
.project-card { display: block; width: 100%; padding: 16px 18px; color: var(--ink); text-align: left; border: 1px solid var(--line); background: #f8f5ed; }
.project-card.is-active { border-color: var(--sea); box-shadow: inset 3px 0 var(--sea); background: #fdfbf5; }
.project-card span, .project-card small { color: var(--sea); font: 10px var(--mono); letter-spacing: .07em; }
.project-card strong { display: block; margin-top: 6px; font: 600 17px var(--serif); }
.project-card p { margin: 7px 0; color: #606662; font-size: 12px; line-height: 1.65; }
.project-form { background: var(--ink); color: #f3eedf; }
.project-form .label { margin: 0 0 22px; color: #a8c5c1; }
.project-form label { display: block; margin-bottom: 8px; color: #dbe4df; font-size: 12px; }
.project-form input, .project-form textarea, .rail select { width: 100%; border: 1px solid rgba(214,234,229,.28); background: rgba(255,255,255,.08); color: inherit; padding: 10px; outline: none; }
.project-form input, .project-form textarea { margin-bottom: 15px; }
.project-form textarea { min-height: 101px; resize: vertical; line-height: 1.6; }
.project-form input:focus, .project-form textarea:focus { border-color: #7ec1b6; }
.project-form .draft-button { margin-top: 5px; background: #d5aa5c; color: var(--ink); }
.form-feedback { color: #aec1be; font-size: 11px; line-height: 1.65; }
.project-inspector { margin-top: 1px; border: 1px solid var(--line); background: rgba(255,255,255,.35); }
.inspector-empty { min-height: 160px; display: grid; align-content: center; justify-items: center; padding: 28px; text-align: center; color: var(--muted); }
.inspector-empty .label { color: var(--sea); }
.inspector-empty h3 { margin: 9px 0 3px; font: 600 21px var(--serif); color: var(--ink); }
.inspector-empty p { max-width: 460px; font-size: 12px; line-height: 1.7; }
.project-inspector > header { display: flex; justify-content: space-between; gap: 30px; padding: 22px 25px; color: #edf1ec; background: var(--ink); }
.project-inspector > header .label { margin: 0; color: #8bb9b5; }
.project-inspector > header h3 { margin: 7px 0 4px; font: 600 23px var(--serif); }
.project-inspector > header p:not(.label) { max-width: 760px; margin: 0; color: #b9c7c4; font-size: 12px; line-height: 1.7; }
.inspector-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; white-space: nowrap; }
.inspector-actions span { height: fit-content; padding: 5px 8px; color: #e9bf70; border: 1px solid rgba(233,191,112,.45); font: 10px var(--mono); }
.inspector-actions a { padding: 8px 10px; color: #d9ebe7; text-decoration: none; border-bottom: 1px solid #75aaa5; font: 10px var(--mono); }
.inspector-actions a:hover { color: #efcf8c; border-color: #efcf8c; }
.inspector-grid { display: grid; grid-template-columns: 1fr 1fr; }
.inspector-grid > section { min-width: 0; padding: 23px 25px 27px; border-right: 1px solid var(--line); }
.inspector-grid > section:last-child { border-right: 0; }
.archive-list { display: grid; gap: 8px; }
.archive-card { width: 100%; padding: 13px 14px; text-align: left; color: var(--ink); border: 1px solid var(--line); background: #faf8f1; }
.archive-card:hover { border-color: var(--sea); transform: translateX(2px); }
.archive-card span { color: #8a6631; font: 10px var(--mono); }
.archive-card strong { display: block; margin: 6px 0 8px; font: 600 14px/1.55 var(--serif); }
.archive-card small { color: var(--muted); font: 9px var(--mono); }
.activity-timeline { list-style: none; margin: 0; padding: 0; }
.activity-timeline li { display: grid; grid-template-columns: 77px 1fr; gap: 14px; padding: 0 0 17px; }
.activity-timeline time { color: var(--sea); font: 9px var(--mono); }
.activity-timeline li > div { position: relative; padding-left: 15px; border-left: 1px solid rgba(21,106,115,.35); }
.activity-timeline li > div::before { content: ""; position: absolute; width: 5px; height: 5px; left: -3px; top: 3px; background: var(--sea); border-radius: 50%; }
.activity-timeline strong { font: 600 12px var(--serif); }
.activity-timeline p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.muted-copy { color: var(--muted); font-size: 13px; }
.knowledge-zone { padding-bottom: 4px; }
.evidence-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.evidence-card { min-height: 170px; padding: 21px; background: #f9f7f0; }
.evidence-card > span, .evidence-card small { color: var(--sea); font: 10px var(--mono); letter-spacing: .05em; }
.evidence-card p { margin: 17px 0 13px; font: 500 17px/1.55 var(--serif); }
.evidence-card i { display: inline-block; margin: 15px 5px 0 0; padding: 3px 6px; font: normal 10px var(--mono); background: #dde9e5; color: #355e5e; }
.lab-zone { padding-top: 71px; }
.agent-process { margin-bottom: 1px; color: #dfe9e6; background: #0a1722; border: 1px solid #203746; }
.agent-process > header { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 17px 20px; border-bottom: 1px solid rgba(215,232,228,.12); }
.agent-process > header .label { margin: 0 0 5px; color: #66aaa5; }
.agent-process > header h3 { margin: 0; color: #f0d08e; font: 600 18px var(--serif); }
.agent-process > header > span { color: #829d99; font-size: 10px; }
#agentPipeline { display: grid; grid-template-columns: repeat(5,1fr); margin: 0; padding: 0; list-style: none; }
#agentPipeline li { position: relative; min-width: 0; display: grid; grid-template-columns: 25px 1fr; gap: 9px; padding: 16px 14px 32px; border-right: 1px solid rgba(215,232,228,.1); }
#agentPipeline li:last-child { border-right: 0; }
#agentPipeline li > span { width: 24px; height: 24px; display: grid; place-items: center; color: #86aaa6; border: 1px solid #345c5d; font: 8px var(--mono); }
#agentPipeline strong, #agentPipeline small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#agentPipeline strong { color: #d6e2df; font-size: 11px; }
#agentPipeline small { margin-top: 5px; color: #758f8c; font-size: 9px; }
#agentPipeline em { position: absolute; left: 48px; bottom: 11px; color: #597572; font: normal 8px var(--mono); }
#agentPipeline li.is-active { background: rgba(226,187,101,.08); box-shadow: inset 0 -3px #d8ad54; }
#agentPipeline li.is-active > span { color: #f1cf85; border-color: #b18a42; }
#agentPipeline li.is-active em { color: #e1bd6e; }
#agentPipeline li.is-done { background: rgba(69,151,141,.08); }
#agentPipeline li.is-done > span { color: #cde9e4; background: #176a68; border-color: #328f88; }
#agentPipeline li.is-done em { color: #72bdb4; }
#agentPipeline li.is-blocked { background: rgba(185,89,53,.12); box-shadow: inset 0 -3px #b95935; }
#agentPipeline li.is-blocked em { color: #e29376; }
.scenario-bar { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 20px; background: var(--ink); color: #f8f1e1; padding: 20px 25px; border-radius: 3px 3px 0 0; }
.scenario-number { color: #accacc; text-align: center; font: 10px/1 var(--mono); letter-spacing: .1em; border-right: 1px solid rgba(202, 226, 222, .24); padding-right: 18px; }
.scenario-number b { display: block; margin-top: 7px; color: #e7bf72; font: 700 31px/.8 var(--serif); }
.scenario-bar h2, .scenario-bar h3 { margin: 4px 0 0; font: 600 21px var(--serif); letter-spacing: .02em; }
.scenario-bar .label { margin: 0; color: #8cb6b5; }
.scenario-status { align-self: center; color: #a6c8c4; font: 11px var(--mono); letter-spacing: .1em; display: flex; align-items: center; gap: 10px; }
.scenario-timeline { border: 1px solid var(--line); border-top: 0; background: #f8f5ed; }
.timeline-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.timeline-heading .label { margin: 0 0 5px; color: var(--sea); }
.timeline-heading h3 { margin: 0; font: 600 20px var(--serif); }
.timeline-heading > p { max-width: 430px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.timeline-nodes { display: grid; grid-template-columns: repeat(6, minmax(130px, 1fr)); overflow-x: auto; border-bottom: 1px solid var(--line); }
.timeline-nodes button { position: relative; min-height: 108px; padding: 15px 14px; text-align: left; color: var(--ink); background: transparent; border: 0; border-right: 1px solid var(--line); transition: background .18s ease, color .18s ease; }
.timeline-nodes button:last-child { border-right: 0; }
.timeline-nodes button::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; background: transparent; }
.timeline-nodes button:hover { background: rgba(21,106,115,.06); }
.timeline-nodes button.is-active { color: #fff; background: var(--sea); }
.timeline-nodes button.is-active::after { background: #e2bc72; }
.timeline-nodes span, .timeline-nodes small { display: block; font: 9px var(--mono); letter-spacing: .06em; }
.timeline-nodes span { color: var(--sea); }
.timeline-nodes button.is-active span { color: #cbe3df; }
.timeline-nodes strong { display: block; margin: 9px 0 7px; font: 600 15px var(--serif); }
.timeline-nodes small { color: var(--muted); }
.timeline-nodes button.is-active small { color: #deebe8; }
.timeline-detail { display: grid; grid-template-columns: 150px 180px 1fr; gap: 18px; align-items: center; min-height: 72px; padding: 13px 24px; }
.timeline-detail span { color: var(--sea); font: 10px var(--mono); }
.timeline-detail strong { font: 600 15px var(--serif); }
.timeline-detail p { margin: 0; color: #59625e; font-size: 12px; line-height: 1.65; }
.workspace { display: grid; grid-template-columns: 275px minmax(300px, .95fr) minmax(360px, 1.15fr); min-height: 550px; background: rgba(255,255,255,.34); border: 1px solid var(--line); border-top: 0; }
.rail { padding: 30px 25px; background: var(--paper-deep); border-right: 1px solid var(--line); }
.rail select { margin-bottom: 8px; color: var(--ink); background: #f7f4ed; border-color: rgba(11,29,45,.18); font-size: 12px; }
.rail-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.rail-title { margin: 0 0 13px; color: var(--muted); }
.role-list { display: grid; gap: 7px; }
.role-option, .action-option { display: block; position: relative; }
.role-option input, .action-option input { position: absolute; opacity: 0; }
.role-option span { display: block; border: 1px solid transparent; padding: 11px 12px 10px; color: #505651; font-size: 13px; transition: .18s ease; }
.role-option input:checked + span { color: var(--ink); background: #f7f4ed; border-color: rgba(21,106,115,.52); box-shadow: inset 3px 0 var(--sea); }
.line { height: 1px; background: var(--line); margin: 29px 0; }
.action-list { display: grid; gap: 8px; }
.action-option { padding: 10px 8px 10px 29px; border-bottom: 1px solid rgba(11,29,45,.1); transition: .16s ease; }
.action-option::before { content: ""; position: absolute; width: 10px; height: 10px; left: 7px; top: 13px; border: 1px solid #84908b; border-radius: 50%; }
.action-option:has(input:checked)::before { background: var(--sea); border-color: var(--sea); box-shadow: inset 0 0 0 3px var(--paper-deep); }
.action-option span { display: block; font-size: 13px; }
.action-option small { color: var(--muted); font: 10px var(--mono); }
.draft-button { width: 100%; margin-top: 31px; padding: 14px 15px; border: 0; background: var(--sea); color: white; text-align: left; font-weight: 600; letter-spacing: .02em; transition: transform .2s, background .2s; }
.draft-button span { float: right; font-size: 20px; line-height: .7; }
.draft-button:hover { background: #0f555e; transform: translateY(-2px); }
.event-column, .card-column { padding: 31px 31px 25px; }
.event-column { border-right: 1px solid var(--line); }
.column-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.column-heading .label { margin: 0; color: var(--muted); }
.badge { padding: 4px 8px; border: 1px solid rgba(21,106,115,.35); color: var(--sea); font: 9px var(--mono); letter-spacing: .08em; }
.badge-gold { border-color: rgba(177,134,69,.55); color: #846127; }
.event-column h2, .event-column h3, .card-column h2, .card-column h3 { font: 600 26px/1.35 var(--serif); margin: 21px 0 10px; letter-spacing: -.025em; }
.event-summary { color: #5e6662; font-size: 14px; line-height: 1.8; }
.signal-list { margin-top: 29px; display: grid; gap: 12px; }
.signal { position: relative; padding: 13px 12px 13px 18px; border-left: 2px solid var(--mist); background: rgba(238,244,242,.65); }
.signal::before { content: attr(data-index); position: absolute; left: -1px; top: -10px; color: var(--sea); font: 10px var(--mono); background: var(--paper); padding: 1px 4px; }
.signal b { display: block; font-size: 13px; line-height: 1.65; font-weight: 500; }
.signal small { color: var(--muted); font: 10px var(--mono); }
.source-note { margin-top: 28px; padding-top: 15px; border-top: 1px solid var(--line); font-size: 11px; display: flex; flex-direction: column; gap: 4px; color: var(--muted); }
.source-note strong { color: var(--sea); font-weight: 600; }
.empty-card, .manual-review { margin-top: 21px; min-height: 294px; border: 1px dashed rgba(11,29,45,.28); padding: 26px; background: rgba(255,255,255,.25); }
.empty-index { color: #a97a32; font: 10px var(--mono); letter-spacing: .1em; }
.empty-card p, .manual-review p { max-width: 340px; color: #626a66; font-size: 14px; line-height: 1.8; }
.coordination-card { margin-top: 21px; border: 1px solid rgba(11,29,45,.28); background: #fbfaf5; box-shadow: 8px 8px 0 rgba(21,106,115,.13); }
.card-strip { display: flex; justify-content: space-between; gap: 10px; padding: 9px 13px; background: var(--ink); color: #d6e6e3; font: 9px var(--mono); letter-spacing: .07em; }
.coordination-card h2, .coordination-card h3 { margin: 22px 23px 8px; font-size: 24px; }
.boundary-notice { margin: 0 23px 21px; padding: 11px 12px; color: #754426; background: #f3e7d2; border-left: 2px solid var(--gold); font-size: 12px; line-height: 1.65; }
.card-facts { margin: 0 23px; border-top: 1px solid var(--line); }
.card-facts div { display: grid; grid-template-columns: 88px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.card-facts dt { color: var(--muted); font: 10px var(--mono); letter-spacing: .06em; }
.card-facts dd { margin: 0; font-size: 12px; line-height: 1.55; }
.decision-trace { margin: 18px 23px 0; padding: 16px; border: 1px solid rgba(21,106,115,.28); background: rgba(21,106,115,.055); }
.decision-trace ol { margin: 10px 0 0; padding-left: 22px; }
.decision-trace li { padding: 5px 0; color: var(--ink); font-size: 12px; line-height: 1.55; }
.decision-trace li::marker { color: var(--sea); font: 600 10px var(--mono); }
.decision-panel { margin: 19px 23px 23px; padding-top: 16px; }
.decision-panel p { margin: 0 0 11px; color: var(--muted); font-size: 11px; }
.decision-actions { display: flex; gap: 7px; }
.decision-actions button { padding: 8px 14px; border: 1px solid var(--sea); background: var(--sea); color: #fff; font-size: 12px; }
.decision-actions .quiet { color: var(--sea); background: transparent; }
.manual-review { border-color: rgba(185,89,53,.55); background: #f7ede5; }
.manual-review h2 { color: #903c25; }
.audit-strip { display: flex; justify-content: space-between; gap: 30px; padding: 22px 25px; background: #d6dfdc; border: 1px solid var(--line); border-top: 0; }
.audit-strip .label { margin: 0 0 4px; color: var(--sea); }
.audit-strip strong { font: 600 15px var(--serif); }
.activity { align-self: center; max-width: 420px; color: #55605c; font-size: 12px; text-align: right; }
.hidden { display: none; }
.presentation-guide { position: fixed; z-index: 50; left: 50%; bottom: 18px; width: min(940px, calc(100% - 36px)); transform: translateX(-50%); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 17px 19px; color: #eef3ed; background: rgba(7,19,31,.98); border: 1px solid rgba(224,193,125,.55); box-shadow: 0 18px 55px rgba(0,0,0,.28); }
.presentation-guide.hidden { display: none; }
.presentation-guide span { color: #8fc5bf; font: 9px var(--mono); letter-spacing: .1em; }
.presentation-guide strong { display: block; margin: 4px 0; color: #f0d08e; font: 600 16px var(--serif); }
.presentation-guide p { margin: 0; color: #c3d0cd; font-size: 11px; line-height: 1.6; }
.presentation-actions { display: flex; gap: 8px; }
.presentation-actions button { min-height: 44px; padding: 9px 14px; border: 1px solid #7da8a3; color: #e3eeeb; background: transparent; }
.presentation-actions button:last-child { color: var(--night); background: #dfb965; border-color: #dfb965; font-weight: 600; }
.presentation-mode { padding-bottom: 120px; }

.demo-paths { margin: 28px 0 36px; padding: 30px; color: var(--night); background: var(--paper); border: 1px solid var(--line); }
.demo-paths > header { display: grid; grid-template-columns: 1fr minmax(260px, .7fr); column-gap: 40px; align-items: end; }
.demo-paths > header .eyebrow { grid-column: 1 / -1; }
.demo-paths > header h2 { margin: 4px 0 0; font: 600 clamp(26px, 3vw, 42px)/1.08 var(--serif); }
.demo-paths > header > p:last-child { margin: 0; color: #59656c; line-height: 1.7; }
.demo-paths > div { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 24px; background: #cbd0cc; border: 1px solid #cbd0cc; }
.demo-paths article { padding: 24px; background: #f8f6f0; }
.demo-paths article.is-boundary { background: #f5eee8; }
.demo-paths article > span { color: #4c7774; font: 10px var(--mono); letter-spacing: .1em; }
.demo-paths article.is-boundary > span { color: #a64f32; }
.demo-paths h3 { margin: 10px 0 8px; font: 600 23px var(--serif); }
.demo-paths article p { min-height: 48px; margin: 0 0 18px; color: #4f5d63; line-height: 1.65; }
.demo-paths button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--night); color: var(--paper); background: var(--night); font-weight: 700; cursor: pointer; }
.demo-paths .is-boundary button { border-color: #a64f32; background: #a64f32; }
.demo-paths .fresh-demo { display: block; min-height: 38px; margin: 14px 0 0 auto; padding: 7px 0; border: 0; border-bottom: 1px solid #59656c; color: #46545a; background: transparent; font-size: 11px; }
.demo-paths .fresh-demo:hover { color: var(--sea); border-color: var(--sea); }

.knowledge-toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 12px; padding: 15px; color: #e6efeb; background: var(--ink); }
.search-field { display: grid; flex: 1; max-width: 520px; gap: 7px; color: #b7cac6; font-size: 11px; }
.search-field input { min-height: 44px; padding: 10px 12px; border: 1px solid rgba(215,233,229,.3); color: #fff; background: rgba(255,255,255,.08); }
.search-field input::placeholder { color: #aabbb8; }
.filter-group { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-button { min-height: 40px; padding: 8px 12px; border: 1px solid rgba(215,233,229,.28); color: #c6d6d3; background: transparent; font-size: 11px; }
.filter-button.is-active { color: var(--ink); background: #e5c276; border-color: #e5c276; }
.empty-result, .error-copy { padding: 24px; border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.35); }
.evidence-card details { margin-top: 12px; border-top: 1px solid var(--line); }
.evidence-card summary { min-height: 44px; display: flex; align-items: center; color: #315f61; cursor: pointer; font-size: 11px; }
.evidence-card dl { margin: 2px 0 8px; }
.evidence-card dl div { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 7px 0; border-top: 1px dotted var(--line); font-size: 11px; }
.evidence-card dt { color: var(--muted); }
.evidence-card dd { margin: 0; line-height: 1.55; }
.review-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-top: 45px; padding-top: 30px; border-top: 1px solid var(--line); }
.review-heading h3 { margin: 4px 0 0; font: 600 24px var(--serif); }
.review-heading > p { max-width: 430px; margin: 0; color: #5a625e; font-size: 12px; line-height: 1.75; }
.review-issue-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.review-issue { border: 1px solid var(--line); background: #f8f3e8; }
.review-issue summary { position: relative; display: grid; min-height: 128px; align-content: center; gap: 8px; padding: 20px 54px 20px 20px; cursor: pointer; list-style: none; }
.review-issue summary::-webkit-details-marker { display: none; }
.review-issue summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--orange); font: 30px var(--serif); }
.review-issue[open] summary::after { content: "−"; }
.review-issue summary span { color: #984f31; font: 10px var(--mono); letter-spacing: .08em; }
.review-issue summary strong { font: 600 18px var(--serif); }
.review-issue summary em { color: var(--muted); font: normal 10px var(--mono); }
.issue-claims { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.issue-claims section { min-width: 0; padding: 18px; border-right: 1px solid var(--line); }
.issue-claims section:last-child { border-right: 0; }
.issue-claims small { color: var(--orange); font: 10px var(--mono); }
.issue-claims p { min-height: 53px; margin: 7px 0 12px; font-size: 12px; line-height: 1.7; }
.issue-claims code { color: var(--sea); white-space: normal; font: 10px/1.5 var(--mono); }
.issue-action { margin: 0; padding: 15px 18px; border-top: 1px solid var(--line); color: #544d43; background: #efe4d1; font-size: 11px; line-height: 1.7; }

.legend { display: flex; flex-wrap: wrap; gap: 18px; margin: 2px 0 14px; color: #555e5a; font-size: 11px; }
.legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; }
.legend-ok::before { background: var(--sea); }.legend-warn::before { background: var(--gold); }.legend-stop::before { background: var(--orange); }.legend-unknown::before { background: #7c817d; }
.authority-matrix { border: 1px solid var(--line); background: rgba(255,255,255,.35); }
.table-scroll { overflow-x: auto; }
.authority-matrix table { width: 100%; min-width: 760px; border-collapse: collapse; }
.authority-matrix th, .authority-matrix td { height: 78px; padding: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; }
.authority-matrix thead th { height: 54px; color: #c8d8d5; background: var(--ink); font: 500 11px var(--sans); }
.authority-matrix tbody th { width: 25%; background: #ede6d9; }
.authority-matrix tbody th span { display: block; font: 600 14px var(--serif); }
.authority-matrix tbody th small { color: var(--muted); font: 9px var(--mono); }
.matrix-state { display: inline-block; padding: 6px 9px; border: 1px solid currentColor; font-size: 11px; }
.matrix-state.ok { color: #0d6763; }.matrix-state.warn { color: #7a571e; }.matrix-state.stop { color: #923f28; }.matrix-state.unknown { color: #5f6662; border-style: dashed; }
.matrix-note { margin: 0; padding: 15px 18px; color: #57605c; font-size: 11px; line-height: 1.65; }

.demo-steps { display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-bottom: 0; }
.demo-steps li { position: relative; padding: 11px 14px; border-right: 1px solid var(--line); color: #68716c; background: rgba(255,255,255,.32); font: 10px var(--mono); text-align: center; }
.demo-steps li:last-child { border-right: 0; }
.demo-steps li.is-current { color: #fff; background: var(--sea); }
.demo-steps li.is-done { color: var(--sea); background: #dbe7e3; }
.role-boundary { margin-top: 10px; padding: 10px 12px; border-left: 2px solid var(--gold); background: rgba(255,255,255,.36); }
.role-boundary p { margin: 0 0 5px; color: #555d59; font-size: 10px; line-height: 1.55; }
.role-boundary p:last-child { margin-bottom: 0; }
.assistant-box { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.assistant-box > div:first-child { display: flex; justify-content: space-between; gap: 15px; align-items: start; }
.assistant-box > div:first-child span { max-width: 220px; color: var(--muted); font-size: 10px; text-align: right; }
.assistant-input { display: grid; grid-template-columns: 1fr auto; margin-top: 10px; }
.assistant-input input { min-width: 0; min-height: 44px; padding: 9px 11px; border: 1px solid var(--line); background: #fbfaf5; }
.assistant-input button { min-width: 64px; border: 0; color: #fff; background: var(--sea); }
.question-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.question-chips button { min-height: 36px; padding: 7px 9px; border: 1px solid rgba(21,106,115,.35); color: var(--sea); background: transparent; font-size: 10px; }
.assistant-answer { margin-top: 10px; padding: 12px; border-left: 2px solid var(--sea); color: #58615d; background: rgba(219,233,229,.5); font-size: 11px; line-height: 1.7; }
.assistant-answer strong { display: block; color: var(--ink); font-weight: 500; }
.assistant-answer span { display: block; margin-top: 7px; color: var(--sea); font: 9px/1.5 var(--mono); }
.confirmation-progress { margin: 16px 23px 0; }
.confirmation-progress .rail-title { margin-bottom: 8px; }
#confirmationProgress { display: flex; flex-wrap: wrap; gap: 6px; }
.confirmation-role { padding: 5px 7px; border: 1px dashed #88775f; color: #695d4c; font-size: 10px; }
.confirmation-role.is-confirmed { border-style: solid; border-color: var(--sea); color: var(--sea); background: #e1ece8; }
.decision-panel label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 11px; }
.decision-panel textarea { width: 100%; min-height: 70px; padding: 9px; border: 1px solid var(--line); background: #f5f1e8; resize: vertical; font-size: 12px; line-height: 1.55; }
.decision-actions button { min-height: 42px; }
.decision-actions button:disabled, .draft-button:disabled, .button-link:disabled { cursor: not-allowed; opacity: .48; transform: none; }

.evaluation-zone { padding-bottom: 72px; }
.evaluation-summary { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 25px; color: #e8efeb; background: var(--ink); }
.score-ring { width: 98px; height: 98px; display: grid; place-content: center; text-align: center; border: 1px solid #d3ae64; border-radius: 50%; }
.score-ring strong { color: #efcc82; font: 600 25px var(--serif); }
.score-ring span { color: #a9beba; font: 9px var(--mono); }
.evaluation-summary .label { margin: 0 0 5px; color: #83b3ae; }
.evaluation-summary h3 { margin: 0 0 6px; font: 600 23px var(--serif); }
.evaluation-summary p:last-child { margin: 0; color: #aebfbb; font-size: 11px; }
.evaluation-summary .button-link { justify-self: end; }
.evaluation-coverage { display: flex; flex-wrap: wrap; gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-top: 0; }
.evaluation-coverage span { min-width: 145px; flex: 1; padding: 11px 14px; color: #5d6661; background: #eee9de; font: 10px var(--mono); }
.evaluation-coverage b { margin-right: 8px; color: var(--sea); font-size: 15px; }
.evaluation-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.evaluation-case { background: #f8f6ef; }
.evaluation-case summary { display: grid; grid-template-columns: 70px 80px 1fr; align-items: center; min-height: 65px; padding: 12px 16px; cursor: pointer; list-style: none; }
.evaluation-case summary::-webkit-details-marker { display: none; }
.evaluation-case summary span { color: var(--sea); font: 10px var(--mono); }
.evaluation-case summary strong { color: #14645f; font-size: 12px; }
.evaluation-case.is-fail summary strong { color: var(--orange); }
.evaluation-case summary em { overflow: hidden; color: var(--muted); font: normal 9px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.evaluation-case > div { padding: 0 16px 14px; border-top: 1px dotted var(--line); }
.evaluation-case p { margin: 10px 0 0; color: #5c6560; font: 10px/1.65 var(--mono); overflow-wrap: anywhere; }
.evaluation-case p b { margin-right: 9px; color: var(--ink); font-family: var(--sans); }
.footer { display: grid; grid-template-columns: auto 1fr auto; gap: 35px; align-items: center; padding: 28px 5vw; color: #b8c9c5; background: var(--night); }
.footer > div { display: flex; align-items: center; gap: 10px; color: #eef1eb; font: 600 14px var(--serif); }
.footer p { max-width: 680px; margin: 0; font-size: 11px; line-height: 1.65; }
.footer small { font: 9px var(--mono); }

@media (max-width: 1100px) {
  .topbar-note { display: none; }
  .platform-status { grid-template-columns: repeat(2, 1fr); }
  .workspace { grid-template-columns: 240px 1fr; }
  .card-column { grid-column: 2; border-top: 1px solid var(--line); }
  .masthead { gap: 25px; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .cockpit-grid { grid-template-columns: .9fr 1.35fr; }
  .agent-briefing { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr repeat(3, 1fr); gap: 0; padding: 0; border-top: 1px solid rgba(215,232,228,.14); }
  .agent-briefing-head, .agent-briefing section { padding: 20px; border-bottom: 0; border-right: 1px solid rgba(215,232,228,.12); }
  .agent-briefing section:last-child { border-right: 0; }
  .project-grid, .inspector-grid { grid-template-columns: 1fr; }
  .inspector-grid > section { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .demo-paths { padding: 22px 18px; }
  .demo-paths > header, .demo-paths > div { grid-template-columns: 1fr; }
  .demo-paths > header > p:last-child { margin-top: 12px; }
  html { scroll-padding-top: 118px; }
  .topbar { min-height: 104px; padding: 12px 18px 9px; align-content: space-between; flex-wrap: wrap; }
  .brand { width: 100%; }
  .top-nav { width: 100%; gap: 17px; margin: 11px 0 0; overflow-x: auto; padding-bottom: 4px; }
  .top-nav a { flex: 0 0 auto; min-height: 28px; }
  .shell { width: min(100% - 28px, 1440px); padding-top: 35px; }
  .runtime-notice { top: 104px; align-items: flex-start; padding: 10px 18px; }
  .cockpit-grid { display: block; }
  .cockpit-brief { border-right: 0; border-bottom: 1px solid rgba(215,232,228,.14); }
  .boundary-map { min-height: 390px; border-right: 0; }
  .boundary-map figcaption { display: grid; }
  .boundary-map svg { margin-top: 5px; }
  .agent-briefing { display: block; }
  .agent-briefing-head, .agent-briefing section { border-right: 0; border-bottom: 1px solid rgba(215,232,228,.12); }
  .theory-strip { grid-template-columns: 1fr 1fr; }
  .theory-strip > b { display: none; }
  .theory-strip div { border-bottom: 1px solid rgba(215,232,228,.1); }
  h1 { font-size: clamp(39px, 12vw, 58px); }
  .masthead, .audit-strip, .section-heading, .review-heading { display: block; }
  .disclaimer { margin-top: 28px; }
  .section-heading > p, .review-heading > p { margin-top: 15px; }
  .platform-status, .module-grid, .evidence-grid, .review-issue-grid, .evaluation-results { grid-template-columns: 1fr; }
  .platform-status > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .knowledge-toolbar { display: grid; }
  .search-field { max-width: none; }
  .issue-claims { grid-template-columns: 1fr; }
  .issue-claims section { border-right: 0; border-bottom: 1px solid var(--line); }
  .scenario-bar { grid-template-columns: 55px 1fr; padding: 16px; }
  .agent-process > header { display: block; }
  .agent-process > header > span { display: block; margin-top: 8px; }
  #agentPipeline { grid-template-columns: repeat(5, 190px); overflow-x: auto; }
  .scenario-status { display: none; }
  .timeline-heading { display: block; }
  .timeline-heading > p { margin-top: 10px; }
  .timeline-nodes { grid-template-columns: repeat(6, 142px); }
  .timeline-detail { grid-template-columns: 1fr; gap: 5px; }
  .workspace { display: block; }
  .rail, .event-column { border-right: 0; border-bottom: 1px solid var(--line); }
  .card-column, .event-column, .rail { padding: 24px 20px; }
  .activity { margin-top: 14px; text-align: left; }
  .evaluation-summary { grid-template-columns: auto 1fr; }
  .evaluation-summary .button-link { grid-column: 1 / -1; justify-self: stretch; }
  .footer { grid-template-columns: 1fr; gap: 15px; }
  .presentation-guide { grid-template-columns: 1fr; gap: 12px; bottom: 10px; }
  .presentation-actions button { flex: 1; }
}
@media (max-width: 430px) {
  .module-card { min-height: 208px; }
  .project-inspector > header { display: block; }
  .inspector-actions { align-items: flex-start; margin-top: 16px; }
  .demo-steps li { padding: 9px 3px; letter-spacing: -.04em; }
  .evaluation-summary { grid-template-columns: 1fr; }
  .score-ring { width: 82px; height: 82px; }
  .assistant-box > div:first-child { display: block; }
  .assistant-box > div:first-child span { display: block; max-width: none; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .topbar, .grain, .hero-actions, .project-form, .knowledge-toolbar, .rail, .assistant-box, .decision-panel, .presentation-guide, #rerunEvaluation { display: none !important; }
  .shell { width: 100%; padding: 0; }
  .module-deck, .project-zone, .knowledge-zone, .authority-zone, .lab-zone, .evaluation-zone { padding-top: 28px; break-inside: avoid; }
  .workspace { display: block; }
  .event-column, .card-column { border: 1px solid #888; }
  body { background: #fff; }
}

/* 键盘焦点、窄屏导航与小字号对比度。 */
.module-card p { color: #4f5754; }
.review-issue summary em { color: #636966; }
.authority-matrix tbody th small { color: #555c58; }
#agentPipeline em { color: #75928e; }
.rail-title, .rail-note, .action-option small { color: #555c58; }
.empty-index { color: #7b571f; }
.noscript-note { margin: 0; padding: 13px 18px; color: #07131f; background: #f1cf85; text-align: center; font-size: 13px; }
.noscript-note a { margin-left: 6px; font-weight: 700; }
.role-option:has(input:focus-visible) span,
.action-option:has(input:focus-visible) { outline: 3px solid #d9a33f; outline-offset: 3px; }
.rail select:focus-visible { outline: 3px solid #d9a33f; outline-offset: 3px; }

@media (max-width: 760px) {
  html { scroll-padding-top: 176px; }
  .topbar { min-height: 0; }
  .top-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; overflow: visible; padding: 8px 0 0; border-top: 1px solid rgba(255,255,255,.12); }
  .top-nav a { display: grid; place-items: center; min-width: 0; min-height: 38px; padding: 0 3px; text-align: center; font-size: 10px; }
  .runtime-notice { top: 162px; }
}
