/* Podium layout: shared by the commissioner podium (/podium/) and the public Main podium (/main/). */
.stage { display: flex; flex-direction: column; gap: 14px; padding: 0 28px 24px; }
  .stadium { background: radial-gradient(ellipse at 50% -10%, rgba(200,16,46,.22), transparent 55%), linear-gradient(180deg, rgba(6,7,10,.86), rgba(6,7,10,.95)), url(/img/stadium.jpg) left center / cover no-repeat; }
  header { height: 84px; flex-shrink: 0; margin: 0 -28px; padding: 0 28px; display: flex; align-items: center; gap: 18px; background: linear-gradient(180deg, rgba(5,6,9,.96), rgba(5,6,9,.8)); border-bottom: 1px solid var(--line); }
  header img { height: 52px; width: auto; display: block; }
  header .t { font-family: var(--os); font-weight: 600; font-size: 34px; letter-spacing: 1px; }
  .chip { font-family: var(--os); font-weight: 500; font-size: 14px; letter-spacing: 3px; color: var(--gold); border: 1px solid var(--line); padding: 4px 10px; border-radius: 3px; }
  .conn { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--dim); }
  header nav { display: flex; gap: 8px; }
  header nav { flex-shrink: 0; }
  header .t { white-space: nowrap; }
  header nav a, header nav button { white-space: nowrap; }
  header nav a { font-family: var(--os); font-size: 15px; letter-spacing: 1.5px; text-decoration: none; padding: 8px 11px; border: 1px solid var(--edge2); border-radius: 4px; color: var(--ink); }
  header nav a:hover, header nav button:hover { border-color: var(--line); }
  header nav button.endb { border-color: #4A2A30; color: #F0A0AA; }
  header nav button[hidden] { display: none; }
  header nav button { font-family: var(--os); font-size: 15px; letter-spacing: 1.5px; padding: 8px 11px; border: 1px solid var(--edge2); border-radius: 4px; background: transparent; }
  .mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-height: 300px; overflow-y: auto; padding-right: 4px; }
  .mt { position: relative; height: 112px; border: 1px solid var(--edge2); border-radius: 4px; background: #0A0B0E; overflow: hidden; padding: 0; }
  .mt img { width: 100%; height: 100%; object-fit: contain; display: block; }
  .mt .x { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(6,7,10,.85); color: var(--ink); font-size: 16px; }
  .mt small { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 6px; background: rgba(6,7,10,.8); font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mt .pin { position: absolute; left: 4px; top: 4px; right: 40px; padding: 2px 6px; border-radius: 3px; background: var(--gold); color: #12151A; font-family: var(--os); font-weight: 600; font-size: 11px; letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pinned { display: flex; flex-direction: column; gap: 6px; max-height: 210px; overflow-y: auto; }
  .pinned .sec { font-family: var(--os); font-size: 14px; letter-spacing: 3px; color: var(--gold); }
  .prow { display: grid; grid-template-columns: 64px minmax(0,1fr) 44px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 6px 12px 6px 6px; text-align: left;
    background: var(--field); border: 1px solid var(--edge); border-radius: 4px; }
  .prow:hover { border-color: var(--line); }
  .prow img { width: 64px; height: 40px; object-fit: cover; border-radius: 3px; }
  .prow b { font-size: 17px; font-weight: 600; } .prow .pos { font-size: 15px; }
  .prow small { font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .prow em { font-style: normal; font-size: 13px; color: var(--dim); }
  .pinrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
  .pinrow label { flex-basis: 100%; font-size: 16px; color: var(--dim); } .pinrow label b { color: var(--gold); }
  .pinrow input { flex: 1; min-width: 0; min-height: 48px; padding: 0 12px; background: var(--field); border: 1px solid var(--line); border-radius: 4px; font-size: 18px; }
  .pinrow .btn { min-height: 48px; }
  .mprev { display: flex; align-items: center; justify-content: center; height: 400px; background: #0A0B0E; border: 1px solid var(--line); border-radius: 6px; }
  .mprev img { max-width: 100%; max-height: 100%; object-fit: contain; }
  .tog { display: flex; align-items: center; gap: 14px; }
  .switch { width: 64px; height: 36px; flex-shrink: 0; border: 0; border-radius: 18px; position: relative; background: #262A31; }
  .switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); transition: left .15s; }
  .switch[aria-checked="true"] { background: var(--red); } .switch[aria-checked="true"]::after { left: 32px; }
  #where { font-family: var(--os); font-weight: 600; font-size: 28px; letter-spacing: 1px; white-space: nowrap; text-align: right; }
  #body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; }

  /* Drafting */
  .top { height: 150px; flex-shrink: 0; display: flex; gap: 14px; }
  .oc { width: 700px; flex-shrink: 0; display: flex; align-items: center; gap: 26px; padding: 0 26px; }
  .oc .who { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
  #ocTeam { font-family: var(--os); font-weight: 600; font-size: 30px; line-height: 1.05; }
  .oc .who span { font-size: 15px; color: var(--dim); }
  .oc .clk { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
  #ocClock { font-family: var(--os); font-weight: 600; font-size: 76px; line-height: 1; letter-spacing: 2px; font-variant-numeric: tabular-nums; color: var(--gold); }
  #ocClock.low { color: var(--red-hi); } #ocClock.paused { color: var(--dim); }
  .track { width: 230px; height: 5px; background: #23262C; } #ocBar { height: 5px; background: var(--red); } #ocBar.low { background: var(--red-hi); }
  #ocNote { font-family: var(--os); font-weight: 600; font-size: 14px; letter-spacing: 3px; color: var(--red-hi); min-height: 17px; }
  .un { width: 330px; flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 22px; }
  .un .k { font-family: var(--os); font-weight: 500; font-size: 15px; letter-spacing: 3px; color: var(--red-hi); }
  .un div { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
  .un div b { font-family: var(--os); font-weight: 600; font-size: 18px; color: var(--gold); width: 26px; }
  .un div span { font-size: 16px; font-weight: 600; }
  .sel { flex: 1; min-width: 0; display: flex; align-items: center; gap: 20px; padding: 0 24px; }
  .sel .info { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
  .sel .info b { font-family: var(--os); font-weight: 600; font-size: 32px; line-height: 1.05; }
  .sel .meta { font-family: var(--os); font-weight: 600; font-size: 17px; letter-spacing: 1px; }
  .sel .help { font-size: 18px; color: var(--dim); }
  .av { width: 84px; height: 84px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden;
        background: radial-gradient(circle at 50% 35%, #3A3D44, #121418 75%); font-family: var(--os); font-weight: 600; font-size: 30px; box-shadow: 0 0 0 3px var(--gold); }
  .av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }

  .mid { flex: 1; min-height: 0; display: flex; gap: 14px; }
  .list { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; }
  .search { display: flex; gap: 12px; align-items: center; }
  .search label { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; background: var(--field); border: 1px solid var(--edge); border-radius: 4px; }
  .search input { flex: 1; min-width: 0; background: transparent; border: 0; font-size: 17px; outline: none; }
  .search input::placeholder { color: var(--mute); }
  .search .count { font-family: var(--os); font-size: 15px; letter-spacing: 2px; color: var(--dim); }
  .filters { display: flex; gap: 8px; flex-wrap: wrap; }
  .filters button { min-height: 40px; min-width: 54px; padding: 0 16px; border-radius: 20px; font-family: var(--os); font-weight: 500; font-size: 16px; letter-spacing: 1px; background: var(--field); border: 1px solid var(--edge2); }
  .filters button[aria-pressed="true"] { background: var(--red); color: #fff; border-color: var(--red-hi); }
  .cols, .pr { display: grid; grid-template-columns: 70px minmax(0, 1fr) 90px 110px; gap: 10px; align-items: center; }
  .cols { padding: 0 14px; font-family: var(--os); font-size: 13px; letter-spacing: 2px; color: var(--mute); }
  .cols button { background: none; border: 0; padding: 0; font: inherit; letter-spacing: inherit; color: inherit; text-align: left; }
  .cols button[aria-pressed="true"] { color: var(--gold); }
  .cols button:last-child { text-align: right; }
  .rows { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding-right: 4px; }
  .pr { min-height: 50px; padding: 0 14px; border-radius: 4px; background: var(--field); border: 1px solid #1C1E23; text-align: left; }
  .pr:hover { border-color: var(--edge2); }
  .pr[aria-pressed="true"] { background: linear-gradient(90deg, rgba(200,16,46,.55), rgba(200,16,46,.18)); border-color: var(--red-hi); }
  .pr .rk { font-family: var(--os); font-size: 18px; color: var(--dim); }
  .pr .nm { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
  .pr .nm b { font-size: 18px; font-weight: 600; }
  .pr .nm small { font-size: 14px; color: var(--mute); white-space: nowrap; }
  .pr .nm .q { font-family: var(--os); font-size: 13px; letter-spacing: 1px; color: var(--gold); border: 1px solid var(--line); border-radius: 3px; padding: 0 5px; }
  .pr .pos { font-size: 17px; }
  .pr .adp { font-family: var(--os); font-size: 18px; color: var(--dim); text-align: right; }
  .more { padding: 10px 14px; color: var(--mute); font-size: 15px; }

  .side { width: 640px; flex-shrink: 0; display: flex; flex-direction: column; gap: 14px; }
  .roster { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; padding: 14px 18px; }
  .roster .hd { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .roster label { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; font-family: var(--os); font-weight: 600; font-size: 15px; letter-spacing: 2px; color: var(--dim); }
  .roster select { flex: 1; min-width: 0; min-height: 40px; padding: 0 10px; background: var(--field); border: 1px solid var(--line); border-radius: 4px; font-family: var(--os); font-size: 16px; letter-spacing: 1px; color: var(--ink); }
  .roster option { background: var(--field); }
  .roster .n { font-family: var(--os); font-size: 16px; color: var(--gold); }
  .roster .note { font-size: 13px; color: var(--blue); min-height: 16px; }
  .slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; align-content: start; }
  .slot { display: flex; align-items: center; gap: 10px; min-height: 30px; border-bottom: 1px solid #1C1E23; }
  .slot > span:first-child { font-family: var(--os); font-size: 14px; letter-spacing: 1px; color: var(--dim); width: 52px; flex-shrink: 0; }
  .slot b { flex: 1; font-size: 15px; font-weight: 600; }
  .slot b.none { color: #4A4E56; font-weight: 500; }
  .remotes { height: 250px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; padding: 14px 18px; }
  .remotes .hd { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--os); }
  .remotes .hd b { font-weight: 600; font-size: 16px; letter-spacing: 2px; } .remotes .hd span { font-size: 15px; color: var(--dim); }
  .rlist { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
  .rm { display: flex; align-items: center; gap: 10px; min-height: 34px; }
  .rm b { font-size: 16px; font-weight: 600; flex: 1; }
  .rm span { font-size: 14px; color: var(--dim); } .rm span.on { color: var(--good); }
  .remotes small { font-size: 12px; color: var(--mute); }

  .bottom { height: 84px; flex-shrink: 0; display: flex; gap: 12px; }
  .bottom .btn { font-size: 21px; letter-spacing: 1.5px; white-space: nowrap; padding: 0 12px; }
  #confirmBtn { width: 420px; font-size: 28px; letter-spacing: 3px; }
  .last { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 18px; background: var(--panel); border: 1px solid var(--edge); border-radius: 4px; }
  .last span { font-family: var(--os); font-size: 13px; letter-spacing: 2px; color: var(--dim); } .last b { font-size: 16px; font-weight: 600; }

  /* Setup */
  .setup { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.1fr 1fr .8fr; gap: 14px; }
  .setup .panel { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; min-height: 0; }
  .setup h2 { margin: 0; font-family: var(--os); font-weight: 600; font-size: 24px; letter-spacing: 3px; }
  .setup p { margin: 0; font-size: 17px; line-height: 1.45; color: var(--dim); }
  .tl { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
  .tr { display: grid; grid-template-columns: 36px minmax(0,1fr) 80px 120px; gap: 12px; align-items: center; min-height: 52px; padding: 0 12px; background: var(--field); border: 1px solid #1C1E23; border-radius: 4px; }
  .tr .n { font-family: var(--os); font-size: 18px; color: var(--gold); }
  .tr b { font-size: 17px; font-weight: 600; } .tr small { display: block; font-size: 14px; color: var(--dim); }
  .tr .pin { font-family: var(--os); font-size: 26px; letter-spacing: 4px; color: var(--gold-hi); text-align: center; }
  .tr .st { font-size: 14px; color: var(--dim); display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
  .btnrow { display: flex; gap: 10px; flex-wrap: wrap; }
  .big { min-height: 72px; font-size: 26px; letter-spacing: 3px; }
  .field { display: flex; flex-direction: column; gap: 8px; }
  .field span { font-family: var(--os); font-size: 15px; letter-spacing: 2px; color: var(--dim); }
  .field select { min-height: 48px; padding: 0 12px; background: var(--field); border: 1px solid var(--line); border-radius: 4px; font-family: var(--os); font-size: 20px; color: var(--ink); }
  .facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 17px; }
  .facts dt { font-family: var(--os); letter-spacing: 2px; color: var(--dim); } .facts dd { margin: 0; font-weight: 600; }
  .welcome { flex: 1; display: flex; align-items: center; justify-content: center; }
  .welcome .panel { width: 860px; display: flex; flex-direction: column; gap: 22px; padding: 40px 46px; }
  .welcome h1 { margin: 0; font-family: var(--os); font-weight: 600; font-size: 46px; letter-spacing: 2px; }
  .welcome p { margin: 0; font-size: 20px; line-height: 1.5; color: var(--dim); }
  .danger { margin-top: auto; border-top: 1px solid var(--edge); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
  .danger .btn { border-color: #4A2A30; color: #F0A0AA; font-size: 17px; min-height: 42px; }

/* Roster rows: bye week and the commissioner's replace (−) button */
.slot .bye { font-family: var(--os); font-size: 12px; letter-spacing: 1px; color: var(--mute); white-space: nowrap; }
.slot .swap { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--edge2); background: transparent; color: var(--dim); font-size: 18px; line-height: 1; padding: 0; }
.slot .swap:hover { border-color: var(--red-hi); color: var(--red-hi); }
.view .chip { color: var(--blue); border-color: #2C4A6B; }

/* Race results on the podium, filling in as managers cross the line */
.racelist { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.racelist .rr { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 12px; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 4px; background: var(--field); border: 1px solid #1C1E23; color: var(--mute); }
.racelist .rr b { font-family: var(--os); font-size: 20px; }
.racelist .rr.in { border-color: var(--line); color: var(--ink); animation: landIn .4s ease-out; }
.racelist .rr.in b { color: var(--gold); } .racelist .rr small { color: var(--dim); font-size: 14px; }

/* Saved rolls under the draft order: small tiles, four across */
.rolls { display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.rollgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; max-height: 236px; overflow-y: auto; }
.roll { background: var(--field); border: 1px solid #23262D; border-radius: 4px; padding: 6px 8px; min-width: 0; }
.roll.now { border-color: var(--gold); }
.roll b { display: block; font-family: var(--os); font-weight: 600; font-size: 12px; letter-spacing: 1.5px; color: var(--gold); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roll ol { margin: 0; padding: 0; list-style: none; font-size: 11.5px; line-height: 1.3; color: var(--ink); }
.roll li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 3px; }
.roll li i { font-style: normal; color: var(--dim); text-align: right; font-variant-numeric: tabular-nums; }
.racelist.tight .rr { min-height: 33px; } .racelist.tight .rr b { font-size: 18px; } .racelist.tight { gap: 3px; }
