:root {
  --bg: #f0f4f8;
  --bg-raised: #ffffff;
  --card: #ffffff;
  --card-hover: #f7f9fc;
  --primary: #0369a1;
  --primary-hover: #0c4a6e;
  --primary-soft: #e0f2fe;
  --text: #1a2233;
  --text-secondary: #5a6a7a;
  --border: #dfe4ea;
  --border-light: #edf0f4;
  --danger: #dc2626;
  --success: #22c55e;
  --warning: #f59e0b;
  --info: #0369a1;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── Login ── */
#login-view {
  display: flex; justify-content: center; align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1f36 0%, #2d3561 50%, #4f46e5 100%);
}
.login-card {
  background: #fff; padding: 48px 40px; border-radius: 20px;
  border: none; width: 100%; max-width: 420px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.1);
}
.login-logo {
  display: flex; align-items: center; gap: 2px;
  margin-bottom: 28px;
}
.login-logo-mark {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #0369a1, #0284c7);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: white; letter-spacing: -0.5px;
}
.login-logo-text {
  margin-left: 10px; font-size: 1.05rem; font-weight: 700; color: #1a2233;
  line-height: 1.2;
}
.login-logo-text span { display: block; font-size: 0.72rem; font-weight: 500; color: #6b7a90; letter-spacing: 0.02em; }
.login-card h1 { font-size: 1.5rem; margin-bottom: 6px; font-weight: 700; color: #1a2233; }
.login-card p { color: #6b7a90; margin-bottom: 28px; font-size: 0.9rem; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 8px; font-size: 0.85rem; color: #6b7a90; }
.form-group input {
  width: 100%; padding: 12px 14px; background: #f5f7fa;
  border: 1px solid #dfe4ea; border-radius: var(--radius-sm);
  font-size: 0.95rem; color: #1a2233; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(3,105,161,0.12); }
.form-group input::placeholder { color: #a0aec0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border: none; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.btn-primary { background: linear-gradient(135deg, #0369a1, #0284c7); color: white; width: 100%; }
.btn-primary:hover { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(3,105,161,0.3); }
.btn-sm { padding: 7px 14px; font-size: 0.78rem; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); }
.btn-sync { background: linear-gradient(135deg, #059669, #10b981); color: white; gap: 6px; }
.btn-sync:hover { opacity: 0.92; box-shadow: 0 2px 8px rgba(16,185,129,0.3); }
.btn-sync:disabled { opacity: 0.5; cursor: not-allowed; }
.error-msg { color: var(--danger); font-size: 0.85rem; margin-top: 10px; display: none; }

/* ── Header ── */
.header {
  background: #ffffff; border-bottom: 1px solid var(--border);
  padding: 14px 0; position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.header-inner {
  max-width: 1900px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.header-left { display: flex; align-items: center; gap: 14px; }
.header-brand {
  display: flex; align-items: center; gap: 9px;
}
.header-logo {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #0369a1, #0284c7);
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800; color: white; letter-spacing: -0.5px;
}
.header-wordmark {
  font-size: 1rem; font-weight: 700; color: var(--text); line-height: 1.15;
}
.header-wordmark span {
  display: block; font-size: 0.62rem; font-weight: 500;
  color: var(--text-secondary); letter-spacing: 0.06em; text-transform: uppercase;
}
.header h1 { font-size: 1.1rem; font-weight: 700; }
.sync-area { display: flex; align-items: center; gap: 10px; }
.sync-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; color: var(--text-secondary);
  background: #f5f7fa; padding: 4px 10px;
  border-radius: 20px; border: 1px solid var(--border);
}
.sync-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); display: inline-block; }
.sync-progress {
  width: 80px; height: 6px; background: #edf0f4;
  border-radius: 3px; border: 1px solid var(--border);
  overflow: hidden; position: relative;
}
.sync-progress-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #0369a1, #0284c7);
  transition: width 1s linear;
  width: 0%;
}
.sync-countdown {
  font-size: 0.68rem; color: var(--text-secondary);
  min-width: 32px;
}
.header-actions { display: flex; gap: 8px; align-items: center; }

/* ── Header Toolbar ── */
.header-toolbar {
  max-width: 1900px; margin: 0 auto; padding: 8px 24px 0;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.toolbar-controls { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.stat-pills { display: flex; gap: 5px; }
.stat-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 20px; font-size: 0.72rem;
  border: 1px solid var(--border); background: var(--card);
  color: var(--text-secondary); cursor: pointer; transition: all 0.15s;
  font-weight: 500; white-space: nowrap;
}
.stat-pill:hover { border-color: var(--primary); color: var(--primary); }
.stat-pill.active { background: var(--primary); color: white; border-color: var(--primary); }
.stat-pill strong { font-weight: 700; color: var(--text); }
.stat-pill.active strong { color: white; }
.stat-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.stat-dot.live { background: #22c55e; }
.stat-dot.soon { background: #f59e0b; }
.stat-dot.warn { background: #dc2626; }
.stat-pill.stat-live.has-active { border-color: #22c55e; background: #e9f9ef; }
.stat-pill.stat-live.has-active strong { color: #1a5c37; }
.stat-pill.stat-soon.has-active { border-color: #f59e0b; background: #fef8e7; }
.stat-pill.stat-soon.has-active strong { color: #6b5300; }
.stat-pill.stat-warn { border-color: #dc262640; }
.stat-pill.stat-warn strong { color: #dc2626; }
.header-filter-bar {
  max-width: 1900px; margin: 0 auto; padding: 6px 24px 2px;
}

/* ── Dark Mode ── */
body.dark {
  --bg: #0f172a; --bg-raised: #1e293b; --card: #1e293b; --card-hover: #253449;
  --primary: #38bdf8; --primary-hover: #0ea5e9; --primary-soft: #0c4a6e;
  --text: #f1f5f9; --text-secondary: #94a3b8;
  --border: #334155; --border-light: #2d3a4d;
  --danger: #ef4444; --success: #22c55e; --warning: #f59e0b; --info: #06b6d4;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3); --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
}
body.dark .header { background: #1e293b; }
body.dark .login-card { background: #1e293b; }
body.dark .login-card h1 { color: #f1f5f9; }
body.dark .login-card p { color: #94a3b8; }
body.dark .login-logo-text { color: #f1f5f9; }
body.dark .login-logo-text span { color: #94a3b8; }
body.dark .form-group input { background: #0f172a; border-color: #334155; color: #f1f5f9; }
body.dark .form-group input::placeholder { color: #475569; }
body.dark .form-group label { color: #94a3b8; }
body.dark th { background: #0f172a; }
body.dark td { color: #cbd5e1; }
body.dark .search-input { background: #0f172a; border-color: #334155; color: #f1f5f9; }
body.dark .search-input::placeholder { color: #475569; }
body.dark .segment-group { background: #0f172a; border-color: #334155; }
body.dark .segment-btn.active { background: var(--primary); color: white; }
body.dark .segment-btn:hover:not(.active) { background: #253449; color: #f1f5f9; }
body.dark .sync-badge { background: #0f172a; }
body.dark .sync-progress { background: #0f172a; border-color: #334155; }
body.dark .count-badge { background: #1e2a4a; color: #38bdf8; border-color: rgba(97,128,247,0.2); }
body.dark .filter-chip { background: #0f172a; border-color: #334155; color: #94a3b8; }
body.dark .filter-chip:hover { border-color: var(--primary); color: var(--primary); background: #1e2a4a; }
body.dark .btn-filter { background: #0f172a; border-color: #334155; }
body.dark .header-filter-bar { border-color: #334155; }
body.dark tr.row-live { background: #0a2e1a; }
body.dark tr.row-live td { color: #bbf7d0; border-bottom-color: #166534; }
body.dark tr.row-live:hover td { background: #0d3520; }
body.dark tr.row-soon { background: #1a1505; }
body.dark tr.row-soon td { color: #fef3c7; border-bottom-color: #854d0e40; }
body.dark tr.row-soon:hover td { background: #231c08; }
body.dark tr.row-upcoming td { color: #cbd5e1; }
body.dark tr.detail-row td { background: #141e30; }
body.dark .detail-value { color: #e2e8f0; }
body.dark .detail-value.mono { color: #93c5fd; }
body.dark .detail-value:empty::after { color: #475569; }
body.dark .group-header-row td { background: #151d2e; }
body.dark .group-header-row:hover td { background: #1a2540; }
body.dark .group-info-row td { background: #141e30; }
body.dark .badge-booked { background: #1e3a5f; color: #60a5fa; border-color: #2563eb40; }
body.dark .badge-delivered { background: #14532d; color: #4ade80; border-color: #22c55e40; }
body.dark .badge-cancelled { background: #450a0a; color: #f87171; border-color: #ef444440; }
body.dark .badge-default { background: #1e293b; color: #94a3b8; border-color: #33415540; }
body.dark .badge-no-signal { background: #431407; color: #fb923c; border-color: #f59e0b40; }
body.dark .badge-not-applicable { background: #1e293b; color: #64748b; border-color: #33415540; }
body.dark .badge-signal-ok { background: #14532d; color: #4ade80; border-color: #22c55e40; }
body.dark .badge-signal-not-id { background: #422006; color: #fbbf24; border-color: #f59e0b40; }
body.dark .badge-transmission-over { background: #1e1b4b; color: #a78bfa; border-color: #7c3aed40; }
body.dark .time-label.live { color: #4ade80; }
body.dark .time-label.soon { color: #fbbf24; }
body.dark .res-chip.in { background: #172554; color: #93c5fd; border-color: #1e40af50; }
body.dark .res-chip.out { background: #1a2e05; color: #bef264; border-color: #3f621250; }
body.dark .res-popover { background: #0f172a; border-color: var(--primary); }
body.dark .res-popover-val { color: #e2e8f0; }
body.dark .res-popover-val.mono { color: #93c5fd; background: #1e293b; border-color: #334155; }
body.dark .res-popover-type.in { background: #172554; color: #93c5fd; }
body.dark .res-popover-type.out { background: #1a2e05; color: #bef264; }
body.dark .tl-tooltip { background: #0f172a; border-color: var(--primary); }
body.dark .tl-tooltip-val { color: #e2e8f0; }
body.dark .timeline-header { background: #0f172a; }
body.dark .timeline-row-label { background: #1e293b; }
body.dark .timeline-now-label { background: #0f172a; }
body.dark .bar-past { background: #475569; color: #cbd5e1; }
body.dark .booking-card { background: #1e293b; }
body.dark .booking-card.card-live { background: #0a2e1a; border-left-color: #22c55e; }
body.dark .booking-card.card-soon { background: #1a1505; border-left-color: #f59e0b; }
body.dark .card-detail-val { color: #e2e8f0; }
body.dark .badge-edit-popover { background: #0f172a; border-color: var(--primary); }
body.dark .badge-edit-option.current { background: #1e2a4a; color: #38bdf8; }
body.dark .confirm-overlay { background: rgba(0,0,0,0.6); }
body.dark .confirm-dialog { background: #1e293b; }
body.dark .confirm-cancel { background: transparent; border-color: #334155; }
body.dark .confirm-cancel:hover { background: #0f172a; }
body.dark .overflow-menu { background: #1e293b; border-color: #334155; }
body.dark .overflow-menu-item:hover { background: #0f172a; }
body.dark .overflow-menu-btn { background: #1e293b; border-color: #334155; }
body.dark .edit-textarea { background: #0f172a; border-color: #334155; color: #f1f5f9; }
body.dark .btn-ghost:hover { background: #0f172a; color: #f1f5f9; }
body.dark .stat-pill { background: #1e293b; border-color: #334155; }
body.dark .stat-pill strong { color: #f1f5f9; }
body.dark .stat-pill.stat-live.has-active { background: #0a2e1a; border-color: #22c55e; }
body.dark .stat-pill.stat-live.has-active strong { color: #4ade80; }
body.dark .stat-pill.stat-soon.has-active { background: #1a1505; border-color: #f59e0b; }
body.dark .stat-pill.stat-soon.has-active strong { color: #fbbf24; }
body.dark .save-status.success { color: #4ade80; }
body.dark .save-status.warning { color: #fbbf24; }
body.dark .save-status.error { color: #f87171; }
body.dark #login-view { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%); }

/* ── Controls ── */
.container { max-width: 1900px; margin: 0 auto; padding: 20px 24px; }
.controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.segment-group {
  display: flex; background: #edf0f4; border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden; padding: 3px; gap: 2px;
}
.segment-btn {
  padding: 7px 18px; border: none; background: transparent;
  color: var(--text-secondary); cursor: pointer; font-size: 0.8rem;
  font-weight: 600; border-radius: 6px; transition: all 0.15s;
}
.segment-btn.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.segment-btn:hover:not(.active) { color: var(--text); background: rgba(255,255,255,0.5); }
.search-input {
  padding: 8px 14px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.85rem;
  color: var(--text); min-width: 240px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(3,105,161,0.1); }
.search-input::placeholder { color: #a0aec0; }
.count-badge {
  background: var(--primary-soft); padding: 5px 12px; border-radius: 20px;
  font-size: 0.78rem; color: var(--primary); border: 1px solid rgba(3,105,161,0.15);
  font-weight: 600;
}

/* ── Time legend ── */
.legend {
  display: flex; gap: 16px; align-items: center; margin-left: auto;
  font-size: 0.72rem; color: var(--text-secondary);
}
.legend-item { display: flex; align-items: center; gap: 5px; }
.legend-dot {
  width: 10px; height: 10px; border-radius: 3px;
}
.legend-dot.live { background: #22c55e; }
.legend-dot.soon { background: #f59e0b; }
.legend-dot.upcoming { background: var(--border); }
.legend-dot.past { background: #c1c8d1; }

/* ── Table ── */
.table-wrapper {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); overflow-x: auto;
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
th {
  background: #f8f9fb; text-align: left; padding: 11px 14px;
  font-weight: 600; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-secondary);
  white-space: nowrap; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 2;
}
td {
  padding: 10px 14px; border-bottom: 1px solid var(--border-light);
  vertical-align: middle; color: #3d4f65; transition: background 0.15s;
}
td.nowrap { white-space: nowrap; }

/* ── Row time states ── */
tr.row-live { background: #e9f9ef; }
tr.row-live td { color: #1a5c37; border-bottom-color: #b8e6cc; }
tr.row-live:hover td { background: #d5f2e0; }

tr.row-soon { background: #fef8e7; }
tr.row-soon td { color: #6b5300; border-bottom-color: #f0dfa0; }
tr.row-soon:hover td { background: #fdf2d0; }

tr.row-upcoming td { color: #3d4f65; }
tr.row-upcoming:hover td { background: var(--card-hover); }

tr.row-past { opacity: 0.45; }
tr.row-past:hover { opacity: 0.7; }
tr.row-past:hover td { background: var(--card-hover); }

/* Time indicator bar on left */
tr.row-live td:first-child { box-shadow: inset 3px 0 0 #22c55e; }
tr.row-soon td:first-child { box-shadow: inset 3px 0 0 #f59e0b; }

/* ── Clickable row ── */
tr.booking-row { cursor: pointer; }
tr.booking-row td.chevron-cell {
  text-align: center; width: 30px; color: var(--text-secondary);
  font-size: 0.7rem; transition: transform 0.2s;
}
tr.booking-row.expanded td.chevron-cell { color: var(--primary); }

/* ── Expanded detail row ── */
tr.detail-row { display: none; }
tr.detail-row.open { display: table-row; }
tr.detail-row td {
  padding: 0; border-bottom: 1px solid var(--border);
  background: #f5f7fa;
}
.detail-panel {
  padding: 16px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  animation: slideDown 0.2s ease-out;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.detail-field { }
.detail-label {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-secondary); margin-bottom: 4px; font-weight: 600;
}
.detail-value {
  font-size: 0.82rem; color: #2d3a4d; word-break: break-all;
  line-height: 1.5;
}
.detail-value.mono {
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem; color: #0369a1;
}
.detail-value:empty::after { content: "—"; color: #a0aec0; }

/* ── Status Badges ── */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 0.7rem; font-weight: 600; white-space: nowrap;
}
.badge-booked { background: #e8f0fe; color: #2b5ea7; border: 1px solid #b6d4fe; }
.badge-delivered { background: #e4f8ed; color: #1a7f4b; border: 1px solid #a3e4be; }
.badge-cancelled { background: #fde8e8; color: #c53030; border: 1px solid #feb2b2; }
.badge-default { background: #edf0f4; color: #6b7a90; border: 1px solid #dfe4ea; }
.badge-no-signal { background: #fef0e1; color: #b45309; border: 1px solid #fcd6a4; }
.badge-not-applicable { background: #edf0f4; color: #6b7a90; border: 1px solid #dfe4ea; }
.badge-signal-ok { background: #e4f8ed; color: #1a7f4b; border: 1px solid #a3e4be; }
.badge-signal-not-id { background: #fef5e1; color: #92600e; border: 1px solid #f5d88e; }
.badge-transmission-over { background: #ede9fe; color: #6b21a8; border: 1px solid #c4b5fd; }

/* Time badge in table */
.time-label {
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; margin-top: 2px;
}
.time-label.live { color: #22c55e; }
.time-label.soon { color: #f59e0b; }
.time-rel { font-weight: 500; opacity: 0.8; font-size: 0.6rem; }

/* ── Pulse animation for live indicators ── */
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.stat-dot.live, .sync-dot { animation: livePulse 2s ease-in-out infinite; }
tr.row-live td:first-child { position: relative; }
.time-label.live { animation: livePulse 2s ease-in-out infinite; }
/* ── Toasts ── */
.toast-container {
  position: fixed; bottom: 20px; right: 20px; z-index: 500;
  display: flex; flex-direction: column-reverse; gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-size: 0.8rem; font-weight: 500; color: #fff;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.25s ease-out;
  max-width: 340px;
}
.toast.toast-success { background: #16a34a; }
.toast.toast-error { background: #dc2626; }
.toast.toast-warning { background: #d97706; }
.toast.toast-info { background: #2563eb; }
.toast.toast-out { animation: toastOut 0.2s ease-in forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(8px); } }
@media (max-width: 768px) {
  .toast-container { left: 16px; right: 16px; bottom: 16px; }
  .toast { max-width: none; }
}

th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--primary); }
.sort-arrow { font-size: 0.6rem; margin-left: 3px; opacity: 0.4; }
th.sortable.sort-active .sort-arrow { opacity: 1; color: var(--primary); }

/* ── Resource Chips ── */
.res-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.res-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 6px;
  font-size: 0.72rem; font-weight: 500; cursor: pointer;
  transition: all 0.15s; white-space: nowrap;
  border: 1px solid transparent;
}
.res-chip.in {
  background: #e8f0fe; color: #2b5ea7; border-color: #b6d4fe;
}
.res-chip.in:hover { background: #d0e2fd; border-color: #0369a1; }
.res-chip.out {
  background: #eef7e3; color: #3d6b13; border-color: #c8e6a0;
}
.res-chip.out:hover { background: #dff0cc; border-color: #65a30d; }
.res-chip .chip-icon { font-size: 0.6rem; opacity: 0.6; }

/* ── Resource Popover ── */
.res-popover {
  display: none; position: fixed; z-index: 200;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
  min-width: 300px; max-width: 420px;
  max-height: calc(100vh - 16px); overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.15s ease-out;
}
.res-popover.visible { display: block; }
@keyframes popIn {
  from { opacity: 0; transform: scale(0.95) translateY(-4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.res-popover-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.res-popover-title {
  font-size: 0.85rem; font-weight: 700; color: var(--text);
}
.res-popover-type {
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
  padding: 2px 8px; border-radius: 4px;
}
.res-popover-type.in { background: #e8f0fe; color: #2b5ea7; }
.res-popover-type.out { background: #eef7e3; color: #3d6b13; }
.res-popover-close {
  background: none; border: none; color: var(--text-secondary);
  cursor: pointer; font-size: 1.1rem; padding: 2px 6px; border-radius: 4px;
}
.res-popover-close:hover { background: var(--card-hover); color: var(--text); }
.res-popover-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.res-popover-field { }
.res-popover-field.full { grid-column: 1 / -1; }
.res-popover-label {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-secondary); margin-bottom: 3px; font-weight: 600;
}
.res-popover-val {
  font-size: 0.82rem; color: #2d3a4d; word-break: break-all;
}
.res-popover-val.mono {
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem; color: #0369a1;
  background: #f5f7fa; padding: 4px 8px;
  border-radius: 4px; border: 1px solid var(--border);
}
.res-popover-val:empty::after { content: "—"; color: #a0aec0; }
.vlc-link {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 8px; padding: 6px 14px; border: none; border-radius: 6px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white; font-size: 0.75rem; font-weight: 600;
  cursor: pointer; transition: opacity 0.15s; text-decoration: none;
}
.vlc-link:hover { opacity: 0.85; }
.playpro-link {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 8px; padding: 6px 14px; border: none; border-radius: 6px;
  background: linear-gradient(135deg, #0080d5, #0060aa);
  color: white; font-size: 0.75rem; font-weight: 600;
  cursor: pointer; transition: opacity 0.15s; text-decoration: none;
}
.playpro-link:hover { opacity: 0.85; }
.popover-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* ── Group View ── */
.group-header-row { cursor: pointer; }
.group-header-row td { background: #f0f3f7; border-bottom: 1px solid var(--border); }
.group-header-row:hover td { background: #e8ecf2; }
.group-count {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 2px 9px; border-radius: 12px; font-size: 0.68rem; font-weight: 700;
  background: var(--primary); color: white; margin-left: 6px;
}
.group-member-row { display: none; }
.group-member-row.group-open { display: table-row; }
.group-member-row td { padding-left: 28px; }
.group-chevron { display: inline-block; width: 16px; text-align: center; font-size: 0.7rem; color: var(--text-secondary); }
.group-info-row td { background: #f5f7fa; padding: 0; border-bottom: 1px solid var(--border); }
.group-info-row .detail-panel { padding: 10px 20px 10px 28px; }
.detail-panel-empty { color: var(--text-secondary); font-size: 0.8rem; font-style: italic; }

/* ── Filter Button & Panel ── */
.btn-filter {
  background: #fff; border: 1px solid var(--border); color: var(--text-secondary);
  gap: 6px; position: relative;
}
.btn-filter:hover { border-color: var(--primary); color: var(--primary); }
.btn-filter.has-active { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn-filter .filter-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--primary);
  display: none; position: absolute; top: 4px; right: 4px;
}
.btn-filter.has-active .filter-dot { display: block; }
.filter-panel {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  animation: slideDown 0.2s ease-out;
}
.filter-panel-row {
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 14px;
}
.filter-panel-section {
  display: flex; align-items: center; gap: 8px;
}

/* ── Filter Bar ── */
.filter-bar {
  display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap;
}
.filter-group { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.filter-group-label {
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-secondary); margin-right: 4px;
}
.filter-chip {
  padding: 4px 12px; border-radius: 20px; font-size: 0.72rem; font-weight: 500;
  border: 1px solid var(--border); background: #fff; color: var(--text-secondary);
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.filter-chip.active { background: var(--primary); color: white; border-color: var(--primary); }
.filter-clear {
  padding: 4px 12px; border-radius: 20px; font-size: 0.68rem; font-weight: 600;
  border: 1px dashed var(--border); background: transparent; color: var(--text-secondary);
  cursor: pointer; transition: all 0.15s;
}
.filter-clear:hover { border-color: var(--danger); color: var(--danger); }

/* ── Timeline ── */
.timeline-wrapper {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow-x: auto; overflow-y: auto; max-height: 75vh; position: relative;
  box-shadow: var(--shadow-sm);
}
.timeline-header {
  display: flex; position: sticky; top: 0; z-index: 5;
  background: #f8f9fb; border-bottom: 1px solid var(--border); min-height: 32px;
}
.timeline-hour {
  flex: 0 0 120px; text-align: center; font-size: 0.68rem; font-weight: 600;
  color: var(--text-secondary); padding: 6px 0; border-right: 1px solid var(--border-light);
}
.timeline-row-label-spacer { flex: 0 0 160px; }
.timeline-body { position: relative; }
.timeline-row {
  display: flex; align-items: center; min-height: 40px; border-bottom: 1px solid var(--border-light);
  position: relative;
}
.timeline-row-label {
  flex: 0 0 160px; padding: 6px 10px; font-size: 0.72rem; font-weight: 600;
  color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  position: sticky; left: 0; z-index: 3; background: #fff;
  border-right: 1px solid var(--border);
}
.timeline-row-bars { position: relative; flex: 1; height: 32px; }
.timeline-bar {
  position: absolute; top: 4px; height: 24px; border-radius: 4px;
  display: flex; align-items: center; padding: 0 6px; font-size: 0.65rem;
  font-weight: 600; cursor: pointer; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; transition: opacity 0.15s; min-width: 4px;
}
.timeline-bar:hover { opacity: 0.85; box-shadow: 0 0 8px rgba(255,255,255,0.15); }
.bar-live { background: #22c55e; color: white; }
.bar-soon { background: #d97706; color: white; }
.bar-upcoming { background: #0369a1; color: white; }
.bar-past { background: #c1c8d1; color: #4a5568; }
.timeline-now-line {
  position: absolute; top: 0; bottom: 0; width: 2px;
  background: #ef4444; z-index: 4; pointer-events: none;
}
.timeline-now-label {
  position: absolute; top: -18px; transform: translateX(-50%);
  font-size: 0.6rem; font-weight: 700; color: #dc2626; background: #fff;
  padding: 1px 5px; border-radius: 3px;
}

.tl-tooltip {
  display: none; position: fixed; z-index: 200;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 16px; min-width: 240px; max-width: 360px;
  box-shadow: var(--shadow-lg); font-size: 0.78rem;
  animation: popIn 0.15s ease-out;
}
.tl-tooltip.visible { display: block; }
.tl-tooltip-title { font-weight: 700; font-size: 0.85rem; margin-bottom: 8px; }
.tl-tooltip-row { display: flex; gap: 8px; margin-bottom: 4px; }
.tl-tooltip-label { color: var(--text-secondary); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; min-width: 70px; }
.tl-tooltip-val { color: #2d3a4d; }

/* ── Mobile Cards ── */
.card-list { display: none; flex-direction: column; gap: 10px; }
.booking-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; cursor: pointer; transition: background 0.15s;
  box-shadow: var(--shadow-sm);
}
.booking-card:hover { background: var(--card-hover); }
.booking-card.card-live { border-left: 3px solid #22c55e; background: #f0faf4; }
.booking-card.card-soon { border-left: 3px solid #f59e0b; background: #fffcf0; }
.booking-card.card-past { opacity: 0.5; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.card-fixture { font-weight: 700; font-size: 0.88rem; }
.card-meta { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 8px; }
.card-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.card-detail { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 0.78rem; }
.card-detail.open { display: block; }
.card-detail-field { margin-bottom: 8px; }
.card-detail-label { font-size: 0.65rem; text-transform: uppercase; color: var(--text-secondary); font-weight: 600; letter-spacing: 0.04em; }
.card-detail-val { color: #2d3a4d; word-break: break-all; }

/* ── Lock icon on badges ── */
.badge.locked { opacity: 0.7; cursor: default; }
.lock-icon { width: 10px; height: 10px; vertical-align: -1px; margin-right: 3px; opacity: 0.6; }

/* ── Inline Editing ── */
.badge.editable { cursor: pointer; transition: all 0.15s; }
.badge.editable:hover { filter: brightness(0.92); box-shadow: 0 0 0 2px rgba(3,105,161,0.2); }
.edit-textarea {
  width: 100%; padding: 8px 10px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.8rem; color: var(--text);
  font-family: inherit; resize: vertical; min-height: 36px; outline: none;
  transition: min-height 0.2s ease;
}
.edit-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(3,105,161,0.1); min-height: 100px; }
.edit-actions { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.btn-save {
  padding: 7px 18px; border: none; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #059669, #10b981); color: white;
  font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.btn-save:hover { opacity: 0.9; }
.btn-save:disabled { opacity: 0.5; cursor: not-allowed; }
.save-status { font-size: 0.75rem; font-weight: 500; }
.save-status.success { color: #22c55e; }
.save-status.warning { color: #d97706; }
.save-status.error { color: #dc2626; }

/* ── Badge Edit Popover ── */
.badge-edit-popover {
  display: none; position: fixed; z-index: 300;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px 0;
  min-width: 200px; max-width: 280px;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.12s ease-out;
}
.badge-edit-popover.visible { display: block; }
.badge-edit-popover-title {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-secondary);
  padding: 4px 14px 8px; border-bottom: 1px solid var(--border);
}
.badge-edit-option {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; cursor: pointer; font-size: 0.8rem;
  color: var(--text); transition: background 0.1s;
}
.badge-edit-option:hover { background: var(--card-hover); }
.badge-edit-option.current { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.badge-edit-option .option-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}

/* ── Confirm Dialog ── */
.confirm-overlay {
  display: none; position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,0.35); backdrop-filter: blur(4px);
  justify-content: center; align-items: center;
}
.confirm-overlay.visible { display: flex; }
.confirm-dialog {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 24px 28px; max-width: 380px; width: 90%;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.15s ease-out;
}
.confirm-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.confirm-body { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.6; }
.confirm-actions { display: flex; gap: 10px; justify-content: flex-end; }
.confirm-cancel {
  padding: 8px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--text-secondary); font-size: 0.8rem;
  font-weight: 600; cursor: pointer;
}
.confirm-cancel:hover { background: #f5f7fa; color: var(--text); }
.confirm-ok {
  padding: 8px 18px; border: none; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #0369a1, #0284c7); color: white;
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
}
.confirm-ok:hover { opacity: 0.9; }

.no-data, .loading { text-align: center; padding: 48px; color: var(--text-secondary); }
/* ── Skeleton loading ── */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skel-row td { padding: 12px 14px; }
.skel-bar {
  height: 14px; border-radius: 4px;
  background: linear-gradient(90deg, var(--border-light) 25%, var(--border) 50%, var(--border-light) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
}
.skel-bar.w60 { width: 60%; }
.skel-bar.w40 { width: 40%; }
.skel-bar.w80 { width: 80%; }
.skel-bar.w30 { width: 30%; }
.skel-badge { height: 22px; width: 70px; border-radius: 20px; }
.skel-chip { height: 22px; width: 90px; border-radius: 6px; }
.load-earlier {
  text-align: center; padding: 10px;
}
.load-earlier-btn {
  padding: 6px 20px; border: 1px dashed var(--border); border-radius: 20px;
  background: transparent; color: var(--text-secondary); font-size: 0.75rem;
  font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.load-earlier-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* ── Mobile Overflow Menu ── */
.overflow-menu-btn {
  display: none; /* hidden on desktop */
  width: 34px; height: 34px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--card); align-items: center; justify-content: center; cursor: pointer;
  color: var(--text-secondary); flex-shrink: 0;
}
.overflow-menu-btn:hover { background: var(--card-hover); }
.overflow-menu {
  display: none; position: absolute; top: 100%; right: 16px; z-index: 200;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 6px 0;
  min-width: 200px; box-shadow: var(--shadow-lg);
  animation: popIn 0.12s ease-out;
}
.overflow-menu.visible { display: block; }
.overflow-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; cursor: pointer; font-size: 0.82rem;
  color: var(--text); transition: background 0.1s; border: none; background: none; width: 100%; text-align: left;
}
.overflow-menu-item:hover { background: var(--card-hover); }
.overflow-menu-item svg { width: 16px; height: 16px; color: var(--text-secondary); flex-shrink: 0; }

/* ── Focus states for keyboard navigation ── */
.stat-pill:focus-visible, .filter-chip:focus-visible, .segment-btn:focus-visible,
.btn:focus-visible, .btn-filter:focus-visible, .res-chip:focus-visible,
.badge.editable:focus-visible, .overflow-menu-btn:focus-visible,
.overflow-menu-item:focus-visible, .load-earlier-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 768px) {
  .header-inner { padding: 8px 16px; position: relative; }
  .header-actions { display: none !important; }
  .overflow-menu-btn { display: flex; }
  .sync-area { display: none; }
  .header-toolbar { padding: 4px 16px 0; flex-direction: row; align-items: center; gap: 6px; flex-wrap: wrap; }
  .stat-pills { flex-wrap: nowrap; gap: 3px; }
  .stat-pill { padding: 3px 8px; font-size: 0.65rem; }
  .toolbar-controls { margin-left: auto; flex-wrap: nowrap; gap: 4px; }
  .search-input { min-width: auto; order: 10; flex: 1 1 100%; font-size: 0.8rem; padding: 6px 10px; }
  .count-badge { display: none; }
  #view-toggle { display: none !important; }
  #display-toggle { display: none !important; }
  .segment-btn { padding: 4px 10px; font-size: 0.68rem; }
  .btn-filter { padding: 4px 10px; font-size: 0.68rem; }
  .header-filter-bar { padding: 4px 16px 0; }
  .container { padding: 12px; }
  .timeline-wrapper { display: none !important; }
  .table-wrapper { display: none !important; }
  .card-list { display: flex !important; }
  /* Popover as bottom sheet on mobile */
  .res-popover {
    left: 0 !important; right: 0; bottom: 0 !important; top: auto !important;
    width: 100%; max-width: 100%; border-radius: 16px 16px 0 0;
    min-width: auto; max-height: 70vh; overflow-y: auto;
  }
  .badge-edit-popover {
    left: 16px !important; right: 16px !important; bottom: 0 !important; top: auto !important;
    width: auto; max-width: none; border-radius: 16px 16px 0 0;
    min-width: auto;
  }
  .btn-export { display: none !important; }
}

/* ── Offline Banner ── */
.offline-banner {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #fbbf24; color: #78350f; font-size: 0.8rem; font-weight: 600;
  padding: 8px 16px; text-align: center; z-index: 100; position: relative;
}
body.dark .offline-banner { background: #92400e; color: #fef3c7; }

/* ── Sync Button Spinner ── */
@keyframes spin { to { transform: rotate(360deg); } }
.sync-btn-spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white; border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ── Toast Progress Bar ── */
.toast { position: relative; overflow: hidden; }
.toast-progress {
  position: absolute; bottom: 0; left: 0; height: 3px;
  background: rgba(255,255,255,0.4); border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  animation: toastProgress linear forwards;
}
@keyframes toastProgress { from { width: 100%; } to { width: 0%; } }

/* ── Empty State ── */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 48px 24px; color: var(--text-secondary);
}
.empty-state svg { margin-bottom: 16px; opacity: 0.4; }
.empty-state-title { font-size: 1rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.empty-state-msg { font-size: 0.85rem; margin-bottom: 16px; }

/* ── Export CSV Button ── */
.btn-export {
  gap: 5px; font-size: 0.78rem; white-space: nowrap;
}

/* ── Notification Toggle ── */
#notif-toggle-btn.notif-active {
  color: var(--primary); border-color: var(--primary); background: var(--primary-soft);
}

/* ── Keyboard Shortcuts Modal ── */
.shortcuts-overlay {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
  justify-content: center; align-items: center;
}
.shortcuts-overlay.visible { display: flex; }
.shortcuts-dialog {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 32px; max-width: 440px;
  width: 90%; box-shadow: var(--shadow-lg);
  animation: popIn 0.15s ease-out;
}
.shortcuts-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.shortcuts-header h2 { font-size: 1.05rem; font-weight: 700; }
.shortcuts-close {
  background: none; border: none; font-size: 1.3rem;
  color: var(--text-secondary); cursor: pointer; padding: 2px 6px;
  border-radius: 4px;
}
.shortcuts-close:hover { background: var(--card-hover); color: var(--text); }
.shortcuts-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.shortcut-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--text-secondary);
}
.shortcut-item span { flex: 1; }
kbd {
  display: inline-block; padding: 2px 7px; border-radius: 4px;
  background: var(--bg); border: 1px solid var(--border);
  font-family: 'Fira Code', monospace; font-size: 0.72rem;
  font-weight: 600; color: var(--text); line-height: 1.4;
}

/* ── Detail Panel (expanded row) ── */
.detail-panel-v2 {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: slideDown 0.2s ease-out;
}

/* ── Group member context cell ── */
.group-member-context {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.78rem;
  padding-left: 28px;
}

/* ── Compact detail panel for group members ── */
.detail-panel-compact {
  padding: 8px 20px 8px 28px;
  animation: slideDown 0.2s ease-out;
}
.compact-edit-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.compact-edit-row .edit-textarea-compact {
  flex: 1;
  min-height: 32px;
  transition: min-height 0.2s ease;
}
.compact-edit-row .edit-textarea-compact:focus {
  min-height: 80px;
}
.compact-edit-row .btn-save {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Channel pills in group header ── */
.channel-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.channel-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 500;
  background: #e8f0fe;
  color: #2b5ea7;
  border: 1px solid #b6d4fe;
  white-space: nowrap;
}
.channel-pill-more {
  background: #edf0f4;
  color: var(--text-secondary);
  border-color: var(--border);
  font-weight: 600;
}

/* ── "No signal" neutral badge (grey, for upcoming/past) ── */
.badge-no-signal-neutral {
  background: #edf0f4;
  color: #6b7a90;
  border: 1px solid #dfe4ea;
}

/* ── Dark mode additions ── */
body.dark .group-member-context { color: var(--text-secondary); }
body.dark .detail-panel-compact { }
body.dark .channel-pill { background: #172554; color: #93c5fd; border-color: #1e40af50; }
body.dark .channel-pill-more { background: #1e293b; color: #94a3b8; border-color: #334155; }
body.dark .badge-no-signal-neutral { background: #1e293b; color: #94a3b8; border-color: #33415540; }

@media (max-width: 768px) {
  .shortcuts-grid { grid-template-columns: 1fr; }
}
