:root {
  --ink: #1f2937;
  --muted: #667085;
  --line: #d7dde5;
  --surface: #ffffff;
  --page: #f4f6f8;
  --navy: #243b53;
  --lime: #dff45b;
  --soft-surface: #f1f4f7;
  --soft-hover: #e9eef4;
  --link: #243b53;
  --interesting: #248a4b;
  --accent-text: #ffffff;
  --panel-shadow: 0 2px 8px rgb(31 41 55 / 5%);
  --danger: #b42335;
  --warning: #8a6818;
  --success: #287a45;
  --nfl-text: #155ca2;
  --nba-text: #b94716;
  --cfb-text: #8c2f39;
}

html[data-theme="everforest"] {
  --ink: #d3c6aa; --muted: #9da9a0; --line: #4f585e; --surface: #2d353b;
  --page: #232a2e; --navy: #7fbbb3; --soft-surface: #343f44; --soft-hover: #3d484d;
  --link: #83c092; --interesting: #a7c080; --accent-text: #1f272b; --panel-shadow: 0 2px 10px rgb(0 0 0 / 22%);
}
html[data-theme="solarized-dark"] {
  --ink: #eee8d5; --muted: #93a1a1; --line: #586e75; --surface: #073642;
  --page: #002b36; --navy: #2aa198; --soft-surface: #0b3b46; --soft-hover: #124652;
  --link: #36b5aa; --interesting: #859900; --accent-text: #002b36; --panel-shadow: 0 2px 10px rgb(0 0 0 / 22%);
}
html[data-theme="vantablack"] {
  --ink: #f2f2f2; --muted: #b6b6b6; --line: #3a3a3a; --surface: #0b0b0b;
  --page: #000000; --navy: #8d8d8d; --soft-surface: #171717; --soft-hover: #222222;
  --link: #dedede; --interesting: #b6b6b6; --accent-text: #000000; --panel-shadow: 0 2px 10px rgb(255 255 255 / 4%);
}
html[data-theme="osaka-jade"] {
  --ink: #d7e3dc; --muted: #81b8a8; --line: #53685b; --surface: #182620;
  --page: #0c1512; --navy: #509475; --soft-surface: #23372b; --soft-hover: #2c4536;
  --link: #8cd3cb; --interesting: #63b07a; --accent-text: #090f0d; --panel-shadow: 0 2px 10px rgb(0 0 0 / 24%);
}
html[data-theme="ristretto"] {
  --ink: #e6d9d6; --muted: #c3b7b8; --line: #72696a; --surface: #2c2525;
  --page: #211b1b; --navy: #f38d70; --soft-surface: #3d2f2a; --soft-hover: #493832;
  --link: #f38d70; --interesting: #adda78; --accent-text: #181414; --panel-shadow: 0 2px 10px rgb(0 0 0 / 24%);
}
html[data-theme="tokyo-night"] {
  --ink: #c0caf5; --muted: #a9b1d6; --line: #414868; --surface: #1f2335;
  --page: #1a1b26; --navy: #7aa2f7; --soft-surface: #24283b; --soft-hover: #2f354f;
  --link: #7dcfff; --interesting: #9ece6a; --accent-text: #0e0e14; --panel-shadow: 0 2px 10px rgb(0 0 0 / 25%);
}
html[data-theme="everforest"] {
  --danger: #e67e80; --warning: #dbbc7f; --success: #a7c080;
  --nfl-text: #7fbbb3; --nba-text: #dbbc7f; --cfb-text: #e67e80;
}
html[data-theme="solarized-dark"] {
  --danger: #ff6e67; --warning: #d9b84a; --success: #a4b500;
  --nfl-text: #58aee8; --nba-text: #ff7b3d; --cfb-text: #f278b8;
}
html[data-theme="vantablack"] {
  --danger: #f2f2f2; --warning: #d0d0d0; --success: #b6b6b6;
  --nfl-text: #dedede; --nba-text: #b6b6b6; --cfb-text: #ffffff;
}
html[data-theme="osaka-jade"] {
  --danger: #ff6b61; --warning: #e5c736; --success: #75c98c;
  --nfl-text: #8cd3cb; --nba-text: #e5c736; --cfb-text: #ff8177;
}
html[data-theme="ristretto"] {
  --danger: #fd6883; --warning: #f9cc6c; --success: #adda78;
  --nfl-text: #8ab4f8; --nba-text: #f38d70; --cfb-text: #fd8fa1;
}
html[data-theme="tokyo-night"] {
  --danger: #f7768e; --warning: #e0af68; --success: #9ece6a;
  --nfl-text: #7dcfff; --nba-text: #ff9e64; --cfb-text: #f7768e;
}
html[data-theme]:not([data-theme="default"]) { color-scheme: dark; }

* { box-sizing: border-box; }
html { min-height: 100%; font-size: 15px; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
main.app-shell { flex: 1 0 auto; }

.app-shell {
  width: 100%;
  max-width: 1500px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 2.5vw, 2.5rem);
}

.navbar {
  min-height: 4.5rem;
  border-color: var(--line) !important;
  background: rgb(255 255 255 / 94%);
}
.navbar-brand { color: var(--ink); font-family: "Manrope", sans-serif; letter-spacing: -.03em; }
.brand-mark {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: .7rem;
  color: var(--lime);
  background: var(--navy);
  font: 800 .72rem/1 "Manrope", sans-serif;
}
.navbar-note { color: var(--muted); font-size: .8rem; }

.access-gate {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding-block: 2rem;
}
.access-card {
  width: min(100%, 24rem);
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1rem 3rem rgb(23 32 51 / 10%);
}
.access-mark {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.25rem;
  place-items: center;
  border-radius: .7rem;
  color: var(--lime);
  background: var(--navy);
  font-size: .7rem;
  font-weight: 800;
}
.access-card h1 { font-size: 1.75rem; }
.access-card > p:not(.eyebrow) { margin: .55rem 0 1.25rem; color: var(--muted); font-size: .8rem; }
.access-card label { display: block; margin-bottom: .35rem; font-size: .72rem; font-weight: 800; }
.access-card input[type="password"] {
  width: 100%;
  padding: .7rem .75rem;
  border: 1px solid #cbd3dc;
  border-radius: .6rem;
  outline: none;
}
.access-card input[type="password"]:focus { border-color: var(--navy); box-shadow: 0 0 0 .2rem rgb(23 50 77 / 12%); }
.access-card button {
  width: 100%;
  margin-top: .75rem;
  padding: .72rem;
  border: 0;
  border-radius: .6rem;
  color: var(--accent-text);
  background: var(--navy);
  font-size: .78rem;
  font-weight: 800;
}
.access-card button:hover { background: #244b6d; }
.access-error { margin-bottom: .75rem; padding: .55rem .65rem; border-radius: .5rem; color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, var(--surface)); font-size: .7rem; }

.dashboard-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.25rem 0 .8rem;
}
.eyebrow {
  margin: 0 0 .35rem;
  color: var(--success);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font: 800 clamp(1.85rem, 3.2vw, 2.8rem)/1.05 "Manrope", sans-serif;
  letter-spacing: -.055em;
}
.date-range { margin: 0; color: var(--muted); font-weight: 700; }
.window-switcher {
  display: inline-flex;
  flex: 0 0 auto;
  padding: .25rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: #e9edf1;
}
.window-switcher a {
  padding: .58rem .8rem;
  border-radius: .55rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.window-switcher a.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 4px rgb(23 32 51 / 12%);
}
.freshness-line {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: .72rem;
}
.data-warning {
  margin-bottom: 1rem;
  padding: .7rem .9rem;
  border: 1px solid #e9cf8f;
  border-radius: .7rem;
  color: var(--warning);
  background: color-mix(in srgb, var(--warning) 14%, var(--surface));
  font-size: .78rem;
}
.data-warning p { margin: 0; }

.sports-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
  padding-bottom: 3rem;
}
.sport-column.card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 5px solid var(--sport-accent);
  border-radius: .15rem;
  background: var(--surface);
  box-shadow: none;
}
.sport-header.card-header {
  display: flex;
  min-height: 4.1rem;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  padding: .65rem .75rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.sport-collapse-toggle {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: .7rem;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}
.sport-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  flex: 0 0 auto;
  border-radius: .12rem;
  color: #fff;
  background: var(--sport-accent);
  font: 800 .82rem/1 "Manrope", sans-serif;
}
.sport-title { display: flex; min-width: 0; flex-direction: column; }
.sport-title strong {
  font: 800 1.18rem/1.1 "Manrope", sans-serif;
  letter-spacing: -.03em;
}
.sport-title small { margin-top: .12rem; color: var(--muted); font-size: .63rem; font-weight: 600; }
.collapse-chevron {
  display: block;
  width: 1rem;
  height: 1rem;
  margin-left: auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 180ms ease;
}
.sport-collapse-toggle[aria-expanded="true"] .collapse-chevron { transform: rotate(180deg); }
.reload-form { flex: 0 0 auto; }
.reload-button.btn {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: .12rem;
  color: var(--muted);
  background: var(--surface);
}
.reload-button.btn:hover { color: #fff; border-color: var(--sport-accent); background: var(--sport-accent); }
.reload-button svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.reload-confirmation {
  margin: 0 1rem .6rem;
  padding: .4rem .55rem;
  border-radius: .45rem;
  color: var(--success);
  background: color-mix(in srgb, var(--success) 14%, var(--surface));
  font-size: .65rem;
  font-weight: 700;
}

.sport-tabs.nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0 .65rem;
  border-bottom: 1px solid var(--line);
  background: #f6f3ec;
}
.sport-tabs .nav-link {
  width: 100%;
  padding: .55rem .35rem .45rem;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .035em;
}
.sport-tabs .nav-link span { margin-left: .15rem; opacity: .55; }
.sport-tabs .nav-link.active {
  color: var(--sport-accent);
  border-bottom-color: var(--sport-accent);
  background: transparent;
  box-shadow: none;
}

.games-list.card-body { padding: .45rem .65rem .65rem; }
.game-day + .game-day { margin-top: .7rem; }
.game-day h3 {
  margin: 0 .25rem .45rem;
  color: var(--muted);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.day-games {
  display: grid;
  grid-template-columns: repeat(auto-fill, 200px);
  gap: .35rem;
}
.game-card {
  display: block;
  width: 200px;
  max-width: 100%;
  padding: .5rem .35rem;
  border: 1px solid var(--line);
  border-radius: 0;
  color: inherit;
  background: transparent;
  text-decoration: none;
  transition: background 100ms ease;
}
.game-card:hover,
.game-card:focus-visible { color: inherit; background: #f3efe6; box-shadow: none; }
.games-list[data-active-filter="interesting"] .game-card:not(.filter-interesting),
.games-list[data-active-filter="focus"] .game-card:not(.filter-focus) { display: none; }
.game-day.is-empty { display: none; }
.day-empty { margin: 0; padding: .65rem .35rem; color: var(--muted); font-size: .62rem; }
.game-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .4rem;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 600;
}
.game-meta > :last-child { overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.live-dot { color: var(--danger); text-transform: uppercase; }
.live-dot::before {
  content: "";
  display: inline-block;
  width: .4rem;
  height: .4rem;
  margin-right: .3rem;
  border-radius: 50%;
  background: var(--danger);
}
.matchup { display: grid; gap: .22rem; }
.team-row { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: .4rem; }
.team-identity { display: flex; min-width: 0; flex: 1; align-items: center; gap: .45rem; }
.team-abbr {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  flex: 0 0 auto;
  border-radius: .08rem;
  color: var(--sport-accent);
  background: #ece8df;
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.team-name-line { display: flex; min-width: 0; flex: 1; align-items: baseline; gap: .4rem; }
.team-identity strong { min-width: 0; overflow: hidden; font-size: .76rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.team-row:not(.winner) .team-identity strong { font-weight: 600; }
.team-identity small { flex: 0 0 auto; color: var(--muted); font-size: .57rem; }
.cfb-rank { color: var(--sport-accent); font-size: .58rem; letter-spacing: -.04em; }
.cfb-rank:empty,
.team-spacer { background: transparent; }
.team-score { font: 800 .9rem/1 "Manrope", sans-serif; }
.empty-state,
.filter-empty { padding: 3rem 1rem; color: var(--muted); text-align: center; }
.empty-state strong,
.filter-empty strong { display: block; color: var(--ink); font-size: .85rem; }
.empty-state p,
.filter-empty p { margin: .25rem 0 0; font-size: .72rem; }

.daily-view {
  max-width: none;
  margin: 0 auto .75rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .15rem;
  background: var(--surface);
  box-shadow: none;
}
.daily-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
}
.daily-view > summary { cursor: pointer; list-style: none; }
.daily-view > summary::-webkit-details-marker { display: none; }
.daily-view[open] .injury-chevron { transform: rotate(180deg); }
.daily-view-header > div:first-child { display: flex; flex-direction: column; }
.daily-view-header strong { font-size: 1rem; }
.daily-view-header span { color: var(--muted); font-size: .68rem; }
.daily-header-actions,
.daily-sport-filters { display: flex; align-items: center; gap: .55rem; }
.daily-sport-filters { gap: .2rem; }
.daily-sport-filters button,
.interesting-toggle {
  padding: .2rem .35rem;
  border: 1px solid #aaa;
  border-radius: 0;
  color: #0000ee;
  background: #fff;
  font-size: .62rem;
  font-weight: 700;
}
.daily-sport-filters button[aria-pressed="true"],
.interesting-toggle[aria-pressed="true"] { color: #fff; border-color: #551a8b; background: #551a8b; }
.daily-game,
.game-card { transition: opacity 130ms ease, background 100ms ease; }
.daily-game.is-dimmed,
.sport-column.highlight-interesting .game-card:not(.filter-interesting) { opacity: .22; }
.game-card.filter-interesting { border: 2px solid #18833b; }
.sport-actions { display: flex; align-items: center; gap: .45rem; }
.interesting-toggle span { opacity: .7; }
.daily-filters { display: flex; gap: .35rem; }
.daily-filters button {
  min-width: 3rem;
  padding: .4rem .55rem;
  border: 1px solid var(--sport-accent);
  border-radius: .5rem;
  color: var(--sport-accent);
  background: #fff;
  font-size: .6rem;
  font-weight: 800;
}
.daily-filters button:hover { background: #f4f6f8; }
.daily-filters button.active {
  color: #fff;
  background: var(--sport-accent);
  box-shadow: 0 2px 6px rgb(23 32 51 / 12%);
}
.daily-group { padding: 1rem 1.15rem; }
.daily-group + .daily-group { border-top: 1px solid var(--line); }
.daily-date { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .6rem; }
.daily-date h2 { margin: 0; font-size: .85rem; font-weight: 800; }
.daily-date time { color: var(--muted); font-size: .65rem; font-weight: 700; }
.daily-game-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, 200px);
  gap: .35rem;
}
.daily-game {
  display: grid;
  width: 200px;
  max-width: 100%;
  grid-template-columns: minmax(0, 1fr) minmax(0, 5rem);
  grid-template-areas:
    "lead meta"
    "matchup matchup";
  gap: .25rem .4rem;
  align-items: center;
  min-width: 0;
  padding: .45rem .25rem;
  border: 1px solid var(--line);
  border-radius: 0;
  color: inherit;
  background: transparent;
  text-decoration: none;
  transition: background 100ms ease;
}
.daily-game:hover,
.daily-game:focus-visible { color: inherit; background: #f3efe6; box-shadow: none; }
.daily-game-lead { grid-area: lead; display: flex; align-items: center; gap: .35rem; flex-wrap: nowrap; }
.daily-sport {
  padding: 0;
  border-radius: 0;
  color: var(--sport-accent);
  background: transparent;
  font-size: .58rem;
  font-weight: 800;
}
.daily-game-lead time { color: var(--muted); font-size: .64rem; font-weight: 700; }
.daily-matchup { grid-area: matchup; display: grid; gap: .18rem; min-width: 0; }
.daily-team { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr) auto; align-items: center; gap: .45rem; min-width: 0; }
.daily-team .team-abbr { width: 1.5rem; height: 1.5rem; border-radius: .38rem; }
.daily-team > strong { overflow: hidden; font-size: .75rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.daily-team.winner > strong { font-weight: 800; }
.daily-team > b { font-size: .78rem; }
.daily-team > small { color: var(--muted); font-size: .58rem; }
.daily-game-meta { grid-area: meta; min-width: 0; color: var(--muted); font-size: .59rem; text-align: right; }
.daily-game-meta > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.daily-empty { margin: 0; padding: .8rem; border-radius: .6rem; color: var(--muted); background: #f6f8f9; font-size: .7rem; text-align: center; }
.daily-filter-empty { margin: 0; padding: 2rem; color: var(--muted); font-size: .75rem; text-align: center; }

.my-teams-view { max-width: 1100px; margin: 0 auto 3rem; }
.favorite-injuries,
.favorite-games {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .15rem;
  background: var(--surface);
  box-shadow: none;
}
.favorite-games { margin-top: 1rem; }
.global-injuries { max-width: 1100px; margin: 1.25rem auto 1.5rem; --sport-accent: var(--navy); }
.dashboard-top {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin: 1.25rem auto 1.5rem;
}
.dashboard-top > * { min-width: 0; }
.dashboard-top .global-injuries,
.dashboard-top .daily-view { width: 100%; max-width: none; margin: 0; }
.global-injuries > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
}
.global-injuries > summary::-webkit-details-marker { display: none; }
.injury-chevron {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 180ms ease;
}
.global-injuries[open] .injury-chevron { transform: rotate(180deg); }
.injury-actions { display: flex; align-items: center; gap: .65rem; }
.my-teams-view .favorite-games { margin-top: 0; }
.today-view { margin-bottom: 3rem; }
.today-view > summary { cursor: pointer; list-style: none; }
.today-view > summary::-webkit-details-marker { display: none; }
.today-view[open] > summary .injury-chevron { transform: rotate(180deg); }
.today-view-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
  padding: .65rem .15rem;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.today-view-header h2 { margin: 0; font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.today-view-header p { margin: .15rem 0 0; color: var(--muted); font-size: .68rem; }
.today-view-meta { display: flex; align-items: center; gap: .75rem; }
.today-view-meta > span { color: var(--muted); font-size: .65rem; }
.today-view .sports-grid { padding-bottom: 0; }
.my-teams-section-heading { padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.my-teams-section-heading h2 { margin: 0; font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.my-teams-section-heading p { margin: .15rem 0 0; color: var(--muted); font-size: .65rem; }
.favorite-injury-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; padding: .75rem; }
.favorite-injury-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 3px solid var(--sport-accent);
  border-radius: .1rem;
  color: inherit;
  text-decoration: none;
  transition: border-color 130ms ease, box-shadow 130ms ease;
}
.favorite-injury-card:hover,
.favorite-injury-card:focus-visible { color: inherit; border-color: var(--sport-accent); box-shadow: 0 .35rem 1rem rgb(23 32 51 / 8%); }
.favorite-injury-card > header,
.favorite-schedule > header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .65rem .75rem; }
.favorite-injury-card h3,
.favorite-schedule h3 { margin: 0; font-size: .8rem; font-weight: 800; }
.favorite-injury-card > header > span { display: grid; min-width: 1.45rem; height: 1.45rem; place-items: center; border-radius: .08rem; color: #fff; background: var(--sport-accent); font-size: .55rem; font-weight: 800; }
.favorite-injury-card ul { display: grid; gap: .3rem; margin: 0; padding: 0 .65rem .65rem; list-style: none; }
.favorite-injury-card li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .38rem .2rem; border-top: 1px solid var(--line); border-radius: 0; background: transparent; font-size: .61rem; }
.favorite-injury-card li > span:first-child { min-width: 0; }
.no-injuries { margin: 0 .65rem .65rem; padding: .7rem; color: var(--muted); background: #f6f8f9; font-size: .65rem; text-align: center; }
.favorite-schedule-grid { display: grid; gap: .75rem; padding: .75rem; }
.favorite-schedule { overflow: hidden; border: 1px solid var(--line); border-top: 3px solid var(--sport-accent); border-radius: .75rem; }
.favorite-schedule > header { border-bottom: 1px solid var(--line); }
.favorite-schedule > header > div { display: flex; flex-direction: column; }
.favorite-schedule > header span { color: var(--muted); font-size: .6rem; }
.favorite-game-list { display: grid; grid-template-columns: 1fr; gap: .4rem; padding: .55rem; }
.favorite-game-list .daily-game { grid-template-columns: 7.5rem minmax(0, 1fr) minmax(4rem, 7rem); padding: .5rem .6rem; }

.injuries-panel { margin: 0 .75rem .8rem; border: 1px solid var(--line); border-radius: .72rem; background: #fafbfc; }
.injuries-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem;
  cursor: pointer;
  list-style: none;
}
.injuries-panel > summary::-webkit-details-marker { display: none; }
.injuries-panel > summary span:first-child { display: flex; flex-direction: column; }
.injuries-panel > summary strong { font-size: .76rem; }
.injuries-panel > summary small { color: var(--muted); font-size: .6rem; }
.injury-total {
  display: grid;
  min-width: 1.6rem;
  height: 1.6rem;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--navy);
  font-size: .6rem;
  font-weight: 800;
}
.injury-list { max-height: 28rem; padding: 0 .55rem .55rem; overflow: auto; }
.injury-team { border-top: 1px solid var(--line); }
.injury-team > summary { padding: .55rem .2rem; cursor: pointer; font-size: .68rem; font-weight: 700; }
.injury-team > summary span { float: right; color: var(--muted); }
.injury-team ul { display: grid; gap: .35rem; margin: 0 0 .55rem; padding: 0; list-style: none; }
.injury-team li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  padding: .4rem .45rem;
  border-radius: .4rem;
  background: #fff;
  font-size: .61rem;
}
.injury-team li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.injury-status { flex: 0 0 auto; padding: .14rem .28rem; border-radius: .25rem; color: var(--warning); background: color-mix(in srgb, var(--warning) 18%, var(--surface)); font-size: .53rem; font-weight: 800; }
.status-out,
.status-injured-reserve { color: var(--danger); background: color-mix(in srgb, var(--danger) 18%, var(--surface)); }

.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .67rem;
}

.favorite-team-panel {
  margin: .75rem 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.favorite-team-panel:first-of-type { margin-top: 1.25rem; }
.section-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem .65rem;
  border-left: 5px solid var(--sport-accent);
  background: #eee;
  cursor: pointer;
  list-style: none;
}
.section-summary::-webkit-details-marker { display: none; }
.section-summary h2 { margin: 0; color: #551a8b; font-size: .95rem; font-weight: 800; }
.section-summary p { margin: .1rem 0 0; color: var(--muted); font-size: .65rem; }
.section-actions { display: flex; align-items: center; gap: .65rem; }
.favorite-team-panel[open] .section-summary .injury-chevron { transform: rotate(180deg); }
.favorite-team-body { display: grid; gap: .75rem; padding: .75rem; }
.team-injury-report,
.team-upcoming-schedule { border: 1px solid var(--line); }
.team-injury-report { width: min(100%, 46rem); margin-inline: auto; }
.team-injury-report > header,
.team-upcoming-schedule > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .4rem .55rem;
  border-bottom: 1px solid var(--line);
  background: #eee;
}
.team-injury-report h3,
.team-upcoming-schedule h3 { margin: 0; font-size: .75rem; font-weight: 800; }
.schedule-time-zone { color: var(--muted); font-size: .62rem; font-weight: 600; }
.team-injury-report header a { color: var(--link); font-size: .65rem; }
.team-injury-report ul { margin: 0; padding: 0 .55rem .55rem; list-style: none; }
.team-injury-report li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: .45rem .1rem;
  border-bottom: 1px dotted #aaa;
  font-size: .65rem;
}
.injury-person { min-width: 0; }
.injury-note { margin: .18rem 0 0; color: var(--muted); font-size: .62rem; line-height: 1.35; }
.favorite-team-calendars { display: grid; gap: 1rem; padding: .75rem; }
.team-calendar { overflow: hidden; border: 1px solid var(--line); border-radius: .35rem; }
.team-calendar h4 {
  margin: 0;
  padding: .55rem .65rem;
  border-bottom: 1px solid var(--line);
  background: var(--soft-surface);
  font-size: .82rem;
  font-weight: 800;
}
.team-calendar-weekdays,
.team-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.team-calendar-weekdays span {
  padding: .35rem;
  border-right: 1px solid var(--line);
  color: var(--muted);
  background: var(--soft-surface);
  font-size: .6rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}
.team-calendar-weekdays span:last-child { border-right: 0; }
.team-calendar-day {
  min-width: 0;
  min-height: 5.5rem;
  padding: .35rem;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--surface);
}
.team-calendar-day:nth-child(7n) { border-right: 0; }
.team-calendar-day.outside-month { color: var(--muted); background: var(--soft-surface); opacity: .65; }
.team-calendar-day > time { display: block; margin-bottom: .3rem; font-size: .6rem; font-weight: 800; }
.calendar-mobile-date { display: none; }
.calendar-games { display: grid; gap: .25rem; }
.calendar-game {
  display: block;
  min-width: 0;
  padding: .3rem;
  color: var(--ink);
  background: var(--soft-surface);
  text-decoration: none;
}
.calendar-game:hover,
.calendar-game:focus-visible { color: var(--link); background: var(--soft-hover); }
.calendar-game strong,
.calendar-game span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-game strong { font-size: .66rem; }
.calendar-game span { margin-top: .12rem; color: var(--muted); font-size: .56rem; }

/* Plain, information-first styling inspired by classic classified listings. */
.daily-view,
.favorite-injuries,
.sport-column.card { border-radius: 0; box-shadow: none; }
.daily-view-header,
.my-teams-section-heading,
.sport-header.card-header { background: #eee; }
.daily-view-header { padding: .55rem .65rem; }
.daily-view-header strong,
.my-teams-section-heading h2 { color: #551a8b; }
.today-view-header {
  padding: .45rem .55rem;
  border: 1px solid var(--line);
  background: #eee;
}
.sport-column.card { border-top: 1px solid var(--line); }
.sport-mark,
.reload-button.btn,
.daily-sport,
.team-abbr { border-radius: 0; }
.daily-team > strong,
.game-card .team-identity strong { color: #0000ee; }
.daily-game:hover .daily-team > strong,
.game-card:hover .team-identity strong { text-decoration: underline; }
.daily-date { background: #eee; }

@media (min-width: 900px) {
  .daily-groups {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: start;
  }
  .daily-group { min-width: 0; padding: 0; }
  .daily-group + .daily-group { border-top: 0; border-left: 1px solid var(--line); }
  .daily-date {
    justify-content: center;
    gap: .35rem;
    margin: 0;
    padding: .4rem .25rem;
    border-bottom: 1px solid var(--line);
  }
  .daily-date h2 { font-size: .78rem; }
  .daily-date time { font-size: .58rem; }
  .daily-game-list { display: flex; flex-direction: column; gap: 0; }
  .daily-game {
    width: 100%;
    padding: .45rem .35rem;
    border: 0;
    border-bottom: 1px dotted #aaa;
  }
  .sport-column .games-list {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    padding: 0;
  }
  .sport-column .game-day { min-width: 0; }
  .sport-column .game-day + .game-day {
    margin-top: 0;
    border-left: 1px solid var(--line);
  }
  .sport-column .game-day h3 {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: .35rem;
    margin: 0;
    padding: .4rem .25rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    background: #eee;
    font-size: .78rem;
    letter-spacing: 0;
    text-transform: none;
  }
  .sport-column .game-day h3 time { color: var(--muted); font-size: .58rem; }
  .sport-column .day-games { display: flex; flex-direction: column; gap: 0; }
  .sport-column .game-card { width: 100%; }
}

@media (max-width: 899.98px) {
  html { font-size: 16px; }
  .dashboard-header { align-items: stretch; flex-direction: column; gap: 1.1rem; padding-top: 1.7rem; }
  .window-switcher { width: 100%; }
  .window-switcher a { flex: 1; }
  .freshness-line { flex-direction: column; gap: .2rem; }
  .dashboard-top { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .dashboard-top .global-injuries { width: 200px; }
  .sports-grid { grid-template-columns: 1fr; gap: .75rem; }
  .sport-column.card { width: 100%; }
  .sport-header.card-header { min-height: 4.4rem; }
  .collapse-chevron { display: block; }
  .sport-content { border-top: 1px solid var(--line); }
  .daily-view-header { align-items: center; flex-direction: row; }
  .daily-group { padding: .65rem; }
  .daily-game-list,
  .day-games { grid-template-columns: minmax(0, 1fr); }
  .daily-game,
  .game-card { width: 100%; }
  .daily-game { gap: .25rem .35rem; padding: .4rem .25rem; }
  .daily-game-lead { gap: .25rem; flex-wrap: nowrap; }
  .daily-game-meta { display: block; text-align: right; }
  .daily-matchup { gap: .05rem; }
  .daily-team { grid-template-columns: 1.1rem minmax(0, 1fr) auto; gap: .2rem; min-height: 1.15rem; }
  .daily-team .team-abbr { width: 1.1rem; height: 1.1rem; }
  .daily-team > strong { font-size: .7rem; line-height: 1.1; }
  .favorite-team-calendars { padding: .55rem; }
  .team-calendar-weekdays { display: none; }
  .team-calendar-grid { display: block; }
  .team-calendar-day { display: none; min-height: 0; border: 0; }
  .team-calendar-day.has-games {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: .5rem;
    padding: .5rem;
    border-bottom: 1px solid var(--line);
  }
  .team-calendar-day.has-games:last-child { border-bottom: 0; }
  .calendar-day-number { display: none; }
  .calendar-mobile-date { display: block; }
  .team-calendar-day > time { margin: .3rem 0 0; font-size: .65rem; }
  .calendar-game { padding: .4rem .5rem; }
  .calendar-game strong { font-size: .72rem; }
  .calendar-game span { font-size: .62rem; }
  .favorite-injury-grid,
  .favorite-game-list { grid-template-columns: 1fr; }
  .favorite-game-list .daily-game { grid-template-columns: 1fr; }
  .app-footer { flex-direction: column; }
}

/* Restrained modern finish: clear hierarchy without decorative badges. */
.favorite-team-panel,
.daily-view,
.sport-column.card {
  border-color: var(--line);
  border-radius: .5rem;
  background: var(--surface);
  box-shadow: var(--panel-shadow);
}
.section-summary {
  border-left: 0;
  border-radius: .5rem;
  background: var(--surface);
}
.favorite-team-panel[open] .section-summary { border-bottom: 1px solid var(--line); border-radius: .5rem .5rem 0 0; }
.section-summary h2,
.daily-view-header strong,
.my-teams-section-heading h2 { color: var(--ink); }
.daily-view-header,
.my-teams-section-heading,
.sport-header.card-header {
  background: var(--surface);
}
.daily-view-header { padding: .7rem .8rem; }
.sport-header.card-header { padding: .75rem .85rem; }
.sport-title strong { color: var(--ink); letter-spacing: -.015em; }
.team-injury-report,
.team-upcoming-schedule { border-color: var(--line); border-radius: .35rem; overflow: hidden; }
.team-injury-report > header,
.team-upcoming-schedule > header,
.daily-date,
.sport-column .game-day h3 {
  background: var(--soft-surface);
}
.daily-date,
.sport-column .game-day h3 { color: var(--ink); }
.daily-team > strong,
.game-card .team-identity strong { color: var(--link); }
.daily-game:hover .daily-team > strong,
.game-card:hover .team-identity strong { color: var(--link); }
.daily-sport { letter-spacing: .03em; }
.daily-game[data-daily-sport="nfl"] .daily-sport { color: var(--nfl-text); }
.daily-game[data-daily-sport="nba"] .daily-sport { color: var(--nba-text); }
.daily-game[data-daily-sport="cfb"] .daily-sport { color: var(--cfb-text); }
.reload-button.btn {
  border-color: var(--line);
  border-radius: .3rem;
  color: var(--muted);
  background: var(--surface);
}
.daily-sport-filters button,
.interesting-toggle {
  padding: .28rem .45rem;
  border-color: var(--line);
  border-radius: .25rem;
  color: var(--ink);
  background: var(--surface);
}
.daily-sport-filters button:hover,
.interesting-toggle:hover { border-color: var(--muted); background: var(--soft-hover); }
.daily-sport-filters button[aria-pressed="true"],
.interesting-toggle[aria-pressed="true"] {
  color: var(--accent-text);
  border-color: var(--navy);
  background: var(--navy);
}
.game-card,
.daily-game { background: var(--surface); }
.game-card:hover,
.game-card:focus-visible,
.daily-game:hover,
.daily-game:focus-visible { background: var(--soft-hover); }
.game-card.filter-interesting { border-color: var(--interesting); }
.data-warning { border-radius: .35rem; }

.app-footer {
  flex: 0 0 auto;
  align-items: center;
  margin-top: 2rem;
  border-color: var(--line);
}
.app-footer a { color: var(--muted); text-decoration: none; }
.app-footer a:hover { color: var(--link); text-decoration: underline; }

.about-page { width: min(100%, 52rem); margin: 0 auto; padding: 2rem 0 3rem; }
.back-link { color: var(--link); font-size: .78rem; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.about-intro { margin: 1.5rem 0 3rem; }
.about-eyebrow {
  margin: 0 0 .35rem;
  color: var(--link);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.about-intro h1,
.about-themes h2 { margin: 0; letter-spacing: -.025em; }
.about-intro h1 { font-size: 2rem; }
.about-themes h2 { font-size: 1.35rem; }
.about-intro > p:not(.about-eyebrow),
.about-themes > p:not(.about-eyebrow) { color: var(--muted); }
.about-intro > p:not(.about-eyebrow) { max-width: 42rem; margin: .65rem 0 0; }
.about-themes > p:not(.about-eyebrow) { margin: .4rem 0 1.25rem; }
.theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.theme-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .85rem;
  width: 100%;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
}
.theme-option:hover { border-color: var(--muted); background: var(--soft-surface); }
.theme-option-active { border-color: var(--navy); box-shadow: 0 0 0 .18rem color-mix(in srgb, var(--navy) 22%, transparent); }
.theme-option strong,
.theme-option small { display: block; }
.theme-option small { margin-top: .12rem; color: var(--muted); font-size: .68rem; }
.theme-swatches {
  display: grid;
  grid-template-columns: repeat(2, 1rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .25rem;
}
.theme-swatches span { width: 1rem; height: 1rem; background: var(--swatch); }
.theme-check { visibility: hidden; color: var(--navy); font-size: 1rem; font-weight: 800; }
.theme-option-active .theme-check { visibility: visible; }

html[data-theme]:not([data-theme="default"]) .access-card,
html[data-theme]:not([data-theme="default"]) .favorite-injury-card,
html[data-theme]:not([data-theme="default"]) .team-injury-report,
html[data-theme]:not([data-theme="default"]) .team-upcoming-schedule,
html[data-theme]:not([data-theme="default"]) .theme-option { background: var(--surface); }
html[data-theme]:not([data-theme="default"]) .access-card input,
html[data-theme]:not([data-theme="default"]) .no-injuries,
html[data-theme]:not([data-theme="default"]) .daily-empty,
html[data-theme]:not([data-theme="default"]) .empty-state,
html[data-theme]:not([data-theme="default"]) .filter-empty { color: var(--muted); background: var(--soft-surface); }
html[data-theme]:not([data-theme="default"]) .favorite-injury-card li,
html[data-theme]:not([data-theme="default"]) .team-abbr { background: var(--soft-surface); }
html[data-theme]:not([data-theme="default"]) .access-card input {
  color: var(--ink);
  border-color: var(--line);
}
html[data-theme]:not([data-theme="default"]) .reload-confirmation {
  color: var(--success);
  background: color-mix(in srgb, var(--success) 14%, var(--surface));
}
html[data-theme]:not([data-theme="default"]) .data-warning {
  color: var(--ink);
  border-color: var(--line);
  background: var(--soft-surface);
}

@media (max-width: 599.98px) {
  .theme-grid { grid-template-columns: 1fr; }
  .app-footer { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
