:root {
  --deep: #082735;
  --navy: #0d3443;
  --teal: #087f76;
  --aqua: #63d8c7;
  --ink: #16313b;
  --muted: #5d7078;
  --mist: #eef8f6;
  --paper: #f7f9f8;
  --line: #d7e2df;
  --hold: #a33b2d;
  --hold-bg: #fff0ec;
  --pass: #08735f;
  --pass-bg: #e7f6f1;
  --focus: #ffbf47;
  font-family: Inter, Aptos, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body { min-width: 320px; background: var(--paper); }
button, summary, a { font: inherit; }
button, summary { cursor: pointer; }
button:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .45; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 980px; margin-bottom: .7rem; color: var(--deep); font: 650 clamp(2rem, 4vw, 3.5rem)/1.04 Georgia, serif; letter-spacing: -.035em; }
h2 { color: var(--deep); font: 650 1.35rem/1.2 Georgia, serif; }
h3 { color: var(--deep); }
p { line-height: 1.55; }
.skip-link { position: fixed; z-index: 100; top: .5rem; left: .5rem; padding: .75rem 1rem; color: white; background: var(--deep); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.shell { min-height: 100vh; display: grid; grid-template-rows: 72px minmax(0, 1fr) 72px; }
.topbar { z-index: 5; display: grid; grid-template-columns: 260px 1fr auto; align-items: center; gap: 1.25rem; padding: 0 2rem; color: white; background: var(--deep); border-bottom: 1px solid rgba(255,255,255,.12); }
.brand { display: flex; align-items: center; gap: .65rem; color: white; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 37px; height: 37px; color: var(--deep); background: var(--aqua); border-radius: 4px; font: 800 1.2rem Georgia, serif; }
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: .24em; }
.brand small { margin-top: .18rem; color: rgba(255,255,255,.58); font-size: .52rem; letter-spacing: .1em; }
.meeting-title { text-align: center; }
.meeting-title span, .meeting-title strong { display: block; }
.meeting-title span { color: var(--aqua); font-size: .58rem; font-weight: 850; letter-spacing: .13em; }
.meeting-title strong { margin-top: .2rem; font-size: .72rem; }
.status-cluster { display: flex; gap: .45rem; }
.status-pill { padding: .38rem .55rem; color: var(--deep); background: var(--aqua); border-radius: 3px; font-size: .53rem; font-weight: 900; letter-spacing: .08em; }
.status-pill.muted { color: white; background: rgba(255,255,255,.12); }
.workspace { min-height: 0; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.rail { padding: 1.5rem 1.25rem; background: white; border-right: 1px solid var(--line); overflow: auto; }
.eyebrow { margin-bottom: .55rem; color: var(--teal); font-size: .61rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.steps { margin: 0 0 1rem; padding: 0; list-style: none; }
.steps li { border-left: 2px solid var(--line); }
.steps li.complete { border-color: #78b8ac; }
.steps li.active { border-color: var(--teal); background: var(--mist); }
.steps button { width: 100%; display: grid; grid-template-columns: 28px 1fr; gap: .5rem; padding: .55rem .65rem; color: var(--muted); background: transparent; border: 0; text-align: left; }
.steps .active button { color: var(--deep); }
.steps span { color: var(--teal); font: 700 .59rem ui-monospace, monospace; }
.steps strong { font-size: .67rem; line-height: 1.25; }
.rail-action { width: 100%; display: flex; justify-content: space-between; gap: .4rem; padding: .72rem .3rem; color: var(--deep); background: transparent; border: 0; border-top: 1px solid var(--line); font-size: .67rem; font-weight: 800; text-align: left; }
.rail-action span { color: var(--teal); font-size: .56rem; }
.rail-note { display: flex; gap: .5rem; margin-top: 1rem; padding: .8rem; color: #496069; background: var(--paper); font-size: .61rem; }
.rail-note span { color: var(--aqua); }
.rail-note p { margin: 0; }
.stage { min-width: 0; min-height: 0; overflow: auto; }
.stage-inner { width: min(1180px, 100%); margin: 0 auto; padding: clamp(2rem, 5vw, 4.2rem); }
.stage-heading { display: flex; justify-content: space-between; gap: 2rem; margin-bottom: 1.5rem; }
.lead { max-width: 900px; margin-bottom: 0; color: var(--muted); font-size: clamp(.95rem, 1.5vw, 1.08rem); }
.panel { background: white; border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 7px 25px rgba(8,39,53,.04); }
.three-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; }
.three-points article { min-height: 145px; padding: 1.25rem; background: white; border: 1px solid var(--line); }
.three-points span { display: block; margin-bottom: 1.3rem; color: var(--teal); font: 700 .7rem ui-monospace, monospace; }
.three-points strong { color: var(--deep); font: 650 1.15rem/1.35 Georgia, serif; }
.evidence-statement, .boundary-card, .result-boundary, .discovery-insight { padding: 1.2rem 1.35rem; border-left: 4px solid var(--teal); background: var(--mist); }
.evidence-statement strong, .result-boundary > strong, .discovery-insight .eyebrow { color: var(--teal); font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; }
.evidence-statement p, .result-boundary p { margin: .35rem 0 0; }
.control-promise { margin: 1rem 0 0; padding: 1.1rem 1.35rem; color: white; background: var(--deep); font: 650 1rem/1.5 Georgia, serif; }
.discovery-insight { margin-top: 1.5rem; padding: 1.25rem 1.35rem; border-left-color: var(--aqua); background: white; }
.discovery-insight h2 { margin: .35rem 0 .5rem; color: var(--deep); font-size: clamp(1.2rem, 2.2vw, 1.65rem); }
.discovery-insight p:last-child { margin: 0; color: var(--muted); font-size: .78rem; }
.opening-story { margin: 1rem 0; }
.opening-story article { min-height: 118px; }
.no-data { margin: .75rem 0 0; color: var(--muted); font-size: .68rem; text-align: center; }

.vendor-names { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1rem; }
.vendor-names span { padding: .55rem .8rem; color: var(--deep); background: white; border: 1px solid var(--line); font-size: .72rem; font-weight: 800; }
.table-panel { overflow: hidden; }
.table-scroll { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .74rem; }
th { color: #496069; background: #f1f6f4; font-size: .59rem; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
th, td { padding: .78rem 1rem; border-bottom: 1px solid #e5ecea; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
td strong, td small { display: block; }
td small { margin-top: .25rem; color: var(--muted); font-size: .62rem; }
.money { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.boundary-card { margin-top: 1rem; }
.boundary-card p:last-of-type { margin-bottom: 0; }
.classification-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .85rem; }
.classification { display: inline-block; padding: .36rem .5rem; color: var(--teal); background: white; border: 1px solid #a9d8cd; font-size: .53rem; font-weight: 900; letter-spacing: .06em; }
.mechanism-table table { table-layout: fixed; }
.mechanism-table th:first-child { width: 29%; }
.mechanism-table th:last-child { width: 29%; }
.disclosure { margin-top: 1rem; border: 1px solid var(--line); background: white; }
.disclosure summary { padding: .85rem 1rem; color: var(--deep); font-size: .72rem; font-weight: 850; }
.disclosure[open] summary { border-bottom: 1px solid var(--line); }
.source-list { padding: 1rem; }
.source-list p { margin-bottom: .6rem; color: var(--muted); font-size: .72rem; }
.synthetic-banner { margin-bottom: 1rem; padding: .65rem 1rem; color: white; background: var(--teal); font-size: .65rem; font-weight: 900; letter-spacing: .12em; text-align: center; }
.quote-grid { display: grid; grid-template-columns: 1fr 290px; gap: 1rem; margin-bottom: 1rem; }
.quote-summary { padding: 1.25rem; }
.quote-summary h2 { margin: .35rem 0; }
.quote-summary > p:not(.mono) { color: var(--muted); }
.mono { color: var(--muted); font: 600 .62rem/1.45 ui-monospace, monospace; }
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; margin: 1.2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
dl { margin: 0; }
dt { color: var(--muted); font-size: .58rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
dd { margin: .25rem 0 0; font-size: .72rem; line-height: 1.4; }
.total-panel { display: flex; flex-direction: column; justify-content: center; padding: 1.4rem; color: white; background: var(--deep); border-radius: 5px; }
.total-panel span, .total-panel small { font-size: .61rem; letter-spacing: .08em; }
.total-panel strong { margin: .5rem 0; font: 650 2.25rem Georgia, serif; }
.total-panel small { color: rgba(255,255,255,.68); }
.neutral-state { white-space: nowrap; color: #4e626a; font-size: .62rem; font-weight: 750; }
.plain-checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin: 1.5rem 0; padding: 0; list-style: none; counter-reset: checks; }
.plain-checks li { display: flex; align-items: center; gap: .8rem; padding: 1rem; background: white; border: 1px solid var(--line); }
.plain-checks li:last-child { grid-column: 1 / -1; }
.plain-checks span { display: grid; place-items: center; flex: 0 0 32px; height: 32px; color: var(--teal); background: var(--mist); border-radius: 50%; font-weight: 900; }
.plain-checks strong { font: 650 .92rem/1.35 Georgia, serif; }
.assurance-flow, .next-step { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .65rem; padding: .85rem; color: white; background: var(--deep); }
.assurance-flow span, .next-step span { padding: .45rem .6rem; border: 1px solid rgba(255,255,255,.18); font-size: .62rem; font-weight: 800; }
.assurance-flow b, .next-step b { color: var(--aqua); }
.control-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; padding: 1rem; background: var(--line); }
.control-grid article { display: flex; gap: .55rem; min-height: 62px; padding: .75rem; background: white; }
.control-grid span { color: var(--teal); font: 700 .58rem ui-monospace, monospace; }
.control-grid strong { font-size: .67rem; }
.controls-detail .text-button { margin: 0 1rem 1rem; }
.text-button { padding: .65rem .8rem; color: var(--teal); background: transparent; border: 1px solid var(--teal); font-size: .68rem; font-weight: 800; }
.controls-detail .mono { margin: 0; padding: 0 1rem 1rem; }
.hold-banner { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; padding: 1.2rem; color: #6f241b; background: var(--hold-bg); border: 1px solid #e4afa6; }
.hold-banner > span { display: grid; place-items: center; flex: 0 0 43px; height: 43px; color: white; background: var(--hold); border-radius: 50%; font-size: 1.3rem; font-weight: 900; }
.hold-banner strong { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.hold-banner p { margin: .25rem 0 0; font: 650 1rem Georgia, serif; }
.reconciliation { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-bottom: 1rem; background: var(--line); }
.reconciliation > div { padding: 1rem; background: white; }
.reconciliation span, .reconciliation strong { display: block; }
.reconciliation span { min-height: 34px; color: var(--muted); font-size: .6rem; font-weight: 800; text-transform: uppercase; }
.reconciliation strong { margin-top: .45rem; color: var(--deep); font: 650 1.35rem Georgia, serif; }
.reconciliation .corrected { background: var(--pass-bg); }
.reconciliation .difference { color: white; background: var(--hold); }
.reconciliation .difference span, .reconciliation .difference strong { color: white; }
.reconciliation.simple { grid-template-columns: repeat(4, 1fr); }
.math-note { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .55rem; margin-bottom: 1rem; padding: .85rem; color: #6d2f25; background: var(--hold-bg); font-size: .68rem; }
.technical-exceptions { padding: 1rem; }
.technical-exceptions article { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.technical-exceptions article:last-child { border: 0; }
.technical-exceptions strong { color: var(--hold); font: 700 .62rem ui-monospace, monospace; }
.technical-exceptions p { margin: .25rem 0 0; color: var(--muted); font-size: .7rem; }
.correction-layout { display: grid; grid-template-columns: 1.4fr .75fr; gap: 1rem; }
.correction-card, .approval-card { padding: 1.25rem; }
.version-flow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .8rem; }
.version-flow > div { padding: .9rem; background: var(--paper); border: 1px solid var(--line); }
.version-flow span, .version-flow strong, .version-flow small { display: block; }
.version-flow span { color: var(--muted); font-size: .57rem; font-weight: 800; }
.version-flow strong { margin: .35rem 0; font: 650 1.35rem Georgia, serif; }
.version-flow small { font-size: .62rem; }
.correction-steps { margin: 1rem 0; padding: 0; list-style: none; }
.correction-steps li { display: flex; align-items: center; gap: .6rem; padding: .48rem 0; color: var(--muted); font-size: .7rem; }
.correction-steps li > span { display: grid; place-items: center; flex: 0 0 23px; height: 23px; background: #edf1f0; border-radius: 50%; font-size: .58rem; }
.correction-steps li.done { color: var(--pass); }
.correction-steps li.done > span { background: var(--pass-bg); }
.button { min-height: 40px; padding: .65rem .9rem; border-radius: 3px; border: 1px solid transparent; font-size: .7rem; font-weight: 850; }
.button.primary { color: white; background: var(--teal); }
.button.secondary { color: var(--deep); background: white; border-color: #afc1bd; }
.button.wide { width: 100%; }
.pass-banner { padding: .75rem; color: var(--pass); background: var(--pass-bg); font-size: .67rem; font-weight: 900; letter-spacing: .06em; text-align: center; }
.approval-card { align-self: stretch; background: white; border: 1px solid var(--line); }
.approval-card > span, .approval-card > strong, .approval-card > small { display: block; }
.approval-card > span { color: var(--teal); font-size: .61rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.approval-card > strong { margin: 1rem 0 .4rem; font: 650 1.15rem/1.35 Georgia, serif; }
.approval-card > small { color: var(--muted); font-size: .65rem; }
.approval-card .button { width: 100%; margin-top: 1.5rem; }
.approval-card.approved { color: var(--pass); background: var(--pass-bg); border-color: #a6d8c9; }
.approval-card p { margin-top: 1rem; font-size: .72rem; }
.release-states { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: .5rem; margin-top: 1rem; padding: .8rem; background: white; border: 1px solid var(--line); }
.release-states strong { padding: .55rem; color: var(--muted); background: var(--paper); border: 1px solid var(--line); font-size: .63rem; text-align: center; }
.release-states strong.active { color: var(--pass); background: var(--pass-bg); border-color: #a6d8c9; }
.release-states span { color: var(--teal); }
.no-release { color: var(--muted); font-size: .68rem; text-align: center; }
.timeline { margin: 0; padding: 1rem; list-style: none; }
.timeline li { display: grid; grid-template-columns: 30px 1fr; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.timeline li > span { color: var(--teal); font: 700 .6rem ui-monospace, monospace; }
.timeline strong { font-size: .68rem; }
.timeline p { margin: .15rem 0; color: var(--muted); font-size: .64rem; }
.timeline small { color: #7a898e; font-size: .58rem; }
.capability-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.capability-grid article { display: flex; gap: .8rem; align-items: center; padding: 1rem; background: white; border: 1px solid var(--line); }
.capability-grid span { display: grid; place-items: center; flex: 0 0 30px; height: 30px; color: var(--pass); background: var(--pass-bg); border-radius: 50%; }
.capability-grid strong { font-size: .75rem; }
.boundary-card.prominent { margin: 1rem 0; }
.discovery-grid { display: grid; gap: .65rem; }
.discovery-section { background: white; border: 1px solid var(--line); }
.discovery-section summary { padding: .85rem 1rem; color: var(--deep); font-size: .76rem; font-weight: 850; }
.discovery-section summary span { margin-right: .8rem; color: var(--teal); font: 700 .6rem ui-monospace, monospace; }
.discovery-section ul { columns: 2; margin: 0; padding: .2rem 1.2rem 1rem 2.7rem; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.partnership-statement { margin: 1rem 0; padding: 1.1rem; color: white; background: var(--navy); font: 650 .95rem/1.5 Georgia, serif; text-align: center; }
.next-step { text-transform: lowercase; }
.controls { z-index: 5; display: grid; grid-template-columns: 240px 1fr auto; align-items: center; gap: 1rem; padding: 0 2rem; background: white; border-top: 1px solid var(--line); box-shadow: 0 -8px 25px rgba(8,39,53,.05); }
.step-position { justify-self: center; color: var(--muted); font: 700 .66rem ui-monospace, monospace; }
.nav-buttons { display: flex; gap: .55rem; }
dialog { width: min(1180px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; color: var(--ink); background: var(--paper); border: 0; border-radius: 5px; box-shadow: 0 25px 85px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(3,20,28,.75); }
.dialog-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; color: white; background: var(--deep); }
.dialog-head .eyebrow { color: var(--aqua); }
.dialog-head h2 { margin: 0; color: white; }
.icon-button { width: 38px; height: 38px; color: white; background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; font-size: 1.25rem; }
.dialog-content { padding: 1.4rem; overflow: auto; }
.authority-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; margin: 1rem 0; }
.authority-grid article { padding: .75rem; background: white; border: 1px solid var(--line); }
.authority-grid span, .authority-grid strong, .authority-grid small { display: block; }
.authority-grid span { color: var(--teal); font: 700 .55rem ui-monospace, monospace; }
.authority-grid strong { margin: .3rem 0; font-size: .7rem; }
.authority-grid small, .authority-grid p { color: var(--muted); font-size: .6rem; }
.technical-table { max-height: 420px; background: white; border: 1px solid var(--line); }
.technical-table th { position: sticky; top: 0; z-index: 1; }
.risk-card { margin-top: 1rem; padding: 1rem; color: #6f352d; background: var(--hold-bg); border-left: 4px solid var(--hold); }
.risk-card ul { columns: 2; font-size: .67rem; line-height: 1.5; }
.additional-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.additional-card { padding: 1.2rem; background: white; border: 1px solid var(--line); }
.additional-card p { color: var(--muted); font-size: .72rem; }
.additional-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 1rem 0; }
.additional-card dl > div { padding: .6rem; background: var(--paper); }

@media (max-width: 1050px) {
  .topbar, .controls { padding-left: 1rem; padding-right: 1rem; }
  .workspace { grid-template-columns: 210px minmax(0, 1fr); }
  .rail { padding: 1.2rem .8rem; }
  .stage-inner { padding: 2.2rem; }
  .three-points, .reconciliation { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .authority-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .shell { grid-template-rows: 62px minmax(0, 1fr) auto; }
  .topbar { grid-template-columns: 1fr auto; }
  .meeting-title { display: none; }
  .status-pill.muted { display: none; }
  .workspace { grid-template-columns: 1fr; }
  .rail { display: none; }
  .stage-inner { padding: 1.35rem 1rem 2rem; }
  h1 { font-size: 2rem; }
  .three-points, .quote-grid, .plain-checks, .control-grid, .correction-layout, .capability-grid, .additional-grid { grid-template-columns: 1fr; }
  .plain-checks li:last-child { grid-column: auto; }
  .reconciliation, .reconciliation.simple { display: block; background: transparent; }
  .reconciliation > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
  .reconciliation span { min-height: auto; }
  .reconciliation strong { margin: 0; white-space: nowrap; }
  .mechanism-table table { min-width: 690px; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .controls { grid-template-columns: 1fr auto; padding: .65rem; }
  .controls > .button { font-size: 0; }
  .controls > .button::after { content: 'Restart'; font-size: .68rem; }
  .step-position { display: none; }
  .nav-buttons .button { padding: .55rem .7rem; }
  .discovery-section ul, .risk-card ul { columns: 1; }
  .next-step { justify-content: flex-start; }
  .authority-grid { grid-template-columns: 1fr; }
}
@media (max-width: 430px) {
  .status-cluster { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .release-states { grid-template-columns: 1fr; }
  .release-states span { transform: rotate(90deg); justify-self: center; }
  .version-flow { grid-template-columns: 1fr; }
  .version-flow > b { transform: rotate(90deg); justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
