:root {
  color-scheme: light;
  --navy: #081d2d;
  --navy-soft: #17364a;
  --ink: #081d2d;
  --ink-soft: #17364a;
  --paper: #f4f0e7;
  --paper-deep: #e6dfd1;
  --white: #fffdf8;
  --orange: #c33f15;
  --orange-hover: #a9340e;
  --gold: #d7a62f;
  --mint: #b7dbcf;
  --success: #13764a;
  --danger: #a8342a;
  --warning: #855d00;
  --line: rgba(8, 29, 45, .16);
  --shadow: 0 22px 60px rgba(8, 29, 45, .12);
  --text-soft: #435764;
  --muted: #526773;
  --muted-2: #5b6d76;
  --table-head: #eee9df;
  --surface-soft: #faf7f0;
  --surface-alt: #edf2f3;
  --control-bg: #eae4d9;
  --row-hover: #f8f5ee;
  --search-match: #fff0e9;
  --bar-track: #e8e1d5;
  --row-line: rgba(8,29,45,.09);
  --tabs-bg: rgba(244,240,231,.96);
  --tabs-line: rgba(8,29,45,.13);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf3f6;
  --ink-soft: #d2dfe5;
  --paper: #07131c;
  --paper-deep: #0a1924;
  --white: #0f2230;
  --orange: #ff7a4a;
  --orange-hover: #ff906a;
  --gold: #efbd45;
  --success: #69d39f;
  --danger: #ff8b81;
  --warning: #f0bf55;
  --line: rgba(210, 225, 232, .18);
  --shadow: 0 22px 60px rgba(0, 0, 0, .34);
  --text-soft: #c5d2d8;
  --muted: #a5b6bf;
  --muted-2: #90a3ad;
  --table-head: #172e3c;
  --surface-soft: #102735;
  --surface-alt: #142e3b;
  --control-bg: #19313e;
  --row-hover: #162e3b;
  --search-match: #3a211c;
  --bar-track: #29404b;
  --row-line: rgba(210,225,232,.1);
  --tabs-bg: rgba(7,19,28,.94);
  --tabs-line: rgba(210,225,232,.14);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Manrope, system-ui, sans-serif; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.topbar { height: 72px; padding: 0 max(20px, calc((100vw - 1180px)/2)); display: flex; justify-content: space-between; align-items: center; background: var(--navy); color: white; }
.brand { display: flex; gap: 10px; align-items: center; color: white; text-decoration: none; font-weight: 800; letter-spacing: -.035em; font-size: 19px; }
.brand-mark { width: 50px; height: 38px; flex: 0 0 50px; display: block; }
.brand-logo { width: 100%; height: 100%; display: block; object-fit: contain; background: transparent; }
.brand-word { white-space: nowrap; }
.season-stamp { font-family: "DM Mono", monospace; font-size: 12px; color: #d7e1e6; letter-spacing: .04em; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.theme-settings { position: relative; }
.settings-button { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; color: #d7e1e6; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 50%; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.settings-button:hover, .settings-button[aria-expanded="true"] { color: white; background: rgba(255,255,255,.13); }
.settings-button:active { transform: rotate(18deg); }
.settings-button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.settings-button svg { width: 18px; height: 18px; display: block; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.theme-menu { position: absolute; z-index: 50; top: calc(100% + 10px); right: 0; width: 224px; padding: 11px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow); }
.theme-menu p { margin: 4px 8px 7px; color: var(--muted-2); font: 700 12px "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.theme-toggle { width: 100%; padding: 11px 9px; display: flex; justify-content: space-between; align-items: center; color: var(--ink); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 5px; cursor: pointer; text-align: left; font-size: 12px; font-weight: 800; }
.theme-toggle:hover, .theme-toggle:focus-visible { border-color: var(--orange); outline: 0; }
.theme-toggle-track { width: 38px; height: 21px; padding: 2px; display: flex; align-items: center; background: var(--control-bg); border: 1px solid var(--line); border-radius: 999px; transition: background .18s ease; }
.theme-toggle-track span { width: 15px; height: 15px; display: block; background: var(--muted-2); border-radius: 50%; transition: transform .18s ease, background .18s ease; }
.theme-toggle[aria-checked="true"] .theme-toggle-track { background: var(--orange); }
.theme-toggle[aria-checked="true"] .theme-toggle-track span { transform: translateX(17px); background: white; }
.live-dot { width: 7px; height: 7px; margin-right: 8px; background: #65c58c; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 4px rgba(101,197,140,.13); }
.workspace-tabs-wrap { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--tabs-line); background: var(--tabs-bg); backdrop-filter: blur(12px); }
.workspace-nav { display: flex; align-items: center; gap: 12px; }
.workspace-tabs-frame { min-width: 0; flex: 1; position: relative; }
.workspace-tabs { width: 100%; min-width: 0; display: flex; gap: 4px; padding-block: 9px; overflow-x: auto; scrollbar-width: none; }
.workspace-tabs::-webkit-scrollbar { display: none; }
.workspace-tab { flex: 0 0 auto; padding: 10px 15px; color: var(--muted); background: transparent; border: 0; border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: 800; }
.workspace-tab:hover { color: var(--ink); background: var(--row-line); }
.workspace-tab.active { color: white; background: var(--navy); }
.methodology-button { flex: 0 0 auto; padding: 9px 12px; color: var(--orange); background: transparent; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: 800; }
.methodology-button:hover, .methodology-button:focus-visible { color: var(--ink); background: var(--row-hover); }
.workspace-share { color: white; background: var(--orange); border-color: var(--orange); }
.workspace-share:hover, .workspace-share:focus-visible { color: white; background: var(--orange-hover); border-color: var(--orange-hover); }
.global-action-status:empty { display: none; }
.global-action-status { position: fixed; z-index: 90; top: 84px; right: max(20px, calc((100vw - 1180px)/2)); max-width: min(360px, calc(100vw - 40px)); padding: 10px 13px; color: white; background: #13764a; border-radius: 5px; box-shadow: var(--shadow); font-size: 12px; font-weight: 800; }
.hero { min-height: 565px; padding: 78px 0 68px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 72px; align-items: center; }
.eyebrow, .kicker { margin: 0 0 13px; color: var(--orange); font-family: "DM Mono", monospace; font-size: 12px; font-weight: 500; letter-spacing: .12em; }
h1, h2 { font-family: Newsreader, Georgia, serif; }
h1 { margin: 0; font-size: clamp(58px, 7.3vw, 92px); line-height: .88; letter-spacing: -.055em; }
.lede { max-width: 590px; margin: 30px 0; color: var(--text-soft); font-size: 17px; line-height: 1.65; }
.hero-actions { margin-top: 30px; display: flex; align-items: center; gap: 22px; }
.primary-button { display: inline-flex; gap: 28px; align-items: center; padding: 15px 19px; color: white; background: var(--orange); border: 0; text-decoration: none; font-weight: 700; border-radius: 4px; box-shadow: 0 8px 18px rgba(240,90,40,.22); cursor: pointer; }
.primary-button:hover { background: var(--orange-hover); }
.data-note { max-width: 220px; font-family: "DM Mono", monospace; font-size: 12px; color: var(--muted-2); line-height: 1.5; }
.podium-card { min-height: 385px; padding: 24px 25px 0; color: white; background: var(--navy); border-radius: 7px; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.podium-card::after { content: ""; position: absolute; inset: auto -80px -130px auto; width: 280px; height: 280px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.podium-label { display: flex; justify-content: space-between; color: #9db0bc; font-family: "DM Mono", monospace; font-size: 12px; letter-spacing: .1em; }
.podium { height: 310px; display: flex; gap: 10px; align-items: flex-end; justify-content: center; position: relative; z-index: 1; }
.podium-place { width: 31%; text-align: center; }
.podium-place:nth-child(1) { order: 2; }
.podium-place:nth-child(2) { order: 1; }
.podium-place:nth-child(3) { order: 3; }
.podium-logo { width: 56px; height: 56px; margin: 0 auto 9px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.podium-name { height: 36px; display: grid; place-items: center; font-size: 12px; font-weight: 700; line-height: 1.2; }
.podium-block { padding-top: 14px; background: var(--navy-soft); border-top: 3px solid var(--mint); }
.podium-place:nth-child(1) .podium-block { height: 144px; border-color: var(--orange); }
.podium-place:nth-child(2) .podium-block { height: 105px; }
.podium-place:nth-child(3) .podium-block { height: 78px; border-color: var(--gold); }
.podium-rank { font: 700 35px Newsreader, serif; }
.podium-score { color: #aebdc5; font: 12px "DM Mono", monospace; }
.builder { display: grid; grid-template-columns: 430px minmax(0, 1fr); gap: 24px; padding-bottom: 80px; align-items: start; }
.control-panel, .ranking-panel { background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.control-panel { padding: 27px; }
.panel-heading, .ranking-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
h2 { margin: 0; font-size: 34px; line-height: 1; letter-spacing: -.03em; }
.text-button { padding: 4px 0; color: var(--orange); background: none; border: 0; cursor: pointer; font-size: 12px; font-weight: 700; }
.preset-heading { margin: 25px 0 9px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.preset-heading strong { color: var(--ink-soft); font: 700 12px "DM Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.preset-heading span { color: var(--muted-2); font-size: 12px; }
.preset-group { margin: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.preset-card { position: relative; min-width: 0; }
.preset { width: 100%; min-height: 56px; padding: 9px 37px 9px 10px; display: flex; justify-content: center; align-items: flex-start; flex-direction: column; border: 1px solid var(--line); color: var(--ink-soft); background: transparent; border-radius: 4px; cursor: pointer; text-align: left; }
.preset-name { font-size: 12px; font-weight: 800; }
.preset-focus { margin-top: 2px; color: var(--muted-2); font-size: 11px; font-weight: 600; line-height: 1.25; }
.preset:hover, .preset.active { border-color: var(--navy); color: white; background: var(--navy); }
.preset:hover .preset-focus, .preset.active .preset-focus { color: #cbd7dd; }
.preset:disabled { opacity: .45; cursor: not-allowed; }
.preset-info { position: absolute; z-index: 2; top: 5px; right: 5px; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; color: var(--muted); background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.preset-info span { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: Georgia, serif; font-size: 12px; font-style: italic; font-weight: 700; line-height: 1; }
.preset-info:hover, .preset-info:focus-visible, .preset-info[aria-expanded="true"] { color: var(--orange); outline: 0; }
.preset.active + .preset-info, .preset:hover + .preset-info { color: white; }
.preset.active + .preset-info:hover, .preset.active + .preset-info:focus-visible, .preset:hover + .preset-info:hover { color: #ffb79d; }
.preset-tooltip { position: absolute; z-index: 28; top: calc(100% + 7px); left: 0; width: min(290px, calc(100vw - 72px)); padding: 13px 14px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.preset-card:nth-child(even) .preset-tooltip { right: 0; left: auto; }
.preset-tooltip strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 13px; }
.preset-tooltip p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.preset-tooltip b { color: var(--ink-soft); }
.model-switch-label { margin: 2px 0 8px; color: var(--muted); font: 12px "DM Mono", monospace; letter-spacing: .07em; }
.model-switch { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; background: var(--control-bg); border-radius: 5px; }
.model-option { padding: 9px 8px; color: var(--muted); background: transparent; border: 0; border-radius: 3px; font-size: 12px; font-weight: 800; cursor: pointer; }
.model-option.active { color: white; background: var(--orange); box-shadow: 0 3px 8px rgba(8,29,45,.16); }
.model-note { margin: 9px 0 20px; color: var(--muted-2); font-size: 12px; line-height: 1.5; }
.sliders.model-locked { opacity: .6; }
.sliders.model-locked input { cursor: not-allowed; }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.filter-row.three-up { grid-template-columns: repeat(3, 1fr); }
.filter-row label { font-size: 12px; font-weight: 800; letter-spacing: .04em; }
select { width: 100%; margin-top: 7px; padding: 9px 7px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); background: var(--paper); font-size: 12px; }
.weight-summary { margin: 19px 0 15px; display: flex; justify-content: space-between; font: 12px "DM Mono", monospace; letter-spacing: .07em; color: var(--muted); }
.weight-summary b { color: var(--orange); }
.slider-row { margin-bottom: 14px; }
.metric-group { margin: 19px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-soft); font: 700 12px "DM Mono", monospace; letter-spacing: .08em; }
.metric-group:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.slider-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.slider-name { font-size: 12px; font-weight: 700; }
.slider-info { color: var(--muted-2); font-size: 12px; font-weight: 500; }
.slider-value { min-width: 25px; text-align: right; color: var(--orange); font: 500 12px "DM Mono", monospace; }
input[type="range"] { width: 100%; height: 3px; accent-color: var(--orange); cursor: pointer; }
.normalization-note { margin: 19px 0 0; color: var(--muted-2); font-size: 12px; line-height: 1.5; }
.ranking-panel { overflow: hidden; }
.ranking-heading { padding: 27px 28px 23px; }
.ranking-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.compact-action { min-height: 38px; padding: 9px 10px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: 800; }
.compact-action:hover, .compact-action:focus-visible { color: var(--orange); border-color: var(--orange); outline: 0; }
.compact-action:disabled { opacity: .42; cursor: not-allowed; }
.share-action { color: white; background: var(--navy); border-color: var(--navy); }
.share-action:hover, .share-action:focus-visible { color: white; background: var(--orange); border-color: var(--orange); }
.action-status { width: 100%; min-height: 17px; color: var(--success); font-size: 12px; font-weight: 700; text-align: right; }
.team-search-wrap, .export-wrap { position: relative; }
.team-search input { width: 190px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--paper); font-size: 12px; }
.team-search input:focus { border-color: var(--orange); outline: 2px solid color-mix(in srgb, var(--orange) 22%, transparent); outline-offset: 1px; }
.team-search-results { position: absolute; z-index: 18; top: calc(100% + 7px); right: 0; width: 330px; max-height: 350px; padding: 7px; overflow-y: auto; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.search-result { width: 100%; padding: 9px 10px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 9px; align-items: center; color: var(--ink); background: transparent; border: 0; border-radius: 4px; cursor: pointer; text-align: left; }
.search-result:hover, .search-result.active { background: var(--row-hover); }
.search-result img { width: 30px; height: 30px; object-fit: contain; }
.search-result strong, .search-result small { display: block; }
.search-result strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.search-result small { margin-top: 2px; color: var(--muted-2); font-size: 12px; }
.search-result-rank { color: var(--orange); font: 700 12px "DM Mono", monospace; }
.search-empty { padding: 14px 11px; color: var(--muted-2); font-size: 12px; }
.export-button { min-height: 38px; padding: 9px 11px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: 800; }
.export-button:hover, .export-button[aria-expanded="true"] { border-color: var(--orange); color: var(--orange); }
.export-menu { position: absolute; z-index: 18; top: calc(100% + 7px); right: 0; width: 205px; padding: 7px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.export-menu button { width: 100%; padding: 9px 10px; display: block; color: var(--ink); background: transparent; border: 0; border-radius: 4px; cursor: pointer; text-align: left; }
.export-menu button:hover, .export-menu button:focus-visible { background: var(--row-hover); outline: 0; }
.export-menu strong, .export-menu span { display: block; }
.export-menu strong { font-size: 12px; }
.export-menu span { margin-top: 2px; color: var(--muted-2); font-size: 12px; }
.pinned-teams { padding: 0 28px 19px; display: flex; align-items: flex-start; gap: 13px; }
.pinned-label { padding-top: 7px; flex: 0 0 auto; color: var(--muted-2); font: 700 12px "DM Mono", monospace; letter-spacing: .08em; }
.pinned-team-list { display: flex; flex-wrap: wrap; gap: 7px; }
.pinned-team-chip { min-height: 32px; padding: 5px 9px 5px 7px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 99px; cursor: pointer; font-size: 12px; font-weight: 800; }
.pinned-team-chip:hover, .pinned-team-chip:focus-visible { color: var(--orange); border-color: var(--orange); outline: 0; }
.pinned-team-chip img { width: 18px; height: 18px; object-fit: contain; }
.column-labels { display: grid; grid-template-columns: minmax(0,1fr) 75px 92px 52px; padding: 9px 27px; color: var(--muted-2); background: var(--table-head); border-block: 1px solid var(--line); font: 12px "DM Mono", monospace; letter-spacing: .08em; }
.column-labels span:nth-child(n+2) { text-align: right; }
.rankings { margin: 0; padding: 0; list-style: none; }
.rank-row { display: grid; grid-template-columns: minmax(0,1fr) 75px 92px 52px; align-items: center; min-height: 67px; padding: 8px 27px; border-bottom: 1px solid var(--row-line); transition: background .15s; }
.rank-row:hover { background: var(--row-hover); }
.team-cell { display: flex; min-width: 0; align-items: center; gap: 13px; }
.rank-number { width: 24px; color: var(--muted-2); font: 500 14px "DM Mono", monospace; }
.rank-row:nth-child(-n+3) .rank-number { color: var(--orange); font-weight: 700; }
.team-logo { width: 34px; height: 34px; object-fit: contain; flex: 0 0 auto; }
.podium-logo,
.search-result img,
.compare-result img,
.pinned-team-chip img,
.team-logo,
.matchup-team img,
.odds-team img,
.simulation-team img,
.opinion-logo { padding: 3px; background: #fff; border-radius: 8px; box-shadow: 0 0 0 1px rgba(8,29,45,.12), 0 3px 9px rgba(8,29,45,.1); }
.podium-logo { padding: 5px; border-radius: 11px; }
.pinned-team-chip img { padding: 2px; border-radius: 5px; }
.team-name { min-width: 0; }
.team-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.team-actions { margin-top: 3px; display: flex; gap: 9px; }
.team-name button { min-height: 30px; padding: 4px 2px; color: var(--muted-2); background: none; border: 0; cursor: pointer; font-size: 12px; font-weight: 700; }
.team-name button:hover, .team-name button.selected { color: var(--orange); }
.team-name button.pinned { color: var(--gold); }
.stat-cell { text-align: right; font: 500 12px "DM Mono", monospace; }
.score-cell strong { font-size: 15px; color: var(--ink); }
.move-up { color: var(--success); }
.move-down { color: var(--danger); }
.move-flat { color: var(--muted-2); }
.search-match { background: var(--search-match) !important; }
.empty-state { padding: 60px 20px; text-align: center; color: var(--muted-2); }
.matchup-section { margin-bottom: 82px; padding: 34px 36px 38px; background: var(--white); border: 1px solid var(--line); border-radius: 7px; }
.matchup-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.matchup-heading > div:first-child { max-width: 500px; }
.matchup-heading p:not(.kicker) { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.matchup-controls { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 9px; min-width: min(100%, 490px); }
.matchup-controls label { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.matchup-search-label { grid-column: 1 / -1; }
.matchup-search-label input { width: 100%; min-height: 42px; margin-top: 7px; padding: 10px 12px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; font-size: 14px; }
.matchup-search-label input:focus { border-color: var(--orange); outline: 2px solid color-mix(in srgb, var(--orange) 22%, transparent); outline-offset: 1px; }
.graphic-export { align-self: end; justify-self: end; white-space: nowrap; }
.matchup-controls .graphic-export { grid-column: 1 / -1; }
.matchup-summary { margin: 25px 0 13px; color: var(--muted-2); font: 12px "DM Mono", monospace; letter-spacing: .06em; }
.market-key { margin: -2px 0 16px; display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted-2); font-size: 12px; }
.market-key span { display: inline-flex; align-items: center; gap: 6px; }
.market-key i { width: 8px; height: 8px; border-radius: 2px; }
.key-model { background: var(--orange); }
.key-market { background: var(--navy); }
.key-edge { background: var(--gold); }
.matchup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.matchup-show-more { display: block; margin: 18px auto 0; }
.matchup-card { padding: 19px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-soft); }
.matchup-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted-2); font: 12px "DM Mono", monospace; }
.matchup-teams { margin: 17px 0 14px; display: grid; gap: 11px; }
.matchup-team { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.matchup-team img { width: 30px; height: 30px; object-fit: contain; }
.matchup-team strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.matchup-site-marker { display: inline-block; min-width: 18px; margin-right: 4px; color: var(--orange); text-align: center; line-height: 1; }
.matchup-site-marker.at { font-family: Manrope, Arial, sans-serif; font-size: 15px; font-weight: 800; letter-spacing: 0; }
.matchup-site-marker.neutral { font: 800 11px "DM Mono", monospace; letter-spacing: 0; }
.matchup-rank { color: var(--muted-2); font: 12px "DM Mono", monospace; }
.spread-lines { padding-top: 13px; display: grid; gap: 8px; border-top: 1px solid var(--line); }
.spread-line { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.spread-line span:first-child { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .05em; }
.spread-line strong { color: var(--orange); font: 700 14px "DM Mono", monospace; }
.spread-line.market strong { color: var(--ink); }
.spread-line.edge { margin-top: 2px; padding-top: 8px; border-top: 1px dashed var(--line); }
.spread-line.edge strong { color: var(--warning); }
.total-lines { margin-top: 13px; }
.projection-detail { margin: 9px 0 0; color: var(--muted-2); font-size: 12px; line-height: 1.45; }
.matchup-empty { padding: 42px 20px; text-align: center; color: var(--muted-2); border: 1px dashed var(--line); }
.tab-surface { margin-top: 54px; margin-bottom: 82px; }
.tool-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; }
.tool-heading > div:first-child { max-width: 660px; }
.tool-heading p:not(.kicker) { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.simulator-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.simulation-info { position: relative; }
.simulation-info summary { width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; list-style: none; }
.simulation-info summary::-webkit-details-marker { display: none; }
.simulation-info summary span { width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: Georgia, serif; font-size: 13px; font-style: italic; font-weight: 700; line-height: 1; }
.simulation-info summary:hover, .simulation-info summary:focus-visible, .simulation-info[open] summary { color: var(--orange); border-color: var(--orange); outline: 0; }
.simulation-info-popover { position: absolute; z-index: 32; top: calc(100% + 9px); right: 0; width: min(340px, calc(100vw - 32px)); padding: 15px 16px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.simulation-info-popover strong { display: block; font-size: 13px; }
.simulation-info-popover p { margin: 7px 0 0 !important; color: var(--muted); font-size: 12px !important; line-height: 1.6 !important; }
.odds-section, .simulator-section { padding: 36px 38px 40px; background: var(--white); border: 1px solid var(--line); border-radius: 7px; }
.odds-controls { display: grid; grid-template-columns: repeat(3, minmax(130px, 1fr)); gap: 10px; min-width: 470px; }
.odds-controls label, .simulator-controls label { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.odds-controls .graphic-export { grid-column: 1 / -1; }
.odds-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 5px; }
.odds-table { width: 100%; min-width: 700px; border-collapse: collapse; }
.odds-table th { padding: 11px 16px; color: var(--muted-2); background: var(--table-head); text-align: right; font: 12px "DM Mono", monospace; letter-spacing: .08em; }
.odds-table th:first-child { text-align: left; }
.odds-sort-button { min-height: 34px; margin: -7px -10px; padding: 7px 10px; color: inherit; background: transparent; border: 0; border-radius: 4px; cursor: pointer; font: inherit; letter-spacing: inherit; white-space: nowrap; }
.odds-sort-button span { margin-left: 3px; opacity: 0; }
.odds-sort-button:hover, .odds-sort-button:focus-visible { color: var(--ink); background: var(--row-line); outline: 0; }
.odds-sort-button.active { color: var(--orange); }
.odds-sort-button.active span { opacity: 1; }
.odds-table td { height: 62px; padding: 9px 16px; border-top: 1px solid var(--row-line); text-align: right; font: 500 12px "DM Mono", monospace; }
.odds-table td:first-child { text-align: left; font-family: Manrope, sans-serif; }
.odds-team { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.odds-team img { width: 32px; height: 32px; object-fit: contain; }
.odds-team-rank { width: 24px; color: var(--muted-2); font: 500 12px "DM Mono", monospace; }
.odds-team strong { display: block; font-size: 13px; }
.odds-team small { color: var(--muted-2); font-size: 12px; }
.odds-value { display: inline-flex; min-width: 54px; justify-content: flex-end; font-weight: 800; }
.odds-value.custom { color: var(--orange); }
.odds-value.computer { color: var(--ink); }
.odds-market { color: var(--muted); }
.odds-market small { display: block; margin-top: 2px; color: var(--muted-2); font-size: 12px; }
.probability-bar { width: 70px; height: 4px; margin: 5px 0 0 auto; overflow: hidden; border-radius: 999px; background: var(--bar-track); }
.probability-bar span { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: var(--orange); }
.probability-bar.computer span { background: var(--ink); }
.tool-disclaimer { margin: 18px 0 0; color: var(--muted-2); font-size: 12px; line-height: 1.55; }
.simulation-mode { display: inline-flex; gap: 4px; margin-top: 27px; padding: 4px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 5px; }
.simulation-mode-option { min-height: 38px; padding: 8px 14px; color: var(--muted); background: transparent; border: 0; border-radius: 3px; font-size: 13px; font-weight: 800; cursor: pointer; }
.simulation-mode-option.active { color: white; background: var(--navy); }
.simulation-mode-option:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.simulator-controls { margin: 15px 0 14px; display: grid; grid-template-columns: minmax(260px, 1.6fr) minmax(130px, .55fr) auto; gap: 12px; align-items: end; }
.simulator-controls.custom-mode { grid-template-columns: minmax(0, 1fr) auto; }
.simulation-custom-picker { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.simulation-custom-picker label { min-width: 0; }
.simulation-custom-picker select { min-height: 42px; font-size: 14px; }
.simulation-team-picker { min-width: 0; }
.simulation-team-picker > label { display: block; }
.simulation-team-search-wrap { position: relative; margin-top: 7px; }
.simulation-team-search-wrap input { width: 100%; min-height: 42px; padding: 9px 11px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; font-family: Arial, Helvetica, sans-serif; font-size: 14px; }
.simulation-team-search-wrap input:focus { border-color: var(--orange); outline: 2px solid color-mix(in srgb, var(--orange) 22%, transparent); outline-offset: 1px; }
.simulation-team-results { position: absolute; z-index: 31; top: calc(100% + 7px); left: 0; width: 100%; max-height: 350px; padding: 7px; overflow-y: auto; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.simulation-team-result { width: 100%; min-height: 54px; padding: 8px 10px; display: block; color: var(--ink); background: transparent; border: 0; border-radius: 4px; cursor: pointer; text-align: left; }
.simulation-team-result:hover, .simulation-team-result.active, .simulation-team-result:focus-visible { background: var(--row-hover); outline: 0; }
.simulation-team-result strong, .simulation-team-result small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.simulation-team-result strong { font-size: 13px; }
.simulation-team-result small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.simulation-choice-status { min-height: 20px; margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.simulation-choice-status:empty { display: none; }
.simulation-game-picker { min-width: 0; }
.simulation-game-picker > label { display: block; }
.simulation-search-wrap { position: relative; margin-top: 7px; }
#simulation-game { width: 100%; min-height: 42px; padding: 9px 11px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; font-family: Arial, Helvetica, sans-serif; font-size: 14px; }
#simulation-game:focus { border-color: var(--orange); outline: 2px solid color-mix(in srgb, var(--orange) 22%, transparent); outline-offset: 1px; }
.simulation-game-results { position: absolute; z-index: 30; top: calc(100% + 7px); left: 0; width: 100%; max-height: 350px; padding: 7px; overflow-y: auto; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.simulation-game-result { width: 100%; min-height: 54px; padding: 8px 10px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; color: var(--ink); background: transparent; border: 0; border-radius: 4px; cursor: pointer; text-align: left; }
.simulation-game-result:hover, .simulation-game-result.active, .simulation-game-result:focus-visible { background: var(--row-hover); outline: 0; }
.simulation-game-result strong, .simulation-game-result small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.simulation-game-result strong { font-size: 13px; }
.simulation-game-marker { color: var(--orange); }
.simulation-game-marker.at { font-family: Manrope, Arial, sans-serif; font-size: 15px; font-weight: 800; letter-spacing: 0; line-height: 1; }
.simulation-game-marker.neutral { font: 700 12px "DM Mono", monospace; }
.simulation-game-result small { margin-top: 3px; color: var(--muted-2); font-size: 12px; }
.simulation-game-line { color: var(--orange); font: 700 12px "DM Mono", monospace; white-space: nowrap; }
.simulation-search-empty { padding: 15px 10px; color: var(--muted-2); font-size: 12px; }
.simulation-button { min-height: 39px; justify-content: center; box-shadow: none; font-size: 12px; }
.simulation-matchup { margin-bottom: 18px; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 24px; background: var(--navy); color: white; border-radius: 6px; }
.simulation-teams { display: flex; align-items: center; gap: 18px; }
.simulation-team { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.simulation-team img { width: 38px; height: 38px; object-fit: contain; }
.simulation-at { color: #90a6b3; font: 12px "DM Mono", monospace; }
.simulation-meta { text-align: right; color: #b4c2ca; font: 12px "DM Mono", monospace; line-height: 1.6; }
.simulation-results { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.simulation-results > .simulation-card { flex: 0 0 calc((100% - 12px) / 2); }
.simulation-card { min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); }
.simulation-card.market { background: var(--surface-alt); }
.simulation-card-header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.simulation-model { color: var(--muted); font: 700 12px "DM Mono", monospace; letter-spacing: .08em; }
.simulation-source { color: var(--muted-2); font-size: 12px; text-align: right; }
.simulation-score { margin: 26px 0 9px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.simulation-score strong { text-align: center; font: 700 34px Newsreader, serif; }
.simulation-score strong:first-child { text-align: right; }
.simulation-score strong:last-child { text-align: left; }
.simulation-score span { color: var(--muted-2); font: 12px "DM Mono", monospace; }
.simulation-pick { text-align: center; color: var(--orange); font-size: 12px; font-weight: 800; }
.simulation-win-probs { margin-top: 20px; display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font: 12px "DM Mono", monospace; }
.simulation-unavailable { min-height: 170px; display: grid; place-items: center; color: var(--muted-2); text-align: center; font-size: 12px; line-height: 1.55; }
.opinion-section { padding: 36px 38px 40px; background: var(--white); border: 1px solid var(--line); border-radius: 7px; }
.opinion-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 34px; }
.opinion-heading > div:first-child { max-width: 650px; }
.opinion-heading p:not(.kicker) { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.opinion-controls { min-width: 620px; display: grid; grid-template-columns: minmax(120px,.85fr) max-content .7fr .8fr .8fr; gap: 9px; align-items: end; }
.opinion-controls label { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.secondary-button { min-height: 39px; padding: 9px 12px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: 800; }
.secondary-button:hover, .secondary-button:focus-visible { color: var(--orange); border-color: var(--orange); outline: 0; }
#opinion-reset { width: max-content; justify-self: start; white-space: nowrap; }
.opinion-export-wrap .export-button { width: 100%; min-height: 39px; }
.opinion-independence { margin: 25px 0 16px; padding: 13px 15px; display: flex; align-items: center; gap: 12px; color: var(--muted); background: var(--surface-alt); border-left: 3px solid var(--gold); font-size: 12px; }
.opinion-independence strong { color: var(--ink); white-space: nowrap; }
.opinion-move-form { margin: 0 0 8px; padding: 15px; display: grid; grid-template-columns: minmax(260px,1fr) 125px 118px; gap: 10px; align-items: end; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 6px; }
.opinion-team-search-wrap { position: relative; }
.opinion-team-search-wrap label, .opinion-rank-input { display: block; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.opinion-team-search-wrap input, .opinion-rank-input input { width: 100%; min-height: 40px; margin-top: 7px; padding: 9px 10px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; font-size: 12px; }
.opinion-team-search-wrap input:focus, .opinion-rank-input input:focus { border-color: var(--orange); outline: 2px solid color-mix(in srgb, var(--orange) 22%, transparent); outline-offset: 1px; }
.opinion-search-results { position: absolute; z-index: 24; top: calc(100% + 7px); left: 0; width: 100%; max-height: 330px; padding: 7px; overflow-y: auto; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.opinion-search-result { width: 100%; min-height: 50px; padding: 7px 9px; display: grid; grid-template-columns: 32px minmax(0,1fr) auto; gap: 9px; align-items: center; color: var(--ink); background: transparent; border: 0; border-radius: 4px; cursor: pointer; text-align: left; }
.opinion-search-result:hover, .opinion-search-result.active, .opinion-search-result:focus-visible { background: var(--row-hover); outline: 0; }
.opinion-search-result img { width: 30px; height: 30px; padding: 3px; object-fit: contain; background: #fff; border-radius: 7px; box-shadow: 0 0 0 1px rgba(8,29,45,.12); }
.opinion-search-result strong, .opinion-search-result small { display: block; }
.opinion-search-result strong { font-size: 12px; }
.opinion-search-result small { margin-top: 2px; color: var(--muted-2); font-size: 12px; }
.opinion-search-rank { color: var(--orange); font: 700 12px "DM Mono", monospace; }
.opinion-move-form .secondary-button { min-height: 40px; }
.opinion-move-form .secondary-button:disabled { opacity: .45; cursor: not-allowed; }
.opinion-move-note { margin: 0 0 15px; color: var(--muted-2); font-size: 12px; }
.opinion-column-labels, .opinion-row { display: grid; grid-template-columns: minmax(0,1fr) 76px 60px 72px 94px; align-items: center; }
.opinion-column-labels { padding: 9px 16px; color: var(--muted-2); background: var(--table-head); border: 1px solid var(--line); border-radius: 5px 5px 0 0; font: 12px "DM Mono", monospace; letter-spacing: .08em; }
.opinion-column-labels span:nth-child(n+2) { text-align: right; }
.opinion-list { margin: 0; padding: 0; list-style: none; border-inline: 1px solid var(--line); }
.opinion-row { min-height: 62px; padding: 7px 15px; background: var(--white); border-bottom: 1px solid var(--row-line); cursor: grab; transition: background .15s, opacity .15s; }
.opinion-row:hover { background: var(--row-hover); }
.opinion-row.dragging { opacity: .42; cursor: grabbing; }
.opinion-row.drop-target { box-shadow: inset 0 3px 0 var(--orange); }
.opinion-team { min-width: 0; display: flex; align-items: center; gap: 11px; }
.drag-grip { color: var(--muted-2); font-size: 16px; letter-spacing: -4px; cursor: grab; }
.opinion-rank { width: 28px; color: var(--orange); font: 700 12px "DM Mono", monospace; }
.opinion-logo { width: 32px; height: 32px; flex: 0 0 auto; object-fit: contain; }
.opinion-team-name { min-width: 0; }
.opinion-team-name strong, .opinion-team-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opinion-team-name strong { font-size: 12px; }
.opinion-team-name small { margin-top: 2px; color: var(--muted-2); font-size: 12px; }
.opinion-pin { min-height: 30px; padding: 4px 0 0; color: var(--muted-2); background: none; border: 0; cursor: pointer; font-size: 12px; font-weight: 800; }
.opinion-pin.pinned { color: var(--gold); }
.opinion-stat { text-align: right; color: var(--ink-soft); font: 500 12px "DM Mono", monospace; }
.opinion-reorder { display: flex; justify-content: flex-end; gap: 5px; }
.opinion-move { width: 32px; height: 32px; display: grid; place-items: center; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; font-size: 13px; }
.opinion-move:hover, .opinion-move:focus-visible { color: var(--orange); border-color: var(--orange); outline: 0; }
.opinion-move:disabled { opacity: .3; cursor: not-allowed; }
.opinion-status { margin: 15px 0 0; color: var(--muted-2); font-size: 12px; line-height: 1.5; }
.compare-section { margin-bottom: 82px; padding: 38px 40px; display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 48px; color: white; background: var(--navy); border-radius: 7px; }
.compare-intro p:not(.kicker) { color: #aebdc6; font-size: 12px; line-height: 1.65; }
.compare-panel { min-width: 0; }
.compare-toolbar { min-height: 40px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.compare-count { color: #aebdc6; font: 500 12px "DM Mono", monospace; }
.compare-add-wrap { position: relative; }
.compare-add-button { min-height: 40px; padding: 9px 13px; color: var(--ink); background: var(--white); border: 1px solid rgba(255,255,255,.3); border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: 800; }
.compare-add-button:hover, .compare-add-button:focus-visible, .compare-add-button[aria-expanded="true"] { color: var(--orange); border-color: var(--orange); outline: 0; }
.compare-picker { position: absolute; z-index: 24; top: calc(100% + 7px); right: 0; width: min(360px, calc(100vw - 64px)); padding: 12px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.compare-picker label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.compare-picker input { width: 100%; min-height: 42px; padding: 9px 10px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; font-size: 14px; }
.compare-picker input:focus { border-color: var(--orange); outline: 2px solid color-mix(in srgb, var(--orange) 22%, transparent); outline-offset: 1px; }
.compare-results { max-height: 328px; margin-top: 7px; overflow-y: auto; }
.compare-result { width: 100%; min-height: 50px; padding: 7px 9px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 9px; align-items: center; color: var(--ink); background: transparent; border: 0; border-radius: 4px; cursor: pointer; text-align: left; }
.compare-result:hover, .compare-result.active, .compare-result:focus-visible { background: var(--row-hover); outline: 0; }
.compare-result img { width: 30px; height: 30px; object-fit: contain; }
.compare-result strong, .compare-result small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compare-result strong { font-size: 13px; }
.compare-result small { margin-top: 2px; color: var(--muted-2); font-size: 12px; }
.compare-result-rank { color: var(--orange); font: 700 12px "DM Mono", monospace; }
.compare-search-empty { padding: 14px 9px; color: var(--muted-2); font-size: 12px; }
.compare-wrap { overflow-x: auto; }
#compare-table { width: 100%; border-collapse: collapse; min-width: 440px; font-size: 12px; }
#compare-table th, #compare-table td { padding: 9px 11px; border-bottom: 1px solid rgba(255,255,255,.13); text-align: right; }
#compare-table th:first-child, #compare-table td:first-child { text-align: left; color: #9fb0ba; }
#compare-table thead th { color: white; font-size: 12px; }
.remove-team { min-height: 30px; padding: 4px; color: #ef9d83; background: none; border: 0; cursor: pointer; font-size: 12px; }
.method { padding: 0 0 82px; border-bottom: 1px solid var(--line); }
.method-copy { max-width: 960px; margin-inline: auto; }
.method-copy p { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.footer-legal-button { padding: 7px 0; color: var(--orange); background: transparent; border: 0; cursor: pointer; font-size: 12px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal-button:hover, .footer-legal-button:focus-visible { color: var(--ink); outline: 0; }
.source-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; }
.source-links a { color: var(--orange); font-size: 12px; font-weight: 700; }
footer { max-width: 1180px; margin: auto; padding: 28px 0 40px; display: flex; justify-content: space-between; color: var(--muted-2); font-size: 12px; }
.footer-brand { color: var(--ink); font-weight: 800; }
.footer-legal-button { padding: 0; color: var(--muted-2); }
.footer-meta { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.footer-version { color: var(--muted); font: 500 12px "DM Mono", monospace; }
.creator-line { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.creator-line a { color: var(--muted); font-weight: 700; text-decoration-color: var(--line); text-underline-offset: 3px; }
.creator-line a:hover, .creator-line a:focus-visible { color: var(--orange); }
html[data-theme="dark"] .primary-button,
html[data-theme="dark"] .model-option.active,
html[data-theme="dark"] .workspace-share { color: var(--navy); }
body.drawer-open, body.dialog-open { overflow: hidden; }
.manage-overlay { position: fixed; z-index: 130; inset: 0; padding: 20px; display: grid; place-items: center; background: rgba(3,12,18,.64); backdrop-filter: blur(4px); }
.manage-dialog { width: min(720px,100%); max-height: min(820px, calc(100vh - 40px)); padding: 28px 30px 32px; overflow-y: auto; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 28px 80px rgba(0,0,0,.36); }
.manage-intro { margin: 18px 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.save-poll-form { padding: 14px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: end; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.save-poll-form label { color: var(--muted); font-size: 12px; font-weight: 800; }
.save-poll-form input, .saved-rename-form input { width: 100%; margin-top: 7px; padding: 10px 11px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; font-size: 13px; }
.save-poll-form .primary-button { min-height: 40px; padding: 10px 14px; box-shadow: none; }
.manage-status { min-height: 19px; margin: 10px 0; color: var(--success); font-size: 12px; font-weight: 700; }
.saved-polls-list, .history-list { display: grid; gap: 10px; }
.saved-poll-card, .history-entry { padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.saved-poll-heading, .history-entry { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.saved-poll-heading strong { display: block; font-size: 14px; }
.saved-poll-heading small, .history-entry small { display: block; margin-top: 4px; color: var(--muted-2); font-size: 12px; }
.saved-poll-actions, .history-entry-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.saved-poll-actions button, .history-entry button, .saved-rename-form button, .saved-version button { min-height: 34px; padding: 7px 9px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: 800; }
.saved-poll-actions button:hover, .history-entry button:hover, .saved-rename-form button:hover, .saved-version button:hover { color: var(--orange); border-color: var(--orange); }
.saved-rename-form { margin-top: 11px; display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 7px; align-items: end; }
.saved-versions { margin-top: 12px; padding-top: 10px; display: grid; gap: 7px; border-top: 1px solid var(--line); }
.saved-version { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.history-entry-copy { min-width: 0; }
.history-entry-copy strong { display: block; font-size: 13px; }
.history-kind { display: inline-block; margin-bottom: 5px; color: var(--orange); font: 700 12px "DM Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.history-clear-controls { margin: 0 0 14px; display: flex; justify-content: flex-end; align-items: center; gap: 9px; }
.history-clear-button, .history-clear-confirm button { min-height: 34px; padding: 7px 10px; color: var(--danger); background: var(--white); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: 800; }
.history-clear-button:hover, .history-clear-button:focus-visible, .history-clear-confirm button:hover, .history-clear-confirm button:focus-visible { border-color: var(--danger); outline: 0; }
.history-clear-confirm { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.history-clear-confirm .history-clear-danger { color: white; background: var(--danger); border-color: var(--danger); }
.manage-empty { padding: 24px 16px; color: var(--muted); background: var(--white); border: 1px dashed var(--line); border-radius: 6px; text-align: center; font-size: 13px; line-height: 1.55; }
.legal-copy { padding-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.legal-copy section { padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.legal-copy h3 { margin: 0 0 8px; font-size: 14px; }
.legal-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.confirm-overlay { position: fixed; z-index: 120; inset: 0; padding: 20px; display: grid; place-items: center; background: rgba(3,12,18,.62); backdrop-filter: blur(4px); }
.confirm-dialog { width: min(470px,100%); padding: 30px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 28px 80px rgba(0,0,0,.34); }
.confirm-icon { width: 44px; height: 44px; margin-bottom: 18px; display: grid; place-items: center; color: var(--orange); background: var(--white); border: 1px solid var(--line); border-radius: 50%; font-size: 23px; font-weight: 800; }
.confirm-dialog > p:not(.kicker) { margin: 15px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.confirm-actions { margin-top: 25px; display: flex; justify-content: flex-end; gap: 9px; }
.confirm-actions .primary-button { min-height: 42px; justify-content: center; padding: 10px 16px; box-shadow: none; }
.methodology-overlay { position: fixed; z-index: 100; inset: 0; background: rgba(3,12,18,.58); backdrop-filter: blur(3px); }
.methodology-drawer { position: absolute; inset: 0 0 0 auto; width: min(570px, 94vw); padding: 30px 32px 42px; overflow-y: auto; color: var(--ink); background: var(--paper); box-shadow: -24px 0 60px rgba(0,0,0,.26); }
.drawer-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.drawer-close { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; font-size: 23px; line-height: 1; }
.drawer-close:hover, .drawer-close:focus-visible { color: var(--orange); border-color: var(--orange); }
.methodology-copy { padding: 9px 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.methodology-copy section { padding: 17px; background: var(--white); border: 1px solid var(--line); border-radius: 5px; }
.methodology-copy h3, .factor-explainer h3 { margin: 0 0 8px; font-size: 14px; }
.methodology-copy p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.factor-explainer { padding-top: 24px; border-top: 1px solid var(--line); }
.factor-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; }
.factor-heading label { width: 190px; color: var(--muted); font-size: 13px; font-weight: 800; }
.factor-heading select { min-height: 40px; font-size: 14px; }
.factor-note { margin: 13px 0 18px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.factor-list { display: grid; gap: 9px; }
.factor-row { padding: 15px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.factor-row-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.factor-name strong, .factor-name span { display: block; }
.factor-name strong { font-size: 14px; }
.factor-name span { margin-top: 3px; color: var(--muted); font-size: 13px; }
.factor-strength { flex: 0 0 auto; padding: 4px 7px; color: var(--orange); background: var(--surface-alt); border-radius: 99px; font-size: 12px; font-weight: 800; }
.factor-plain-language { margin: 10px 0 12px; color: var(--ink); font-size: 14px; line-height: 1.5; }
.factor-points { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; color: var(--muted); font-size: 12px; }
.factor-points strong { color: var(--ink); font-family: "DM Mono", monospace; }
.factor-bar { height: 5px; margin-top: 9px; overflow: hidden; background: var(--bar-track); border-radius: 99px; }
.factor-bar span { display: block; height: 100%; min-width: 2px; background: var(--orange); border-radius: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 60px; }
  .podium-card { max-width: 560px; width: 100%; }
  .builder { grid-template-columns: 1fr; }
  .control-panel { position: static; }
  .compare-section { grid-template-columns: 1fr; gap: 24px; }
  .matchup-heading { align-items: flex-start; flex-direction: column; }
  .matchup-controls { width: 100%; }
  .tool-heading { align-items: flex-start; flex-direction: column; }
  .simulator-heading-actions { align-self: flex-end; }
  .odds-controls { width: 100%; min-width: 0; }
  .simulator-controls { grid-template-columns: 1fr 1fr; }
  .simulator-controls.custom-mode { grid-template-columns: 1fr 1fr; }
  .simulation-custom-picker { grid-column: 1 / -1; }
  .simulation-button { grid-column: 1 / -1; }
  .simulation-results > .simulation-card { flex-basis: 100%; }
  .opinion-heading { align-items: flex-start; flex-direction: column; }
  .opinion-controls { width: 100%; min-width: 0; }
  .ranking-heading { align-items: stretch; flex-direction: column; }
  .ranking-actions { justify-content: flex-start; }
  .team-search-wrap { flex: 1; }
  .team-search, .team-search input { width: 100%; }
}
@media (max-width: 600px) {
  .shell { width: min(100% - 24px, 1180px); }
  .topbar { height: 62px; padding-inline: 14px; }
  .season-stamp { display: none; }
  .workspace-tabs-frame { overflow: hidden; }
  .workspace-tabs { width: 100%; padding: 9px 12px 7px; scrollbar-width: thin; scrollbar-color: var(--orange) transparent; }
  .workspace-tabs::-webkit-scrollbar { display: block; height: 3px; }
  .workspace-tabs::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 99px; }
  .workspace-nav { width: 100%; padding-right: 12px; }
  .methodology-button { padding-inline: 9px; }
  .season-stamp { font-size: 12px; }
  .hero { min-height: auto; padding: 50px 0; }
  h1 { font-size: 55px; }
  .lede { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .podium-card { min-height: 355px; padding-inline: 15px; }
  .podium { height: 285px; }
  .podium-logo { width: 44px; height: 44px; }
  .control-panel { padding: 22px 18px; }
  .filter-row.three-up { grid-template-columns: 1fr 1fr; }
  .filter-row.three-up label:last-child { grid-column: 1 / -1; }
  .ranking-heading { padding: 22px 18px; align-items: stretch; }
  .pinned-teams { padding-inline: 18px; flex-direction: column; gap: 7px; }
  .ranking-actions { width: 100%; align-items: stretch; }
  .team-search-results { left: 0; right: auto; width: min(330px, calc(100vw - 60px)); }
  .compact-action, .export-button { min-height: 44px; }
  .action-status { text-align: left; }
  .column-labels, .rank-row { grid-template-columns: minmax(0,1fr) 61px 68px; padding-inline: 13px; }
  .column-labels span:nth-child(4), .rank-row > :nth-child(4) { display: none; }
  .rank-row { min-height: 65px; }
  .team-cell { gap: 8px; }
  .rank-number { width: 21px; }
  .team-logo { width: 29px; height: 29px; }
  .team-name strong { max-width: 135px; }
  .team-actions { gap: 6px; flex-wrap: wrap; }
  .team-name button { min-height: 34px; padding: 6px 2px; font-size: 12px; }
  .opinion-pin { min-height: 34px; font-size: 12px; }
  .compare-section { width: 100%; border-radius: 0; padding: 32px 20px; }
  .matchup-section { width: 100%; border-radius: 0; padding: 30px 16px; }
  .odds-section, .simulator-section { width: 100%; margin-top: 30px; padding: 30px 16px; border-radius: 0; }
  .opinion-section { width: 100%; margin-top: 30px; padding: 30px 12px; border-radius: 0; }
  .opinion-controls { grid-template-columns: 1fr 1fr; }
  .opinion-controls label { grid-column: 1 / -1; }
  .opinion-independence { align-items: flex-start; flex-direction: column; gap: 4px; }
  .opinion-move-form { grid-template-columns: minmax(0,1fr) 98px; padding: 12px; }
  .opinion-team-search-wrap { grid-column: 1 / -1; }
  .opinion-move-form .secondary-button { padding-inline: 8px; }
  .opinion-column-labels, .opinion-row { grid-template-columns: minmax(0,1fr) 58px 80px; }
  .opinion-column-labels span:nth-child(3), .opinion-column-labels span:nth-child(4), .opinion-row > :nth-child(3), .opinion-row > :nth-child(4) { display: none; }
  .opinion-column-labels span:nth-child(5) { display: block; }
  .drag-grip { display: none; }
  .odds-controls, .simulator-controls { grid-template-columns: 1fr; }
  .simulator-controls.custom-mode, .simulation-custom-picker { grid-template-columns: 1fr; }
  .simulation-mode { display: flex; width: 100%; }
  .simulation-mode-option { flex: 1; min-height: 44px; padding-inline: 8px; }
  .simulator-heading-actions { width: 100%; justify-content: flex-end; }
  .simulation-button { grid-column: auto; }
  .simulation-matchup { align-items: flex-start; flex-direction: column; }
  .simulation-teams { width: 100%; justify-content: space-between; gap: 8px; }
  .simulation-team { gap: 6px; font-size: 12px; }
  .simulation-team img { width: 31px; height: 31px; }
  .simulation-meta { text-align: left; }
  .matchup-controls { grid-template-columns: 1fr; }
  .matchup-grid { grid-template-columns: 1fr; }
  .method { grid-template-columns: 1fr; gap: 24px; }
  footer { width: calc(100% - 24px); align-items: flex-start; flex-direction: column; gap: 10px; }
  .creator-line { justify-content: flex-start; line-height: 1.6; }
  .methodology-drawer { width: 100%; padding: 25px 18px 38px; }
  .confirm-dialog { padding: 25px 20px; }
  .confirm-actions { align-items: stretch; flex-direction: column-reverse; }
  .confirm-actions .secondary-button, .confirm-actions .primary-button { width: 100%; min-height: 44px; }
  .methodology-copy { grid-template-columns: 1fr; }
  .factor-heading { align-items: flex-start; flex-direction: column; }
  .factor-heading label { width: 100%; }
  .manage-overlay { padding: 10px; }
  .manage-dialog { max-height: calc(100vh - 20px); padding: 23px 17px 26px; }
  .save-poll-form, .saved-rename-form { grid-template-columns: 1fr; }
  .saved-poll-heading, .history-entry { align-items: stretch; flex-direction: column; }
  .saved-poll-actions, .history-entry-actions { justify-content: flex-start; }
  .history-clear-controls, .history-clear-confirm { align-items: stretch; flex-direction: column; }
  .history-clear-button, .history-clear-confirm button { width: 100%; min-height: 42px; }
  .saved-version { align-items: flex-start; flex-direction: column; }
  .legal-copy { grid-template-columns: 1fr; }
}
