:root { color: #202d34; background: #f6f8f8; font-family: Inter, 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
.skip-link { position: absolute; top: -80px; left: 16px; padding: 10px; background: white; z-index: 10; }
.skip-link:focus { top: 10px; }
.page { width: min(100% - 64px, 1360px); margin: auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; height: 66px; border-bottom: 1px solid #d8e0e1; color: #607079; font-size: 13px; }
.topbar a, footer a { text-decoration: none; color: #286276; font-weight: 600; }
.topbar a:hover, footer a:hover { text-decoration: underline; }
.page-heading { max-width: 1080px; padding: 42px 0 35px; }
h1 { margin: 0 0 22px; font-size: clamp(28px, 3vw, 42px); letter-spacing: -.04em; line-height: 1.35; }
.page-heading p { font-size: 16px; line-height: 1.8; margin: 0 0 8px; }
.page-heading .context { color: #61737b; font-size: 13px; }
.steps { border: 1px solid #d9e2e3; background: white; padding: 23px 26px 20px; }
h2 { font-size: 20px; letter-spacing: -.025em; margin: 0; }
.steps h2 { font-size: 17px; margin-bottom: 16px; }
.step-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.step-options button { text-align: left; padding: 15px 16px; border: 1px solid #d6e0e1; background: #f9fbfb; color: #42545d; font-size: 15px; font-weight: 650; transition: border-color .15s, background .15s; }
.step-options button span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid #aebec2; margin-right: 9px; font-size: 12px; }
.step-options button[aria-pressed="true"] { border-color: #236b7b; background: #eaf3f4; color: #174f60; }
.step-options button[aria-pressed="true"] span { background: #236b7b; color: white; border-color: #236b7b; }
.step-options button:hover { border-color: #458695; }
.step-explanation { min-height: 21px; margin: 17px 0 0; color: #536b74; font-size: 14px; line-height: 1.6; }
.comparison, .results, .depth-results { margin-top: 39px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 17px; }
.section-heading p { margin: 7px 0 0; color: #60747c; font-size: 13px; line-height: 1.6; }
.layer-picker { border: 0; padding: 0; margin: 0; flex-shrink: 0; }
.layer-picker legend { padding: 0 0 6px; color: #51666e; font-size: 12px; font-weight: 650; }
.layer-picker div { display: flex; }
.layer-picker button { border: 1px solid #cedbde; margin-left: -1px; min-width: 69px; padding: 9px 10px; color: #50646b; background: white; font-size: 13px; }
.layer-picker button:first-child { margin-left: 0; }
.layer-picker button[aria-pressed="true"] { background: #235c6e; color: white; border-color: #235c6e; }
.graph-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.graph-panel { min-width: 0; border: 1px solid #d5e0e1; background: white; }
.graph-panel header { padding: 17px 19px 12px; border-bottom: 1px solid #e4eaeb; }
.graph-panel h3 { margin: 0 0 3px; font-size: 19px; letter-spacing: -.02em; }
.graph-panel p { margin: 0; color: #687a80; font-size: 12px; }
.graph-wrap { overflow: hidden; padding: 6px; background-color: #fbfcfc; background-image: radial-gradient(#dae3e4 .7px, transparent .7px); background-size: 20px 20px; }
.graph-wrap svg { width: 100%; height: auto; display: block; }
.edge { stroke: #a4b7bb; stroke-width: 2; }
.edge-new { stroke: #cd714d; stroke-width: 3.2; }
.subgraph-guide { stroke: #bfcccf; stroke-width: 1.5; stroke-dasharray: 5 7; }
.subgraph-label { fill: #536c74; font-size: 13px; font-weight: 650; }
.paper-node { cursor: pointer; outline: none; }
.paper-box { fill: white; stroke: #9aafb4; stroke-width: 1.6; filter: drop-shadow(0 2px 3px #1d394111); }
.paper-node.changed .paper-box { stroke: #20778a; stroke-width: 3; }
.paper-node.new .paper-box { fill: #fff1e9; stroke: #cc6b46; stroke-width: 3; }
.paper-node.selected .paper-box { stroke: #173d50; stroke-width: 3.5; }
.paper-node.new.selected .paper-box { stroke: #a64829; stroke-width: 3.5; }
.paper-node:focus-visible .paper-box { stroke: #151f25; stroke-width: 4; }
.paper-title { fill: #273942; font-size: 11.5px; font-weight: 700; pointer-events: none; }
.paper-feature { fill: #64767c; font-size: 11px; font-variant-numeric: tabular-nums; pointer-events: none; }
.paper-prediction { fill: #1e6377; font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; pointer-events: none; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 14px 2px 17px; color: #536b73; font-size: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-line { width: 20px; border-top: 2px solid #a4b7bb; }
.legend-line.added { border-color: #cd714d; border-width: 3px; }
.legend-node { width: 13px; height: 13px; background: #fff1e9; border: 2px solid #cc6b46; border-radius: 3px; }
.legend-change { width: 13px; height: 13px; background: white; border: 2px solid #20778a; border-radius: 3px; }
.selected-result { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 18px 23px; border-left: 4px solid #286e80; background: #eaf2f3; }
.selected-result > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.selected-result span { color: #536b73; font-size: 12px; }
.selected-result strong { font-size: 19px; }
.selected-result small { font-size: 12px; color: #567078; }
.result-numbers { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.result-numbers b { display: block; color: #1d4e5c; font-size: 21px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.result-numbers em { font-style: normal; font-weight: 700; font-size: 14px; color: #1e6879; }
.result-numbers .result-arrow { font-size: 22px; color: #78919a; }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid #d7e0e1; background: white; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; font-variant-numeric: tabular-nums; }
th, td { padding: 11px 16px; border-bottom: 1px solid #e5ebec; white-space: nowrap; }
thead { background: #ebf1f2; color: #415962; }
thead th { font-size: 12px; font-weight: 700; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 600; }
tbody th button { background: none; border: 0; padding: 0; color: #235f73; text-align: left; font-size: 13px; font-weight: 650; }
tbody th button:hover { text-decoration: underline; }
.row-selected { background: #edf5f5; }
.row-new { background: #fff7f1; }
.row-new.row-selected { background: #f8eee7; }
.large-change { font-weight: 700; color: #1d697b; }
.depth-results { margin-bottom: 50px; }
.depth-results table { min-width: 760px; }
.method-note { max-width: 1050px; color: #5c737c; font-size: 12px; line-height: 1.8; margin: 15px 0 0; }
footer { border-top: 1px solid #d5dfe0; padding: 24px 0 38px; display: flex; justify-content: space-between; color: #6b7c82; font-size: 12px; }
button:focus-visible, a:focus-visible { outline: 2px solid #246e80; outline-offset: 3px; }

@media (max-width: 1000px) {
  .page { width: min(100% - 36px, 800px); }
  .graph-grid { grid-template-columns: 1fr; }
  .graph-panel { max-width: 720px; }
}
@media (max-width: 700px) {
  .page { width: min(100% - 24px, 500px); }
  .topbar { height: 56px; }
  .page-heading { padding: 27px 0 25px; }
  h1 { font-size: 27px; }
  .page-heading p { font-size: 14px; }
  .page-heading .context { font-size: 12px; }
  .steps { padding: 17px 15px; }
  .step-options { grid-template-columns: 1fr; gap: 7px; }
  .step-options button { padding: 10px 12px; font-size: 14px; }
  .step-explanation { font-size: 12px; }
  .comparison, .results, .depth-results { margin-top: 29px; }
  .section-heading { align-items: start; flex-direction: column; gap: 15px; }
  .layer-picker { width: 100%; }
  .layer-picker div { width: 100%; }
  .layer-picker button { flex: 1; min-width: 0; }
  .graph-grid { gap: 12px; }
  .graph-panel header { padding: 13px 14px 10px; }
  .graph-panel h3 { font-size: 17px; }
  .graph-wrap { padding: 2px; }
  .legend { gap: 9px 15px; font-size: 11px; }
  .selected-result { display: block; padding: 15px; }
  .result-numbers { margin-top: 15px; }
  .result-numbers b { font-size: 18px; }
  th, td { padding: 10px 12px; }
  .results table { min-width: 550px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
