:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --surface-2: #f4f2ec;
  --border: #e5e1d6;
  --text: #1c2130;
  --muted: #596072;
  --faint: #8a8f9c;
  --ink: #232a3d;          /* night-sky navy */
  --gold: #e8b923;         /* the stars */
  --gold-ink: #94680a;
  --gold-soft: #fbf1d3;
  --accent: var(--ink);
  --accent-soft: #eceef4;
  --shadow: 0 1px 2px rgba(28, 33, 48, .04), 0 6px 18px rgba(28, 33, 48, .06);
  --radius: 14px;

  --pass: #157a3c;  --pass-bg: #ddf5e5;  --pass-tint: #f3fbf6;  --pass-strong: #1f9d55;
  --fail: #b42318;  --fail-bg: #fde3e0;  --fail-tint: #fff6f5;  --fail-strong: #d92d20;
  --na: #4b5565;    --na-bg: #eceef2;    --na-strong: #98a2b3;

  --int: #6a3fc8;   --int-bg: #efe9fd;
  --dir: #0e7a70;   --dir-bg: #d7f5ef;

  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1118; --surface: #151922; --surface-2: #1b202b; --border: #293041;
    --text: #e9ebf1; --muted: #a5abba; --faint: #747b8d; --ink: #e9ebf1; --gold: #f2c94c; --gold-ink: #f2c94c; --gold-soft: #2c2616;
    --accent: #f2c94c; --accent-soft: #262b38;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 22px rgba(0,0,0,.35);
    --pass: #4ade80; --pass-bg: #12301f; --pass-tint: #101b15; --pass-strong: #22a55a;
    --fail: #fca5a5; --fail-bg: #45181a; --fail-tint: #1e1214; --fail-strong: #e5484d;
    --na: #a8b1c2; --na-bg: #232a36; --na-strong: #5d6779;
    --int: #c4b5fd; --int-bg: #29214a;
    --dir: #5eead4; --dir-bg: #10332f;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1118; --surface: #151922; --surface-2: #1b202b; --border: #293041;
  --text: #e9ebf1; --muted: #a5abba; --faint: #747b8d; --ink: #e9ebf1; --gold: #f2c94c; --gold-ink: #f2c94c; --gold-soft: #2c2616;
  --accent: #f2c94c; --accent-soft: #262b38;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 22px rgba(0,0,0,.35);
  --pass: #4ade80; --pass-bg: #12301f; --pass-tint: #101b15; --pass-strong: #22a55a;
  --fail: #fca5a5; --fail-bg: #45181a; --fail-tint: #1e1214; --fail-strong: #e5484d;
  --na: #a8b1c2; --na-bg: #232a36; --na-strong: #5d6779;
  --int: #c4b5fd; --int-bg: #29214a;
  --dir: #5eead4; --dir-bg: #10332f;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
code, .mono { font-family: var(--mono); font-size: .92em; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.container { max-width: 1320px; margin: 0 auto; padding: 18px 20px 56px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
kbd { font-family: var(--mono); font-size: 11px; padding: 1px 5px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; padding: 10px 22px;
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: block; width: 32px; height: auto; }
.brand-title { font-family: var(--serif); font-weight: 700; font-size: 18px; letter-spacing: .005em; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; color: var(--muted); }
.icon-btn:hover { color: var(--text); }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
.loading { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 80px 0; color: var(--muted); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { padding: 22px; border-left: 4px solid var(--fail-strong); }
.error h2 { margin: 0 0 6px; font-size: 16px; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 22px 22px 8px; max-width: 1084px; margin: 0 auto; }   /* banner = the leaderboard's 1040px column */
/* The night-sky landscape; the door sits right of center, so the title takes the open sky on the left. */
.banner { position: relative; display: flex; align-items: center; min-height: clamp(250px, 31vw, 400px); margin: 0 0 18px;
  border-radius: var(--radius); overflow: hidden; background: #1d2440 center 62% / cover no-repeat;
  background-image: url("images/into_the_unknown_background-1600.jpg");
  background-image: image-set(url("images/into_the_unknown_background-1600.jpg") 1x, url("images/into_the_unknown_background-2400.jpg") 2x);
  box-shadow: var(--shadow); }
.banner::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14, 18, 34, .62) 0%, rgba(14, 18, 34, .34) 38%, rgba(14, 18, 34, 0) 62%); }
.banner-text { position: relative; text-align: left; padding: 28px clamp(24px, 5vw, 60px); max-width: 720px; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 6vw, 66px); line-height: 1.04; letter-spacing: -.01em;
  margin: 0 0 14px; color: #fff; text-shadow: 0 2px 18px rgba(8, 10, 24, .45); }
.tagline { max-width: 540px; font-size: clamp(16px, 2vw, 20px); font-weight: 600; line-height: 1.4; margin: 0; color: #e7e3f6; text-shadow: 0 1px 10px rgba(8, 10, 24, .5); }
.lede { max-width: 780px; margin: 0 auto 14px; font-size: clamp(15px, 1.7vw, 17px); line-height: 1.55; color: var(--text); }
.affiliations { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 2px 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.affiliations li { white-space: nowrap; }
.affiliations li:not(:last-child)::after { content: "·"; margin: 0 9px; color: var(--gold); font-weight: 900; }

/* ---------- tabs ---------- */
.board-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 30px 0 12px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 7px 18px; border-radius: 999px; font-weight: 650; color: var(--muted); white-space: nowrap; flex: none; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.board-meta { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 600; cursor: help; }
.board { margin: 0 auto; }
.board.leaderboard { max-width: 1040px; }
.lb td { white-space: nowrap; }
.board.analysis { max-width: 1280px; }
.board.directions { max-width: 1180px; }

/* ---------- leaderboard ---------- */
.lb-card { overflow: hidden; }
.lb-wrap { overflow-x: auto; }
table.lb { border-collapse: collapse; width: 100%; }
.lb th { text-align: left; font-size: 12px; font-weight: 650; color: var(--muted); padding: 14px 16px 12px; border-bottom: 1px solid var(--border); vertical-align: bottom; white-space: nowrap; }
.lb th .sub { display: block; font-weight: 500; color: var(--faint); font-size: 11.5px; margin-top: 2px; }
.lb th.num, .lb td.num { text-align: right; }
.lb th.main { color: var(--gold-ink); }
.lb td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.lb tbody tr:last-child td { border-bottom: 0; }
.lb tbody tr { cursor: pointer; transition: background .12s ease; }
.lb tbody tr:hover { background: var(--surface-2); }
.lb td.main { background: color-mix(in srgb, var(--gold-soft) 60%, transparent); }
.lb tbody tr:hover td.main { background: var(--gold-soft); }
.model { font-weight: 700; font-size: 15px; }
.harness { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.score { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 110px; }
.score .v { display: flex; align-items: baseline; gap: 8px; }
.score b { font-size: 19px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.score .of { font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.score .bar { width: 110px; height: 4px; border-radius: 99px; background: var(--border); overflow: hidden; }
.score .bar span { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.lb td.main .score .bar span { background: var(--gold); }

/* ---------- analysis ---------- */
.an-card { margin-bottom: 18px; }
.an-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 18px 6px; }
.an-head h2 { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 650; }
.segmented { max-width: 100%; overflow-x: auto; display: inline-flex; padding: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; }
.segmented button { border: 0; background: transparent; padding: 5px 12px; border-radius: 8px; font-weight: 650; color: var(--muted); cursor: pointer; white-space: nowrap; font-size: 13px; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.legend { margin-left: auto; display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
table.rates { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.rates th { font-size: 12px; font-weight: 650; color: var(--muted); padding: 8px 7px; text-align: center; white-space: nowrap; }
.rates thead tr:first-child th { padding-top: 14px; }
.rates th.grp { border-bottom: 1px solid var(--border); color: var(--text); }
.rates th.l, .rates td.l { text-align: left; }
.rates th.cond { font-weight: 600; color: var(--faint); font-size: 11.5px; }
.rates thead tr:last-child th { border-bottom: 1px solid var(--border); }
.rates td { padding: 10px 7px; text-align: center; white-space: nowrap; border-bottom: 1px solid var(--border); font-size: 14px; }
.rates tbody tr:last-child td { border-bottom: 0; }
.rates td.best { font-weight: 800; }
.rates td.l { white-space: nowrap; }
.rates td.l .model { font-size: 14px; }
.rates .gap { border-left: 1px solid var(--border); }
.wrap-x { overflow-x: auto; padding: 0 8px 10px; }

table.matrix { border-collapse: separate; border-spacing: 0; width: 100%; }
.matrix th { font-size: 12px; font-weight: 650; color: var(--muted); padding: 10px 4px 8px; text-align: center; white-space: nowrap; }
.matrix th.p { cursor: help; }
.matrix td { padding: 6px 3px; text-align: center; border-top: 1px solid var(--border); }
.matrix td.l, .matrix th.l { text-align: left; padding-left: 12px; }
.matrix td.tot { font-weight: 800; font-variant-numeric: tabular-nums; padding-right: 12px; }

/* reasoning effort */
.effort { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 650; padding: 1px 8px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--border); cursor: help; }
.effort.default { color: var(--muted); font-weight: 500; }

/* analysis: pass-rate table */
.rates th.gh { white-space: normal; min-width: 110px; max-width: 150px; line-height: 1.3; }
.rates .main { background: color-mix(in srgb, var(--gold-soft) 60%, transparent); }
.rates th.main { color: var(--gold-ink); }

/* analysis: per-paper cells (failed share of each rubric) */
.matrix th.grp { border-bottom: 1px solid var(--border); color: var(--text); padding-bottom: 6px; }
.matrix th.tot-h { line-height: 1.3; padding: 0 10px; }
.pc { display: flex; flex-direction: column; width: 60px; margin: 0 auto; padding: 4px 6px 3px; border-radius: 8px; border: 1.5px solid;
  transition: transform .12s ease, box-shadow .12s ease; }
.pc.pass { border-color: var(--pass-strong); background: var(--pass-tint); }
.pc.fail { border-color: color-mix(in srgb, var(--fail-strong) 60%, transparent); background: var(--fail-tint); }
.pc:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pl { display: flex; justify-content: space-between; align-items: baseline; font-size: 10.5px; line-height: 1.25; }
.pl i { font-style: normal; font-weight: 800; }
.pl i.int, .legend b.int { color: var(--int); }
.pl i.dir, .legend b.dir { color: var(--dir); }
.pl b { font-weight: 750; font-variant-numeric: tabular-nums; }
.mb { display: block; height: 3px; border-radius: 99px; background: var(--border); overflow: hidden; margin: 1px 0 3px; }
.mb span { display: block; height: 100%; border-radius: 99px; }
.mb.int span { background: var(--int); }
.mb.dir span { background: var(--dir); }
.legend .sq { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid; margin-right: 5px; vertical-align: -2px; }
.legend .sq.pass { border-color: var(--pass-strong); background: var(--pass-tint); }
.legend .sq.fail { border-color: var(--fail-strong); background: var(--fail-tint); }

/* ---------- submission: paper header ---------- */
.paper-card { padding: 14px 20px 18px; margin-bottom: 14px; }
.paper-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.controls { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
select.select { appearance: none; padding: 6px 28px 6px 10px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%238a8f9c' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 9px center;
  color: var(--text); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.nav-btn { padding: 6px 10px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-weight: 650; font-size: 13px; color: var(--muted); }
.nav-btn:hover:not(:disabled) { color: var(--text); border-color: var(--gold); }
.nav-btn:disabled { opacity: .4; cursor: default; }
.pmeta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.pid { font-weight: 800; color: var(--bg); background: var(--ink); border-radius: 7px; padding: 1px 8px; }
.pmeta .sep { color: var(--faint); }
.pmeta [title] { cursor: help; text-decoration: underline dotted var(--faint); text-underline-offset: 3px; }
.ptitle { font-family: var(--serif); font-size: 22px; font-weight: 650; line-height: 1.3; margin: 2px 0 12px; }
.followup { border-left: 3px solid var(--gold); padding: 2px 0 2px 12px; }
.followup .lab { font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.followup p { margin: 2px 0 0; color: var(--muted); font-style: italic; font-size: 14.5px; }

/* ---------- submission: tree ---------- */
.browser { display: grid; grid-template-columns: minmax(330px, 410px) 1fr; gap: 14px; align-items: start; }
.tree-pane { position: sticky; top: 64px; max-height: calc(100vh - 80px); display: flex; flex-direction: column; overflow: hidden; }
.tree-tools { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.tree-tools .row { display: flex; gap: 8px; align-items: center; }
.search { flex: 1; display: flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface-2); color: var(--faint); }
.search input { border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; width: 100%; }
.text-btn { border: 0; background: none; color: var(--muted); font-weight: 650; font-size: 12px; cursor: pointer; padding: 3px 4px; white-space: nowrap; }
.text-btn:hover { color: var(--text); }
.tree { overflow-y: auto; padding: 8px 8px 12px; }
.t-root { margin-bottom: 8px; }
.t-row { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 8px; cursor: pointer; user-select: none; min-width: 0; }
.t-row:hover { background: var(--surface-2); }
.t-row .chev { width: 14px; flex: none; color: var(--faint); transition: transform .15s ease; text-align: center; font-size: 11px; }
.t-row.collapsed .chev { transform: rotate(-90deg); }
.t-row .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cnt { flex: none; display: flex; gap: 4px; }
.cnt span { font-size: 11px; font-weight: 800; padding: 0 6px; border-radius: 6px; line-height: 18px; white-space: nowrap; }
.s-pass { color: var(--pass); background: var(--pass-bg); }
.s-fail { color: var(--fail); background: var(--fail-bg); }
.t-root > .t-row { padding: 9px 10px; align-items: center; }
.t-root > .t-row.integrity { background: var(--int-bg); }
.t-root > .t-row.direction { background: var(--dir-bg); }
.t-root > .t-row svg { width: 18px; height: 18px; flex: none; }
.t-root > .t-row.integrity svg { color: var(--int); }
.t-root > .t-row.direction svg { color: var(--dir); }
.root-lbl { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.root-lbl b { font-size: 14px; }
.root-lbl b .g { font-weight: 800; margin-left: 4px; }
.t-root > .t-row.integrity .root-lbl b .g { color: var(--int); }
.t-root > .t-row.direction .root-lbl b .g { color: var(--dir); }
.root-lbl small { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-sec { margin-left: 10px; }
.t-sec > .t-row { font-weight: 650; font-size: 13px; }
.t-kids { margin-left: 16px; border-left: 1px dashed var(--border); padding-left: 4px; }
.t-sec.closed > .t-kids { display: none; }
.t-root.closed > .t-secs { display: none; }
.t-leaf { font-size: 12.5px; padding: 4px 8px; }
.ico { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 900; }
.ico.pass { color: #fff; background: var(--pass-strong); }
.ico.fail { color: #fff; background: var(--fail-strong); }
.ico.na, .ico.diag { color: var(--na); background: var(--na-bg); }
.ico.opt { color: var(--na); background: transparent; border: 1.5px solid var(--na-strong); }
.t-leaf.fail .lbl { font-weight: 600; }
.t-leaf.pass .lbl, .t-leaf.na .lbl, .t-leaf.diag .lbl, .t-leaf.opt .lbl { color: var(--muted); }
.t-leaf .mini, .f-cite .mini { flex: none; font-size: 10.5px; color: var(--faint); font-weight: 650; }
.t-leaf.selected { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--gold); }
.t-empty { padding: 20px; color: var(--faint); text-align: center; font-size: 13px; }

/* ---------- submission: node detail ---------- */
.detail-pane { padding: 20px 24px; min-height: 60vh; }
.d-top { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 7px; font-size: 11px; font-weight: 800; letter-spacing: .05em; white-space: nowrap; }
.status.na, .status.diag, .status.opt { color: var(--na); background: var(--na-bg); }
.rub { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.rub svg { width: 12px; height: 12px; }
.rub.integrity { color: var(--int); background: var(--int-bg); }
.rub.direction { color: var(--dir); background: var(--dir-bg); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 11px; font-weight: 650; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); white-space: nowrap; }
.tag.warn { color: var(--gold-ink); background: var(--gold-soft); border-color: transparent; }
.d-path { color: var(--faint); font-size: 12px; margin-bottom: 4px; }
.detail-pane h2 { margin: 0 0 4px; font-size: 18px; line-height: 1.45; letter-spacing: -.005em; }
.d-id { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-bottom: 18px; word-break: break-all; }
.d-sec { margin-bottom: 20px; }
.d-sec h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 9px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.d-sec h3 .from { text-transform: none; letter-spacing: 0; font-weight: 500; }
.note { padding: 10px 12px; border-radius: 10px; font-size: 13.5px; margin-bottom: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.note.bad { background: var(--fail-tint); border-color: var(--fail-bg); }
.classes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.classes li { display: grid; grid-template-columns: 22px 1fr; gap: 4px 10px; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--border); font-size: 13px; }
.classes li .radio { width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--border); }
.classes li.got .radio { border-color: currentColor; background: radial-gradient(circle, currentColor 0 4px, transparent 5px); }
.classes li.got.pass { border: 2px solid var(--pass-strong); background: var(--pass-tint); color: var(--pass); }
.classes li.got.fail { border: 2px solid var(--fail-strong); background: var(--fail-tint); color: var(--fail); }
.classes li.got.na, .classes li.got.diag { border: 2px solid var(--na-strong); background: var(--surface-2); color: var(--na); }
.c-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--text); }
.c-name { font-family: var(--mono); font-weight: 800; font-size: 12.5px; }
.c-votes { margin-left: auto; font-size: 11px; color: var(--faint); font-weight: 650; white-space: nowrap; }
.c-desc { grid-column: 2; color: var(--text); }
.c-crit { grid-column: 2; color: var(--muted); font-size: 12.5px; }
.reason { margin: 0; white-space: pre-wrap; font-size: 14.5px; line-height: 1.65; }
.reason code { color: var(--gold-ink); }
.pick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.d-nav { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--border); padding-top: 14px; margin-top: 24px; flex-wrap: wrap; }
.d-nav .pos { color: var(--faint); font-size: 12px; margin: 0 auto; }

/* ---------- median time ---------- */
.time { font-weight: 700; font-variant-numeric: tabular-nums; cursor: help; white-space: nowrap; }
.lb .time { font-size: 15px; }
.matrix td.time-c { font-weight: 600; }

/* ---------- research directions ---------- */
.dfilter { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }
.dfilter button { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.dfilter button span { color: var(--faint); font-weight: 700; margin-left: 3px; }
.dfilter button:hover { color: var(--text); }
.dfilter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.dfilter button[aria-pressed="true"] span { color: inherit; opacity: .7; }
.dgroup { margin-bottom: 26px; }
.dgroup h2 { font-family: var(--serif); font-size: 21px; font-weight: 650; margin: 0 0 12px; }
.dgroup h2 span { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--faint); margin-left: 6px; }
.dgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dcard { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: border-color .15s ease; }
.dcard:hover { border-color: color-mix(in srgb, var(--gold) 55%, var(--border)); }
.dc-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.dom { font-size: 11.5px; font-weight: 700; color: var(--gold-ink); background: var(--gold-soft); border-radius: 999px; padding: 1px 9px; }
.dc-meta { margin-left: auto; display: inline-flex; gap: 6px; flex-wrap: wrap; }
.dc-meta .sep { color: var(--faint); }
.dc-meta [title] { cursor: help; text-decoration: underline dotted var(--faint); text-underline-offset: 3px; }
.dc-title { font-family: var(--serif); font-size: 18px; font-weight: 650; line-height: 1.35; margin: 0; }
.dc-subs { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-top: auto; padding-top: 4px; }
.dc-subs .lab, .pp-head { font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-right: 4px; }
.mchip { font-size: 12px; font-weight: 650; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); background: var(--surface-2); white-space: nowrap; }
.mchip:hover { color: var(--text); border-color: var(--gold); }
.mchip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.mchip.none { opacity: .55; text-decoration: line-through; }

/* ---------- AI-written papers ---------- */
.pp { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 14px; align-items: start; }
.pp-list { position: sticky; top: 64px; max-height: calc(100vh - 80px); overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.pp-item { display: flex; gap: 9px; align-items: flex-start; padding: 7px 9px; border-radius: 9px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.pp-item .pid { flex: none; margin-top: 1px; font-size: 11px; }
.pp-item .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pp-item:hover { background: var(--surface-2); color: var(--text); }
.pp-item.on { background: var(--accent-soft); color: var(--text); font-weight: 600; box-shadow: inset 3px 0 0 var(--gold); }
.pp-main { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pp-agents { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-agents .mchip { font-size: 13px; padding: 4px 12px; }
.pp-title { display: flex; gap: 10px; align-items: baseline; font-family: var(--serif); font-size: 21px; font-weight: 650; line-height: 1.3; }
.pp-title .pid { font-family: var(--sans); font-size: 13px; }
.pp-bar { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; padding-top: 2px; }
.pp-who { font-size: 14px; margin-right: 4px; }
.pp-actions { margin-left: auto; display: flex; gap: 8px; }
.tag.ok { color: var(--pass); background: var(--pass-bg); border-color: transparent; }
.tag.no { color: var(--fail); background: var(--fail-bg); border-color: transparent; }
a.tag.link { color: var(--text); cursor: pointer; }
a.tag.link:hover { border-color: var(--gold); }
iframe.pdf { width: 100%; height: calc(100vh - 140px); min-height: 560px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.pp-empty { padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: 10px; }

/* ---------- submission: sidebar tabs and files ---------- */
.side-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); }
.side-tabs button { border: 0; background: transparent; padding: 11px 8px 10px; font-weight: 700; font-size: 13px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.side-tabs button span { font-weight: 600; color: var(--faint); font-size: 11.5px; margin-left: 2px; }
.side-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--gold); }
.fsum { font-size: 12px; color: var(--faint); }
.side-foot { padding: 8px 12px 10px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--muted); line-height: 1.5; max-height: 92px; overflow-y: auto; }
.side-foot:empty { display: none; }
.f-row, .f-cite { display: flex; align-items: center; gap: 6px; padding: 3px 8px 3px calc(var(--d) * 16px + 6px); border-radius: 7px; cursor: pointer; font-size: 12.5px; min-width: 0; user-select: none; }
.f-row:hover, .f-cite:hover { background: var(--surface-2); }
.f-row .chev { width: 12px; flex: none; font-size: 10px; color: var(--faint); transition: transform .15s ease; text-align: center; }
.f-row.collapsed .chev { transform: rotate(-90deg); }
.f-row .lbl, .f-cite .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-row.dir .lbl { font-weight: 650; }
.f-row.file .lbl { font-family: var(--mono); font-size: 12px; }
.f-row .fmeta { flex: none; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.f-row.flat { cursor: default; }
.f-row.more { cursor: default; color: var(--faint); font-style: italic; font-size: 11.5px; }
.f-row.more:hover { background: none; }
.fi { width: 15px; height: 15px; flex: none; }
.f-row.dir .fi { color: var(--gold); }
.f-row.file .fi { color: var(--faint); }
.f-row.cited .lbl { color: var(--text); }
.f-row.hit { background: var(--gold-soft); box-shadow: inset 3px 0 0 var(--gold); }
.f-row.picked { outline: 2px solid var(--gold); outline-offset: -2px; }
.f-cite { font-size: 12px; color: var(--muted); }
.f-cite.selected { background: var(--accent-soft); color: var(--text); }
.f-cite .ico { width: 16px; height: 16px; font-size: 9.5px; }
.s-na { color: var(--na); background: var(--na-bg); }

/* ---------- submission: evidence ---------- */
.evidence { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.evidence li { padding: 7px 10px; border-radius: 8px; background: var(--surface-2); font-size: 13px; line-height: 1.6; word-break: break-word; }
.d-sec h3 .miss { color: var(--fail); font-weight: 650; }
.fchip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 0 7px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface);
  font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--text); vertical-align: baseline; word-break: break-all; text-align: left; }
button.fchip { cursor: pointer; }
button.fchip:hover { border-color: var(--gold); background: var(--gold-soft); }
.fchip .fi { width: 12px; height: 12px; }
.fchip.dir .fi { color: var(--gold); }
.fchip.file .fi, .fchip.glob .fi { color: var(--faint); }
.fchip.missing { color: var(--fail); border-style: dashed; border-color: color-mix(in srgb, var(--fail-strong) 60%, transparent); background: var(--fail-tint); }
.reason .fchip { font-size: 12.5px; }

@media (max-width: 1000px) {
  .pp { grid-template-columns: 1fr; }
  .pp-list { position: static; max-height: 240px; }
  .dgrid { grid-template-columns: 1fr; }
}

@media (max-width: 1000px) {
  .browser { grid-template-columns: 1fr; }
  .tree-pane { position: static; max-height: 60vh; }
  .board-meta { margin-left: 0; width: 100%; }
}
@media (max-width: 640px) {
  .container { padding: 14px 12px 40px; }
  .hero { padding: 12px 12px 6px; }
  .banner { min-height: 300px; align-items: flex-start; background-position: 72% center; }
  .banner::before { background: linear-gradient(180deg, rgba(14, 18, 34, .66) 0%, rgba(14, 18, 34, .3) 46%, rgba(14, 18, 34, 0) 70%); }
  .banner-text { padding: 26px 22px; }
  .lb th, .lb td { padding: 11px 10px; }
  .score { min-width: 84px; } .score .bar { width: 84px; }
  .lb .h-col { display: none; }
}
.dc-title a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gold) 70%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.dc-title a:hover { text-decoration-color: var(--gold); }
.dc-title .ext { font-family: var(--sans); font-size: 11.5px; font-weight: 650; color: var(--faint); margin-left: 8px; white-space: nowrap; text-decoration: none; display: inline-block; }

/* ---------- analysis: write-up sections ---------- */
.prose { padding: 4px 22px 20px; }
.prose p, .prose li { max-width: 920px; font-size: 14.5px; line-height: 1.65; }
.prose p { margin: 4px 0 14px; }
.prose .tnote { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.prose .center { margin-left: auto; margin-right: auto; text-align: center; }   /* summary paragraphs and table note */
.prose .oneline { max-width: none; }   /* one line on desktop; wraps only on narrow screens */
.behaviors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 1100px; margin: 6px auto 24px; }
.behavior { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 20px 20px 18px; text-align: center; }
.bh-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; margin-bottom: 10px;
  background: var(--fail-bg); color: var(--fail); }
.bh-icon svg { width: 23px; height: 23px; }
.behavior h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 17px; font-weight: 650; color: var(--text); }
.prose .behavior p { max-width: none; margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--text); }
@media (max-width: 900px) { .behaviors { grid-template-columns: 1fr; max-width: 560px; } }
.an-fig { margin: 6px 0 22px; }
.an-fig a { display: block; }
.an-fig img { display: block; width: 100%; height: auto; }
.an-fig .for-dark { display: none; }
:root[data-theme="dark"] .an-fig .for-light { display: none; }
:root[data-theme="dark"] .an-fig .for-dark { display: block; }
.an-fig figcaption { margin: 8px auto 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); max-width: 920px; text-align: center; }
table.assoc { margin-top: 4px; }
.assoc td { font-size: 13.5px; }
.assoc td.l { font-weight: 600; }
.assoc sup { font-size: .72em; }

/* ---------- submit ---------- */
.board.submit { max-width: 860px; }
.sub-card { padding: 22px 26px 18px; }
.sub-card h2 { margin: 0 0 8px; font-family: var(--serif); font-size: 22px; font-weight: 650; }
.sub-lede { margin: 0 0 14px; font-size: 14.5px; line-height: 1.6; }
.sub-req { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 16px 4px; margin-bottom: 18px; }
.sub-req .lab { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sub-req ol { margin: 6px 0 8px; padding-left: 20px; line-height: 1.55; }
.sub-req li { margin-bottom: 4px; }
.sub-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.sub-form .full { grid-column: 1 / -1; }
.sub-form .f { display: flex; flex-direction: column; gap: 5px; }
.sub-form .f > span { font-size: 13px; font-weight: 650; }
.sub-form .f > span i { color: var(--fail); font-style: normal; }
.sub-form small { color: var(--faint); font-size: 12px; }
.sub-form input:not([type=checkbox]):not([type=file]), .sub-form select, .sub-form textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 8px 10px; width: 100%; }
.sub-form input[type=file] { font: inherit; font-size: 13px; color: var(--muted); }
.sub-form input:focus, .sub-form select:focus, .sub-form textarea:focus { outline: 2px solid color-mix(in srgb, var(--gold) 70%, transparent); outline-offset: 1px; }
.sub-form textarea { resize: vertical; }
.sub-form .chk { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; }
.sub-form .chk input { margin-top: 3px; }
.sub-form .hp { display: none; }
.sub-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nav-btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); padding: 8px 20px; font-weight: 700; }
.nav-btn.primary:disabled { opacity: .6; cursor: progress; }
.sub-err { color: var(--fail); font-size: 13px; font-weight: 600; }
.sub-done { background: var(--pass-bg); color: var(--pass); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
.fineprint { margin: 16px 0 0; font-size: 12px; color: var(--faint); }
.fineprint a { color: inherit; text-decoration: underline; }
@media (max-width: 640px) {
  .sub-form { grid-template-columns: 1fr; }
  .sub-card { padding: 18px 16px 14px; }
  .prose { padding: 4px 14px 16px; }
}
