:root {
  color-scheme: light;
  --ink: #20252b;
  --muted: #626a74;
  --line: #e1e4e8;
  --paper: #fff;
  --bg: #fff;
  --green: #30363d;
  --light: #eceef1;
  --bad: #9e3a34;
  --amber: #8b601e;
  --radius: 5px;
  --sidebar-width: 256px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
body { margin: 0; color: var(--ink); background: #fff; font: 14px/1.55 "Segoe UI", Arial, "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; text-underline-offset: 3px; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid #616a76; outline-offset: 3px; }
strong, b { font-weight: 600; }
[hidden], .hide { display: none !important; }
.sidebar { width: var(--sidebar-width); position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; background: #f5f6f8; border-right: 1px solid var(--line); padding: 20px 12px 16px; z-index: 4; overflow-y: auto; }
.brand { display: flex; gap: 8px; align-items: center; padding: 0 4px; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 22px; text-decoration: none; }
.brand-icon { display: none; }
.brand-sub { display: block; color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: 0; margin-top: 4px; }
.view-switch { display: flex; gap: 2px; padding: 2px; margin: 20px 0 24px; border-radius: 5px; background: #e8ebef; }
.view-switch button { flex: 1 1 0; min-width: 0; min-height: 32px; padding: 5px 8px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #48505a; font-size: 13px; }
.view-switch button.active, .view-switch button[aria-pressed="true"] { border-color: #707781; background: #fff; color: var(--ink); font-weight: 600; }
.view-switch button:hover:not(.active) { background: #f1f3f5; }
.project-label { color: var(--muted); font-size: 12px; margin: 28px 8px 10px; letter-spacing: 0; }
.view-switch + .project-label { margin-top: 0; }
.step { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 10px; margin: 0 0 4px; text-align: left; border: 0; border-radius: 5px; background: transparent; color: #414953; }
.step > span { flex: 0 0 20px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.step div { min-width: 0; font-size: 13px; font-weight: 400; }
.step small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; margin-top: 2px; }
.step:hover { background: #eceef1; }
.step.active { color: var(--ink); background: #e8ebee; }
.step.active div { font-weight: 600; }
.step.active::before { position: absolute; content: ""; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: #59616c; }
.sidebar-bottom { margin-top: auto; padding: 24px 4px 0; color: var(--muted); font-size: 11px; }
.sidebar-bottom p { font-size: 11px; line-height: 1.6; margin: 8px 0 14px; }
.local-dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #858e99; }
main { min-width: 0; margin-left: var(--sidebar-width); }
.topbar { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 40px 0; color: var(--muted); font-size: 12px; }
.top-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.page { max-width: 1160px; margin: 0; padding: 24px 40px 40px; }
.page-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin: 0 0 24px; }
h1 { font-size: 25px; line-height: 1.35; font-weight: 600; letter-spacing: -.4px; margin: 0 0 8px; }
.page-title p { max-width: 70ch; color: var(--muted); font-size: 13px; margin: 0; }
.version { color: var(--muted); font-size: 11px; white-space: nowrap; padding-top: 5px; }
.notice { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; background: #f1f3f5; color: #505a65; border: 0; border-radius: 5px; font-size: 12px; padding: 10px 12px; margin-bottom: 28px; }
.notice > div { flex: 1 1 420px; min-width: 0; }
.notice strong { margin-right: 8px; color: #39424c; }
.notice span { font-size: 12px; }
.text-button { padding: 0; background: none; border: none; color: #414b57; font-size: 12px; line-height: 1.5; text-align: left; text-decoration: underline; text-decoration-color: #b4bbc4; text-underline-offset: 3px; }
.text-button:hover { color: #111; text-decoration-color: currentColor; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; background: #fff; color: var(--ink); border: 1px solid #c9ced5; border-radius: 5px; font-size: 13px; font-weight: 500; line-height: 1.5; text-decoration: none; }
.button:hover { background: #f4f5f7; border-color: #aeb6bf; }
.button.primary { background: #333b45; border-color: #333b45; color: #fff; }
.button.primary:hover { background: #232a33; border-color: #232a33; }
.button.small { padding: 6px 11px; font-size: 12px; }
.home-view { max-width: 820px; }
.home-page .page > .page-title { display: none; }
.home-page #mode-banner { display: none; }
.home-page .page { max-width: 1160px; }
.question-row > span[aria-hidden] { display: none; }
.home-view h1 { font-size: 24px; margin: 0 0 8px; }
.home-view h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.4; font-weight: 600; letter-spacing: -.3px; }
.home-intro { margin: 0 0 24px; max-width: 75ch; color: #4f5863; font-size: 14px; line-height: 1.7; }
.question-list { padding: 0; margin: 24px 0; border-top: 1px solid var(--line); list-style: none; }
.question-row { appearance: none; position: relative; display: block; width: 100%; min-height: 76px; padding: 15px 36px 15px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); text-align: left; font: inherit; }
.question-row::after { content: ""; position: absolute; right: 11px; top: calc(50% - 4px); width: 7px; height: 7px; border-top: 1px solid #737b85; border-right: 1px solid #737b85; transform: rotate(45deg); }
.question-row:hover { background: #fafbfc; }
.question-row strong { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.question-row small { display: block; color: var(--muted); font-size: 13px; line-height: 1.6; }
.home-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 26px 0; color: var(--muted); font-size: 12px; }
.home-links a, .home-links button { font-size: 12px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-heading h2 { font-size: 20px; font-weight: 600; line-height: 1.4; margin: 0 0 5px; }
.section-heading p { font-size: 13px; color: var(--muted); margin: 0; }
.grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(250px, 1fr); gap: 24px; align-items: start; }
.grid > * { min-width: 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; min-width: 0; }
.panel h3 { font-size: 15px; font-weight: 600; margin: 0 0 16px; line-height: 1.5; }
.panel .description { font-size: 12px; color: var(--muted); margin: -5px 0 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: block; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.library-view .label-text { display: block; color: #414953; font-size: 12px; margin-bottom: 6px; }
.library-view .page-title { margin-bottom: 22px; }
.library-view .library-equipment summary { font-size: 13px; }
.library-view .library-equipment[open] summary { margin-bottom: 20px; }
.library-view .library-calculation .metric-value { overflow-wrap: anywhere; }
.library-view .library-calculation .bad { color: var(--bad); }
.library-view .table-wrap td { overflow-wrap: anywhere; }
.label { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 8px; font-size: 12px; color: #424b55; margin: 0 0 6px; }
.unit { color: #6c7580; font-size: 11px; }
.field input, .field select, .field textarea { width: 100%; max-width: 100%; min-width: 0; border: 1px solid #ccd1d8; background: #fff; color: var(--ink); border-radius: 4px; padding: 8px 9px; min-height: 37px; line-height: 1.4; }
.field input:disabled, .field select:disabled, .field textarea:disabled { background: #f5f6f8; color: #67707b; }
.field textarea { resize: vertical; min-height: 74px; }
.field small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.subsection { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.subsection h4 { font-size: 12px; font-weight: 600; margin: 0 0 12px; }
.hint { color: var(--muted); font-size: 12px; line-height: 1.75; margin: 12px 0 0; overflow-wrap: anywhere; }
.hint.strong { color: #3f4854; }
.checkbox { display: flex; align-items: flex-start; gap: 8px; color: #454f5b; font-size: 12px; line-height: 1.7; margin: 13px 0; }
.checkbox input { flex-shrink: 0; width: 15px; height: 15px; margin: 3px 0 0; accent-color: #4c5663; }
.metric { padding: 12px 0; border-bottom: 1px solid var(--line); }
.metric:last-child { border-bottom: 0; }
.metric-label { display: block; margin-bottom: 5px; font-size: 12px; color: var(--muted); }
.metric-value { font-size: 27px; line-height: 1.35; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric-value span { display: inline; margin-left: 6px; color: var(--muted); font-size: 11px; white-space: normal; }
.metric.mini .metric-value { font-size: 21px; }
.note-list { margin: 10px 0 0; padding-left: 17px; color: var(--muted); font-size: 12px; }
.note-list li { margin-bottom: 7px; }
.badge { display: inline-flex; align-items: center; padding: 3px 7px; background: #eff1f3; color: #505964; border-radius: 3px; font-size: 11px; font-weight: 500; line-height: 1.5; }
.badge.warn { background: #f6f1e7; color: var(--amber); }
.badge.bad { background: #faeeeb; color: var(--bad); }
.feedback { margin-bottom: 16px; padding: 11px 13px; border: 1px solid #d9dee4; border-radius: 4px; background: #f6f7f9; color: #4a5561; font-size: 12px; }
.feedback.error { border-color: #e5c9c5; background: #fcf4f2; color: #8c3c34; }
.feedback.warn { border-color: #e8dfcc; background: #faf7ef; color: #7f602e; }
.feedback p { margin: 0; }
.actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 9px 0 30px; }
.actions .right { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.range-grid { display: grid; grid-template-columns: minmax(0, 1fr) 85px 85px; align-items: center; gap: 9px; font-size: 12px; }
.range-grid input { width: 100%; min-width: 0; padding: 7px; border: 1px solid #ccd1d8; border-radius: 4px; color: var(--ink); background: #fff; }
.range-header { color: var(--muted); font-size: 11px; }
.range-input-label { display: contents; }
.table-wrap { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
thead { border-top: 1px solid #9da5af; border-bottom: 1px solid #9da5af; }
th { padding: 10px 8px; color: #535d69; font-weight: 500; text-align: left; }
td { padding: 11px 8px; vertical-align: top; overflow-wrap: anywhere; }
tbody tr:last-child { border-bottom: 1px solid #9da5af; }
tbody tr:nth-child(even) { background: #fafbfc; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.check-mark { color: #48525f; font-weight: 600; }
.checks li.warn .check-mark { color: var(--amber); }
.flow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 0 10px; text-align: center; }
.flow .block { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 4px; padding: 12px 7px; }
.flow strong { display: block; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.flow small { font-size: 11px; color: var(--muted); }
.flow .arrow { color: #939ba5; }
.total-panel { background: #f8f9fa; border-color: #d7dce2; }
.total-panel h3 { color: var(--ink); }
.outcome-title { margin: 6px 0 10px; font-size: 20px; font-weight: 600; }
.outcome-explain { font-size: 12px; line-height: 1.75; color: var(--muted); }
.lock-id { background: #f2f4f6; font: 11px/1.7 Consolas, monospace; overflow-wrap: anywhere; padding: 10px; margin: 12px 0; }
.history-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 12px; }
.history-item small { display: block; color: var(--muted); font-size: 11px; }
details summary { cursor: pointer; font-size: 12px; color: #404c59; padding: 4px 0; }
details[open] summary { margin-bottom: 15px; }
.empty { padding: 32px 24px; text-align: center; background: #fafbfc; border: 1px solid var(--line); border-radius: 5px; }
.empty h3 { font-size: 18px; font-weight: 500; }
.empty p { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.outcome-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.outcome-card { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 16px; }
.outcome-card strong { display: block; font-size: 23px; font-weight: 500; overflow-wrap: anywhere; }
.outcome-card span { color: var(--muted); font-size: 11px; }
footer { display: flex; justify-content: space-between; gap: 20px; color: #7b838e; border-top: 1px solid var(--line); font-size: 11px; padding-top: 16px; margin-top: 36px; }
dialog { width: calc(100% - 32px); max-width: 760px; max-height: 85vh; padding: 26px; background: #fff; color: var(--ink); border: 1px solid #cdd3db; border-radius: 6px; box-shadow: 0 16px 70px #19232e26; }
dialog::backdrop { background: #18212c70; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dialog-head h2 { font-size: 21px; font-weight: 600; margin: 0; }
.icon-button { flex-shrink: 0; width: 32px; height: 32px; border: 0; border-radius: 4px; background: #f0f2f4; color: var(--muted); font-size: 24px; }
.method-content { color: #495460; font-size: 13px; line-height: 1.8; }
.method-content h3 { margin: 25px 0 8px; font-size: 15px; }
.formula { padding: 14px; border-radius: 4px; background: #f3f5f7; font-size: 12px; line-height: 2; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.reviewer-home { width: 100%; min-width: 0; }
.reviewer-hero { max-width: 820px; padding: 20px 0 26px; }
.eyebrow { display: block; margin: 0 0 14px; color: #6a727c; font-size: 11px; font-weight: 600; letter-spacing: .09em; line-height: 1.5; text-transform: uppercase; }
.reviewer-hero h1 { max-width: 720px; margin: 0 0 16px; font-size: clamp(27px, 3.1vw, 38px); line-height: 1.2; font-weight: 600; letter-spacing: -.9px; }
.reviewer-hero .home-links { margin: 18px 0 0; }
.reviewer-lead { max-width: 75ch; margin: 0; color: #535e6a; font-size: 15px; line-height: 1.75; }
#complete-case { scroll-margin-top: 24px; }
#complete-case > h2 { margin: 0 0 12px; font-size: 23px; line-height: 1.4; font-weight: 600; letter-spacing: -.4px; }
#complete-case > .reviewer-lead { margin: 0 0 22px; font-size: 13px; }
#complete-case > .case-result { margin-top: 20px; padding: 22px 24px; }
#complete-case > .feedback { margin-top: 18px; }
.reviewer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 22px 0 0; }
.reviewer-actions .button { min-height: 40px; }
.reviewer-actions .text-button { font-size: 13px; }
.evidence-label { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 4px 8px; border: 1px solid #dce0e4; border-radius: 4px; color: #515c68; background: #f5f6f8; font-size: 10px; font-weight: 600; letter-spacing: .035em; line-height: 1.45; text-transform: uppercase; }
.evidence-label.synthetic { color: #805f26; border-color: #e4d9c4; background: #faf6ed; }
.evidence-label.reported { color: #455d70; border-color: #d5dfe7; background: #f0f4f7; }
.evidence-label.pending { color: #606872; border-color: #dce0e4; background: #f5f6f8; }
.case-grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr); gap: 0; overflow: hidden; border: 1px solid #d9dee4; border-radius: 7px; background: #fff; }
.case-grid > * { min-width: 0; }
.case-story { padding: 25px; background: #f8f9fa; border-right: 1px solid #e1e4e8; }
.case-story h3 { margin: 0 0 18px; color: #35424f; font-size: 16px; font-weight: 600; }
.case-story h2, .case-controls h2, .case-controls h3 { margin: 0 0 12px; color: #242d37; font-size: 21px; line-height: 1.35; font-weight: 600; letter-spacing: -.3px; }
.case-story p, .case-controls > p { margin: 0 0 16px; color: #58636f; font-size: 13px; line-height: 1.75; }
.case-story .hint, .case-controls .hint { font-size: 12px; }
.case-story dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 15px; margin: 20px 0 0; font-size: 12px; }
.case-story dt, .case-story dd { padding: 8px 0; margin: 0; border-bottom: 1px solid #e2e6eb; }
.case-story dt { color: #646f7b; }
.case-story dd { color: #343e49; text-align: right; font-variant-numeric: tabular-nums; }
.case-story ul, .case-story ol { margin: 14px 0; padding-left: 19px; color: #58636f; font-size: 13px; line-height: 1.8; }
.case-story li + li { margin-top: 7px; }
.case-story details { margin-top: 18px; padding-top: 13px; border-top: 1px solid #dfe3e8; }
.case-controls { padding: 25px; }
.case-controls > .field { margin-top: 18px; }
.case-controls .form-grid { gap: 17px 15px; margin: 15px 0 20px; }
.case-controls .field input, .case-controls .field select { min-height: 42px; font-variant-numeric: tabular-nums; }
.case-controls .field select { padding-right: 24px; font-size: 12px; text-overflow: ellipsis; }
.case-controls > .hint { margin-top: 10px; }
.case-controls .actions { margin: 22px 0 0; }
.case-controls input[type="range"] { width: 100%; padding: 0; accent-color: #515f6e; }
.case-controls .feedback { margin: 16px 0 0; }
.result-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.case-story .result-strip { gap: 10px; margin: 18px 0 22px; padding: 0 0 17px; border-bottom: 1px solid #dce1e7; }
.result-strip .metric { min-width: 0; padding: 0; border-bottom: 0; }
.result-strip .metric-label { min-height: 34px; margin-bottom: 8px; font-size: 11px; }
.result-strip .metric.mini .metric-value { font-size: 24px; }
.result-strip .metric-value span { margin-left: 4px; font-size: 11px; }
.case-prediction { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 20px; padding: 19px 0 0; margin-top: 18px; border-top: 1px solid #dce1e6; }
.case-prediction .metric { min-width: 0; padding: 0; border-bottom: 0; }
.case-prediction .metric:first-child { grid-column: 1 / -1; padding: 12px 15px; border-radius: 4px; background: #f0f4f6; }
.case-prediction .metric:first-child .metric-label { color: #465d6e; }
.case-prediction .metric:first-child .metric-value { color: #304b60; font-size: 30px; }
.case-prediction .metric-label { font-size: 11px; }
.case-prediction .metric.mini:not(:first-child) .metric-value { font-size: 21px; }
.case-prediction .metric-value span { margin-left: 5px; }
.case-result { min-width: 0; padding: 17px 18px; border: 1px solid #dce1e6; border-radius: 5px; background: #fff; }
.case-result > span, .case-result .metric-label { display: block; margin-bottom: 7px; color: #606b77; font-size: 11px; line-height: 1.5; }
.case-result > strong { display: block; color: #29343f; font-size: 26px; line-height: 1.3; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.case-result > strong small { font-size: 12px; font-weight: 400; color: #65717d; }
.case-result > small, .case-result > p { display: block; margin: 7px 0 0; color: #697480; font-size: 11px; line-height: 1.6; }
.case-result > p { font-size: 13px; line-height: 1.75; }
.case-result > p.hint { font-size: 11px; }
.case-result h3 { margin: 0 0 10px; font-size: 16px; font-weight: 600; }
.case-result .table-wrap { margin: 18px 0; }
.case-result .reviewer-actions { margin-top: 18px; }
.reviewer-home > .feedback { margin-top: 18px; }
.research-section { margin-top: 48px; padding-top: 28px; border-top: 1px solid #dfe3e8; scroll-margin-top: 24px; }
.research-section h2 { margin: 0 0 12px; font-size: 24px; line-height: 1.35; font-weight: 600; letter-spacing: -.4px; }
.research-section > p { max-width: 82ch; margin: 0 0 22px; color: #58636f; font-size: 13px; line-height: 1.75; }
.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 18px; margin: 20px 0; }
.evidence-card { min-width: 0; padding: 22px; border: 1px solid #dfe3e8; border-radius: 6px; background: #fff; }
.evidence-card h3 { margin: 0 0 13px; font-size: 17px; line-height: 1.45; font-weight: 600; letter-spacing: -.15px; }
.evidence-card p { color: #5d6874; font-size: 13px; line-height: 1.75; margin: 12px 0 0; }
.evidence-card ul { margin: 15px 0 0; padding-left: 17px; color: #58636f; font-size: 12px; line-height: 1.75; }
.evidence-card li + li { margin-top: 8px; }
.evidence-card details { margin-top: 18px; padding-top: 12px; border-top: 1px solid #e3e6ea; }
.evidence-card .hint { font-size: 11px; }
.gap-table { margin: 20px 0 0; font-size: 12px; line-height: 1.7; }
.gap-table th { padding: 12px 13px; color: #414d59; font-size: 11px; font-weight: 600; background: #f8f9fa; }
.gap-table td { padding: 16px 13px; color: #58636f; }
.gap-table td:first-child { width: 24%; color: #303d49; font-weight: 600; }
.gap-table tbody tr { border-bottom: 1px solid #e2e6eb; }
.gap-table tbody tr:last-child { border-bottom: 1px solid #9da5af; }
.gap-table .evidence-label { margin: 0; white-space: normal; }
.reviewer-home details > p { color: #5d6874; font-size: 12px; line-height: 1.75; }
.reviewer-home .lock-id { font-size: 10px; }
.case-stage { margin: 15px 0 0; color: #67727e; font-size: 11px; line-height: 1.7; }
.case-stage strong { color: #3f4d5a; }
#research-evidence { scroll-margin-top: 24px; }
@media (max-width: 1200px) {
  .page { padding-right: 28px; padding-left: 28px; }
  .topbar { padding-left: 28px; padding-right: 28px; }
  .grid { grid-template-columns: minmax(0, 1.45fr) minmax(230px, 1fr); gap: 16px; }
  .panel { padding: 16px; }
  .version { display: none; }
  .form-grid { gap: 14px 12px; }
}
@media (max-width: 1050px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .range-grid { grid-template-columns: minmax(0, 1fr) 100px 100px; }
  .case-story, .case-controls { padding: 21px; }
  .case-controls .form-grid { grid-template-columns: minmax(0, 1fr); }
  .case-result { padding: 14px; }
  .case-result > strong { font-size: 23px; }
  .case-story .result-strip { gap: 7px; }
  .result-strip .metric.mini .metric-value { font-size: 22px; }
}
@media (max-width: 800px) {
  .sidebar { position: static; width: auto; padding: 16px 18px 12px; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .brand { font-size: 15px; padding: 0; }
  .brand-sub { display: inline; margin-left: 10px; }
  .view-switch { max-width: 300px; margin: 16px 0 10px; }
  .project-label, .sidebar-bottom, .step small { display: none; }
  #steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-top: 10px; }
  .step { gap: 6px; justify-content: center; padding: 8px 5px; min-height: 40px; margin: 0; }
  .step > span { flex-basis: auto; font-size: 10px; }
  .step div { font-size: 12px; }
  .step.active::before { top: auto; left: 12px; right: 12px; bottom: 0; width: auto; height: 2px; }
  main { margin-left: 0; }
  .topbar { min-height: 56px; padding: 12px 22px 0; gap: 12px; }
  .page { padding: 24px 22px 32px; }
  h1, .home-view h1, .home-view h2 { font-size: 23px; }
  .notice { margin-bottom: 24px; }
  .notice > div { flex-basis: 100%; }
  .notice .text-button { margin-top: 2px; }
  .outcome-grid { gap: 10px; }
  .outcome-card { padding: 12px; }
  .reviewer-hero { padding-top: 10px; }
  .reviewer-hero h1 { font-size: 31px; }
  .case-controls .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-grid { grid-template-columns: minmax(0, 1fr); }
  .case-story { border-right: 0; border-bottom: 1px solid #e1e4e8; }
  .case-story dl { grid-template-columns: minmax(0, 1fr) auto; }
  .research-section { margin-top: 38px; padding-top: 24px; }
  .evidence-card { padding: 19px; }
}
@media (max-width: 480px) {
  .sidebar { padding: 14px 14px 10px; }
  .brand-sub { display: block; margin-left: 0; font-size: 10px; }
  #steps { gap: 2px; }
  .step { padding: 8px 3px; }
  .step > span { display: none; }
  .step div { font-size: 11px; }
  .topbar { padding-right: 16px; padding-left: 16px; flex-wrap: wrap; }
  .topbar > span { font-size: 11px; }
  .top-actions { gap: 6px; }
  .top-actions .button { padding: 6px 8px; font-size: 11px; }
  .page { padding: 22px 16px 28px; }
  .page-title { margin-bottom: 20px; }
  h1, .home-view h1, .home-view h2 { font-size: 21px; }
  .page-title p { font-size: 12px; }
  .section-heading { gap: 12px; }
  .section-heading h2 { font-size: 18px; }
  .section-heading .badge { flex-shrink: 0; max-width: 100px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .field.full { grid-column: auto; }
  .range-grid { grid-template-columns: minmax(0, 1fr) 72px 72px; gap: 8px 6px; }
  .range-grid input { padding: 6px; }
  .panel { padding: 15px; }
  .actions { align-items: flex-start; }
  .actions .right { justify-content: flex-end; }
  .outcome-grid { grid-template-columns: minmax(0, 1fr); }
  .flow { gap: 5px; }
  .flow .block { padding: 10px 5px; }
  .flow strong { font-size: 12px; }
  .flow small { font-size: 10px; }
  .home-intro { font-size: 13px; }
  .question-row { min-height: 80px; }
  .question-row small { font-size: 12px; }
  footer { gap: 12px; font-size: 10px; }
  footer span { max-width: 50%; }
  dialog { padding: 20px; }
  .reviewer-hero { padding: 6px 0 24px; }
  .reviewer-hero h1 { font-size: 29px; line-height: 1.22; letter-spacing: -.65px; }
  .reviewer-lead { font-size: 14px; line-height: 1.75; }
  .eyebrow { margin-bottom: 12px; font-size: 10px; }
  .reviewer-actions { align-items: stretch; gap: 10px; margin-top: 20px; }
  .reviewer-actions .button { flex: 1 1 auto; padding: 9px 12px; font-size: 12px; }
  .reviewer-actions .text-button { padding: 5px 0; }
  .case-story, .case-controls { padding: 19px 17px; }
  #complete-case > h2 { font-size: 21px; }
  #complete-case > .case-result { padding: 19px 17px; }
  .case-story h2, .case-controls h2, .case-controls h3 { font-size: 20px; }
  .case-controls .form-grid { grid-template-columns: minmax(0, 1fr); }
  .case-controls .actions > .button { width: 100%; }
  .result-strip { grid-template-columns: minmax(0, 1fr); gap: 9px; margin: 14px 0; }
  .case-story .result-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .case-story .result-strip .metric-label { min-height: 34px; font-size: 10px; }
  .case-story .result-strip .metric-value { font-size: 22px; }
  .case-story .result-strip .metric-value span { font-size: 10px; }
  .case-result table { min-width: 480px; }
  .case-result { padding: 15px 17px; }
  .case-result > strong { font-size: 26px; }
  .evidence-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .evidence-card { padding: 19px 17px; }
  .research-section h2 { font-size: 22px; }
  .gap-table { font-size: 11px; }
  .gap-table th, .gap-table td { padding: 12px 8px; }
  .gap-table td:first-child { width: 27%; }
  .research-section .table-wrap { margin: 0 -2px; }
}
@media print {
  .sidebar, .topbar, .actions, .notice .text-button, .home-links { display: none; }
  main { margin-left: 0; }
  .page { max-width: none; padding: 0; }
  .panel { break-inside: avoid; }
  body { color: #000; background: #fff; }
  .reviewer-actions, .case-controls button { display: none; }
  .reviewer-hero { padding-top: 0; }
  .case-grid, .case-result, .evidence-card { break-inside: avoid; }
  .research-section { margin-top: 24px; padding-top: 20px; }
}
