:root {
  color-scheme: light;
  --ink: #17243a;
  --nav: #17243a;
  --teal: #087f8c;
  --paper: #f8f7f3;
  --line: #cfdbd8;
  --muted: #43566b;
  --link: #06636c;
  --red: #8a2833;
  --amber: #795100;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.6 system-ui,
    -apple-system,
    sans-serif;
}
a {
  color: var(--link);
  text-underline-offset: 3px;
}
header {
  background: var(--nav);
  color: #fff;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  color: white;
  font-weight: 700;
  text-decoration: none;
}
.brand b {
  background: #83d9be;
  color: var(--nav);
  border-radius: 8px;
  padding: 0.1rem 0.7rem;
  font-size: 24px;
}
.brand span {
  color: #c2d5d8;
  font-weight: 400;
}
.pill {
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.6rem;
  border: 1px solid currentColor;
  border-radius: 5px;
  display: inline-block;
}
.shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  max-width: 1600px;
  margin: auto;
}
aside {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--line);
  background: #eff4ef;
}
aside nav {
  display: grid;
  margin: 1.5rem 0;
  gap: 0.4rem;
}
aside a {
  min-height: 44px;
  padding: 0.4rem 0;
}
main {
  min-width: 0;
  padding: 2rem clamp(1rem, 4vw, 4rem);
}
h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.04em;
}
h2 {
  font-size: 1.65rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
  margin: 0.3rem 0 1rem;
}
h3 {
  line-height: 1.4;
}
p {
  margin: 0.65rem 0;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.13em;
  font-weight: 750;
  color: var(--teal);
}
section {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 1rem;
}
.hero {
  padding-top: 1rem;
}
.hero h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}
label {
  display: block;
  font-size: 14px;
  font-weight: 650;
  margin-top: 0.8rem;
}
button,
input,
select,
textarea {
  font: inherit;
  max-width: 100%;
  border: 1px solid #a1b5b5;
  border-radius: 6px;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  background: white;
  color: var(--ink);
}
select,
input,
textarea {
  width: 100%;
}
textarea {
  resize: vertical;
}
button {
  cursor: pointer;
  font-weight: 600;
  margin: 0.55rem 0.3rem 0.3rem 0;
}
button:hover {
  background: #e5f2ed;
}
button.primary {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.boundary,
article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.2rem;
  margin: 0.8rem 0;
}
.boundary {
  border-left: 3px solid var(--teal);
  font-size: 14px;
}
.mono,
code,
pre {
  font:
    13px/1.65 ui-monospace,
    SFMono-Regular,
    monospace;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
pre {
  background: #eef3f1;
  padding: 1rem;
  border-radius: 6px;
  max-height: 420px;
  overflow: auto;
}
#notice {
  font-size: 14px;
  border-left: 3px solid var(--teal);
  padding: 0.5rem 1rem;
  background: #e7f1ec;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}
.metric {
  border: 1px solid var(--line);
  padding: 0.8rem;
  border-radius: 8px;
  background: white;
}
.metric strong {
  display: block;
  font-size: 1.25rem;
}
.metric span {
  font-size: 12px;
  color: var(--muted);
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.evidence-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
.evidence-map button {
  text-align: left;
  display: grid;
  font-size: 14px;
  margin: 0;
  min-height: 76px;
}
.evidence-map button[aria-pressed="true"] {
  outline: 2px solid var(--teal);
  background: #e2f1ea;
}
.status {
  font: 700 11px/1.4 system-ui;
  letter-spacing: 0.035em;
}
.blocked {
  color: var(--red);
}
.unverified {
  color: var(--amber);
}
.passed {
  color: var(--teal);
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
.cards article {
  margin: 0;
}
.cards h3 {
  margin: 0.25rem 0;
}
.scroll {
  overflow: auto;
  max-width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  background: white;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem;
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
  min-width: 110px;
}
details {
  padding: 0.8rem 0;
}
summary {
  cursor: pointer;
  font-weight: 650;
  min-height: 44px;
  padding: 0.4rem;
}
footer {
  font-size: 13px;
  color: var(--muted);
  padding: 2rem 0;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.skip {
  position: absolute;
  top: -70px;
  left: 10px;
  background: white;
  padding: 12px;
  z-index: 10;
}
.skip:focus {
  top: 8px;
}
:focus-visible {
  outline: 3px solid #007a76;
  outline-offset: 3px;
}
header :focus-visible {
  outline-color: #a0ffe0;
}
[hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  .shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  aside {
    padding: 1.2rem 1rem;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  header {
    padding: 1rem;
  }
  .brand {
    flex-wrap: wrap;
  }
  .brand span {
    font-size: 13px;
  }
  .shell {
    display: block;
  }
  aside {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  aside h1 {
    font-size: 1.65rem;
  }
  aside nav {
    grid-template-columns: 1fr 1fr;
    margin: 1rem 0;
  }
  main {
    padding: 1rem;
  }
  .evidence-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .section-head {
    display: block;
  }
  .hero h2 {
    font-size: 1.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

/* Guided investigation shares the existing evidence visual language. */
.judge-guide { border: 2px solid #087f8c; border-radius: 12px; padding: clamp(1rem,3vw,2rem); background: #fff; }
.judge-guide[hidden] { display:none; }
.judge-guide progress { width:100%; accent-color:#087f8c; height:8px; }
.guide-actions,.guide-links { display:flex; flex-wrap:wrap; gap:.75rem; margin:1rem 0; align-items:center; }
.guide-actions button { width:auto; min-height:44px; }
.judge-guide pre { white-space:pre-wrap; overflow-wrap:anywhere; }
.judge-guide h2:focus { outline:3px solid #087f8c; outline-offset:5px; }

#title {font-size:.85rem;line-height:1.5;color:var(--muted);overflow-wrap:anywhere;}
#local-advanced {border:1px solid var(--line);border-radius:12px;padding:1rem;margin:2rem 0;background:#fff;}
#local-advanced>summary {font-weight:700;cursor:pointer;min-height:44px;}
.guide-actions a,.guide-links a {display:inline-flex;align-items:center;min-height:44px;}
#guide-body {font-size:1.15rem;max-width:70ch;}

/* Corrective-action workbench: two substantive workflows, progressive detail. */
#action-workbench {border:1px solid var(--line);border-radius:16px;padding:clamp(1rem,2.5vw,2rem);background:#eef4f2;margin:1.8rem 0;}
.wb-navigation {display:flex;gap:.6rem;flex-wrap:wrap;margin:1rem 0;}
.wb-navigation button[aria-pressed="true"] {background:var(--nav);color:white;border-color:var(--nav);}
.wb-panel[hidden] {display:none;}
.wb-columns {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.25rem;}
.wb-card {min-width:0;background:white;border:1px solid var(--line);border-radius:12px;padding:1.15rem;}
.wb-card h3 {margin-top:.4rem;}
#wb-native {overflow-wrap:anywhere;font-size:.94rem;}
#wb-native>p:nth-child(2) {white-space:pre-wrap;border-left:3px solid var(--teal);padding-left:1rem;}
#wb-diff {font-size:.8rem;max-height:28rem;white-space:pre-wrap;overflow-wrap:anywhere;overflow:auto;}
.wb-card textarea {width:100%;}
.wb-hypotheses {display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.9rem;}
.wb-ledger {overflow-x:auto;}
.wb-consistent {color:#166257;font-weight:700;}
.wb-warning {color:var(--red);font-weight:700;}
#lab-result {margin:1.2rem 0;overflow-x:auto;}
#wb-status {padding:.8rem;border-left:3px solid var(--teal);background:white;}
@media(max-width:1000px) {.wb-columns{grid-template-columns:1fr;}}

/* Evidence-first visual system: shared typography, 8px rhythm and semantic states. */
:root {--paper:#f5f6f4;--ink:#162c36;--nav:#122d36;--teal:#08767a;--line:#d5dfdf;--muted:#465d65;--radius:16px;--space:8px;}
body {font-size:15px;line-height:1.65;}
header {padding:1rem 2rem;border-bottom:3px solid #89d2b3;}
.shell {grid-template-columns:250px minmax(0,1fr);max-width:1660px;}
aside {background:#eaf0ec;}
aside h1 {font-size:1.7rem;}
aside .boundary {font-size:.82rem;padding:1rem;}
.workspace-nav {gap:.45rem;}
.workspace-nav button {text-align:left;margin:0;border-color:transparent;background:transparent;display:flex;gap:.8rem;align-items:center;font-size:.95rem;}
.workspace-nav button span {font-size:.7rem;opacity:.75;letter-spacing:.08em;}
.workspace-nav button[aria-current="true"] {background:var(--nav);color:#fff;box-shadow:0 2px 8px #122d3618;}
.workspace-label {text-transform:uppercase;letter-spacing:.16em;font-size:.72rem;color:var(--muted);font-weight:700;border-bottom:1px solid var(--line);padding-bottom:1rem;}
.workspace-concealed {display:none !important;}
.overview-topline {display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-top:.8rem;}
.hero .overview-headline {font-size:clamp(2.2rem,4.3vw,4.4rem);line-height:1.08;letter-spacing:-.055em;margin:1.4rem 0;font-weight:700;}
.overview-headline em {font-style:normal;color:var(--teal);}
.overview-lede {font-size:1.1rem;max-width:68ch;}
.overview-callout {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.5rem;background:var(--nav);color:white;padding:1.5rem;border-radius:var(--radius);margin-top:1.7rem;}
.overview-callout .eyebrow {color:#9ee2cc;}
.overview-callout h3 {font-size:1.45rem;margin:.4rem 0;}
.overview-callout .mono {color:#d0e3e1;font-size:.75rem;}
.overview-counts {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;align-items:center;}
.overview-count {display:grid;gap:.3rem;font-size:.65rem;line-height:1.3;}
.overview-count strong {font-size:2.2rem;line-height:1;}
.overview-count.verified strong {color:#a1e8ce;}.overview-count.failed strong {color:#ffbdaf;}.overview-count.unknown strong {color:#e5d6a3;}
.overview-next {border-left:3px solid var(--teal);padding:.25rem 1rem;margin:1.4rem 0;}
.overview-actions {display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1.2rem;}
.overview-actions button {margin:0;}
.overview-details {padding:1rem;background:#fff;border:1px solid var(--line);border-radius:var(--radius);}
summary {cursor:pointer;min-height:44px;padding:.55rem 0;font-weight:650;}
.overview-path {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:1rem;}
.overview-path article {margin:0;background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;padding:1rem 0;}
.overview-path h3 {margin:.6rem 0;}.step-number {font-size:.75rem;color:var(--teal);font-weight:750;letter-spacing:.1em;}
.overview-path p {font-size:.9rem;color:var(--muted);}
.dossier-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1.5rem 0;}
.dossier-condition {margin:0;border-top:3px solid var(--line);border-radius:0 0 12px 12px;}
.dossier-condition.verified {border-top-color:#1b7866;}.dossier-condition.failed {border-top-color:#a74438;}.dossier-condition.unknown {border-top-color:#946d18;}
.dossier-condition h3 {margin:.5rem 0;font-size:1.05rem;}
.dossier-condition p {font-size:.9rem;overflow-wrap:anywhere;}
.dossier-condition summary {font-size:.85rem;color:var(--link);}
.dossier-editor {display:grid;grid-template-columns:1fr 2fr;gap:1rem;}
#dossier-fieldset {background:#eaf0ec;border-radius:var(--radius);padding:1.2rem;}
#dossier-fieldset legend {font-size:.8rem;font-weight:750;}
#dossier-source blockquote {margin:.5rem 0;padding-left:1rem;border-left:3px solid var(--teal);white-space:pre-wrap;}
#dossier-status {color:var(--muted);font-size:.9rem;}
#impact-comparison {margin-top:1rem;padding:1.5rem;background:#fff;border:1px solid var(--line);border-radius:var(--radius);}
#impact-comparison h2 {font-size:1.4rem;} #impact-comparison table {min-width:550px;}
#impact-method {font-size:.88rem;}main>section h2[tabindex="-1"]:focus {outline:3px solid var(--teal);outline-offset:4px;}
@media(max-width:1050px){.overview-callout{grid-template-columns:1fr;}.overview-counts{max-width:450px;}}
@media(max-width:800px){.shell{grid-template-columns:210px minmax(0,1fr);}.overview-path{grid-template-columns:1fr;}.dossier-grid,.dossier-editor{grid-template-columns:1fr;}}
@media(max-width:650px){.shell{display:block;}header{padding:1rem;}aside{padding:1rem;}aside>h1,aside>p:not(.eyebrow),aside>.boundary{display:none;}.workspace-nav{grid-template-columns:repeat(2,minmax(0,1fr));}.workspace-nav button{font-size:.9rem;}aside #guide-start{width:100%;}.hero .overview-headline{font-size:2.5rem;}.overview-topline .pill{font-size:9px;}.overview-callout{padding:1.2rem;}.overview-actions{display:grid;}.overview-actions button{width:100%;}main{padding:1rem;}.brand span{font-size:.75rem;}#impact-comparison{padding:1rem;}}

@media(min-width:651px){#investigation-picker>summary{display:none;}}
@media(max-width:650px){aside .workspace-nav{margin:.5rem 0;}#investigation-picker>summary{font-size:.9rem;}#investigation-picker{border-top:1px solid var(--line);}aside .eyebrow{margin:.2rem 0;}aside>a{font-size:.8rem;min-height:32px;}aside{padding-bottom:.5rem;}}

/* Decision-first dossier: evidence previews stay in the workspace. */
.decision-summary {background:#fff;border:1px solid var(--line);border-radius:var(--radius);margin:1.5rem 0;overflow:hidden;}
.decision-head {padding:1.3rem 1.5rem;background:var(--nav);color:white;}.decision-head .eyebrow{color:#a1e8ce;}.decision-head h3{font-size:2.1rem;margin:.5rem 0;}.decision-head p:last-child{font-size:.85rem;color:#d0e3e1;}
.decision-groups {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.2rem;padding:1.3rem 1.5rem;}.decision-group h4{font-size:.95rem;margin:.2rem 0 .75rem;}.decision-group li{font-size:.9rem;margin:.5rem 0;}.decision-group ul{padding-left:1.1rem;margin:0;}.decision-group.failed h4{color:#8a2833;}.decision-group.unknown h4{color:#795100;}.decision-group.verified h4{color:#166257;}
.decision-human {border-top:1px solid var(--line);background:#eef4f0;padding:1rem 1.5rem;font-size:.9rem;}.decision-human a {display:inline-block;min-height:44px;padding:.5rem 0;}.overview-disclosure{font-size:.92rem;max-width:80ch;border-left:3px solid var(--teal);padding-left:1rem;}.dossier-condition{scroll-margin-top:1rem;}.dossier-condition details p{padding:.3rem 0;}.dossier-grid{margin-top:1rem;}
@media(max-width:1050px){.decision-groups{grid-template-columns:1fr;gap:1rem;}.decision-group{border-bottom:1px solid var(--line);padding-bottom:.8rem;}}

/* The primary landing brief exposes required evidence without five disclosure clicks. */
.brief-disclosure{font-size:.9rem;color:var(--muted);max-width:88ch;border-left:3px solid var(--teal);padding-left:1rem;}
.dossier-toolbar{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap;margin:1rem 0 1.4rem;}.dossier-toolbar button{margin:0;}.dossier-toolbar a{min-height:44px;display:inline-flex;align-items:center;padding:.5rem;}
.brief-investigation-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:1.5rem;align-items:start;}.brief-investigation-grid section{min-width:0;}.brief-native{background:#fff;border:1px solid var(--line);padding:1.1rem;border-radius:12px;}.brief-native label{font-weight:750;}.brief-native blockquote{font-size:.9rem;line-height:1.6;overflow-wrap:anywhere;}
.brief-evidence{margin:.65rem 0;padding:.85rem 1rem;background:#fff;border:1px solid var(--line);border-left:4px solid var(--line);border-radius:0 8px 8px 0;}.brief-evidence.failed{border-left-color:#a74438;}.brief-evidence.unknown{border-left-color:#946d18;}.brief-evidence.verified{border-left-color:#1b7866;}.brief-evidence h4{margin:0;font-size:.95rem;}.brief-evidence p{margin:.35rem 0;font-size:.85rem;}.brief-evidence .brief-evidence-state{font-size:.7rem;font-weight:750;letter-spacing:.1em;}.brief-evidence .mono{font-size:.7rem;overflow-wrap:anywhere;}.brief-evidence a{display:inline-block;min-height:44px;padding:.6rem 0;font-size:.85rem;}
.proposal-editor{border-top:1px solid var(--line);margin-top:1.4rem;padding-top:.5rem;}.all-conditions-heading{margin-top:2rem;}.decision-head{padding:1rem 1.2rem;}.decision-head h3{margin:.25rem 0;font-size:1.8rem;}.decision-groups{padding:1rem 1.2rem;gap:1rem;}.decision-group li{margin:.35rem 0;}.decision-human{padding:.8rem 1.2rem;}
@media(max-width:1100px){.brief-investigation-grid{grid-template-columns:1fr;}.brief-native{grid-row:1;}.brief-records{grid-row:2;}}
@media(max-width:650px){#readiness-dossier>h2{font-size:1.8rem;}.dossier-toolbar{display:grid;}.dossier-toolbar button{width:100%;}.brief-native{padding:.85rem;}#dossier-fieldset{padding:.85rem;}.brief-evidence{padding:.75rem;}.brief-disclosure{font-size:.85rem;}}
