:root {
  --ink: #312722;
  --muted: #6f5c50;
  --line: #e4d7c2;
  --paper: #f7f1e7;
  --green: #742f2a;
  --lime: #f1ce7b;
  --orange: #d09939;
  --vintage-panel: #fffaf0;
  --vintage-accent: #a53d2f;
  --vintage-gold: #b57a21;
}

.sidebar { background: #742f2a; color: #fff4db; }
.brand { color: #fff4db; }
.brand small, .sidebar-label, .sidebar-bottom, .sidebar-bottom p,
.league-selector small, .nav-item, .nav-item i { color: #eed2bd; }
.league-selector, .sidebar-bottom { border-color: #a05c4b; }
.league-icon, .brand-mark { background: #f1ce7b; color: #5a2923; }
.brand-mark span { color: #9e4b38; }
.nav-item:hover, .nav-item.active { background: #59231f; color: #fff8e9; }
.nav-item.active span, .live-dot { color: #f1ce7b; }
.live-dot { background: #f1ce7b; }
.icon-button, .settings-button, .close-button { color: #5c3029; }
.settings-button { background: #ecdfcd; }
.top-label, .updated, .eyebrow, .section-kicker, .card-top,
.panel-title span, .pill, th, .coverage-label, .filter-row label,
.page-heading p, .section-top p, .helper, .empty, .matrix caption { color: var(--muted); }
.eyebrow > span:first-child, .title-period { background-color: #b57a21; color: #b57a21; }
.title-period { background: transparent; }
.card, .panel, dialog { background: var(--vintage-panel); color: var(--ink); }
.card-icon, .card.orange .card-icon, .card.dark .card-icon,
.team-avatar, .insight-symbol { background: #f2e2c6; color: #8a3c2c; }
.card p, .card .metric, .insight p, .insight strong, .empty strong { color: var(--ink); }
.hero, .primary-button { background: #742f2a; color: #fff9ed; }
.insights-intro { background: #f0e2ca; border-color: #e4d0ad; }
.insights-intro p { color: var(--muted); }
.intro-mark { color: #bd8a52; }
.matrix td:first-child, .matrix th:first-child { background: var(--vintage-panel); }
.matrix td.diagonal { background: #f1dfbf; color: #713327; }
.filter-row select, input { background: var(--vintage-panel); border-color: #d4c3a9; color: var(--ink); }
.cookie-help, .cookie-saved { background: #f0e2ca; border-color: #e4d0ad; color: #5e4336; }
.cookie-help a, .sort-button:hover, .sort-button:focus-visible, th[aria-sort] .sort-button { color: #8b3027; }
.welcome h1 em, footer b { color: #9a4935; }
.welcome-art { background: #ead4ae; }
.art-circle { border-color: #ba8f5f; color: #742f2a; }
.art-tag { background: #742f2a; color: #fff4db; }
.art-lines { border-color: #c7a377; box-shadow: 0 0 0 25px #ead4ae, 0 0 0 26px #c7a377, 0 0 0 50px #ead4ae, 0 0 0 51px #c7a377; }
.bar-fill { fill: var(--vintage-accent); }
.bar-negative { fill: var(--vintage-gold); }
.overview-legend span:before { background: var(--vintage-accent); }
.overview-legend span:nth-child(2):before { background: var(--vintage-gold); }
.position-filters input { accent-color: #8b3027; }
button:focus-visible, a:focus-visible, input:focus-visible,
.season-control select:focus-visible { outline-color: #b57a21; }

[data-theme="dark"] {
  --ink: #f6e9d8;
  --muted: #d0b8a5;
  --line: #62473c;
  --paper: #211a19;
  --green: #edb79e;
  --vintage-panel: #342824;
  --vintage-accent: #e37b63;
  --vintage-gold: #efbd67;
}
[data-theme="dark"] .sidebar { background: #341a1a; }
[data-theme="dark"] .card, [data-theme="dark"] .panel, [data-theme="dark"] dialog,
[data-theme="dark"] .matrix td:first-child, [data-theme="dark"] .matrix th:first-child { background: var(--vintage-panel); color: var(--ink); }
[data-theme="dark"] .matrix td.diagonal { background: #684536; color: #fff2da; }
[data-theme="dark"] .ranking, [data-theme="dark"] .insight, [data-theme="dark"] td { border-color: var(--line); }
[data-theme="dark"] .settings-button, [data-theme="dark"] .team-avatar,
[data-theme="dark"] .card-icon, [data-theme="dark"] .card.orange .card-icon,
[data-theme="dark"] .card.dark .card-icon, [data-theme="dark"] .insight-symbol { background: #644239; color: #ffe8d2; }
[data-theme="dark"] .icon-button, [data-theme="dark"] .close-button,
[data-theme="dark"] .card p, [data-theme="dark"] .card .metric,
[data-theme="dark"] .insight p, [data-theme="dark"] .insight strong,
[data-theme="dark"] .empty strong { color: var(--ink); }
[data-theme="dark"] .helper, [data-theme="dark"] .section-kicker,
[data-theme="dark"] .eyebrow, [data-theme="dark"] .section-top p,
[data-theme="dark"] .page-heading p, [data-theme="dark"] .panel-title span,
[data-theme="dark"] .coverage-label, [data-theme="dark"] .filter-row label,
[data-theme="dark"] .matrix caption { color: var(--muted); }
[data-theme="dark"] .filter-row select, [data-theme="dark"] input {
  background: #291f1d; color: var(--ink); border-color: #705347;
}
[data-theme="dark"] .insights-intro, [data-theme="dark"] .cookie-help,
[data-theme="dark"] .cookie-saved { background: #493328; border-color: #705347; color: var(--ink); }
[data-theme="dark"] .insights-intro p, [data-theme="dark"] .cookie-help a,
[data-theme="dark"] .sort-button:hover, [data-theme="dark"] .sort-button:focus-visible,
[data-theme="dark"] th[aria-sort] .sort-button { color: #f1c99f; }
[data-theme="dark"] .notice { background: #51402a; color: #f8e6bf; border-color: #806344; }
[data-theme="dark"] .notice.error { background: #542f29; color: #ffe3d4; border-color: #96594a; }
[data-theme="dark"] .welcome-art { background: #674b39; }
[data-theme="dark"] .art-circle { border-color: #bd9569; color: #fff0d6; }
[data-theme="dark"] .art-lines { border-color: #bd9569; box-shadow: 0 0 0 25px #674b39, 0 0 0 26px #bd9569, 0 0 0 50px #674b39, 0 0 0 51px #bd9569; }
