:root {
  --bg: #06110c;
  --bg-glow: radial-gradient(circle at top, rgba(214, 188, 95, 0.24), transparent 42%), linear-gradient(180deg, #081510 0%, #07130f 42%, #06110c 100%);
  --panel: #101714;
  --panel-strong: #161f1b;
  --text: #f3f7f4;
  --muted: #8ea396;
  --line: #22342b;
  --accent: #54e346;
  --accent-soft: rgba(84, 227, 70, 0.1);
  --accent-soft-strong: rgba(84, 227, 70, 0.16);
  --pass: #54e346;
  --pass-soft: rgba(84, 227, 70, 0.1);
  --error: #ff8d7a;
  --error-soft: rgba(255, 141, 122, 0.18);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: var(--bg-glow);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 21, 16, 0.9);
  backdrop-filter: blur(8px);
}

.topbar--static {
  justify-content: space-between;
}

.topbar-title {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  flex-shrink: 0;
  text-decoration: none;
  justify-content: center;
  padding: 6px;
  border: 1px solid rgba(214, 188, 95, 0.34);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 234, 191, 0.95), rgba(208, 185, 98, 0.82));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.topbar-brand__shield {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.28));
}

.topbar-brand__wordmark {
  display: none;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-welcome {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-btn {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #132019;
  font-size: 0.92rem;
  font-weight: 700;
}

.topbar-btn:hover,
.topbar-btn.is-active {
  border-color: rgba(84, 227, 70, 0.34);
  background: rgba(84, 227, 70, 0.1);
}

.dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 18px 28px;
  display: grid;
  gap: 16px;
}

body.today-games-page {
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

body.today-games-page .topbar,
body.game-detail-page .topbar {
  position: relative;
}

body.today-games-page .dashboard {
  width: min(100%, 1280px);
  min-height: 0;
  height: 100%;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 12px;
}

body.game-detail-page .dashboard {
  width: min(100%, 1280px);
}

body.today-games-page .app-footer,
body.game-detail-page .app-footer {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding-bottom: 10px;
}

body.today-games-page .app-footer__inner,
body.game-detail-page .app-footer__inner {
  padding-top: 10px;
}

body.today-games-page .app-footer__meta,
body.today-games-page .app-footer__updated,
body.game-detail-page .app-footer__meta,
body.game-detail-page .app-footer__updated {
  font-size: 0.76rem;
  line-height: 1.35;
}

body.today-games-page .panel {
  min-height: 0;
}

body.today-games-page .dashboard > .panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
}

body.today-games-page h1 {
  margin-bottom: 4px;
}

body.today-games-page .risk-filter-toolbar {
  margin: 0;
  grid-template-columns: repeat(2, minmax(180px, 220px));
  justify-content: end;
  gap: 10px;
}

body.today-games-page .games-cards {
  min-height: 0;
  height: 100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 10px;
  align-content: stretch;
  overflow: hidden;
}

body.today-games-page .game-card-link {
  display: block;
  min-height: 0;
}

body.today-games-page .game-card {
  height: 100%;
  min-height: 0;
  padding: 10px 12px;
}

body.today-games-page .game-card__selected-check {
  top: 8px;
  right: 8px;
  padding: 2px 7px;
  font-size: 0.64rem;
}

body.today-games-page .team {
  min-width: 0;
}

body.today-games-page .team--favorite {
  padding: 6px 4px 8px;
}

body.today-games-page .team img {
  width: clamp(30px, 4.2vh, 54px);
  height: clamp(30px, 4.2vh, 54px);
}

body.today-games-page .team .name {
  margin-top: 6px;
  font-size: clamp(0.68rem, 0.95vw, 0.86rem);
  line-height: 1.08;
}

body.today-games-page .team .prob {
  margin-top: 3px;
  font-size: clamp(0.74rem, 1.02vw, 0.92rem);
}

body.today-games-page .team-badge {
  margin-top: 4px;
  padding: 2px 6px;
  font-size: 0.62rem;
}

body.today-games-page .vs-wrap {
  min-width: 42px;
  gap: 3px;
}

body.today-games-page .vs {
  padding: 0 4px;
  font-size: 0.76rem;
}

body.today-games-page .game-time-indicator,
body.today-games-page .series-indicator {
  font-size: 0.68rem;
}

body.game-detail-page .detail-header-panel,
body.game-detail-page #game-odds,
body.game-detail-page #game-series-history {
  min-height: 0;
}

body.game-detail-page .detail-header-panel {
  gap: 10px;
  padding: 14px;
}

body.game-detail-page #game-odds {
  padding: 14px;
  gap: 8px;
}

body.game-detail-page #game-odds h2,
body.game-detail-page .section-subtitle {
  margin-bottom: 0;
}

body.game-detail-page .detail-header {
  gap: 10px;
}

body.game-detail-page .detail-toolbar {
  grid-template-columns: minmax(220px, 320px);
  gap: 10px;
}

body.game-detail-page .page-toolbar {
  gap: 10px;
}

body.game-detail-page .detail-jump-nav {
  gap: 6px;
}

body.game-detail-page .detail-jump-nav a {
  padding: 5px 10px;
}

body.game-detail-page .detail-odds-grid {
  min-height: 0;
}

body.game-detail-page .sportsbook-card {
  gap: 10px;
  padding: 10px 12px;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 1fr);
}

body.game-detail-page .sportsbook-card__teams {
  gap: 8px;
}

body.game-detail-page .sportsbook-team-row {
  min-height: 74px;
}

body.game-detail-page .sportsbook-team-row--favorite {
  padding: 5px 8px;
}

body.game-detail-page .sportsbook-team-row__brand {
  gap: 10px;
}

body.game-detail-page .sportsbook-team-row__logo-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

body.game-detail-page .sportsbook-team-row__logo-wrap img {
  width: 38px;
  height: 38px;
}

body.game-detail-page .sportsbook-team-row__name {
  font-size: 0.92rem;
}

body.game-detail-page .sportsbook-team-row__meta {
  margin-top: 3px;
  font-size: 0.76rem;
}

body.game-detail-page .sportsbook-card__markets {
  gap: 5px;
}

body.game-detail-page .sportsbook-market-col {
  gap: 5px;
}

body.game-detail-page .sportsbook-market-col__label {
  font-size: 0.78rem;
}

body.game-detail-page .sportsbook-market-box,
body.game-detail-page .sportsbook-market-box--single {
  min-height: 82px;
  padding: 8px 7px;
}

body.game-detail-page .sportsbook-market-box__primary {
  font-size: 0.9rem;
}

body.game-detail-page .sportsbook-market-box__accent {
  font-size: 0.96rem;
}

body.game-detail-page .sportsbook-market-box__meta {
  font-size: 0.7rem;
}

.app-footer {
  max-width: 1200px;
  margin: 0 auto 28px;
  padding: 0 18px;
}

.app-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
}

.app-footer__legal {
  display: grid;
  gap: 6px;
}

.app-footer__company {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
}

.app-footer__meta {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.app-footer__updated {
  margin: 0;
  min-width: 180px;
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: right;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.panel--hero {
  background: linear-gradient(180deg, rgba(20, 31, 26, 0.98), rgba(14, 21, 18, 0.98));
}

.panel--reveal {
  animation: panel-enter 280ms ease both;
}

@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel--reveal {
    animation: none;
  }
}

h1,
h2 {
  margin: 0 0 12px;
  letter-spacing: 0.01em;
}

.games-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.game-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(42, 55, 44, 0.96), rgba(27, 35, 28, 0.98));
}

.game-card__selected-check {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(104, 228, 29, 0.4);
  background: rgba(104, 228, 29, 0.15);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.game-card-link {
  color: inherit;
  text-decoration: none;
}

.game-card--interactive {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.game-card--interactive:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.34);
  border-color: rgba(104, 228, 29, 0.34);
}

.team {
  text-align: center;
}

.team--favorite {
  padding: 8px 6px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(104, 228, 29, 0.14), rgba(104, 228, 29, 0.03));
  box-shadow: inset 0 0 0 1px rgba(104, 228, 29, 0.22);
}

.team img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.team .name {
  margin-top: 8px;
  font-weight: 600;
}

.team .prob {
  margin-top: 4px;
  color: var(--accent);
  font-size: 0.98rem;
  font-weight: 700;
}

.team-badge,
.favorite-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #071006;
  background: var(--accent);
}

.team-badge {
  margin-top: 6px;
}

.vs {
  padding: 0 10px;
  color: var(--muted);
  font-weight: 700;
}

.vs-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 54px;
}

.game-time-indicator {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.series-indicator {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.table-wrap {
  overflow: auto;
  border: 1px solid rgba(42, 55, 36, 0.9);
  border-radius: 12px;
  background: rgba(8, 12, 9, 0.7);
}

.landing-shell {
  max-width: 1280px;
  margin: 0 auto;
  min-height: calc(100vh - 2px);
  padding: 6px 14px;
  display: flex;
  align-items: center;
}

.landing-hero {
  display: block;
  width: 100%;
}

.landing-intro-card,
.landing-showcase,
.landing-insight-panel {
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(12, 22, 17, 0.98), rgba(10, 18, 14, 0.98));
}

.landing-intro-card {
  padding: 12px;
}

.landing-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(360px, 0.9fr);
  gap: 12px;
  align-items: stretch;
}

.landing-hero-copy {
  padding: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.landing-hero-rail {
  display: grid;
  gap: 14px;
  align-content: start;
}

.landing-brand-mark {
  margin: 2px 0 16px;
  max-width: 360px;
}

.landing-brand-mark img {
  width: 100%;
  height: auto;
  display: block;
}

.landing-eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-title {
  margin: 0;
  max-width: 10.5ch;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 0.92;
}

.landing-copy {
  max-width: 33ch;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.36;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.cta-btn:hover {
  transform: translateY(-1px);
}

.cta-btn--primary {
  border-color: rgba(104, 228, 29, 0.4);
  background: rgba(104, 228, 29, 0.12);
  color: var(--text);
}

.cta-btn--secondary {
  background: linear-gradient(180deg, #314033, #222d24);
  color: var(--text);
}

.landing-mini-label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.landing-showcase {
  padding: 12px 12px 14px;
}

.landing-matchup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 2px 0 10px;
}

.landing-matchup__title {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  text-align: center;
}

.landing-team-badge {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 900;
  background: linear-gradient(180deg, #f4f5f2, #d9ddd5);
  color: #11294a;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.landing-team-badge--home {
  color: #cc2f45;
}

.landing-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.landing-preview-card,
.landing-insight-card {
  min-height: 0;
  padding: 10px 9px;
  border: 1px solid rgba(87, 112, 76, 0.42);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(61, 71, 49, 0.72), rgba(31, 39, 28, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.landing-preview-card--hype {
  background: linear-gradient(180deg, rgba(28, 40, 33, 0.92), rgba(17, 25, 21, 0.96));
}

.landing-preview-card__label {
  margin: 0 0 8px;
  color: #a8b2a8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
}

.landing-preview-card__title {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1;
  text-align: center;
}

.landing-pill-stat {
  width: min(150px, 100%);
  margin: 10px auto 8px;
  padding: 10px 8px;
  border-radius: 999px;
  background: radial-gradient(circle at top, rgba(137, 220, 86, 0.34), rgba(69, 116, 43, 0.84));
  box-shadow: inset 0 0 0 1px rgba(149, 228, 104, 0.28);
  text-align: center;
}

.landing-pill-stat strong,
.landing-pill-stat span {
  display: block;
}

.landing-pill-stat strong {
  font-size: 1.05rem;
}

.landing-pill-stat span {
  margin-top: 4px;
  color: #dce7d9;
  font-size: 0.82rem;
  font-weight: 700;
}

.landing-split-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #eef5ef;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.landing-split-stat strong {
  font-size: 0.98rem;
}

.landing-total-chip {
  margin: 8px auto;
  width: 76px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 224, 148, 0.42);
  background: rgba(12, 15, 12, 0.72);
  font-size: 1.45rem;
  font-weight: 900;
}

.landing-preview-card__footnote {
  margin: 8px 0 0;
  color: #ece6c5;
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
}

.landing-ring {
  width: 102px;
  height: 102px;
  margin: 12px auto 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#d7c74d 0 22%, #9ee447 22% 78%, #1f2b24 78% 100%);
  position: relative;
}

.landing-ring::before {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: #0d1511;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.landing-ring__inner {
  position: relative;
  z-index: 1;
  font-size: 1.55rem;
  font-weight: 900;
}

.landing-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.landing-insight-card__value {
  display: block;
  margin-top: 10px;
  font-size: 1.5rem;
  font-weight: 900;
  text-align: center;
}

.landing-insight-card__copy {
  margin: 8px 0 0;
  color: #b9c5bb;
  font-size: 0.78rem;
  line-height: 1.3;
  text-align: center;
}

.landing-arc {
  width: 120px;
  height: 64px;
  margin: 8px auto 0;
  border-top-left-radius: 120px;
  border-top-right-radius: 120px;
  overflow: hidden;
  position: relative;
  background: conic-gradient(from 180deg, #e0c95a 0 16%, #76eb52 16% 82%, #33392d 82% 100%);
}

.landing-arc::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  bottom: -38px;
  border-radius: 999px;
  background: #101713;
}

.landing-arc__value {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 1rem;
  font-weight: 900;
}

.landing-arc__needle {
  position: absolute;
  right: 24px;
  bottom: 10px;
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d1b552, #f7e9b0);
  transform-origin: left center;
  transform: rotate(-24deg);
  z-index: 1;
}

.landing-arc__needle::after {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #f0d469;
  box-shadow: 0 0 0 3px rgba(240, 212, 105, 0.18);
}

.landing-meta-strip {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(84, 227, 70, 0.14);
  display: grid;
  gap: 4px;
}

.landing-meta-strip__copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.25;
}

.landing-meta-strip__copy a {
  color: var(--accent);
}

@media (max-width: 960px) {
  .landing-shell {
    max-width: 760px;
    min-height: auto;
    display: block;
  }

  .landing-hero-layout {
    grid-template-columns: 1fr;
  }

  .landing-intro-card {
    padding: 18px;
  }

  .landing-hero-copy {
    padding: 4px 2px 0;
  }

  .landing-brand-mark {
    margin-bottom: 20px;
    max-width: 300px;
  }

  .landing-preview-grid {
    grid-template-columns: 1fr;
  }

  .landing-preview-card,
  .landing-insight-card {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .landing-shell {
    padding: 18px 12px 24px;
  }

  .landing-brand-mark {
    max-width: 240px;
  }

  .landing-title,
  .landing-copy {
    max-width: none;
  }

  .landing-title {
    font-size: clamp(2.6rem, 12vw, 4.1rem);
  }

  .landing-copy {
    font-size: 1rem;
  }

  .landing-matchup {
    gap: 10px;
  }

  .landing-team-badge {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    font-size: 1rem;
  }

  .landing-matchup__title {
    font-size: 1.3rem;
  }

  .landing-insight-grid {
    grid-template-columns: 1fr;
  }

  .landing-ring {
    width: 136px;
    height: 136px;
  }

  .landing-arc {
    width: 150px;
    height: 80px;
  }
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  white-space: nowrap;
  font-size: 0.9rem;
  vertical-align: top;
}
th {
  position: sticky;
  top: 0;
  background: #17211c;
  z-index: 1;
}
tbody tr:nth-child(even) {
  background: rgba(14, 23, 18, 0.35);
}
tbody tr:hover {
  background: rgba(84, 227, 70, 0.08);
}
.table-empty {
  text-align: center;
  color: var(--muted);
  padding: 16px;
}
.table-sort-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}
.table-sort-btn:hover {
  color: var(--accent);
}
.group-row td {
  position: sticky;
  top: 39px;
  z-index: 1;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #223026;
}
.group-row__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
}
.group-row__event {
  font-weight: 700;
  letter-spacing: 0.01em;
}
.group-row__event-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed rgba(84, 227, 70, 0.35);
}
.group-row__event-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.group-row__date {
  color: var(--muted);
  font-size: 0.82rem;
}
.row--event-start td {
  border-top: 2px solid #5f7854;
}
.row--team {
  background: linear-gradient(90deg, var(--accent-soft), rgba(31, 43, 34, 0.92) 45%, rgba(24, 32, 25, 0.96) 100%);
}

/* Made bet checkbox */
.bet-made-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}
.bet-made-checkbox:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.bet-made-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: 2px solid #0d1a14;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.bet-made-checkbox:hover {
  border-color: #b4ff8b;
}
.row--pass {
  background: linear-gradient(90deg, var(--pass-soft), rgba(31, 43, 34, 0.92) 45%, rgba(24, 32, 25, 0.96) 100%);
}
.row--highlight-under {
  background: linear-gradient(90deg, rgba(224, 180, 67, 0.22), rgba(31, 43, 34, 0.92) 45%, rgba(24, 32, 25, 0.96) 100%);
}
.event-cell {
  display: grid;
  gap: 2px;
}
.event-name {
  font-weight: 700;
}
.event-date,
.muted {
  color: var(--muted);
  font-size: 0.82rem;
}
.bet-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.bet-tag--team_win {
  color: var(--accent);
  background: var(--accent-soft);
}
.bet-tag--player_prop {
  color: #9fd2ff;
  background: rgba(37, 94, 135, 0.26);
}
.selection-cell {
  display: grid;
  gap: 4px;
}
.selection-main,
.player-name {
  font-weight: 600;
}
.player-name,
td[data-col="market"] .selection-main {
  white-space: normal;
}
.status-pill {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
}

.history-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.history-stat {
  background: linear-gradient(180deg, rgba(40, 53, 42, 0.96), rgba(27, 35, 28, 0.98));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

.history-stat__label {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.history-stat__value {
  margin-top: 6px;
  font-size: 1.3rem;
  font-weight: 800;
}

.history-stat__sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}
.history-stat--scale {
  grid-column: span 2;
}
.history-stat--mixbar {
  grid-column: span 2;
}
.stake-mix-bar {
  margin-top: 8px;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: #1a2720;
  border: 1px solid var(--line);
  display: flex;
}
.stake-mix-bar__safe {
  background: linear-gradient(90deg, #79f05d, #4dcb3d);
}
.stake-mix-bar__risky {
  background: linear-gradient(90deg, #f3ba78, #e77e54);
}
.odds-scale-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.props-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin: 8px 0 12px;
}

.props-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.props-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #122019;
  color: var(--text);
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.props-chip span {
  color: var(--muted);
  margin-left: 4px;
}

.props-chip.is-active {
  border-color: rgba(84, 227, 70, 0.45);
  background: rgba(84, 227, 70, 0.14);
}

.market-cell {
  display: grid;
  gap: 5px;
}

.history-chart-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0f1814;
}

#history-chart {
  width: 100%;
  min-width: 860px;
  height: auto;
  display: block;
}

.history-result {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 0.75rem;
  font-weight: 800;
}

.history-result--win {
  color: #08110c;
  background: var(--accent);
}

.history-result--loss {
  color: #2c1207;
  background: #f1a27e;
}

.trend--up {
  color: var(--accent);
}

.trend--down {
  color: #ff9f79;
}
.status-pill--pass {
  color: var(--pass);
  background: var(--pass-soft);
}
.status-pill--safe {
  color: #08110c;
  background: var(--accent);
}
.status-pill--safe-soft {
  color: #1a3a08;
  background: rgba(104, 228, 29, 0.18);
}
.status-pill--risky {
  color: #2c1207;
  background: #f1a27e;
}
.status-pill--risky-soft {
  color: #ffd8c7;
  background: rgba(214, 104, 66, 0.2);
}
.status-pill--neutral {
  color: #d5dde5;
  background: rgba(133, 147, 166, 0.24);
}
.status-pill--highlight {
  color: #f3dc8c;
  background: rgba(163, 124, 20, 0.28);
}
.odds-cell {
  display: grid;
  gap: 5px;
}
.odds-cell__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.odds-value {
  font-weight: 700;
}
.odds-scale-score {
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 700;
}
.row--team td[data-col="recommended_bet"],
.row--team td[data-col="bankroll_before"],
.row--team td[data-col="bankroll_after"],
.row--team td[data-col="kelly_fraction_used"] {
  font-weight: 700;
}
.row--pass td[data-col="recommended_bet"] {
  color: var(--pass);
}
.empty {
  color: var(--muted);
  padding: 10px 2px;
}
.detail-dashboard {
  max-width: 1280px;
}
.detail-header-panel {
  display: grid;
  gap: 12px;
}
.back-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.detail-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.detail-toolbar {
  display: grid;
  grid-template-columns: minmax(320px, 1.4fr) minmax(240px, 1fr);
  gap: 14px;
}
@media (max-width: 900px) {
  .history-stat--scale {
    grid-column: span 1;
  }
}
.detail-subtitle {
  margin: 6px 0 0;
}
.section-subtitle {
  margin: -4px 0 10px;
}
.detail-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.detail-jump-nav a {
  text-decoration: none;
  color: #d8ebdd;
  border: 1px solid #2c4437;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  background: linear-gradient(180deg, #16231c, #101a15);
}
.detail-jump-nav a:hover {
  border-color: rgba(84, 227, 70, 0.42);
  color: #f0fff2;
  background: rgba(84, 227, 70, 0.13);
}
.bankroll-control {
  display: grid;
  gap: 6px;
  min-width: 180px;
  font-weight: 600;
}
.bankroll-input-row {
  display: grid;
  gap: 8px;
}
.bankroll-control input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}
.bankroll-note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
}

.arb-page.is-loading .panel:not(.panel--hero) {
  opacity: 0.72;
}

.game-page.is-loading .panel:not(.panel--hero),
.risk-page.is-loading .panel:not(.panel--hero) {
  opacity: 0.72;
}

.page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.page-last-updated {
  margin: 0;
}

.page-banner {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 8px;
}

.page-banner--error {
  border-color: rgba(214, 104, 66, 0.55);
  background: rgba(214, 104, 66, 0.12);
  color: #ffd8c7;
}

.page-banner--warn {
  border-color: rgba(230, 180, 90, 0.55);
  background: rgba(230, 180, 90, 0.14);
  color: #ffe4a8;
}

.page-banner--success {
  border-color: rgba(94, 190, 126, 0.55);
  background: rgba(94, 190, 126, 0.14);
  color: #c9ffd9;
}

.pipeline-page.is-loading .panel:not(.panel--hero) {
  opacity: 0.72;
}

.pipeline-toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.pipeline-date-control {
  min-width: 180px;
}

.pipeline-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.pipeline-progress-wrap {
  margin: 12px 0;
}

.pipeline-progress-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-weight: 600;
}

.pipeline-progress-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  overflow: hidden;
}

.pipeline-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(104, 228, 29, 0.72), rgba(150, 240, 86, 0.96));
  transition: width 0.25s ease;
}

.pipeline-page .series-history-details {
  margin-bottom: 10px;
}

.pipeline-page .series-history-details summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.arb-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.game-portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.game-portfolio-title {
  margin: 0;
}

.game-portfolio-subtitle {
  margin: 4px 0 0;
}

.game-view-control {
  margin: 0;
}

.sim-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sim-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.sim-btn:hover {
  border-color: rgba(84, 227, 70, 0.55);
}

.sim-btn.is-active[data-sim-state="win"] {
  border-color: rgba(84, 227, 70, 0.75);
  background: rgba(84, 227, 70, 0.2);
  color: #d8ffd2;
}

.sim-btn.is-active[data-sim-state="loss"] {
  border-color: rgba(214, 104, 66, 0.75);
  background: rgba(214, 104, 66, 0.2);
  color: #ffd8c7;
}

.sim-btn--clear {
  opacity: 0.85;
}

.group-order-controls {
  float: right;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.market-group-row {
  cursor: grab;
  user-select: none;
}

.market-group-row.is-dragging {
  opacity: 0.6;
}

.market-group-row.is-drop-target td {
  box-shadow: inset 0 -2px 0 rgba(84, 227, 70, 0.55);
}

.market-drag-handle {
  display: inline-block;
  margin-right: 8px;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 1px;
}

.group-move-btn {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 8px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.group-move-btn:hover:not(:disabled) {
  border-color: rgba(84, 227, 70, 0.55);
}

.group-move-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.arb-last-updated {
  margin: 0;
}

.arb-banner {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 8px;
}

.arb-banner--error {
  border-color: rgba(214, 104, 66, 0.55);
  background: rgba(214, 104, 66, 0.12);
  color: #ffd8c7;
}

.section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(84, 227, 70, 0.12);
  color: #d9ffd3;
  font-size: 0.78rem;
  font-weight: 800;
  vertical-align: middle;
}

@media (max-width: 760px) {
  .arb-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-portfolio-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-count {
    margin-left: 6px;
  }
}

.game-picker-control {
  min-width: 280px;
}
.game-picker-select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #314033;
  color: var(--text);
}
.detail-odds-grid {
  display: grid;
  gap: 12px;
}
.game-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.snapshot-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(45, 59, 47, 0.95), rgba(29, 38, 31, 0.95));
}
.snapshot-card__label {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.snapshot-card__value {
  margin-top: 7px;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.2;
}
.snapshot-card__sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
}
.series-history-details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(45, 59, 47, 0.95), rgba(29, 38, 31, 0.95));
}
.series-history-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.series-history-details[open] summary {
  margin-bottom: 12px;
}

.team-game-row {
  cursor: pointer;
}

.team-game-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.sportsbook-card {
  display: grid;
  grid-template-columns: minmax(280px, 1.3fr) minmax(420px, 1fr);
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(180deg, #334235, #222d24);
}
.sportsbook-card__teams {
  display: grid;
  gap: 14px;
}
.sportsbook-team-row {
  min-height: 110px;
  display: flex;
  align-items: center;
}
.sportsbook-team-row--favorite {
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(84, 227, 70, 0.12), rgba(84, 227, 70, 0.03));
  box-shadow: inset 0 0 0 1px rgba(84, 227, 70, 0.18);
  padding: 8px 12px;
}
.sportsbook-team-row--divider {
  min-height: auto;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.18em;
  gap: 14px;
}
.sportsbook-team-row--divider::after {
  content: "";
  height: 2px;
  flex: 1;
  background: linear-gradient(90deg, rgba(84, 227, 70, 0.04), rgba(84, 227, 70, 0.22), rgba(84, 227, 70, 0.04));
}
.sportsbook-team-row__brand {
  display: flex;
  align-items: center;
  gap: 18px;
}
.sportsbook-team-row__logo-wrap {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: #232625;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.sportsbook-team-row__logo-wrap img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.sportsbook-team-row__name {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sportsbook-team-row__meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}
.sportsbook-card__markets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.sportsbook-empty-note {
  grid-column: 1 / -1;
  border: 1px dashed #2e4638;
  border-radius: 12px;
  background: rgba(84, 227, 70, 0.06);
  color: #c6d7cc;
  padding: 10px 12px;
  font-size: 0.9rem;
}
.sportsbook-market-col {
  display: grid;
  grid-template-rows: auto 1fr 1fr;
  gap: 8px;
}
.sportsbook-market-col__label {
  text-align: center;
  color: #c4d1c8;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.sportsbook-market-box {
  min-height: 128px;
  display: grid;
  place-items: center;
  gap: 8px;
  border-radius: 14px;
  background: #242625;
  border: 1px solid #2d342f;
  text-align: center;
  padding: 14px 10px;
}
.sportsbook-market-box--single {
  min-height: 128px;
}
.sportsbook-market-box__primary {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f0f5f1;
}
.sportsbook-market-box__accent {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
}
.sportsbook-market-box__meta {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.risk-dashboard {
  gap: 14px;
}

.risk-filter-panel {
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 6;
  overflow: visible;
}

.risk-filter-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 4px;
  margin-bottom: 14px;
}

.risk-explanation-panel {
  position: relative;
  z-index: 1;
}

.search-dropdown-host {
  min-width: 0;
}

.search-dropdown {
  position: relative;
}

.search-dropdown__label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.search-dropdown__trigger {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  background: linear-gradient(180deg, #15211a, #101914);
  text-align: left;
  cursor: pointer;
}

.search-dropdown__trigger:hover,
.search-dropdown-host.is-open .search-dropdown__trigger {
  border-color: rgba(84, 227, 70, 0.42);
  box-shadow: 0 0 0 2px rgba(84, 227, 70, 0.12);
}

.search-dropdown__menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 25;
  border: 1px solid #2a3f33;
  border-radius: 12px;
  background: #0f1814;
  box-shadow: var(--shadow);
  padding: 8px;
}

.search-dropdown-host.is-open .search-dropdown__menu {
  display: block;
}

.search-dropdown__search {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  color: var(--text);
  background: #111c17;
}

.search-dropdown__list {
  margin-top: 8px;
  max-height: 220px;
  overflow: auto;
  display: grid;
  gap: 4px;
}

.search-dropdown__option {
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 8px 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.search-dropdown__option:hover {
  background: rgba(84, 227, 70, 0.1);
  border-color: rgba(84, 227, 70, 0.25);
}

.search-dropdown__option.is-selected {
  background: rgba(84, 227, 70, 0.16);
  border-color: rgba(84, 227, 70, 0.38);
  font-weight: 700;
}

.risk-explanation-panel p {
  margin: 0;
}

.risk-scoring-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.risk-scoring-card {
  border: 1px solid #274033;
  border-radius: 16px;
  padding: 14px 15px;
  background: rgba(18, 31, 24, 0.88);
}

.risk-scoring-card__label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.risk-scoring-card__value {
  margin-top: 6px;
  font-size: 1.4rem;
  font-weight: 800;
}

.risk-scoring-card__sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.risk-card {
  grid-template-rows: 1fr auto;
  row-gap: 10px;
}

.risk-card__meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #213429;
  padding-top: 10px;
}

.risk-card__split {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.risk-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.bet-assistant-form {
  display: grid;
  gap: 10px;
}

.bet-assistant-form__label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.bet-assistant-form__input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #101a15;
  resize: vertical;
}

.bet-assistant-form__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bet-assistant-example-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.bet-answer-summary {
  margin-bottom: 12px;
}

.bet-model-explanation {
  border: 1px solid rgba(84, 227, 70, 0.25);
  background: linear-gradient(180deg, rgba(19, 36, 25, 0.92), rgba(11, 19, 15, 0.95));
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.bet-model-explanation__title {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.bet-model-explanation__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #e7f8eb;
}

.bet-model-explanation__overview {
  margin-bottom: 16px;
}

.bet-model-explanation__teams {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.bet-model-explanation__team {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(84, 227, 70, 0.16);
  background: rgba(11, 19, 15, 0.46);
}

.bet-model-explanation__team-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #f4fff6;
}

.bet-model-explanation__list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 8px;
  color: #e7f8eb;
}

.bet-model-explanation__list li {
  line-height: 1.45;
}

.bet-trend-chart {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(11, 19, 15, 0.82);
  padding: 12px;
  margin-bottom: 12px;
}

.bet-trend-svg {
  width: 100%;
  max-height: 210px;
  display: block;
}

.bet-trend-grid {
  stroke: rgba(84, 227, 70, 0.14);
  stroke-width: 1;
}

.bet-trend-axis-label {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.bet-trend-ref-line {
  stroke-width: 1.6;
  stroke-dasharray: 5 4;
  opacity: 0.9;
}

.bet-trend-ref-line--projected {
  stroke: #75d8b8;
}

.bet-trend-ref-line--requested {
  stroke: #f68ea3;
}

.bet-trend-ref-label {
  fill: var(--text);
  font-size: 10px;
  font-weight: 700;
}

.bet-trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.bet-trend-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
}

.bet-trend-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.bet-trend-legend-swatch--projected {
  background: transparent;
  border: 2px dashed #75d8b8;
}

.bet-trend-legend-swatch--requested {
  background: transparent;
  border: 2px dashed #f68ea3;
}

@media (max-width: 760px) {
  .bet-assistant-form__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

.risk-pill--safe-leaning {
  color: #0e130a;
  background: #9ff35f;
}

.risk-pill--risky-leaning {
  color: #2e120b;
  background: #ffb084;
}

.risk-pill--balanced {
  color: #12220f;
  background: #75d8b8;
}

.risk-pill--no-bets {
  color: #d4e0d8;
  background: #324a3e;
}

@media (max-width: 720px) {
  .dashboard {
    padding: 12px;
  }
  .topbar {
    padding: 10px 12px;
  }
  .topbar--static {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
  }
  .topbar-nav {
    width: 100%;
    flex-wrap: wrap;
  }
  .panel {
    padding: 12px;
  }
  th, td {
    font-size: 0.84rem;
    padding: 9px 7px;
  }
  .group-row td {
    top: 37px;
  }
  .group-row__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .detail-header {
    flex-direction: column;
    align-items: stretch;
  }
  .detail-toolbar {
    grid-template-columns: 1fr;
  }
  .risk-filter-toolbar {
    grid-template-columns: 1fr;
  }
  .sportsbook-card {
    grid-template-columns: 1fr;
  }
  .sportsbook-card__markets {
    grid-template-columns: 1fr;
  }
  .sportsbook-market-box,
  .sportsbook-market-box--single {
    min-height: auto;
  }
}

/* Market-type badges in player props tables */
.market-type-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.market-type-badge--hits {
  background: rgba(26, 107, 191, 0.16);
  color: #79bbff;
}
.market-type-badge--total_bases {
  background: rgba(215, 164, 47, 0.16);
  color: #f0c96b;
}
.market-type-badge--rbi {
  background: rgba(41, 122, 32, 0.16);
  color: #88dc73;
}
.market-type-badge--home_runs {
  background: rgba(180, 35, 60, 0.16);
  color: #ff93a4;
}
.market-type-badge--moneyline {
  background: rgba(33, 94, 166, 0.16);
  color: #87b8ff;
}
.market-type-badge--total {
  background: rgba(45, 122, 58, 0.16);
  color: #8ce28e;
}
.market-type-badge--run_line {
  background: rgba(215, 164, 47, 0.16);
  color: #efc062;
}
.market-type-badge--runs {
  background: rgba(52, 70, 182, 0.16);
  color: #96a3ff;
}
.market-type-badge--batter_strikeouts {
  background: rgba(122, 44, 191, 0.16);
  color: #c79dff;
}
.market-type-badge--pitcher_strikeouts {
  background: rgba(28, 135, 99, 0.16);
  color: #79d7b8;
}
.market-type-badge--unmodeled {
  background: #2b2216;
  color: #d9bc8c;
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — additional breakpoints
   ══════════════════════════════════════════════════════════════════ */

/* ── Tablet (≤ 960px): sportsbook card stacks, toolbars reduce ───── */
@media (max-width: 960px) {
  .sportsbook-card {
    grid-template-columns: 1fr;
  }
  .sportsbook-card__markets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .detail-toolbar {
    grid-template-columns: 1fr;
  }
  .risk-filter-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .history-stat--scale,
  .history-stat--mixbar {
    grid-column: span 1;
  }
}

/* ── Small phone (≤ 560px) ──────────────────────────────────────── */
@media (max-width: 560px) {
  .topbar {
    padding: 8px 10px;
    gap: 8px;
  }
  .app-footer {
    padding: 0 10px;
    margin-bottom: 16px;
  }
  .app-footer__inner {
    flex-direction: column;
  }
  .app-footer__updated {
    min-width: 0;
    text-align: left;
  }
  .topbar-btn {
    padding: 6px 8px;
    font-size: 0.82rem;
  }
  .dashboard {
    padding: 8px 10px 16px;
  }
  .panel {
    padding: 10px;
  }
  .game-snapshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .snapshot-card {
    padding: 10px;
  }
  .snapshot-card__value {
    font-size: 0.95rem;
  }
  .sportsbook-card__markets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .team img {
    width: 48px;
    height: 48px;
  }
  th, td {
    font-size: 0.78rem;
    padding: 7px 5px;
  }
  .history-stat--scale,
  .history-stat--mixbar {
    grid-column: span 1;
  }
  .detail-jump-nav a {
    padding: 5px 10px;
    font-size: 0.78rem;
  }
  .risk-filter-toolbar {
    grid-template-columns: 1fr;
  }
}

/* ── Very small phones (≤ 380px) ───────────────────────────────── */
@media (max-width: 380px) {
  .topbar-btn {
    padding: 5px 7px;
    font-size: 0.76rem;
  }
  .team img {
    width: 40px;
    height: 40px;
  }
  .sportsbook-card__markets {
    grid-template-columns: 1fr;
  }
  .game-snapshot-grid {
    grid-template-columns: 1fr;
  }
}

body.today-games-page .app-footer,
body.game-detail-page .app-footer {
  margin-bottom: 0;
}

@media (max-width: 1200px) {
  body.today-games-page .games-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.today-games-page .games-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body.today-games-page .topbar--static {
    flex-wrap: wrap;
    justify-content: center;
  }

  body.today-games-page .topbar-brand {
    order: 1;
  }

  body.today-games-page .topbar-welcome {
    order: 2;
    flex: 1 0 100%;
    white-space: normal;
    line-height: 1.1;
    font-size: 0.92rem;
  }

  body.today-games-page .topbar-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  body.today-games-page .games-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.today-games-page .risk-filter-toolbar {
    grid-template-columns: 1fr;
  }
}
