/* A bright, low-glare desktop alternative to the original night terminal. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 30px;
  padding: 0 10px;
  background: #19252d;
  border: 1px solid #3e505c;
  color: #d6e3e8;
  font: 600 9px var(--mono);
  letter-spacing: .2px;
  white-space: nowrap;
}
.theme-toggle:hover { border-color: var(--orange); }
.theme-toggle #theme-icon { font-size: 15px; line-height: 1; color: var(--orange); }

body.theme-day {
  --bg: #f2f5f6;
  --panel: #fff;
  --panel-dark: #e9eff2;
  --surface: #f6f8f9;
  --edge: #cbd5da;
  --edge-light: #dfe7e9;
  --text: #17252e;
  --muted: #516973;
  --dim: #687e89;
  --orange: #b36a23;
  --sport: #187b58;
  --music: #7145a0;
  --comedy: #986323;
  --convention: #276a9e;
  --local: #a8712c;
  background: #f2f5f6;
  color: #17252e;
}
body.theme-day .terminal { background: #f1f4f6; }
body.theme-day .topbar { background: #fff; border-color: #cbd5da; }
body.theme-day .wordmark { color: #111e26; }
body.theme-day .wordmark-soft { color: #566b75; }
body.theme-day .mark { color: #a65f19; border-color: #a65f19; }
body.theme-day .beta { background: #fff0db; color: #9c5a1e; }
body.theme-day .header-separator { background: #cbd5da; }
body.theme-day .header-title { color: #1d303b; }
body.theme-day .header-title span { color: #748a95; }
body.theme-day .status-text { color: #467763; }
body.theme-day .clock { color: #17252e; }
body.theme-day .clock-zone { color: #6b7e88; }
body.theme-day .theme-toggle { background: #fff6e8; color: #5f441d; border-color: #d8b990; }
body.theme-day .theme-toggle #theme-icon { color: #af681f; }

body.theme-day .overview-strip {
  background: linear-gradient(115deg, #f9fafb, #edf3f5 70%, #e8eff2);
  border-color: #ccd6db;
}
body.theme-day .overline { color: #ac6523; }
body.theme-day .overline #date-label { color: #506875; }
body.theme-day .slash { color: #b4c0c6; }
body.theme-day .overview-title { color: #15232c; }
body.theme-day .overview-title span { color: #ad6929; }
body.theme-day .overview-stats { border-color: #c9d3d9; }
body.theme-day .stat { background: #fff; border-color: #d2dce0; }
body.theme-day .stat-label { color: #5b727e; }
body.theme-day .scope-toggle { background: #fff; color: #243945; border-color: #bccbd2; }
body.theme-day .scope-pin { color: #ab6626; }
body.theme-day .scope-chevron { color: #607983; }
body.theme-day .day-filters { border-color: #bccbd2; }
body.theme-day .day-filter { background: #fff; color: #526a76; border-color: #d1dde2; }
body.theme-day .day-filter.active { background: #1f3440; color: #fff; }
body.theme-day .day-filter:hover:not(.active) { background: #e8eff3; color: #17252e; }
body.theme-day .calendar-select { background: #fff; border-color: #bfcdd4; color: #526a76; }
body.theme-day .calendar-select.active { border-color: #a96524; }
body.theme-day .calendar-select input { color: #17252e; color-scheme: light; }

body.theme-day .board { background: #edf1f3; }
body.theme-day .panel { background: #fff; border-color: #cbd5da; }
body.theme-day .panel-heading { background: #ecf2f5; border-bottom-color: #cbd5da; }
body.theme-day .panel-heading h2 { color: #1a2b35; }
body.theme-day .panel-number { color: #ad6420; }
body.theme-day .panel-heading-right { color: #647f8b; }
body.theme-day .sports-topline,
body.theme-day .subheading { background: #eff5f4; color: #2d7359; }
body.theme-day .sports-topline span,
body.theme-day .subheading span { color: #6d8690; }
body.theme-day .sport-subheading { border-bottom-color: #cbd5da; }
body.theme-day .club-subheading { color: #985817; border-color: #cbd5da; }
body.theme-day .club-events { background: #fff; }
body.theme-day .club-kicker { color: #955718; }
body.theme-day .club-link { color: #87501d; border-color: #b47b46; }
body.theme-day .club-link:hover { background: #b47b46; color: #fff; }
body.theme-day .team-watch { border-bottom-color: #cbd5da; }
body.theme-day .team-row { border-bottom-color: #e0e7e9; }
body.theme-day .team-name { color: #1b2c35; }
body.theme-day .team-opponent { color: #5f7984; }
body.theme-day .team-date { color: #207451; }
body.theme-day .team-date span { color: #587682; }
body.theme-day .team-date.off { color: #81929b; }
body.theme-day .team-badge { background: #e3f4ec; border-color: #98cfb5; color: #126345; }
body.theme-day .team-row:nth-child(2) .team-badge { background: #e3f1fa; border-color: #a6cede; color: #245f7f; }
body.theme-day .team-row:nth-child(3) .team-badge { background: #fff2dc; border-color: #e4c591; color: #92601e; }

body.theme-day .listing-row { border-bottom-color: #dbe4e8; }
body.theme-day .listing-row:nth-child(even) { background: #f7f9fa; }
body.theme-day .listing-row:hover { background: #e7f0f3; }
body.theme-day .listing-row.is-today { background: #fff1dd; border-left-color: #bd792e; }
body.theme-day .row-date { color: #273c47; }
body.theme-day .row-time { color: #657e8b; }
body.theme-day .row-name { color: #1b2b35; }
body.theme-day .listing-row:hover .row-name { color: #0e4a65; }
body.theme-day .row-detail { color: #637b87; }
body.theme-day .row-detail .tag { color: #187654; }
body.theme-day .row-detail .tag.away { color: #ad672c; }
body.theme-day .music-panel .row-detail .tag { color: #74449e; }
body.theme-day .comedy-panel .row-detail .tag { color: #905d26; }
body.theme-day .conventions-panel .row-detail .tag { color: #25618b; }
body.theme-day .local-panel .row-detail .tag { color: #976424; }
body.theme-day .section-panel .row-name { text-decoration-color: #9babba; }
body.theme-day .local-panel .row-name { text-decoration-color: #af7e43; }
body.theme-day .section-panel .listing-row:hover .row-name { text-decoration-color: #c17d2d; }
body.theme-day .row-list .empty { color: #6b8290; }
body.theme-day .panel-bottom { background: #f0f4f5; border-top-color: #d0dade; color: #617986; }
body.theme-day .panel-bottom a { color: #935e25; }
body.theme-day .panel-bottom a:hover { color: #b66d22; }

body.theme-day .local-notice { background: #fff4e7; border-top-color: #e0bd8e; }
body.theme-day .notice-icon { color: #995d22; border-color: #c8873c; }
body.theme-day .local-notice strong { color: #995d22; }
body.theme-day .local-notice span:last-child { color: #876b4b; }
body.theme-day .statusbar { background: #fff; border-top-color: #cad5db; color: #667d88; }
body.theme-day .statusbar strong { color: #283d48; }
body.theme-day .status-divider { color: #bdcbd2; }

@media (max-width: 900px) {
  .theme-toggle { height: 28px; padding: 0 7px; }
}
@media (max-width: 520px) {
  .theme-toggle #theme-label { display: none; }
  .theme-toggle { min-width: 29px; }
}
