/* Airtime — cyanotype blue, sodium amber, broadcast-rundown structure. */

:root {
  --ink: #10213F;
  --ink-2: #3B4B68;
  --muted: #5B6B85;
  --line: #D9DFE8;
  --line-soft: #E8ECF2;
  --paper: #F3F5F8;
  --panel: #FFFFFF;

  --prussian: #0F2B5B;
  --prussian-2: #173A76;
  --on-blue: #E8EEF9;
  --on-blue-muted: #9DB0D4;

  --amber: #FFB400;
  --amber-hover: #F2A600;
  --amber-ink: #5C3B00;
  --amber-bg: #FFF2CF;

  --green: #16794F;  --green-bg: #DDF3E8;
  --red: #B8322A;    --red-bg: #FBE3E1;
  --blue: #2458D8;   --blue-bg: #E1EAFD;
  --grey-bg: #E8ECF2;

  --r: 6px;
  --f-display: "Big Shoulders Display", "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-ui: "Instrument Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 15px/1.55 var(--f-ui);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

.ic { width: 20px; height: 20px; flex: none; }

.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--paper); color: var(--muted); z-index: 50; }

/* ---------- buttons & fields ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); font-weight: 600; cursor: pointer;
  text-decoration: none; line-height: 1.2; transition: background .12s, border-color .12s;
}
.btn:hover { background: #F7F9FB; border-color: #C3CCDA; }
.btn.primary { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn.primary:hover { background: var(--amber-hover); border-color: var(--amber-hover); }
.btn.danger { color: var(--red); }
.btn.danger.solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--grey-bg); }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r);
  border: 0; background: transparent; color: inherit; cursor: pointer;
}
.icon-btn:hover { background: rgba(127, 141, 168, .18); }

.stack { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .label { font-weight: 600; font-size: 13px; color: var(--ink-2); }
.field small, .hint { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea, .input {
  width: 100%; padding: 10px 12px; border: 1px solid #C3CCDA; border-radius: var(--r);
  background: #fff; color: var(--ink); min-height: 42px;
}
.field textarea { min-height: 116px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.field input[readonly] { background: var(--paper); color: var(--muted); }
.field .row-between { display: flex; justify-content: space-between; align-items: baseline; }
.counter { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.form-error { color: var(--red); background: var(--red-bg); padding: 10px 12px; border-radius: var(--r); font-size: 14px; }

/* ---------- brand ---------- */

.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font: 800 30px/1 var(--f-display); letter-spacing: .02em; }
.tally { width: 14px; height: 14px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(255, 180, 0, .25); }

/* ---------- signed-out ---------- */

.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.auth-hero {
  background: var(--prussian); color: var(--on-blue);
  padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; gap: 48px; justify-content: space-between;
}
.auth-copy h1 { font: 800 clamp(48px, 6.4vw, 92px)/.92 var(--f-display); letter-spacing: .005em; color: #fff; }
.auth-copy p { margin-top: 20px; max-width: 46ch; color: var(--on-blue-muted); font-size: 17px; }
.auth-panel { display: grid; place-items: center; padding: 32px 24px; }
.auth-box { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 24px; }
.auth-box h2 { font: 700 30px/1.05 var(--f-display); letter-spacing: .01em; }

.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--grey-bg); border-radius: var(--r); padding: 3px; }
.seg button { border: 0; background: transparent; padding: 9px 10px; border-radius: 4px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 33, 63, .12); }

.sample { max-width: 460px; }
.sample-day { font: 700 20px/1 var(--f-display); letter-spacing: .03em; color: var(--on-blue-muted); margin-bottom: 6px; }
.sample .slot-time { color: #fff; }
.sample .slot-title { color: #fff; }
.sample .slot-rail::before { background: rgba(255, 255, 255, .22); }
.sample .slot-rail::after { background: var(--prussian); }
.sample-marks { display: flex; gap: 6px; margin-top: 6px; }
.sample-slot { opacity: 0; animation: slot-in .5s ease-out forwards; }
.sample-slot:nth-of-type(2) { animation-delay: .15s; }
.sample-slot:nth-of-type(3) { animation-delay: .35s; }
.sample-slot:nth-of-type(4) { animation-delay: .55s; }
@keyframes slot-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- signed-in shell ---------- */

.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; background: var(--prussian); color: var(--on-blue);
  padding: 26px 14px 18px; display: flex; flex-direction: column; gap: 32px;
}
.side .brand { padding: 0 10px; color: #fff; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r);
  color: var(--on-blue-muted); text-decoration: none; font-weight: 500;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .1); }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 3px 3px 0; background: var(--amber); }
.nav .count { margin-left: auto; background: var(--amber); color: var(--ink); font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.side-user { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 12px 8px 0 10px; border-top: 1px solid rgba(255, 255, 255, .12); }
.side-user .who { min-width: 0; display: flex; flex-direction: column; }
.side-user b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.side-user small { color: var(--on-blue-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .icon-btn { margin-left: auto; color: var(--on-blue-muted); }
.side-user .icon-btn:hover { color: #fff; }

.view { padding: 40px clamp(20px, 4vw, 56px) 80px; max-width: 1180px; width: 100%; outline: none; }
.page-head { margin-bottom: 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: flex-end; }
.page-head h1 { font: 800 clamp(38px, 5vw, 54px)/.95 var(--f-display); letter-spacing: .005em; }
.page-head p { margin-top: 8px; color: var(--muted); max-width: 60ch; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.panel h2, .section-title { font: 700 26px/1.05 var(--f-display); letter-spacing: .015em; margin-bottom: 14px; }
.section-gap { margin-top: 36px; }

.empty { border: 1px dashed #B5C0D2; border-radius: var(--r); padding: 36px 24px; text-align: center; color: var(--ink-2); background: rgba(255, 255, 255, .55); }
.empty h3 { font: 700 26px/1.1 var(--f-display); letter-spacing: .015em; margin-bottom: 6px; color: var(--ink); }
.empty p { max-width: 46ch; margin: 0 auto 18px; }

/* ---------- pills, marks ---------- */

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 9px 2px 8px; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.pending { background: var(--amber-bg); color: var(--amber-ink); }
.pill.processing { background: var(--blue-bg); color: var(--blue); }
.pill.processing::before { animation: pulse 1.2s ease-in-out infinite; }
.pill.published { background: var(--green-bg); color: var(--green); }
.pill.failed { background: var(--red-bg); color: var(--red); }
.pill.cancelled { background: var(--grey-bg); color: var(--muted); }
@keyframes pulse { 50% { opacity: .25; } }

.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 4px; background: var(--grey-bg); color: var(--ink-2); }
.tag.amber { background: var(--amber-bg); color: var(--amber-ink); }

.mark { display: inline-block; width: 22px; height: 22px; flex: none; }
.mark svg { display: block; width: 100%; height: 100%; }
.mark.lg { width: 34px; height: 34px; }

/* ---------- rundown (the queue) ---------- */

.day-head { font: 700 24px/1 var(--f-display); letter-spacing: .03em; color: var(--ink-2); margin: 30px 0 8px; display: flex; align-items: baseline; gap: 12px; }
.day-head:first-child { margin-top: 0; }
.day-head small { font: 500 13px var(--f-ui); letter-spacing: 0; color: var(--muted); }

.slot { --slot: var(--amber); display: grid; grid-template-columns: 74px 20px minmax(0, 1fr); column-gap: 14px; }
.slot.s-processing { --slot: var(--blue); }
.slot.s-published { --slot: var(--green); }
.slot.s-failed { --slot: var(--red); }
.slot.s-cancelled { --slot: #98A4B9; }
.slot-time { font: 800 36px/1 var(--f-display); letter-spacing: .01em; text-align: right; padding-top: 12px; font-variant-numeric: tabular-nums; }
.slot.s-published .slot-time, .slot.s-cancelled .slot-time { color: var(--muted); }
.slot-rail { position: relative; }
.slot-rail::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--line); }
.slot-rail::after { content: ""; position: absolute; left: 50%; top: 19px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--paper); border: 3px solid var(--slot); }
.day > .slot:first-of-type .slot-rail::before { top: 26px; }
.slot.last .slot-rail::before { bottom: auto; height: 26px; }
.day > .slot.last:first-of-type .slot-rail::before { display: none; }
.slot.s-processing .slot-rail::after { animation: pulse 1.2s ease-in-out infinite; }
.slot-body { padding: 8px 0 20px; min-width: 0; }
.slot-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.slot-title { font-weight: 600; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.slot-sub { color: var(--muted); font-size: 13px; }
.slot-head .btn { margin-left: auto; }

.cues { list-style: none; margin: 10px 0 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.cue { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 4px 12px; padding: 9px 12px; border-top: 1px solid var(--line-soft); }
.cue:first-child { border-top: 0; }
.cue-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cue-name b { font-weight: 600; margin-right: 6px; }
.cue-actions { display: flex; gap: 2px; }
.cue-error { grid-column: 2 / -1; font-size: 13px; color: var(--red); overflow-wrap: anywhere; }
.cue-error.soft { color: var(--muted); }

/* ---------- overview ---------- */

.onair { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 32px; align-items: center; background: var(--prussian); color: #fff; border-radius: var(--r); padding: 26px clamp(20px, 3vw, 36px); }
.onair-time { font: 800 clamp(64px, 9vw, 110px)/.85 var(--f-display); letter-spacing: .005em; font-variant-numeric: tabular-nums; }
.onair-when { color: var(--on-blue-muted); font-size: 14px; margin-top: 8px; }
.onair-title { font: 700 clamp(26px, 3.2vw, 38px)/1.05 var(--f-display); letter-spacing: .01em; overflow-wrap: anywhere; }
.onair-marks { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.onair-count { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--amber); font-weight: 600; }
.onair-count::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }
.onair .btn { border-color: rgba(255, 255, 255, .25); background: transparent; color: #fff; }
.onair .btn:hover { background: rgba(255, 255, 255, .1); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.steps .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--amber); color: var(--ink); flex: none; }
.steps li.done .n { background: var(--green-bg); color: var(--green); }
.steps li.done b { color: var(--muted); font-weight: 500; text-decoration: line-through; }
.steps .btn { margin-left: auto; }

.summary-line { margin-top: 32px; color: var(--muted); }

/* ---------- upload ---------- */

.upload-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.drop { border: 2px dashed #A9B6CC; border-radius: var(--r); background: #fff; padding: 44px 24px; text-align: center; cursor: pointer; transition: border-color .12s, background .12s; min-height: 250px; display: grid; place-items: center; }
.drop:hover, .drop.over { border-color: var(--blue); background: #F5F8FF; }
.drop .ic { width: 44px; height: 44px; color: var(--prussian-2); margin-bottom: 10px; }
.drop strong { display: block; font: 700 28px/1.05 var(--f-display); letter-spacing: .015em; }
.drop span { display: block; margin-top: 6px; color: var(--muted); max-width: 34ch; margin-inline: auto; }
.drop .picked { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.drop .picked b { font-size: 16px; overflow-wrap: anywhere; }
.progress { margin-top: 16px; }
.bar { height: 10px; border-radius: 999px; background: var(--grey-bg); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--amber); border-radius: 999px; transition: width .2s; }
.progress-meta { margin-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.progress-meta .pct { font-weight: 700; color: var(--ink); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 8px; }
.chip { background: var(--blue-bg); color: var(--blue); font-size: 13px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.done-panel { text-align: center; padding: 48px 24px; }
.done-panel .tick { width: 52px; height: 52px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: grid; place-items: center; margin: 0 auto 14px; }
.done-panel h2 { margin-bottom: 6px; }
.done-panel p { color: var(--muted); margin-bottom: 20px; }
.done-panel .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- library ---------- */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.tile-media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: #0B1A36; border: 0; padding: 0; cursor: pointer; overflow: hidden; }
.tile-media video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.tile-media .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.tile-media .play span { width: 46px; height: 46px; border-radius: 50%; background: rgba(15, 43, 91, .78); display: grid; place-items: center; transition: transform .12s, background .12s; }
.tile-media:hover .play span { background: var(--amber); color: var(--ink); transform: scale(1.06); }
.tile-media .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .72); color: #fff; font-size: 12px; font-weight: 600; padding: 1px 6px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.tile-body { padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tile-body h3 { font-size: 16px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.tile-body .meta { font-size: 13px; color: var(--muted); }
.tile-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tile-actions { display: flex; gap: 6px; padding: 0 10px 12px 14px; align-items: center; }
.tile-actions .spacer { margin-left: auto; }

/* ---------- schedule ---------- */

.sched-grid { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 36px; align-items: start; }
.sched-form { position: sticky; top: 24px; }
.acct-pick { display: flex; flex-direction: column; border: 1px solid #C3CCDA; border-radius: var(--r); overflow: hidden; background: #fff; }
.acct-pick label { display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; border-top: 1px solid var(--line-soft); }
.acct-pick label:first-child { border-top: 0; }
.acct-pick label:hover { background: #F7F9FB; }
.acct-pick input { width: 18px; height: 18px; accent-color: var(--prussian-2); flex: none; }
.acct-pick .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-pick .nm small { color: var(--muted); margin-left: 6px; }
.radios { display: flex; flex-direction: column; gap: 8px; }
.radios label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.radios input[type="radio"] { accent-color: var(--prussian-2); width: 18px; height: 18px; }
.tabs { display: inline-flex; gap: 4px; background: var(--grey-bg); padding: 3px; border-radius: var(--r); margin-bottom: 20px; }
.tabs button { border: 0; background: transparent; padding: 7px 14px; border-radius: 4px; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 33, 63, .12); }

/* ---------- accounts ---------- */

.plat { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.plat:first-of-type { border-top: 0; padding-top: 0; }
.plat h2 { font: 700 28px/1 var(--f-display); letter-spacing: .015em; margin: 4px 0 4px; }
.plat p { color: var(--muted); max-width: 62ch; }
.plat-body { grid-column: 2; }
.acct-list { list-style: none; margin: 14px 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.acct-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--line-soft); }
.acct-list li:first-child { border-top: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--blue-bg); color: var(--blue); display: grid; place-items: center; font-weight: 700; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acct-list .btn { margin-left: auto; }
.note { background: var(--amber-bg); color: var(--amber-ink); padding: 12px 14px; border-radius: var(--r); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.note .btn { margin-left: auto; }

.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: start; max-width: 860px; }

/* ---------- modal & toasts ---------- */

.modal { border: 0; padding: 0; border-radius: 8px; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: 0 20px 60px rgba(8, 20, 44, .35); color: var(--ink); background: var(--panel); }
.modal::backdrop { background: rgba(8, 20, 44, .55); }
.modal.wide { width: min(900px, calc(100vw - 32px)); }
.modal-card { padding: 24px; }
.modal-card > h2 { font: 700 28px/1.05 var(--f-display); letter-spacing: .015em; margin-bottom: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.modal video { width: 100%; max-height: 70vh; background: #000; border-radius: var(--r); display: block; }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--r); border-left: 4px solid var(--amber); box-shadow: 0 8px 24px rgba(8, 20, 44, .3); animation: toast-in .18s ease-out; }
.toast.error { border-left-color: #FF6B60; }
.toast.success { border-left-color: #4CD08F; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.skeleton { height: 88px; border-radius: var(--r); background: linear-gradient(90deg, #E6EAF0 25%, #EEF1F6 50%, #E6EAF0 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; margin-bottom: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .sched-grid { grid-template-columns: 1fr; }
  .sched-form { position: static; }
}

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { gap: 28px; }
  .sample { display: none; }
  .upload-grid { grid-template-columns: 1fr; }

  .app { grid-template-columns: 1fr; }
  .side {
    position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; top: auto; height: auto;
    flex-direction: row; padding: 0 0 env(safe-area-inset-bottom); gap: 0; border-top: 1px solid rgba(255, 255, 255, .15);
  }
  .side .brand, .side-user .who { display: none; }
  .nav { flex-direction: row; flex: 1; justify-content: space-around; gap: 0; }
  .nav a { flex-direction: column; gap: 2px; padding: 8px 4px 7px; font-size: 11px; flex: 1; border-radius: 0; position: relative; }
  .nav a[aria-current="page"]::before { left: 20%; right: 20%; top: 0; bottom: auto; width: auto; height: 3px; border-radius: 0 0 3px 3px; }
  .nav .count { position: absolute; top: 3px; left: 54%; margin: 0; font-size: 10px; padding: 0 5px; }
  .side-user { margin: 0; padding: 0 6px; border: 0; }
  .view { padding-bottom: 110px; padding-top: 28px; }
  .toasts { bottom: 84px; right: 12px; }
}

@media (max-width: 560px) {
  .slot { grid-template-columns: 54px 16px minmax(0, 1fr); column-gap: 8px; }
  .slot-time { font-size: 26px; padding-top: 14px; }
  .cue { grid-template-columns: auto minmax(0, 1fr) auto; }
  .cue-actions { grid-column: 2 / -1; }
  .onair { grid-template-columns: 1fr; }
  .plat { grid-template-columns: 1fr; }
  .plat-body { grid-column: 1; }
  .panel { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .sample-slot { opacity: 1; }
}
