/* admin.css — split out of style.css on 2026-09-02 so a feature's styles live
   with the feature and parallel sessions stop colliding in one 4,600-line
   file. The admin panel (admin.js, #admin-page): the two decks, the chip row and its queue badges, the workbench, analytics tables, the quest designer cards and the attic. Localhost is an admin, so these load for everyone; nothing outside #admin-page uses them.
   Loads AFTER style.css (index.html), so the cascade order the rules had
   inside it is preserved: nothing here was moved relative to what follows it. */

/* --------------------------------------------------------- admin panel */
/* the save button sits mid-panel and #admin-status is way down at the bottom,
   so a save could look like it did nothing — this floats the outcome over the
   panel where the eye already is */
#admin-toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 60;
  transform: translate(-50%, 12px);
  padding: 10px 18px; border-radius: 12px;
  font-size: 14px; letter-spacing: .5px; text-align: left; max-width: 80vw;
  background: rgba(10,10,20,0.95); color: #fff;
  border: 1px solid rgba(52,211,255,0.6);
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
#admin-toast.show { opacity: 1; transform: translate(-50%, 0); }
#admin-toast.ok { border-color: rgba(52,211,255,0.6); }
#admin-toast.bad { border-color: var(--red); }
@media (prefers-reduced-motion: reduce) {
  #admin-toast { transition: opacity .18s ease; transform: translate(-50%, 0); }
}
.mode-btn.admin { border-color: rgba(255,171,46,0.5); }
.mode-btn.admin:hover { border-color: var(--orange); background: rgba(255,171,46,0.15); }
/* destructive actions (account deletion) — red instead of the neutral chrome */
.mode-btn.danger, .small-btn.danger { border-color: rgba(255,59,92,0.6); color: #ff8ba0; }
.mode-btn.danger:hover:not(:disabled), .small-btn.danger:hover {
  border-color: var(--red); background: rgba(255,59,92,0.15);
}
.admin-note { font-size: 11px; opacity: .45; margin-top: -4px; }
/* boards left, the Unassigned bench right — the bench is the drag source, so it
   scrolls with its own column instead of sitting above 15 boards of scrolling */
.admin-zone-boards {
  text-align: left; margin: 10px 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px; align-items: start;
}
.admin-boards, .admin-bench {
  max-height: 62vh; max-height: 62dvh; overflow-y: auto; padding-right: 6px; min-width: 0;
}
.admin-bench {
  position: sticky; top: 0;
  border-left: 1px solid rgba(255,255,255,0.10); padding-left: 14px;
}
/* one chip per row in the narrow bench: the title takes the width it needs and
   the difficulty + tempo controls line up in a column of their own on the right */
.admin-bench .admin-drop { flex-direction: column; flex-wrap: nowrap; gap: 6px; }
.admin-bench .admin-chip { width: 100%; padding: 6px 10px; gap: 6px; }
.admin-bench .admin-chip b { flex: 1; min-width: 0; line-height: 1.25; }
.admin-bench .admin-chip label { white-space: nowrap; }
/* the bench is filtered and paged (it can hold the whole corpus), so its
   controls stay pinned to the top of the column while the chips scroll under
   them — the pager must be reachable without scrolling back up */
.admin-bench .admin-zone > h3 { margin-top: 0; }
.bench-tools {
  position: sticky; top: 0; z-index: 2;
  background: rgba(10,10,20,0.96);
  display: flex; flex-direction: column; gap: 6px; padding: 2px 0 8px;
}
.bench-tools input {
  width: 100%; padding: 6px 10px; border-radius: 10px;
  font: inherit; font-size: 12px; color: #fff;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
}
.bench-tools input:focus { outline: none; border-color: var(--cyan); }
.bench-pager { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.bench-count { flex: 1; text-align: center; opacity: .7; }
.bench-nav {
  min-width: 28px; padding: 2px 8px; border-radius: 8px; cursor: pointer;
  color: #fff; font: inherit; line-height: 1.4;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
}
.bench-nav:hover:not(:disabled) { border-color: var(--cyan); }
.bench-nav:disabled { opacity: .3; cursor: default; }
.bench-empty { font-size: 12px; opacity: .6; margin: 4px 2px; }
@media (max-width: 900px) {
  .admin-zone-boards { grid-template-columns: minmax(0, 1fr); }
  .admin-bench { position: static; border-left: 0; padding-left: 0; max-height: none; }
  .admin-bench .admin-drop { flex-direction: row; flex-wrap: wrap; }
  .admin-bench .admin-chip { width: auto; }
  .bench-tools { position: static; }
}
.admin-zone h3 {
  font-size: 14px; letter-spacing: 1px; margin: 14px 0 6px;
  color: var(--gold);
}
.admin-drop {
  min-height: 44px; border-radius: 12px; padding: 8px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start;
  background: rgba(255,255,255,0.04);
  border: 2px dashed rgba(255,255,255,0.14);
}
.admin-drop.over { border-color: var(--cyan); background: rgba(52,211,255,0.10); }
.admin-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 10px; cursor: grab;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25);
  font-size: 12.5px;
}
.admin-chip:active { cursor: grabbing; }
.admin-chip b { font-weight: 800; }
.admin-chip .ac-owner {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.5px;
  padding: 2px 7px; border-radius: 8px; white-space: nowrap;
  background: rgba(52,211,255,0.12); color: var(--cyan);
  border: 1px solid rgba(52,211,255,0.25);
}
/* the rival picker sits inside the owner badge and inherits its look, so the
   chip reads as a label until you click it */
.admin-chip .ac-rival {
  font: inherit; font-size: 10px; font-weight: 800; letter-spacing: 0.5px;
  color: var(--cyan); background: transparent; border: 0;
  padding: 0 14px 0 0; cursor: pointer; max-width: 15ch;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 5px center, right 1px center;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}
.admin-chip .ac-rival:hover { color: #fff; }
.admin-chip .ac-rival option { background: #16162a; color: #eee; }
/* the starter zone's five tutorial boards nest under one Level 1 heading */
.admin-zone.starter { margin-left: 14px; border-left: 2px solid rgba(255,215,94,0.18); padding-left: 12px; }
.admin-zone.starter h3 { font-size: 12.5px; opacity: .9; }
.admin-chip .ac-diff {
  font-size: 10px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase;
  padding: 2px 7px; border-radius: 8px;
}
.admin-chip.easy .ac-diff { background: rgba(60,255,140,0.18); color: #7dffb2; }
.admin-chip.medium .ac-diff { background: rgba(255,215,94,0.18); color: var(--gold); }
.admin-chip.hard .ac-diff { background: rgba(255,59,92,0.18); color: #ff8c9e; }
.admin-chip label { display: flex; align-items: center; gap: 4px; font-size: 11.5px; opacity: .85; }
.admin-chip input {
  width: 52px; font: inherit; font-size: 12px; padding: 3px 5px;
  border-radius: 6px; background: rgba(255,255,255,0.1); color: #eee;
  border: 1px solid rgba(255,255,255,0.25); text-align: right;
}
/* menu PLAY button lines up with the stack below it */
#menu .big-btn { width: 100%; padding: 16px 0; }
/* two-column menu: your pianist stands tall on the left, actions on the
   right — the whole left column is the profile-edit button */
.panel.menu-panel { max-width: 760px; }
.menu-cols {
  display: flex; align-items: stretch; justify-content: center;
  gap: 34px; margin-top: 8px;
}
/* left column: the tall pianist card, with the account's log-out under it */
.menu-leftcol { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.menu-leftcol > #player-card { flex: 1 1 auto; }
.menu-signout {
  font: inherit; font-size: 12.5px; font-weight: 700; color: #ccc; cursor: pointer;
  padding: 9px 0; border-radius: 11px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
  transition: border-color .12s, background .12s, color .12s;
}
.menu-signout:hover { color: #ff9a9a; border-color: rgba(255,120,120,0.55); background: rgba(255,90,90,0.09); }
.menu-signout:disabled { opacity: .6; cursor: default; }
/* ✉️ Messages beside the card: the sign-out's shape, gold rather than red,
   and the unread count riding on it (2026-09-13) */
.menu-door {
  font: inherit; font-size: 12.5px; font-weight: 700; color: #ddd; cursor: pointer;
  padding: 9px 0; border-radius: 11px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
  transition: border-color .12s, background .12s, color .12s;
}
.menu-door:hover { color: #ffe9a8; border-color: rgba(255,215,94,0.55); background: rgba(255,215,94,0.10); }
.menu-door.hidden { display: none; }
.menu-left {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  justify-content: center;
  min-width: 250px; padding: 18px 20px; border-radius: 18px; cursor: pointer;
  font: inherit; color: #eee; background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.16);
  transition: border-color .12s, background .12s;
}
.menu-left:hover { border-color: var(--gold); background: rgba(255,215,94,0.07); }
.pc-avatar-big { display: block; margin-bottom: 14px; }
/* the Vienna hero's portrait stands in for the Classic avatar art */
.pc-avatar-big .pc-portrait { display: block; width: 190px; height: 190px; object-fit: contain; }
/* which story mode this career is on — sits above the pianist */
.pc-mode {
  display: block; margin-bottom: 12px; font-size: 11px; font-weight: 800;
  letter-spacing: 1.2px; text-transform: uppercase; color: #ccc;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.18);
  padding: 4px 12px; border-radius: 999px;
}
.pc-mode.vienna { color: var(--gold); border-color: rgba(255,215,94,0.45); background: rgba(255,215,94,0.09); }
.menu-left .pc-name { font-size: 20px; font-weight: 800; }
.menu-left .pc-level { font-size: 12.5px; }
.menu-left .pc-elo { font-size: 12px; }
.menu-left .pc-xpbar { width: 170px; margin-top: 6px; }
.menu-left .pc-coins { margin-top: 6px; }
.pc-edit {
  margin-top: 10px; font-size: 12px; font-weight: 700; color: #ccc;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.22);
  padding: 5px 14px; border-radius: 9px;
}
.menu-left:hover .pc-edit { color: var(--gold); border-color: rgba(255,215,94,0.5); }
/* One 300px rail for the whole right column: the MIDI pill, the advice
   note, PLAY, the stack and the bug link all share the stack's width, so
   nothing sticks out past anything else. */
.menu-right { display: flex; flex-direction: column; align-items: center; width: 300px; }
.menu-right > * { width: 100%; box-sizing: border-box; }
.menu-right .midi-status { display: block; margin: 10px 0 4px; text-align: center; }
/* pill + ✏️ on one line: the pill can carry a whole sentence ("Kawai not
   connected. Listening to all inputs"), so it takes the width and the button
   stays a fixed square beside it. Both children hide independently — with no
   Web MIDI the row collapses to nothing. */
.midi-row {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 10px 0 4px;
}
.menu-right .midi-row .midi-status { margin: 0; min-width: 0; flex: 1 1 auto; }
/* menu-first onboarding (initCareerUI): a visitor with no pianist yet sees
   the menu before the rail, and the input pill is the rail's business
   (the connect screen), so it waits until the rail has run */
body.pre-onboard #menu .midi-row, body.pre-onboard #menu #midi-picker,
body.pre-onboard #menu #conn-advice { display: none !important; }
.midi-edit {
  flex: none; width: 32px; height: 32px; padding: 0; border-radius: 9px;
  font-size: 14px; line-height: 1; color: #ccc; cursor: pointer; font-family: inherit;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.22);
}
.midi-edit:hover { color: var(--gold); border-color: rgba(255,215,94,0.5); }
.midi-edit.open { color: var(--gold); border-color: var(--gold); background: rgba(255,215,94,0.16); }
.midi-picker {
  margin: 6px 0 0; padding: 10px; border-radius: 12px; text-align: center;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14);
}
.midi-picker .ck-picker-hint { margin: 0 0 8px; }
.menu-right .conn-advice { max-width: none; margin: 6px 0 0; text-align: center; }
.menu-right .menu-stack { margin: 10px 0 8px; }
.menu-right .menu-under { width: 100%; margin: 8px 0 0; }
.menu-right .small-row .small-btn { flex: 1; margin: 8px 0; }
.menu-right .bug-link { margin: 0; }
.menu-right .help-row .small-btn { flex: 1 1 auto; padding-left: 8px; padding-right: 8px; }
/* narrow screens: the two 300px columns don't fit side by side (the panel
   simply clipped them), so stack the card on top of the actions */
@media (max-width: 620px) {
  .menu-cols { flex-direction: column; align-items: center; gap: 14px; }
  .menu-leftcol, .menu-right { width: min(100%, 300px); }
  .menu-left { min-width: 0; width: 100%; box-sizing: border-box; }
  .pc-avatar-big { margin-bottom: 8px; }
}
/* signed-out: no pianist yet — the right column simply centers itself */
/* wardrobe grouped by slot */
.slot-group { margin: 10px auto 2px; max-width: 520px; }
.slot-h {
  font-size: 12px; font-weight: 800; letter-spacing: 2px; opacity: .65;
  text-align: left; margin: 8px 0 6px; text-transform: uppercase;
}
.slot-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.slot-items button {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 4px; border-radius: 12px; cursor: pointer; font: inherit;
  color: #eee; background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.16);
}
.slot-items button:hover { border-color: var(--cyan); }
.slot-items button.equipped { border-color: var(--gold); background: rgba(255,215,94,0.12); }
.slot-items button.cant { opacity: .45; }
.slot-items .sg-emoji { font-size: 28px; }
.slot-items .sg-name { font-size: 11px; font-weight: 700; }
.slot-items .sg-price { font-size: 11px; color: var(--gold); font-weight: 800; }
/* ------------------------------------------------------ admin analytics */
.adm-content { text-align: left; max-height: 62vh; max-height: 62dvh; overflow: auto; padding: 4px 2px; }
.adm-content h3 { margin: 16px 0 6px; font-size: 15px; }
.adm-content h4 { margin: 8px 0 4px; font-size: 13px; opacity: .8; }
.adm-kpis { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-kpi {
  flex: 1 1 120px; min-width: 120px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  display: flex; flex-direction: column; gap: 2px;
}
.adm-kpi b { font-size: 20px; }
.adm-kpi span { font-size: 11px; opacity: .6; text-transform: uppercase; letter-spacing: .05em; }
.adm-kpi em { font-size: 10.5px; opacity: .45; font-style: normal; }
.adm-cols { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.adm-cols > div { flex: 1 1 220px; min-width: 0; }
.adm-table { width: 100%; }
.adm-row { cursor: pointer; }
.adm-row:hover td { background: rgba(255,255,255,.06); }
/* Sortable column headers (Users). The caret is always drawn so the header
   never changes width when the sort moves to it; it is faint until the column
   is the one being sorted, when it points the way the rows are ordered. */
.adm-sort { cursor: pointer; user-select: none; white-space: nowrap; }
.adm-sort:hover { opacity: .9; }
.adm-sort.on { opacity: 1; color: #7fd8ff; }
.adm-arrow { font-size: 9px; margin-left: 4px; opacity: .3; }
.adm-sort.on .adm-arrow { opacity: .9; }
.adm-anon { opacity: .55; font-style: italic; }
/* Runs tab: a signed-in player's name opens their drill-down */
.adm-run-who[data-profile] { cursor: pointer; }
.adm-run-who[data-profile]:hover { text-decoration: underline; }
/* a run that stopped short of the end — quit, failed, or still practising */
.adm-run-partial { color: rgba(255, 171, 46, .9); }
/* a grade off a partial run describes the fragment, not the piece */
.adm-part-grade { color: rgba(255, 171, 46, .9); cursor: help; }
.adm-part-grade sup { font-size: .7em; opacity: .8; }
.adm-bounce {
  background: rgba(255,90,110,.2); color: #ff8c9e; border-radius: 6px;
  padding: 1px 7px; font-size: 11px; font-weight: 700;
}
/* automation signals: amber = worth a look, red = near-certain crawler */
.adm-botflag {
  background: rgba(255,176,32,.2); color: #ffc65c; border-radius: 6px;
  padding: 1px 7px; font-size: 11px; font-weight: 700; cursor: help;
}
.adm-bot-lo td { background: rgba(255,176,32,.07); }
.adm-bot-hi td { background: rgba(255,90,110,.1); }
.adm-src { font-size: 11px; opacity: .7; max-width: 130px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.adm-clusters {
  border: 1px solid rgba(255,176,32,.35); background: rgba(255,176,32,.07);
  border-radius: 10px; padding: 10px 14px; margin: 10px 0;
}
.adm-cluster { font-size: 12px; padding: 3px 0; }
.adm-cluster-n {
  display: inline-block; min-width: 78px; font-weight: 700; color: #ffc65c;
}
/* paged table controls (Visits) — rendered above and below the table */
.adm-pager {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 10px 0; font-size: 12px;
}
.adm-pager .small-btn { margin: 0; padding: 4px 10px; font-size: 12px; }
.adm-pager .small-btn:disabled { opacity: .35; cursor: default; }
.adm-pager label { display: inline-flex; gap: 5px; align-items: center; }
.adm-pager select {
  background: rgba(255,255,255,.08); color: inherit; font: inherit;
  border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 2px 6px;
}
.adm-pager > span { margin: 0 4px; font-variant-numeric: tabular-nums; }
.adm-detail td { background: rgba(0,0,0,.25); font-size: 12px; }
.adm-timeline { font-size: 12px; line-height: 1.9; max-height: 300px; overflow: auto; flex: 2 1 340px; }
.adm-t { display: inline-block; min-width: 52px; opacity: .5; font-variant-numeric: tabular-nums; }
.adm-repeat td { background: rgba(52,211,255,.07); }
/* the quest designer (admin → 📜 Quests): one card per quest_defs row */
.adm-quest { text-align: left; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.adm-quest.off { opacity: .55; }
.adm-quest input, .adm-quest textarea { background: rgba(255,255,255,.08); color: inherit; font: inherit;
  font-size: 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 3px 6px; }
.adm-quest .aq-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.adm-quest .aq-head code { font-size: 12px; opacity: .75; }
.adm-quest .aq-grid { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 8px; }
.adm-quest .aq-grid label, .adm-quest .aq-obj, .adm-quest .aq-lines label { display: flex; flex-direction: column;
  gap: 2px; font-size: 11px; opacity: .95; }
.adm-quest .aq-grid label small { max-width: 170px; }
.adm-quest .aq-obj { margin-bottom: 8px; }
.adm-quest .aq-obj input { width: 100%; }
.adm-quest .aq-lines { display: flex; gap: 10px; flex-wrap: wrap; }
.adm-quest .aq-lines label { flex: 1 1 260px; }
.adm-quest .aq-lines textarea { width: 100%; resize: vertical; }
.adm-user-head { display: flex; gap: 12px; align-items: center; margin: 10px 0; }
.adm-user-head .adm-user-prof { margin: 0 0 0 auto; }
.adm-user-av { width: 64px; }
.adm-msg { max-width: 420px; white-space: pre-wrap; }
.adm-resolved { opacity: .45; }
/* the actions cell holds up to three buttons (✓ resolve · ✉️ reply ·
   ✓ reply & resolve), and .small-btn is display:block with 8px of margin —
   three at that size made the row twice as tall as the report beside it */
.adm-bug-acts { white-space: nowrap; text-align: right; }
.adm-bug-acts .small-btn { margin: 4px 0 4px auto; padding: 6px 13px; font-size: 13px; }
/* --- the two decks (2026-09-01). One switch above the chip row: the chips
   below it are filtered to the deck, so neither row is ever the 18-tab wall
   the panel had grown into. The count on a deck button is the sum of its own
   tabs' queues, so work waiting on the deck you are NOT on stays visible. */
#adm-decks { display: flex; gap: 10px; justify-content: center; margin: 0 0 12px; flex-wrap: wrap; }
.adm-deck { position: relative; flex: 0 1 280px; text-align: left; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 12px 15px; color: #fff; font: inherit; }
.adm-deck b { display: block; font-size: 15px; font-weight: 900; letter-spacing: 1px; }
.adm-deck i { display: block; font-style: normal; font-size: 11.5px; margin-top: 3px;
  color: rgba(255,255,255,.5); }
.adm-deck:hover { border-color: rgba(52,211,255,.5); }
.adm-deck.on { border-color: var(--cyan, #34d3ff);
  background: linear-gradient(180deg, rgba(52,211,255,.22), rgba(52,211,255,.07));
  box-shadow: 0 0 22px rgba(52,211,255,.18); }
/* the queue badges. One rule for the chip row, the deck buttons and the
   Design Gallery tile, so a number means the same thing wherever it appears. */
.adm-chip-n, .adm-deck-n { display: none; background: #ff3b5c; color: #fff;
  font-size: 10.5px; font-weight: 900; border-radius: 999px; padding: 1px 7px;
  margin-left: 6px; vertical-align: 1px; line-height: 1.5; }
.adm-chip-n.on, .adm-deck-n.on { display: inline-block; }
.adm-deck-n { position: absolute; top: 10px; right: 12px; margin: 0; }
.chip.on .adm-chip-n { background: #12131f; }
/* a deck's LANDING is tiles, not chips: a name, what it is for, and its count.
   Three labelled groups of six read as three short lists; the same fifteen as
   chips read as one wall, which is the whole complaint this replaced. */
.adm-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px;
  max-width: 1000px; margin: 0 auto 4px; }
@media (max-width: 780px) { .adm-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .adm-tiles { grid-template-columns: 1fr; } }
.adm-tile { display: flex; gap: 10px; align-items: flex-start; text-align: left;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px; padding: 11px 13px; cursor: pointer; color: #fff; font: inherit; }
a.adm-tile { text-decoration: none; }
.adm-tile:hover { background: rgba(52,211,255,.10); border-color: rgba(52,211,255,.4); }
.adm-tile .ic { font-size: 18px; line-height: 1.1; flex: 0 0 22px; text-align: center; }
.adm-tile .tx { min-width: 0; }
.adm-tile .tx b { display: block; font-size: 13px; font-weight: 750; letter-spacing: .2px; }
.adm-tile .tx i { display: block; font-style: normal; font-size: 11px; margin-top: 3px;
  line-height: 1.4; color: rgba(255,255,255,.5); }
/* the attic: settled benches, folded away */
#adm-settled { margin: 16px auto 0; max-width: 900px; }
#adm-settled > summary { cursor: pointer; list-style: none; text-align: center;
  font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.10); border-radius: 12px; padding: 10px 14px; }
#adm-settled > summary::-webkit-details-marker { display: none; }
#adm-settled > summary::before { content: "▸ "; }
#adm-settled[open] > summary::before { content: "▾ "; }
#adm-settled > summary:hover { color: #fff; border-color: rgba(52,211,255,.4); }
#adm-settled > summary em { font-style: normal; font-weight: 500;
  color: rgba(255,255,255,.32); margin-left: 6px; }
.adm-settled-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 12px 0 4px; }
.adm-settled-row a { text-decoration: none; font-size: 11.5px; font-weight: 600;
  color: rgba(255,255,255,.55); background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07); border-radius: 8px; padding: 6px 10px; }
.adm-settled-row a:hover { color: #fff; border-color: rgba(52,211,255,.4); }
.adm-settled-row a em { font-style: normal; color: rgba(255,255,255,.3);
  font-size: 10.5px; margin-left: 5px; }
.adm-history { margin: 8px auto 0; max-width: 720px; text-align: left; }
.adm-history .ah-row {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); margin-bottom: 5px; font-size: 12.5px;
}
.adm-history .ah-when { font-variant-numeric: tabular-nums; font-weight: 800; white-space: nowrap; }
.adm-history .ah-note { flex: 1; opacity: .75; }
.adm-history .ah-count { opacity: .6; white-space: nowrap; font-variant-numeric: tabular-nums; }
.adm-history .ah-diff { color: var(--orange); font-weight: 700; white-space: nowrap; }
.adm-history .small-btn { margin: 0; }

/* -------------------------------------------------- 🎓 Repertoire: facets
   The tab's older rules (.adm-rep-bar, .adm-rep-row, the piece editor's
   fields) still live in style.css, beside the shop's grade colours they were
   written against; everything added since the split goes here. */
/* admin repertoire facets (2026-09-05): Free Play's chip language, left
   aligned and labelled, because the admin reads them as a form rather than
   browsing a shelf. The row itself is `.filter-bar .chip`, so a chip means
   the same thing on both pages; only the alignment and the width cap change. */
.adm-facets, .adm-facets > #adm-rep-facets {
  display: flex; flex-direction: column; gap: 4px;
}
.adm-facets { margin: 0 0 12px; }
/* the search box is the last facet row but lives OUTSIDE the redrawn block:
   re-rendering an input under the cursor costs the caret */
.adm-facet .adm-rep-bar { margin: 0; flex: 1; min-width: 0; }
.adm-facet { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.adm-facet-h {
  font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255, 255, 255, .45); min-width: 52px; flex: 0 0 52px; text-align: right;
}
.adm-facet .filter-bar {
  margin: 0; max-width: none; justify-content: flex-start; flex: 1;
  gap: 6px; min-width: 0;
}
.adm-facet .filter-bar .chip {
  padding: 4px 11px; font-size: 12px; display: inline-flex; align-items: center; gap: 6px;
}
.adm-facet .filter-bar .chip .chip-n {
  font-size: 9.5px; font-weight: 800; padding: 1px 5px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .7);
}
.adm-facet .filter-bar .chip.on .chip-n { background: rgba(0, 30, 50, .25); color: #003; }
/* a value nothing can reach stays on the row — the ruler is fixed — but stops
   inviting a click */
.adm-facet .filter-bar .chip.empty { opacity: .35; }
.adm-selects { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }
.adm-selects select { max-width: 220px; }

/* the pager: numbers, with the first and last page always reachable */
.adm-pager {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  flex-wrap: wrap; margin: 10px 0 4px;
}
.adm-pager:empty { display: none; }
.adm-pager .mode-btn.sm { min-width: 34px; padding: 5px 10px; }
.adm-pager .mode-btn.on {
  background: var(--cyan); color: #003; border-color: transparent;
}
.adm-pager .mode-btn[disabled] { opacity: .35; cursor: default; }
.adm-pager-gap { opacity: .4; padding: 0 2px; }

/* --- 📈 the analytics deck's graphs (2026-09-11, js/admin-charts.js).
   The palette is the dataviz reference's DARK instance, validated against the
   card surface below (scripts/validate_palette.js --mode dark --surface
   #12131d): the three categorical slots pass every check (worst adjacent CVD
   ΔE 9.4, normal-vision 26.5, all >= 3:1), the four-step funnel ramp passes
   --ordinal. Change a slot here and re-run the validator, never by eye.
   Colors reach the SVG through these variables only; no chart holds a hex. */
#admin-page {
  --viz-surface: #12131d;
  --viz-1: #3987e5;   /* blue   · slot 1 */
  --viz-2: #d95926;   /* orange · slot 2 */
  --viz-3: #199e70;   /* aqua   · slot 3 */
  --viz-ord-1: #86b6ef; --viz-ord-2: #5598e7; --viz-ord-3: #2a78d6; --viz-ord-4: #1c5cab;
  --viz-grid: #232431;
  --viz-axis: #3b3c49;
  --viz-ink: #ffffff;
  --viz-ink-2: #c3c2b7;
  --viz-muted: #8e8d98;
  --viz-good: #2fbf4f;
  --viz-bad: #f07a7a;
}
.adm-dash { display: flex; flex-direction: column; gap: 12px; transition: opacity .15s ease; }
/* a refetch holds the previous render, dimmed — no skeleton, no jump */
.adm-dash.busy { opacity: .45; pointer-events: none; }
.adm-dash .lb-note { margin: 0; }
.adm-dash-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.adm-dash-days { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-dash-days .chip {
  padding: 5px 13px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
  color: #ccc; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.22); border-radius: 20px;
}
.adm-dash-days .chip.on { background: var(--cyan); color: #003; border-color: transparent; }
.adm-dash-mine { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px;
  color: var(--viz-ink-2); cursor: pointer; }

/* stat tiles: label, value, the change against the window before, the trend */
.adm-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.adm-stat {
  min-width: 0; padding: 10px 12px 8px; border-radius: 12px;
  background: var(--viz-surface); border: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; gap: 2px;
}
.adm-stat .l { font-size: 11.5px; color: var(--viz-ink-2); }
.adm-stat .v { font-size: 22px; font-weight: 650; color: var(--viz-ink); line-height: 1.2; }
.adm-stat .v small { font-size: 12px; font-weight: 600; color: var(--viz-muted); margin-left: 2px; }
.adm-stat .d { font-size: 11px; color: var(--viz-muted); line-height: 1.3; }
.adm-stat .d.good { color: var(--viz-good); }
.adm-stat .d.bad { color: var(--viz-bad); }
.adm-stat svg.spark { display: block; width: 100%; height: 28px; margin-top: 4px; overflow: visible; }
.adm-stat svg.spark path { fill: none; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.adm-stat svg.spark path.a { stroke: #4b4c5a; }
.adm-stat svg.spark path.b { stroke: var(--viz-1); stroke-width: 2; }

.adm-viz-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 12px; }
@media (max-width: 520px) { .adm-viz-grid { grid-template-columns: minmax(0, 1fr); } }
.adm-viz-card {
  min-width: 0; padding: 12px 14px 10px; border-radius: 12px;
  background: var(--viz-surface); border: 1px solid rgba(255,255,255,.08);
}
.adm-viz-card.wide { grid-column: 1 / -1; }
.adm-content .adm-viz-card h4 { margin: 0 0 2px; font-size: 13px; font-weight: 700; opacity: 1; color: var(--viz-ink); }
.adm-viz-card .sub { margin: 0 0 8px; font-size: 11.5px; color: var(--viz-muted); }
/* AI cost's chart sits between that tab's filter row and its tables */
.adm-content > .adm-viz-card { margin: 10px 0 4px; }
.adm-viz-empty { margin: 6px 0; font-size: 12px; color: var(--viz-muted); }

.adm-viz-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 6px;
  font-size: 11.5px; color: var(--viz-ink-2); }
.adm-viz-legend i, .adm-viz-tip i {
  display: inline-block; width: 14px; height: 2px; border-radius: 1px;
  vertical-align: middle; margin-right: 6px;
}
.adm-viz-legend i.rect, .adm-viz-tip i.rect { width: 9px; height: 9px; border-radius: 2px; }

.adm-viz-plot { position: relative; min-width: 0; }
.adm-viz-plot svg { display: block; overflow: visible; touch-action: pan-y; }
.adm-viz-plot svg:focus { outline: none; }
.adm-viz-plot svg:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.adm-viz-plot svg text {
  font: 10.5px "Avenir Next", "Segoe UI", system-ui, sans-serif;
  fill: var(--viz-muted); font-variant-numeric: tabular-nums;
}
.adm-viz-plot svg .grid { stroke: var(--viz-grid); stroke-width: 1; }
.adm-viz-plot svg .base { stroke: var(--viz-axis); stroke-width: 1; }
.adm-viz-plot svg .note { stroke: var(--viz-axis); stroke-width: 1; }
.adm-viz-plot svg text.notetxt { fill: var(--viz-ink-2); }
.adm-viz-plot svg .ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
/* a dot carries a 2px ring in the surface color, so it reads where it crosses a line */
.adm-viz-plot svg .dot { stroke: var(--viz-surface); stroke-width: 2; }
.adm-viz-plot svg .cross { stroke: rgba(255,255,255,.3); stroke-width: 1; pointer-events: none; }
.adm-viz-plot svg text.endlab { fill: var(--viz-ink-2); font-size: 11px; }
.adm-viz-plot svg text.val { fill: var(--viz-ink); font-size: 11px; font-weight: 600; }
.adm-viz-plot svg .col { transition: filter .1s ease; }
.adm-viz-plot svg .col.on { filter: brightness(1.35); }

.adm-viz-tip {
  position: absolute; z-index: 5; pointer-events: none; white-space: nowrap;
  padding: 6px 9px; border-radius: 8px; font-size: 11.5px; color: var(--viz-ink-2);
  background: #1d1e2c; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 6px 18px rgba(0,0,0,.45);
}
.adm-viz-tip[hidden] { display: none; }
.adm-viz-tip .hd { display: block; margin-bottom: 3px; color: var(--viz-ink); font-weight: 700; }
.adm-viz-tip .r { display: flex; align-items: center; gap: 6px; line-height: 1.5; }
.adm-viz-tip .r i { margin-right: 0; }
.adm-viz-tip .r strong { color: var(--viz-ink); font-weight: 700; font-variant-numeric: tabular-nums; }

.adm-viz-table { margin-top: 4px; }
.adm-viz-table > summary { cursor: pointer; font-size: 11px; color: var(--viz-muted); width: max-content; }
.adm-viz-table > summary:hover { color: var(--viz-ink-2); }
.adm-viz-table table { margin-top: 6px; font-variant-numeric: tabular-nums; }

/* ranked categories: label, a bar square at its start and round at its end,
   the value at the tip */
.adm-bars { display: flex; flex-direction: column; gap: 6px; }
.adm-bar { display: grid; grid-template-columns: minmax(70px, 44%) minmax(0, 1fr); gap: 10px;
  align-items: center; font-size: 12px; }
.adm-bar .lab { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.adm-bar .lab b { font-weight: 400; color: var(--viz-ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-bar .lab small { font-size: 10.5px; line-height: 1.35; color: var(--viz-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-bar.muted .lab b { color: var(--viz-muted); font-style: italic; }
.adm-bar .trk { display: flex; align-items: center; gap: 7px; min-width: 0; }
.adm-bar .fill { flex: 0 0 auto; height: 14px; min-width: 2px; border-radius: 0 4px 4px 0; }
.adm-bar .fill.stack { display: flex; gap: 2px; background: none; border-radius: 0; }
.adm-bar .fill.stack > i { min-width: 2px; }
.adm-bar .fill.stack > i:last-child { border-radius: 0 4px 4px 0; }
.adm-bar.muted .fill { opacity: .5; }
.adm-bar.divider { margin-top: 5px; padding-top: 10px; border-top: 1px solid var(--viz-grid); }
.adm-bar:hover .fill { filter: brightness(1.3); }
.adm-bar .val { color: var(--viz-ink); font-size: 11.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.adm-bar .val em { color: var(--viz-muted); font-style: normal; margin-left: 5px; }

/* 🛡 Moderators: the player search under the box. Not the mail composer's
   floating dropdown — there is no positioned wrapper here and no form to
   cover, so the hits are simply a short list in the flow. */
.adm-hits {
  display: flex; flex-wrap: wrap; gap: 4px; margin: -4px 0 12px;
  padding: 6px; border-radius: 10px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12);
}
.adm-hits.hidden { display: none; }
.adm-hits button {
  padding: 6px 10px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06); color: inherit; font: inherit; font-size: 13px; cursor: pointer;
}
.adm-hits button:hover:not(:disabled) { background: rgba(255, 255, 255, .14); border-color: var(--gold, #ffd75e); }
.adm-hits button:disabled { opacity: .45; cursor: default; }
.adm-hits button small { opacity: .5; margin-left: 6px; }

/* ---- roles and collections (2026-09-13) ----------------------------------
   The panel is no longer an admin's alone: a REPERTOIRE CONTRIBUTOR opens it
   on 🎓 Repertoire and 🎼 Collections. `.adm-role-off` is what hides every
   other chip and tile from them — a second class beside `.hidden`, which
   switchAdmDeck owns for the deck filter, so the two never fight. It is not
   the security boundary (SQL is); it is what makes the page read as the two
   things they came to do. */
.adm-role-off { display: none !important; }

/* The roster's cells: what the person IS first, then the button that would
   change it, so a column can be read straight down without hovering. */
.adm-role-cell { white-space: nowrap; line-height: 1.5; }
.adm-role-cell .small-btn { margin-top: 2px; }
.small-btn.ghost { opacity: .55; }
.small-btn.ghost:hover { opacity: 1; }
.adm-roles-key td { vertical-align: top; }
.adm-role-pick { padding: 8px 10px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* A collection piece a stranger cannot open would simply vanish from the
   shelf for everyone but its owner, so the row says so before it is saved. */
.adm-suite-bad td { background: rgba(255, 138, 138, .10); }
.adm-warn { color: #ffb4a2; }

/* ⚔️ The Gauntlet's ladder (2026-09-13): the 📜 Quests editor's own dress, since
   it is the same job — one admin-authored row of a table, edited in place. The
   three pieces are a NUMBERED list, because the road's order is most of what is
   being edited. A card with unsaved changes says so on its own edge as well as
   in words: the ladder can be a hundred levels long and a note scrolls away. */
.adm-gx-card { text-align: left; background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.adm-gx-card.dirty { border-left: 3px solid #ffb4a2; }
.adm-gx-card input, .adm-gx-card select, .adm-gx-card textarea {
  background: rgba(255, 255, 255, .08); color: inherit; font: inherit; font-size: 12px;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 6px; padding: 3px 6px; }
.adm-gx-card .small-btn { display: inline-block; margin: 0; padding: 4px 10px; font-size: 12px;
  vertical-align: baseline; }
.adm-gx-h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
.adm-gx-h b { letter-spacing: .6px; }
.adm-gx-pieces { margin: 0 0 8px; padding-left: 22px; }
.adm-gx-pieces li { margin: 4px 0; line-height: 1.9; }
.adm-gx-pieces .small-btn { margin-left: 6px; }
/* the sublevel code (2026-09-14): 1a · 1b · 1c the pieces, 1d the theory game, 1e the boss */
.adm-gx-sub { padding: 1px 5px; border-radius: 4px; font-size: 11px; letter-spacing: .04em;
  color: #e0bd76; background: rgba(224, 189, 118, .12); border: 1px solid rgba(224, 189, 118, .28); }
.adm-gx-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin: 6px 0; }
.adm-gx-row label, .adm-gx-intro { display: flex; flex-direction: column; gap: 2px; font-size: 11px; opacity: .95; }
.adm-gx-row input[type=number] { width: 64px; }
.adm-gx-intro { margin: 8px 0; }
.adm-gx-intro textarea { width: 100%; max-width: 640px; resize: vertical; }
/* a payout row for a level nothing is built on yet: true, and not the point */
.adm-gx-unbuilt td { opacity: .5; }

/* ---- heatGrid: a weekday x hour-block grid, one sequential hue ------------
   The ramp runs dark -> light with rising value (the dark-surface direction:
   "near zero" recedes toward the card, it does not sink under it), four bins
   from the blue ramp's own steps, and every cell carries its number, so the
   colour is a second reading rather than the only one. A 2px surface gap
   between cells is the spacer the fills need to read as separate marks. */
.adm-heat { overflow-x: auto; padding-bottom: 2px; }
.adm-heat-grid {
  display: grid; grid-template-columns: auto repeat(var(--heat-cols), minmax(34px, 96px));
  gap: 2px; min-width: 300px; align-items: stretch;
}
.adm-heat-col, .adm-heat-row, .adm-heat-group {
  font-size: 10.5px; color: var(--viz-muted); font-variant-numeric: tabular-nums;
  display: flex; align-items: center; justify-content: center; white-space: nowrap;
}
.adm-heat-group { color: var(--viz-ink-2); font-size: 10px; letter-spacing: .3px; text-transform: uppercase; }
.adm-heat-row { justify-content: flex-end; padding-right: 6px; color: var(--viz-ink-2); font-weight: 600; }
.adm-heat-corner { }
.adm-heat-cell {
  appearance: none; border: 0; border-radius: 3px; padding: 0; min-height: 26px;
  font: inherit; font-size: 10.5px; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--viz-ink); background: #191a24; cursor: default;
  display: flex; align-items: center; justify-content: center;
}
.adm-heat-cell[data-bin="-1"] { background: #17181f; color: var(--viz-muted); }
.adm-heat-cell[data-bin="0"], .adm-heat-key i[data-bin="0"] { background: #184f95; }
.adm-heat-cell[data-bin="1"], .adm-heat-key i[data-bin="1"] { background: #256abf; }
.adm-heat-cell[data-bin="2"], .adm-heat-key i[data-bin="2"] { background: #5598e7; }
.adm-heat-cell[data-bin="3"], .adm-heat-key i[data-bin="3"] { background: #9ec5f4; }
.adm-heat-cell.pale { color: #0d1a2b; }
.adm-heat-cell:hover, .adm-heat-cell:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
.adm-heat-key { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.adm-heat-key i { width: 22px; height: 9px; border-radius: 2px; display: inline-block; }
.adm-heat-key .lab { font-size: 10.5px; color: var(--viz-muted); }
.adm-heat-key .lab:first-child { margin-right: 2px; }
.adm-heat-key .lab:last-child { margin-left: 2px; }

/* the When tab's own filter bits: a zone segment and the planned-days box */
.adm-when-zone { display: flex; gap: 6px; }
.adm-when-planned { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--viz-ink-2); }
.adm-when-planned input[type="text"] {
  width: 15em; font: inherit; font-size: 12px; padding: 3px 6px; border-radius: 6px;
  background: #0f1017; color: var(--viz-ink-2); border: 1px solid rgba(255,255,255,.12);
}
.adm-when-clocks { font-size: 11px; color: var(--viz-muted); margin: 0; }

/* One member's billing, under the 💳 Subscriptions list (2026-09-14). It is a
   panel INSIDE the tab rather than an overlay on purpose: an admin reads the
   list and the card together — "who is this, and what is Stripe doing" — and a
   modal would hide the row it belongs to. */
.adm-card {
  margin: 10px 0 18px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .03);
}
.adm-card .adm-cols { margin: 8px 0; }
.adm-card h4 { font-size: 13px; letter-spacing: .4px; opacity: .8; }

/* 🧪 A dealt experiment (2026-09-22, js/admin.js renderAdmAbDealt): the status
   pill, knob chips per arm, the policy's verdict box and the decision log */
.adm-ab-pill { font-size: 12px; font-weight: 500; opacity: .85; margin-left: 8px; }
.adm-ab-chip {
  font-size: 11px; padding: 1px 6px; border-radius: 6px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
}
.adm-ab-verdict {
  margin: 10px 0 14px; padding: 10px 14px; border-radius: 10px; font-size: 13px;
  border: 1px solid rgba(120, 200, 255, .35); background: rgba(120, 200, 255, .06);
}
.adm-ab-verdict ul { margin: 6px 0 0 18px; padding: 0; }
.adm-ab-verdict li { margin: 2px 0; color: var(--viz-ink-2); }
.adm-ab-log td:last-child { max-width: 46em; white-space: normal; }
.adm-ab-more summary { cursor: pointer; font-size: 12.5px; color: var(--viz-ink-2); margin: 8px 0; }

/* 🧪 managing experiments (2026-09-22): the overview list, the forms, the knob editor */
.adm-ab-list tr.adm-ab-row { cursor: pointer; }
.adm-ab-list tr.adm-ab-row.on td { background: rgba(120, 200, 255, .08); }
.adm-ab-list td:first-child { width: 1.6em; }
.adm-ab-filters { display: flex; gap: 4px; }
.adm-ab-card h4 { margin: 0 0 6px; font-size: 14px; }
.adm-ab-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.adm-ab-msg { color: #9be29b; }
.adm-ab-err:empty { display: none; }
.adm-ab-arm-btns { white-space: nowrap; }
.adm-ab-arm-btns button { margin-left: 3px; }
.adm-ab-params { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.adm-ab-prow { display: flex; gap: 6px; align-items: center; }
.adm-ab-prow select, .adm-ab-armrow input {
  font: inherit; font-size: 12.5px; padding: 4px 6px; border-radius: 6px;
  background: rgba(255, 255, 255, .07); color: #fff; border: 1px solid rgba(255, 255, 255, .2);
}
.adm-ab-armrow {
  display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap;
  padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, .08);
}
.adm-ab-check { display: inline-flex; gap: 4px; align-items: center; margin: 2px 10px 2px 0; font-size: 12px; }
/* the tab's own buttons are inline and small: the base .small-btn is a
   block with auto margins (a flex row spreads it, a table cell stacks it) */
.adm-ab-actions .small-btn, .adm-ab-card .small-btn, .adm-ab-list .small-btn,
#adm-ab-top .small-btn, #adm-ab-backlog .small-btn {
  display: inline-block; margin: 0; padding: 5px 12px; font-size: 12.5px; font-weight: 500;
}
.adm-ab-arm-btns .small-btn { padding: 2px 8px; font-size: 11px; }
.adm-ab-prow .small-btn, .adm-ab-params .small-btn, .abf-adel { padding: 2px 8px; font-size: 11px; }
