:root {
  color-scheme: dark;
  --bg: #070b12;
  --surface: #101722;
  --surface-2: #151d2a;
  --surface-3: #1b2635;
  --ink: #eef5ff;
  --muted: #9aa9bb;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --gold: #f3c95b;
  --green: #29c780;
  --teal: #2fc7b5;
  --blue: #6f94ff;
  --blue-strong: #3b82f6;
  --red: #ff6b7a;
  --crimson: #e11d48;
  --violet: #b284ff;
  --shadow: rgba(0, 0, 0, 0.24);
  --shadow-strong: rgba(0, 0, 0, 0.42);
  --focus-ring: rgba(243, 201, 91, 0.32);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Fira Sans", Arial, "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

h1, h2, h3, h4, p {
  margin-top: 0;
}

p {
  color: var(--muted);
}

.floating-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  min-height: 58px;
  padding: 8px 10px 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(7, 11, 18, 0.82);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.floating-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.floating-nav .brand {
  color: var(--gold);
  font-size: 18px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.nav-links a {
  border-radius: 6px;
  padding: 9px 11px;
  color: var(--muted);
  font-size: 13px;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.nav-auth {
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 9px 12px;
  color: #0b1018 !important;
  background: var(--gold);
  white-space: nowrap;
}

.nav-account { display: flex; gap: 6px; align-items: center; min-width: 0; }
button.nav-auth { max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
.nav-auth.is-signed-in { border-color: rgba(41, 199, 128, 0.7); background: var(--green); }
.nav-signout { border-color: var(--line-strong); padding: 9px 10px; color: var(--muted); background: var(--surface-2); }

.auth-open { overflow: hidden; }
.auth-shell[hidden] { display: none; }
.auth-shell { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.auth-backdrop { position: absolute; inset: 0; background: rgba(2, 5, 9, 0.88); backdrop-filter: blur(12px); }
.auth-dialog {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  border: 1px solid rgba(243, 201, 91, 0.36);
  border-radius: 8px;
  padding: 30px;
  background: #0d141e;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.64);
}
.auth-dialog::before { content: ''; position: absolute; top: 0; left: 0; width: 86px; height: 4px; background: var(--gold); }
.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-color: var(--line);
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 24px;
  line-height: 1;
}
.auth-shell[data-required='true'] .auth-close { display: none; }
.auth-brand span { color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: 0.12em; }
.auth-brand h2 { margin: 9px 0 8px; font-size: 30px; }
.auth-brand p { margin-bottom: 22px; line-height: 1.55; }
.google-login {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  width: 100%;
  border-color: var(--line-strong);
  color: var(--ink);
  background: #151d28;
}
.google-login b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #4285f4;
  background: #fff;
  font-family: Georgia, serif;
}
.google-login span { grid-column: 2; }

.telegram-login {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  width: 100%;
  margin-top: 10px;
  border-color: rgba(41, 169, 235, 0.52);
  color: var(--ink);
  background: #12202b;
}

.telegram-login b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  background: #229ed9;
  font-size: 14px;
}

.telegram-login span { grid-column: 2; }
.telegram-login:disabled { cursor: not-allowed; opacity: 0.58; }
.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin: 20px 0;
  color: var(--muted);
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; background: var(--line); }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 4px;
  background: #080d14;
}
.auth-tabs button { border-color: transparent; color: var(--muted); background: transparent; }
.auth-tabs button.active { border-color: var(--line-strong); color: var(--ink); background: var(--surface-3); }
.auth-form { display: grid; gap: 10px; }
.auth-form label { margin-top: 2px; font-weight: 800; }
.auth-form input { min-height: 46px; }
.auth-form button[type='submit'] { min-height: 46px; margin-top: 6px; }
.auth-link { justify-self: center; border: 0; padding: 4px; color: var(--gold); background: transparent; font-size: 13px; }
.auth-status { min-height: 20px; margin: 14px 0 0; font-size: 13px; line-height: 1.5; }
.auth-status.error { color: #ffb1ba; }
.auth-status.success { color: #7ee2ae; }
.auth-terms { margin: 10px 0 0; color: #718195; font-size: 11px; line-height: 1.5; text-align: center; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: #090f18;
}

.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-shade {
  z-index: 1;
  background: rgba(7, 11, 18, 0.58);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 128px 0 76px;
}

.hero-kicker {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 960px;
  margin: 0;
  font-size: clamp(82px, 16vw, 210px);
  line-height: 0.86;
  letter-spacing: 0;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.48);
}

.hero-tagline {
  max-width: 940px;
  margin: 16px 0 18px;
  color: var(--gold);
  font-size: clamp(30px, 5vw, 76px);
  line-height: 0.98;
  font-weight: 900;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.52);
}

.hero-copy {
  max-width: 780px;
  margin-bottom: 22px;
  color: #dbe6f3;
  font-size: 21px;
  line-height: 1.65;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.hero-proof span {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 8px 12px;
  color: #f8fafc;
  background: rgba(7, 11, 18, 0.62);
  font-size: 13px;
  font-weight: 900;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

main {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.panel,
details,
.card,
.market-card,
.report-card,
.model-ranking {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 32px var(--shadow);
}

.panel {
  padding: 20px;
  margin-bottom: 18px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

h2 {
  margin-bottom: 14px;
  font-size: 20px;
}

h3 {
  font-size: 16px;
}

.quickstart {
  border-color: rgba(243, 201, 91, 0.34);
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
}

.section-title-row h2 {
  margin-bottom: 6px;
}

.match-center-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  justify-content: flex-end;
}

.match-center-controls label {
  min-width: 160px;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.schedule-summary {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(243, 201, 91, 0.28);
  border-radius: 8px;
  padding: 12px;
  background: #181815;
}

.schedule-summary span {
  color: var(--muted);
  font-size: 12px;
}

.schedule-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.schedule-card:hover {
  border-color: rgba(47, 199, 181, 0.42);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
}

.team-logo-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.team-logo-row div {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
}

.team-logo-row img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.team-logo-row span {
  color: var(--ink);
  font-weight: 900;
  text-align: center;
  overflow-wrap: anywhere;
}

.team-logo-row strong {
  min-width: 70px;
  border: 1px solid rgba(243, 201, 91, 0.38);
  border-radius: 8px;
  padding: 8px;
  color: var(--gold);
  text-align: center;
  background: #0d131d;
}

.schedule-meta,
.schedule-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.schedule-meta span {
  color: var(--muted);
  font-size: 13px;
}

.schedule-meta b {
  color: var(--teal);
}

.schedule-actions a {
  color: var(--gold);
  font-weight: 900;
  text-decoration: none;
}

.schedule-actions button {
  padding: 9px 12px;
}

.context-explorer {
  display: grid;
  gap: 14px;
}

.context-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.context-tabs button {
  display: grid;
  gap: 4px;
  max-width: 280px;
  min-height: 62px;
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--ink);
  text-align: left;
}

.context-tabs button.active {
  border-color: var(--gold);
  background: #1e1a10;
}

.context-tabs strong,
.context-tabs span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.context-tabs span {
  color: var(--muted);
  font-size: 12px;
}

.data-match-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-2);
}

.data-match-card.featured {
  border-color: rgba(41, 199, 128, 0.35);
}

.data-match-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.data-match-head span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.data-match-head h3 {
  margin: 4px 0;
  font-size: 22px;
}

.data-match-head p {
  margin: 0;
  font-size: 13px;
}

.data-match-head a {
  color: var(--gold);
  font-weight: 900;
  text-decoration: none;
}

.data-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.data-snapshot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.info-tile {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #0d131d;
}

.info-tile span {
  color: var(--muted);
  font-size: 12px;
}

.info-tile strong {
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.data-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.data-module {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #0d131d;
}

.data-module h4 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
}

.data-module h4 span {
  color: var(--gold);
}

.data-module ul {
  display: grid;
  gap: 7px;
  max-height: 260px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.data-module li {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.live-odds {
  grid-column: 1 / -1;
}

.odds-group {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.odds-group:first-of-type {
  margin-top: 0;
}

.odds-group-title {
  display: flex;
  justify-content: space-between;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.odds-group-title span {
  color: var(--muted);
}

.odds-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
}

.odds-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
}

.odds-table th,
.odds-table td {
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 9px 10px;
  text-align: left;
  font-size: 13px;
}

.odds-table th {
  color: var(--muted);
  background: rgba(255,255,255,0.03);
}

.odds-table td:nth-child(2),
.odds-table td:nth-child(4) {
  color: var(--gold);
  font-weight: 900;
}

.expert-row {
  display: grid;
  gap: 4px;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 8px 0;
}

.expert-row:first-of-type {
  border-top: 0;
}

.expert-row p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.expert-row span {
  color: var(--muted);
  font-size: 12px;
}

.modal-open {
  overflow: hidden;
}

.modal-shell[hidden] {
  display: none;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 12, 0.78);
  backdrop-filter: blur(8px);
}

.context-modal {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  width: min(1120px, 100%);
  max-height: min(86vh, 920px);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.modal-head span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.modal-head h2 {
  margin: 4px 0 0;
}

.modal-close {
  flex: 0 0 auto;
}

.context-modal-body {
  min-height: 0;
  overflow: auto;
}

.error-text {
  color: #ffb1ba;
}

.toolbar,
.ai-buttons,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.toolbar {
  margin-bottom: 18px;
}

.toolbar.compact {
  margin: 14px 0;
}

.url-import {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

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

.steps div {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.steps strong,
.rank-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #07100c;
  background: var(--gold);
  font-weight: 900;
}

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

.wide {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px;
  font: inherit;
  color: var(--ink);
  background: #080d14;
  transition: border-color 160ms ease, transform 160ms ease, background-color 160ms ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--gold);
  background: #0b121c;
}

button,
.toolbar a,
.button {
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 10px 14px;
  background: var(--gold);
  color: #0b1018;
  text-decoration: none;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

button:hover,
.toolbar a:hover,
.button:hover {
  box-shadow: 0 0 0 3px rgba(243, 201, 91, 0.16);
}

button.secondary,
.button.secondary {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
}

button.secondary:hover,
.button.secondary:hover {
  border-color: var(--gold);
}

button:disabled {
  cursor: progress;
  opacity: 0.65;
}

details {
  width: 100%;
  padding: 13px;
}

summary {
  cursor: pointer;
  color: var(--gold);
  font-weight: 900;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.contexts {
  margin-bottom: 14px;
}

.guest-access {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  border: 1px solid rgba(243, 201, 91, 0.34);
  border-radius: 8px;
  padding: 13px 14px;
  background: #181815;
}

.guest-access div {
  display: grid;
  gap: 4px;
}

.guest-access strong {
  color: var(--gold);
  font-size: 14px;
}

.guest-access span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.guest-access[data-tone='used'] {
  border-color: rgba(255, 107, 122, 0.42);
  background: #1c1118;
}

.guest-access[data-tone='used'] strong { color: #ffb1ba; }
.guest-access[data-tone='signed-in'] { border-color: rgba(41, 199, 128, 0.36); background: #0f1b17; }
.guest-access[data-tone='signed-in'] strong { color: #7ee2ae; }

.ai-context-filter {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.ai-context-tabs {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: nowrap;
  gap: 14px;
  align-items: stretch;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 4px 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(243, 201, 91, 0.65) rgba(255, 255, 255, 0.08);
}

.ai-context-tabs::-webkit-scrollbar {
  height: 8px;
}

.ai-context-tabs::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.ai-context-tabs::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(243, 201, 91, 0.65);
}

.ai-context-tab-card {
  display: grid;
  flex: 0 0 clamp(360px, 34vw, 520px);
  gap: 14px;
  min-width: 340px;
  max-width: 540px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--line);
  scroll-snap-align: start;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.ai-context-tab-card.active {
  border-color: var(--gold);
  background: #1e1a10;
  box-shadow: 0 0 0 3px rgba(243, 201, 91, 0.10);
}

.ai-context-tab-card.needs-predict {
  border-color: rgba(255, 91, 110, 0.68);
  background: #1c1118;
  box-shadow: 0 0 0 3px rgba(255, 91, 110, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.ai-context-tab-card:hover {
  border-color: rgba(243, 201, 91, 0.52);
}

.ai-context-main {
  display: grid;
  gap: 14px;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  box-shadow: none;
}

.ai-context-main:hover {
  box-shadow: none;
}

.ai-context-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.ai-context-team {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.ai-context-team.away {
  justify-items: end;
  text-align: right;
}

.ai-context-team b {
  display: grid;
  place-items: center;
  width: 56px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0d131d;
  font-size: 26px;
  line-height: 1;
}

.ai-context-team strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-context-v {
  color: var(--gold);
  font-size: 18px;
  font-weight: 900;
}

.ai-context-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ai-context-tabs span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-context-tabs span {
  color: var(--muted);
  font-size: 12px;
}

.ai-context-tabs em {
  width: fit-content;
  border-radius: 999px;
  padding: 3px 7px;
  color: var(--muted);
  background: #101823;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.ai-context-tabs em.has-players {
  color: #ccfff8;
  background: #0d1f1e;
}

.ai-context-tabs em.no-players {
  color: #ffe7a6;
  background: #1e1a10;
}

.ai-context-tabs small {
  width: fit-content;
  border-radius: 999px;
  padding: 3px 7px;
  color: var(--muted);
  background: #101823;
  font-size: 11px;
  font-weight: 900;
}

.ai-context-tabs small.predicted {
  color: #ccfff8;
  background: #0d1f1e;
}

.ai-context-tabs small.future {
  color: #d6ddea;
  background: #101823;
}

.ai-context-tabs small.urgent {
  color: #fff1f2;
  background: #7a1424;
}

.ai-context-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.context-model-icons {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
}

.model-icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-color: var(--line);
  border-radius: 50%;
  padding: 0;
  background: #0d131d;
  box-shadow: none;
}

.model-icon-button.predicted {
  border-color: rgba(41, 199, 128, 0.45);
  background: #0d1f1e;
}

.model-icon-button:hover {
  border-color: var(--gold);
  box-shadow: none;
}

.model-icon-button .model-brand {
  width: 28px;
  height: 28px;
  border: 0;
  font-size: 0;
}

.model-icon-button .model-brand b {
  font-size: 9px;
}

.context-detail-button {
  border-color: var(--line-strong);
  min-width: 58px;
  padding: 10px 12px;
  background: transparent;
  color: var(--gold);
  box-shadow: none;
  font-size: 13px;
}

.context-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(47, 199, 181, 0.30);
  border-radius: 8px;
  padding: 13px;
  background: #0d1a20;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.context-card-main {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.context-card strong {
  display: block;
  margin-bottom: 0;
}

.context-card span {
  color: var(--muted);
  font-size: 13px;
}

.context-card a {
  color: var(--teal);
  font-weight: 900;
  text-decoration: none;
}

.context-teams {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.context-teams em {
  color: var(--gold);
  font-style: normal;
  font-weight: 900;
}

.team-flag {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--ink) !important;
  background: #101823;
  font-weight: 900;
}

.team-flag b {
  font-size: 18px;
  line-height: 1;
}

.context-time-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.kickoff-pill,
.lineup-window {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
}

.kickoff-pill {
  border: 1px solid rgba(243, 201, 91, 0.34);
  color: var(--gold) !important;
  background: #181815;
}

.kickoff-pill.secondary-time {
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--muted) !important;
  background: #101823;
}

.lineup-window {
  border: 1px solid var(--line);
  color: var(--muted) !important;
  background: #101823;
}

.lineup-window.hot {
  border-color: rgba(255, 107, 122, 0.58);
  color: #ffe2e6 !important;
  background: #241018;
  box-shadow: 0 0 0 3px rgba(255, 107, 122, 0.10);
}

.lineup-window.live {
  border-color: rgba(47, 199, 181, 0.48);
  color: #ccfff8 !important;
  background: #0d1f1e;
}

.lineup-window.early {
  border-color: rgba(243, 201, 91, 0.34);
  color: #ffe7a6 !important;
  background: #1e1a10;
}

.lineup-window.done {
  border-color: rgba(255, 255, 255, 0.14);
  color: #c4ccd8 !important;
  background: #151923;
}

.player-info-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted) !important;
  background: #101823;
  font-weight: 900;
}

.player-info-pill.has-players {
  border-color: rgba(47, 199, 181, 0.48);
  color: #ccfff8 !important;
  background: #0d1f1e;
}

.player-info-pill.no-players {
  border-color: rgba(243, 201, 91, 0.34);
  color: #ffe7a6 !important;
  background: #1e1a10;
}

.ai-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(243, 201, 91, 0.28);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 18px;
  background: #111922;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.ai-controls strong {
  display: block;
  margin-bottom: 4px;
}

.ai-controls span {
  color: var(--muted);
  font-size: 13px;
}

.ai-buttons {
  justify-content: flex-end;
}

.qwen-model-select {
  display: grid;
  grid-template-columns: auto minmax(130px, 160px);
  align-items: center;
  gap: 8px;
  margin: 0;
}

.qwen-model-select span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.qwen-model-select select {
  min-height: 42px;
  padding: 8px 10px;
}

.rankings,
.cards {
  display: grid;
  gap: 16px;
}

.rankings {
  margin-bottom: 18px;
}

.ranking-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.ranking-meta strong {
  color: var(--ink);
}

.ranking-notice {
  border: 1px solid rgba(243, 201, 91, 0.36);
  border-radius: 8px;
  padding: 10px 12px;
  color: #ffe7a6;
  background: #1e1a10;
  font-size: 13px;
}

.generated-switch {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(47, 199, 181, 0.28);
  border-radius: 8px;
  padding: 12px;
  background: #0d1a20;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.generated-switch strong {
  display: block;
  margin-bottom: 4px;
}

.generated-switch span {
  color: var(--muted);
  font-size: 12px;
}

.model-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.model-tabs button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.model-tabs button strong {
  font-size: 13px;
}

.model-tabs button.active {
  border-color: var(--gold);
  background: #24200f;
  box-shadow: 0 0 0 3px rgba(243, 201, 91, 0.10);
}

.model-tabs button.has-error {
  border-color: rgba(255, 107, 122, 0.5);
}

.model-tabs span {
  color: var(--muted);
  font-size: 12px;
}

.ranking-grid.single {
  display: block;
}

.model-ranking {
  padding: 18px;
}

.model-ranking.error {
  border-color: rgba(255, 107, 122, 0.45);
  background: #1d1218;
}

.model-ranking-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}

.model-ranking-head h3 {
  margin: 0 0 4px;
  font-size: 19px;
}

.model-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.model-brand {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #07100c;
  background: var(--gold);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  position: relative;
}

.model-brand img {
  width: 18px;
  height: 18px;
  filter: invert(1);
}

.model-brand b {
  display: none;
}

.model-brand.no-svg b {
  display: block;
}

.model-brand.gpt { background: #29c780; }
.model-brand.claude { background: #f3c95b; }
.model-brand.gemini { color: #fff; background: #6f94ff; }
.model-brand.deepseek { color: #fff; background: #2fc7b5; }
.model-brand.qwen { color: #fff; background: #b284ff; }
.model-brand.ai { color: var(--ink); background: #657386; }

.model-ranking-head p {
  margin: 0;
  font-size: 13px;
}

.model-ranking-head > span {
  color: var(--gold);
  font-weight: 900;
}

.provider-badge {
  display: inline-block;
  width: fit-content;
  border: 1px solid rgba(47, 199, 181, 0.34);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--teal);
  background: #0d1a20;
  font-size: 12px;
  font-weight: 900;
}

.score-predictions {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(178, 132, 255, 0.28);
  border-radius: 8px;
  padding: 14px;
  background: #121525;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.score-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.score-head strong {
  font-size: 16px;
}

.score-head span {
  color: var(--muted);
  font-size: 12px;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.score-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.score-card:hover {
  border-color: rgba(178, 132, 255, 0.52);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.score-card span {
  color: var(--violet);
  font-weight: 900;
}

.score-card em {
  width: fit-content;
  border: 1px solid rgba(243, 201, 91, 0.34);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--gold);
  background: rgba(243, 201, 91, 0.08);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.score-card strong {
  font-size: 34px;
  line-height: 1;
}

.score-card div {
  color: var(--gold);
  font-weight: 800;
}

.score-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.prediction-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.prediction-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.prediction-card:hover,
.market-card:hover,
.report-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.panel:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.prediction-card.moneyline { border-color: rgba(41, 199, 128, 0.36); }
.prediction-card.score { border-color: rgba(178, 132, 255, 0.36); }
.prediction-card.handicap { border-color: rgba(111, 148, 255, 0.38); }
.prediction-card.total { border-color: rgba(243, 201, 91, 0.36); }

.prediction-rank {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.prediction-rank > span {
  color: var(--gold);
  font-size: 20px;
  font-weight: 900;
}

.prediction-title-row {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.winner-flag {
  display: grid;
  place-items: center;
  width: 42px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0d131d;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
}

.prediction-main h4 {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.prediction-main p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

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

.prediction-metrics div,
.report-metrics div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: #0d131d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.prediction-metrics span,
.report-metrics span,
.prediction-reason span,
.prediction-risks span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 4px;
}

.prediction-metrics strong {
  display: block;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.prediction-reason p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.prediction-risks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.prediction-risks span {
  width: 100%;
}

.prediction-risks b {
  border: 1px solid rgba(255, 107, 122, 0.32);
  border-radius: 999px;
  padding: 5px 8px;
  color: #ffdce1;
  background: #241018;
  font-size: 12px;
  font-weight: 700;
}

.market-overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.stat-card,
.market-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface-2);
  text-decoration: none;
  overflow: hidden;
}

.stat-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.stat-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
}

.stat-card strong {
  font-size: 28px;
  line-height: 1;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: var(--surface-3);
  border-bottom: 1px solid var(--line);
}

.section-heading h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.section-heading p {
  margin: 0;
  font-size: 13px;
}

.count,
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 5px 9px;
  color: #06120d;
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.badge.warn { background: var(--gold); }
.badge.danger { background: var(--red); color: #fff; }

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  padding: 14px;
}

.market-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.market-card h4 {
  margin: 0;
  font-size: 15px;
}

.market-card-top,
.prob-row,
.report-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.pill {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 900;
  color: #06120d;
  background: var(--green);
}

.pill.score { color: #fff; background: var(--violet); }
.pill.handicap { color: #fff; background: var(--blue); }
.pill.total { background: var(--gold); }
.pill.other { color: #fff; background: #657386; }

.odds {
  font-weight: 900;
  color: var(--gold);
}

.pick-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: baseline;
  border-radius: 8px;
  padding: 10px;
  background: #0d131d;
}

.pick-line strong {
  font-size: 17px;
}

.pick-line span,
.prob-row {
  color: var(--muted);
  font-weight: 700;
}

.prob-row strong {
  color: var(--ink);
}

.source-row {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.actions button {
  flex: 1;
}

.actions a {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 12px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 900;
}

.empty {
  grid-column: 1 / -1;
  margin: 0;
}

.report-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.report-head h3 {
  margin: 0 0 4px;
}

.report-head p {
  margin: 0;
  font-size: 13px;
}

.report-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.report-metrics strong {
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.analytics-stats,
.analytics-grid {
  display: grid;
  gap: 14px;
}

.analytics-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.analytics-filters label {
  display: grid;
  gap: 6px;
}

.analytics-filters label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.analytics-filters select {
  width: 100%;
  min-height: 42px;
}

.analytics-hit-toggle {
  min-height: 42px;
  white-space: nowrap;
}

.analytics-hit-toggle.active {
  border-color: rgba(41, 199, 128, 0.7);
  color: #071017;
  background: var(--green);
}

.analytics-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.analytics-stats article,
.analytics-card,
.empty-analytics {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 14px;
}

.analytics-stats span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.analytics-stats strong {
  display: block;
  margin-top: 6px;
  font-size: 30px;
}

.analytics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.analytics-card.wide {
  grid-column: 1 / -1;
}

.compact-heading {
  margin-bottom: 12px;
}

.accuracy-bars {
  display: grid;
  gap: 12px;
}

.accuracy-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(160px, 2fr) 54px;
  gap: 12px;
  align-items: center;
}

.accuracy-row div:first-child {
  display: grid;
  gap: 2px;
}

.accuracy-row span {
  color: var(--muted);
  font-size: 12px;
}

.accuracy-row b {
  color: var(--gold);
  text-align: right;
}

.accuracy-track {
  height: 10px;
  border-radius: 999px;
  background: #071017;
  overflow: hidden;
}

.accuracy-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.trend-chart svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d131d;
}

.trend-chart line {
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 2;
}

.trend-chart polyline {
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.trend-chart circle {
  fill: var(--teal);
  stroke: #071017;
  stroke-width: 2;
}

.trend-model-point {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}

.trend-model-point .model-brand {
  width: 28px;
  height: 28px;
  font-size: 9px;
  box-shadow: 0 0 0 2px #071017;
}

.trend-model-point .model-brand b {
  display: none;
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--muted);
  background: #0d131d;
  font-size: 12px;
}

.trend-legend .model-brand {
  width: 20px;
  height: 20px;
  font-size: 8px;
}

.trend-legend .model-brand b {
  display: none;
}

.analytics-table-wrap {
  overflow-x: auto;
}

.analytics-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.analytics-table th,
.analytics-table td {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 10px 8px;
  font-size: 13px;
  text-align: left;
}

.analytics-table th {
  color: var(--muted);
  font-weight: 800;
}

.analytics-table b.hit { color: var(--green); }
.analytics-table b.miss { color: #ffb1ba; }
.analytics-table b.push { color: var(--gold); }

.subscription-panel {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.subscription-price {
  display: grid;
  gap: 4px;
  min-width: 180px;
  border: 1px solid rgba(243, 201, 91, 0.34);
  border-radius: 8px;
  padding: 14px;
  background: #181815;
  text-align: right;
}

.subscription-price span {
  color: var(--muted);
  font-size: 12px;
}

.subscription-price strong {
  color: var(--gold);
  font-size: 24px;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink);
  background: #0d131d;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  max-height: 260px;
  overflow: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .prediction-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .floating-nav {
    top: 10px;
    grid-template-columns: 1fr auto;
    gap: 10px;
    width: min(100% - 20px, 1180px);
  }
  .nav-links {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .nav-account { justify-self: end; }
  button.nav-auth { max-width: 150px; }
  .nav-signout { display: none; }
  .auth-shell { padding: 10px; }
  .auth-dialog { padding: 24px 18px; }
  .hero { min-height: 100svh; }
  .hero-inner { width: min(100% - 24px, 1240px); padding: 126px 0 48px; }
  .hero h1 { font-size: clamp(64px, 22vw, 120px); }
  .hero-tagline { font-size: clamp(32px, 11vw, 58px); }
  .hero-copy { font-size: 16px; }
  main { width: min(100% - 20px, 1240px); padding-top: 18px; }
  .grid, .steps, .ai-controls, .url-import, .ai-context-filter, .analytics-filters { grid-template-columns: 1fr; }
  .market-overview, .report-metrics, .prediction-cards, .score-grid, .analytics-stats, .analytics-grid { grid-template-columns: 1fr; }
  .section-title-row, .schedule-meta, .schedule-actions, .data-match-head { flex-direction: column; }
  .guest-access { align-items: stretch; flex-direction: column; }
  .guest-access button { width: 100%; }
  .data-snapshot, .data-modules { grid-template-columns: 1fr; }
  .context-card { align-items: flex-start; flex-direction: column; }
  .ai-context-tab-card { flex-basis: min(86vw, 420px); min-width: min(86vw, 340px); }
  .ai-context-team b { width: 48px; height: 34px; font-size: 22px; }
  .ai-context-team strong { font-size: 16px; }
  .model-icon-button { width: 36px; height: 36px; }
  .model-icon-button .model-brand { width: 25px; height: 25px; }
  .ai-buttons { justify-content: flex-start; }
  .section-heading { align-items: flex-start; }
  .ranking-meta, .model-ranking-head { flex-direction: column; }
  .subscription-panel { align-items: stretch; flex-direction: column; }
  .subscription-price { text-align: left; }
  .modal-shell { padding: 10px; }
  .context-modal { max-height: 92vh; padding: 12px; }
  .modal-head { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
