:root {
  color-scheme: dark;
  --bg: #14161a;
  --panel: #1d2026;
  --line: #2c3038;
  --ink: #e6e8ec;
  --dim: #9aa1ad;
  --accent: #ff5a3c;
  --ok: #57c98a;
  --warn: #e6b23c;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}
header {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--line);
}
header h1 { margin: 0; font-size: 1.2rem; letter-spacing: .12em; text-transform: uppercase; }
header h1 a { color: inherit; text-decoration: none; }
#who { margin-left: auto; color: var(--dim); font-size: .9rem; }
main { max-width: 62rem; margin: 0 auto; padding: 1.5rem; }
h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-top: 2.5rem; }
a { color: var(--accent); }
code { background: var(--panel); padding: 0 .25em; border-radius: 3px; }
.note, small { color: var(--dim); font-size: .85rem; display: block; }
.error { color: var(--accent); }

.button, button {
  background: var(--accent); color: #14161a; border: 0; border-radius: 4px;
  padding: .5rem .9rem; font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: none; display: inline-block;
}
button.plain { background: var(--panel); color: var(--ink); border: 1px solid var(--line); font-weight: 400; }
button:disabled { opacity: .45; cursor: default; }

form label { display: block; margin: .75rem 0; }
input, select {
  display: block; width: 100%; max-width: 32rem; margin-top: .25rem;
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: 4px; padding: .45rem .6rem; font: inherit;
}

table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--line); }
th { color: var(--dim); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  padding: 1rem; margin: .75rem 0;
}
.card h3 { margin: 0 0 .25rem; font-size: 1rem; }
.card .meta { color: var(--dim); font-size: .85rem; }
audio { width: 100%; margin-top: .6rem; }

/* The transport. Volume is global — one control for the whole sitting, sticky
   so it stays reachable however far down the queue the curator has read. */
#transport {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  padding: .6rem .9rem; margin: .75rem 0;
}
#transport label { margin: 0; color: var(--dim); font-size: .85rem; }
#transport input[type="range"] { display: inline-block; width: 12rem; margin: 0; padding: 0; }
#transport output { font-variant-numeric: tabular-nums; min-width: 3ch; color: var(--ink); font-size: .85rem; }
#transport .toggle { display: flex; align-items: center; gap: .4rem; cursor: pointer; }
#transport input[type="checkbox"] { display: inline-block; width: auto; margin: 0; }
#transport .note { flex-basis: 100%; margin: 0; }

/* The beat grid: the ruler under the player, the bar counter, and the one
   marker that must not be mistakable for a tick. */
.beat { margin-top: .7rem; }
.beat .ruler {
  display: block; width: 100%; height: 56px;
  background: #101216; border: 1px solid var(--line); border-radius: 4px;
}
.beat .dots { display: flex; gap: .35rem; margin: .5rem 0; }
.beat .dot {
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  display: grid; place-items: center; font-size: .7rem;
  background: #101216; border: 1px solid var(--line); color: var(--dim);
}
.beat .dot.one { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.beat .dot.on { background: var(--ink); color: #14161a; border-color: var(--ink); }
.beat .dot.one.on { background: var(--accent); border-color: var(--accent); color: #14161a; }
.drop-badge {
  display: inline-flex; align-items: baseline; gap: .5rem;
  border: 1px solid var(--accent); border-radius: 4px; padding: .25rem .6rem;
  color: var(--accent); font-size: .8rem;
}
.drop-badge span { color: var(--dim); }
.drop-badge.hit { background: var(--accent); color: #14161a; }
.drop-badge.hit span { color: #14161a; }

.verdicts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.verdicts button { flex: 0 0 auto; }
.verdicts .why { color: var(--dim); font-size: .8rem; flex-basis: 100%; margin: 0; }
/* Skip is neither a state nor a nudge — nothing is sent and nothing is
   recorded — so it sits apart from both rows rather than beside them. */
.verdicts.skip { margin-top: 1.1rem; border-top: 1px solid var(--line); padding-top: .7rem; }
.v-yes { background: var(--ok); }
.v-early, .v-late { background: var(--warn); }
.v-offgrid, .v-bad { background: var(--panel); color: var(--ink); border: 1px solid var(--line); }
