/* ===============================
   COMM24 — Sideline Communications
   Path: comms.all24.ca/assets/app.css
   v12
   =============================== */

:root {
  --bg: #000;
  --fg: #fff;
  --muted: #8a929a;
  --accent: #49B2E3;
  --panel: #111214;
  --panel-hi: #1a1c1f;
  --panel-border: rgba(255,255,255,.08);
  --ok: #19c37d;
  --danger: #ea3d3d;
  --warn: #f5a623;
  --tile-grad: linear-gradient(145deg, #151719 0%, #0d0e10 100%);
  --tile-active-grad: linear-gradient(145deg, rgba(73,178,227,.25) 0%, rgba(73,178,227,.10) 100%);
  --tile-border: rgba(255,255,255,.06);
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto;
}
html { position: fixed; width: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

/* ══════════════════════════════
   LOGIN SCREEN
   ══════════════════════════════ */
#loginScreen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  padding: 24px;
}
.login-wrap {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.login-logo {
  width: 280px;
  max-width: 80%;
  height: auto;
  margin-bottom: 4px;
}
.login-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
}
.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.login-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--panel-border);
  border-radius: 12px;
  background: var(--panel);
  color: var(--fg);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
}
.login-input:focus {
  border-color: var(--accent);
}
.login-input::placeholder {
  color: rgba(255,255,255,.25);
}
.login-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, #3a8abf 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}
.login-btn:hover { opacity: .9; }
.login-btn:active { transform: scale(.98); }
.login-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.login-error {
  text-align: center;
  font-size: 13px;
  color: var(--danger);
  min-height: 20px;
}
.login-signup {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.login-signup a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.powered-by {
  margin-top: 16px;
  text-align: center;
  line-height: 1.6;
}
.powered-by .pb-line1 {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}
.powered-by .pb-line1 a {
  color: var(--accent);
  text-decoration: none;
}
.powered-by .pb-line2 {
  display: block;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .3px;
  text-align: center;
}

/* ── Top bar ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  background: linear-gradient(180deg, #0a0a0a 0%, #000 100%);
  border-bottom: 1px solid var(--panel-border);
  flex-shrink: 0;
}
.topbar-brand {
  display: flex;
  align-items: center;
}
.topbar-logo {
  height: 40px;
  width: auto;
}
.topbar-team {
  font-size: 12px;
  color: var(--muted);
  max-width: 35%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-user {
  font-size: 11px;
  color: rgba(255,255,255,.3);
}

/* ── Main layout ── */
.app-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* Make app fill viewport properly */
#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

/* ── Monitor row (above channel grid) ── */
.monitor-row {
  padding: 10px 10px 0;
  flex-shrink: 0;
}

/* ══════════════════════════════
   CHANNEL GRID
   Fills all space between topbar & PTT
   Always 2 columns
   ══════════════════════════════ */
.channel-grid {
  flex: 1;
  min-height: 0;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ── Channel Tile ── */
.channel-tile {
  position: relative;
  background: var(--tile-grad);
  border: 1.5px solid var(--tile-border);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all .25s ease;
  padding: 12px 10px;
  min-height: 0;
  -webkit-touch-callout: none;
  overflow: hidden;
  box-shadow:
    0 2px 8px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.04);
}
.channel-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.03) 0%, transparent 60%);
  pointer-events: none;
}
.channel-tile:active { transform: scale(.97); }

/* ── Active = talking on this channel — BRIGHT solid highlight ── */
.channel-tile.active {
  border-color: #19c37d;
  background: linear-gradient(145deg, rgba(34,232,138,.45) 0%, rgba(25,195,125,.30) 100%);
  box-shadow:
    0 2px 12px rgba(25, 195, 125, .2),
    inset 0 1px 0 rgba(255, 255, 255, .1);
}
.channel-tile.active::before {
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.10) 0%, transparent 60%);
}
.channel-tile.active .tile-name {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}

/* Listening state (not active talk) */
.channel-tile.listening:not(.active) {
  border-color: rgba(25, 195, 125, .2);
}

/* Listening green dot (top-right) */
.channel-tile .listen-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(25, 195, 125, .6);
  display: none;
}
.channel-tile.listening .listen-dot { display: block; }
.channel-tile.active .listen-dot {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(73, 178, 227, .6);
}

/* ── Ear/headphone toggle (top-left) — BRIGHT GREEN when ON ── */
.tile-ear {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .25s;
  padding: 0;
}
.tile-ear svg { width: 14px; height: 14px; }
.tile-ear.on {
  background: rgba(25, 195, 125, .35);
  border-color: rgba(25, 195, 125, .7);
  color: #2eff9a;
  box-shadow: 0 0 8px rgba(25, 195, 125, .2);
}

.tile-name {
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--fg);
}
.tile-count {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  height: 17px;          /* fixed height — no shift when text appears/disappears */
  line-height: 17px;
}

/* Speaker dots on tile */
.tile-dots {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
  height: 12px;           /* fixed height — no shift when dots appear/disappear */
  margin-top: 2px;
  overflow: hidden;
}
.tile-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 6px rgba(25, 195, 125, .5);
  animation: speakPulse 1s ease-in-out infinite;
}

/* ── Info bar (shared fixed slot for status + speakers) ── */
.info-bar {
  height: 28px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.speakers-area {
  padding: 4px 12px;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  align-content: center;
  overflow: hidden;
}
.speaker-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  background: rgba(25, 195, 125, .1);
  border: 1px solid rgba(25, 195, 125, .2);
  border-radius: 16px;
  font-size: 11px;
  color: var(--ok);
  animation: speakPulse 1s ease-in-out infinite;
}
@keyframes speakPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}
.speaker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
}
.speaker-ch {
  font-size: 9px;
  opacity: .55;
}

/* ══════════════════════════════
   PTT AREA
   ══════════════════════════════ */
.ptt-area {
  padding: 10px 16px calc(env(safe-area-inset-bottom, 0px) + 32px);
  border-top: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, #060606 0%, #000 100%);
  flex-shrink: 0;
}

/* PTT + Broadcast button row — keeps PTT centered */
.ptt-btn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
}
/* Invisible spacer mirrors broadcast button width to keep PTT centered */
.ptt-spacer {
  width: 0;
  flex-shrink: 0;
}
.ptt-spacer.visible {
  width: 88px;
}

/* Channel label — hidden, kept for JS reference */
.ptt-channel-label {
  display: none;
}

.ptt-btn {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid var(--muted);
  background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 100%);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: all .15s;
  -webkit-touch-callout: none;
  letter-spacing: .5px;
  box-shadow: 0 4px 16px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
}
.ptt-btn svg { width: 24px; height: 24px; }
.ptt-btn:active,
.ptt-btn.active {
  border-color: var(--danger);
  background: linear-gradient(145deg, rgba(234,61,61,.2) 0%, rgba(234,61,61,.08) 100%);
  color: var(--danger);
  transform: scale(1.08);
  box-shadow: 0 0 24px rgba(234,61,61,.2), 0 4px 16px rgba(0,0,0,.5);
}
.ptt-btn.active svg { color: var(--danger); }
.ptt-btn.toggle-on {
  border-color: var(--danger);
  background: linear-gradient(145deg, rgba(234,61,61,.25) 0%, rgba(234,61,61,.1) 100%);
  color: var(--danger);
  animation: pttGlow 1.2s ease-in-out infinite;
}
@keyframes pttGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(234, 61, 61, .3), 0 4px 16px rgba(0,0,0,.5); }
  50% { box-shadow: 0 0 0 14px rgba(234, 61, 61, 0), 0 4px 16px rgba(0,0,0,.5); }
}

/* Listen All button — cyan/blue */
.la-btn {
  border-color: rgba(56, 189, 248, .4);
  font-size: 8px;
}
.la-btn:active,
.la-btn.active {
  border-color: #38bdf8;
  background: linear-gradient(145deg, rgba(56,189,248,.25) 0%, rgba(56,189,248,.10) 100%);
  color: #38bdf8;
  transform: scale(1.08);
  box-shadow: 0 0 24px rgba(56,189,248,.2), 0 4px 16px rgba(0,0,0,.5);
}
.la-btn.active svg { color: #38bdf8; }

/* Broadcast button — amber/orange to distinguish from PTT red */
.bcast-btn {
  border-color: rgba(245, 166, 35, .4);
  font-size: 8px;
}
.bcast-btn:active,
.bcast-btn.active {
  border-color: var(--warn);
  background: linear-gradient(145deg, rgba(245,166,35,.25) 0%, rgba(245,166,35,.10) 100%);
  color: var(--warn);
  transform: scale(1.08);
  box-shadow: 0 0 24px rgba(245,166,35,.2), 0 4px 16px rgba(0,0,0,.5);
}
.bcast-btn.active svg { color: var(--warn); }
.bcast-btn.toggle-on {
  border-color: var(--warn);
  background: linear-gradient(145deg, rgba(245,166,35,.25) 0%, rgba(245,166,35,.10) 100%);
  color: var(--warn);
  animation: bcastGlow 1.2s ease-in-out infinite;
}
@keyframes bcastGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, .3), 0 4px 16px rgba(0,0,0,.5); }
  50% { box-shadow: 0 0 0 14px rgba(245, 166, 35, 0), 0 4px 16px rgba(0,0,0,.5); }
}

/* Monitor button — full width, matches bottom row */
.monitor-btn {
  width: 100%;
  padding: 7px 0;
  border-radius: 20px;
  border: 1px solid var(--panel-border);
  background: linear-gradient(145deg, #111 0%, #080808 100%);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all .2s;
}
.monitor-btn.on {
  background: linear-gradient(135deg, #22e88a 0%, #19c37d 100%);
  color: #000;
  font-weight: 800;
  border-color: #19c37d;
  box-shadow: 0 0 10px rgba(25, 195, 125, .4);
}

/* Bottom row: PTT/LIVE toggle + channel label + config gear */
.ptt-bottom-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

/* PTT / LIVE toggle — gradient backgrounds */
.ptt-mode-toggle {
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, #111 0%, #080808 100%);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
}
.ptt-mode-opt {
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  transition: all .2s;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: transparent;
}
.ptt-mode-opt.selected {
  background: linear-gradient(135deg, #22e88a 0%, #19c37d 100%);
  color: #000;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255,255,255,.2);
  box-shadow: 0 0 10px rgba(25, 195, 125, .4);
}

.config-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: linear-gradient(145deg, #111 0%, #080808 100%);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.config-btn:hover { border-color: var(--accent); color: var(--accent); }
.config-btn svg { width: 13px; height: 13px; }

/* (Monitor button is now in topbar — see .topbar-monitor) */

/* ── Status banner (inside .info-bar) ── */
.status-banner {
  display: none;
  padding: 4px 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  height: 100%;
  line-height: 20px;
}
.status-banner.connecting { display: block; background: rgba(245,166,35,.12); color: var(--warn); }
.status-banner.connecting + .speakers-area { display: none; }
.status-banner.error { display: block; background: rgba(234,61,61,.12); color: var(--danger); }
.status-banner.error + .speakers-area { display: none; }
.status-banner.connected {
  display: block;
  background: rgba(25,195,125,.08);
  color: var(--ok);
  animation: fadeOut 2s 1s forwards;
}
.status-banner.connected + .speakers-area { display: none; }
@keyframes fadeOut { to { opacity: 0; } }

/* ── Loading ── */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  gap: 16px;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--panel-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Config overlay ── */
.config-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.95);
  flex-direction: column;
}
.config-overlay.open { display: flex; }
.config-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--panel-border);
}
.config-title { font-size: 18px; font-weight: 700; }
.config-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.config-body { flex: 1; overflow-y: auto; padding: 16px; }
.config-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.config-channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--panel-border);
}
.config-channel-name { font-size: 16px; font-weight: 600; }
.config-btn-sm {
  padding: 6px 16px;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}
.config-btn-sm:hover { border-color: var(--accent); color: var(--accent); }
.config-section-sub {
  font-size: 12px; color: rgba(255,255,255,.35); margin: -8px 0 10px;
}
.config-loading { color: rgba(255,255,255,.4); font-size: 12px; padding: 8px 0; }
.config-dim { color: rgba(255,255,255,.3); font-size: 11px; }
.config-role-tag {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  color: rgba(255,255,255,.3); margin-left: 6px;
}
.config-btn-danger-sm {
  padding: 7px 14px; border-radius: 10px;
  border: 1px solid rgba(234,61,61,.3); background: rgba(234,61,61,.06);
  color: var(--danger); font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all .15s;
}
.config-btn-danger-sm:hover { background: rgba(234,61,61,.12); border-color: rgba(234,61,61,.5); }
.config-btn-danger-sm:disabled { opacity: .5; cursor: default; }

/* Coach rows */
.config-coach-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--panel-border);
}
.config-coach-name { font-size: 14px; font-weight: 600; flex: 1; min-width: 0; }
.config-coach-toggles { display: flex; gap: 12px; flex-shrink: 0; }
.config-toggle-pill {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 12px; color: var(--muted);
}
.config-toggle-pill input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--accent);
}
.config-toggle-pill input[disabled] { opacity: .4; cursor: default; }
.config-pill-label { white-space: nowrap; }

/* Player rows with pips */
.player-row {
  display: block; width: 100%; text-align: left;
  padding: 10px 0; border: none; border-bottom: 1px solid var(--panel-border);
  background: none; cursor: pointer; font-family: inherit; transition: background .15s;
}
.player-row:hover { background: rgba(255,255,255,.03); }
.player-row:active { background: rgba(255,255,255,.06); }
.player-row-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.player-row-name { font-size: 14px; font-weight: 600; color: #fff; }
.player-row-count { font-size: 11px; color: var(--muted); }
.player-row-pips { display: flex; gap: 5px; }
.ch-pip {
  width: 8px; height: 8px; border-radius: 50%;
}
.pip-talk { background: var(--accent); }
.pip-listen { background: var(--warn); }
.pip-none { background: rgba(255,255,255,.12); }

.logout-btn {
  padding: 10px 32px;
  border-radius: 12px;
  border: 1px solid rgba(234,61,61,.3);
  background: rgba(234,61,61,.08);
  color: var(--danger);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
}
.logout-btn:hover {
  background: rgba(234,61,61,.15);
  border-color: rgba(234,61,61,.5);
}

/* ── Collapsible config sections ── */
.config-collapse { margin-bottom: 8px; }
.config-collapse-btn {
  background: none; border: none; color: var(--muted);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; cursor: pointer; padding: 0;
  font-family: inherit; display: flex; align-items: center; gap: 6px;
  margin-bottom: 8px;
}
.config-collapse-btn:hover { color: #fff; }
.collapse-arrow { font-size: 9px; transition: transform .2s; display: inline-block; }
.config-collapse-body { overflow: hidden; transition: max-height .4s ease, opacity .3s ease; max-height: 2000px; opacity: 1; }
.config-collapse-body.collapsed { max-height: 0; opacity: 0; pointer-events: none; }
/* ── Player Modal ── */
.pm-backdrop {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(0,0,0,.7); display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity .25s ease;
}
.pm-backdrop.open { opacity: 1; }
.pm-modal {
  background: var(--panel); border-radius: 16px 16px 0 0;
  width: 100%; max-width: 440px; max-height: 85vh;
  display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform .25s ease;
}
.pm-backdrop.open .pm-modal { transform: translateY(0); }
.pm-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--panel-border);
}
.pm-name { font-size: 16px; font-weight: 700; }
.pm-close {
  background: none; border: none; color: var(--muted);
  font-size: 24px; cursor: pointer; padding: 2px 6px; line-height: 1;
}
.pm-body { flex: 1; overflow-y: auto; padding: 12px 16px; }
.pm-ch-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid var(--panel-border);
}
.pm-ch-name { font-size: 14px; font-weight: 600; }
.pm-ch-toggles { display: flex; gap: 14px; }
.pm-toggle {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--muted); cursor: pointer;
}
.pm-toggle input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--accent);
}
.pm-actions {
  display: flex; gap: 8px; padding: 14px 0 4px; flex-wrap: wrap;
}
.pm-action-btn {
  padding: 7px 14px; border-radius: 10px;
  border: 1px solid var(--panel-border); background: rgba(255,255,255,.04);
  color: #fff; font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all .15s;
}
.pm-action-btn:hover { border-color: var(--accent); color: var(--accent); }
.pm-action-danger { color: var(--danger); border-color: rgba(234,61,61,.3); }
.pm-action-danger:hover { border-color: var(--danger); background: rgba(234,61,61,.08); }
.pm-footer {
  padding: 12px 16px; border-top: 1px solid var(--panel-border);
}
.pm-save {
  width: 100%; padding: 12px; border-radius: 12px; border: none;
  background: var(--accent); color: #000; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: opacity .15s;
}
.pm-save:disabled { opacity: .5; }

/* ── Sign-out overlay ── */
.signout-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  animation: signoutFadeIn .3s ease;
}
.signout-text {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
@keyframes signoutFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Utility ── */
.hidden { display: none !important; }

/* ── Responsive ── */
@media (min-width: 500px) {
  .ptt-btn { width: 100px; height: 100px; font-size: 11px; }
  .bcast-btn, .la-btn { font-size: 9px; }
  .ptt-spacer.visible { width: 100px; }
  .ptt-btn svg { width: 28px; height: 28px; }
  .tile-name { font-size: 19px; }
}
@media (min-width: 768px) {
  .monitor-row { max-width: 1200px; margin: 0 auto; padding: 16px 16px 0; }
  .channel-grid { max-width: 1200px; margin: 0 auto; padding: 16px; gap: 14px; }
  .tile-name { font-size: 22px; }
}
