:root {
  --bg: #fbfaf7; --fg: #1d1c1a; --muted: #6b6963; --faint: #9a9890; --line: #e4e1da; --card: #ffffff;
  --green: #2f8f5b; --yellow: #c98a1a; --red: #cf3f36; --accent: #2b5fd9;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141412; --fg: #ecebe6; --muted: #a5a39b; --faint: #77756e; --line: #2c2b28; --card: #1d1d1a; --accent: #7ea1ff; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 var(--sans); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
main { max-width: 1280px; margin: 0 auto; padding: 0 24px 64px; }
header.top { display: flex; align-items: baseline; gap: 20px; padding: 18px 24px; border-bottom: 1px solid var(--line); max-width: 1280px; margin: 0 auto; }
header.top .brand { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
header.top nav a { margin-right: 16px; color: var(--muted); font-size: 14px; }
header.top nav a.on { color: var(--fg); }
header.top .stamp { margin-left: auto; color: var(--faint); font-size: 13px; }
h1 { font-size: 26px; letter-spacing: -0.02em; margin: 28px 0 6px; font-weight: 600; }
h2 { font-size: 17px; margin: 32px 0 10px; font-weight: 600; }
p.lede { color: var(--muted); max-width: 720px; margin: 0 0 22px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }

/* verdict dots */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--faint); vertical-align: middle; }
.dot.green { background: var(--green); } .dot.yellow { background: var(--yellow); } .dot.red { background: var(--red); }
.lv-green { color: var(--green); } .lv-yellow { color: var(--yellow); } .lv-red { color: var(--red); } .lv-none { color: var(--faint); }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; font-size: 13px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; cursor: pointer; background: var(--card); color: var(--muted); }
.chip.on { border-color: var(--fg); color: var(--fg); }
.filters select { font: inherit; font-size: 13px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--fg); }

/* grid */
.gridwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
table.grid { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 900px; }
table.grid th, table.grid td { padding: 8px; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); }
table.grid thead th { position: sticky; top: 0; background: var(--card); z-index: 2; font-weight: 500; font-size: 12.5px; line-height: 1.35; }
table.grid thead th .price, table.grid thead th .wait { display: block; color: var(--muted); font-weight: 400; }
table.grid thead th .tally { display: block; margin-top: 4px; }
table.grid thead th .tally .dot { margin-right: 2px; width: 7px; height: 7px; }
table.grid th.rowhead { position: sticky; left: 0; background: var(--card); z-index: 1; width: 170px; font-weight: 500; font-size: 13px; }
table.grid th.rowhead img { width: 54px; aspect-ratio: 9/16; object-fit: cover; border-radius: 4px; float: left; margin-right: 8px; }
table.grid th.rowhead .sub { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
table.grid tr.group td { background: var(--bg); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 8px; }
table.grid tr.hidden { display: none; }
.cell { display: block; position: relative; width: 84px; aspect-ratio: 9/16; border-radius: 5px; overflow: hidden; background: var(--line); }
.cell img, .cell video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cell .dot { position: absolute; right: 5px; bottom: 5px; box-shadow: 0 0 0 2px rgba(0,0,0,0.45); }
.cell.none { display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 11px; text-align: center; padding: 6px; background: transparent; border: 1px dashed var(--line); }
.cell.refused { color: var(--red); }

/* input page */
.inputhead { display: grid; grid-template-columns: 220px 1fr; gap: 28px; margin-top: 22px; }
.inputhead .frame img { width: 100%; border-radius: 8px; display: block; }
.inputhead .refs { display: flex; gap: 6px; margin-top: 8px; }
.inputhead .refs img { width: 48px; border-radius: 4px; }
.inputhead .refs figcaption { font-size: 11px; color: var(--faint); text-align: center; }
.prompt { white-space: pre-wrap; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 14px; }
details.full { margin-top: 8px; font-size: 13px; }
details.full pre { white-space: pre-wrap; font: 12px/1.5 var(--mono); color: var(--muted); }
ul.lines { margin: 8px 0 0; padding-left: 18px; font-size: 14px; }
ul.lines .who { color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 13px; margin-top: 10px; }

.controls { display: flex; align-items: center; gap: 12px; margin: 22px 0 12px; font-size: 13px; }
.controls button { font: inherit; padding: 6px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--fg); cursor: pointer; }
.controls button:hover { border-color: var(--fg); }
.controls input[type=range] { flex: 1; accent-color: var(--fg); }
.controls .time { font-family: var(--mono); min-width: 44px; }
.controls .sound { color: var(--muted); }

.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.take { margin: 0; cursor: pointer; border-radius: 8px; padding: 6px; border: 2px solid transparent; }
.take.solo { border-color: var(--accent); }
.take video { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 6px; background: #000; display: block; }
.take .refused { width: 100%; aspect-ratio: 9/16; border-radius: 6px; border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; font-size: 12px; color: var(--red); }
.take figcaption { font-size: 12.5px; line-height: 1.35; margin-top: 6px; }
.take figcaption .name { font-weight: 500; display: block; }
.take figcaption .facts { color: var(--muted); display: block; }
.take figcaption .verdict { display: block; margin-top: 3px; }

.evalwrap { overflow-x: auto; margin-top: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
table.evals { border-collapse: collapse; width: 100%; font-size: 13px; }
table.evals th, table.evals td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
table.evals thead th { font-weight: 500; font-size: 12.5px; }
table.evals th.k { color: var(--muted); font-weight: 400; width: 130px; }
table.evals td[title] { cursor: help; text-decoration: underline dotted var(--faint); text-underline-offset: 3px; }
table.evals td.lv-yellow, table.evals td.lv-red { font-weight: 500; }

.read { max-width: 760px; margin-top: 26px; }
.read p { margin: 6px 0; }
.read .by { color: var(--faint); font-size: 13px; }

/* models page */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.card h3 { margin: 0 0 2px; font-size: 15px; font-weight: 600; }
.card .endpoint { font-family: var(--mono); font-size: 11.5px; color: var(--muted); word-break: break-all; }
.shape { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0; }
.shape span { font-size: 11.5px; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.stats div { background: var(--bg); border-radius: 6px; padding: 6px 8px; }
.stats .k { font-size: 11px; color: var(--muted); display: block; }
.stats .v { font-size: 16px; font-weight: 500; }
.card .notes { font-size: 13px; color: var(--muted); }
.card .links a { font-size: 12.5px; margin-right: 12px; color: var(--accent); }

.method table { border-collapse: collapse; font-size: 13.5px; margin-top: 10px; }
.method th, .method td { border-bottom: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.method th { font-weight: 500; }
footer { color: var(--faint); font-size: 12.5px; margin-top: 48px; border-top: 1px solid var(--line); padding-top: 14px; }
@media (max-width: 720px) { .inputhead { grid-template-columns: 1fr; } .strip { grid-template-columns: repeat(2, 1fr); } }

/* ── landing ────────────────────────────────────────────────────────── */
.hero { max-width: 760px; margin: 6vh 0 0; }
.hero .kicker { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.hero h1 { font-size: 40px; line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 18px; }
.lede.big { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 660px; }
a.enter {
  display: inline-block; margin: 18px 0 10px; padding: 13px 34px;
  background: var(--fg); color: var(--bg); border-radius: 8px;
  font-size: 16px; font-weight: 500; letter-spacing: .01em;
}
a.enter:hover { background: var(--accent); color: #fff; }

.heroshots { display: flex; align-items: flex-end; gap: 10px; margin: 40px 0 8px; overflow-x: auto; padding-bottom: 6px; }
.heroshot { flex: 0 0 auto; width: 116px; }
.heroshot img { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 6px; display: block; background: var(--line); }
.heroshot span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 5px; text-align: center; }
.heroshot.input img { outline: 2px solid var(--fg); outline-offset: 2px; }
.heroshot.input span { color: var(--fg); font-weight: 500; }
.heroarrow { flex: 0 0 auto; color: var(--faint); font-size: 20px; padding-bottom: 28px; }

.pitch { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; margin: 54px 0 0; max-width: 1000px; }
.pitch h2 { margin-top: 0; }
.pitch p { color: var(--muted); max-width: 46em; }
ul.ticks { list-style: none; padding: 0; margin: 14px 0 0; }
ul.ticks li { position: relative; padding-left: 20px; margin-bottom: 12px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
ul.ticks li::before { content: "—"; position: absolute; left: 0; color: var(--faint); }
ul.ticks strong { color: var(--fg); font-weight: 500; }

.lineup { margin: 56px 0 0; }
.lineup .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 12px; }
.lineup .chips a {
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px;
  background: var(--card); display: flex; align-items: baseline; gap: 8px;
}
.lineup .chips a:hover { border-color: var(--fg); color: var(--fg); }
.lineup .chips strong { font-weight: 500; font-size: 14px; }
.lineup .chips span { font-size: 12px; color: var(--muted); }

.closing { margin: 56px 0 0; max-width: 700px; border-top: 1px solid var(--line); padding-top: 28px; }
.closing p { color: var(--muted); }

@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  .heroshot { width: 92px; }
}

/* ── take and model pages ───────────────────────────────────────────── */
.crumbs { font-size: 13px; color: var(--muted); margin: 22px 0 4px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
h1 .muted { font-weight: 400; }

.takepage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 34px; margin-top: 8px; align-items: start; }
.takepage h2 { margin-top: 0; }
.bigframe { width: 100%; border-radius: 8px; display: block; }
.bigvideo { width: 100%; max-height: 70vh; border-radius: 8px; background: #000; display: block; }
.went-in .refs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.went-in .refs img { width: 46px; border-radius: 4px; }
.went-in .prompt { margin-top: 12px; font-size: 13.5px; max-height: 260px; overflow-y: auto; }
.refused.big { aspect-ratio: 9/16; max-height: 60vh; border: 1px dashed var(--line); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--red); text-align: center; padding: 20px; }
.stats.wide { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); margin: 14px 0 0; }
.payload { white-space: pre-wrap; font: 12px/1.55 var(--mono); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; overflow-x: auto; color: var(--muted); }
.notes.big { font-size: 15px; color: var(--muted); max-width: 46em; }

.replicaterow { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.replicaterow a { width: 104px; }
.replicaterow img { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 6px; display: block; background: var(--line); }
.replicaterow a.on img { outline: 2px solid var(--accent); outline-offset: 2px; }
.replicaterow span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 4px; text-align: center; }
.refusedmini { width: 104px; aspect-ratio: 9/16; border: 1px dashed var(--line); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--red); }

.gens { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 14px; }
.gen { border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 10px; }
.genshots { display: flex; gap: 6px; }
.genshots a { position: relative; flex: 1 1 0; min-width: 0; }
.genshots img { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 5px; display: block; background: var(--line); }
.genshots .dot { position: absolute; right: 4px; bottom: 4px; box-shadow: 0 0 0 2px rgba(0,0,0,.45); }
.genshots .reps { position: absolute; left: 4px; bottom: 4px; font-size: 10px; background: rgba(0,0,0,.6); color: #fff; border-radius: 3px; padding: 0 4px; }
.genmeta { margin-top: 8px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.cell .reps { position: absolute; left: 4px; bottom: 4px; font-size: 10px; background: rgba(0,0,0,.6); color: #fff; border-radius: 3px; padding: 0 4px; }

@media (max-width: 820px) { .takepage { grid-template-columns: 1fr; } }

.scouted { border-left: 3px solid var(--yellow); background: var(--card); padding: 10px 14px; border-radius: 0 6px 6px 0; font-size: 13.5px; color: var(--muted); margin: 12px 0; }
.scouted strong { color: var(--fg); font-weight: 500; }
