:root {
  color-scheme: light;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #24303b;
  background: #fff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: #175971; text-underline-offset: 3px; }
a:hover { color: #0c394c; }
a, button, select, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid #286b91; outline-offset: 3px; }
.review-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.page-header { display: flex; justify-content: space-between; gap: 16px; padding: 21px 0; border-bottom: 1px solid #cbd2d8; font-size: 13px; }
.page-header span, .muted { color: #5b6873; }
h1 { margin: 32px 0 10px; font-size: 29px; line-height: 1.4; letter-spacing: -1px; }
h2 { margin: 0 0 12px; font-size: 21px; line-height: 1.5; }
h3 { margin: 22px 0 8px; font-size: 18px; line-height: 1.5; }
h4 { margin: 17px 0 8px; font-size: 15px; }
p { margin: 10px 0; overflow-wrap: anywhere; }
.intro { max-width: 880px; font-size: 15px; }
.access-note { color: #606d77; font-size: 13px; }
.section-nav { display: flex; flex-wrap: wrap; gap: 24px; padding: 17px 0; margin: 20px 0 28px; border-block: 1px solid #dce1e5; }
main > section { padding-bottom: 28px; margin-bottom: 30px; border-bottom: 1px solid #cbd2d8; scroll-margin-top: 24px; }
.dataset-picker { display: grid; grid-template-columns: 130px minmax(0, 520px); align-items: center; gap: 12px; margin: 20px 0 10px; }
.dataset-picker label { font-weight: 700; }
select { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #aebac3; border-radius: 3px; background: #fff; color: inherit; font: inherit; }
.status { color: #5b6873; font-size: 13px; }
.status:empty { display: none; }
.notice { padding: 10px 14px; margin: 14px 0; background: #f3f5f6; border-left: 3px solid #a5b2bc; }
.warning { border-left-color: #aa743b; background: #faf7f1; }
.data-line { display: flex; flex-wrap: wrap; gap: 8px 24px; color: #4d5b66; }
.data-line strong { color: #24303b; }
.actions { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 15px 0; }
.source-meta { display: grid; grid-template-columns: 138px minmax(0, 1fr); margin: 14px 0; border-top: 1px solid #dce1e5; }
.source-meta dt, .source-meta dd { padding: 9px 0; border-bottom: 1px solid #e6e9ec; overflow-wrap: anywhere; }
.source-meta dt { color: #52606b; padding-right: 16px; }
.source-meta dd { margin: 0; }
.table-wrap { max-width: 100%; overflow: auto; border-top: 1px solid #8c9ba6; margin: 12px 0; }
.table-wrap.scroll-rows { max-height: 580px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; line-height: 1.55; }
caption { text-align: left; color: #596772; padding: 9px 0; caption-side: top; }
th, td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #dce1e5; overflow-wrap: anywhere; }
thead th { background: #f1f4f6; color: #33424d; font-weight: 700; }
.scroll-rows thead th { position: sticky; top: 0; }
tbody th { font-weight: 600; }
tbody tr:nth-child(even) { background: #fafbfc; }
.tasks-table { min-width: 760px; }
.tasks-table td:nth-child(2) { width: 28%; }
.tasks-table td:nth-child(3) { width: 27%; }
.tasks-table td:last-child { min-width: 120px; }
.provenance-table { min-width: 920px; }
.alternatives-table { min-width: 750px; }
.case-table { min-width: 690px; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.code { font-family: Consolas, monospace; }
.missing { color: #6c5a43; }
details { margin: 16px 0; border-block: 1px solid #dce1e5; padding: 11px 0; }
summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 12px; }
.scenario { border-top: 1px solid #dce1e5; padding: 6px 0 12px; }
.scenario h4 { margin-top: 12px; }
.scenario .source-meta { margin-bottom: 8px; }
.assumed-label { display: inline-block; margin-right: 8px; padding: 0 5px; border: 1px solid #b2bdc5; color: #52606b; font-size: 11px; vertical-align: 2px; }
.case-record { padding: 2px 0 22px; }
.case-record + .case-record { border-top: 1px solid #aab5bd; }
.case-record h3 { margin-top: 18px; }
.source-reference { color: #53616c; font-size: 13px; }
.steps { padding-left: 24px; }
.steps li { margin: 4px 0; }
.limits-list { padding-left: 21px; }
.limits-list li { margin: 12px 0; }
pre { max-height: 460px; overflow: auto; background: #f4f6f7; padding: 16px; font-size: 12px; line-height: 1.6; tab-size: 2; }
footer { padding: 0 0 30px; font-size: 12px; color: #65727c; }
.no-script { margin: 24px; }
.skip-link { position: fixed; left: 12px; top: -100px; padding: 10px; background: white; z-index: 10; }
.skip-link:focus { top: 12px; }

@media (max-width: 640px) {
  .review-shell { width: calc(100% - 32px); }
  .page-header { display: block; padding-block: 16px; }
  .page-header span { display: block; margin-top: 5px; }
  h1 { margin-top: 24px; font-size: 25px; }
  h2 { font-size: 19px; }
  .dataset-picker { grid-template-columns: 1fr; gap: 6px; }
  .source-meta { grid-template-columns: 106px minmax(0, 1fr); }
  .source-meta dt { padding-right: 12px; }
  .section-nav { gap: 20px; }
  .data-line { gap: 6px 16px; }
  th, td { padding: 9px; }
}

@media print {
  .review-shell { width: 100%; }
  .page-header, .section-nav, .dataset-picker, .actions, .skip-link, .raw-evidence { display: none; }
  .table-wrap, .table-wrap.scroll-rows { overflow: visible; max-height: none; }
  table { min-width: 0 !important; font-size: 10px; }
  th, td { padding: 5px; }
  .scroll-rows thead th { position: static; }
  h2, h3, h4, summary { break-after: avoid; }
  tr { break-inside: avoid; }
  a { color: inherit; }
  body { font-size: 11px; }
}
