:root { color-scheme: light; --ink:#172033; --muted:#52607a; --line:#d9e0ea; --bg:#f6f8fc; --accent:#1d4ed8; --code:#101828; }
* { box-sizing:border-box; }
body { margin:0; font:16px/1.65 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif; color:var(--ink); background:#fff; }
.wrap { max-width:940px; margin:0 auto; padding:24px 18px 72px; }
.site-head { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; border-bottom:1px solid var(--line); padding-bottom:14px; margin-bottom:26px; }
.site-head .brand { font-weight:700; font-size:15px; color:var(--ink); text-decoration:none; letter-spacing:-.01em; }
.site-head .brand .logo { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; color:var(--accent); }
.site-head .local { color:var(--muted); font-size:13px; }
h1 { font-size:clamp(27px,4.4vw,38px); line-height:1.2; margin:0 0 10px; letter-spacing:-.02em; }
.answer { font-size:18px; line-height:1.55; margin:0 0 14px; max-width:72ch; }
.lede { color:var(--muted); margin:0 0 20px; max-width:74ch; }
.panel { border:1px solid var(--line); border-radius:12px; background:var(--bg); padding:18px; }
.row { display:grid; grid-template-columns:minmax(0,1.4fr) auto auto; gap:12px; align-items:end; }
label { font-weight:600; font-size:14px; display:block; margin-bottom:6px; }
input[type=file] { font:inherit; padding:9px 10px; border:1px solid var(--line); border-radius:8px; background:#fff; max-width:100%; width:100%; }
button { font:inherit; font-weight:600; padding:10px 16px; border-radius:8px; border:1px solid var(--accent); background:var(--accent); color:#fff; cursor:pointer; white-space:nowrap; }
button[disabled] { opacity:.5; cursor:not-allowed; }
button.secondary { background:#fff; color:var(--accent); }
.sample-bar { margin:14px 0 0; padding:12px 14px; background:#fff; border:1px solid var(--line); border-radius:9px; display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.sample-bar a { font-weight:700; }
.sample-bar span { color:var(--muted); font-size:14px; }
.hint { color:var(--muted); font-size:14px; margin:10px 0 0; }
#status { margin:14px 0 0; font-weight:600; }
#stats, table.data, #cue-table { width:100%; border-collapse:collapse; font-size:14px; margin:12px 0; }
#stats th, #stats td, table.data th, table.data td, #cue-table th, #cue-table td { border:1px solid var(--line); padding:8px 9px; text-align:left; vertical-align:top; }
#stats th, table.data th, #cue-table th { background:#fff; }
#stats th { width:34%; }
#warnings { margin:12px 0 0; padding-left:20px; color:#8a4b00; font-size:14px; }
pre { background:var(--code); color:#e8eefb; padding:14px; border-radius:10px; overflow:auto; font-size:13px; line-height:1.5; }
h2 { font-size:23px; margin:38px 0 12px; }
h3 { font-size:17px; margin:24px 0 6px; }
p, li { max-width:80ch; }
code { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:.92em; background:#eef2f9; padding:1px 4px; border-radius:4px; }
pre code { background:none; padding:0; }
figure { margin:18px 0; }
figure img, figure svg { max-width:100%; height:auto; border:1px solid var(--line); border-radius:10px; }
figcaption { color:var(--muted); font-size:13px; margin-top:6px; }
.boundary { border-left:4px solid #d97706; padding:6px 0 6px 14px; }
.related { border-top:1px solid var(--line); margin-top:38px; padding-top:8px; }
.related ul { padding-left:20px; }
.related li { margin:6px 0; }
.fixtures { background:var(--bg); border:1px solid var(--line); border-radius:10px; padding:14px 18px; }
.fixtures ul { margin:8px 0 0; padding-left:20px; }
.fixtures li { margin:5px 0; }
a { color:var(--accent); }
footer { color:var(--muted); font-size:13px; margin-top:44px; border-top:1px solid var(--line); padding-top:14px; }
.site-meta-links { display:flex; gap:16px; flex-wrap:wrap; margin-top:10px; }
@media (max-width:760px) { .row { grid-template-columns:1fr 1fr; } .row > *:first-child { grid-column:1 / -1; } }
@media (max-width:600px) { .wrap { padding:18px 14px 56px; } .panel { padding:14px; } .row { grid-template-columns:1fr; } .row > * { width:100%; } button { width:100%; } }

/* First-screen pass: the sample bar is a full-width panel element, not a prose line.
   On narrow screens tighten only spacing so the sample link stays inside the first viewport. */
.sample-bar { max-width:none; }
@media (max-width:600px) {
  .site-head { margin-bottom:16px; }
  h1 { margin-bottom:6px; }
  .answer { line-height:1.45; margin-bottom:8px; }
  .lede { line-height:1.5; margin-bottom:12px; }
  .sample-bar { padding:10px 12px; }
}
