:root {
  color-scheme: light;
  --ink: #162436;
  --muted: #4d6075;
  --accent: #1954a0;
  --line: #d5dfea;
  --wash: #eef3f8;
  --page: #f6f8fb;
  font-family: "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 15px; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: .2em; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid #2784e6; outline-offset: 3px; }
.shell { width: min(1110px, calc(100% - 64px)); margin-inline: auto; }
.masthead { background: #15263a; color: white; }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { color: white; text-decoration: none; white-space: nowrap; }
.brand span { font-weight: 800; font-size: 22px; margin-right: 7px; }
nav { display: flex; gap: 22px; }
nav a { color: #e2ebf7; font-size: 14px; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.intro { padding: 33px 0 28px; }
.track { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.track span { margin-left: .75em; border-left: 1px solid #becbd8; padding-left: .75em; }
h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -.05em; margin: 0; line-height: 1.2; }
.lede { color: var(--muted); margin: 13px 0 0; line-height: 1.7; max-width: 62ch; }
.bench { display: grid; grid-template-columns: 285px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 13px; background: white; overflow: hidden; }
.controls { background: #eef3f9; border-right: 1px solid var(--line); padding: 24px; }
.controls h3 { margin: 0 0 20px; font-size: 18px; }
.controls label { display: flex; justify-content: space-between; gap: 5px; margin: 15px 0 6px; font-size: 13px; font-weight: 650; }
.controls label span { font-weight: 400; color: var(--muted); }
.controls input, .controls select { width: 100%; min-height: 39px; padding: 7px 10px; border: 1px solid #b7c6d6; border-radius: 5px; color: var(--ink); background: white; }
input { font-variant-numeric: tabular-nums; }
.presets { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; }
.presets button { background: #f8fbff; color: var(--accent); border: 1px solid #bdcfe4; border-radius: 4px; padding: 4px 8px; font-size: 12px; }
.primary { border: 1px solid #194e92; background: var(--accent); color: #fff; font-weight: 650; border-radius: 5px; display: block; width: 100%; padding: 10px; margin-top: 19px; }
button:hover:not(:disabled) { filter: brightness(.93); }
button:disabled, select:disabled, input:disabled { cursor: default; opacity: .65; }
.readout { padding: 24px 27px; min-width: 0; }
.environment { color: var(--muted); margin: 0 0 12px; font-size: 13px; min-height: 1em; }
.decision { padding: 15px 19px 14px; background: #eaf2fc; border-left: 3px solid #245ba3; }
.hint { color: #395474; font-size: 12px; font-weight: 650; margin: 0; }
.decision h3 { color: #173b6a; font-size: 25px; margin: 3px 0; letter-spacing: -.03em; }
#note { color: #38506b; margin: 5px 0 0; line-height: 1.55; font-size: 13px; }
table { width: 100%; border-collapse: collapse; margin-top: 17px; text-align: right; font-variant-numeric: tabular-nums; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 9px; }
thead th { color: var(--muted); background: #f3f6f9; font-size: 12px; }
tr > :first-child { text-align: left; }
tbody th, tbody td { font-weight: 500; font-size: 13px; }
tbody tr.selected { background: #edf4fd; }
.route-state { display: block; font-size: 11px; color: var(--muted); }
.footnote { color: var(--muted); font-size: 12px; line-height: 1.65; }
.footnote a { font-weight: 650; display: inline-block; }
details { margin-top: 13px; font-size: 12px; color: var(--muted); }
summary { cursor: pointer; width: fit-content; }
.fingerprint { overflow-wrap: anywhere; }
.cases { padding: 32px 0 20px; }
.cases h2 { font-size: 22px; margin: 0 0 10px; }
.case-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid #8199b7; border-bottom: 1px solid var(--line); background: white; }
.case-list article { padding: 17px 18px; border-right: 1px solid var(--line); }
.case-list article:last-child { border-right: 0; }
.case-list h3 { margin: 0 0 8px; font-size: 15px; }
.case-list h3 span { font-size: 12px; color: var(--muted); margin-left: .45em; font-weight: 500; }
.case-list p, .scope { color: var(--muted); font-size: 13px; line-height: 1.65; margin: 0; }
.scope { margin: 14px 0; }
.sr-only { border: 0; clip-path: inset(50%); width: 1px; height: 1px; position: absolute; overflow: hidden; white-space: nowrap; padding: 0; }
@media (max-width: 710px) {
  .shell { width: calc(100% - 32px); }
  .masthead-inner { min-height: 58px; }
  .brand { font-size: 12px; }
  .brand span { font-size: 18px; }
  nav { gap: 10px; }
  nav a { font-size: 12px; }
  .intro { padding: 22px 0; }
  .bench { grid-template-columns: 1fr; }
  .controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 10px; padding: 15px; border-right: 0; border-bottom: 1px solid var(--line); }
  .controls h3, .presets, .primary { grid-column: 1/-1; }
  .controls h3 { margin-bottom: 3px; }
  .controls label { align-self: center; margin: 0; }
  .primary { margin-top: 4px; }
  .presets { margin: 0 0 3px; }
  .readout { padding: 15px; }
  th, td { padding: 8px 4px; }
  .case-list { grid-template-columns: 1fr; }
  .case-list article { border-right: 0; border-bottom: 1px solid var(--line); }
  .case-list article:last-child { border-bottom: 0; }
}
@media (max-width: 360px) { .masthead-inner nav a:last-child { display: none; } }
