/* SlateMeter brand layer. Rating hues remain driven by the existing score scale. */
:root {
  --brand-cream: #F0E8D4;
  --brand-red: #BD343E;
  --brand-charcoal: #191C1F;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --bg: var(--brand-charcoal);
  --surface: #222629;
  --ink: var(--brand-cream);
  --muted: #B6B6AE;
  --line: #454A4D;
  --selected: var(--brand-red);
  --selected-hi: var(--brand-cream);
  --md-bg: var(--brand-charcoal);
  --md-surface: #222629;
  --md-surface-2: #292D30;
  --md-surface-3: #303437;
  --md-surface-4: #3A3E41;
  --md-outline: #575B5D;
  --md-outline-soft: #393E41;
  --md-text: var(--brand-cream);
  --md-text-2: #D2CFC4;
  --md-text-3: #B6B6AE;
  --md-primary: var(--brand-cream);
  --md-primary-container: #49272C;
  --md-on-primary-container: var(--brand-cream);
  --md-secondary-container: #34383B;
  --md-on-secondary-container: var(--brand-cream);
  --md-elevation-1: none;
  --md-elevation-2: none;
  --md-elevation-3: 0 16px 48px #0005;
  --md-radius-md: 12px;
  --md-radius-lg: 16px;
  --md-radius-xl: 20px;
  color-scheme: dark;
  font-family: var(--font-sans);
}
body { font-family: var(--font-sans); background: var(--brand-charcoal); color: var(--brand-cream); }
button, input, select, textarea { font-family: inherit; }
.topbar { background: var(--brand-charcoal); border-color: var(--md-outline-soft); backdrop-filter: none; box-shadow: none; }
.brand { gap: 9px; letter-spacing: -.045em; }
.brand-logo { width: 48px; height: 48px; flex: 0 0 48px; padding: 0; background: transparent; border-radius: 10px; object-fit: contain; }
.brand .brand-wordmark { display: inline; color: var(--brand-cream); font: 400 27px/1 var(--font-sans); letter-spacing: -.045em; text-transform: none; white-space: nowrap; }
.brand-wordmark strong { font-weight: 750; }
.brand-mini { color: var(--brand-cream); font: 650 14px var(--font-sans); letter-spacing: -.025em; }
.nav-link { border-radius: 7px; }
.nav-link.active { background: transparent; color: var(--brand-cream); }
.nav-link.active::after { display: block; height: 3px; left: 14px; right: 14px; bottom: 0; background: var(--brand-red); box-shadow: none; }
.seg.active, .sport-chip.active, .sport-chip.active:not(.fcs-toggle), .fcs-toggle.active {
  background: var(--md-primary-container); color: var(--brand-cream); box-shadow: inset 0 0 0 1px #C36B73;
}
.seg.active span, .sport-chip.active span { color: var(--brand-cream); }
.primary-button, .notification-master { background: var(--brand-red); color: var(--brand-cream); border: 1px solid #C36B73; border-radius: 8px; }
.primary-button:hover, .notification-master:hover { background: #A72C35; }
.notification-master[aria-checked=true] { background: #273E34; border-color: #729985; color: #D1E8D7; }
.profile-button span, .search-button, .icon-button, .score-guide-button { color: var(--brand-cream); background: var(--md-surface-2); box-shadow: none; }
.live-count { background: #273E34; color: #CDE8D3; }
.status-live { color: #F3AF89; }
.status-upcoming { color: #B8CCDF; }
.status-completed { background: #33383B; color: #D2CFC4; }
.game-card.favorite, .game-card.completed-card, .game-card { background: var(--md-surface); border-color: var(--md-outline-soft); }
.game-card.favorite { border-left: 3px solid #C8AF78; }
.game-card.watched { border-right: 3px solid #93B8D0; }
.game-card:hover { background: var(--md-surface-2); border-color: var(--md-outline); box-shadow: none; }
.game-card .team-row, .game-card .team-score, .detail-team-name, .detail-score { color: var(--brand-cream); }
.sport-icon { background: var(--brand-cream); box-shadow: none; }
.sport-icon small { color: var(--brand-charcoal); }
.match-meta, .team-record, .team-rank, .footer, .preference-note, .favorite-help, .subtle { color: var(--md-text-3); }
.detail-panel, dialog, .search-dialog { background: var(--brand-charcoal); border-color: var(--md-outline); }
.detail-section, .detail-drive, .detail-scoreboard, .detail-hero, .detail-summary { border-color: var(--md-outline-soft); background-color: var(--md-surface); }
.notification-settings fieldset, .install-settings details, .notification-team-results { border-color: var(--md-outline); }
.notification-settings legend, .install-settings summary { color: var(--brand-cream); }
.notification-team-results button, .notification-favorites button, .notification-favorites-heading button,
.conference-filter select, .conference-filter optgroup, .notification-team-search input, .notification-team-search select {
  background: var(--md-surface); color: var(--brand-cream); border-color: var(--md-outline);
}
.notification-team-results button small { color: var(--md-text-3); }
.notification-team-results button[aria-pressed=true], .notification-favorites button[aria-pressed=true], .compact-filter-toggle.active {
  background: var(--md-primary-container); color: var(--brand-cream); border-color: #C36B73;
}
.compact-filter-toggle { border-color: var(--md-outline); color: var(--md-text-2); }
.active .filter-switch { background: var(--brand-red); }
.migration-note { border-left: 3px solid var(--brand-red); padding-left: 16px; }
.migration-note h3 { margin: 0 0 8px; font-size: 16px; }
.migration-note a, .migration-note summary, .broadcast-watch-link, .clear-sport-filters { color: var(--brand-cream); text-underline-offset: 3px; }
.migration-note summary { cursor: pointer; min-height: 44px; padding-block: 12px; font-weight: 600; }
.migration-note li { margin-bottom: 10px; color: var(--md-text-2); line-height: 1.5; }
:focus-visible { outline: 2px solid var(--brand-cream); outline-offset: 3px; }
::selection { color: var(--brand-cream); background: #762F37; }
@media (max-width: 600px) {
  .brand-logo { width: 38px; height: 38px; flex-basis: 38px; }
  .brand .brand-wordmark { display: inline; font-size: 22px; }
  .brand { gap: 5px; }
  .topbar { display: grid; grid-template-columns: minmax(0,1fr) auto; height: auto; min-height: 92px; column-gap: 10px; row-gap: 4px; padding-block: 6px; }
  .brand { grid-column: 1; grid-row: 1; }
  .top-actions { grid-column: 2; grid-row: 1; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; margin-left: 0; justify-content: flex-start; }
  .main-nav .nav-link.active::after { display: block; }
  .mobile-sport-filter-toggle, .mobile-sport-panel { background: var(--md-surface); border-color: var(--md-outline-soft); color: var(--brand-cream); }
  .mobile-sport-filter-toggle strong { color: var(--brand-cream); }
  .mobile-sport-filter-chevron { color: var(--md-text-3); }
  .migration-note { padding-left: 12px; }
}
@media (max-width: 360px) { .brand .brand-wordmark { font-size: 20px; } .topbar { column-gap: 6px; } }
