:root {
  /* Light theme (default). Dark theme below; theme.js picks one before the page is drawn. */
  --canvas: #f4f7f6; --surface: #ffffff; --surface-2: #f2f6f3; --surface-3: #e7eeea; --paper: #ffffff;
  --ink: #142924; --muted: #5f706b; --line: #e3eae6; --line-strong: #c9d5cf;
  --green: #157a55; --accent: #1f8a60; --accent-soft: #e6f4ec; --accent-line: #bfe0cc;
  --lime: #c8f58b; --cyan: #2f7f93; --info: #2f7f93; --info-soft: #e5f2f5;
  --amber: #94702c; --warn: #9a6a14; --warn-soft: #fbf3e2; --warn-line: #ead9b4;
  --red: #b3443f; --danger: #b3443f; --danger-soft: #fbeceb; --danger-line: #f0d2d0;
  --header-bg: rgba(255, 255, 255, .82); --shadow: 0 1px 2px rgba(16, 40, 32, .05), 0 8px 24px rgba(16, 40, 32, .06);
  --radius: 16px;
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink); background: var(--canvas);
  font-size: 14px; font-synthesis: none; -webkit-font-smoothing: antialiased;
}
:root[data-theme="dark"] {
  --canvas: #0b1220; --surface: #121b2d; --surface-2: #172238; --surface-3: #1e2b44; --paper: #121b2d;
  --ink: #e7edf5; --muted: #93a3ba; --line: #22304a; --line-strong: #33446a;
  --green: #3ec488; --accent: #2fa874; --accent-soft: #11291f; --accent-line: #1e4a37;
  --lime: #c8f58b; --cyan: #5fc3d6; --info: #5fc3d6; --info-soft: #112a33;
  --amber: #e2b35c; --warn: #e2b35c; --warn-soft: #2b2416; --warn-line: #4a3d22;
  --red: #f0817a; --danger: #f0817a; --danger-soft: #331b1e; --danger-line: #59302f;
  --header-bg: rgba(11, 18, 32, .82); --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, a, select, summary { touch-action: manipulation; }
button, a { transition: background .18s, color .18s, border-color .18s, box-shadow .18s; }
button { cursor: pointer; border: 0; }
button:disabled { cursor: not-allowed; opacity: .45; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin: 0; }
svg.lucide { width: 18px; height: 18px; stroke-width: 1.8; flex-shrink: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 20; background: var(--surface); padding: 15px; }
.skip-link:focus { top: 10px; }
.sidebar { width: 236px; position: fixed; inset: 0 auto 0 0; background: #122b25; color: #e3ebe7; padding: 36px 18px 22px; display: flex; flex-direction: column; z-index: 4; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 750; font-size: 28px; padding: 0 13px; line-height: 1; letter-spacing: 1px; }
.brand-mark { font: 800 36px Arial,sans-serif; width: 43px; height: 45px; background: var(--lime); color: var(--green); border-radius: 13px 13px 3px 13px; display: grid; place-items: center; padding-bottom: 7px; }
.brand-sub { display: block; font-size: 7px; font-weight: 500; letter-spacing: 1.3px; margin-top: 9px; color: var(--muted); }
.nav-caption { font-size: 10px; color: var(--muted); margin: 49px 15px 17px; letter-spacing: 1.6px; font-weight: 600; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 14px; font-size: 12px; min-height: 48px; border-radius: 9px; margin-bottom: 8px; color: var(--muted); }
.nav-link:hover { background: #203d32; color: white; }
.nav-link.active { background: var(--lime); color: var(--green); font-weight: 700; box-shadow: 0 4px 16px #0000000d; }
.nav-count { margin-left: auto; font-size: 10px; background: #193f2d14; border-radius: 5px; padding: 3px 5px; min-width: 27px; text-align: center; }
.sidebar-bottom { margin-top: auto; padding-top: 32px; }
.sidebar-tip { border: 1px solid #385045; border-radius: 12px; padding: 20px 16px; background: #1c352b; }
.sidebar-tip > svg { color: var(--lime); width: 25px; height: 25px; margin-bottom: 20px; }
.sidebar-tip strong { display: block; font-size: 15px; font-weight: 600; }
.sidebar-tip p { font-size: 11px; line-height: 1.8; color: var(--muted); margin: 8px 0 18px; }
.sidebar-tip a { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--lime); }
.sidebar-tip a:hover { color: white; }
.local-status { display: flex; gap: 9px; align-items: center; font-size: 11px; color: var(--muted); padding: 24px 6px 0; }
.local-status svg { width: 15px; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); flex-shrink: 0; }
.local-status .status-dot { margin-left: auto; }
.workspace { margin-left: 236px; min-width: 0; }
.topbar { height: 72px; display: flex; align-items: center; gap: 20px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 0 36px; }
.breadcrumb { display: flex; gap: 12px; font-size: 12px; color: var(--muted); min-width: 0; }
.breadcrumb strong { font-weight: 600; color: var(--green); }
.breadcrumb span { color: var(--muted); }
.date-label { margin-left: auto; color: var(--muted); font-size: 11px; }
.workspace-badge { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 20px; }
.workspace-badge .status-dot { background: var(--accent); }
.icon-button { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; flex-shrink: 0; }
.icon-button:hover { background: var(--surface-2); border-color: var(--line); }
.icon-button svg { width: 16px; height: 16px; }
main { max-width: 1540px; margin: 0 auto; padding: 32px 36px 0; outline: none; }
.page-heading { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 26px; }
.eyebrow { font-size: 9px; font-weight: 700; color: var(--green); letter-spacing: 1.7px; }
.page-heading > div > .eyebrow { display: none; }
h1 { font-size: 31px; font-weight: 700; letter-spacing: -1.2px; line-height: 1.25; margin-bottom: 7px; }
.title-dot { color: var(--green); }
.page-heading p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.heading-actions { display: flex; gap: 10px; flex-shrink: 0; }
.button { display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-height: 42px; padding: 10px 17px; border-radius: 9px; font-size: 12px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.button.primary { background: var(--green); color: white; box-shadow: 0 3px 6px #176b5012; }
.button.primary:hover { background: #11533e; box-shadow: 0 4px 10px #176b5026; }
.button.secondary { background: var(--surface); border-color: var(--line); }
.button.secondary:hover { background: var(--surface-2); border-color: var(--line); }
.button.small { min-height: 34px; padding: 7px 11px; }
.button svg { width: 16px; height: 16px; }
.matchday-banner { display: flex; align-items: center; justify-content: space-between; position: relative; isolation: isolate; overflow: hidden; min-height: 241px; padding: 28px 32px; border-radius: 17px; background: #143a2d; color: white; margin-bottom: 20px; }
.banner-copy { z-index: 1; }
.banner-kicker { display: inline-flex; gap: 8px; align-items: center; color: #d3e9cf; font-size: 9px; letter-spacing: 1.8px; font-weight: 600; }
.banner-copy h2 { font-size: clamp(28px, 2.9vw, 41px); font-weight: 650; letter-spacing: -1.4px; line-height: 1.09; margin: 15px 0 10px; }
.banner-copy p { color: var(--green); font-size: 11px; line-height: 1.7; }
.banner-link { display: inline-flex; align-items: center; gap: 19px; font-size: 11px; color: var(--lime); margin-top: 17px; font-weight: 600; }
.banner-link:hover { color: white; }
.banner-link svg { width: 15px; }
.banner-pitch { position: absolute; inset: 0 0 0 25%; z-index: -1; background: linear-gradient(90deg, #143a2d 0%, #143a2d40 60%, #143a2d66), linear-gradient(0deg, #143a2d70, #143a2d40), url('pitch.jpg') center 53% / cover; opacity: .7; }
.next-match { width: 280px; max-width: 44%; border: 1px solid #ffffff29; background: #113729db; border-radius: 13px; padding: 19px 20px; margin-left: 24px; }
.next-label { display: flex; justify-content: space-between; align-items: center; color: var(--lime); font-size: 9px; font-weight: 650; letter-spacing: 1.7px; }
.next-label svg { width: 14px; height: 14px; }
.next-match > p { color: #bad0c3; font-size: 11px; line-height: 1.6; margin-top: 12px; }
.next-league { font-size: 10px; color: #b9cdbf; margin: 13px 0 10px; overflow-wrap: anywhere; }
.next-teams { font-size: 17px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.next-teams span { display: block; font-size: 10px; color: var(--muted); font-weight: 400; margin: 3px 0; }
.next-match-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #ffffff1c; margin-top: 14px; padding-top: 12px; }
.next-match-footer > span { font-size: 10px; color: #c3d6c8; }
.next-match-footer button { background: var(--accent-soft); border-radius: 7px; padding: 7px 9px; color: var(--green); font-weight: 600; font-size: 10px; white-space: nowrap; }
.next-match-footer button:hover { background: var(--surface); }
.summary-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.summary-item { border: 1px solid var(--line); border-radius: 12px; padding: 19px 20px 16px; min-width: 0; background: var(--surface); box-shadow: 0 3px 9px #1f382403; }
.metric-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 500; }
.metric-label svg { color: var(--muted); width: 29px; height: 29px; padding: 6px; border-radius: 8px; background: var(--surface-2); }
.summary-item > strong { display: block; font-size: 32px; font-weight: 650; letter-spacing: -1px; margin: 9px 0 5px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.summary-item > span { font-size: 10px; color: var(--muted); line-height: 1.5; display: block; }
.summary-item:last-child { background: var(--accent-soft); border-color: var(--line); }
.summary-item:last-child > strong { color: var(--green); }
.notice { display: flex; gap: 10px; align-items: flex-start; background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn-line); padding: 12px 15px; border-radius: 9px; margin: 17px 0; font-size: 11px; line-height: 1.7; }
.notice svg { width: 16px; height: 16px; margin-top: 2px; }
.notice.error { background: var(--danger-soft); border-color: var(--danger-line); color: var(--red); }
.forecast-panel { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 23px 23px 0; margin-top: 20px; scroll-margin-top: 20px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 21px; }
h2 { font-size: 19px; font-weight: 650; letter-spacing: -.4px; }
.section-heading h2 { margin-top: 6px; }
.count-label { display: inline-block; font-size: 10px; font-weight: 600; color: var(--muted); background: var(--surface-2); border-radius: 6px; padding: 3px 7px; margin-left: 7px; vertical-align: middle; letter-spacing: 0; }
.updated { font-size: 10px; color: var(--muted); text-align: right; }
.filterbar { display: flex; gap: 8px; }
.search-field { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; gap: 9px; padding: 0 12px; flex: 1; min-width: 160px; }
.search-field:focus-within { border-color: var(--accent); background: var(--surface); }
.search-field svg { color: var(--muted); width: 16px; height: 16px; }
.search-field input { width: 100%; padding: 12px 0; border: 0; background: transparent; min-width: 0; font-size: 11px; }
.search-field input::placeholder { color: var(--muted); }
.select-field { max-width: 185px; min-width: 122px; flex: 0 1 160px; }
.select-field select { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); width: 100%; padding: 11px 21px 11px 10px; min-height: 42px; font-size: 11px; text-overflow: ellipsis; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 19px 0; }
.segmented { display: flex; gap: 3px; background: var(--surface-2); border-radius: 8px; padding: 4px; }
.segmented button { background: transparent; font-size: 11px; padding: 8px 13px; border-radius: 6px; color: var(--muted); white-space: nowrap; }
.segmented button.selected { background: var(--surface); color: var(--green); font-weight: 600; box-shadow: 0 1px 5px #142c2510; }
.segmented button:hover { color: var(--green); background: var(--surface-2); }
.filter-meta { display: flex; align-items: center; gap: 14px; }
.timezone { display: flex; gap: 5px; align-items: center; }
.timezone svg { width: 13px; height: 13px; color: var(--muted); }
.text-button { padding: 6px 0; background: transparent; color: var(--green); text-decoration: underline; font-size: 11px; }
.muted { color: var(--muted); font-size: 10px; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { font-size: 10px; font-weight: 500; color: var(--muted); padding: 14px 12px; background: var(--surface); white-space: nowrap; }
td { padding: 17px 12px; font-size: 12px; border-top: 1px solid var(--line); }
.forecast-table { table-layout: fixed; min-width: 690px; }
.forecast-table th:first-child { width: 34%; }
.forecast-table th:nth-child(2) { width: 13%; }
.forecast-table th:nth-child(3), .forecast-table th:nth-child(4), .forecast-table th:nth-child(5) { width: 10%; }
.forecast-table th:nth-child(6) { width: 18%; }
.forecast-table th:last-child { width: 5%; padding-left: 0; padding-right: 5px; }
.forecast-table td:last-child { padding: 8px 5px 8px 0; }
.forecast-table tbody tr:hover { background: var(--surface-2); }
.match-name { display: block; font-weight: 600; font-size: 12px; line-height: 1.6; color: var(--green); }
.match-name:hover { color: var(--green); }
.match-name button { display: block; border: 0; background: transparent; text-align: left; font: inherit; padding: 0; line-height: inherit; color: inherit; width: 100%; overflow-wrap: anywhere; }
.team-line { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.team-line:last-child { margin-bottom: 0; }
.team-avatar { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 22px; height: 24px; border-radius: 7px 7px 9px 9px; font-size: 8px; font-weight: 700; letter-spacing: -.2px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.team-avatar.away { background: var(--info-soft); color: var(--muted); border-color: var(--line); }
.team-versus { color: var(--muted); font-weight: 400; margin: 0 6px; font-size: .55em; }
.match-meta { font-size: 9px; color: var(--muted); margin-top: 9px; display: flex; align-items: center; gap: 6px; line-height: 1.5; }
.league-marker { width: 5px; height: 5px; border-radius: 50%; background: var(--surface-3); flex-shrink: 0; }
.kickoff-date { display: block; font-size: 11px; font-weight: 500; }
.kickoff-time { display: block; font-size: 10px; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.prob-col { text-align: center; }
.prob-col span { color: var(--muted); font-size: 9px; margin-left: 4px; }
.prob-cell { text-align: center; font-variant-numeric: tabular-nums; }
.probability { display: inline-block; min-width: 51px; padding: 9px 5px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); }
.probability.leading { background: var(--accent-soft); color: var(--green); }
.source-label { display: block; font-size: 10px; font-weight: 600; color: var(--cyan); line-height: 1.6; }
.quality-label { display: block; color: var(--warn); font-size: 9px; margin-top: 5px; line-height: 1.5; }
.row-arrow { border: 0; width: 27px; height: 32px; color: var(--muted); background: transparent; }
.row-arrow:hover { background: var(--surface-2); color: var(--green); }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.pagination > div { display: flex; gap: 15px; align-items: center; font-size: 11px; color: var(--muted); }
.empty-cell { padding: 55px 20px; text-align: center; color: var(--muted); line-height: 1.8; }
.empty-cell strong { display: block; font-size: 16px; color: var(--muted); margin-bottom: 5px; }
.clear-button { display: flex; margin: 17px auto 0; }
.scan-panel { background: var(--surface-2); border: 1px solid var(--line); padding: 20px; border-radius: 12px; margin: 0 0 23px; }
.scan-head { display: flex; gap: 15px; justify-content: space-between; align-items: flex-start; }
.scan-head strong { font-size: 14px; }
.scan-head p { font-size: 12px; color: var(--muted); margin: 6px 0 12px; line-height: 1.5; overflow-wrap: anywhere; }
progress { width: 100%; height: 6px; border: 0; display: block; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
progress::-webkit-progress-bar { background: var(--surface-2); }
progress::-webkit-progress-value { background: var(--green); transition: width .4s; }
progress::-moz-progress-bar { background: var(--green); }
details { margin-top: 12px; font-size: 11px; color: var(--muted); }
summary { cursor: pointer; }
#scan-log { max-height: 180px; overflow: auto; padding: 0; list-style: none; line-height: 1.8; }
#scan-log li { overflow-wrap: anywhere; }
#scan-log time { color: var(--muted); margin-right: 10px; font-variant-numeric: tabular-nums; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 26px 0; margin-top: 12px; font-size: 10px; color: var(--muted); }
.footer-divider { margin: 0 7px; color: #bfcbc2; }
.match-dialog { position: fixed; inset: 0 0 0 auto; margin: 0; width: 520px; max-width: 100%; height: 100dvh; max-height: 100dvh; border: 0; border-left: 1px solid var(--line); padding: 26px 30px; box-shadow: -15px 0 60px #122f2419; color: var(--ink); background: var(--surface); overflow: auto; overscroll-behavior: contain; }
body.dialog-open { overflow: hidden; }  /* Set by app.js: a body:has() rule made every page change re-check all styles. */
.match-dialog::backdrop { background: #152d226b; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
#detail-title { font-size: 27px; line-height: 1.4; overflow-wrap: anywhere; letter-spacing: -.6px; }
.detail-league { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 10px 0 24px; }
.detail-kicker { font-size: 10px; letter-spacing: 1.4px; color: var(--green); font-weight: 600; margin-bottom: 9px; }
.prob-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 20px; }
.prob-summary > div { padding: 14px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.prob-summary span { font-size: 11px; color: var(--muted); display: block; }
.prob-summary strong { display: block; margin-top: 7px; font-size: 27px; font-weight: 650; letter-spacing: -.7px; }
.prob-summary > div:nth-child(1) strong { color: var(--green); }
.prob-summary > div:nth-child(2) strong { color: var(--muted); }
.prob-summary > div:nth-child(3) strong { color: var(--cyan); }
.prob-bar { display: flex; height: 7px; gap: 3px; margin: 12px 0 24px; }
.prob-bar span { min-width: 0; border-radius: 3px; }
.prob-bar .home { background: var(--accent); }
.prob-bar .draw { background: var(--accent); }
.prob-bar .away { background: var(--info); }
.detail-section { border-top: 1px solid var(--line); padding: 23px 0; }
.detail-section h3 { font-size: 14px; margin-bottom: 14px; }
.detail-section p { font-size: 12px; line-height: 1.7; color: var(--muted); }
.detail-row { display: flex; justify-content: space-between; gap: 15px; padding: 9px 0; font-size: 12px; color: var(--muted); }
.detail-row strong { color: var(--muted); font-weight: 600; text-align: right; }
.detail-notes { padding-left: 16px; line-height: 1.8; font-size: 12px; color: var(--muted); }
.odds-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; background: var(--surface); padding: 16px; border-radius: 10px; }
.odds-grid span { display: block; font-size: 10px; color: var(--muted); }
.odds-grid strong { font-size: 19px; font-weight: 600; display: block; margin-top: 8px; }
.detail-note { font-size: 11px !important; margin-top: 10px !important; color: var(--warn) !important; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #23372b; color: white; padding: 14px 22px; border-radius: 10px; z-index: 20; box-shadow: 0 6px 30px #0002; font-size: 13px; max-width: calc(100vw - 30px); }
.performance-layout { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(250px,1fr); gap: 20px; margin-top: 23px; }
.report-section { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 23px; margin-bottom: 20px; min-width: 0; }
.report-section h2 { margin-bottom: 18px; }
.report-section > p { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 8px 0 20px; }
.benchmark-table th, .benchmark-table td { padding: 15px 12px; }
.benchmark-table .highlight-row { color: var(--green); font-weight: 600; background: var(--surface-2); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; background: var(--surface-2); color: var(--green); font-size: 10px; border-radius: 5px; white-space: nowrap; }
.badge.warning { color: var(--warn); background: var(--warn-soft); }
.badge.neutral { background: var(--info-soft); color: var(--cyan); }
.calibration-legend { display: flex; gap: 20px; margin: 10px 0 20px; font-size: 11px; color: var(--muted); }
.legend-key { width: 8px; height: 8px; display: inline-block; background: var(--accent); margin-right: 5px; border-radius: 2px; }
.legend-key.observed { background: var(--info); }
.calibration-row { display: grid; grid-template-columns: 65px 1fr 60px; gap: 12px; align-items: center; margin-bottom: 17px; font-size: 11px; color: var(--muted); }
.calibration-bars { display: flex; flex-direction: column; gap: 4px; }
.calibration-bars span { height: 7px; background: var(--accent); border-radius: 2px; }
.calibration-bars span + span { background: var(--info); }
.calibration-value { text-align: right; font-variant-numeric: tabular-nums; }
.connection-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.history-table { min-width: 570px; }
.history-table th:first-child { width: 30%; }
.history-caption { font-size: 12px; color: var(--muted); margin: 15px 0; }
.asset-credit { font-size: 10px; color: var(--muted); line-height: 1.6; margin-top: 25px; }
.asset-credit a { text-decoration: underline; }
.spin { animation: rotate 1.5s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }
@media (min-width: 1700px) { main { padding: 40px 48px 0; } .topbar { padding: 0 48px; } .matchday-banner { min-height: 270px; } }
@media (max-width: 1200px) {
  .sidebar { width: 208px; padding-left: 12px; padding-right: 12px; }
  .workspace { margin-left: 208px; } main { padding: 26px 24px 0; } .topbar { padding: 0 24px; }
  .workspace-badge { display: none; } .summary-strip { gap: 10px; } .summary-item { padding: 17px 14px; }
  .metric-label { font-size: 10px; } .metric-label svg { width: 24px; height: 24px; padding: 5px; }
  .filterbar { flex-wrap: wrap; } .search-field { flex: 1 1 100%; } .select-field { flex: 1; max-width: none; }
  .performance-layout { grid-template-columns: 1fr; } .matchday-banner { padding: 26px; }
  .forecast-panel { padding: 20px 16px 0; } .timezone { display: none; }
}
@media (max-width: 900px) {
  .sidebar { position: relative; width: 100%; padding: 17px 24px; flex-direction: row; align-items: center; gap: 24px; }
  .brand { font-size: 23px; padding: 0; gap: 9px; } .brand-mark { width: 34px; height: 37px; font-size: 29px; }
  .brand-sub, .nav-caption, .sidebar-bottom, .nav-count { display: none; }
  .sidebar nav { display: flex; gap: 6px; margin-left: auto; } .nav-link { margin: 0; min-height: 38px; padding: 9px 11px; font-size: 11px; gap: 7px; }
  .nav-link svg { width: 16px; height: 16px; } .workspace { margin-left: 0; } .topbar { height: 54px; }
  .banner-copy h2 { font-size: 36px; } .timezone { display: flex; }
}
@media (max-width: 600px) {
  .sidebar { flex-wrap: wrap; gap: 19px; padding: 19px 18px 13px; }
  .sidebar nav { width: 100%; margin: 0; justify-content: space-between; gap: 4px; }
  .nav-link { flex: 1; justify-content: center; padding: 10px 4px; font-size: 10px; gap: 5px; }
  .nav-link svg { width: 14px; height: 14px; } .topbar { padding: 0 18px; gap: 8px; height: 49px; }
  .date-label { font-size: 9px; } .breadcrumb { font-size: 10px; gap: 7px; } .topbar .icon-button { width: 29px; height: 29px; }
  main { padding: 25px 16px 0; } .page-heading { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 20px; }
  h1 { font-size: 30px; } .page-heading p { font-size: 11px; } .heading-actions { width: 100%; gap: 10px; }
  .heading-actions .button { flex: 1; min-height: 43px; }
  .matchday-banner { padding: 25px; min-height: 240px; align-items: stretch; flex-direction: column; gap: 24px; }
  .banner-copy h2 { font-size: 36px; } .banner-pitch { inset: 0; background-position: center; opacity: .45; }
  .banner-kicker { font-size: 8px; letter-spacing: 1.6px; } .banner-copy p br { display: none; }
  .next-match { margin: 0; width: 100%; max-width: none; padding: 17px; border-radius: 10px; }
  .next-teams { font-size: 15px; } .next-teams span { display: inline; margin: 0 8px; }
  .next-match-footer { margin-top: 11px; } .next-league { margin-top: 9px; }
  .summary-strip { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .summary-item { padding: 15px; } .metric-label { font-size: 10px; gap: 5px; }
  .summary-item > span { font-size: 9px; } .summary-item > strong { font-size: 29px; }
  .notice { font-size: 10px; padding: 11px; }
  .forecast-panel { padding: 19px 13px 0; } .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .updated { font-size: 9px; text-align: left; } h2 { font-size: 18px; }
  .filterbar { gap: 8px; } .search-field { min-width: 100%; }
  .select-field { min-width: 0; flex: 1 1 42%; } .select-field:last-child { flex: 1 1 100%; }
  .select-field select, .search-field input { font-size: 12px; min-height: 43px; }
  .table-toolbar { align-items: stretch; flex-direction: column; gap: 11px; margin: 15px 0; }
  .segmented button { flex: 1; padding: 9px 7px; font-size: 10px; } .filter-meta { justify-content: space-between; }
  .timezone { margin-left: auto; } .timezone .muted { font-size: 9px; }
  .forecast-panel > .table-wrap { overflow: visible; border: 0; background: transparent; }
  .forecast-table, .forecast-table tbody { display: block; width: 100%; min-width: 0; }
  .forecast-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .forecast-table tr { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 11px; padding: 15px; margin-bottom: 12px; background: var(--surface); position: relative; }
  .forecast-table td { border: 0; padding: 0; }
  .forecast-table td:first-child { grid-column: 1 / 4; padding-right: 26px; margin-bottom: 11px; }
  .match-name { font-size: 12px; } .team-avatar { width: 23px; height: 25px; }
  .match-meta { font-size: 9px; margin-top: 10px; }
  .forecast-table td:nth-child(2) { grid-column: 1 / 4; display: flex; gap: 7px; align-items: baseline; margin-bottom: 14px; }
  .kickoff-date, .kickoff-time { font-size: 10px; margin: 0; }
  .forecast-table .prob-cell { padding: 0 3px; }
  .prob-cell::before { content: attr(data-label); display: block; font-size: 9px; color: var(--muted); margin-bottom: 6px; }
  .probability { width: 100%; min-width: 0; font-size: 13px; padding: 10px 3px; }
  .forecast-table td:nth-child(6) { grid-column: 1 / 4; margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 5px 10px; align-items: center; }
  .source-label { font-size: 9px; } .quality-label { font-size: 9px; margin: 0; margin-left: auto; }
  .forecast-table td:last-child { position: absolute; right: 9px; top: 11px; padding: 0; }
  .row-arrow { width: 32px; height: 38px; background: var(--surface-2); }
  .forecast-table td.empty-cell { position: static; grid-column: 1 / 4; padding: 25px 4px; font-size: 11px; }
  .pagination { padding: 7px 0 18px; } .pagination > div { gap: 8px; font-size: 10px; }
  .pagination .muted { font-size: 9px; } .pagination .icon-button { width: 31px; height: 31px; }
  footer { flex-direction: column; gap: 8px; font-size: 9px; padding: 20px 0; }
  .match-dialog { padding: 20px; } .prob-summary > div { padding: 12px 9px; } .prob-summary strong { font-size: 24px; }
  .report-section { padding: 18px 14px; } .performance-layout { gap: 0; }
  .benchmark-table th, .benchmark-table td { padding: 12px 7px; font-size: 10px; }
  .scan-panel { padding: 14px; } .scan-head .button { font-size: 10px; min-width: 88px; padding: 8px; }
  .scan-head p { font-size: 11px; } .calibration-row { grid-template-columns: 51px 1fr 46px; gap: 8px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Competition discovery and detailed match reports. */
.league-shortcut-bar { display: flex; align-items: center; gap: 14px; margin: 22px 0 0; min-width: 0; }
.league-shortcuts { display: flex; gap: 7px; overflow-x: auto; padding: 3px 2px 7px; min-width: 0; scrollbar-width: thin; flex: 1; }
.league-chip { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; white-space: nowrap; font-size: 11px; color: var(--muted); }
.league-chip svg { width: 14px; height: 14px; }
.league-chip:hover { border-color: var(--accent); color: var(--green); }
.league-chip.selected { color: #fff; background: #204b39; border-color: #204b39; }
.browse-leagues { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 11px; white-space: nowrap; font-weight: 600; }
.browse-leagues:hover { text-decoration: underline; }
.browse-leagues svg { width: 15px; height: 15px; }
.selected-league { display: flex; align-items: center; gap: 12px; padding: 17px; background: var(--accent-soft); border: 1px solid var(--line); border-radius: 9px; margin-top: 15px; }
.selected-league strong { display: block; font-size: 15px; }
.selected-league span { display: block; font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.selected-league .icon-button { margin-left: auto; }
.competition-monogram { flex-shrink: 0; width: 43px; height: 47px; border: 1px solid var(--line); background: var(--accent-soft); border-radius: 10px 10px 15px 15px; display: grid; place-items: center; font-weight: 700; color: var(--green); font-size: 14px; }
.match-extra { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 9px; color: var(--muted); line-height: 1.5; margin-top: 8px; }
.match-extra > span { padding-left: 8px; border-left: 1px solid var(--line); }
.recorded-price { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.competition-intro { display: flex; justify-content: space-between; align-items: center; overflow: hidden; border-radius: 15px; background: var(--surface-2); border: 1px solid var(--line); padding: 29px 34px; margin-bottom: 20px; }
.competition-intro h2 { font-size: 34px; letter-spacing: -1px; line-height: 1.15; margin: 12px 0; }
.competition-intro p { color: var(--muted); font-size: 12px; line-height: 1.7; max-width: 390px; }
.competition-symbol { display: grid; place-items: center; flex-shrink: 0; width: 148px; height: 148px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-2); outline: 1px solid var(--line); outline-offset: 16px; margin: 8px 36px; }
.competition-symbol svg { width: 65px; height: 65px; color: var(--green); stroke-width: 1; }
.league-directory-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 33px 0 22px; }
.league-directory-heading h2 { font-size: 18px; }
.league-directory-heading p { line-height: 1.7; margin-top: 8px; max-width: 480px; }
.league-directory-controls { display: flex; gap: 9px; flex: 0 1 420px; min-width: 280px; }
.league-directory-controls .search-field { background: var(--surface); }
.league-directory-controls .select-field { flex-basis: 158px; }
.league-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.league-card { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; padding: 22px 22px 0; transition: border-color .2s, box-shadow .2s; }
.league-card:hover { border-color: var(--accent); box-shadow: 0 7px 22px #193a2410; }
.league-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.league-card:nth-child(3n+2) .competition-monogram { background: var(--info-soft); color: var(--info); border-color: var(--line); }
.league-card:nth-child(3n+3) .competition-monogram { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.league-card h3 { font-size: 16px; font-weight: 650; letter-spacing: -.2px; margin: 19px 0 13px; min-height: 40px; line-height: 1.4; }
.league-card-stats { display: flex; flex-wrap: wrap; gap: 10px; font-size: 10px; color: var(--muted); }
.league-card-stats strong { color: var(--green); font-weight: 600; }
.league-next { margin: 19px 0; padding-top: 17px; border-top: 1px solid var(--line); }
.league-next > span { display: block; color: var(--muted); font-size: 8px; font-weight: 600; letter-spacing: 1.2px; }
.league-next strong { display: block; font-size: 11px; line-height: 1.65; font-weight: 600; margin: 8px 0; min-height: 36px; overflow-wrap: anywhere; }
.league-next em { font-style: normal; color: var(--muted); font-size: 9px; margin: 0 3px; }
.league-next time { font-size: 10px; color: var(--muted); }
.league-open { display: flex; align-items: center; justify-content: space-between; width: calc(100% + 44px); margin-left: -22px; padding: 15px 22px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 11px; color: var(--green); font-weight: 600; }
.league-open:hover { background: var(--accent-soft); }
.league-open svg { width: 16px; height: 16px; }
.directory-empty { grid-column: 1 / -1; text-align: center; padding: 65px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
.directory-empty > svg { width: 29px; height: 29px; margin-bottom: 18px; }
.directory-empty h3 { font-size: 18px; color: var(--green); }
.directory-empty p { font-size: 12px; margin: 10px 0 20px; }
.match-dialog { width: 940px; max-width: calc(100vw - 48px); height: auto; max-height: calc(100dvh - 48px); margin: auto; inset: 0; border: 1px solid var(--line); border-radius: 17px; background: var(--surface-2); padding: 0; box-shadow: 0 24px 100px #10271945; }
.dialog-header { position: sticky; top: 0; z-index: 3; padding: 17px 26px; margin: 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.dialog-header .eyebrow { font-size: 10px; }
.dialog-header .icon-button { width: 33px; height: 33px; }
#match-detail { padding: 23px 26px 27px; }
.match-report-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.detail-competition { display: inline-flex; align-items: center; gap: 7px; background: transparent; font-size: 11px; color: var(--green); font-weight: 600; padding: 0; text-align: left; }
.detail-competition:hover { color: var(--green); text-decoration: underline; }
.detail-competition svg { width: 15px; height: 15px; }
.match-hero { display: grid; grid-template-columns: 1fr 165px 1fr; gap: 20px; align-items: center; text-align: center; padding: 29px 0 27px; }
.report-team { display: flex; align-items: center; flex-direction: column; min-width: 0; }
.report-crest { display: grid; place-items: center; width: 62px; height: 69px; border-radius: 15px 15px 23px 23px; border: 1px solid var(--line); background: var(--accent-soft); color: var(--green); font-size: 23px; font-weight: 750; letter-spacing: -1px; box-shadow: inset 0 0 0 5px #f0f5e84d; }
.report-crest.away { background: var(--info-soft); color: var(--info); border-color: var(--line); }
.report-team > strong { margin-top: 13px; font-size: 18px; letter-spacing: -.3px; line-height: 1.4; overflow-wrap: anywhere; }
.report-team > span:last-child { font-size: 8px; letter-spacing: 2px; font-weight: 600; color: var(--muted); margin-top: 7px; }
.match-hero-time { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.match-hero-time > strong { font-size: 26px; letter-spacing: -.6px; font-weight: 650; }
.match-hero-time > span { font-size: 11px; color: var(--muted); }
.match-hero-time > small { font-size: 9px; color: var(--muted); }
.match-hero-time > .versus-label { font-size: 10px; font-weight: 600; letter-spacing: 2px; color: var(--muted); margin-top: 12px; border-radius: 5px; background: var(--surface-2); padding: 5px 11px; }
.match-tab-list { display: flex; gap: 7px; padding: 0; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.match-tab-list button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; background: transparent; border-bottom: 2px solid transparent; color: var(--muted); padding: 14px 19px; font-size: 12px; font-weight: 500; margin-bottom: -1px; }
.match-tab-list button[aria-selected=true] { color: var(--green); border-color: var(--accent); }
.match-tab-list button:hover { background: var(--surface-2); }
.match-tab-list svg { width: 15px; height: 15px; }
.report-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; align-items: start; }
.match-section { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 17px; min-width: 0; }
.match-section h3 { font-size: 14px; font-weight: 650; }
.report-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 17px; }
.report-section-heading > svg { width: 17px; height: 17px; color: var(--muted); }
.micro-label { font-size: 8px; letter-spacing: .9px; color: var(--muted); white-space: nowrap; }
.match-section .prob-summary { gap: 7px; margin-top: 0; }
.match-section .prob-summary > div { padding: 14px 10px; }
.match-section .prob-summary > div.is-leading { background: var(--accent-soft); border-color: var(--accent-line); }
.match-section .prob-summary strong { font-size: 23px; }
.match-section .prob-summary span { font-size: 10px; }
.match-section .prob-bar { margin-bottom: 17px; }
.forecast-verdict { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 10px; margin-bottom: 12px; }
.forecast-verdict > span { color: var(--muted); }
.forecast-verdict > strong { font-size: 12px; color: var(--green); }
.forecast-verdict strong > span { margin-left: 6px; padding-left: 7px; border-left: 1px solid var(--line); }
.report-description { font-size: 11px; color: var(--muted); line-height: 1.8; margin: 12px 0; }
.goals-outlook { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.market-tile { padding: 16px 13px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 9px; min-width: 0; }
.market-tile > span { display: block; font-size: 10px; color: var(--muted); line-height: 1.5; }
.market-tile > strong { display: block; font-size: 24px; letter-spacing: -.5px; font-weight: 650; color: var(--green); margin-top: 9px; overflow-wrap: anywhere; }
.market-tile > small { display: block; font-size: 9px; line-height: 1.7; color: var(--muted); margin-top: 6px; }
.team-goal-rates { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.team-goal-rates > div { display: flex; flex-direction: column; gap: 6px; }
.team-goal-rates span { font-size: 10px; color: var(--muted); }
.team-goal-rates strong { font-size: 15px; font-weight: 600; color: var(--green); }
.evidence-stats, .market-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.market-grid { margin-top: 18px; }
.market-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.evidence-stats .market-tile > strong { font-size: 21px; }
.report-notes { list-style: none; padding: 0; margin: 18px 0 0; }
.report-notes li { display: flex; gap: 8px; font-size: 11px; color: var(--warn); line-height: 1.65; margin-bottom: 9px; }
.report-notes svg { width: 13px; height: 13px; margin-top: 3px; }
.report-availability { display: flex; gap: 8px; font-size: 10px; color: var(--muted); line-height: 1.8; border-top: 1px solid var(--line); margin-top: 15px; padding-top: 14px; }
.report-availability svg { width: 15px; height: 15px; margin-top: 2px; }
.report-footnote { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 9px; color: var(--muted); overflow-wrap: anywhere; line-height: 1.6; }
.evidence-loading { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 60px 20px; font-size: 12px; color: var(--muted); }
.evidence-loading svg { animation: rotate 1.5s linear infinite; }
.history-explainer { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; padding: 16px 18px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.history-explainer > svg { width: 18px; height: 18px; }
.history-explainer strong { display: block; font-size: 12px; color: var(--green); }
.history-explainer p { font-size: 11px; line-height: 1.7; margin-top: 6px; }
.team-form-card .report-section-heading { align-items: flex-start; }
.team-form-card h3 { line-height: 1.5; }
.team-form-card .badge { font-size: 8px; }
.form-strip { display: flex; gap: 5px; align-items: center; margin-bottom: 17px; }
.form-result { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 5px; font-size: 9px; font-weight: 700; background: var(--warn-soft); color: var(--warn); flex-shrink: 0; }
.form-result.W { color: var(--green); background: var(--accent-soft); }
.form-result.L { color: var(--danger); background: var(--danger-soft); }
.form-strip > span:last-child:not(.form-result) { font-size: 9px; color: var(--muted); margin-left: auto; }
.form-summary { display: flex; justify-content: space-between; gap: 10px; font-size: 9px; color: var(--muted); line-height: 1.6; }
.form-summary strong { color: var(--green); font-size: 12px; font-weight: 600; display: block; }
.history-freshness { font-size: 9px; line-height: 1.8; color: var(--warn); padding: 11px 0; margin: 12px 0 0; border-top: 1px solid var(--line); }
.result-list { list-style: none; padding: 0; margin: 0; }
.result-list li { border-top: 1px solid var(--line); padding: 13px 0; }
.result-list li:last-child { padding-bottom: 0; }
.result-topline { display: flex; align-items: center; gap: 8px; font-size: 9px; color: var(--muted); margin-bottom: 7px; }
.result-venue { margin-left: auto; font-size: 8px; text-transform: uppercase; letter-spacing: .6px; }
.result-topline .form-result { height: 19px; width: 20px; font-size: 8px; }
.result-scoreline { display: grid; grid-template-columns: 1fr 63px 1fr; align-items: center; gap: 8px; font-size: 10px; color: var(--muted); line-height: 1.6; }
.result-scoreline > span:last-child { text-align: right; }
.result-scoreline > strong { text-align: center; font-size: 12px; font-weight: 650; color: var(--green); }
.result-scoreline em { font-style: normal; color: var(--muted); margin: 0 5px; }
.unavailable-history { padding: 30px 16px; text-align: center; font-size: 12px; color: var(--muted); line-height: 1.9; }
.unavailable-history h3 { color: var(--green); margin-bottom: 8px; }
.unavailable-history .button { margin-top: 17px; }
@media (max-width: 1250px) {
  .league-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .league-directory-heading { flex-wrap: wrap; gap: 17px; }
  .league-directory-controls { flex-basis: 100%; }
  .league-directory-controls .search-field { flex: 1; }
}
@media (max-width: 900px) {
  .sidebar { gap: 15px; }
  .sidebar .nav-link { padding: 10px 8px; gap: 6px; }
  .report-columns { gap: 12px; }
  .match-section { padding: 16px; }
  .match-section .prob-summary strong { font-size: 21px; }
  .micro-label { font-size: 7px; }
}
@media (max-width: 600px) {
  .sidebar nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; }
  .sidebar .nav-link { flex-direction: column; font-size: 9px; padding: 9px 3px; text-align: center; gap: 7px; line-height: 1.5; }
  .sidebar .nav-link svg { width: 17px; height: 17px; }
  .league-shortcut-bar { flex-direction: column; align-items: stretch; gap: 5px; margin-top: 19px; }
  .league-chip { padding: 10px 11px; font-size: 10px; }
  .browse-leagues { align-self: flex-end; font-size: 10px; }
  .match-extra { font-size: 8px; }
  .recorded-price { font-size: 8px; }
  .selected-league { padding: 12px; gap: 10px; }
  .selected-league .competition-monogram { width: 33px; height: 39px; font-size: 11px; }
  .selected-league strong { font-size: 13px; }
  .selected-league span { font-size: 9px; }
  .competition-intro { padding: 25px; }
  .competition-intro h2 { font-size: 29px; }
  .competition-intro p { font-size: 11px; }
  .competition-symbol { display: none; }
  .league-directory-heading { margin: 26px 0 18px; }
  .league-directory-heading h2 { font-size: 17px; }
  .league-directory-controls { min-width: 0; flex-wrap: wrap; }
  .league-directory-controls .search-field { min-width: 100%; }
  .league-directory-controls .select-field { flex-basis: 100%; }
  .league-grid { grid-template-columns: minmax(0,1fr); gap: 13px; }
  .league-card { padding-top: 20px; }
  .league-card h3 { min-height: 0; }
  .league-next strong { min-height: 0; }
  .match-dialog { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .dialog-header { padding: 13px 17px; }
  #match-detail { padding: 17px; }
  .match-report-heading { flex-wrap: wrap; gap: 10px; }
  .detail-competition { font-size: 11px; }
  .match-report-heading .badge { font-size: 8px; }
  .match-hero { grid-template-columns: 1fr 84px 1fr; gap: 8px; padding: 25px 0; }
  .report-crest { width: 45px; height: 52px; font-size: 18px; border-radius: 11px 11px 18px 18px; }
  .report-team > strong { font-size: 13px; }
  .report-team > span:last-child { font-size: 7px; }
  .match-hero-time > strong { font-size: 20px; }
  .match-hero-time > span { font-size: 8px; }
  .match-hero-time > small { font-size: 7px; }
  .match-hero-time > .versus-label { font-size: 8px; margin-top: 4px; }
  .match-tab-list { gap: 0; }
  .match-tab-list button { flex: 1; padding: 13px 4px; font-size: 10px; gap: 5px; }
  .match-tab-list svg { width: 13px; height: 13px; }
  .report-columns { grid-template-columns: minmax(0,1fr); gap: 0; }
  .match-section { padding: 17px 14px; margin-bottom: 13px; }
  .match-section .prob-summary strong { font-size: 23px; }
  .report-section-heading { gap: 8px; }
  .report-section-heading h3 { font-size: 13px; }
  .evidence-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .evidence-stats > :last-child { grid-column: 1 / -1; }
  .market-grid { gap: 7px; }
  .market-tile { padding: 12px 9px; }
  .market-tile > strong { font-size: 21px; }
  .market-tile > span { font-size: 9px; }
  .market-tile > small { font-size: 8px; }
  .report-description { font-size: 11px; }
  .history-explainer { padding: 13px; }
  .history-explainer p { font-size: 10px; }
  .result-scoreline { font-size: 11px; }
}

/* Local AI forecast analysis. */
.ai-engine-status { display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 11px; padding: 15px 18px; background: var(--accent-soft); margin-bottom: 18px; }
.ai-engine-status > svg { width: 24px; height: 24px; color: var(--green); }
.ai-engine-status > div { flex: 1; }
.ai-engine-status strong { display: block; font-size: 12px; color: var(--green); }
.ai-engine-status span { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; line-height: 1.7; }
.ai-engine-status a { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: var(--green); font-weight: 600; white-space: nowrap; }
.ai-engine-status a:hover { text-decoration: underline; }
.ai-engine-status a svg { width: 14px; height: 14px; }
.ai-outlook { padding: 23px; border-radius: 13px; background: #193e2d; color: #fff; margin-bottom: 16px; }
.ai-outlook-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ai-outlook-top > span:first-child { display: inline-flex; align-items: center; gap: 7px; font-size: 9px; letter-spacing: 1.4px; color: #c1e89e; }
.ai-outlook-top svg { width: 15px; height: 15px; }
.ai-evidence { font-size: 9px; background: var(--warn); color: #dfca8b; border: 1px solid var(--warn); padding: 6px 8px; border-radius: 6px; }
.ai-evidence.supported { color: #c2e697; background: var(--accent); border-color: var(--accent-line); }
.ai-outlook-main { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding: 24px 0 17px; }
.ai-outlook-main > div > span { font-size: 10px; color: var(--muted); }
.ai-outlook-main h3 { font-size: 25px; line-height: 1.4; letter-spacing: -.7px; font-weight: 650; margin: 5px 0; }
.ai-outlook-main p { font-size: 11px; color: #afc8a8; }
.ai-outlook-main > strong { font-size: 39px; font-weight: 650; letter-spacing: -1px; color: #d1f59f; white-space: nowrap; }
.ai-summary { font-size: 11px; color: var(--green); line-height: 1.85; border-top: 1px solid var(--line-strong); padding-top: 16px; }
.ai-indicators { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; margin-bottom: 17px; }
.ai-indicators .market-tile { background: var(--surface); }
.ai-indicators .market-tile:last-child strong { font-size: 15px; line-height: 1.5; }
.ai-comparison-table { min-width: 390px; font-variant-numeric: tabular-nums; }
.ai-comparison-table th { background: var(--accent-soft); font-size: 10px; padding: 12px 10px; white-space: normal; }
.ai-comparison-table td { font-size: 11px; padding: 12px 10px; color: var(--green); }
.ai-comparison-table tbody th { background: var(--surface); font-size: 11px; color: var(--green); border-top: 1px solid var(--line); }
.ai-final-row td, .ai-final-row th { background: var(--accent-soft) !important; font-weight: 600; }
.scoreline-list > div { display: grid; grid-template-columns: 40px 1fr 44px; align-items: center; gap: 12px; margin: 15px 0; font-size: 11px; color: var(--green); }
.scoreline-list > div > span { text-align: right; font-variant-numeric: tabular-nums; }
.scoreline-track { height: 8px; border-radius: 5px; overflow: hidden; background: var(--surface-2); }
.scoreline-track span { display: block; height: 100%; border-radius: 5px; background: var(--accent); }
.scoreline-other { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: var(--muted); padding: 12px 0; border-top: 1px solid var(--line); margin-top: 20px; }
.scoreline-other strong { font-weight: 500; }
.ai-factor { display: grid; grid-template-columns: 1fr 90px 90px; gap: 15px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.ai-factor > div > strong { display: block; font-size: 11px; color: var(--green); font-weight: 500; }
.ai-factor > div > span { display: block; font-size: 9px; color: var(--muted); margin-top: 4px; }
.ai-factor > span { text-align: right; font-size: 12px; color: var(--green); }
.engine-components { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.engine-components > div { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--accent-soft); }
.engine-components strong { display: block; font-size: 26px; color: var(--green); }
.engine-components span { display: block; margin-top: 8px; font-size: 12px; color: var(--green); }
@media (max-width: 600px) {
  .ai-engine-status { flex-wrap: wrap; padding: 13px; gap: 10px; }
  .ai-engine-status > div { flex-basis: calc(100% - 38px); }
  .ai-engine-status a { margin-left: 34px; }
  .match-tab-list button { font-size: 9px; padding: 13px 3px; }
  .match-tab-list svg { display: none; }
  .ai-outlook { padding: 18px; }
  .ai-outlook-top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ai-outlook-main { align-items: flex-start; gap: 12px; padding-top: 19px; }
  .ai-outlook-main h3 { font-size: 19px; }
  .ai-outlook-main > strong { font-size: 28px; padding-top: 18px; }
  .ai-summary { font-size: 11px; }
  .ai-indicators { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ai-indicators > :last-child { grid-column: 1 / -1; }
  .ai-factor { grid-template-columns: 1fr 50px 50px; gap: 10px; }
  .engine-components { grid-template-columns: 1fr; gap: 10px; }
}
/* Match intelligence grids and contribution bars. */
.intel-caption {display:block;font-size:11px;color:var(--muted);margin-top:5px}
.goal-grid-wrap {max-width:560px;margin:20px auto;overflow-x:auto}
.goal-grid {width:100%;border-collapse:separate;border-spacing:3px;font-size:12px;text-align:center;table-layout:fixed}
.goal-grid caption {padding:0 0 12px;font-size:12px;text-align:left}
.goal-grid td {padding:15px 2px;border-radius:5px;color:var(--green);font-variant-numeric:tabular-nums}
.goal-grid th {padding:8px 1px;font-weight:600}
.shap-drawer summary {padding:12px 0;cursor:pointer;font-weight:600}
.shap-feature {display:grid;grid-template-columns:minmax(110px,1.6fr) minmax(50px,1fr) 60px;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px}
.shap-feature small {display:block;color:var(--muted);margin-top:4px}
.shap-feature strong {text-align:right;font-variant-numeric:tabular-nums}
.shap-track {background:var(--surface-2);height:7px;border-radius:4px;overflow:hidden}
.shap-track span {display:block;background:var(--accent);height:100%}
.shap-track span.negative {background:var(--danger)}
.intel-coverage>div {display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}
#analytics-view .filterbar {margin-bottom:24px;flex-wrap:wrap}
#analytics-view .report-section {margin-top:22px}
#match-intelligence p {font-size:13px;line-height:1.65;color:var(--muted);overflow-wrap:anywhere}
#match-intelligence h4 {font-size:13px;margin:18px 0 6px}
#match-intelligence details {font-size:12px;line-height:1.6}
@media(max-width:480px) {.goal-grid {font-size:10px;border-spacing:2px}.goal-grid td {padding:12px 1px}.shap-feature {gap:6px;grid-template-columns:minmax(90px,1.5fr) minmax(35px,1fr) 48px}}
/* Selective research dashboard. */
#research-view .report-section {margin-top:24px;min-width:0}
#research-view .filterbar {flex-wrap:wrap;margin:20px 0}
#research-view details {font-size:12px;line-height:1.6}
#research-view summary {cursor:pointer;padding:10px 0}
#research-view .report-columns {align-items:start}
.research-coverage {border-top:1px solid var(--line);padding:12px 0}
.research-coverage pre {white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;background:var(--surface-2);padding:12px;border-radius:6px}
.research-model {border-top:1px solid var(--line);padding:6px 0}

.account-area { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.account-area + .icon-button { margin-left: 0; }
.account-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--green); background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 5px 10px; white-space: nowrap; }
.account-chip svg { width: 14px; height: 14px; }
.account-chip.expired, .account-chip.disabled { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-line); }
.locked-prob { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 34px; border-radius: 8px; background: var(--surface-2); color: var(--muted); }
.locked-prob svg { width: 16px; height: 16px; }
.subscribe-inner { padding: 22px; display: grid; gap: 10px; }
.subscribe-dialog form { display: grid; gap: 8px; }
.subscribe-dialog select, .subscribe-dialog input { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.pay-steps { display: grid; gap: 8px; padding-left: 18px; font-size: 13px; }
.merchant-code { font-size: 15px; letter-spacing: .04em; }
.payment-list { list-style: none; padding: 0; display: grid; gap: 6px; font-size: 12px; }
.payment-list li { display: flex; justify-content: space-between; gap: 8px; }
@media (max-width: 600px) { .topbar { flex-wrap: wrap; height: auto; min-height: 49px; padding-top: 8px; padding-bottom: 8px; row-gap: 8px; } .account-area { order: 10; width: 100%; margin-left: 0; justify-content: flex-end; } .account-area .button { flex: 1; justify-content: center; } .account-chip span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; } }
.form-dialog { max-width: 360px; }
.form-dialog form { display: grid; gap: 10px; padding: 22px; }
.form-dialog h2 { font-size: 18px; margin: 0 0 4px; }
.form-dialog input { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }



.consent { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; line-height: 1.45; color: var(--muted); margin-top: 4px; }
.consent input { margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; }
.consent a, .footer-links a { color: var(--green); text-decoration: underline; }
.forgot-link { justify-self: start; font-size: 12px; }
.footer-links { display: flex; gap: 14px; }
#reset-form, #auth-form { display: grid; gap: 8px; padding: 22px; }
#reset-form input { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
#reset-step-two { display: grid; gap: 8px; }

.ai-reasoning { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin-bottom: 16px; display: grid; gap: 10px; }
.ai-reasoning h4 { margin: 8px 0 0; font-size: 13px; letter-spacing: .02em; }
.ai-verdict { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.ai-verdict h3 { font-size: 19px; margin-top: 4px; line-height: 1.3; }
.ai-narrative { font-size: 14px; line-height: 1.6; color: var(--ink); }
.confidence-badge { flex-shrink: 0; font-size: 12px; font-weight: 600; border-radius: 99px; padding: 5px 11px; white-space: nowrap; }
.confidence-badge.high { background: var(--accent-soft); color: var(--green); }
.confidence-badge.medium { background: var(--warn-soft); color: var(--warn); }
.confidence-badge.low { background: var(--danger-soft); color: var(--danger); }
.factor-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.factor { border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.factor.home { border-left-color: var(--green); } .factor.away { border-left-color: var(--info); } .factor.draw { border-left-color: var(--amber); }
.factor-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.factor-head strong { font-size: 13px; }
.factor p { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.factor-tag { font-size: 11px; color: var(--muted); }
.factor-tag.strong { color: var(--ink); font-weight: 600; }
.model-details { margin-top: 6px; }
.model-details > summary { cursor: pointer; font-weight: 600; font-size: 13px; padding: 10px 0; }
@media (max-width: 600px) { .ai-verdict { flex-direction: column; } }

/* History: wins and losses */
.history-toolbar { display: flex; justify-content: flex-end; margin-bottom: 16px; }
#history-view .summary-strip { margin-bottom: 20px; }
.history-panels { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 20px; }
.history-panels .report-section h2 { margin-bottom: 4px; }
.band-grid { display: grid; gap: 14px; margin-top: 14px; }
.band-head { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; }
.band-head strong { color: var(--green); }
.band-bar { height: 8px; border-radius: 4px; background: var(--danger-soft); overflow: hidden; }
.band-bar span { display: block; height: 100%; background: var(--green); }
.band-card small { color: var(--muted, var(--muted)); font-size: 10px; }
.day-bars { display: flex; align-items: flex-end; gap: 6px; height: 130px; margin-top: 14px; }
.day-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.day-stack { width: 100%; max-width: 22px; display: flex; flex-direction: column; border-radius: 4px 4px 0 0; overflow: hidden; min-height: 4px; }
.day-stack .won { background: var(--green); } .day-stack .lost { background: var(--red); }
.day-bar small { font-size: 9px; color: var(--muted); margin-top: 4px; }
.legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin: 0 4px 0 8px; }
.legend-dot:first-child { margin-left: 0; } .legend-dot.won { background: var(--green); } .legend-dot.lost { background: var(--red); }
#history-table { margin-top: 0; }
#history-table .filterbar { margin: 14px 0; }
.history-table td { vertical-align: middle; }
.history-match, .history-date { font-weight: 600; }
.history-score { font-weight: 700; white-space: nowrap; }
.result-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.result-badge.won { background: var(--accent-soft); color: var(--green); }
.result-badge.lost { background: var(--danger-soft); color: var(--red); }
.value-tag { color: var(--amber); font-weight: 600; }
#history-body > .notice { margin-top: 16px; }
@media (max-width: 900px) {
  .history-panels { grid-template-columns: 1fr; gap: 0; }
  .history-toolbar { justify-content: stretch; } .history-toolbar .segmented { width: 100%; overflow-x: auto; }
  .history-table th:nth-child(4), .history-table td:nth-child(4) { display: none; }
}

/* Top 5 picks */
.top-picks { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 20px 22px; margin: 20px 0; }
.top-picks-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.top-picks-head h2 { font-size: 20px; margin-top: 3px; }
.top-picks-tabs { margin-left: auto; }
.top-picks-actions { display: flex; gap: 8px; }
.top-picks-note { font-size: 11px; margin: 10px 0 8px; }
.top-pick-list { list-style: none; margin: 0; padding: 0; }
.top-pick { display: grid; grid-template-columns: 28px minmax(0,1.4fr) minmax(0,1fr) 36px; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.top-rank { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--green); font-weight: 700; font-size: 12px; }
.top-pick-match { background: none; border: 0; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 2px; cursor: pointer; color: inherit; font: inherit; min-width: 0; }
.top-pick-match strong { font-size: 13px; } .top-pick-match:hover strong { color: var(--green); }
.top-pick-match .muted, .top-pick-choice span { font-size: 11px; }
.top-pick-choice { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.top-pick-choice strong { font-size: 13px; color: var(--green); }
.top-pick-choice span { color: var(--muted); }
.top-pick-add { justify-self: end; }
.top-picks-empty { padding: 18px 0 6px; color: var(--muted); font-size: 12px; }
.top-picks-locked { position: relative; margin-top: 12px; }
.top-pick.placeholder { grid-template-columns: 28px 1fr 120px; filter: blur(1px); opacity: .55; }
.skeleton { display: block; height: 12px; border-radius: 6px; background: var(--surface-2); } .skeleton.wide { width: 70%; }
.top-picks-unlock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; background: var(--surface); border-radius: 10px; padding: 12px; }
.top-picks-unlock span { font-size: 12px; color: var(--muted); }
.slip-add { display: block; font-size: 10px; margin-top: 4px; padding: 2px 0; }

/* Accumulator */
.slip-fab { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border: 0; border-radius: 999px; background: var(--green); color: white; font-weight: 600; font-size: 13px; box-shadow: 0 8px 24px #0f3a2b40; cursor: pointer; }
.slip-fab svg { width: 17px; height: 17px; }
.slip-fab-count { min-width: 22px; height: 22px; border-radius: 11px; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-size: 12px; padding: 0 6px; }
.slip-dialog { width: min(640px, calc(100vw - 24px)); }
#slip-body { padding: 4px 26px 24px; }
#slip-body h2 { font-size: 22px; }
.slip-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.slip-legs { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.slip-leg { border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; }
.slip-leg.weakest { border-color: var(--warn-line); background: var(--warn-soft); }
.slip-leg-head { display: flex; justify-content: space-between; gap: 10px; }
.slip-leg-head strong { display: block; font-size: 13px; } .slip-leg-head .muted { font-size: 11px; }
.slip-leg-body { display: grid; grid-template-columns: minmax(0,1fr) 54px 96px; align-items: center; gap: 10px; margin-top: 10px; }
.slip-leg-body select, .slip-odds input, .slip-stake input, .slip-builder select { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font: inherit; font-size: 12px; color: var(--ink); }
.slip-chance { font-weight: 700; color: var(--green); text-align: right; }
.slip-odds { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.slip-flag { display: inline-block; margin: 8px 6px 0 0; padding: 2px 8px; border-radius: 999px; background: var(--warn-soft); color: var(--amber); font-size: 10px; font-weight: 600; }
.slip-flag.warn { background: var(--danger-soft); color: var(--red); }
.slip-stake { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; max-width: 260px; }
.slip-figures { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 14px 0 10px; }
.slip-figures > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.slip-figures span { font-size: 10px; color: var(--muted); } .slip-figures strong { font-size: 18px; }
.slip-figures small { font-size: 10px; color: var(--muted); }
.slip-figures .good strong { color: var(--green); } .slip-figures .bad strong { color: var(--red); }
.slip-tip { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); font-size: 12px; }
.slip-tip svg { width: 16px; flex-shrink: 0; color: var(--amber); }
.slip-actions { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.slip-actions svg, .top-picks-actions svg, .slip-builder h3 svg { width: 14px; height: 14px; }
.slip-builder { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.slip-builder h3 { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.slip-builder p { font-size: 11px; margin: 4px 0 10px; }
.slip-builder-controls { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.slip-builder-controls label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); min-width: 140px; }
.slip-empty { display: flex; gap: 12px; align-items: center; padding: 16px; margin: 12px 0; border: 1px dashed var(--line); border-radius: 11px; font-size: 12px; color: var(--muted); }
.slip-empty svg { width: 28px; height: 28px; flex-shrink: 0; color: var(--green); }
.slip-note { font-size: 10px; color: var(--muted); margin-top: 14px; }
.slip-picker .slip-chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.slip-picker .micro-label { width: 100%; }
.slip-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: inherit; font-size: 11px; color: var(--ink); cursor: pointer; }
.slip-chip strong { color: var(--green); } .slip-chip span { color: var(--muted); }
.slip-chip:hover { border-color: var(--accent); }
.match-dialog .slip-chip.selected { background: var(--green); border-color: var(--green); color: white; }
.match-dialog .slip-chip.selected strong, .match-dialog .slip-chip.selected span { color: white; }
@media (max-width: 760px) {
  .top-picks { padding: 16px 14px; }
  .top-picks-tabs { margin-left: 0; width: 100%; } .top-picks-tabs button { flex: 1; }
  .top-picks-actions { width: 100%; } .top-picks-actions .button { flex: 1; justify-content: center; }
  .top-pick { grid-template-columns: 26px minmax(0,1fr) 36px; }
  .top-pick-choice { grid-column: 2; grid-row: 2; }
  .top-pick-add { grid-column: 3; grid-row: 1 / span 2; }
  .slip-figures { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .slip-leg-body { grid-template-columns: minmax(0,1fr) 48px; }
  .slip-odds { grid-column: 1 / -1; }
  #slip-body { padding: 4px 16px 20px; }
  .slip-fab { right: 14px; bottom: 14px; }
}

/* Online checkout (Pesapal) in the subscribe dialog */
.pay-online { border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 14px; padding: 16px; margin: 14px 0; }
.pay-online h3 { font-size: 15px; margin-bottom: 4px; }
.pay-online .muted { font-size: 12px; margin-bottom: 12px; }
.pay-online-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pay-online-actions .button { flex: 1; justify-content: center; min-width: 140px; }
.pay-online-error { margin-top: 10px; }
.pay-alternative { font-size: 13px; color: var(--muted); margin: 6px 0 8px; }

/* Announcement banner, promo codes and invitations */
.site-announcement { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 18px; border-radius: 14px;
  background: linear-gradient(90deg, var(--accent-soft), var(--surface)); border: 1px solid var(--accent-line); font-size: 14px; font-weight: 600; }
.site-announcement a { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--green); white-space: nowrap; }
.promo-form, .invite-row { display: flex; gap: 8px; margin-top: 12px; }
.promo-form input, .invite-row input { flex: 1; min-width: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); }
.invite { margin-top: 16px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 14px; }
.invite h3 { font-size: 14px; margin-bottom: 4px; }

/* Prediction game */
.new-pill { background: var(--lime) !important; color: #143a2d !important; font-weight: 700; }
.game-me, .game-join { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 14px; align-items: center; padding: 18px 20px; margin-bottom: 18px;
  border-radius: var(--radius); background: linear-gradient(120deg, #0f2620, #1d4a3a); color: #e8f3ec; }
.game-me .eyebrow { color: var(--lime); }
.game-me strong { display: flex; align-items: center; gap: 6px; font-size: 20px; margin: 4px 0 2px; }
.game-me small { color: #b8cfc2; font-size: 11px; }
.game-me .text-button { color: var(--lime); font-size: 11px; padding: 2px 0; }
.game-join { grid-template-columns: 1fr auto; }
.game-join h2 { font-size: 24px; margin-bottom: 6px; }
.game-join p { color: #b8cfc2; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.game-day { font-size: 13px; color: var(--muted); margin: 18px 0 10px; text-transform: uppercase; letter-spacing: .6px; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.game-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.game-card.picked { border-color: var(--accent-line); }
.game-card-top { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; }
.game-time { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.game-time svg { width: 13px; height: 13px; }
.game-time.locked { color: var(--warn); }
.game-teams { display: flex; align-items: center; gap: 8px; margin: 10px 0 12px; font-size: 15px; }
.game-teams span { color: var(--muted); font-size: 11px; }
.pick-row { display: grid; grid-template-columns: 1fr .7fr 1fr; gap: 6px; }
.pick { padding: 10px 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick:hover:not(:disabled) { border-color: var(--green); }
.pick.chosen { background: var(--green); border-color: var(--green); color: #fff; }
.pick:disabled:not(.chosen) { opacity: .55; }
.crowd { margin-top: 10px; }
.crowd-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; gap: 2px; }
.crowd-bar .home { background: var(--green); }
.crowd-bar .draw { background: var(--line-strong); }
.crowd-bar .away { background: var(--info); }
.crowd small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.game-results { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.game-results li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.game-results li div { display: grid; gap: 2px; font-size: 13px; }
.points { font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.points.won { background: var(--accent-soft); color: var(--green); }
.board-tabs { margin: 10px 0 12px; display: flex; }
.board-tabs button { flex: 1; font-size: 11px; padding: 7px 4px; }
.board { width: 100%; border-collapse: collapse; font-size: 13px; }
.board th { text-align: left; font-size: 11px; color: var(--muted); font-weight: 600; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.board td { padding: 8px 4px; border-bottom: 1px solid var(--line); }
.board tr.me td { background: var(--accent-soft); font-weight: 700; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 10px; }
.game-badge { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 10px 6px; border-radius: 12px;
  border: 1px dashed var(--line-strong); color: var(--muted); font-size: 11px; }
.game-badge.earned { border-style: solid; border-color: var(--accent-line); background: var(--accent-soft); color: var(--green); font-weight: 700; }
.game-note { margin-top: 16px; }
@media (max-width: 900px) {
  .game-me { grid-template-columns: 1fr 1fr; }
  .game-share { grid-column: 1 / -1; }
  .game-join { grid-template-columns: 1fr; }
  .game-layout { grid-template-columns: 1fr; }
}

/* Following, notifications and the home-screen app */
.follow-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: -4px 0 16px; }
.follow-button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 600; max-width: 100%; }
.follow-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.follow-button svg { width: 14px; height: 14px; flex: none; }
.follow-button:hover { border-color: var(--green); }
.follow-button.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--green); }
.follow-button.on svg { fill: currentColor; }
[data-period="mine"] { display: inline-flex; align-items: center; gap: 4px; }
[data-period="mine"][hidden] { display: none; }
[data-period="mine"] svg { width: 12px; height: 12px; }
.notify-dialog { max-width: 520px; }
.notify-dialog > h2, #notify-body { padding: 0 24px; }
#notify-body { padding-bottom: 22px; }
.notify-dialog .switch { padding: 0; border: 0; border-radius: 999px; }
.notify-dialog h2 { margin: 18px 0 14px; }
.notify-dialog h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 20px 0 8px; }
.notify-device { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.notify-device.on { border-color: var(--accent-line); background: var(--accent-soft); }
.notify-device > svg { width: 22px; height: 22px; color: var(--green); }
.notify-device div { display: grid; gap: 2px; font-size: 13px; }
.notify-options { display: grid; gap: 2px; }
.notify-option { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.notify-option span { display: grid; gap: 2px; font-size: 13px; }
.notify-option small { font-size: 11px; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 40px; height: 22px; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch:checked { background: var(--green); }
.switch:checked::after { transform: translateX(18px); }
.follow-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.follow-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.follow-list svg { width: 15px; height: 15px; color: var(--green); }
.notify-note { margin-top: 16px; font-size: 11px; }
.install-app { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 12px; padding: 11px 14px; border-radius: 14px; border: 1px solid rgba(200, 245, 139, .35); background: rgba(200, 245, 139, .08); color: #c8f58b; font-weight: 700; font-size: 13px; }
.install-app[hidden] { display: none; }
.install-app svg { width: 16px; height: 16px; }


/* Live companion and My slips */
.live-card.mine { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line); }
.live-tag { display: inline-flex; align-items: center; gap: 3px; color: var(--green); font-weight: 700; }
.live-tag svg { width: 11px; height: 11px; fill: currentColor; }
.red-card { display: inline-grid; place-items: center; min-width: 10px; height: 14px; margin-left: 6px; padding: 0 2px; border-radius: 2px; background: #d63a3a; color: #fff; font-size: 9px; font-weight: 800; vertical-align: 1px; }
.live-goal { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.live-goal svg { width: 14px; height: 14px; color: var(--green); }
.live-chance { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.live-chance.locked { display: flex; align-items: center; gap: 8px; width: 100%; color: var(--muted); font-size: 12px; text-align: left; cursor: pointer; }
.live-chance.locked svg { width: 14px; height: 14px; flex: none; }
.live-chance-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.live-chance-head span { display: inline-flex; align-items: center; gap: 5px; }
.live-chance-head svg { width: 13px; height: 13px; color: var(--green); }
.live-chance-bar { display: flex; gap: 2px; height: 8px; margin: 8px 0; border-radius: 4px; overflow: hidden; }
.live-chance-bar span { transition: flex .6s ease; }
.live-chance-bar .home { background: var(--green); }
.live-chance-bar .draw { background: var(--line-strong); }
.live-chance-bar .away { background: var(--info); }
.live-chance-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; font-size: 11px; color: var(--muted); }
.live-chance-values span { display: grid; gap: 1px; overflow: hidden; }
.live-chance-values span:nth-child(2) { text-align: center; }
.live-chance-values span:nth-child(3) { text-align: right; }
.live-chance-values strong { font-size: 16px; color: var(--ink); }
.live-chance-values small { font-size: 10px; }
.slip-tabs { display: flex; margin-bottom: 16px; }
.slip-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.slip-tabs svg { width: 14px; height: 14px; }
.slip-record { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.slip-record div { display: grid; gap: 2px; padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.slip-record span, .slip-record small { font-size: 11px; color: var(--muted); }
.slip-record strong { font-size: 18px; }
.saved-slip { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; background: var(--surface); }
.saved-slip.won { border-color: var(--accent-line); background: var(--accent-soft); }
.saved-slip-head, .saved-slip-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.saved-slip-head div { display: grid; gap: 2px; font-size: 13px; }
.saved-slip-foot { margin-top: 8px; font-size: 12px; color: var(--muted); }
.saved-slip-foot strong { color: var(--ink); }
.saved-slip-actions { display: flex; gap: 12px; margin-left: auto; }
.slip-status { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.slip-status.won { background: var(--green); color: #fff; }
.slip-status.lost { background: rgba(214, 58, 58, .12); color: #d63a3a; }
.slip-status.open { background: var(--accent-soft); color: var(--green); }
.saved-legs { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.saved-legs li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 12px; }
.saved-legs li div { display: grid; gap: 1px; min-width: 0; }
.saved-legs li div span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved-legs svg { width: 16px; height: 16px; color: var(--muted); }
.saved-legs .leg-won svg { color: var(--green); }
.saved-legs .leg-lost svg { color: #d63a3a; }
.saved-legs .leg-live svg { color: var(--warn); }
.saved-leg-figures { display: grid; text-align: right; font-weight: 700; }
.saved-leg-figures small { font-weight: 400; color: var(--muted); }
@media (max-width: 600px) { .slip-record { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* Loyalty pricing, Match of the day, insights and Play safe */
.plan-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; min-width: 0; }
.plan-card { position: relative; min-width: 0; display: grid; gap: 2px; text-align: left; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.plan-card span { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.plan-card strong { font-size: 20px; }
.plan-card small { font-size: 12px; color: var(--muted); }
.plan-card s { font-size: 12px; }
.plan-card.selected { border-color: var(--green); background: var(--accent-soft); }
.plan-badge { position: absolute; top: -9px; right: 8px; font-style: normal; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--lime); color: #143a2d; }
.loyalty-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.loyalty-note svg { width: 16px; height: 16px; color: var(--green); flex: none; }
.motd { margin: 18px 0; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.motd-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; }
.motd-head .eyebrow { display: inline-flex; align-items: center; gap: 6px; }
.motd-head svg { width: 14px; height: 14px; }
.motd-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin: 16px 0; text-align: center; }
.motd-teams > div { display: grid; justify-items: center; gap: 8px; font-size: 18px; }
.motd-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
.motd-probs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.motd-probs div { display: grid; gap: 2px; padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.motd-probs div.lead { border-color: var(--accent-line); background: var(--accent-soft); }
.motd-probs span { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.motd-probs strong { font-size: 22px; }
.motd-probs small { font-size: 11px; color: var(--muted); }
.motd-summary { font-size: 13px; margin: 12px 0 8px; }
.motd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.motd-chips span { font-size: 11px; padding: 4px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.motd-caution { display: flex; gap: 6px; align-items: flex-start; font-size: 11px; margin-top: 10px; }
.motd-caution svg { width: 13px; height: 13px; flex: none; }
.motd-locked { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 16px; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--line-strong); }
.motd-locked > svg { width: 20px; height: 20px; color: var(--green); }
.motd-locked div { display: grid; gap: 2px; font-size: 13px; }
.motd-locked span { color: var(--muted); font-size: 12px; }
.motd-form { display: grid; gap: 8px; }
.motd-form-row { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; font-size: 13px; }
.motd-form-row strong:last-child { text-align: right; }
.motd-form-row span { display: block; text-align: center; font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.motd-form-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; gap: 2px; }
.motd-form-bar i { background: var(--green); }
.motd-form-bar b { background: var(--info); }
.motd-crowd { margin-top: 14px; display: grid; gap: 6px; }
.motd-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.insights { margin-bottom: 22px; }
.insights-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.insights-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.insights-more > div { padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.insights-more p { display: flex; justify-content: space-between; gap: 10px; margin: 8px 0 0; font-size: 13px; }
.safe-choices { display: flex; }
.safe-choices button { flex: 1; }
.safe-breaks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.safe-reminder { display: flex; gap: 12px; align-items: center; padding: 6px 0 14px; }
.safe-reminder svg { width: 28px; height: 28px; color: var(--green); flex: none; }
.break-banner { display: flex; gap: 8px; align-items: center; }
.break-banner[hidden] { display: none; }
#help-line { display: block; margin-top: 4px; }
@media (max-width: 760px) {
  .motd-body { grid-template-columns: 1fr; }
  .motd-teams > div { font-size: 15px; }
  .motd-locked { grid-template-columns: auto 1fr; }
  .motd-locked .button { grid-column: 1 / -1; }
}
.subscribe-inner { grid-template-columns: minmax(0, 1fr); }
.subscribe-inner > *, #subscribe-body > * { min-width: 0; }
.invite-row input { min-width: 0; }
#safe-body { padding: 0 24px 22px; }

.currency-pick { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.currency-pick svg { width: 14px; height: 14px; }
.currency-pick select { flex: 1; min-width: 0; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }


/* Event markets */
.predict-switch { display: flex; max-width: 360px; margin-bottom: 18px; }
.predict-switch button { flex: 1; }
.wallet-strip { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 20px; margin-bottom: 18px;
  border-radius: var(--radius); background: linear-gradient(120deg, #0f2620, #1d4a3a); color: #e8f3ec; }
.wallet-strip .eyebrow { color: var(--lime); }
.wallet-strip strong { display: block; font-size: 20px; margin-top: 3px; }
.wallet-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wallet-actions .button.secondary { background: rgba(255, 255, 255, .08); color: #e8f3ec; border-color: rgba(255, 255, 255, .2); }
.wallet-actions svg, .wallet-form svg { width: 14px; height: 14px; }
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.event-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.event-card.settled, .event-card.void { opacity: .92; }
.event-cover { display: block; width: 100%; height: 150px; object-fit: cover; }
.event-body { padding: 14px 16px 16px; display: grid; gap: 10px; }
.event-top { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; }
.event-chip { padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--green); font-weight: 700; }
.event-time { color: var(--muted); font-weight: 600; }
.event-time.closed { color: var(--warn); }
.event-card h3 { margin: 0; font-size: 17px; }
.event-card p { margin: 0; font-size: 13px; }
.event-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.event-option { display: grid; justify-items: center; gap: 5px; padding: 12px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); text-align: center; cursor: pointer; }
.event-option:hover:not(:disabled) { border-color: var(--green); }
.event-option:disabled { cursor: default; }
.event-option strong { font-size: 13px; line-height: 1.2; }
.event-option small { font-size: 10px; color: var(--muted); }
.event-option.winner { border-color: var(--green); background: var(--accent-soft); }
.event-winner { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: 10px; font-weight: 800; color: var(--green); }
.event-winner svg { width: 11px; height: 11px; }
.event-face { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--surface-3); font-weight: 800; color: var(--muted); }
.event-face img { width: 100%; height: 100%; object-fit: cover; }
.event-face.big { width: 64px; height: 64px; flex: none; }
.event-share { display: block; width: 100%; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.event-share i { display: block; height: 100%; background: var(--green); }
.event-mine, .event-result { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.event-mine svg, .event-result svg { width: 15px; height: 15px; flex: none; color: var(--green); }
.event-result.void svg { color: var(--warn); }
.won { color: var(--green); }
.event-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11px; color: var(--muted); }
.event-foot strong { color: var(--ink); }
.event-rules summary { cursor: pointer; font-size: 12px; color: var(--green); }
.event-rules p { margin-top: 6px; font-size: 12px; color: var(--muted); }
.stake-choice { display: flex; gap: 12px; align-items: center; margin: 4px 0 14px; }
.stake-choice div { display: grid; gap: 2px; }
.stake-choice strong { font-size: 18px; }
#stake-body, #wallet-body { padding: 0 24px 22px; }
#stake-body h2, #wallet-body h2 { margin: 18px 0 8px; font-size: 18px; }
#stake-form { display: grid; gap: 10px; }
#stake-form input { padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 18px; }
.stake-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.stake-estimate { padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); font-size: 13px; }
.wallet-balances { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.wallet-balances div { display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.wallet-balances span { font-size: 11px; color: var(--muted); }
.wallet-balances strong { font-size: 18px; }
#wallet-body h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 20px 0 8px; }
.wallet-form { display: grid; gap: 8px; }
.wallet-form input, .wallet-form select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; min-width: 0; }
.wallet-form label { display: grid; gap: 4px; font-size: 12px; }
.wallet-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; }
.wallet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wallet-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.wallet-list li span { display: grid; gap: 2px; min-width: 0; }
.wallet-list small { font-size: 11px; }
#licence-line { display: block; margin-top: 2px; }
@media (max-width: 600px) { .event-grid { grid-template-columns: 1fr; } .event-cover { height: 130px; } }

/* Private leagues and challenges */
.friends-card { margin-bottom: 16px; }
.friends-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.friends-head h2 { margin: 0; }
.league-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.league-row { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; }
.league-row:hover { border-color: var(--green); }
.league-row span { display: grid; gap: 2px; }
.league-row small { font-size: 11px; }
.league-rank { text-align: right; font-weight: 800; font-size: 16px; }
.league-rank small { font-weight: 500; color: var(--muted); }
.challenge { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 11px; margin-top: 8px; border-radius: 12px; background: var(--surface-2); font-size: 13px; }
.challenge.incoming { border: 1px solid var(--accent-line); background: var(--accent-soft); }
.challenge div { display: flex; gap: 6px; }
.challenge.done.won small { color: var(--green); font-weight: 700; }
.challenge.done.lost small { color: var(--muted); }
#league-body { padding: 0 24px 22px; }
#league-body h2 { margin: 18px 0 10px; }
.league-invite { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 12px; }
.league-invite strong { font-size: 22px; letter-spacing: 3px; }
.league-invite div { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.league-invite svg { width: 14px; height: 14px; }
.danger-text { color: #d63a3a; margin-top: 10px; }


/* For you */
.home-hello { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.home-hello h2 { margin: 0; font-size: 22px; }
.home-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.home-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.home-chip svg { width: 14px; height: 14px; color: var(--green); }
.home-since { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 14px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.home-since > svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.home-since p { margin: 0 0 4px; font-size: 13px; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; align-items: start; }
.home-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: grid; gap: 8px; }
.home-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.home-card-head h2 { margin: 0; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.home-card-head h2 svg { width: 16px; height: 16px; color: var(--green); }
.home-card p { margin: 0; font-size: 13px; }
.home-match, .home-live, .home-todo, .home-slip, .home-event, .home-league { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 9px 10px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.home-match:hover, .home-todo:hover, .home-slip:hover, .home-event:hover, .home-league:hover, .home-live:hover { border-color: var(--green); }
.home-match > span:first-child, .home-live > span:last-child, .home-todo > span, .home-slip > span:first-child, .home-event > span { display: grid; gap: 2px; min-width: 0; }
.home-match small, .home-live small, .home-todo small, .home-slip small, .home-event small { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-match.big strong { font-size: 15px; }
.home-pick { display: grid; justify-items: end; font-size: 11px; color: var(--muted); flex: none; text-align: right; }
.home-pick strong { font-size: 15px; color: var(--green); }
.home-pick.locked { display: inline-flex; align-items: center; gap: 4px; }
.home-pick svg, .home-todo > svg { width: 15px; height: 15px; flex: none; color: var(--green); }
.home-todo { justify-content: flex-start; }
.home-live { justify-content: flex-start; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; flex: none; animation: live-pulse 1.6s infinite; }
@keyframes live-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.home-progress { width: 80px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; flex: none; }
.home-progress i { display: block; height: 100%; background: var(--green); }
.home-event { justify-content: flex-start; }
.home-event img { width: 52px; height: 40px; object-fit: cover; border-radius: 8px; flex: none; }
.home-league strong { font-size: 13px; }
.home-league span { font-weight: 800; }
.home-h2h { padding: 8px 10px; border-radius: 10px; background: var(--accent-soft); }
.home-hero { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px 24px; margin-bottom: 16px; border-radius: var(--radius);
  background: linear-gradient(120deg, #0f2620, #1d4a3a); color: #e8f3ec; }
.home-hero .eyebrow { color: var(--lime); }
.home-hero h2 { margin: 6px 0; font-size: 26px; }
.home-hero p { margin: 0; color: #b8cfc2; max-width: 520px; }
.home-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.home-hero .button.secondary { background: rgba(255, 255, 255, .08); color: #e8f3ec; border-color: rgba(255, 255, 255, .25); }
@media (max-width: 600px) { .home-grid { grid-template-columns: 1fr; } .home-hello h2 { font-size: 19px; } }


/* Team and competition pages */
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h2 { margin: 4px 0; font-size: 26px; }
.page-link { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.page-link:hover { color: var(--green); }
.form-chips { display: inline-flex; gap: 3px; }
.form-chips i, .page-results i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font-style: normal; font-size: 10px; font-weight: 800; color: #fff; }
.form-W { background: var(--green); }
.form-D { background: #8a96a3; }
.form-L { background: #d63a3a; }
.page-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.page-results li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 10px; background: var(--surface-2); font-size: 13px; }
.page-results small { font-size: 11px; }
.page-table th, .page-table td { white-space: nowrap; }
.page-grid .home-card.wide { grid-column: 1 / -1; }
.page-table-link { margin-left: auto; }
.page-sub { display: block; margin-top: 4px; }


/* Specials: Perfect 10 and season questions */
.predict-switch { max-width: 480px; }
.perfect-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.perfect-head h2 { margin: 2px 0 0; }
.perfect-prize { display: flex; gap: 8px; align-items: center; padding: 10px 12px; margin: 10px 0; border-radius: 12px; background: var(--accent-soft); font-size: 13px; }
.perfect-prize svg { width: 16px; height: 16px; color: var(--green); flex: none; }
.perfect-row { display: grid; gap: 5px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.perfect-row .pick.right { background: var(--green); border-color: var(--green); color: #fff; }
.perfect-row .pick.wrong { background: rgba(214, 58, 58, .12); border-color: #d63a3a; color: #d63a3a; }
.perfect-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; position: sticky; bottom: 74px; background: var(--surface); padding: 8px 0; }
.perfect-status { margin-top: 12px; font-size: 13px; }
.season-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.season-card { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); align-content: start; }
.season-card h3 { margin: 0; font-size: 16px; }
.season-card p { margin: 0; font-size: 12px; }
.season-options { display: flex; flex-wrap: wrap; gap: 6px; }
.season-option { display: inline-flex; gap: 6px; align-items: center; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font-size: 12px; font-weight: 600; cursor: pointer; }
.season-option small { color: var(--muted); font-weight: 500; }
.season-option.chosen { background: var(--green); border-color: var(--green); color: #fff; }
.season-option.chosen small { color: #e8f3ec; }
.season-option.right { box-shadow: 0 0 0 2px var(--lime); }
.season-option:disabled { cursor: default; }
@media (min-width: 901px) { .perfect-actions { bottom: 0; } }
.season-card .event-chip { justify-self: start; }
