/* ==========================================================================
   SONSY FM 100.1 — Anchor Dashboard
   Dark / yellow / white. Fixed full-viewport layout: the page never scrolls,
   only the list and reader panes do.
   ========================================================================== */

:root {
  --bg:        #08080a;
  --bg-2:      #0f0f13;
  --panel:     #141418;
  --panel-2:   #1b1b21;
  --panel-3:   #232329;
  --line:      #25252c;
  --line-2:    #33333d;
  --text:      #ffffff;
  --text-2:    #c6c6d0;
  --muted:     #85858f;
  --yellow:    #ffd500;
  --yellow-2:  #ffe14d;
  --yellow-dim: rgba(255, 213, 0, 0.13);
  --yellow-ink: #191400;
  --red:       #ff4d4f;
  --green:     #3ddc84;
  --r:         12px;
  --r-sm:      8px;
  --shadow:    0 12px 34px rgba(0, 0, 0, 0.5);
  --font:      "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:      "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --h-top:     62px;
  --h-status:  42px;
  --h-tool:    50px;
  --h-ticker:  36px;
}

* { box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
a { color: var(--yellow); text-decoration: none; }
a:hover { color: var(--yellow-2); text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
::selection { background: var(--yellow); color: var(--yellow-ink); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 9px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #44444f; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }
.hidden { display: none !important; }
.only-mobile { display: none !important; }
.spacer { flex: 1; }

/* ── app shell: one screen, no page scroll ───────────────────────────────── */
.app {
  height: 100dvh;
  display: grid;
  grid-template-rows: var(--h-top) var(--h-status) auto var(--h-tool) minmax(0, 1fr) var(--h-ticker);
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(255, 213, 0, 0.07), transparent 62%),
    radial-gradient(700px 380px at 100% 0%, rgba(255, 213, 0, 0.045), transparent 60%),
    var(--bg);
}

/* Rows are placed explicitly: the banner is often hidden, and a display:none grid
   item would otherwise shift every later row up one track (which once left the main
   region 46px tall). */
.topbar   { grid-row: 1; }
.statusbar{ grid-row: 2; }
#banner   { grid-row: 3; }
.toolbar  { grid-row: 4; }
.main     { grid-row: 5; }
.ticker   { grid-row: 6; }

/* ── header ──────────────────────────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(10px);
  min-width: 0;
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: var(--yellow); color: var(--yellow-ink);
  display: grid; place-items: center; font-weight: 900; font-size: 12px; letter-spacing: 0.3px;
  box-shadow: 0 0 0 3px var(--yellow-dim);
}
.brand-txt { min-width: 0; }
.brand h1 { margin: 0; font-size: 17px; letter-spacing: 0.3px; font-weight: 800; white-space: nowrap; }
.brand h1 span { color: var(--yellow); }
.brand .tag { color: var(--muted); font-size: 10px; margin-top: -1px; text-transform: uppercase; letter-spacing: 1.3px; white-space: nowrap; }

.onair {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 5px 11px; border-radius: 999px; font-weight: 800; letter-spacing: 1.4px; font-size: 11px;
  background: var(--red); color: #fff; box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.18);
}
.onair::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.6s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }

.hdr-timer {
  display: flex; align-items: center; gap: 8px; flex: none;
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 5px 3px 12px;
}
.hdr-timer .ht-disp { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 17px; letter-spacing: 0.5px; color: var(--yellow); min-width: 52px; }
.hdr-timer.warn .ht-disp { color: var(--red); animation: blink 0.9s infinite; }
.hdr-timer.done .ht-disp { color: var(--red); }
.hdr-timer .ht-btns { display: flex; gap: 3px; }
.hdr-timer button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--panel-3); color: var(--text-2); cursor: pointer; font-size: 11px; line-height: 1; }
.hdr-timer button:hover { background: var(--yellow); color: var(--yellow-ink); }

.clock { text-align: right; line-height: 1.05; flex: none; }
.clock .time { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0.5px; color: var(--yellow); }
.clock .time small { font-size: 14px; color: var(--text-2); font-weight: 600; margin-left: 3px; }
.clock .date { color: var(--text-2); font-size: 11.5px; }
.clock .tz { color: var(--muted); font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; }

/* ── status strip ────────────────────────────────────────────────────────── */
.statusbar {
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--bg-2);
  overflow-x: auto; scrollbar-width: none;
}
.statusbar::-webkit-scrollbar { display: none; }
.statusbar .sep { flex: 1; }

.pill {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text-2);
}
.pill.quiet { background: transparent; border-color: transparent; color: var(--muted); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.pill.ok .dot { background: var(--green); box-shadow: 0 0 7px var(--green); }
.pill.err .dot { background: var(--red); box-shadow: 0 0 7px var(--red); }
.pill.warn .dot { background: var(--yellow); box-shadow: 0 0 7px var(--yellow); }

.btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; white-space: nowrap;
  padding: 7px 13px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: var(--panel-2); color: var(--text); font-weight: 600; font-size: 12.5px;
  transition: background 0.13s, border-color 0.13s, color 0.13s;
}
.btn:hover { background: var(--panel-3); border-color: #45454f; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--yellow); color: var(--yellow-ink); border-color: var(--yellow); }
.btn.primary:hover { background: var(--yellow-2); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--panel-2); }
.btn.danger { border-color: rgba(255, 77, 79, 0.45); color: #ffb3b4; }
.btn.sm { padding: 5px 10px; font-size: 11.5px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; flex: none; }
.seg button { border: 0; background: var(--panel-2); color: var(--text-2); padding: 6px 13px; cursor: pointer; font-weight: 600; font-size: 12.5px; }
.seg button:hover { color: var(--text); }
.seg button.active { background: var(--yellow); color: var(--yellow-ink); }

/* ── banner ──────────────────────────────────────────────────────────────── */
.banner {
  margin: 8px 16px 0; padding: 9px 13px; border-radius: var(--r-sm); border: 1px solid;
  font-size: 12.5px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.banner.warn { background: rgba(255, 213, 0, 0.07); border-color: rgba(255, 213, 0, 0.35); color: var(--yellow-2); }
.banner.err { background: rgba(255, 77, 79, 0.07); border-color: rgba(255, 77, 79, 0.4); color: #ffb3b4; }

/* ── toolbar ─────────────────────────────────────────────────────────────── */
.toolbar {
  display: flex; gap: 10px; align-items: center; padding: 0 16px;
  border-bottom: 1px solid var(--line); min-width: 0;
}
.search { position: relative; flex: 0 1 300px; }
.search input {
  width: 100%; padding: 7px 30px 7px 32px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line-2); color: var(--text); outline: none; font-size: 12.5px;
}
.search input:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-dim); }
.search::before { content: "⌕"; position: absolute; left: 12px; top: 5px; font-size: 16px; color: var(--muted); }
.search .clear { position: absolute; right: 8px; top: 6px; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 12px; }
.search .clear:hover { color: var(--text); }

.chips { display: flex; gap: 6px; flex: 1 1 auto; overflow-x: auto; padding: 9px 0; scrollbar-width: none; min-width: 0; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  cursor: pointer; padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; flex: none;
  border: 1px solid var(--line-2); background: var(--panel); color: var(--text-2);
}
.chip:hover { border-color: #50505a; color: var(--text); }
.chip.active { background: var(--yellow); border-color: var(--yellow); color: var(--yellow-ink); }
.chip .n { opacity: 0.65; margin-left: 5px; font-variant-numeric: tabular-nums; }
.toggle { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 12px; cursor: pointer; user-select: none; white-space: nowrap; flex: none; }
.toggle input[type="checkbox"] { accent-color: var(--yellow); width: 15px; height: 15px; }
.toggle input[type="range"] { accent-color: var(--yellow); width: 90px; }
.toggle.sm { font-size: 11px; color: var(--muted); }

/* ── main region ─────────────────────────────────────────────────────────── */
.main { min-height: 0; overflow: hidden; padding: 12px 16px; }

/* ── STUDIO: list + reader ───────────────────────────────────────────────── */
.studio { height: 100%; display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 12px; min-height: 0; }

.listpane, .readpane {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
}
.listhead {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  border-bottom: 1px solid var(--line); background: var(--panel-2);
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); font-weight: 700;
}
.listhead button { margin-left: auto; }
.list { overflow-y: auto; flex: 1; min-height: 0; outline: none; }
.list .group {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 7px;
  padding: 7px 12px; background: linear-gradient(var(--panel-2), var(--panel-2) 70%, rgba(27,27,33,0.85));
  border-bottom: 1px solid var(--line); font-size: 10.5px; font-weight: 800;
  letter-spacing: 1.3px; text-transform: uppercase; color: var(--yellow);
  backdrop-filter: blur(6px);
}
.list .group .n { margin-left: auto; color: var(--muted); font-weight: 700; }

.row {
  display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start;
  padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer;
  border-left: 3px solid transparent; position: relative;
}
.row:hover { background: var(--bg-2); }
.row.sel { background: var(--yellow-dim); border-left-color: var(--yellow); }
.row.read { opacity: 0.42; }
.row.read .row-t { text-decoration: line-through; text-decoration-thickness: 1px; }
.row-t { font-weight: 600; font-size: 13.5px; line-height: 1.32; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-s { color: var(--muted); font-size: 12px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.row-m { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 5px; }
.row .mark {
  background: transparent; border: 1px solid var(--line-2); color: var(--muted);
  width: 26px; height: 26px; border-radius: 7px; cursor: pointer; flex: none; font-size: 12px; line-height: 1;
}
.row .mark:hover { border-color: var(--yellow); color: var(--yellow); }
.row.read .mark { background: var(--yellow); color: var(--yellow-ink); border-color: var(--yellow); }

.tagx {
  font-size: 10px; padding: 2px 7px; border-radius: 999px; font-weight: 700; letter-spacing: 0.5px;
  background: var(--panel-2); border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap;
}
.tagx.cat { color: var(--yellow); border-color: rgba(255, 213, 0, 0.32); background: var(--yellow-dim); }
.tagx.new { background: var(--red); border-color: var(--red); color: #fff; text-transform: uppercase; }
.tagx.time { color: var(--text-2); font-variant-numeric: tabular-nums; }

.empty { color: var(--muted); font-size: 13px; padding: 26px 16px; text-align: center; line-height: 1.6; }
.empty b { color: var(--text-2); }

/* reader pane */
.readpane { position: relative; }
.rp-empty { margin: auto; text-align: center; color: var(--muted); padding: 24px; }
.rp-empty-ico { font-size: 42px; opacity: 0.32; margin-bottom: 10px; }
.rp-empty .hint { font-size: 12px; margin-top: 10px; }
.rp-body { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.rp-head {
  display: flex; align-items: center; gap: 7px; padding: 9px 12px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); background: var(--panel-2);
}
.rp-cat { font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; color: var(--yellow); font-size: 11.5px; }
.rp-scroll { overflow-y: auto; flex: 1; min-height: 0; padding: 22px 30px 30px; scroll-behavior: auto; }
.rp-scroll h2 { margin: 0 0 10px; font-size: 1.55em; line-height: 1.22; color: var(--yellow); }
.rp-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin-bottom: 16px; }
.rp-meta b { color: var(--text-2); }
.rp-text { font-size: var(--rsize, 26px); line-height: 1.55; white-space: pre-wrap; word-wrap: break-word; font-weight: 500; }
.rp-scroll img { max-width: 100%; border-radius: 10px; margin-bottom: 14px; }
.rp-foot {
  display: flex; align-items: center; gap: 10px; padding: 7px 12px;
  border-top: 1px solid var(--line); background: var(--panel-2); color: var(--muted); font-size: 11.5px;
}
.rp-raw { margin-top: 26px; color: var(--muted); font-size: 11.5px; }
.rp-raw pre { background: var(--bg-2); padding: 11px; border-radius: 8px; overflow: auto; font-family: var(--mono); font-size: 11px; color: var(--text-2); max-height: 240px; }
.readpane.prompter .rp-scroll { padding: 30px 9%; }
.readpane.prompter .rp-text { font-size: calc(var(--rsize, 26px) * 1.3); }
.readpane.prompter .rp-meta, .readpane.prompter .rp-raw { display: none; }

/* note / warning blocks inside the reader */
.note { margin-top: 18px; padding: 10px 13px; border-radius: var(--r-sm); font-size: 13.5px; line-height: 1.5; }
.note.y { background: var(--yellow-dim); border: 1px solid rgba(255, 213, 0, 0.3); color: var(--yellow-2); }
.note.g { background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text-2); }
.note b { color: var(--text); }

/* ── BOARD ───────────────────────────────────────────────────────────────── */
/* A wall-display grid: every panel is the same height and fills the screen, and a
   long one scrolls inside itself. Mixing auto rows with per-panel max-heights made
   the browser size rows from uncapped content, which overlapped the row below. */
.board {
  height: 100%; overflow-y: auto; min-height: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  grid-auto-rows: minmax(190px, 1fr);
  gap: 12px; padding-right: 2px;
}
.board .panel { height: 100%; }
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  display: flex; flex-direction: column; overflow: hidden; min-height: 0;
}
.panel-h {
  display: flex; align-items: center; gap: 9px; padding: 10px 12px;
  border-bottom: 1px solid var(--line); background: var(--panel-2); flex: none;
}
.panel-h .ico { font-size: 16px; }
.panel-h h2 { margin: 0; font-size: 12px; letter-spacing: 1.3px; text-transform: uppercase; font-weight: 800; color: var(--yellow); }
.panel-h .count { margin-left: auto; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--yellow-dim); color: var(--yellow); }
.panel-h .count.zero { background: transparent; color: var(--muted); border: 1px solid var(--line-2); }
.panel-b { overflow-y: auto; min-height: 0; }
.panel-b .row { border-left-width: 3px; }

/* ── CLOCK view ──────────────────────────────────────────────────────────── */
.clocks {
  height: 100%; overflow-y: auto; min-height: 0; align-items: start;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 12px; align-content: start;
}
.clockcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.clockcard .ch { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--panel-2); flex-wrap: wrap; }
.clockcard .ch h2 { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: 0.6px; }
.clockcard .ch .sub { color: var(--muted); font-size: 11.5px; }
.badge { font-size: 10.5px; font-weight: 800; letter-spacing: 0.7px; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; }
.badge.ok { background: rgba(61, 220, 132, 0.14); color: var(--green); border: 1px solid rgba(61, 220, 132, 0.35); }
.badge.warn { background: var(--yellow-dim); color: var(--yellow); border: 1px solid rgba(255, 213, 0, 0.35); }
.badge.bad { background: rgba(255, 77, 79, 0.14); color: #ff9b9c; border: 1px solid rgba(255, 77, 79, 0.35); }
.clockbody { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; padding: 14px; align-items: start; }
.wheel { position: sticky; top: 0; }
.wheel { width: 220px; height: 220px; }
.wheel text { font-family: var(--font); }
.slots { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.slot { border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 8px 10px; background: var(--bg-2); }
.slot.hot { border-color: var(--yellow); box-shadow: 0 0 0 2px var(--yellow-dim); }
.slot .sh { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); font-weight: 700; letter-spacing: 0.4px; }
.slot .sh .at { color: var(--yellow); font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 800; }
.slot .sp { color: var(--green); font-size: 10.5px; font-weight: 700; }
.slot ul { margin: 5px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; }
.slot li { font-size: 12.5px; color: var(--text); display: flex; gap: 6px; cursor: pointer; }
.slot li:hover { color: var(--yellow); }
.slot li::before { content: "›"; color: var(--yellow); flex: none; }
.slot .none { font-size: 11.5px; color: var(--muted); font-style: italic; margin-top: 4px; }
.clockcard .warns { padding: 0 14px 12px; color: var(--yellow-2); font-size: 11.5px; }

/* ── ticker ──────────────────────────────────────────────────────────────── */
.ticker {
  background: var(--yellow); color: var(--yellow-ink); display: flex; align-items: center;
  overflow: hidden; font-weight: 700; border-top: 2px solid #ffe870;
}
.ticker .lbl { flex: none; padding: 0 14px; height: 100%; display: flex; align-items: center; background: var(--yellow-ink); color: var(--yellow); letter-spacing: 2px; font-size: 11px; }
.ticker .track { flex: 1; overflow: hidden; white-space: nowrap; }
.ticker .track span { display: inline-block; padding-left: 100%; animation: ticker 55s linear infinite; font-size: 13px; }
.ticker .track:hover span { animation-play-state: paused; }
.ticker .sep { opacity: 0.45; margin: 0 20px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ── tools drawer ────────────────────────────────────────────────────────── */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(370px, 92vw); z-index: 70;
  background: var(--panel); border-left: 1px solid var(--line-2); box-shadow: var(--shadow);
  transform: translateX(100%); transition: transform 0.22s ease;
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.drawer-head h2 { margin: 0; font-size: 12.5px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--yellow); font-weight: 800; }
.drawer-head button { margin-left: auto; }
.drawer-body { overflow-y: auto; padding: 12px 14px 24px; display: flex; flex-direction: column; gap: 18px; }
.dsec h3 { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); font-weight: 800; display: flex; align-items: center; gap: 8px; }
.dsec h3 button { margin-left: auto; }
.dsec .hint { color: var(--muted); font-size: 11px; margin: 5px 0 0; }
.timer-big { font-size: 44px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: 1.5px; color: var(--yellow); text-align: center; line-height: 1; }
.timer-big.warn { color: var(--red); animation: blink 0.9s infinite; }
.dsec .row { display: flex; gap: 6px; justify-content: center; margin-top: 10px; padding: 0; border: 0; }
.presets { display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.drawer textarea {
  width: 100%; min-height: 110px; resize: vertical; padding: 9px; border-radius: var(--r-sm);
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); outline: none; line-height: 1.5; font-size: 13px;
}
.drawer textarea:focus { border-color: var(--yellow); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 12.5px; margin: 0; }
.kv dt { color: var(--muted); margin: 0; }
.kv dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.shortcuts { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; font-size: 12px; color: var(--muted); align-items: center; }
.shortcuts .keys { display: inline-flex; gap: 3px; justify-content: flex-end; }
kbd { font-family: var(--mono); background: var(--panel-2); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; font-size: 11px; color: var(--text); }

.weather-now { display: flex; align-items: center; gap: 12px; }
.weather-now .ico { font-size: 38px; }
.weather-now .big { font-size: 34px; font-weight: 800; color: var(--yellow); line-height: 1; }
.weather-now .big small { font-size: 15px; color: var(--text-2); }
.weather-now .desc { font-weight: 600; font-size: 13px; }
.weather-now .sub { color: var(--muted); font-size: 11px; }
.weather-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.weather-days div { background: var(--bg-2); border-radius: var(--r-sm); padding: 7px; text-align: center; font-size: 11px; }
.weather-days b { display: block; color: var(--yellow); font-size: 13px; }
.weather-days .em { font-size: 18px; }

.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 60; opacity: 0; pointer-events: none; transition: opacity 0.22s; }
.scrim.on { opacity: 1; pointer-events: auto; }

.toast {
  position: fixed; bottom: calc(var(--h-ticker) + 14px); left: 50%; transform: translateX(-50%); z-index: 90;
  background: var(--panel-3); border: 1px solid var(--line-2); color: var(--text);
  padding: 9px 15px; border-radius: 10px; font-size: 12.5px; box-shadow: var(--shadow);
  opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
.toast.show { opacity: 1; }

/* ── responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .studio { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); }
  .clockbody { grid-template-columns: 1fr; }
  .wheel { margin: 0 auto; }
}
@media (max-width: 820px) {
  :root { --h-top: 56px; --h-tool: 46px; }
  .brand .tag, .clock .tz, .clock .date { display: none; }
  .clock .time { font-size: 22px; }
  .hdr-timer { display: none; }
  .studio { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr); }
  /* one pane at a time on small screens */
  .studio.reading .listpane { display: none; }
  .studio:not(.reading) .readpane { display: none; }
  .only-mobile { display: inline-flex !important; }
  .rp-scroll { padding: 16px; }
  .board { grid-template-columns: 1fr; }
  .clocks { grid-template-columns: 1fr; }
  .search { flex: 1 1 140px; }
}
@media (max-width: 560px) {
  .topbar { gap: 8px; padding: 0 10px; }
  .brand-txt, .onair { display: none; }
  .clock .time { font-size: 20px; }
  .clock .time small { display: none; }
  .statusbar, .toolbar { padding: 0 10px; gap: 8px; }
  .toolbar .toggle { display: none; }
  .search { flex: 0 1 130px; min-width: 110px; }
  .main { padding: 10px; }
  #updPill { display: none; }
  .seg button { padding: 6px 10px; }
}
