:root {
  --navy: #142139; --canvas: #f3f6fb; --blue: #346bdf;
  --ink: #24354b; --muted: #60738c; --green: #148361; --line: #e0e7f0;
  --surface: #ffffff; --surface-soft: #f5f8fc; --surface-hover: #edf3fd;
  --surface-active: #eaf2ff; --stripe: #fbfcfe; --input-line: #d4deec;
  --text-soft: #5e7492; --text-dim: #637892; --text-faint: #71839a;
  --odds-bg: #edf3fd; --odds-ink: #335d96; --accent-wash: #437ff011;
  --warning: #9d681f; --warning-bg: #fcf6eb; --warning-line: #cda66d;
  --error-bg: #fff2ed; --error-ink: #a35432;
  --chart-home: #326ddd; --chart-draw: #a97624; --chart-away: #168d86;
  --quote-flash: #c4f0e9;
  font: 13px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink); background: var(--canvas); font-variant-numeric: tabular-nums; color-scheme: light;
}
:root[data-theme="night"] {
  --navy: #0c1525; --canvas: #0e1829; --blue: #8aafff;
  --ink: #e5edfb; --muted: #a4b5cd; --green: #5fd3b2; --line: #263a55;
  --surface: #142339; --surface-soft: #182b43; --surface-hover: #1e344e;
  --surface-active: #1f3858; --stripe: #16273e; --input-line: #304763;
  --text-soft: #9aafcc; --text-dim: #92a7c5; --text-faint: #879dbb;
  --odds-bg: #1e3552; --odds-ink: #bcd4ff; --accent-wash: #789fff13;
  --warning: #efbc79; --warning-bg: #302b26; --warning-line: #8e6c43;
  --error-bg: #392a2c; --error-ink: #efaf97;
  --chart-home: #77aaff; --chart-draw: #d9b272; --chart-away: #5fd3ca;
  --quote-flash: #286259;
  color-scheme: dark;
}
:root[data-theme="classic"] {
  --navy: #17283b; --canvas: #f3f5f9; --blue: #2864dc;
  --muted: #64748b; --line: #e4e9f0; --surface-soft: #f5f7fb;
  --surface-hover: #f5f8fd; --surface-active: #edf3ff; --stripe: #fcfdff;
  --input-line: #d8e0eb; --text-soft: #687b94; --text-dim: #78879c; --text-faint: #7a8b9f;
  --odds-bg: #f0f4fa; --odds-ink: #365e91;
  --chart-home: #2864dc; --chart-draw: #b88731; --chart-away: #178775;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select { font: inherit; color: inherit; }
textarea { font: inherit; color: inherit; border: 1px solid var(--input-line); background: var(--surface); border-radius: 5px; padding: 8px 10px; resize: vertical; max-width: 100%; }
button { cursor: pointer; border: 1px solid var(--line); background: var(--surface); border-radius: 5px; padding: 7px 12px; transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .18s; }
button:hover { background: var(--surface-hover); color: var(--blue); }
button:disabled { opacity: .4; cursor: default; }
input, select { min-width: 0; border: 1px solid var(--input-line); background: var(--surface); border-radius: 5px; padding: 8px 10px; }
input::placeholder { color: var(--text-dim); }
input[type="checkbox"] { accent-color: var(--blue); width: 15px; height: 15px; }
input[type="range"] { accent-color: var(--blue); }
label { display: inline-flex; gap: 8px; align-items: center; }
a { color: var(--blue); text-decoration: none; }
h1, h2, p { margin: 0; }
h1 { font-size: 25px; line-height: 1.4; font-weight: 650; letter-spacing: -.5px; }
h2 { font-size: 15px; font-weight: 650; }
:focus-visible { outline: 3px solid #84aafa; outline-offset: 3px; }
.icon { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; left: 12px; background: var(--surface); padding: 12px; z-index: 30; }
.skip-link:focus { top: 8px; }
.sidebar { border-right: 1px solid #2a3b524d; width: 194px; position: fixed; inset: 0 auto 0 0; background: var(--navy); color: #a9b9cc; display: flex; flex-direction: column; z-index: 12; }
.brand { display: flex; align-items: center; gap: 11px; height: 87px; padding: 0 20px; color: white; }
.brand-mark { border: 1px solid #789de04d; border-radius: 7px; background: #6b96ea14; box-shadow: 0 0 20px #4976be14; display: inline-flex; align-items: center; font-size: 19px; font-weight: 800; letter-spacing: -5px; padding: 3px 9px 3px 5px; color: #8dc3ff; transform: skew(-10deg); }
.brand-mark span { color: white; }
.brand-text { font-size: 15px; font-weight: 750; letter-spacing: 1px; white-space: nowrap; }
.brand-text small { display: block; font-size: 10px; color: #8da2bc; letter-spacing: 2px; font-weight: 400; margin-top: 3px; }
.nav-caption { font-size: 10px; letter-spacing: 2px; padding: 18px 23px 11px; color: #798ea8; }
.navigation { display: flex; flex-direction: column; gap: 5px; padding: 0 12px; }
.navigation button, .sidebar-bottom button { display: flex; gap: 12px; align-items: center; background: transparent; border: 0; color: inherit; padding: 12px; text-align: left; white-space: nowrap; }
.navigation button:hover, .sidebar-bottom button:hover { color: white; background: #20364e; }
.navigation button.active { color: white; background: #243e61; box-shadow: inset 3px 0 #7ea7ff, inset 0 0 24px #79a5ff12; }
.nav-dot { width: 5px; height: 5px; border-radius: 50%; background: #56cc9d; margin-left: auto; }
.sidebar-bottom { margin-top: auto; padding: 16px 12px; }
.sidebar-bottom button { width: 100%; }
.workspace-label { padding: 19px 10px 4px; margin-top: 15px; border-top: 1px solid #304155; color: #b1bfd0; font-size: 11px; }
.workspace-label small { display: block; color: #8a9db4; margin: 6px 0 0 15px; font-size: 10px; }
.workspace { margin-left: 194px; min-width: 0; }
.topbar { box-shadow: 0 1px 0 var(--accent-wash); min-height: 60px; padding: 0 28px; display: flex; gap: 16px; align-items: center; justify-content: space-between; background: var(--surface); border-bottom: 1px solid var(--line); }
.breadcrumb, .topbar-actions { display: flex; align-items: center; gap: 16px; }
.breadcrumb { color: var(--text-dim); font-size: 12px; }
.breadcrumb button { border: 0; padding: 6px 0; color: var(--muted); }
.breadcrumb > span:last-child { color: var(--ink); }
.topbar-actions { gap: 13px; }
.connection { border: 1px solid var(--line); background: var(--surface-soft); border-radius: 20px; padding: 5px 9px; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.connection::before, .status-dot, .live-dot { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #8c9aaf; flex-shrink: 0; }
.connection[data-state="live"] { color: var(--green); }
.connection[data-state="live"]::before, .live-dot { background: var(--green); box-shadow: 0 0 0 3px var(--accent-wash); }
.connection[data-state="warning"] { color: var(--warning); }
.connection[data-state="warning"]::before { background: #bd7a27; }
.status-dot { background: #7598c7; margin-right: 6px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; padding: 7px; background: transparent; }
.account-button { border: 0; border-left: 1px solid var(--line); border-radius: 0; display: flex; align-items: center; gap: 9px; padding-left: 17px; font-size: 12px; }
.account-button .icon { color: var(--muted); }
main { max-width: 1920px; margin: auto; padding: 26px 28px 16px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.page-description { color: var(--muted); font-size: 12px; margin-top: 5px; }
.status-shortcut { background: none; border: 0; display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); padding: 8px 0; }
.status-shortcut .icon { width: 14px; margin-left: 6px; }
.status-shortcut[data-state="warning"] { color: var(--warning); }
.status-shortcut[data-state="warning"] .status-dot { background: #b57727; }
.status-shortcut[data-state="live"] .status-dot { background: var(--green); }
.overview { box-shadow: 0 4px 18px #101f3510; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 7px; margin-bottom: 18px; overflow: hidden; }
.overview button { position: relative; border: 0; border-radius: 0; padding: 12px 22px 10px; text-align: left; }
.overview button + button::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 1px; background: var(--line); }
.overview button.active { background: var(--surface-active); box-shadow: inset 0 -2px var(--blue); }
.overview button.active strong { color: var(--blue); }
.overview button:hover { background: var(--surface-hover); }
.overview-icon { position: absolute; right: 22px; top: 32px; width: 35px; height: 35px; color: var(--text-faint); opacity: .36; stroke-width: 1.1; }
.overview button.active .overview-icon { color: var(--blue); opacity: .8; }
.overview-label { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 7px; }
.overview strong { font-family: "Avenir Next", "DIN Alternate", -apple-system, sans-serif; display: block; font-size: 28px; font-weight: 650; line-height: 1.2; margin: 4px 0; color: var(--ink); letter-spacing: -.5px; }
.overview-foot { display: flex; justify-content: space-between; align-items: center; color: var(--text-dim); font-size: 10px; }
.overview-foot > span { font-size: 14px; color: var(--text-soft); }
.panel { box-shadow: 0 6px 24px #07152909; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.catalog-panel { border-top: 2px solid var(--input-line); }
.section-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 8px; gap: 12px; }
.section-title { display: flex; align-items: center; gap: 10px; }
.count-badge { font-size: 10px; background: var(--odds-bg); border-radius: 4px; padding: 2px 7px; color: var(--text-soft); }
.muted { color: var(--muted); font-size: 11px; }
.scope-tabs, .market-tabs { display: flex; align-items: stretch; gap: 23px; overflow-x: auto; padding: 0 20px; }
.scope-tabs { border-bottom: 1px solid var(--line); }
.scope-tabs button, .market-tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 12px 0; border-radius: 0; color: var(--text-soft); flex-shrink: 0; font-size: 12px; }
.scope-tabs button.active, .market-tabs button.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 650; text-shadow: 0 0 22px var(--accent-wash); }
.filter-bar { display: flex; align-items: center; gap: 12px; padding: 12px 20px; }
.search-field { display: flex; flex: 1; max-width: 330px; border: 1px solid var(--input-line); border-radius: 5px; padding-left: 10px; color: var(--text-dim); }
.search-field input { width: 100%; border: 0; background: none; padding-left: 0; font-size: 12px; }
.search-field:focus-within { outline: 2px solid #84aafa; outline-offset: 1px; }
.search-field input:focus { outline: none; }
.date-field { color: var(--muted); font-size: 11px; }
.date-field input { padding: 7px 9px; width: 143px; font-size: 12px; }
.text-button { color: var(--blue); border: 0; background: none; padding: 6px; white-space: nowrap; font-size: 12px; }
.filter-bar > .text-button { margin-left: auto; }
.scroll { overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--input-line) var(--surface-soft); }
.match-scroll { max-height: max(240px, calc(100dvh - 558px)); min-height: 160px; }
table { border-collapse: separate; border-spacing: 0; width: 100%; white-space: nowrap; }
th, td { text-align: center; padding: 12px 10px; border-bottom: 1px solid var(--line); }
th { position: sticky; top: 0; z-index: 3; background: var(--surface-soft); color: var(--text-soft); font-size: 11px; font-weight: 500; height: 48px; }
th small { display: block; font-size: 9px; margin-top: 1px; color: var(--text-faint); font-weight: 400; }
tbody tr { --row-bg: var(--surface); background: var(--row-bg); }
tbody tr:nth-child(even) { --row-bg: var(--stripe); }
tbody tr:hover { --row-bg: var(--surface-hover); }
tbody tr.selected { --row-bg: var(--surface-active); }
tbody tr:last-child td { border-bottom: 0; }
.fixture-column { text-align: left; min-width: 244px; max-width: 290px; position: sticky; left: 0; background: var(--row-bg, var(--surface-soft)); z-index: 2; padding-left: 20px; border-right: 1px solid var(--line); }
th.fixture-column { z-index: 5; }
.fixture-meta { display: flex; align-items: center; gap: 7px; color: var(--text-soft); font-size: 10px; max-width: 250px; margin-bottom: 3px; }
.fixture-meta .league-name { overflow: hidden; text-overflow: ellipsis; max-width: 169px; }
.match-status { display: inline-flex; align-items: center; gap: 4px; color: var(--text-dim); font-size: 10px; white-space: nowrap; }
.match-status[data-status="inplay"] { color: var(--green); }
.match-status[data-status="inplay"]::before { content: ""; width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
.fixture-link { width: 100%; display: block; background: transparent; padding: 0; border: 0; text-align: left; color: var(--ink); font-size: 12px; }
.fixture-link:hover { background: none; }
.team-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; line-height: 1.7; }
.team-line span { display: block; overflow: hidden; text-overflow: ellipsis; max-width: 216px; }
.team-line b { color: var(--ink); font-size: 13px; font-weight: 650; min-width: 23px; border-radius: 3px; background: var(--odds-bg); text-align: center; }
.fixture-time { font-size: 9px; color: var(--text-faint); margin-top: 2px; display: flex; gap: 9px; }
.match-table td { font-size: 11px; padding-top: 7px; padding-bottom: 7px; }
.match-table .derived { min-width: 56px; max-width: 155px; white-space: normal; overflow-wrap: anywhere; }
.derived.unavailable { color: var(--text-faint); }
.odds-cell { min-width: 152px; }
.odds-values { display: flex; justify-content: center; gap: 4px; }
.odds-values span { border: 1px solid var(--line); color: var(--odds-ink); min-width: 41px; padding: 5px 3px; background: var(--odds-bg); border-radius: 3px; font-weight: 650; font-size: 12px; }
.odds-source { font-size: 9px; margin-top: 5px; color: var(--text-faint); }
.action-column { position: sticky; right: 0; background: var(--row-bg, var(--surface-soft)); z-index: 2; width: 42px; border-left: 1px solid var(--line); padding: 7px; }
th.action-column { z-index: 5; }
.row-action { border: 1px solid transparent; padding: 5px; color: var(--blue); background: transparent; font-size: 17px; }
.row-action:hover { border-color: var(--input-line); transform: translateX(2px); }
.match-table .empty-state { padding: 28px 20px; color: var(--muted); line-height: 1.8; text-align: left; }
.empty-state > * { max-width: min(520px, calc(100vw - 72px)); white-space: normal; }
.empty-state > span { display: block; }
.empty-state strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 4px; font-weight: 500; }
.table-footer { display: flex; gap: 15px; justify-content: space-between; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); }
.pagination { display: flex; align-items: center; gap: 12px; white-space: nowrap; font-size: 11px; }
.pagination button { padding: 5px 10px; font-size: 11px; }
.pagination span { color: var(--text-soft); }
.data-status { margin-top: 16px; font-size: 11px; color: var(--muted); }
.data-status > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 9px 0; }
.data-status > summary::after { content: "+"; margin-left: auto; font-size: 16px; }
.data-status[open] > summary::after { content: "−"; }
.data-status > summary::-webkit-details-marker { display: none; }
.data-status .icon { width: 14px; height: 14px; }
.data-status #water { margin-left: 10px; color: var(--text-faint); }
.status-content { border-top: 1px solid var(--line); padding: 12px 0; line-height: 1.9; }
.status-content p { margin: 5px 0; }
#collectionIssues { color: var(--warning); overflow-wrap: anywhere; }
#collectionIssues summary { cursor: pointer; }
.workspace-footer { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0 2px; color: var(--text-faint); font-size: 10px; }
.footer-divider { padding: 0 8px; color: #c1cad7; }
.error { border: 1px solid var(--warning-line); background: var(--error-bg); border-radius: 5px; color: var(--error-ink); padding: 12px 16px; margin-bottom: 16px; overflow-wrap: anywhere; }
.detail-heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.fixture-board { position: relative; isolation: isolate; margin-bottom: 20px; padding: 22px 24px; border-color: #38537a; background: #162d4c; color: #eef5ff; box-shadow: inset 0 1px #7ba9ef55, 0 10px 28px #07142618; }
.pitch-decoration { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #85b0e8; stroke-width: .7; opacity: .12; pointer-events: none; z-index: -1; }
.fixture-board::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 300px; transform: translateX(-50%); background: radial-gradient(ellipse at center, #518ef523, transparent 70%); pointer-events: none; z-index: -1; }
.fixture-board .fixture-context, .fixture-board .score-center span { color: #bbcee6; }
.fixture-board .match-status { color: #bacce4; background: #10233bc9; padding: 4px 9px; border: 1px solid #5175a15e; border-radius: 20px; }
.fixture-board .match-status[data-status="inplay"] { color: #7de0bc; }
.fixture-board .attention-form { border-color: #47628a80; }
.fixture-board .attention-form input, .fixture-board .attention-form button { color: var(--ink); }
.fixture-board .attention-form [role="status"] { color: #7de0bc; }
.fixture-context { display: flex; justify-content: center; gap: 12px; align-items: center; font-size: 12px; color: var(--muted); }
.scoreboard { max-width: 900px; margin: 22px auto; display: grid; grid-template-columns: 1fr 136px 1fr; gap: 24px; align-items: center; }
.score-team { display: flex; flex-direction: column; gap: 8px; text-align: right; }
.score-team strong { font-size: 23px; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
.team-label { color: #a7bedc; letter-spacing: 1.5px; font-size: 9px; }
.away-team { text-align: left; }
.score-center { text-align: center; }
.score-center strong { display: block; font-family: "Avenir Next", "DIN Alternate", sans-serif; font-size: 44px; font-weight: 650; letter-spacing: 4px; color: #edf6ff; text-shadow: 0 0 32px #77acff48; }
.score-center span { font-size: 11px; color: var(--muted); }
.attention-form { border-top: 1px solid var(--line); padding-top: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 11px; }
.attention-form > input { width: 260px; max-width: 100%; padding: 6px 9px; }
.attention-form button { padding: 6px 10px; }
.attention-form [role="status"] { color: var(--green); }
.market-bar { display: flex; justify-content: space-between; gap: 15px; align-items: center; border-bottom: 1px solid var(--line); }
.market-tabs { gap: 20px; padding: 0 20px; }
.market-tabs button { padding: 16px 0; }
.source-field { padding-right: 20px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.source-field select { max-width: 145px; padding: 5px 7px; font-size: 11px; }
.analysis-overview { display: flex; gap: 25px; padding: 22px 20px 12px; }
.current-odds { display: grid; grid-template-columns: repeat(3, minmax(65px, 1fr)); gap: 8px; min-width: 280px; }
.current-odd { position: relative; overflow: hidden; background: var(--surface-soft); border: 1px solid var(--input-line); border-radius: 5px; padding: 10px 14px; }
.current-odd::before { content: ""; position: absolute; top: 0; left: 12px; right: 12px; height: 2px; background: var(--chart-home); opacity: .85; }
.current-odd:nth-child(2)::before { background: var(--chart-draw); }
.current-odd:nth-child(3)::before { background: var(--chart-away); }
.current-odd span { display: block; font-size: 10px; color: var(--text-dim); margin-bottom: 4px; }
.current-odd strong { font-family: "Avenir Next", "DIN Alternate", sans-serif; display: block; font-size: 24px; font-weight: 600; color: var(--odds-ink); }
.summary { display: flex; align-items: center; gap: 24px; flex: 1; min-width: 0; color: var(--muted); font-size: 12px; }
.summary .metric { min-width: 48px; }
.metric span { display: block; font-size: 10px; margin-bottom: 7px; color: var(--text-dim); }
.metric strong { display: block; font-size: 13px; font-weight: 600; color: var(--odds-ink); }
.summary-note { color: var(--warning); background: var(--warning-bg); border-left: 2px solid var(--warning-line); padding: 10px 13px; font-size: 11px; line-height: 1.8; }
.detail-state { padding: 0 20px 14px; font-size: 10px; }
.trend-panel { border-top: 1px solid var(--line); padding: 16px 20px; }
.trend-panel > summary { font-size: 13px; font-weight: 600; cursor: pointer; }
.trend-panel > summary span { font-weight: 400; font-size: 10px; color: var(--text-faint); margin-left: 12px; }
#trend { padding-top: 10px; }
#trend > p { color: var(--text-dim); font-size: 10px; }
#trend > p:last-child { background: var(--surface-soft); padding: 8px 12px; border-radius: 4px; margin-top: 8px; }
#trend svg { color: var(--text-dim); margin-top: 12px; overflow: visible; }
#trend svg text { font-family: inherit; }
.four-analysis { border-top: 1px solid var(--line); padding: 20px; }
.four-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 14px; gap: 16px; }
.four-group { background: var(--surface-soft); border-left: 2px solid var(--blue); padding: 12px 16px; }
.four-group h3 { margin: 0 0 8px; font-size: 12px; }
.four-group p { display: flex; justify-content: space-between; gap: 14px; font-size: 11px; margin: 6px 0; color: var(--text-soft); }
.four-group p:last-child { border-top: 1px solid var(--line); padding-top: 7px; }
.four-group .four-values { overflow-wrap: anywhere; display: block; color: var(--text-dim); }
.history-heading { border-top: 1px solid var(--line); padding-bottom: 16px; }
.history-scroll { max-height: 460px; }
.history-table { font-size: 11px; }
.history-table th, .history-table td { padding: 11px 14px; }
.history-table td:first-child, .history-table th:first-child { position: sticky; left: 0; border-right: 1px solid var(--line); background: var(--row-bg, var(--surface-soft)); z-index: 2; }
.history-table th:first-child { z-index: 4; }
.history-table td:nth-child(4), .history-table td:nth-child(5), .history-table td:nth-child(6) { color: var(--odds-ink); font-weight: 600; background: var(--odds-bg); }
.history-table .calculation-warning { color: var(--warning); }
.technical-details { border-top: 1px solid var(--line); padding: 14px 20px; font-size: 11px; color: var(--muted); }
.technical-details summary { cursor: pointer; }
pre { font: 11px/1.7 ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow: auto; }
dialog { background: var(--surface); width: 420px; max-width: calc(100% - 32px); max-height: 85dvh; padding: 30px; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 24px 100px #14283b33; color: var(--ink); }
dialog::backdrop { background: #15263e66; backdrop-filter: blur(3px); }
.dialog-close { position: absolute; right: 12px; top: 12px; border: 0; color: var(--muted); }
dialog h2 { font-size: 22px; margin: 4px 0 10px; }
.login-form { display: flex; flex-direction: column; gap: 16px; margin-top: 25px; }
.login-form label { align-items: stretch; flex-direction: column; font-size: 12px; gap: 6px; }
.login-form input { width: 100%; }
.primary-button { background: #346bdf; color: white; border-color: #5385eb; box-shadow: 0 4px 14px #346bdf33; }
.primary-button:hover { background: #1e51bc; color: white; }
#personalStatus { margin-top: 16px; }
#account { margin-top: 24px; }
#account p { margin-bottom: 16px; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
#passwordSection { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }
#passwordSection summary { cursor: pointer; }
.admin-page .admin-eyebrow { font-size: 10px; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 6px; }
.admin-gate { max-width: 430px; margin: 8vh auto; padding: 32px; }
.admin-message { padding: 12px 16px; margin-bottom: 18px; background: var(--surface-active); color: var(--blue); border: 1px solid var(--line); border-radius: 5px; overflow-wrap: anywhere; }
.admin-message[data-error="true"], .form-error { color: var(--error-ink); }
.form-error:empty { display: none; }
.admin-message[data-error="true"] { background: var(--error-bg); }
.admin-stats .admin-stat { padding: 16px 22px; }
.admin-table th, .admin-table td { text-align: left; padding: 14px 18px; }
.admin-table td { font-size: 12px; max-width: 250px; white-space: normal; overflow-wrap: anywhere; }
.admin-table td:last-child { white-space: nowrap; }
.admin-table .admin-empty { text-align: center; white-space: normal; max-width: none; height: 120px; color: var(--muted); }
.admin-filters { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.admin-filters input[type="search"] { flex: 1; min-width: 180px; }
.admin-filters label { font-size: 11px; color: var(--muted); }
.admin-status { display: inline-flex; white-space: nowrap; padding: 2px 8px; background: var(--surface-soft); border-radius: 4px; font-size: 11px; color: var(--muted); }
.admin-status[data-status="active"] { color: var(--green); }
.admin-status[data-status="expired"], .admin-status[data-status="revoked"] { color: var(--warning); background: var(--warning-bg); }
.admin-note { margin: 16px 20px; line-height: 1.9; }
.admin-dialog { width: 760px; }
.admin-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin-top: 24px; }
.admin-form label { flex-direction: column; align-items: stretch; gap: 6px; font-size: 12px; }
.admin-form input, .admin-form select { width: 100%; }
.admin-form .check-field { flex-direction: row; align-items: center; align-self: end; padding: 8px 0; }
.admin-form .check-field input { width: 15px; }
.full-field { grid-column: 1 / -1; }
.admin-subsection { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.admin-subsection .section-bar { padding: 0 0 12px; }
.admin-subsection .admin-table { margin: 14px 0; }
.secret-field { display: flex; flex-direction: column; align-items: stretch; margin: 20px 0; font-size: 12px; }
.secret-field textarea { font-family: ui-monospace, monospace; }
#auditDetail > p { margin: 12px 0; }
.admin-page .navigation b { font-size: 20px; width: 18px; line-height: 1; font-weight: 400; flex-shrink: 0; }
@media (max-width: 700px) {
  .admin-form { grid-template-columns: 1fr; }
  .admin-page .brand { display: none; }
  .admin-page .navigation { justify-content: space-between; width: 100%; }
  .admin-page .sidebar { overflow-x: auto; }
  .admin-page .topbar { flex-wrap: wrap; row-gap: 8px; }
  .admin-page .breadcrumb > span { display: none; }
  .admin-page .topbar button { padding: 5px 7px; max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
  .admin-gate { margin: 24px auto; padding: 25px; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-table table { min-width: 640px; }
  .admin-table th, .admin-table td { padding: 12px; }
  .admin-page .page-heading { flex-wrap: wrap; }
  .admin-filters { padding: 14px; }
  .admin-filters input[type="search"] { flex-basis: 100%; }
  .admin-dialog { max-height: 90dvh; }
}
.theme-select { max-width: 112px; padding: 6px 7px; font-size: 11px; color: var(--text-soft); background: var(--surface-soft); cursor: pointer; }
.theme-select:hover { color: var(--blue); border-color: var(--blue); }
.quote-updated { animation: quote-update 1s ease-out; }
@keyframes quote-update { from { background: var(--quote-flash); border-color: var(--chart-away); } to { background: var(--odds-bg); border-color: var(--line); } }
/* 经典皮肤保留原有浅色工作台的视觉；布局与数据组件共用。 */
:where([data-theme="classic"]) .sidebar { border-right: 0; }
:where([data-theme="classic"]) .brand-mark { border: 0; background: none; box-shadow: none; padding: 0 5px 0 0; color: #9bbbff; }
:where([data-theme="classic"]) .navigation button.active { background: #2b4b74; box-shadow: inset 3px 0 #7ea7ff; }
:where([data-theme="classic"]) :is(.topbar, .overview, .panel) { box-shadow: none; }
:where([data-theme="classic"]) .connection { border: 0; background: none; padding: 0; }
:where([data-theme="classic"]) .connection::before { box-shadow: none; }
:where([data-theme="classic"]) :is(.overview-icon, .pitch-decoration),
:where([data-theme="classic"]) .fixture-board::after,
:where([data-theme="classic"]) .current-odd::before { display: none; }
:where([data-theme="classic"]) .overview button.active { background: #f7faff; }
:where([data-theme="classic"]) .overview button.active strong { color: var(--ink); }
:where([data-theme="classic"]) :is(.overview strong, .score-center strong, .current-odd strong) { font-family: inherit; }
:where([data-theme="classic"]) .catalog-panel { border-top: 1px solid var(--line); }
:where([data-theme="classic"]) .team-line b { min-width: 12px; background: none; text-align: right; }
:where([data-theme="classic"]) .odds-values span { border: 0; color: var(--ink); }
:where([data-theme="classic"]) .row-action { border: 0; color: #6482ac; }
:where([data-theme="classic"]) .fixture-board { padding: 18px 24px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-top: 3px solid #446faa; }
:where([data-theme="classic"]) .fixture-board .fixture-context,
:where([data-theme="classic"]) .fixture-board .score-center span { color: var(--muted); }
:where([data-theme="classic"]) .fixture-board .match-status { color: var(--text-dim); background: none; padding: 0; border: 0; }
:where([data-theme="classic"]) .fixture-board .match-status[data-status="inplay"],
:where([data-theme="classic"]) .fixture-board .attention-form [role="status"] { color: var(--green); }
:where([data-theme="classic"]) .fixture-board .attention-form { border-color: var(--line); }
:where([data-theme="classic"]) .team-label { color: #90a0b6; }
:where([data-theme="classic"]) .score-center strong { font-size: 38px; color: #284668; text-shadow: none; }
:where([data-theme="classic"]) .current-odd { background: #f5f8fc; border-color: #e7edf6; }
:where([data-theme="classic"]) .primary-button { background: var(--blue); border-color: var(--blue); box-shadow: none; }
@media (min-width: 1600px) {
  .match-table .fixture-column { min-width: 320px; max-width: 360px; }
  .fixture-meta { max-width: 310px; }
  .fixture-meta .league-name { max-width: 215px; }
  .team-line span { max-width: 276px; }
}
@media (max-width: 1100px) {
  .sidebar { width: 66px; }
  .brand { height: 75px; padding: 0 18px; }
  .brand-text, .nav-caption, .navigation button > span, .nav-dot, .sidebar-bottom button > span, .workspace-label { display: none; }
  .navigation { padding: 15px 8px 0; }
  .navigation button { padding: 13px 16px; }
  .sidebar-bottom { padding: 15px 8px; }
  .sidebar-bottom button { padding: 13px 16px; }
  .workspace { margin-left: 66px; }
  .topbar { padding: 0 22px; }
  main { padding: 24px 22px 16px; }
  .range-note { font-size: 10px; }
  .summary { gap: 15px; flex-wrap: wrap; }
  .analysis-overview { gap: 20px; }
  .current-odds { min-width: 245px; }
  .current-odd { padding: 10px; }
  .market-bar { flex-wrap: wrap; gap: 0; }
  .source-field { padding: 10px 20px; border-top: 1px solid var(--line); width: 100%; }
}
@media (max-width: 700px) {
  .sidebar { position: static; width: auto; flex-direction: row; align-items: center; height: 56px; padding: 0 10px; }
  .brand { height: auto; padding: 6px; margin-right: auto; }
  .navigation { flex-direction: row; gap: 3px; padding: 0; }
  .navigation button { padding: 10px; }
  .navigation button.active { box-shadow: inset 0 -2px #7ea7ff; }
  .sidebar-bottom { display: none; }
  .workspace { margin-left: 0; }
  .topbar { padding: 10px 16px; min-height: 52px; gap: 5px; }
  .breadcrumb { gap: 8px; font-size: 11px; }
  .topbar-actions { gap: 6px; }
  .connection { font-size: 10px; gap: 5px; max-width: 94px; padding: 4px 6px; }
  .account-button { padding: 5px 0 5px 9px; }
  .account-button > span { display: none; }
  .icon-button { padding: 6px; }
  main { padding: 20px 14px 12px; }
  h1 { font-size: 23px; }
  .page-heading { align-items: flex-start; margin-bottom: 18px; }
  .page-description { font-size: 11px; }
  .status-shortcut { font-size: 10px; max-width: 125px; text-align: left; padding-top: 4px; }
  .status-shortcut > .icon { display: none; }
  .overview { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
  .overview button { padding: 12px 10px; }
  .overview-label { font-size: 10px; gap: 4px; }
  .overview-icon { display: none; }
  .overview strong { font-size: 26px; margin: 8px 0 2px; }
  .overview-foot { font-size: 9px; }
  .overview-foot > span { display: none; }
  .section-bar { padding: 15px 14px 8px; }
  .range-note { display: none; }
  .scope-tabs, .market-tabs { gap: 20px; padding: 0 14px; }
  .scope-tabs button { font-size: 11px; }
  .filter-bar { padding: 13px 14px; gap: 9px; flex-wrap: wrap; }
  .search-field { flex-basis: 100%; max-width: none; }
  .date-field input { padding: 6px 8px; }
  .filter-bar .text-button { font-size: 11px; }
  .match-scroll { max-height: 520px; }
  .match-table .fixture-column { min-width: 192px; max-width: 192px; padding-left: 14px; }
  .fixture-meta { max-width: 167px; gap: 5px; }
  .fixture-meta .league-name { max-width: 108px; }
  .team-line span { max-width: 141px; }
  .fixture-time { font-size: 8px; gap: 5px; }
  .fixture-link { font-size: 11px; }
  .table-footer { padding: 12px 14px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .table-footer > .muted { font-size: 10px; }
  .pagination { align-self: flex-end; font-size: 10px; gap: 10px; }
  .workspace-footer { font-size: 9px; }
  .workspace-footer > span:last-child { display: none; }
  .data-status #water { font-size: 9px; margin-left: 0; }
  .fixture-board { padding: 14px; }
  .detail-heading { gap: 8px; }
  .detail-heading .muted { font-size: 9px; text-align: right; }
  .fixture-context { gap: 8px; font-size: 10px; }
  .scoreboard { grid-template-columns: 1fr 78px 1fr; gap: 12px; margin: 20px auto; }
  .score-team strong { font-size: 15px; }
  .team-label { font-size: 8px; letter-spacing: .5px; }
  .score-center strong { font-size: 30px; letter-spacing: 2px; }
  .score-center span { font-size: 10px; }
  .attention-form > input { flex: 1; width: 170px; }
  .market-tabs { gap: 18px; }
  .market-tabs button { font-size: 11px; }
  .source-field { padding: 10px 14px; }
  .analysis-overview { flex-direction: column; padding: 16px 14px 10px; gap: 15px; }
  .current-odds { min-width: 0; }
  .current-odd strong { font-size: 22px; }
  .summary { gap: 20px; }
  .summary-note { width: 100%; }
  .detail-state { padding: 0 14px 14px; line-height: 1.8; }
  .trend-panel { padding: 14px; }
  .trend-panel > summary { font-size: 12px; }
  #trend svg { min-height: 150px; }
  .four-analysis, .technical-details { padding: 14px; }
  dialog { padding: 26px 22px; }
}
@media (max-width: 420px) {
  .breadcrumb > span { display: none; }
  .overview strong { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
