:root {
  --navy: #0c3f63;
  --navy-deep: #082e47;
  --blue: #176ca5;
  --blue-pale: #e9f3f8;
  --copper: #a94f22;
  --copper-dark: #7d3415;
  --copper-pale: #fbefe7;
  --green: #237d3a;
  --green-dark: #17652c;
  --mint: #e9f5ec;
  --amber: #8d560f;
  --amber-pale: #fff6e5;
  --red: #a23838;
  --red-pale: #fff1f0;
  --ink: #142f40;
  --ink-soft: #415c6b;
  --ink-faint: #4f6772;
  --paper: #f2f6f4;
  --surface: #fff;
  --surface-soft: #f7faf9;
  --line: #d6e3df;
  --line-strong: #bacdc7;
  --body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: Georgia, "Times New Roman", serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius-sm: 9px;
  --radius: 15px;
  --radius-lg: 21px;
  --shadow-sm: 0 2px 12px rgba(12,63,99,.055);
  --shadow-md: 0 18px 46px rgba(8,46,71,.12);
  --topbar: 74px;
  --sidebar: 268px;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.025em; }
h1 { color: var(--navy-deep); font-size: clamp(2.25rem,4.5vw,4rem); line-height: 1.04; }
h2 { color: var(--navy-deep); font-size: clamp(1.45rem,2.8vw,2rem); line-height: 1.15; }
:focus-visible { outline: 3px solid #2384c2; outline-offset: 3px; }
.page-heading h1[tabindex="-1"]:focus, .main-content[tabindex="-1"]:focus { outline: none; }
.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; z-index: 2000; top: 10px; left: 12px; padding: 10px 15px; transform: translateY(-160%); border-radius: 8px; background: #fff; color: var(--navy); font-weight: 750; box-shadow: var(--shadow-md); }
.skip-link:focus { transform: none; }

.topbar { position: fixed; z-index: 100; inset: 0 0 auto; height: var(--topbar); background: var(--navy-deep); color: #fff; box-shadow: 0 3px 17px rgba(5,31,48,.2); }
.topbar-inner { height: 100%; padding: 0 22px; display: grid; grid-template-columns: var(--sidebar) minmax(0,1fr) auto; align-items: center; gap: 24px; }
.brand { width: max-content; display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { position: relative; width: 38px; height: 38px; flex: none; border: 5px solid #fff; border-right-color: transparent; border-radius: 50%; }
.brand-mark span { position: absolute; width: 10px; height: 10px; right: -7px; top: 9px; border-radius: 2px; background: #e38a57; }
.brand-copy, .brand-name, .brand-product { display: block; }
.brand-name { font-size: 18px; line-height: 1; letter-spacing: -.025em; }
.brand-product { margin-top: 5px; color: #f1b492; font: 750 8.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.workspace-context { min-width: 0; justify-self: center; display: flex; align-items: center; gap: 13px; color: #b9ccd5; font-size: 11px; }
.workspace-context > span + span { padding-left: 13px; border-left: 1px solid rgba(255,255,255,.15); }
.context-name { max-width: 250px; overflow: hidden; color: #fff; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.save-state { display: inline-flex; align-items: center; gap: 7px; }
.save-dot { width: 7px; height: 7px; border-radius: 50%; background: #78d38a; box-shadow: 0 0 0 3px rgba(120,211,138,.13); }
.save-state[data-state="error"] .save-dot { background: #f4aa91; box-shadow: none; }
.top-actions { justify-self: end; display: flex; gap: 7px; }

.button { min-height: 42px; padding: 9px 15px; border: 1px solid transparent; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: transparent; cursor: pointer; font-size: 12px; font-weight: 750; line-height: 1.2; text-decoration: none; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .48; }
.button-primary { background: var(--copper); color: #fff; }
.button-primary:hover:not(:disabled) { background: var(--copper-dark); }
.button-accent { background: #e38a57; color: #421f0c; }
.button-accent:hover:not(:disabled) { background: #f09b68; }
.button-quiet { border-color: var(--line-strong); background: #fff; color: var(--navy); }
.button-quiet:hover:not(:disabled) { border-color: #7fa4b6; background: #f8fbfc; }
.button-help { border-color: #b9d2de; background: var(--blue-pale); color: var(--navy); }
.button-help:hover:not(:disabled) { border-color: #75a5ba; background: #f5fbfd; }
.help-trigger-icon { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font: 800 11px/1 var(--display); }
.button-top { border-color: rgba(255,255,255,.22); color: #e3edf1; }
.button-top:hover:not(:disabled) { background: rgba(255,255,255,.08); }
.button-danger { background: var(--red); color: #fff; }
.button-full { width: 100%; }
.licence-button[data-active="true"] { border-color: rgba(120,211,138,.52); color: #e2f7e7; }
.licence-dot { width: 8px; height: 8px; border-radius: 50%; background: #e5a17a; }
.licence-button[data-active="true"] .licence-dot { background: #78d38a; box-shadow: 0 0 0 3px rgba(120,211,138,.14); }

.app-shell { min-height: 100vh; padding-top: var(--topbar); display: grid; grid-template-columns: var(--sidebar) minmax(0,1fr); }
.sidebar { position: fixed; z-index: 50; top: var(--topbar); bottom: 0; left: 0; width: var(--sidebar); padding: 27px 18px 19px; border-right: 1px solid var(--line); display: flex; flex-direction: column; background: #fff; overflow-y: auto; }
.sidebar-heading { padding: 0 8px 22px; border-bottom: 1px solid var(--line); }
.sidebar-heading strong { display: block; font-size: 13px; }
.eyebrow { display: block; margin-bottom: 7px; color: var(--copper-dark); font: 750 9.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.eyebrow-on-dark { color: #f2b18b; }
.eyebrow-danger { color: var(--red); }
.progress-track { height: 7px; margin-top: 11px; border-radius: 99px; overflow: hidden; background: #e5ece9; }
.progress-track span { width: 0; height: 100%; display: block; border-radius: inherit; background: var(--copper); transition: width .25s ease; }
.section-nav { padding: 14px 0; display: grid; gap: 3px; }
.nav-item { width: 100%; min-height: 48px; padding: 8px 9px; border: 1px solid transparent; border-radius: 10px; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 10px; background: transparent; color: var(--ink-soft); text-align: left; cursor: pointer; }
.nav-item:hover { background: var(--surface-soft); color: var(--ink); }
.nav-item.active { border-color: #ead1c3; background: var(--copper-pale); color: var(--navy-deep); }
.nav-index { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; background: #fff; color: var(--ink-faint); font: 700 9px/1 var(--mono); }
.nav-item.active .nav-index { border-color: var(--copper); background: var(--copper); color: #fff; }
.nav-item > span:nth-child(2) { font-size: 12px; font-weight: 720; }
.nav-count { min-width: 23px; padding: 3px 6px; border-radius: 99px; background: #e9efed; color: var(--ink-faint); font: 720 9px/1 var(--mono); text-align: center; }
.nav-state { width: 8px; height: 8px; border-radius: 50%; background: #b5c2c6; }
.nav-state.ready { background: var(--green); }
.nav-state.attention { background: #c37b18; }
.nav-item[data-paid-view="true"] > span:nth-child(2)::after { content: "Paid"; margin-left: 6px; padding: 2px 5px; border-radius: 99px; background: #edf2f1; color: var(--ink-faint); font: 700 7px/1 var(--mono); text-transform: uppercase; }
.nav-item[data-paid-view="true"].unlocked > span:nth-child(2)::after { content: ""; display: none; }
.workspace-tools { padding: 15px 8px; border-top: 1px solid var(--line); }
.workspace-tools > strong { display: block; margin-bottom: 8px; color: var(--ink-soft); font-size: 11px; }
.workspace-tool-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.workspace-tool-grid .button { min-height: 37px; padding: 7px 8px; font-size: 10px; }
.workspace-tool-wide { grid-column: 1 / -1; width: 100%; }
.workspace-tool-grid .text-button { min-height: 30px; text-align: left; }
.sidebar-note { margin-top: auto; padding: 14px; border: 1px solid var(--line); border-radius: 11px; display: flex; align-items: flex-start; gap: 10px; background: var(--surface-soft); }
.privacy-icon { color: var(--green); font-size: 15px; }
.sidebar-note strong, .sidebar-note span { display: block; }
.sidebar-note strong { font-size: 11.5px; }
.sidebar-note div span { margin-top: 3px; color: var(--ink-faint); font-size: 9.5px; line-height: 1.45; }
.sidebar-links { padding: 12px 8px 0; display: flex; flex-wrap: wrap; gap: 5px 12px; }
.sidebar-links a { color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.app-version { margin: 8px 8px 0; color: var(--ink-faint); font: 700 8px/1.4 var(--mono); }

.main-content { grid-column: 2; min-width: 0; padding: 44px clamp(24px,4vw,58px) 80px; }
.view { max-width: 1240px; margin: 0 auto; }
.page-heading { margin-bottom: 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.page-heading.compact { align-items: center; }
.page-heading > div { max-width: 820px; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
.page-heading h1 { margin-bottom: 13px; }
.page-heading p { max-width: 720px; margin-bottom: 0; color: var(--ink-soft); font-size: 16px; }
.release-note { margin-bottom: 24px; padding: 12px 15px; border: 1px solid #cddfe7; border-radius: 10px; display: flex; align-items: center; gap: 12px; background: #f0f7fa; color: #31566a; }
.release-note p { margin: 0; font-size: 12px; }
.release-pill { flex: none; padding: 5px 8px; border-radius: 6px; background: var(--navy); color: #fff; font: 750 9px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.persistent-banner { margin-bottom: 15px; padding: 14px 16px; border: 1px solid; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.persistent-banner.error { border-color: #c77c78; background: var(--red-pale); color: #6f2929; }
.persistent-banner.warning { border-color: #d4a24d; background: var(--amber-pale); color: #68410d; }
.persistent-banner strong, .persistent-banner p { display: block; }
.persistent-banner strong { font-size: 12px; }
.persistent-banner p { margin: 3px 0 0; font-size: 11px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.panel-head h2 { margin-bottom: 0; }
.status-badge { min-height: 28px; padding: 6px 9px; border-radius: 999px; display: inline-flex; align-items: center; background: #e9efed; color: var(--ink-faint); font-size: 9.5px; font-weight: 760; white-space: nowrap; }
.status-good { background: var(--mint); color: var(--green-dark); }
.status-warning { background: var(--amber-pale); color: var(--amber); }
.status-danger { background: var(--red-pale); color: var(--red); }
.status-neutral { background: #edf2f1; color: #61757e; }

.journey-heading { margin-bottom: 24px; }
.journey-heading h1 { max-width: 720px; }
.journey-panel { margin-bottom: 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: 0 12px 34px rgba(8,46,71,.075); }
.journey-panel-head { padding: 24px 26px; display: flex; align-items: center; justify-content: space-between; gap: 28px; background: linear-gradient(115deg,#f7faf9,#edf5f7); }
.journey-panel-head h2 { max-width: 650px; margin: 0; font-size: clamp(1.4rem,2.3vw,1.85rem); }
.journey-progress-summary { width: min(230px,100%); flex: none; }
.journey-progress-summary > strong { display: block; margin-bottom: 9px; color: var(--navy-deep); font-size: 11px; text-align: right; }
.journey-progress { height: 8px; border-radius: 999px; overflow: hidden; background: #dce7e4; }
.journey-progress span { width: 0; height: 100%; display: block; border-radius: inherit; background: var(--copper); transition: width .25s ease; }
.journey-list { margin: 0; padding: 0; list-style: none; }
.journey-step { position: relative; min-height: 102px; padding: 20px 25px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 17px; }
.journey-step::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: transparent; }
.journey-step.current { background: #fffaf6; }
.journey-step.current::before { background: var(--copper); }
.journey-step.complete { background: #fbfdfc; }
.journey-marker { width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink-faint); font: 750 10px/1 var(--mono); }
.journey-step.current .journey-marker { border-color: var(--copper); background: var(--copper); color: #fff; box-shadow: 0 0 0 5px var(--copper-pale); }
.journey-step.complete .journey-marker { border-color: var(--green); background: var(--mint); color: var(--green-dark); }
.journey-step-copy { min-width: 0; }
.journey-step-title { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.journey-step-title h3 { margin: 0; color: var(--navy-deep); font-size: 14px; }
.journey-step-copy > p { max-width: 720px; margin: 5px 0 0; color: var(--ink-faint); font-size: 10.5px; }
.journey-outcome { display: block; margin-top: 7px; color: var(--ink); font-size: 11px; }
.journey-action { min-width: 145px; }

.overview-disclosure, .section-explainer { margin: 14px 0 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.overview-disclosure > summary, .section-explainer > summary { min-height: 78px; padding: 17px 20px; display: flex; align-items: center; gap: 14px; cursor: pointer; list-style: none; }
.overview-disclosure > summary::-webkit-details-marker, .section-explainer > summary::-webkit-details-marker { display: none; }
.overview-disclosure > summary:hover, .section-explainer > summary:hover { background: var(--surface-soft); }
.disclosure-icon { width: 30px; height: 30px; flex: none; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--navy); font-size: 20px; line-height: 1; transition: transform .18s ease; }
details[open] > summary .disclosure-icon { transform: rotate(45deg); }
.disclosure-summary-copy { min-width: 0; flex: 1; }
.disclosure-summary-copy > span, .disclosure-summary-copy > strong, .disclosure-summary-copy > small { display: block; }
.disclosure-summary-copy > strong { color: var(--navy-deep); font-size: 12px; }
.disclosure-summary-copy > small { margin-top: 3px; color: var(--ink-faint); font-size: 9.5px; }
.overview-disclosure-body, .section-explainer-body { padding: 22px 24px; border-top: 1px solid var(--line); background: #fcfdfd; }
.overview-disclosure-body > p:first-child, .section-explainer-body > p:first-child { margin-top: 0; }
.overview-disclosure-body > p:last-child, .section-explainer-body > p:last-child { margin-bottom: 0; }
.threshold-monitor { max-width: 820px; }
.record-totals { margin-top: 24px; border: 1px solid var(--line); border-radius: 11px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); overflow: hidden; background: #fff; }
.record-totals > div { min-height: 82px; padding: 15px 18px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 3px 20px; }
.record-totals > div + div { border-left: 1px solid var(--line); }
.record-totals span, .record-totals small { color: var(--ink-faint); font-size: 9.5px; }
.record-totals strong { grid-row: 1 / 3; grid-column: 2; color: var(--navy-deep); font: 500 24px/1 var(--display); }
.disclosure-note { max-width: 86ch; margin: 16px 0 0; color: var(--ink-faint); font-size: 10px; }
.rule-facts { display: grid; grid-template-columns: minmax(230px,.7fr) minmax(0,1.3fr); align-items: start; gap: 28px; }
.rule-facts h2 { margin: 0; font-size: 24px; }
.rule-facts dl { margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.rule-facts dl div { padding: 4px 16px 14px; border-left: 1px solid var(--line); }
.rule-facts dt { color: var(--ink-faint); font: 700 8.5px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.rule-facts dd { margin: 5px 0 0; color: var(--ink); font-size: 10.5px; font-weight: 700; }
.boundary-copy { margin: 8px 0 0; padding-top: 17px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 10.5px; }

.section-explainer { margin: 0 0 22px; border-color: #c8dce3; box-shadow: none; }
.section-explainer > summary { min-height: 67px; background: #f2f8fa; }
.section-explainer > summary:hover { background: #eaf4f7; }
.section-explainer-body { background: #fff; }
.section-explainer-body > p { max-width: 82ch; color: var(--ink-soft); font-size: 11px; }
.definition-list { margin: 15px 0 0; }
.definition-list > div { padding: 12px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(150px,.28fr) minmax(0,.72fr); gap: 18px; }
.definition-list dt { color: var(--navy-deep); font-size: 10.5px; font-weight: 760; }
.definition-list dd { margin: 0; color: var(--ink-soft); font-size: 10.5px; }

.rule-banner { margin-bottom: 18px; padding: 26px 29px; border-left: 5px solid var(--copper); border-radius: var(--radius); display: grid; grid-template-columns: minmax(250px,.72fr) minmax(0,1.28fr); align-items: center; gap: 32px; background: var(--navy-deep); color: #fff; }
.rule-banner h2 { margin-bottom: 0; color: #fff; font-size: 27px; }
.rule-banner dl { margin: 0; display: grid; grid-template-columns: repeat(4,1fr); }
.rule-banner dl div { min-height: 68px; padding: 5px 17px; border-left: 1px solid rgba(255,255,255,.17); }
.rule-banner dt { color: #9ebac7; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.rule-banner dd { margin: 7px 0 0; color: #fff; font-size: 11.5px; font-weight: 700; }
.kpi-grid { margin-bottom: 18px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.kpi-card { min-height: 126px; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; background: #fff; box-shadow: var(--shadow-sm); }
.kpi-card span { color: var(--ink-soft); font-size: 10.5px; font-weight: 700; }
.kpi-card strong { margin: auto 0 2px; color: var(--navy-deep); font: 500 31px/1 var(--display); }
.kpi-card small { margin-top: 6px; color: var(--ink-faint); font-size: 9.5px; }
.kpi-card.kpi-primary { border-color: var(--copper); background: var(--copper); }
.kpi-card.kpi-primary span, .kpi-card.kpi-primary small { color: #ffe6d8; }
.kpi-card.kpi-primary strong { color: #fff; }
.overview-grid { margin-bottom: 18px; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); gap: 18px; }
.threshold-panel, .next-panel, .scope-summary-panel, .rules-panel { padding: 25px; }
.threshold-row { margin-top: 22px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 9px 20px; }
.threshold-label strong, .threshold-label span, .threshold-value strong, .threshold-value span { display: block; }
.threshold-label strong { font-size: 12px; }
.threshold-label span, .threshold-value span { margin-top: 3px; color: var(--ink-faint); font-size: 9px; }
.threshold-value { text-align: right; }
.threshold-value strong { color: var(--navy-deep); font-size: 14px; }
.meter { grid-column: 1 / -1; height: 10px; overflow: hidden; border-radius: 99px; background: #e8eeee; }
.meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--copper); transition: width .25s ease; }
.plain-details { margin-top: 21px; padding-top: 15px; border-top: 1px solid var(--line); }
.plain-details summary { color: var(--blue); cursor: pointer; font-size: 11px; font-weight: 750; }
.plain-details p { margin: 10px 0 0; color: var(--ink-soft); font-size: 11px; }
.next-list { margin: 21px 0 23px; padding: 0; display: grid; gap: 13px; list-style: none; }
.next-list li { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 10px; }
.next-list li > span { width: 29px; height: 29px; border-radius: 8px; display: grid; place-items: center; background: var(--copper-pale); color: var(--copper-dark); font: 750 9px/1 var(--mono); }
.next-list strong, .next-list p { display: block; }
.next-list strong { font-size: 11.5px; }
.next-list p { margin: 3px 0 0; color: var(--ink-faint); font-size: 9.5px; }
.lower-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.scope-summary-panel p, .rules-panel p { color: var(--ink-soft); font-size: 12px; }
.text-button { padding: 3px 0; border: 0; background: transparent; color: var(--blue); cursor: pointer; font-size: 11px; font-weight: 750; }
.text-button:hover { text-decoration: underline; }
.rules-panel { display: grid; grid-template-columns: 67px minmax(0,1fr); gap: 17px; background: linear-gradient(145deg,#fff,#faf4f0); }
.rules-mark { width: 64px; height: 58px; border-radius: 10px; display: grid; place-items: center; background: var(--navy); color: #fff; font: 750 13px/1 var(--mono); }
.rules-panel h2 { font-size: 20px; }

.plain-guide { margin-bottom: 24px; padding: 29px; border: 1px solid #c2d6df; border-radius: var(--radius-lg); background: #edf5f8; }
.plain-guide > div:first-child { max-width: 790px; }
.plain-guide h2 { margin-bottom: 10px; }
.plain-guide > div:first-child p { margin: 0; color: var(--ink-soft); font-size: 13.5px; }
.guide-points { margin-top: 23px; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.guide-points article { padding: 17px; border: 1px solid rgba(118,160,181,.4); border-radius: 10px; background: rgba(255,255,255,.72); }
.guide-points strong { font-size: 11.5px; }
.guide-points p { margin: 5px 0 0; color: var(--ink-soft); font-size: 10.5px; }
.scope-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(310px,.65fr); align-items: start; gap: 18px; }
.scope-form { padding: clamp(23px,4vw,34px); }
.form-heading p { margin: -1px 0 0; color: var(--ink-soft); font-size: 11px; }
.question-block { margin: 24px 0 0; padding: 23px 0 0; border: 0; border-top: 1px solid var(--line); }
.question-block legend { width: 100%; padding: 0; display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 11px; }
.question-number { width: 33px; height: 33px; border-radius: 9px; display: grid; place-items: center; background: var(--navy); color: #fff; font: 750 9px/1 var(--mono); }
.question-block legend strong, .question-block legend small { display: block; }
.question-block legend strong { margin-top: 1px; font-size: 12.5px; }
.question-block legend small { margin-top: 4px; color: var(--ink-faint); font-size: 10px; font-weight: 500; }
.choice-row, .sector-grid { margin: 15px 0 0 47px; display: flex; flex-wrap: wrap; gap: 7px; }
.choice-row input, .sector-grid input { position: absolute; width: 1px; min-height: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.choice-row label span, .sector-grid label span { min-height: 39px; padding: 9px 13px; border: 1px solid var(--line-strong); border-radius: 9px; display: grid; place-items: center; background: #fff; color: var(--navy); cursor: pointer; font-size: 10.5px; font-weight: 720; }
.choice-row input:checked + span, .sector-grid input:checked + span { border-color: var(--copper); background: var(--copper-pale); color: var(--copper-dark); box-shadow: inset 0 0 0 1px var(--copper); }
.choice-row input:focus-visible + span, .sector-grid input:focus-visible + span { outline: 3px solid rgba(23,108,165,.42); outline-offset: 3px; }
.sector-grid { display: grid; grid-template-columns: repeat(3,1fr); }
.field-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.question-block .field-row { margin: 16px 0 0 47px; }
.field { min-width: 0; display: block; }
.scope-value-fields > .field { display: grid; grid-template-rows: 1fr auto; align-content: stretch; }
.scope-value-fields .money-input { width: 100%; align-self: end; }
.field > span { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 720; }
.field > span small { color: var(--ink-faint); font-weight: 500; }
input, select, textarea { width: 100%; min-height: 43px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); font-size: 12px; }
textarea { min-height: 82px; resize: vertical; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); background: var(--red-pale); }
.money-input, .unit-input { display: grid; align-items: center; }
.money-input { grid-template-columns: 32px minmax(0,1fr); }
.unit-input { grid-template-columns: minmax(0,1fr) 45px; }
.money-input > span, .unit-input > span { height: 43px; border: 1px solid var(--line-strong); display: grid; place-items: center; background: #f1f5f4; color: var(--ink-faint); font-size: 10px; }
.money-input > span { border-right: 0; border-radius: 8px 0 0 8px; }
.money-input input { border-radius: 0 8px 8px 0; }
.unit-input > span { border-left: 0; border-radius: 0 8px 8px 0; }
.unit-input input { border-radius: 8px 0 0 8px; }
.field-help, .field small { display: block; margin: 5px 0 0; color: var(--ink-faint); font-size: 9.5px; }
.question-block .field-help { margin-left: 47px; }
.form-actions { margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
.error-summary { margin: 18px 0; padding: 12px 14px; border: 1px solid #dda19d; border-left: 4px solid var(--red); border-radius: 8px; background: var(--red-pale); color: #762b2b; font-size: 11px; }
.scope-aside { position: sticky; top: calc(var(--topbar) + 20px); display: grid; gap: 15px; }
.outcome-card { padding: 0; border-top: 4px solid #8da9b5; overflow: hidden; }
.outcome-card[data-outcome="monitor"] { border-top-color: var(--green); }
.outcome-card[data-outcome="review"] { border-top-color: #c37b18; }
.outcome-card[data-outcome="attention"] { border-top-color: var(--red); }
.outcome-card-head { padding: 22px 23px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.outcome-card-head h2 { margin: 0; font-size: 25px; }
.result-confirmation { padding: 16px 23px; display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 12px; background: var(--surface-soft); color: var(--ink-soft); }
.result-confirmation-mark { width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink-faint); font-size: 17px; font-weight: 800; }
.result-confirmation strong, .result-confirmation small { display: block; }
.result-confirmation strong { color: var(--ink); font-size: 11.5px; }
.result-confirmation small { margin-top: 2px; font-size: 9.5px; }
.outcome-card[data-outcome="monitor"] .result-confirmation { background: var(--mint); color: var(--green-dark); }
.outcome-card[data-outcome="monitor"] .result-confirmation-mark { border-color: #9ec9a7; color: var(--green-dark); }
.outcome-card[data-outcome="review"] .result-confirmation { background: var(--amber-pale); color: #6d4915; }
.outcome-card[data-outcome="review"] .result-confirmation-mark { border-color: #dfbd7e; color: var(--amber); }
.outcome-card[data-outcome="attention"] .result-confirmation { background: var(--red-pale); color: #762b2b; }
.outcome-card[data-outcome="attention"] .result-confirmation-mark { border-color: #dda19d; color: var(--red); }
.outcome-result { padding: 23px; }
.outcome-result h3 { margin: 0 0 9px; color: var(--navy-deep); font: 500 22px/1.15 var(--display); letter-spacing: -.02em; }
.outcome-result > p { margin-bottom: 0; color: var(--ink-soft); font-size: 11.5px; }
.reason-list { margin: 17px 0 0; padding: 15px 0 0 18px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 10.5px; }
.reason-list:empty { display: none; }
.reason-list li { margin-bottom: 6px; }
.help-card { padding: 25px; border-radius: var(--radius); background: var(--navy-deep); color: #fff; }
.help-card h2 { color: #fff; font-size: 23px; }
.help-card p { margin: 0; color: #bfd0d8; font-size: 11.5px; }

.mini-kpis { margin-bottom: 18px; border: 1px solid var(--line); border-radius: 11px; display: grid; grid-template-columns: repeat(4,1fr); gap: 0; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.mini-kpis article { min-height: 80px; padding: 15px 17px; border: 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; background: #fff; }
.mini-kpis article:last-child { border-right: 0; }
.mini-kpis span { color: var(--ink-faint); font-size: 9.5px; }
.mini-kpis strong { margin-top: auto; color: var(--navy-deep); font-size: 19px; }
.register-panel { overflow: hidden; }
.register-head { padding: 22px 24px; border-bottom: 1px solid var(--line); align-items: center; }
.filter-label { display: flex; align-items: center; gap: 8px; color: var(--ink-faint); font-size: 9.5px; }
.filter-label select { width: auto; min-width: 145px; min-height: 37px; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; min-width: 960px; border-collapse: collapse; font-size: 11px; }
.data-table th { padding: 12px 12px; border-bottom: 1px solid var(--line-strong); background: #f5f8f7; color: var(--ink-faint); font: 750 8px/1.2 var(--mono); letter-spacing: .065em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 14px 12px; border-bottom: 1px solid #e6eeeb; color: var(--ink-soft); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td strong, .data-table td small { display: block; }
.data-table td strong { color: var(--ink); font-size: 11px; }
.data-table td small { margin-top: 3px; color: var(--ink-faint); font-size: 9px; }
.row-actions { display: flex; justify-content: flex-end; gap: 4px; }
.row-button { min-height: 32px; padding: 5px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--blue); cursor: pointer; font-size: 9.5px; font-weight: 750; }
.row-button:hover { background: var(--blue-pale); }
.row-button.danger { color: var(--red); }
.record-status { min-height: 25px; padding: 5px 8px; border-radius: 99px; display: inline-flex; align-items: center; font-size: 8.5px; font-weight: 750; white-space: nowrap; }
.empty-state { padding: 55px 20px; text-align: center; }
.empty-mark { width: 52px; height: 52px; margin: 0 auto 15px; border-radius: 14px; display: grid; place-items: center; background: var(--copper-pale); color: var(--copper-dark); font: 750 11px/1 var(--mono); }
.empty-state h3 { margin-bottom: 7px; }
.empty-state p { max-width: 500px; margin: 0 auto 17px; color: var(--ink-soft); font-size: 11px; }
.empty-state > div { display: flex; justify-content: center; gap: 7px; }
.info-strip { margin-top: 16px; padding: 15px 18px; border: 1px solid #e8ca93; border-radius: 10px; display: flex; align-items: baseline; gap: 10px; background: var(--amber-pale); color: #6d4915; font-size: 11px; }
.info-strip strong { flex: none; }

.supplier-layout { display: block; }
.supplier-list { display: grid; gap: 10px; }
.supplier-card { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.supplier-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.supplier-card h2 { margin-bottom: 4px; font: 750 15px/1.25 var(--body); letter-spacing: 0; }
.supplier-card-head p { margin: 0; color: var(--ink-faint); font-size: 9.5px; }
.supplier-card-meta { margin: 18px 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.supplier-card-meta div { padding: 11px; border-radius: 9px; background: var(--surface-soft); }
.supplier-card-meta span, .supplier-card-meta strong { display: block; }
.supplier-card-meta span { color: var(--ink-faint); font-size: 8px; letter-spacing: .05em; text-transform: uppercase; }
.supplier-card-meta strong { margin-top: 4px; font-size: 10px; }
.supplier-card-actions { padding-top: 13px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 4px; }
.supplier-empty { min-height: 330px; display: grid; place-content: center; }
.evidence-guide { padding: 27px; border-radius: var(--radius); background: var(--navy-deep); color: #fff; }
.evidence-guide h2 { color: #fff; font-size: 26px; }
.evidence-guide dl { margin: 22px 0 0; }
.evidence-guide dl div { padding: 13px 0; border-top: 1px solid rgba(255,255,255,.15); }
.evidence-guide dt { color: #fff; font-size: 10.5px; font-weight: 760; }
.evidence-guide dd { margin: 3px 0 0; color: #afc5cf; font-size: 9.5px; }

.handoff-layout { margin-bottom: 24px; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(310px,.75fr); align-items: start; gap: 18px; }
.handoff-summary, .export-panel { padding: 28px; }
.readiness-score { color: var(--copper); font: 500 35px/1 var(--display); }
.handoff-bar { height: 11px; margin: 22px 0 14px; overflow: hidden; border-radius: 99px; background: #e6eeeb; }
.handoff-bar span { display: block; width: 0; height: 100%; background: var(--copper); }
.handoff-summary > p { color: var(--ink-soft); font-size: 11.5px; }
.handoff-checks { margin: 20px 0 0; padding: 0; list-style: none; }
.handoff-checks li { padding: 13px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 9px; }
.handoff-checks li > span { color: #91a2a8; }
.handoff-checks li.complete > span { color: var(--green); }
.handoff-checks strong, .handoff-checks small { display: block; }
.handoff-checks strong { font-size: 11px; }
.handoff-checks small { margin-top: 2px; color: var(--ink-faint); font-size: 9px; }
.export-panel { background: linear-gradient(150deg,#fff 55%,#fbefe7); }
.file-mark { width: 72px; height: 59px; margin-bottom: 22px; border-radius: 11px; display: grid; place-items: center; background: var(--navy); color: #fff; font: 750 12px/1 var(--mono); }
.export-panel p { color: var(--ink-soft); font-size: 11.5px; }
.export-panel .button + .button { margin-top: 7px; }
.export-panel > small { display: block; margin-top: 11px; color: var(--ink-faint); font-size: 8.5px; text-align: center; }
.review-boundary { padding: 28px; border: 1px solid #e2c299; border-radius: var(--radius); background: var(--amber-pale); }
.review-boundary > div:first-child { max-width: 660px; }
.review-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.review-grid article { padding: 17px; border: 1px solid rgba(170,116,43,.25); border-radius: 10px; background: rgba(255,255,255,.58); }
.review-grid strong { color: #674315; font-size: 11px; }
.review-grid p { margin: 5px 0 0; color: #7a5a2d; font-size: 9.5px; }
.official-sources { margin-top: 16px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 11px; display: flex; align-items: center; justify-content: flex-end; gap: 17px; background: #fff; }
.official-sources > div { margin-right: auto; }
.official-sources > div strong { display: block; font-size: 10.5px; }
.official-sources a { color: var(--blue); font-size: 10px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.official-sources a:hover { text-decoration: underline; }
.handoff-explainer { border-color: #e2c299; }
.handoff-explainer > summary { background: var(--amber-pale); }
.handoff-explainer > summary:hover { background: #fff0d2; }

.dialog { width: min(650px,calc(100% - 30px)); max-height: min(860px,calc(100vh - 28px)); padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); background: #fff; box-shadow: var(--shadow-md); overflow: auto; }
.dialog-wide { width: min(820px,calc(100% - 30px)); }
.dialog-small { width: min(500px,calc(100% - 30px)); }
.dialog::backdrop { background: rgba(5,31,48,.65); backdrop-filter: blur(3px); }
.dialog form { margin: 0; padding: 29px 31px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.dialog-head h2 { margin-bottom: 0; font-size: 29px; }
.dialog-close { width: 39px; height: 39px; flex: none; padding: 0; border: 0; border-radius: 9px; display: grid; place-items: center; background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 25px; }
.dialog-close:hover { background: var(--surface-soft); }
.dialog-description { max-width: 63ch; margin: 10px 0 22px; color: var(--ink-soft); font-size: 11px; }
.dialog .field, .dialog .field-row { margin-top: 15px; }
.setup-dialog { width: min(690px,calc(100% - 30px)); }
.setup-dialog .dialog-description { margin-bottom: 18px; font-size: 12px; line-height: 1.6; }
.setup-tip { margin: 0 0 20px; padding: 14px 15px; border: 1px solid #bfd8e2; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #f0f7fa; color: #284f64; }
.setup-tip strong, .setup-tip span { display: block; }
.setup-tip strong { font-size: 11.5px; }
.setup-tip span { margin-top: 3px; font-size: 9.5px; }
.setup-tip .button { flex: none; min-height: 37px; }
.dialog-explainer { margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dialog-explainer > summary { padding: 13px 2px; display: flex; justify-content: space-between; gap: 15px; color: var(--navy); cursor: pointer; list-style: none; font-size: 10.5px; font-weight: 750; }
.dialog-explainer > summary::-webkit-details-marker { display: none; }
.dialog-explainer > summary span:last-child { font-size: 18px; line-height: 1; transition: transform .18s ease; }
.dialog-explainer[open] > summary span:last-child { transform: rotate(45deg); }
.dialog-explainer > div { padding: 0 2px 14px; }
.dialog-explainer p { margin: 0 0 9px; color: var(--ink-soft); font-size: 10px; }
.dialog-explainer p:last-child { margin-bottom: 0; }
.dialog-note { margin-top: 18px; padding: 13px 15px; border: 1px solid #e6c992; border-radius: 9px; display: grid; gap: 3px; background: var(--amber-pale); color: #6b4817; }
.dialog-note strong { font-size: 11px; }
.dialog-note span { font-size: 9.5px; }
.csv-summary { margin-bottom: 15px; padding: 12px 14px; border-radius: 9px; background: var(--blue-pale); color: var(--navy); font-size: 10.5px; }
.csv-preview-wrap { max-height: 360px; border: 1px solid var(--line); border-radius: 10px; }
.csv-preview-wrap .data-table { min-width: 650px; }
.dialog-actions { margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.help-dialog { width: min(700px,calc(100% - 30px)); }
.help-dialog-shell { padding: 29px 31px; }
.help-dialog-intro { margin: 14px 0 22px; color: var(--ink-soft); font-size: 13px; }
.help-dialog-steps { margin: 0; padding: 0; display: grid; gap: 10px; list-style: none; counter-reset: section-help; }
.help-dialog-steps li { position: relative; min-height: 38px; padding: 8px 0 8px 48px; color: var(--ink-soft); font-size: 11.5px; counter-increment: section-help; }
.help-dialog-steps li::before { content: counter(section-help); position: absolute; left: 0; top: 2px; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--navy); color: #fff; font: 750 9px/1 var(--mono); }
.help-dialog-source { margin-top: 20px; padding: 14px 16px; border: 1px solid #c9dce4; border-radius: 10px; background: #f1f7f9; color: #31566a; font-size: 11px; }
.help-dialog-source strong { display: block; margin-bottom: 4px; color: var(--navy-deep); }
.help-dialog-note { margin: 16px 0 0; color: var(--ink-faint); font-size: 10.5px; }
.licence-dialog { width: min(620px,calc(100% - 30px)); }
.licence-help { margin: 20px 0 13px; color: var(--ink-soft); font-size: 12px; font-weight: 650; }
.licence-status { min-height: 20px; margin: 12px 0 0; color: var(--ink-soft); font-size: 11px; }
.licence-active-card { margin: 22px 0 12px; padding: 19px; border: 1px solid #a7cfaf; border-radius: 12px; display: grid; grid-template-columns: 43px minmax(0,1fr); align-items: center; gap: 14px; background: var(--mint); }
.licence-active-mark { width: 43px; height: 43px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-size: 20px; }
.licence-active-card strong { font-size: 14px; }
.licence-active-card p { margin: 3px 0 0; color: var(--green-dark); font-size: 11px; }
.checkout-link { margin-top: 18px; }
.fatal-error { min-height: 100vh; padding: 40px 20px; display: grid; place-items: center; background: var(--paper); }
.fatal-error > div { width: min(620px,100%); padding: 34px; border: 1px solid #c77c78; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-md); }
.fatal-error h1 { font-size: clamp(2.1rem,6vw,3.3rem); }
.fatal-error p { color: var(--ink-soft); }
.toast-region { position: fixed; z-index: 1200; right: 18px; bottom: 18px; display: grid; gap: 8px; pointer-events: none; }
.toast { width: min(380px,calc(100vw - 36px)); padding: 13px 15px; border-radius: 10px; background: var(--navy-deep); color: #fff; box-shadow: var(--shadow-md); font-size: 11px; }
.toast.error { background: #792c2c; }
.noscript { position: fixed; z-index: 3000; inset: 0 0 auto; padding: 12px 18px; background: #fff0c9; color: #623b08; text-align: center; }

@media (max-width: 1120px) {
  .topbar-inner { grid-template-columns: var(--sidebar) 1fr; }
  .workspace-context { display: none; }
  .top-actions { grid-column: 2; grid-row: 1; }
  .rule-banner { grid-template-columns: 1fr; gap: 18px; }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 820px) {
  :root { --topbar: 68px; }
  .topbar-inner { padding: 0 13px; grid-template-columns: 1fr auto; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 16px; }
  .brand-product { font-size: 7.5px; }
  .button-accent { padding-inline: 10px; font-size: 10px; }
  .app-shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: 12px 14px; border-right: 0; border-bottom: 1px solid var(--line); display: block; overflow-x: hidden; overflow-y: visible; }
  .sidebar-heading { padding: 0 2px 10px; }
  .section-nav { padding: 9px 0 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; overflow: visible; }
  .nav-item { width: 100%; min-width: 0; min-height: 40px; padding: 5px 8px; grid-template-columns: 27px minmax(0,1fr) auto; }
  .nav-item > span:nth-child(2) { white-space: normal; }
  .nav-index { width: 27px; height: 27px; }
  .workspace-tools { border-top: 0; border-bottom: 1px solid var(--line); }
  .workspace-tool-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .workspace-tool-wide { grid-column: auto; }
  .sidebar-note, .sidebar-links, .app-version { display: none; }
  .main-content { padding: 35px 18px 65px; }
  .overview-grid, .scope-layout, .supplier-layout, .handoff-layout { grid-template-columns: 1fr; }
  .scope-aside { position: static; }
  .lower-grid { grid-template-columns: 1fr; }
  .rule-banner dl { grid-template-columns: 1fr; }
  .rule-banner dl div { min-height: 0; padding: 10px 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.17); }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-actions { justify-content: flex-start; }
  .journey-step { grid-template-columns: 40px minmax(0,1fr); }
  .journey-action { grid-column: 2; width: max-content; min-width: 0; }
  .rule-facts { grid-template-columns: 1fr; gap: 18px; }
  .rule-facts dl div:first-child { border-left: 0; }
  .guide-points, .review-grid { grid-template-columns: 1fr; }
  .official-sources { align-items: flex-start; flex-direction: column; }
  .scope-aside, .evidence-guide { order: 2; }
}

@media (max-width: 560px) {
  .brand-product { display: none; }
  .licence-button { max-width: 145px; padding-inline: 9px; }
  .main-content { padding-inline: 13px; }
  .kpi-grid, .mini-kpis { grid-template-columns: repeat(2,1fr); }
  .mini-kpis article:nth-child(2) { border-right: 0; }
  .mini-kpis article:nth-child(n+3) { border-top: 1px solid var(--line); }
  .page-heading h1 { font-size: 36px; }
  .rule-banner, .threshold-panel, .next-panel, .scope-summary-panel, .rules-panel, .scope-form, .handoff-summary, .export-panel { padding: 21px; }
  .plain-guide { padding: 22px; }
  .sector-grid { grid-template-columns: repeat(2,1fr); }
  .choice-row, .sector-grid, .question-block .field-row, .question-block .field-help { margin-left: 0; }
  .question-block .field-row, .field-row { grid-template-columns: 1fr; }
  .question-block legend { grid-template-columns: 31px minmax(0,1fr); }
  .question-number { width: 30px; height: 30px; }
  .empty-state > div { align-items: stretch; flex-direction: column; }
  .info-strip { align-items: flex-start; flex-direction: column; }
  .journey-panel-head { padding: 21px; align-items: stretch; flex-direction: column; gap: 16px; }
  .journey-progress-summary { width: 100%; }
  .journey-progress-summary > strong { text-align: left; }
  .journey-step { padding: 19px 17px; gap: 14px; }
  .journey-step-title { align-items: flex-start; flex-direction: column; gap: 6px; }
  .journey-action { width: 100%; }
  .overview-disclosure > summary, .section-explainer > summary { padding: 15px; align-items: flex-start; }
  .overview-disclosure > summary > .status-badge { display: none; }
  .overview-disclosure-body, .section-explainer-body { padding: 18px; }
  .record-totals { grid-template-columns: 1fr; }
  .record-totals > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .rule-facts dl { grid-template-columns: 1fr; }
  .rule-facts dl div { padding: 11px 0; border-top: 1px solid var(--line); border-left: 0; }
  .definition-list > div { grid-template-columns: 1fr; gap: 4px; }
  .outcome-card-head { align-items: flex-start; flex-direction: column; }
  .supplier-card-meta { grid-template-columns: 1fr; }
  .dialog form { padding: 24px 20px; }
  .setup-tip { align-items: stretch; flex-direction: column; }
  .setup-tip .button { width: 100%; }
  .help-dialog-shell { padding: 24px 20px; }
  .workspace-tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workspace-tool-wide { grid-column: 1 / -1; }
  .section-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .persistent-banner { align-items: flex-start; flex-direction: column; }
  .dialog-actions { align-items: stretch; flex-direction: column; }
}

@media print {
  .topbar, .sidebar, .top-actions, .button, .text-button, .release-note, .persistent-banner, dialog, .toast-region { display: none !important; }
  .app-shell { display: block; padding: 0; }
  .main-content { padding: 0; }
  .view { display: none !important; }
  #view-handoff { display: block !important; }
  .handoff-layout { grid-template-columns: 1fr; }
  .panel, .review-boundary { box-shadow: none; break-inside: avoid; }
  body { background: #fff; color: #000; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
