:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #eef3f7;
  --ink: #18232e;
  --muted: #607080;
  --line: #dbe3ea;
  --accent: #087f5b;
  --accent-dark: #05684a;
  --gold: #c6902f;
  --danger: #b42318;
  --shadow: 0 12px 34px rgba(24, 35, 46, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(8, 127, 91, 0.08), transparent 280px),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.primary-button,
.tab,
.winner-select {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  min-height: 40px;
}

.icon-button {
  width: 42px;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
}

.primary-button {
  border-color: var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  padding: 0 16px;
  font-weight: 700;
}

.primary-button:hover {
  background: var(--accent-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: stretch;
  min-height: 220px;
  margin-bottom: 18px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(4, 48, 38, 0.88), rgba(8, 127, 91, 0.74)),
    url("https://images.unsplash.com/photo-1522778119026-d647f0596c20?auto=format&fit=crop&w=1600&q=80")
      center/cover;
  color: #fff;
}

.data-hero {
  background:
    linear-gradient(110deg, rgba(4, 48, 38, 0.9), rgba(8, 127, 91, 0.76)),
    url("https://images.unsplash.com/photo-1518091043644-c1d4457512c6?auto=format&fit=crop&w=1600&q=80")
      center/cover;
}

.hero-copy {
  padding: 28px;
}

.hero h2 {
  max-width: 760px;
  margin: 12px 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
}

.hero p {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.7;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 800;
}

.winner-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}

.winner-card span,
.winner-card small {
  color: rgba(255, 255, 255, 0.74);
}

.winner-card strong {
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
}

.tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0;
  overflow-x: auto;
}

.tab {
  border-radius: 8px;
  padding: 0 18px;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.tab.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.metric-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px;
}

.metric-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric-card strong {
  display: block;
  overflow: hidden;
  font-size: 24px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 22px 0 14px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.section-heading p {
  max-width: 620px;
  margin-bottom: 2px;
  color: var(--muted);
  line-height: 1.6;
}

.matches-grid,
.match-prediction-grid,
.standings-grid,
.team-editor,
.favorites-grid,
.model-grid,
.squads-grid,
.team-detail-grid,
.history-grid,
.data-status-grid,
.data-gaps-grid,
.odds-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.group-card,
.standing-card,
.editor-card,
.qualified-panel,
.round,
.favorite-card,
.match-card,
.history-card,
.data-status-card,
.data-gap-card,
.team-profile-card,
.team-detail-card,
.odds-card,
.model-card,
.data-table,
.squad-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

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

.data-status-grid {
  margin-bottom: 14px;
}

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

.team-selector {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.team-selector label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.team-selector select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 0 10px;
  color: var(--ink);
  font-weight: 900;
}

.team-quick-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.team-quick-picks button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 0 10px;
  font-weight: 900;
}

.team-quick-picks button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

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

.team-profile-card,
.team-detail-card {
  min-width: 0;
  padding: 14px;
}

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

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

.team-profile-head h3,
.team-profile-head p,
.team-detail-card h3 {
  margin: 0;
}

.team-profile-head h3 {
  font-size: 24px;
}

.team-profile-head p {
  color: var(--muted);
  font-weight: 800;
}

.team-profile-head strong {
  display: grid;
  min-width: 54px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--accent-dark);
  font-size: 22px;
}

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

.team-detail-facts span {
  min-width: 0;
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.team-fixture-list,
.team-news-list,
.team-odds-list {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.team-fixture-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(160px, 1.2fr) minmax(180px, 1.2fr) minmax(130px, 0.8fr);
  gap: 10px;
  align-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
}

.team-fixture-row span,
.team-fixture-row b,
.team-fixture-row small,
.team-fixture-row i {
  min-width: 0;
  overflow-wrap: anywhere;
}

.team-fixture-row span,
.team-fixture-row small,
.team-fixture-row i {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.45;
}

.team-fixture-row em {
  color: var(--muted);
  font-style: normal;
}

.detail-player-table .player-row {
  grid-template-columns: 28px 34px minmax(150px, 1fr) 120px minmax(180px, 1.2fr);
}

.team-news-list a,
.team-odds-list span {
  display: grid;
  gap: 4px;
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.45;
}

.team-news-list b,
.team-news-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.team-news-list span,
.team-odds-list span {
  overflow-wrap: anywhere;
}

.team-odds-list span.strong {
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger);
}

.lottery-calculator {
  display: grid;
  gap: 14px;
}

.jc-calculator {
  display: grid;
  gap: 0;
  border: 1px solid #d6dce4;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.jc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 3px solid #c5162e;
  background: #f7f8fa;
}

.jc-tabs button {
  min-height: 44px;
  border: 0;
  border-right: 1px solid #d6dce4;
  background: #f7f8fa;
  color: #334155;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 900;
}

.jc-tabs button.active {
  background: #c5162e;
  color: #fff;
}

.jc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid #d6dce4;
  background: #fff7f7;
  padding: 8px 12px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

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

.jc-match-table {
  width: 100%;
  min-width: 1420px;
  border-collapse: collapse;
  table-layout: fixed;
}

.jc-match-table th:nth-child(1),
.jc-match-table td:nth-child(1) {
  width: 96px;
  text-align: left;
  white-space: normal;
}

.jc-match-table th:nth-child(2),
.jc-match-table td:nth-child(2) {
  width: 88px;
}

.jc-match-table th:nth-child(3),
.jc-match-table td:nth-child(3) {
  width: 118px;
}

.jc-match-table th:nth-child(4),
.jc-match-table td:nth-child(4) {
  width: 220px;
}

.jc-match-table th:nth-child(5),
.jc-match-table td:nth-child(5) {
  width: 98px;
}

.jc-match-table th:nth-child(6),
.jc-match-table td:nth-child(6) {
  width: 430px;
}

.jc-match-table th:nth-child(7),
.jc-match-table td:nth-child(7) {
  width: 110px;
}

.jc-match-table th:nth-child(8),
.jc-match-table td:nth-child(8) {
  width: 260px;
}

.jc-match-table th {
  border-right: 1px solid #d6dce4;
  border-bottom: 1px solid #d6dce4;
  background: #eef2f6;
  color: #334155;
  padding: 9px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.jc-match-table td {
  border-right: 1px solid #e1e7ef;
  border-bottom: 1px solid #e1e7ef;
  padding: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  vertical-align: middle;
}

.jc-match-table td small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.jc-match-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.jc-teams {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  white-space: nowrap;
}

.jc-teams strong {
  min-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jc-teams span {
  flex: 0 0 auto;
  color: #94a3b8;
  font-size: 12px;
}

.jc-event b,
.jc-event small {
  display: block;
}

.jc-event b {
  color: #111827;
  font-weight: 900;
}

.jc-event small {
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.3;
}

.jc-handicap {
  color: #111827;
  font-weight: 900;
  white-space: nowrap;
}

.jc-handicap b,
.jc-handicap small {
  display: block;
}

.jc-handicap small {
  margin-top: 4px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.25;
  white-space: normal;
}

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

.jc-odds-grid.dense {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.jc-odds-grid button {
  display: grid;
  gap: 2px;
  min-width: 0;
  min-height: 58px;
  border: 1px solid #ccd5df;
  border-radius: 3px;
  background: #fff;
  color: #111827;
  padding: 6px 4px;
  text-align: center;
  font-weight: 900;
  overflow: hidden;
  word-break: keep-all;
}

.jc-odds-grid button b,
.jc-odds-grid button span,
.jc-odds-grid button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jc-odds-grid button:hover,
.jc-odds-grid button.selected {
  border-color: #c5162e;
  background: #c5162e;
  color: #fff;
}

.jc-odds-grid button span {
  color: #c5162e;
  font-size: 16px;
}

.jc-odds-grid button:hover span,
.jc-odds-grid button.selected span,
.jc-odds-grid button:hover small,
.jc-odds-grid button.selected small {
  color: #fff;
}

.jc-odds-grid button small {
  margin: 0;
  color: #64748b;
  font-size: 10px;
}

.jc-suggest {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 900;
}

.jc-suggest-list {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.jc-suggest-list .jc-suggest {
  max-width: 100%;
  border-radius: 6px;
  text-align: left;
  line-height: 1.35;
  white-space: normal;
}

.jc-suggest.good {
  background: rgba(8, 127, 91, 0.12);
  color: var(--accent-dark);
}

.jc-suggest.watch {
  background: rgba(198, 144, 47, 0.14);
  color: #8a5b11;
}

.jc-suggest.risk {
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger);
}

.jc-model-risk {
  display: grid;
  gap: 5px;
  min-width: 0;
  justify-items: center;
}

.jc-model-risk b {
  color: #111827;
}

.jc-risk-badge,
.jc-risk-tags em {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.jc-risk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  min-width: 0;
}

.jc-risk-badge.good,
.jc-risk-tags em.good {
  background: rgba(8, 127, 91, 0.12);
  color: var(--accent-dark);
}

.jc-risk-badge.watch,
.jc-risk-tags em.watch {
  background: rgba(198, 144, 47, 0.14);
  color: #8a5b11;
}

.jc-risk-badge.risk,
.jc-risk-tags em.risk {
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger);
}

.jc-risk-badge.neutral,
.jc-risk-tags em.neutral {
  background: #eef2f6;
  color: #475569;
}

.jc-suggestion-strip {
  border: 0;
  border-top: 1px solid #d6dce4;
  border-radius: 0;
  box-shadow: none;
}

.jc-bottom-panel {
  display: grid;
  grid-template-columns: 210px minmax(220px, 1fr) 150px 210px 140px;
  gap: 10px;
  align-items: center;
  background: #303741;
  color: #fff;
  padding: 12px;
}

.jc-selected {
  display: grid;
  gap: 6px;
}

.jc-selected strong {
  color: #fff;
}

.jc-selected div {
  display: grid;
  gap: 5px;
  max-height: 92px;
  overflow: auto;
}

.jc-selected button,
.jc-selected span {
  border: 0;
  border-radius: 4px;
  background: #f8fafc;
  color: #111827;
  padding: 6px 7px;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
}

.jc-pass {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.jc-pass button,
.jc-pass span {
  border: 0;
  border-radius: 4px;
  background: #475569;
  color: #fff;
  padding: 6px 9px;
  font-weight: 900;
}

.jc-pass em {
  flex: 1 1 100%;
  color: #cbd5e1;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.jc-pass button.active {
  background: #c5162e;
}

.jc-pass button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.jc-times {
  display: grid;
  grid-template-columns: 32px minmax(48px, 1fr) 32px 24px;
  gap: 4px;
  align-items: center;
}

.jc-times button,
.jc-times input {
  height: 32px;
  border: 0;
  border-radius: 3px;
  text-align: center;
  font-weight: 900;
}

.jc-times button {
  background: #f8fafc;
  color: #111827;
}

.jc-bonus {
  color: #fff;
  line-height: 1.7;
  font-weight: 800;
}

.jc-bonus b {
  color: #ffd166;
  font-size: 18px;
}

.jc-detail {
  display: grid;
  gap: 6px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
}

.jc-detail button {
  min-height: 34px;
  border: 0;
  border-radius: 4px;
  background: #f8fafc;
  color: #111827;
  font-weight: 900;
}

.jc-detail-panel {
  display: grid;
  gap: 8px;
  border: 1px solid #d6dce4;
  border-top: 0;
  background: #fff;
  padding: 12px;
}

.jc-detail-panel > div,
.jc-detail-panel article {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) repeat(4, minmax(84px, 0.8fr));
  gap: 8px;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #f8fafc;
  padding: 9px 10px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.jc-detail-panel > div {
  background: #fff7ed;
  color: #7c2d12;
}

.jc-detail-panel strong,
.jc-detail-panel b {
  color: #111827;
}

.jc-detail-panel p {
  margin: 0;
  color: #64748b;
  font-weight: 800;
}

.calculator-main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 14px;
}

.calculator-panel,
.calculator-suggestions,
.calculator-play-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px;
}

.calculator-controls {
  display: grid;
  gap: 12px;
}

.calculator-field {
  display: grid;
  gap: 7px;
}

.calculator-field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.calculator-field select,
.calculator-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  color: var(--ink);
  font-weight: 900;
}

.calculator-match-head {
  display: grid;
  gap: 4px;
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 12px;
}

.calculator-match-head strong {
  font-size: 22px;
}

.calculator-match-head span,
.calculator-warning {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

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

.calculator-chart-grid div {
  min-width: 0;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.calculator-chart-grid b,
.calculator-chart-grid span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calculator-chart-grid b {
  font-size: 12px;
}

.calculator-chart-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.calculator-suggestions > .calculator-advice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 10px;
}

.calculator-advice-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  border: 1px solid #dbe3ea;
  border-radius: 6px;
  background: #fff;
  padding: 10px;
}

.calculator-advice-card h4 {
  margin: 0;
  color: #111827;
  font-size: 14px;
}

.calculator-advice-card p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.calculator-advice-card button {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 1px solid #d6dce4;
  border-radius: 5px;
  background: #f8fafc;
  padding: 8px;
  text-align: left;
}

.calculator-advice-card button:hover {
  border-color: #c5162e;
  background: #fff7f7;
}

.calculator-advice-card button b,
.calculator-advice-card button span,
.calculator-advice-card button em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calculator-plans {
  display: grid;
  gap: 12px;
  border-top: 1px solid #d6dce4;
  background: #f8fafc;
  padding: 14px;
}

.calculator-plans-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.calculator-plans-head h3 {
  margin: 0;
  color: #111827;
}

.calculator-plans-head span {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

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

.calculator-plan-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid #d6dce4;
  border-radius: 6px;
  background: #fff;
  padding: 12px;
}

.calculator-plan-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.calculator-plan-title h4,
.calculator-plan-title p {
  margin: 0;
}

.calculator-plan-title h4 {
  color: #111827;
  font-size: 16px;
}

.calculator-plan-title p {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.calculator-plan-title strong {
  flex: 0 0 auto;
  height: fit-content;
  border-radius: 999px;
  background: rgba(8, 127, 91, 0.12);
  color: var(--accent-dark);
  padding: 5px 8px;
  font-size: 12px;
}

.calculator-plan-card.upset .calculator-plan-title strong,
.calculator-plan-card.high .calculator-plan-title strong {
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger);
}

.calculator-plan-picks {
  display: grid;
  gap: 6px;
}

.calculator-plan-picks button {
  display: grid;
  gap: 3px;
  border: 1px solid #dbe3ea;
  border-radius: 5px;
  background: #f8fafc;
  padding: 8px;
  text-align: left;
}

.calculator-plan-picks button:hover {
  border-color: #c5162e;
  background: #fff7f7;
}

.calculator-plan-picks b,
.calculator-plan-picks span,
.calculator-plan-picks em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calculator-plan-picks span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.calculator-plan-picks em {
  color: #8a5a14;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

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

.calculator-plan-metrics span {
  display: grid;
  gap: 2px;
  border-radius: 5px;
  background: #eef2f6;
  padding: 8px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.calculator-plan-metrics b {
  color: #111827;
  font-size: 13px;
}

.calculator-plan-rule {
  display: block;
  border-radius: 5px;
  background: #fff7ed;
  color: #8a5a14;
  padding: 7px 8px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
}

.calculator-plan-use {
  min-height: 36px;
  border: 0;
  border-radius: 5px;
  background: #c5162e;
  color: #fff;
  font-weight: 900;
}

.calculator-ticket-history {
  display: grid;
  gap: 12px;
  border-top: 1px solid #d6dce4;
  background: #fff;
  padding: 14px;
}

.ticket-history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ticket-history-actions button {
  min-height: 34px;
  border: 1px solid #ccd5df;
  border-radius: 5px;
  background: #f8fafc;
  color: #111827;
  padding: 7px 11px;
  font-weight: 900;
}

.ticket-history-actions button:hover:not(:disabled) {
  border-color: #c5162e;
  color: #c5162e;
}

.ticket-history-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

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

.ticket-history-grid article {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid #d6dce4;
  border-radius: 6px;
  background: #f8fafc;
  padding: 12px;
}

.ticket-history-grid article > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  min-width: 0;
}

.ticket-history-grid b,
.ticket-history-grid span,
.ticket-history-grid p,
.ticket-history-grid small {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticket-history-grid b,
.ticket-history-grid strong {
  color: #111827;
  font-weight: 900;
}

.ticket-history-grid span,
.ticket-history-grid p,
.ticket-history-grid small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.ticket-history-grid small {
  white-space: nowrap;
}

.sparkline {
  width: 100%;
  height: 54px;
  margin: 6px 0;
  overflow: visible;
}

.sparkline polyline {
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sparkline circle {
  fill: var(--accent-dark);
}

.calculator-slip {
  align-self: start;
}

.slip-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.slip-list button {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
  color: var(--ink);
  text-align: left;
  font-weight: 900;
}

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

.payout-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.payout-card span {
  display: grid;
  gap: 3px;
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.payout-card b {
  color: var(--ink);
  font-size: 18px;
}

.calculator-suggestions h3,
.calculator-play-card h3 {
  margin: 0 0 10px;
}

.calculator-suggestions > div,
.calculator-option-grid {
  display: grid;
  gap: 9px;
}

.calculator-suggestions > div {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.calculator-suggestions button,
.calculator-option-grid button {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  color: var(--ink);
  text-align: left;
  font-weight: 900;
}

.calculator-option-grid button.selected {
  border-color: var(--accent);
  background: rgba(8, 127, 91, 0.08);
}

.calculator-suggestions span,
.calculator-option-grid span,
.calculator-option-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.calculator-suggestions em,
.calculator-option-grid em {
  width: max-content;
  max-width: 100%;
  border-radius: 8px;
  padding: 4px 7px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.calculator-suggestions em.good,
.calculator-option-grid em.good {
  background: rgba(8, 127, 91, 0.12);
  color: var(--accent-dark);
}

.calculator-suggestions em.watch,
.calculator-option-grid em.watch {
  background: rgba(198, 144, 47, 0.14);
  color: #8a5b11;
}

.calculator-suggestions em.risk,
.calculator-option-grid em.risk {
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger);
}

.calculator-suggestions em.neutral,
.calculator-option-grid em.neutral {
  background: var(--surface-soft);
  color: var(--muted);
}

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

.calculator-play-card:nth-child(3),
.calculator-play-card:nth-child(5) {
  grid-column: 1 / -1;
}

.calculator-option-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.calculator-play-card:nth-child(3) .calculator-option-grid,
.calculator-play-card:nth-child(5) .calculator-option-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.data-status-card,
.data-gap-card {
  min-width: 0;
  padding: 14px;
}

.data-status-card > div,
.data-gap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.data-status-card > div {
  justify-content: flex-start;
  margin-bottom: 8px;
}

.data-status-card h3,
.data-status-card p,
.data-status-card small,
.data-gap-card h3,
.data-gap-card p,
.data-gap-card strong,
.data-gap-card small,
.data-gap-card li {
  min-width: 0;
  overflow-wrap: anywhere;
}

.data-status-card h3,
.data-gap-card h3,
.data-gap-card p {
  margin: 0;
}

.data-status-card h3,
.data-gap-card h3 {
  font-size: 17px;
}

.data-status-card strong,
.data-gap-card strong {
  display: block;
  color: var(--accent-dark);
  font-size: 24px;
  line-height: 1.2;
}

.data-status-card p,
.data-gap-card p,
.data-status-card small,
.data-gap-card small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.data-status-card p {
  margin: 8px 0 4px;
}

.data-gap-card.primary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-color: rgba(8, 127, 91, 0.24);
}

.data-gap-head {
  margin-bottom: 10px;
}

.data-gap-head span {
  display: inline-flex;
  min-width: 36px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--surface-soft);
  font-weight: 900;
}

.data-gap-head span.fresh {
  background: rgba(8, 127, 91, 0.12);
  color: var(--accent-dark);
}

.data-gap-head span.watch {
  background: rgba(198, 144, 47, 0.14);
  color: #8a5b11;
}

.data-gap-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.data-gap-card li {
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 8px 10px;
  color: var(--ink);
  font-weight: 800;
}

.data-gap-card small {
  display: block;
  margin-top: 10px;
}

.status-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--muted);
}

.status-dot.fresh {
  background: var(--accent);
}

.status-dot.watch {
  background: #c6902f;
}

.status-dot.stale {
  background: var(--danger);
}

.history-card {
  min-width: 0;
  padding: 14px;
}

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

.history-card-head h3,
.history-card-head p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-card-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.history-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.history-card-head strong {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 20px;
}

.history-variants {
  display: grid;
  gap: 8px;
}

.history-variant {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
}

.history-variant span,
.history-variant b,
.history-variant small {
  min-width: 0;
}

.history-variant span {
  font-weight: 900;
}

.history-variant b {
  color: var(--accent-dark);
}

.history-variant small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 700;
}

.history-backtest {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

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

.backtest-metrics article,
.backtest-breakdown article {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.backtest-metrics span,
.backtest-breakdown span,
.backtest-metrics small,
.backtest-breakdown small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backtest-metrics span,
.backtest-breakdown span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.backtest-metrics strong {
  color: var(--ink);
  font-size: 22px;
}

.backtest-metrics small,
.backtest-breakdown small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.backtest-breakdown b {
  color: var(--accent-dark);
}

.backtest-table {
  border-radius: 8px;
  overflow-x: auto;
}

.backtest-table .history-table td {
  white-space: normal;
}

.backtest-table .history-table td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.history-table-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.history-table-head h3,
.history-table-head p {
  margin: 0;
}

.history-table-head p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.history-table {
  min-width: 920px;
}

.sporttery-table {
  min-width: 980px;
}

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

.odds-chart-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px;
}

.odds-chart-card h3,
.odds-chart-card span {
  margin: 0;
}

.odds-chart-card > div:first-child {
  margin-bottom: 10px;
}

.odds-chart-card > div:first-child span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.mini-chart-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 48px;
  gap: 8px;
  align-items: center;
  min-width: 0;
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 8px;
}

.mini-chart-row + .mini-chart-row {
  margin-top: 7px;
}

.mini-chart-row b,
.mini-chart-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.mini-chart-row small {
  color: var(--muted);
  font-weight: 900;
  text-align: right;
}

.mini-chart-row .sparkline {
  height: 34px;
  margin: 0;
}

.trend-gap {
  margin-top: 14px;
}

.history-table th:first-child,
.history-table td:first-child {
  width: 9%;
}

.history-table th:nth-child(2),
.history-table td:nth-child(2) {
  width: 12%;
}

.history-table th:nth-child(3),
.history-table td:nth-child(3) {
  width: 22%;
  text-align: left;
}

.sporttery-table th:first-child,
.sporttery-table td:first-child {
  width: 9%;
}

.sporttery-table th:nth-child(2),
.sporttery-table td:nth-child(2) {
  width: 20%;
  text-align: left;
}

.history-table td,
.sporttery-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sporttery-odds-block {
  border-color: rgba(198, 144, 47, 0.32);
}

.official-lineup-block {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(8, 127, 91, 0.22);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.official-lineup-block h4,
.official-lineup-block p {
  margin: 0;
}

.official-lineup-block p,
.official-lineup-block a,
.official-lineup-block em {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.odds-alert-block {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(180, 35, 24, 0.18);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.odds-alert-block h4 {
  margin: 0;
}

.odds-alert-list {
  display: grid;
  gap: 8px;
}

.odds-alert-list span {
  display: grid;
  gap: 4px;
  border-radius: 8px;
  background: rgba(198, 144, 47, 0.12);
  color: var(--ink);
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.odds-alert-list span.strong {
  background: rgba(180, 35, 24, 0.1);
}

.odds-alert-list b {
  color: #8a5b11;
}

.odds-alert-list span.strong b {
  color: var(--danger);
}

.odds-alert-list em {
  color: var(--muted);
  font-style: normal;
}

.odds-alert-badge {
  display: inline-flex;
  min-width: 52px;
  justify-content: center;
  border-radius: 8px;
  background: rgba(198, 144, 47, 0.14);
  color: #8a5b11;
  padding: 4px 8px;
  font-weight: 900;
}

.odds-alert-badge.strong {
  background: rgba(180, 35, 24, 0.12);
  color: var(--danger);
}

.official-lineup-block a {
  color: var(--accent-dark);
  text-decoration: none;
}

.lineup-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lineup-status-row span {
  border-radius: 8px;
  background: rgba(198, 144, 47, 0.14);
  color: #8a5b11;
  padding: 6px 10px;
  font-weight: 900;
}

.lineup-status-row span.confirmed {
  background: rgba(8, 127, 91, 0.12);
  color: var(--accent-dark);
}

.official-lineup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.official-lineup-grid div {
  min-width: 0;
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
}

.official-lineup-grid b,
.official-lineup-grid span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.official-lineup-grid b {
  margin-bottom: 6px;
}

.official-lineup-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.history-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  border-radius: 8px;
  padding: 4px 8px;
  font-weight: 900;
}

.history-status.pending {
  background: var(--surface-soft);
  color: var(--muted);
}

.history-status.score-hit,
.history-status.result-hit {
  background: rgba(8, 127, 91, 0.12);
  color: var(--accent-dark);
}

.history-status.miss {
  background: rgba(180, 35, 24, 0.12);
  color: var(--danger);
}

.trend-up {
  color: var(--accent-dark);
  font-weight: 900;
}

.trend-down {
  color: var(--danger);
  font-weight: 900;
}

.odds-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 14px;
}

.odds-rank {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--accent);
  font-weight: 900;
}

.odds-main {
  min-width: 0;
}

.odds-main h3,
.odds-main p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.odds-main h3 {
  margin: 0 0 4px;
}

.odds-main p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.odds-values {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 8px;
}

.odds-values span {
  display: grid;
  min-width: 68px;
  min-height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.odds-values b {
  color: var(--ink);
}

.odds-diff {
  grid-column: 1 / -1;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 900;
}

.odds-diff.model-side {
  background: rgba(8, 127, 91, 0.1);
  color: var(--accent-dark);
}

.odds-diff.market-side {
  background: rgba(198, 144, 47, 0.14);
  color: #7a5318;
}

.model-side-text {
  color: var(--accent-dark);
  font-weight: 900;
}

.market-side-text {
  color: #7a5318;
  font-weight: 900;
}

.match-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 14px;
}

.filter-chip {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 0 12px;
  font-weight: 900;
}

.filter-chip.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.match-card {
  min-width: 0;
  padding: 14px;
}

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

.match-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 14px 0;
  text-align: center;
}

.match-teams strong,
.match-teams small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-teams strong {
  font-size: 22px;
}

.match-teams small {
  color: var(--muted);
}

.match-teams b {
  display: grid;
  min-height: 48px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--accent-dark);
  font-size: 26px;
}

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

.prob-grid span {
  min-height: 34px;
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.match-pick {
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.match-pick strong {
  color: var(--accent-dark);
  font-size: 18px;
}

.result-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  line-height: 1.4;
}

.result-check strong {
  white-space: nowrap;
}

.result-check.pending {
  background: var(--surface-soft);
  color: var(--muted);
}

.result-check.score-hit,
.result-check.result-hit {
  background: rgba(8, 127, 91, 0.1);
  color: var(--accent-dark);
}

.result-check.miss {
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger);
}

.scoreline-block {
  margin-top: 12px;
}

.scoreline-block h4 {
  margin: 0 0 8px;
  font-size: 13px;
}

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

.scoreline-list span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.scoreline-list b {
  color: var(--ink);
  font-size: 15px;
}

.opener-block {
  margin-top: 12px;
}

.opener-block h4 {
  margin: 0 0 8px;
  font-size: 13px;
}

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

.opener-grid span {
  display: grid;
  gap: 4px;
  min-height: 82px;
  border-radius: 8px;
  background: rgba(20, 81, 152, 0.07);
  color: var(--muted);
  padding: 10px;
  font-size: 12px;
  line-height: 1.45;
}

.opener-grid b {
  color: var(--ink);
  font-size: 14px;
}

.opener-grid em {
  color: var(--muted);
  font-style: normal;
}

.match-odds-block {
  margin-top: 12px;
}

.match-odds-block h4 {
  margin: 0 0 8px;
  font-size: 13px;
}

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

.market-prob-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.market-prob-grid span {
  min-height: 36px;
  border-radius: 8px;
  background: rgba(119, 73, 10, 0.08);
  color: var(--muted);
  padding: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.market-prob-grid b {
  color: #8a5a08;
}

.match-odds-grid span {
  display: grid;
  gap: 4px;
  min-height: 62px;
  border-radius: 8px;
  background: rgba(119, 73, 10, 0.08);
  color: var(--muted);
  padding: 10px;
  font-size: 12px;
  line-height: 1.45;
}

.match-odds-grid b {
  color: #8a5a08;
  font-size: 14px;
}

.match-odds-block em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.5;
}

.market-adjusted-pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  border-radius: 8px;
  background: rgba(8, 127, 91, 0.08);
  color: var(--muted);
  padding: 10px;
  font-size: 12px;
  line-height: 1.5;
}

.market-adjusted-pick strong {
  color: var(--accent-dark);
  white-space: nowrap;
}

.news-signal-block {
  margin-top: 12px;
}

.news-signal-block h4 {
  margin: 0 0 8px;
  font-size: 13px;
}

.news-signal-list {
  display: grid;
  gap: 8px;
}

.news-signal-list a {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(20, 81, 152, 0.13);
  border-radius: 8px;
  background: rgba(20, 81, 152, 0.06);
  color: var(--muted);
  padding: 10px;
  text-decoration: none;
}

.news-signal-list span,
.news-signal-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.news-signal-list b {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.key-lineups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.key-lineups h4 {
  margin: 0 0 8px;
  font-size: 13px;
}

.reason-note {
  margin: 12px 0 0;
  border-radius: 8px;
  background: rgba(8, 127, 91, 0.08);
  color: var(--muted);
  padding: 10px;
  font-size: 13px;
  line-height: 1.6;
}

.availability-alert {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  border: 1px solid rgba(203, 120, 32, 0.22);
  border-radius: 8px;
  background: rgba(203, 120, 32, 0.08);
  color: var(--muted);
  padding: 10px;
  font-size: 12px;
  line-height: 1.5;
}

.availability-alert strong {
  color: #91520f;
  font-size: 13px;
}

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

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

.favorite-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 14px;
}

.favorite-rank {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--accent);
  font-weight: 900;
}

.favorite-card h3 {
  overflow: hidden;
  margin: 0 0 4px;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-card p {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-card strong {
  font-size: 18px;
}

.bar {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.group-card,
.standing-card,
.editor-card {
  min-width: 0;
  padding: 14px;
}

.group-title,
.standing-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.group-title h3,
.standing-title h3 {
  margin: 0;
}

.group-title span,
.standing-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px 24px 48px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 44px;
  border-top: 1px solid var(--line);
}

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

.team-name {
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-name.right {
  text-align: right;
}

.score-input {
  width: 48px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  font-weight: 800;
}

.score-sep {
  color: var(--muted);
  text-align: center;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  height: 34px;
  border-top: 1px solid var(--line);
  text-align: right;
  font-size: 13px;
}

th:first-child,
td:first-child {
  width: 42%;
  text-align: left;
}

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

td:first-child {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-1 td:first-child,
.rank-2 td:first-child {
  color: var(--accent);
}

.rank-3 td:first-child {
  color: var(--gold);
}

.qualified-panel {
  margin-top: 16px;
  padding: 16px;
}

.qualified-panel h3 {
  margin-bottom: 12px;
}

.qualified-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qualified-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 0 12px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.bracket {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.round {
  padding: 12px;
}

.round h3 {
  margin-bottom: 12px;
  font-size: 16px;
}

.fixture {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.fixture:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.fixture-pair {
  display: grid;
  gap: 6px;
}

.fixture-team {
  min-height: 32px;
  border-radius: 8px;
  padding: 7px 9px;
  background: var(--surface-soft);
  font-weight: 800;
}

.fixture-team.winner {
  background: rgba(8, 127, 91, 0.13);
  color: var(--accent-dark);
}

.fixture-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.winner-select {
  width: 100%;
  border-radius: 8px;
  padding: 0 9px;
  font-weight: 800;
}

.model-grid {
  margin-bottom: 14px;
}

.model-card {
  padding: 16px;
}

.model-card h3 {
  margin-bottom: 8px;
}

.model-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.data-table {
  overflow-x: auto;
  padding: 12px;
}

.squad-card {
  min-width: 0;
  padding: 14px;
}

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

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

.squad-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.squad-head strong {
  display: grid;
  min-width: 40px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--accent);
}

.squad-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.squad-stats span {
  min-height: 34px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 8px;
  font-size: 12px;
  font-weight: 800;
}

.lineup-block {
  margin-top: 12px;
}

.lineup-block h4 {
  margin: 0 0 8px;
  font-size: 14px;
}

.player-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.player-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 9px;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.player-pill b {
  margin-right: 6px;
  color: var(--accent);
}

details {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

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

.player-table {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.player-row {
  display: grid;
  grid-template-columns: 28px 34px minmax(120px, 1fr) 110px minmax(100px, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 34px;
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 6px 8px;
  font-size: 12px;
}

.player-row strong,
.player-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-row b {
  color: var(--accent);
}

.player-row em {
  color: var(--muted);
  font-style: normal;
}

.empty-note {
  color: var(--muted);
  font-size: 13px;
}

.editor-card h3 {
  margin-bottom: 12px;
}

.team-inputs {
  display: grid;
  gap: 8px;
}

.team-input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .matches-grid,
  .match-prediction-grid,
  .standings-grid,
  .team-editor,
  .favorites-grid,
  .model-grid,
  .squads-grid,
  .team-detail-grid,
  .history-grid,
  .data-status-grid,
  .data-gaps-grid,
  .odds-grid,
  .metrics-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calculator-main,
  .calculator-play-grid,
  .odds-chart-grid {
    grid-template-columns: 1fr;
  }

  .jc-bottom-panel {
    grid-template-columns: 1fr 1fr;
  }

  .jc-detail-panel > div,
  .jc-detail-panel article {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jc-selected,
  .jc-pass {
    grid-column: 1 / -1;
  }

  .calculator-suggestions > div,
  .calculator-suggestions > .calculator-advice-grid,
  .calculator-plan-grid,
  .calculator-chart-grid,
  .calculator-option-grid,
  .calculator-play-card:nth-child(3) .calculator-option-grid,
  .calculator-play-card:nth-child(5) .calculator-option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 20px, 1440px);
    padding-top: 18px;
  }

  .topbar,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .winner-card {
    min-height: 150px;
  }

  .matches-grid,
  .match-prediction-grid,
  .standings-grid,
  .team-editor,
  .favorites-grid,
  .model-grid,
  .squads-grid,
  .team-detail-grid,
  .history-grid,
  .data-status-grid,
  .data-gaps-grid,
  .odds-grid,
  .metrics-row {
    grid-template-columns: 1fr;
  }

  .history-table-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .match-row {
    grid-template-columns: minmax(0, 1fr) 42px 18px 42px minmax(0, 1fr);
  }

  .score-input {
    width: 42px;
  }

  .squad-stats,
  .player-row,
  .key-lineups,
  .prob-grid,
  .opener-grid,
  .scoreline-list {
    grid-template-columns: 1fr 1fr;
  }

  .official-lineup-grid {
    grid-template-columns: 1fr;
  }

  .team-selector,
  .team-detail-facts,
  .team-fixture-row {
    grid-template-columns: 1fr;
  }

  .calculator-suggestions > div,
  .calculator-suggestions > .calculator-advice-grid,
  .calculator-plan-grid,
  .calculator-chart-grid,
  .calculator-option-grid,
  .calculator-play-card:nth-child(3) .calculator-option-grid,
  .calculator-play-card:nth-child(5) .calculator-option-grid,
  .payout-card {
    grid-template-columns: 1fr;
  }

  .jc-tabs button {
    flex: 1 1 33%;
  }

  .jc-bottom-panel {
    grid-template-columns: 1fr;
  }

  .jc-detail-panel > div,
  .jc-detail-panel article {
    grid-template-columns: 1fr;
  }

  .jc-selected,
  .jc-pass {
    grid-column: auto;
  }

  .match-teams {
    grid-template-columns: 1fr;
  }

  .odds-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .odds-values {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr 1fr;
  }

  .player-row strong,
  .player-row em {
    grid-column: 1 / -1;
  }
}
