@font-face { font-family: Geist; src: url('/static/fonts/geist-latin.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/static/fonts/geist-mono-latin.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

/* Tokens from roundtable/static/landing.css. */
:root {
  color-scheme: light;
  font-family: Geist, 'Segoe UI', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ink: #0a0a0a;
  --ink2: #3f3f46;
  --muted: #66666f;
  --line: #ededf0;
  --line-strong: #dcdce2;
  --soft: #f2f2f4;
  --soft-h: #ebebee;
  --panel: #fbfbfc;
  --accent: #3651e6;
  --accent-h: #2b43c9;
  --accent-soft: #eef1fd;
  --danger: #b42318;
  --ease: cubic-bezier(.22, 1, .36, 1);
  /* Outcome scale: blue for submissions in the window, greys for misses. */
  --o-on_time: #3651e6;
  --o-late: #8f9ef0;
  --o-early: #3f3f46;
  --o-after_deadline: #a1a1aa;
  --o-no_submission: #dedee3;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; font-size: 14px; line-height: 1.5; letter-spacing: -.006em; -webkit-font-smoothing: antialiased; }
::selection { background: #2e5bff29; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button, summary, label { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
main { flex: 1; }
svg { display: block; overflow: visible; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 550; text-wrap: balance; }
.wrap { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: 20px; top: -80px; z-index: 10; padding: 12px 18px; background: #fff; border-radius: 8px; }
.skip-link:focus { top: 16px; }

/* Header and footer */
.site-header { min-height: 80px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 600; letter-spacing: -.6px; }
.wordmark .mark { color: var(--accent); }
.site-header nav { display: flex; align-items: center; gap: 26px; font-size: 13px; }
.site-header nav a { padding-block: 12px; color: var(--ink2); transition: color 160ms ease; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--ink); }
.site-header nav .nav-runs { padding: 9px 16px; border-radius: 999px; background: var(--soft); color: var(--ink); font-weight: 500; transition: background-color 160ms ease; }
.site-header nav .nav-runs:hover { background: var(--soft-h); }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; padding-block: 28px 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.wordmark.small { font-size: 15px; gap: 7px; color: var(--ink); }
.wordmark.small .mark { width: 16px; height: 16px; }
.site-footer p a:not(.wordmark) { color: var(--ink2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.site-footer p a:not(.wordmark):hover { color: var(--accent); }

/* Shared controls */
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: background-color 160ms ease, transform 160ms var(--ease); }
.button:hover { background: var(--accent-h); }
.button:active { transform: scale(.98); }
.button:disabled { opacity: .55; cursor: progress; }
.button-quiet, .text-link { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--soft); font-size: 12.5px; font-weight: 500; transition: background-color 160ms ease; }
.button-quiet:hover, .text-link:hover { background: var(--soft-h); }
.button-quiet.danger { color: var(--danger); background: transparent; }
.button-quiet.danger:hover { background: #fdf0ef; }
.notice { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink2); font-size: 13px; line-height: 1.65; }
.lede { color: var(--muted); font-size: 16px; line-height: 1.65; text-wrap: pretty; }
.hint { color: var(--muted); font-size: 12px; line-height: 1.6; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px 80px; align-items: end; padding: 56px 0 48px; }
.hero h1 { max-width: 720px; font-size: clamp(36px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -.045em; }
.hero .lede { max-width: 560px; margin-top: 22px; }
.stats { display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--ink); }
.stats div { display: contents; }
.stats dt, .stats dd { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.stats dt { color: var(--muted); }
.stats dd { text-align: right; font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.preview { position: relative; grid-column: 1 / -1; max-width: 760px; padding: 13px 18px 13px 32px; border-radius: 12px; background: var(--accent-soft); color: var(--ink2); font-size: 13px; line-height: 1.65; }
.preview::before { content: ''; position: absolute; left: 16px; top: 21px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.preview strong { font-weight: 550; color: var(--ink); }

/* Leaderboard */
.board { padding-block: 40px 56px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.board-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.board h2, .split h2 { font-size: 28px; line-height: 1.15; letter-spacing: -.04em; }
.meta { margin-top: 8px; color: var(--muted); font-size: 12px; }
.meta a { color: var(--ink2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.meta a:hover { color: var(--accent); }
.board > .notice { margin-top: 16px; }
.switch { display: none; gap: 2px; margin: 0; padding: 3px; border: 0; border-radius: 999px; background: var(--soft); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch label { padding: 8px 14px; border-radius: 999px; color: var(--ink2); font-size: 12.5px; font-weight: 500; cursor: pointer; transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease; }
.switch label:hover { color: var(--ink); }
.switch input:checked + label { background: #fff; color: var(--ink); box-shadow: 0 1px 2px #0000000f, 0 0 0 1px var(--line); }
.switch input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.panel { display: none; }
.panel[data-metric="on_time"] { display: block; }
@supports selector(:has(*)) {
  .switch { display: inline-flex; }
  .board:has(#m-completion:checked) .panel[data-metric="on_time"], .board:has(#m-delay:checked) .panel[data-metric="on_time"] { display: none; }
  .board:has(#m-completion:checked) .panel[data-metric="completion"], .board:has(#m-delay:checked) .panel[data-metric="delay"] { display: block; }
}
.verdict { margin-top: 24px; font-size: 15px; line-height: 1.6; color: var(--ink); max-width: 760px; }
.table-scroll { margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow-x: auto; }
.board-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.board-table th, .board-table td { padding: 12px 16px; text-align: left; vertical-align: middle; }
.board-table thead th { padding-block: 12px 8px; background: var(--panel); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11.5px; font-weight: 500; }
.board-table tbody tr + tr > * { border-top: 1px solid var(--line); }
.board-table tbody tr:hover > * { background: var(--panel); }
.c-rank { width: 64px; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink2); }
.c-name { width: 22%; font-weight: 400; }
.c-name .name { display: block; font-size: 14px; font-weight: 550; letter-spacing: -.015em; }
.sub { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; font-weight: 400; }
.c-chart { padding-inline: 28px !important; }
.c-value { width: 128px; text-align: right !important; }
.c-value .value { display: block; font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.c-value .sub { font-family: var(--mono); font-size: 11px; font-variant-numeric: tabular-nums; }
.c-outcomes { width: 120px; }
.axis text { fill: var(--muted); font-family: var(--mono); font-size: 10.5px; }
.interval .grid line { stroke: var(--line); stroke-width: 1; }
.interval .ref { stroke: #8b8b96; stroke-width: 1; stroke-dasharray: 3 3; }
.panel[data-metric="delay"] .interval .ref { stroke: var(--accent); }
.interval .whisker { stroke: #7084ea; stroke-width: 3; stroke-linecap: round; }
.interval .cap { stroke: #9aa8ef; stroke-width: 1.5; }
.interval .dot { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.outcomes { border-radius: 4px; overflow: hidden; background: var(--soft); }
.o-on_time { fill: var(--o-on_time); background: var(--o-on_time); }
.o-late { fill: var(--o-late); background: var(--o-late); }
.o-early { fill: var(--o-early); background: var(--o-early); }
.o-after_deadline { fill: var(--o-after_deadline); background: var(--o-after_deadline); }
.o-no_submission { fill: var(--o-no_submission); background: var(--o-no_submission); }
.legend { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.key li { display: inline-flex; align-items: center; gap: 7px; }
.swatch { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 3px; }

/* Two-column sections, as on roundtable.bot */
.split { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px 80px; padding-block: 56px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.intro > p { margin-top: 14px; max-width: 300px; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* Timeline */
.timeline { padding: 22px 26px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.timeline figcaption { font-size: 13px; font-weight: 550; }
.track { margin-top: 10px; padding-inline: 4px; }
.track .window { fill: var(--accent-soft); }
.track .window-label { fill: var(--accent); font-size: 11px; font-weight: 500; }
.track .base { stroke: var(--line-strong); stroke-width: 1; }
.track .tick { fill: var(--muted); font-family: var(--mono); font-size: 10.5px; }
.track .start { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }
.track .step { fill: var(--accent); stroke: #fff; stroke-width: 1.5; }
.track > text:not(.tick):not(.window-label) { fill: var(--ink2); font-size: 11.5px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); margin-top: 18px; border-top: 1px solid var(--line); counter-reset: step; }
.steps li { display: flex; flex-direction: column; gap: 3px; padding: 14px 12px 0 0; }
.step-label { font-size: 13px; font-weight: 500; }
.step-label::before { counter-increment: step; content: counter(step) '. '; color: var(--muted); font-weight: 400; }
.step-time { font-family: var(--mono); font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Methodology */
.method { max-width: 680px; }
.method h3 { margin: 36px 0 12px; font-size: 16px; letter-spacing: -.02em; }
.method h3:first-child { margin-top: 0; }
.method p { color: var(--ink2); font-size: 14px; line-height: 1.75; text-wrap: pretty; }
.method p + p { margin-top: 12px; }
.flow { counter-reset: flow; }
.flow li { position: relative; padding: 12px 0 12px 36px; border-top: 1px solid var(--line); color: var(--ink2); line-height: 1.65; }
.flow li:last-child { border-bottom: 1px solid var(--line); }
.flow li::before { counter-increment: flow; content: counter(flow); position: absolute; left: 0; top: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.flow strong { font-weight: 550; color: var(--ink); }
.defs { margin-bottom: 14px; }
.defs div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.defs div:last-child { border-bottom: 1px solid var(--line); }
.defs dt { display: flex; align-items: center; gap: 9px; font-weight: 500; }
.defs dd { color: var(--ink2); line-height: 1.65; }
.curve { padding: 22px 22px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.curve rect.in { fill: var(--accent); }
.curve rect.out { fill: var(--o-late); }
.curve .v { fill: var(--ink2); font-family: var(--mono); font-size: 10.5px; }
.curve .t { fill: var(--muted); font-family: var(--mono); font-size: 10.5px; }
.curve figcaption { margin-top: 12px; color: var(--muted); font-size: 12px; }
.changes div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.changes dt { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.changes dd { color: var(--ink2); line-height: 1.65; }

/* Signed-in app */
.app { padding: 40px 0 64px; }
.app-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 32px; }
.app h1 { font-size: 40px; line-height: 1.1; letter-spacing: -.045em; }
.app-head .lede { margin-top: 12px; max-width: 520px; font-size: 15px; }
.account { display: flex; align-items: center; gap: 12px; }
#user-button:empty { display: none; }
#app-error { margin-bottom: 20px; }
.signin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px 80px; padding-top: 32px; border-top: 1px solid var(--line); }
.signin h2 { font-size: 22px; letter-spacing: -.03em; }
.ticks { margin: 18px 0; }
.ticks li { position: relative; padding: 8px 0 8px 22px; color: var(--ink2); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.signin .muted { font-size: 13px; }
.workspace { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 32px; border-top: 1px solid var(--line); }
.card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.card h2 { font-size: 17px; letter-spacing: -.025em; }
.create { position: sticky; top: 20px; background: var(--panel); }
.create form { display: grid; gap: 6px; margin-top: 18px; }
.create label:not(.check) { margin-top: 10px; font-size: 12.5px; font-weight: 500; color: var(--ink2); }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; font-size: 14px; transition: border-color 160ms ease, box-shadow 160ms ease; }
input:hover, select:hover, textarea:hover { border-color: #c7c7cf; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #3651e62e; }
.check { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; font-size: 13px; line-height: 1.5; }
.check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); }
.form-error { margin-top: 8px; color: var(--danger); font-size: 13px; }
.create .button { margin-top: 18px; }
.create .hint { margin-top: 6px; }
.runs-col { display: grid; gap: 24px; min-width: 0; }
.prompt { border-color: #cfd6fa; box-shadow: 0 8px 24px -16px #3651e64d; }
.prompt:focus { outline: none; }
.prompt .muted { margin-top: 6px; font-size: 13px; }
textarea { margin-top: 14px; resize: vertical; font-family: var(--mono); font-size: 12.5px !important; line-height: 1.6; background: var(--panel) !important; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.runs-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.runs-head h2 { font-size: 17px; letter-spacing: -.025em; }
.empty { padding: 28px; border: 1px dashed var(--line-strong); border-radius: 16px; text-align: center; font-size: 13px; }
.runs { display: grid; gap: 10px; }
.run { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.run-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.run-top strong { font-size: 15px; font-weight: 550; letter-spacing: -.015em; overflow-wrap: anywhere; }
.run-when { margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.status { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--ink2); font-size: 12px; font-weight: 500; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.status.s-on_time { background: var(--accent-soft); color: #2235a8; }
.status.s-on_time::before { background: var(--o-on_time); }
.status.s-late::before { background: var(--o-late); }
.status.s-early::before { background: var(--o-early); }
.status.s-after_deadline::before { background: var(--o-after_deadline); }
.status.s-no_submission::before { background: var(--o-no_submission); box-shadow: inset 0 0 0 1px var(--o-after_deadline); }
.status.s-scheduled::before { background: #fff; box-shadow: inset 0 0 0 1.5px var(--accent); }
.status.s-waiting::before { background: var(--accent); }
.badge { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--ink2); font-size: 11px; font-weight: 500; vertical-align: 2px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 14px; }
.facts dt { color: var(--muted); font-size: 11.5px; }
.facts dd { margin-top: 2px; font-family: var(--mono); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.run .row { margin-top: 14px; gap: 6px; }
.run .row > .danger:first-child { margin-left: -14px; }
.nudge { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--ink2); font-size: 13px; line-height: 1.55; }
.nudge a { flex: none; color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.nudge a:hover { color: var(--accent-h); }

/* Assistant-facing pages */
.submit { max-width: 560px; padding: 64px 0 96px; }
.submit h1 { font-size: 40px; line-height: 1.1; letter-spacing: -.045em; }
.submit .lede { margin-top: 14px; }
.submit .notice { margin-top: 22px; }
.submit-form { display: grid; gap: 10px; margin-top: 30px; }
.submit-form label { font-size: 13px; font-weight: 500; }
.submit-form input { min-height: 56px !important; font-family: var(--mono); font-size: 18px !important; }
.button.big { min-height: 56px; margin-top: 6px; font-size: 15px; }
.submit .hint { margin-top: 20px; }
.submit .hint time { font-family: var(--mono); color: var(--ink2); white-space: nowrap; }
.receipt { margin-top: 18px; padding: 22px 24px; border: 1px solid #cfd6fa; border-radius: 16px; background: var(--accent-soft); font-family: var(--mono); font-size: clamp(18px, 4.6vw, 26px); letter-spacing: -.02em; overflow-wrap: anywhere; }
.status-code { font-family: var(--mono); color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.submit .text-link { min-height: 44px; padding: 0 20px; font-size: 13.5px; color: var(--ink); }

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 48px); }
  .hero { grid-template-columns: 1fr; align-items: start; }
  .stats { max-width: 420px; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .intro > p { max-width: 560px; }
  .workspace, .signin { grid-template-columns: 1fr; }
  .create { position: static; }
}
@media (max-width: 700px) {
  .site-header { min-height: 68px; }
  .nav-anchor { display: none; }
  .hero { padding: 32px 0 36px; gap: 28px; }
  .hero .lede { font-size: 15px; margin-top: 16px; }
  .board { padding-block: 32px 44px; }
  .board-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .switch { width: 100%; }
  .switch label { flex: 1; padding-inline: 6px; text-align: center; font-size: 12px; }
  .board-table th, .board-table td { padding: 11px 10px; }
  .c-rank { width: 36px; padding-right: 0 !important; }
  .c-name { width: auto; }
  .c-chart { width: 44%; padding-inline: 12px !important; }
  .c-value { width: 76px; }
  .c-outcomes { display: none; }
  .axis .minor, .curve .minor { display: none; }
  .split { padding-block: 40px; }
  .board h2, .split h2 { font-size: 24px; }
  .timeline { padding: 18px 16px; }
  .defs div, .changes div { grid-template-columns: 1fr; gap: 4px; }
  .app h1, .submit h1 { font-size: 32px; }
  .app-head { flex-direction: column; padding-bottom: 24px; }
  .card { padding: 20px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.submit .actions { margin-top: 28px; }
