:root { --bg:#f5f6f8; --card:#fff; --fg:#1b1f24; --muted:#65707d; --line:#dde1e6;
        --accent:#2f5bd3; --ok:#1f7a45; --warn:#9a6200; --err:#b42318; }
@media (prefers-color-scheme: dark) {
  :root { --bg:#111418; --card:#1a1e24; --fg:#e7eaee; --muted:#9aa4b0; --line:#2c323a;
          --accent:#7a9cf0; --ok:#5cc58a; --warn:#e3a944; --err:#f0796e; }
}
* { box-sizing:border-box; }
body { margin:0; font:15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; background:var(--bg); color:var(--fg); }
.top { display:flex; justify-content:space-between; align-items:center; max-width:760px; margin:0 auto; padding:16px; }
.card { max-width:760px; margin:0 auto 32px; padding:24px; background:var(--card); border:1px solid var(--line); border-radius:12px; }
.narrow { max-width:380px; margin-top:12vh; }
h1 { margin:0 0 4px; font-size:22px; }
label { display:block; margin:12px 0; font-weight:500; }
input:not([type=file]) { display:block; width:100%; margin-top:4px; padding:10px; border:1px solid var(--line); border-radius:8px; background:var(--bg); color:var(--fg); font:inherit; }
button { padding:10px 18px; border:0; border-radius:8px; background:var(--accent); color:#fff; font:inherit; font-weight:600; cursor:pointer; }
button:disabled { opacity:.45; cursor:not-allowed; }
button.link { background:none; color:var(--muted); padding:0; font-weight:400; }
button.small { padding:4px 10px; font-size:13px; }
.muted { color:var(--muted); } .small { font-size:13px; }
.error { color:var(--err); }
.drop { display:flex; flex-direction:column; align-items:center; gap:4px; padding:36px 16px; border:2px dashed var(--line); border-radius:12px; cursor:pointer; text-align:center; margin:0 0 16px; }
.drop.over { border-color:var(--accent); }
.drop input { display:none; }
.drop-title { font-size:17px; font-weight:600; }
.queue, .results { list-style:none; padding:0; margin:0 0 16px; }
.queue li { padding:6px 0; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; gap:8px; }
.results li { padding:12px; border:1px solid var(--line); border-radius:10px; margin-top:10px; }
.row { display:flex; flex-wrap:wrap; align-items:center; gap:8px; justify-content:space-between; }
.name { font-weight:600; overflow-wrap:anywhere; }
.timer { font-variant-numeric:tabular-nums; color:var(--ok); }
.timer.late { color:var(--warn); }
.dead { opacity:.55; }
.warn { color:var(--warn); font-size:13px; margin:6px 0 0; }
.stats { font-size:13px; color:var(--muted); margin-top:4px; }
a.dl { color:var(--accent); font-weight:600; }
