:root {
  font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #25282d; background: white;
  --accent: #cf531f; --border: #e1e5eb; --muted: #69717d;
  --page-width: 1440px; --gutter: clamp(18px, 4vw, 64px);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select { font: inherit; }
button { cursor: pointer; background: white; border: 1px solid var(--border); border-radius: 6px; padding: 7px 12px; color: inherit; }
button:hover { border-color: #aab0ba; background: #f8f9fb; }
button:disabled { cursor: default; opacity: .5; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, canvas:focus-visible { outline: 3px solid #efae7b; outline-offset: 3px; }
.project, #dashboard, .citation, footer { width: min(var(--page-width), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.project { padding-block: 54px 48px; }
.project-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; font-size: 15px; margin-top: 24px; }
.project-links a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 20px; border: 1px solid #363636; border-radius: 999px; background: #363636; color: white; text-decoration: none; font-weight: 500; line-height: 1.5; }
.project-links a:hover { background: #232323; border-color: #232323; }
.project-links svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.finding-number { color: var(--accent); font-size: 11px; letter-spacing: .12em; font-weight: 650; text-transform: uppercase; }
h1 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.16; letter-spacing: -.04em; font-weight: 650; margin: 0 0 28px; text-align: center; }
.authors { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 25px; font-size: 17px; margin-bottom: 8px; text-align: center; }
.authors a { color: #3273dc; text-decoration: none; }
.authors a:hover { text-decoration: underline; }
sup { color: var(--accent); font-size: .65em; margin-left: 2px; }
.affiliations { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 25px; font-size: 12px; color: var(--muted); margin-top: 0; text-align: center; }
.paper-overview { width: min(100%, var(--intro-width, 100%)); margin: 48px auto 0; }
.paper-overview h2 { font-size: 20px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 14px; text-align: left; }
.paper-overview p { width: 100%; max-width: none; color: #505a68; font-size: 16px; margin: 10px 0; text-align: justify; }
.findings { display: grid; grid-template-columns: repeat(var(--heatmap-columns, 4), minmax(0, 1fr)); gap: 30px; margin-top: 34px; border-top: 1px solid var(--border); padding-top: 24px; }
.findings h2 { font-size: 16px; line-height: 1.35; font-weight: 600; margin: 10px 0; min-height: 44px; }
.findings p:not(.finding-number) { font-size: 13px; color: #646d79; margin-bottom: 0; }
.finding-number { margin: 0; }
#dashboard { padding-bottom: 46px; scroll-margin-top: 14px; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding: 23px 0 18px; gap: 16px; }
.dashboard-heading h2 { font-size: 21px; margin: 0; }
#tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--border); scrollbar-width: thin; gap: 1px; }
#tabs button { border: 0; border-radius: 0; white-space: nowrap; padding: 12px 11px; border-bottom: 3px solid transparent; font-size: 13px; font-weight: 600; background: transparent; }
#tabs button[aria-selected=true] { color: var(--accent); border-bottom-color: var(--accent); }
#tabs small { display: block; color: var(--muted); font-weight: 400; font-size: 10px; line-height: 1.1; margin-top: 3px; }
#panel { padding-top: 22px; }
.workspace { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
aside { border: 1px solid var(--border); border-radius: 8px; padding: 16px; background: #fafbfc; position: sticky; top: 14px; max-height: calc(100vh - 28px); overflow-y: auto; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
legend, .select-label { font-size: 12px; font-weight: 650; color: #555d69; display: block; margin: 0 0 8px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; padding: 3px 0; overflow-wrap: anywhere; }
.check input { accent-color: var(--accent); margin-top: 4px; flex-shrink: 0; }
.dataset-average { font-weight: 650; margin-top: 10px; border-top: 1px solid var(--border); padding-top: 9px; }
.dataset-average:first-of-type { margin-top: 0; border-top: 0; padding-top: 3px; }
.dataset-member { margin-left: 12px; }
.check:has(input:disabled) { color: #8b919a; cursor: not-allowed; }
select { border: 1px solid #d6dbe2; border-radius: 5px; padding: 8px; width: 100%; background: white; font-size: 12px; color: #333; }
aside button { width: 100%; font-size: 11px; margin-bottom: 7px; }
.results { min-width: 0; }
.visually-hidden, #status:not(.error) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#status.error { color: #a72c22; background: #fff5f4; padding: 12px; border-radius: 6px; font-size: 12px; }
.plot-row { display: grid; grid-template-columns: repeat(var(--columns, 1), minmax(0, 1fr)); align-items: start; gap: 4px; margin-bottom: 24px; }
.plot-row > h3 { grid-column: 1 / -1; text-align: center; margin: 0 0 4px; font-size: 19px; font-weight: 650; }
.cell { min-width: 0; background: white; margin: 0; position: relative; }
.cell figcaption { font-size: 17px; font-weight: 600; padding: 7px 3px 9px; white-space: pre-line; color: #343a43; text-align: center; line-height: 1.35; min-height: 32px; }
.curve-overview .cell figcaption { font-size: 19px; font-weight: 650; }
.cell svg, .heatmap { display: block; width: 100%; height: auto; }
.cell-tools { position: absolute; top: 2px; right: 2px; display: flex; gap: 5px; z-index: 1; opacity: 0; background: #fffffff0; border-radius: 4px; }
.cell:hover .cell-tools, .cell:focus-within .cell-tools { opacity: 1; }
.cell-tools a, .cell-tools button { font-size: 10px; color: #606773; padding: 2px 6px; text-decoration: none; }
.tooltip { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); background: #fffef7f5; border: 1px solid var(--border); border-radius: 4px; padding: 4px 7px; font-size: 10px; white-space: nowrap; pointer-events: none; z-index: 2; }
.tooltip:empty { display: none; }
.empty { padding: 25px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: 6px; font-size: 12px; }
.row-heading { font-size: 14px; margin: 20px 0 9px; font-weight: 600; }
.row-heading:first-child { margin-top: 0; }
.loading { opacity: .5; pointer-events: none; }
.legend { display: flex; flex-wrap: wrap; gap: 7px 17px; justify-content: center; font-size: 16px; font-weight: 700; padding: 10px 5px 14px; grid-column: 1 / -1; }
.legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.legend i { display: inline-block; width: 23px; border-top: 2px solid var(--line-color); }
.legend i.dashed { border-top-style: dashed; }
.legend i.dotted { border-top-style: dotted; }
.remaining-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 0; }
.remaining-grid .cell figcaption { font-size: 17px; }
.redundancy-grid { display: grid; grid-template-columns: 72px repeat(var(--heatmap-columns, 4), minmax(0, 1fr)); align-items: center; gap: 4px 0; }
.redundancy-grid h3 { margin: 0; text-align: center; font-size: 18px; }
.redundancy-domain { grid-column: span 2; }
.redundancy-metric { text-align: center; font-size: 17px; line-height: 1.35; font-weight: 600; }
.backbone-group > h3 { text-align: center; font-size: 19px; margin: 0 0 5px; }
.table-wrap { overflow: auto; max-height: 78vh; border: 1px solid var(--border); border-radius: 6px; }
table { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: 11px; font-variant-numeric: tabular-nums; }
td, th { padding: 9px 12px; border-bottom: 1px solid #e9ecf0; text-align: right; white-space: nowrap; }
th { background: #f3f5f8; position: sticky; top: 0; z-index: 1; }
td:nth-child(-n+3), th:nth-child(-n+3) { text-align: left; }
tbody tr:hover { background: #faf6f1; }
.delta { display: block; font-size: 10px; color: #777; }
.better { color: #267446; } .worse { color: #b34637; }
.table-actions { display: flex; gap: 8px; margin-bottom: 10px; }
.table-actions button { font-size: 12px; }
.citation { border-top: 1px solid var(--border); padding-block: 28px 35px; }
.citation-heading { display: flex; justify-content: space-between; align-items: center; }
.citation h2 { margin: 0; font-size: 20px; font-weight: 600; }
.citation button { font-size: 12px; }
.citation pre { font-size: 12px; line-height: 1.8; padding: 20px 24px; background: #f7f8fa; border: 1px solid var(--border); border-radius: 7px; overflow-x: auto; }
footer { border-top: 1px solid var(--border); padding-block: 20px; display: flex; flex-wrap: wrap; gap: 12px 25px; color: var(--muted); font-size: 11px; }
footer span { margin-right: auto; }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); padding: 10px 18px; background: #2c333e; color: white; border-radius: 7px; z-index: 10; font-size: 13px; }
@media (max-width: 1050px) { .findings { grid-template-columns: repeat(2, minmax(0, 1fr)); } .workspace { grid-template-columns: 190px minmax(0, 1fr); gap: 18px; } }
@media (max-width: 750px) {
  .project { padding-top: 32px; } .project-links { gap: 9px; } .project-links a { padding: 8px 16px; font-size: 14px; }
  .authors { font-size: 15px; gap: 6px 19px; } .affiliations { font-size: 11px; gap: 5px 16px; }
  .paper-overview p { font-size: 14px; } .findings { gap: 24px 20px; } .findings h2 { min-height: 0; }
  .workspace { grid-template-columns: 1fr; } aside { position: static; max-height: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  fieldset { margin-bottom: 5px; } aside .select-label { grid-column: 1 / -1; }
  .plot-row { overflow-x: auto; grid-template-columns: repeat(var(--columns, 1), minmax(160px, 1fr)); }
  .redundancy-grid { overflow-x: auto; grid-template-columns: 72px repeat(var(--heatmap-columns, 4), minmax(160px, 1fr)); } .redundancy-grid h3 { font-size: 16px; }
  .curve-overview { grid-template-columns: repeat(var(--columns, 1), minmax(240px, 1fr)); }
  .cell-tools { opacity: 1; } .citation pre { padding: 15px; font-size: 11px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.teaser { width: min(100%, var(--intro-width, 100%)); margin: 32px auto; }
.teaser img { display: block; width: 100%; height: auto; }
.publication-view .workspace { grid-template-columns: minmax(0, 1fr); }
.publication-view #controls { display: none; }
.publication-table-wrap { max-height: none; border: 0; }
.publication-table { font-size: 14px; }
.publication-table thead th { position: static; text-align: center; background: white; }
.publication-table tbody th { position: static; background: transparent; text-align: left; font-weight: 400; }
.publication-table td { text-align: center; }
.publication-table tbody { border-top: 1px solid #555; }
.publication-table .base-model { background: #f1f1f1; }
.publication-table .ours-model { background: #eaf4fc; }
.publication-table tr:hover { background: inherit; }
.efficiency-reduction { color: #008575; white-space: nowrap; }
