:root{
  --indigo:#171233; --pit:#100C26; --panel:#1F1941; --panel2:#28214F;
  --yolk:#FFC53D; --yolk-deep:#E8A916; --coral:#FF6B5E; --mint:#7FE8C3;
  --cream:#FFF3DC; --cream-dim:#CFC5AC; --ink:#2B2140; --ink-soft:#5A4E78;
  --line:#2E2660; --line2:#3A3170; --dash:#322A63;
  --chrome:rgba(16,12,38,.88);
  --glow1:#2A2058; --glow2:rgba(255,107,94,.10);
  color-scheme:dark;
  --mono:ui-monospace,'SF Mono',Menlo,Consolas,monospace;
  /* Theme-INVARIANT "always looks like paper" colors — deliberately NOT
     redefined under html[data-theme="light"] below. --cream/--ink flip
     per theme by design (they mean "readable foreground on the app's own
     background", which is correct for body text, buttons, form fields —
     anything sitting on --indigo/--panel/--pit). But a few components
     (.sheet, .savebtn, .toast, .acc-list) are meant to always look like a
     physical cream paper card with dark ink on it, regardless of which
     app theme is active, and they used to read --cream/--ink as if those
     literally meant "cream" and "ink" — true only in the dark-theme
     default, where light theme repurposes them for the opposite roles.
     The result: the pick-sheet "paper" rendered as a dark card with light
     text in light theme. Use --paper/--paper-ink for anything that must
     stay paper-colored in both themes. */
  --paper:#FFF3DC; --paper-ink:#2B2140; --paper-ink-soft:#5A4E78;
}
html[data-theme="light"]{
  --indigo:#F4ECD9; --pit:#EDE3CC; --panel:#FDF8EC; --panel2:#F1E7CF;
  --yolk:#C98A12; --yolk-deep:#A96F05; --coral:#D9503F; --mint:#2E8F63;
  --cream:#332A20; --cream-dim:#8A7C63; --ink:#F6EFDF; --ink-soft:#C9B99B;
  --line:#DDD0B2; --line2:#CBBC98; --dash:#D8CAA8;
  --chrome:rgba(244,236,217,.9);
  --glow1:#FFF7E2; --glow2:rgba(201,138,18,.08);
  color-scheme:light;
}
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--pit)}
body{
  font-family:'Outfit',system-ui,sans-serif;color:var(--cream);
  background:
    radial-gradient(1200px 500px at 50% -10%, var(--glow1) 0%, transparent 60%),
    radial-gradient(700px 380px at 85% 8%, var(--glow2), transparent 65%),
    var(--indigo);
  min-height:100vh;font-size:16px;line-height:1.45;
}
h1,h2,h3,.display{font-family:'Fraunces',serif;font-variation-settings:'SOFT' 80,'WONK' 1,'opsz' 60}
a{color:var(--yolk)}
button{font-family:inherit;cursor:pointer}
input,select{font-family:inherit;font-size:16px}
.wrap{max-width:680px;margin:0 auto;padding:0 16px 96px}
.cols{max-width:1400px;margin:0 auto;padding:16px 24px 60px;display:grid;gap:20px;align-items:start}
.coltitle{font-family:'Fraunces',serif;font-size:.9rem;color:var(--cream-dim);text-transform:uppercase;letter-spacing:2px;padding:2px 4px 6px;border-bottom:1px solid var(--line);margin-bottom:2px}
@media (max-width:900px){ .cols{display:none!important} }
@media (min-width:901px){
  #main{display:none}
  nav.tabs{display:none!important}
  body{padding-bottom:0}
}

/* ---------- top bar ----------
   logo | name+league (stacked) | thin bracket label (non-tappable) | theme.
   Logout and the Casual/Official toggle live in Settings now, not here —
   this row only ever has to fit 4 short things, so no wrap/shrink games. */
header{position:sticky;top:0;z-index:50;background:var(--chrome);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.bar{max-width:680px;margin:0 auto;display:flex;align-items:center;gap:10px;padding:12px 16px}
.logo{display:flex;align-items:center;gap:8px;font-family:'Fraunces',serif;font-weight:800;font-size:1.35rem;letter-spacing:.5px;color:var(--yolk);font-variation-settings:'SOFT' 100,'WONK' 1;flex:none;min-width:0}
.logo-icon{width:48px;height:48px;flex:none}
.logo span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.who{margin-left:auto;font-size:.85rem;color:var(--cream-dim);text-align:right;line-height:1.3;min-width:0;flex:1 1 auto}
.who b{color:var(--cream);display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.who .who-league{font-size:.72rem;color:var(--cream-dim);opacity:.8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Shrink before hiding — 460px was catching essentially every phone in
   portrait (375-430px is the common range), not just genuinely cramped
   widths, and vanished the wordmark even when there was slack left over.
   Two shrink steps (icon + text scale down together) buy back room for
   the player name across that whole common range; only below 340px
   (narrower than any current phone — iPhone SE1 is 320, and even that
   still gets ~pocket change of room after the smaller icon) does the
   wordmark text actually disappear, as a last resort. */
@media (max-width:460px){
  .logo{font-size:1.05rem}
  .logo-icon{width:38px;height:38px}
}
@media (max-width:400px){
  .logo{font-size:.9rem}
  .logo-icon{width:32px;height:32px}
}
@media (max-width:340px){ .logo span{display:none} }
.bracket-label{flex:none;font-size:.72rem;font-weight:600;letter-spacing:.4px;color:var(--yolk);opacity:.85;text-transform:uppercase;pointer-events:none;user-select:none}
.linkbtn{background:none;border:none;color:var(--coral);font-size:.8rem;text-decoration:underline;padding:2px 4px}
.switcher{display:flex;gap:4px;flex:none;flex-wrap:wrap}
.switcher-btn{text-decoration:none;border:1px solid var(--line2);border-radius:8px;padding:4px 9px;font-size:.78rem;color:var(--cream-dim)}
.switcher-btn.on{color:var(--yolk);border-color:var(--yolk)}
.switcher select{background:var(--pit);border:1px solid var(--line2);color:var(--cream);border-radius:8px;padding:4px 8px;font-size:.78rem}

/* ---------- tabs ---------- */
nav.tabs{position:fixed;bottom:0;left:0;right:0;z-index:50;display:flex;background:var(--chrome);backdrop-filter:blur(10px);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}
nav.tabs button{flex:1;background:none;border:none;color:var(--cream-dim);padding:13px 4px 11px;font-size:.85rem;font-weight:600;letter-spacing:.4px;border-top:2px solid transparent}
nav.tabs button.on{color:var(--yolk);border-top-color:var(--yolk)}

/* ---------- cards / panels ---------- */
.panel{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:16px;margin:14px 0}
.panel h2{font-size:1.25rem;margin-bottom:8px;overflow-wrap:anywhere}
/* Live section lost the top-of-page slot to "Just played" (game numbering
   reads top-to-bottom now) — this halo carries the "this one's urgent"
   signal instead of position. Dark theme: a yolk-tinted border plus a soft
   glow, subtle by design — it has to read as "pay attention here" without
   competing with the pill/button colors inside the row itself. That same
   low-alpha glow is invisible in light theme — a soft bloom only reads
   against a dark ground, and against the light theme's near-white --panel
   a 45%-alpha border barely differs from the plain --line border next to
   it (confirmed by screenshotting both side by side). Light theme instead
   uses a solid border plus a top-down tinted wash — verified in a real
   light-theme render, not just by eye on the values. */
.panel.live-halo{border-color:rgba(255,197,61,.55);box-shadow:0 0 18px 1px rgba(255,197,61,.16)}
html[data-theme="light"] .panel.live-halo{
  border-color:var(--yolk-deep);
  border-width:2px;
  background:linear-gradient(180deg, rgba(169,111,5,.10), var(--panel) 65%);
  box-shadow:0 3px 12px rgba(169,111,5,.22);
}
.muted{color:var(--cream-dim);font-size:.88rem}
.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pill{display:inline-block;font-family:var(--mono);font-size:.75rem;padding:3px 10px;border-radius:999px;border:1px solid var(--line2);color:var(--cream-dim)}
.pill.live{border-color:var(--coral);color:var(--coral);animation:pulse 1.6s infinite}
.pill.open{border-color:var(--mint);color:var(--mint)}
.pill.locked{border-color:var(--yolk);color:var(--yolk)}
.pill.final{border-color:#6C61A8;color:#9A8FD6}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.45}}
.showrow{display:flex;gap:12px;align-items:center;padding:13px 4px;border-bottom:1px dashed var(--dash)}
.showrow:last-child{border-bottom:none}
.showrow.unavailable{opacity:.5}
/* A season's last show keeps this row's own dashed border-bottom unless
   something removes it — :last-child only fires when this row is truly
   the panel's last element, which it usually isn't once .season-end
   follows it. .season-last beats plain .showrow on specificity alone
   (two classes vs. one), so this doesn't depend on declaration order the
   way a same-specificity rule (like :last-child) would. */
.showrow.season-last{border-bottom:none}
/* Switched from var(--mono) to Outfit (already loaded for body text, no
   new font weight to add) at a light weight with tight tracking, and
   min-width dropped 74px -> 46px, sized to the widest realistic date
   ("Oct 22", two-digit day) rather than a cherry-picked short one — a
   real phone-width complaint, mono's fixed-width digits plus the wide
   ", " were reserving more of the row than the date actually needed,
   squeezing venue/pill text into wrapping. .v needs no change itself:
   it's already flex:1, so it grows into whatever .date stops reserving. */
.showrow .date{font-family:'Outfit',system-ui,sans-serif;font-weight:300;letter-spacing:-.02em;color:var(--yolk);font-size:.85rem;min-width:46px;display:flex;flex-direction:column;align-items:flex-start;gap:3px}
/* Weekday now stacks above month/day instead of running inline before it
   ("Thu, Aug 6" -> "THU" / "Aug 6") — same information, narrower column. */
.showrow .date .wk{font-size:.6rem;font-weight:600;opacity:.75;letter-spacing:.6px}
.showrow .v{flex:1;min-width:0}
/* Venue/city text comes from The Carton's API and its length is out of our
   control — a long name with no spaces (one real bug already shipped this
   way) can't wrap and otherwise blows out the row width, dragging the whole
   page into horizontal scroll. overflow-wrap:anywhere breaks it instead. */
.showrow .v .venue{font-weight:600;overflow-wrap:anywhere}
.showrow .v .loc{font-size:.82rem;color:var(--cream-dim);overflow-wrap:anywhere}
/* Winner trophy+names+points, its own line under city/pill — used to be
   an inline style, pulled into a real class alongside .venue/.loc while
   resizing it (bigger text, smaller trophy) for the same reason those two
   get dedicated rules instead of ad hoc styling. */
/* Plain inline flow, not flex — flex treated the trophy SVG and the name
   text as two separate items, so a long multi-way tie on a real (narrow)
   phone wrapped the WHOLE text item onto its own line under the trophy
   instead of wrapping naturally word-by-word with the trophy staying
   attached to the first name, the way normal inline text + icon does. */
.showrow .v .win-line{color:var(--yolk);font-size:1rem;margin-top:4px}
.showrow .v .win-line svg{vertical-align:middle;margin-right:4px}
.showrow button{background:var(--panel2);color:var(--cream);border:1px solid var(--line2);border-radius:10px;padding:8px 12px;font-size:.82rem;font-weight:600;flex:none;min-width:62px}
/* Game-number sequence marker — lives in the (otherwise mostly-empty)
   vertical space under the date rather than competing with the venue name
   or the "locks in" pill for horizontal room; a "Game N" text label tried
   first and measurably lost that fight at phone width. */
.showrow .gamenum{flex:none;width:20px;height:20px;border-radius:50%;border:1px solid var(--line2);color:var(--cream-dim);font-family:var(--mono);font-size:.68rem;display:flex;align-items:center;justify-content:center}
/* Pick-status marker — went through two floating-badge layouts (a 26px
   circle, then a 20px one, then a stacked column) before landing here:
   riding inside the Pick/View button's own label costs zero extra row
   width at all, which neither earlier version could say. Plain colored
   text, no circle/border/background needed once it's part of the button
   rather than a separate element floating in the row. */
.pickmark{font-weight:800}
/* A bare, default-weight ✓ nearly vanished against the button's dark
   --panel2 fill in dark mode — bumped to a heavier glyph (✔ not ✓) at a
   larger size so a fully-picked show still reads as a real, deliberately
   green button, not a shrunken leftover once "Pick" drops off it. */
.pickmark.done{color:var(--mint);font-weight:900;font-size:1.05rem}
/* .warn is the one state that outranks a complete save: a draft sitting in
   localStorage means something isn't on the server yet, even if the last
   save was a full sheet — worse than plain "incomplete," so it gets its
   own glyph (! not ✓) rather than sharing .progress's checkmark. Both read
   fine in --yolk against the button's --panel2 background in either theme,
   so no light-theme override is needed here (unlike the badge version). */
.pickmark.progress,.pickmark.warn{color:var(--yolk)}
/* .warn is always circled — no bare-exclamation state exists anywhere in
   the design, so this is unconditional on the class rather than a
   separate modifier. A bare "!" alone on its own small stacked line read
   as too faint to be deliberate; the checks don't have that problem bare
   (a self-contained glyph either way), so they're untouched.
   border:currentColor picks up whatever color .warn already set, no
   separate per-state border rule needed. */
.pickmark.warn{width:18px;height:18px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;border:1px solid currentColor;font-size:.72rem}
/* Stacked — label on its own line, marker on a smaller line beneath,
   instead of sharing one line with it. Pins the button's width to the
   label alone; the marker can only add height, never width, so it can't
   reopen this row's recurring crowding problems. Used whenever there's
   a label AND a marker together (amber/warn); a bare label with nothing
   to mark, or a fully-done sheet's bare checkmark with no label at all,
   both stay a single line — nothing to stack. */
.showrow button.stacked{display:flex;flex-direction:column;align-items:center;gap:3px;line-height:1.1;padding:6px 12px}
.showrow button.stacked .pickmark{font-size:.72rem}
.showrow button.stacked .pickmark.warn{font-size:.62rem;width:16px;height:16px}
/* Quiet — Live's surviving marker (amber-only; done and warn never reach
   here, see pickButtonInfo) is de-emphasized relative to Upcoming's same
   marker: informational there, not the actionable thing. */
.showrow button.stacked.quiet .pickmark{opacity:.62;font-size:.66rem}
.season-break{font-family:'Fraunces',serif;font-weight:700;font-size:1.05rem;color:var(--mint);border-bottom:1px solid var(--line);padding:14px 2px 6px;margin-top:8px}
/* Bottom-of-season marker — a standalone sibling element after the last
   show, mirroring how .season-break marks the top as its own element
   rather than a modifier on the first row. Same weight/color as
   .season-break's own rule (not its mint TEXT color) — deliberately
   nothing heavier or colored differently; the two are meant to read as a
   matched pair. */
.season-end{border-top:1px solid var(--line);margin:10px 2px 2px}

/* ---------- admin show row (Shows & cutoffs panel) ----------
   Stacked, not a single flex row like .showrow: the admin row packs a
   datetime input plus up to 3 buttons alongside date+venue, which overlaps
   in a single unwrapped row (this shipped broken once already). Line 1:
   date+venue, wraps. Line 2: cutoff input, full width. Line 3: buttons,
   their own flex row that wraps. */
.arow{padding:13px 4px;border-bottom:1px dashed var(--dash)}
.arow:last-child{border-bottom:none}
.arow-head{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}
.arow-head .date{font-family:var(--mono);color:var(--yolk);font-size:.85rem}
.arow-head .venue{font-weight:600;overflow-wrap:anywhere;min-width:0}
.cutoff-in{display:block;width:100%;margin:8px 0;background:var(--pit);border:1px solid var(--line2);color:var(--cream);border-radius:8px;padding:6px 8px;font-size:.8rem;box-sizing:border-box}
.arow-btns{display:flex;gap:8px;flex-wrap:wrap}
.arow-btns button{background:var(--panel2);color:var(--cream);border:1px solid var(--line2);border-radius:10px;padding:8px 12px;font-size:.82rem;font-weight:600}

/* ---------- the setlist card (signature) ---------- */
.sheet{position:relative;background:var(--paper);color:var(--paper-ink);border-radius:6px;padding:26px 22px 22px;margin:22px 6px;box-shadow:0 14px 40px rgba(0,0,0,.5), 0 2px 0 rgba(0,0,0,.2);transform:rotate(-.5deg)}
.sheet::before,.sheet::after{content:'';position:absolute;width:86px;height:26px;background:rgba(120,120,128,.55);top:-12px;transform:rotate(-4deg);left:14%;box-shadow:inset 0 0 6px rgba(0,0,0,.25)}
.sheet::after{left:auto;right:12%;transform:rotate(5deg)}
.sheet h2{font-size:1.5rem;font-variation-settings:'SOFT' 100,'WONK' 1;margin-bottom:2px;overflow-wrap:anywhere}
.sheet .sub{font-family:var(--mono);font-size:.78rem;color:var(--paper-ink-soft);margin-bottom:16px;text-transform:uppercase;letter-spacing:1px;overflow-wrap:anywhere}
/* position:relative anchors the absolutely-positioned .unsaved marker
   (below) — everything else here is normal flex flow. */
.slotline{position:relative;display:flex;align-items:baseline;gap:10px;margin:14px 0}
/* Sized to its own text (flex:none = never grow, never shrink from its
   content width), not a shared min-width — the slot-label set is now a
   fixed, known vocabulary (src/core/slotTypes.js), so a row using a short
   label ("Opener") isn't taxed for a long one ("Set 2 Opener") elsewhere
   in the same sheet. white-space:nowrap keeps a two/three-word label from
   wrapping onto its own second line; the input (flex:1, min-width:0)
   is what absorbs the space difference between rows, not the label. */
.slotline label{font-family:'Fraunces',serif;font-weight:700;font-size:1rem;flex:none;white-space:nowrap}
.slotline .pts{font-family:var(--mono);font-size:.95rem;font-weight:700;color:var(--paper-ink);border:2px solid var(--paper-ink);border-radius:999px;padding:2px 10px;white-space:nowrap}
/* Ranked rows have no label, so the points bubble takes the leading position
   the label held: [5] [song input…]. The markup order stays input → .pts in
   both modes; only this rule moves it, so the DOM is one shape.
   --paper-ink, not --cream or --ink: this sits on the theme-invariant cream
   sheet, where app-wide tokens flip with the theme and disappear — CLAUDE.md
   documents three separate bugs from exactly that. */
.slotline.ranked .pts{order:-1}
.slotline input{flex:1;min-width:0;background:transparent;border:none;border-bottom:2px dashed var(--paper-ink-soft);color:var(--paper-ink);padding:4px 2px;font-size:1rem;font-family:'Outfit'}
.slotline input:focus{outline:none;border-bottom-color:var(--yolk-deep);border-bottom-style:solid}
/* Unlocked-padlock marker: pairs with the save button's "Lock 'em in"
   copy — the icon and the button describe the same state from opposite
   ends. A line-icon SVG (picks.js's UNLOCKED_ICON), not the 🔓 emoji — at
   this size the emoji's open-shackle detail (the only thing distinguishing
   it from just "a padlock") disappears, so it read as locked regardless of
   which codepoint it actually was. `currentColor` picks up the --paper-
   ink-soft set here — this sheet is the theme-invariant cream paper card,
   so --yolk/--coral (which flip with the app theme) would be wrong here.
   position:absolute, not a flex sibling — it used to cost its own width
   PLUS a flex `gap` on every row, all the time, even clean (measured:
   ~28px/row). Floating it into the sheet's own right padding (which is
   otherwise empty space) reclaims that permanently instead of just
   shrinking it, and it's even more shift-proof than the old flex slot was:
   fully out of flow, so appearing/disappearing truly cannot move a
   sibling, ever. */
.slotline .unsaved{position:absolute;right:-20px;top:50%;transform:translateY(-50%);width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center;opacity:0;color:var(--paper-ink-soft);pointer-events:none}
.slotline.dirty .unsaved{opacity:1}
/* Hidden until the sheet has at least one dirty slot (toggled on .sheet
   itself, not per-button, since it has to reflect the whole sheet). Sits
   under the date line at the TOP of the card, deliberately far from
   .savebtn at the bottom — a quiet text link, not a second button
   competing with "Lock 'em in" for attention. */
.sheet .revertlink{display:none;background:none;border:none;color:var(--paper-ink-soft);font-size:.78rem;text-decoration:underline;padding:0;margin:2px 0 0;cursor:pointer}
.sheet.dirty .revertlink{display:inline-block}
.sheet .divider{border-top:1px solid rgba(43,33,64,.2);margin:18px 0 6px;padding-top:10px;font-family:var(--mono);font-size:.72rem;color:var(--paper-ink-soft);letter-spacing:1px;text-transform:uppercase}
/* "The Rules" companion card — same .sheet paper treatment (cream stock,
   tape corners, shadow, rotation), just a second instance below the pick
   sheet, so it reads as a companion page rather than a different
   component. Paper tokens only throughout, same reason as everything
   else inside .sheet: this sits on the theme-invariant paper card, not
   the app's own flipping theme. Term column sizes to its own content
   (flex:none) rather than a shared min-width, same reasoning already
   applied to .slotline label above — a short term ("Encore") shouldn't
   be taxed for a long one ("Set 2 Closer") elsewhere in the same list. */
.rules-sheet .ruledef{display:flex;align-items:baseline;gap:10px;padding:8px 0;border-bottom:1px dashed rgba(43,33,64,.15)}
.rules-sheet .ruledef:last-child{border-bottom:none}
.rules-sheet .rd-term{font-family:'Fraunces',serif;font-weight:700;flex:none;white-space:nowrap;color:var(--paper-ink)}
.rules-sheet .rd-desc{flex:1;min-width:0;color:var(--paper-ink-soft);font-size:.92rem}
.rules-sheet .rulenote{font-size:.75rem;margin:14px 0 0;color:var(--paper-ink-soft)}
/* Admin-authored bracket-wide extra rules — paper tokens throughout, same
   reason as everything else in this card. */
.rules-sheet .customrules{list-style:disc;margin:4px 0 0;padding-left:22px}
.rules-sheet .customrules li{color:var(--paper-ink);font-size:.92rem;margin:6px 0}
/* Deliberately varied from .sheet's own tilt/tape — identical placement
   on two stacked sheets read as one component rendered twice, not two
   pages taped up separately. Kept small (a couple degrees, a few % of
   position, a few px of width) so it reads as the same hand at a
   different moment, not a different design. Fixed values, not random —
   a card that shifts angle on every render would be distracting rather
   than natural. */
.rules-sheet{transform:rotate(.6deg)}
.rules-sheet::before{width:78px;top:-10px;left:19%;transform:rotate(-7deg)}
.rules-sheet::after{width:92px;top:-13px;right:17%;transform:rotate(3deg)}
.savebtn{width:100%;margin-top:18px;background:var(--paper-ink);color:var(--paper);border:none;border-radius:10px;padding:14px;font-size:1.05rem;font-weight:700;font-family:'Fraunces',serif;letter-spacing:.5px}
.savebtn:disabled{opacity:.45}
.countbig{font-family:var(--mono);text-align:center;margin:6px 0 0;font-size:.85rem;color:var(--paper-ink-soft)}
.countbig b{color:var(--coral)}
/* Official-only sheet decoration — simply the last thing in .sheet, after
   .err, in normal document flow. Nothing needs to wrap around it on
   multiple sides (unlike earlier corner/margin drafts), so no absolute
   positioning or reserved padding is needed — it just can't overlap
   earlier content, since block layout stacks strictly top-to-bottom.
   aspect-ratio matches the SVG's own viewBox (520/260) exactly, so
   preserveAspectRatio="none" scales x/y uniformly at any width instead of
   distorting the leaves at narrow phone widths. */
.laurel-spray{width:100%;aspect-ratio:520/260;margin-top:10px}
.laurel-spray svg{width:100%;height:100%;display:block;overflow:hidden}

/* ---------- leaderboard ---------- */
/* Arrangement WITHIN the boxed row is a traditional centered podium
   (standings.js's arrangePodium: a lone best tier centers and rises above
   flanking lower tiers, a 2-way tie for best flanks instead with the
   runner-up centered at normal height, a 3-way tie renders level) — this
   rule just centers that arrangement as a whole block in the panel.
   .podium-wrap stacks the boxed row (if any) over the compact-tier columns
   (if any); either can be empty. */
.podium-wrap{display:flex;flex-direction:column;gap:12px;margin:8px 0 16px}
.podium{display:flex;gap:28px;justify-content:center;align-items:flex-end;flex-wrap:wrap;margin:0}
.pod{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:.85rem}
.pod.first b{font-size:1rem}
/* A tier that would push the boxed row past PODIUM_ROW_MAX (standings.js's
   compactPodiumTiers) collapses to one column instead: icon on top, names
   stacked one per line underneath — no per-player box, no elevation. Each
   name gets its own line at any width, unlike a comma-joined line, which
   is what this replaced (that wrapped mid-list at a width-dependent point
   instead of a name boundary). Multiple compact tiers (rare) sit as
   side-by-side columns, not stacked rows, to read as siblings of the boxed
   trophies above rather than a separate list. */
.podium-compact{display:flex;justify-content:center;gap:24px;flex-wrap:wrap}
.pod-col{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:.85rem}
.pod-names{display:flex;flex-direction:column;align-items:center;gap:1px}
/* standings.js shrinks the trophy/numeral px size on narrow viewports to
   match — this just tightens the gap between boxes to go with it, so 3
   boxes (even 2 elevated + 1 not) reliably fit one row on a real phone
   instead of the third wrapping to its own line. The second band
   (901-1279px) is the equivalent fix for desktop's OWN narrowest real
   width, on the #cols grid rather than .wrap — same 8px value, reused
   rather than invented, because desktop's icon sizing in that band
   (standings.js's desktopNarrow branch) was chosen assuming this same
   tightened gap; widening it back to 28px here without shrinking the
   icons further would just reopen the wrap this pairing exists to close. */
@media (max-width:420px), (min-width:901px) and (max-width:1279px){ .podium{gap:8px} }
.lb{width:100%;border-collapse:collapse}
.lb td,.lb th{padding:10px 8px;text-align:left;border-bottom:1px dashed var(--dash)}
.lb th{font-size:.72rem;text-transform:uppercase;letter-spacing:1px;color:var(--cream-dim);font-weight:600}
.lb .rank{font-family:var(--mono);color:var(--yolk);width:36px}
.lb .pts{font-family:var(--mono);text-align:right;font-size:1.05rem}
.lb.compact td,.lb.compact th{padding:8px 5px;font-size:.85rem}
.lb.compact .pts{font-size:.9rem}
.lb tr.me td{background:rgba(255,197,61,.07)}

/* ---------- setlist + results ---------- */
.songrow{display:flex;gap:10px;padding:7px 2px;border-bottom:1px dashed var(--dash);align-items:baseline}
.setbreak{font-family:var(--mono);font-size:.68rem;letter-spacing:2px;text-transform:uppercase;color:var(--yolk);border-bottom:1px solid var(--line);padding:12px 2px 4px;margin-top:4px}
.songrow .pos{font-family:var(--mono);font-size:.72rem;color:var(--cream-dim);min-width:44px}
.songrow.hitmine{background:linear-gradient(90deg,rgba(255,197,61,.14),transparent);border-radius:6px}
.songrow.hitmine .name{color:var(--yolk);font-weight:700}
/* Segue marker from Carton's own transition text (">"/"->") — appended to
   the song's own line, not a separate row. */
.songrow .segue{color:var(--yolk);opacity:.75;font-weight:700}
.songrow .debut{font-family:var(--mono);font-size:.68rem;letter-spacing:1px;color:var(--mint);font-weight:700}
.pickres{display:flex;gap:8px;align-items:baseline;padding:5px 0;font-size:.9rem}
.pickres .sl{font-family:var(--mono);font-size:.7rem;color:var(--cream-dim);min-width:64px;text-transform:uppercase}
.pickres .pt{margin-left:auto;font-family:var(--mono)}
.pickres.hit .pt{color:var(--mint)}
.pickres.miss{opacity:.55}

/* ---------- forms / auth / admin ---------- */
.field{margin:12px 0}
.field label{display:block;font-size:.8rem;color:var(--cream-dim);margin-bottom:5px;letter-spacing:.4px}
.field input,.field select{width:100%;background:var(--pit);border:1px solid var(--line2);border-radius:10px;color:var(--cream);padding:11px 12px}
.btn{background:var(--yolk);color:#221A0A;border:none;border-radius:10px;padding:12px 18px;font-weight:700;font-size:.95rem}
.btn.ghost{background:var(--panel2);color:var(--cream);border:1px solid var(--line2)}
.btn.small{padding:7px 12px;font-size:.8rem}
.btn:disabled{opacity:.5}
/* .btn.ghost's --panel2/--cream/--line2 are app-surface colors — dropped
   onto .sheet's paper card (renderIneligible's "Switch to Casual"), light
   theme's --panel2 is nearly the same pale cream as the paper itself, so
   the button read as barely-there against its own card even though its
   text stayed technically legible. Different failure than the plain-text
   cases elsewhere in .sheet (a component blending into its background,
   not text vanishing into it) but the same root cause: an app-wide token
   used somewhere that doesn't flip with the app theme. Same specificity
   as .btn.ghost (two classes) — placed after it in the file so this wins
   the tie regardless of which rule anyone edits next; a future .btn
   dropped into .sheet is covered too, not just this one call site. */
.sheet .btn{background:transparent;color:var(--paper-ink);border:1px solid var(--paper-ink)}
.err{color:var(--coral);font-size:.85rem;margin-top:8px;min-height:1.2em}
.admin-slot{display:flex;gap:8px;margin:6px 0;flex-wrap:wrap}
.admin-slot input,.admin-slot select{background:var(--pit);border:1px solid var(--line2);border-radius:8px;color:var(--cream);padding:8px 10px;font-size:.85rem}
.admin-slot select.k,.admin-slot input.k{flex:1 1 130px;min-width:0}.admin-slot input.p{width:64px;font-family:var(--mono)}
.admin-slot input.rule-text{flex:1 1 auto;min-width:0}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}

/* ---------- toasts ---------- */
#toasts{position:fixed;top:64px;left:50%;transform:translateX(-50%);z-index:99;width:min(92vw,420px);display:flex;flex-direction:column;gap:8px}
.toast{background:var(--paper);color:var(--paper-ink);border-radius:12px;padding:12px 14px;font-weight:600;box-shadow:0 10px 30px rgba(0,0,0,.5);border-left:6px solid var(--yolk);animation:drop .35s cubic-bezier(.2,1.4,.4,1)}
.toast.score{border-left-color:var(--mint)}
@keyframes drop{from{transform:translateY(-16px);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion: reduce){*{animation:none!important;transition:none!important}}
.autocomplete{position:relative}
.acc-list{position:absolute;top:100%;left:0;right:0;background:var(--paper);border-radius:0 0 10px 10px;box-shadow:0 12px 28px rgba(0,0,0,.35);z-index:30;max-height:210px;overflow:auto}
.acc-list div{padding:9px 12px;color:var(--paper-ink);font-size:.92rem;border-bottom:1px solid rgba(43,33,64,.08);cursor:pointer}
.acc-list div small{color:var(--paper-ink-soft);font-family:var(--mono);float:right}
.acc-list div:hover,.acc-list div.sel{background:var(--yolk);color:#221A0A}
.hidden{display:none!important}

/* ---------- ineligible pick sheet / roster banner ----------
   The reason is the point of the panel, not a footnote — bump it up out of
   .muted's dim secondary-text treatment. Calm (full-contrast ink, matching
   the surrounding .sheet paper card), not alarming (no coral/red) — it's an
   explanation, not an error. Always sits on the cream .sheet paper
   regardless of app theme, so it uses --paper-ink (the sheet's own,
   theme-invariant text color) — NOT --ink, which despite the name is a
   theme-flipping variable repurposed as light-theme's foreground color and
   would go cream-on-cream there; that exact mismatch is what --paper-ink
   was introduced to fix (see :root in this file). */
.ineligible-reason{font-size:1.05rem;line-height:1.5;color:var(--paper-ink);text-align:center;margin:18px 0}
.noticebox{background:var(--panel);border:1px solid var(--yolk);border-radius:14px;padding:14px 16px;margin:14px 0;font-size:.95rem;line-height:1.5}

/* ---------- settings / credits ---------- */
.credits{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
.credits p{margin:8px 0;font-size:.82rem;color:var(--cream-dim);line-height:1.5}
.credits a{color:var(--cream-dim);text-decoration:underline}
.credits .merch-plug{color:var(--yolk);font-size:.92rem;font-weight:600}
.credits .merch-plug a{color:var(--yolk)}
.credits .colophon{margin-top:12px}
.colophon-foot{text-align:center;padding:20px 0 4px;font-size:.6rem;color:var(--cream-dim);opacity:.35}
