@font-face{font-family:Public Sans;src:url('/assets/public-sans.ttf') format('truetype');font-weight:100 900;font-style:normal;font-display:swap}
:root{--ground:#171719;--surface:#131315;--raised:#222224;--border:#303033;--rule:#252528;--control:#4b4b50;--text:#f4f3f0;--muted:#a5a5ab;--faint:#929298;--accent:#e9b66b;--positive:#85c3ac;--negative:#eda0a5;--gap:24px;color-scheme:dark;font-family:'Public Sans',system-ui,sans-serif;font-size:16px;font-kerning:normal;font-feature-settings:'kern' 1,'liga' 1;font-variant-numeric:tabular-nums;line-height:1.45}
*{box-sizing:border-box}body{margin:0;background:var(--ground);color:var(--text)}button,input,select{font:inherit;color:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button,a,summary,input[type=range]{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;color:var(--muted)}a{color:inherit;text-underline-offset:4px;text-decoration-thickness:1px}button,input,select,summary,a{outline-offset:4px}*:focus-visible{outline:2px solid var(--accent)}button{background:none;border:0}input,select{background:var(--surface);border:1px solid var(--control);border-radius:6px;min-height:40px;padding:8px 10px;max-width:100%;caret-color:var(--accent)}input::placeholder{color:var(--faint)}select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23aaaab0' stroke-width='1.5'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;padding-right:32px}::selection{background:#79603a;color:#fff}::-webkit-scrollbar{width:7px;height:7px}::-webkit-scrollbar-thumb{background:#45454a;border-radius:6px}::-webkit-scrollbar-track{background:transparent}[hidden]{display:none!important}svg{display:block}button svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.5;fill:none;stroke-linecap:round;stroke-linejoin:round;flex:none}h1,h2,h3,p{margin:0}h1{font-size:28px;font-weight:600;letter-spacing:-.025em;line-height:1.25;text-wrap:balance}h2{font-size:18px;font-weight:600;letter-spacing:-.015em}h3{font-size:15px;font-weight:600}p{max-width:72ch}small,.small-text{font-size:12px}.muted{color:var(--muted)}.num{text-align:right;font-variant-numeric:tabular-nums}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;left:80px;top:-80px;z-index:100;background:var(--text);color:#111;padding:12px}.skip-link:focus{top:12px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;border:1px solid var(--control);border-radius:6px;padding:8px 13px;font-size:14px;white-space:nowrap}.button:hover{border-color:var(--muted);background:var(--raised)}.button.small{min-height:36px;font-size:13px}.text-button{font-size:14px;color:var(--muted);padding:8px 0;white-space:nowrap}.text-button:hover{color:var(--text)}.text-button[aria-pressed=true]{color:var(--text);text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:8px}.tag{font-size:12px;color:var(--muted);white-space:nowrap}.scenario-tag{color:var(--accent)}main{padding:30px 32px 0;max-width:1780px;margin:auto;outline:none}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.page-heading p{font-size:14px;color:var(--muted);margin-top:8px}.search-wrap{display:flex;position:relative;flex:1;max-width:360px}.search-wrap svg{position:absolute;left:12px;top:12px;width:17px;height:17px;fill:none;stroke:var(--muted);stroke-width:1.5}.search-wrap input{width:100%;padding-left:38px;font-size:14px}#watch-count{margin-left:4px;font-size:12px}/* Columns close as (available - 24px) / 2.12 × 1.12 + 24px + (available - 24px) / 2.12. */
.research-column{display:flex;flex-direction:column;gap:var(--gap);min-width:0}.panel{background:var(--surface);border-radius:8px;padding:22px;min-width:0}.panel-heading{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:18px}.panel-heading p{font-size:13px;color:var(--muted);margin-top:5px}.tabs{display:flex;gap:22px;border-bottom:1px solid var(--border);margin-bottom:8px;overflow:auto}.tabs button{position:relative;color:var(--muted);font-size:14px;padding:10px 0 12px;white-space:nowrap;min-height:42px}.tabs button.selected,.tabs button[aria-selected=true]{color:var(--text)}.tabs button.selected:after,.tabs button[aria-selected=true]:after{content:'';position:absolute;height:1px;background:var(--accent);bottom:0;left:0;right:0}.table-scroll{overflow:auto;min-width:0}table{width:100%;border-collapse:collapse;font-size:14px}th{font-size:12px;font-weight:400;color:var(--muted);text-align:left;white-space:nowrap;padding:12px 8px}td{padding:10px 8px;border-top:1px solid var(--rule)}th:first-child,td:first-child{padding-left:0}th:last-child,td:last-child{padding-right:0}.players-table th:nth-child(2){min-width:85px}.players-table th:nth-child(3){min-width:112px}.players-table th:nth-child(4){min-width:45px}.players-table .player-name{font-weight:500;text-align:left;display:flex;align-items:center;gap:10px;width:100%;padding:0;min-height:38px}.player-avatar{width:36px;height:36px;object-fit:cover;object-position:top;background:var(--raised);border-radius:50%;flex:none}.player-text{display:flex;flex-direction:column;gap:3px;white-space:nowrap}.player-text small{color:var(--muted);font-size:12px;font-weight:400}.players-table tr.selected{background:#202023}.players-table tr.selected td:first-child{padding-left:7px}.players-table tr:hover{background:#1d1d20}.players-table tbody tr{cursor:pointer}.players-table td.num{font-size:14px}.players-table td.range{color:var(--muted);font-size:13px}.watch-button{display:flex;align-items:center;justify-content:center;width:30px;height:36px;color:var(--muted);font-size:22px;font-weight:300}.watch-button.active{color:var(--accent)}.player-panel .table-scroll{max-height:358px}.players-table thead{position:sticky;top:0;background:var(--surface);z-index:1}.panel-footnote{font-size:12px;color:var(--muted);margin-top:15px;line-height:1.55}.empty{padding:25px 0;color:var(--muted);font-size:14px}.identity{display:flex;align-items:center;gap:15px;margin-bottom:14px}.identity img{width:66px;height:66px;object-fit:cover;object-position:top;background:var(--raised);border-radius:50%;flex:none}.identity h2{font-size:22px}.identity p{font-size:13px;color:var(--muted);margin-top:4px}.identity .availability{margin-left:auto;max-width:150px;font-size:12px;color:var(--muted);text-align:right}.identity .availability.warning{color:var(--accent)}.detail-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding-top:15px;margin-bottom:16px}.detail-metrics dt{font-size:12px;color:var(--muted);margin-bottom:5px}.detail-metrics dd{margin:0;font-size:23px;font-weight:450}.detail-metrics dd small{font-size:12px;color:var(--muted);margin-left:4px}.chart-heading{display:flex;justify-content:space-between;gap:8px;margin:16px 0 6px;font-size:13px}.chart-heading span{color:var(--muted);font-size:12px}.history-chart{width:100%;height:155px;overflow:visible}.history-chart text{font-family:inherit;font-size:11px;fill:var(--muted)}.history-chart .grid{stroke:var(--border);stroke-width:1}.history-chart .bar{fill:#69696f}.history-chart .last-bar{fill:var(--accent)}.history-chart .reference{stroke:var(--text);stroke-width:1;stroke-dasharray:4 4}.market-inputs{display:grid;grid-template-columns:1fr 1fr .85fr;gap:12px}.market-inputs label,.gravity-source label,.assumption-grid label{display:flex;flex-direction:column;gap:8px;font-size:13px;color:var(--muted)}.market-inputs input,.market-inputs select{width:100%;font-size:15px}.market-result{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-top:20px}.market-result small{display:block;color:var(--muted);font-size:12px;margin-bottom:4px}.market-result strong{font-size:22px;font-weight:450}.market-note{font-size:13px;color:var(--muted);margin-top:14px}.conditional{color:var(--accent)}.gravity-source{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:end}.gravity-source select{width:100%;font-size:14px}.measured{display:flex;flex-direction:column;text-align:right;font-size:12px;color:var(--muted);gap:1px}.measured strong{font-size:20px;color:var(--muted);font-weight:400}.measured small{font-size:11px}.court{padding-top:4px;margin:12px 0 8px}.court svg{width:100%;height:auto;max-height:250px}.court .court-line{stroke:#363638;fill:none;stroke-width:1.1}.court .flow{stroke:var(--accent);fill:none;stroke-linecap:round}.court .node{fill:#28282b;stroke:#929298;stroke-width:1}.court .source-node{stroke:var(--accent);fill:#29241e}.court text{font-family:inherit;fill:var(--muted);font-size:12px}.court .node-name{fill:var(--text);font-size:12px}.court .court-note{font-size:11px}.scenario-controls>label{display:flex;align-items:center;justify-content:space-between;font-size:14px}.scenario-controls output{font-size:18px}.scenario-controls input[type=range]{width:100%;padding:0;margin:10px 0 0;border:0;min-height:20px;accent-color:var(--accent);background:transparent}.range-ends{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;margin-top:4px}details{border-top:1px solid var(--border);margin-top:18px;padding-top:12px}summary{font-size:13px;cursor:pointer;color:var(--muted);min-height:30px}summary:hover{color:var(--text)}.assumption-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:15px}.assumption-grid input{width:100%;font-size:14px}.assumption-grid small{font-size:11px;line-height:1.4}.lineup-row{display:grid;grid-template-columns:minmax(0,1fr) 80px;gap:12px;margin-top:10px;align-items:end}.lineup-row label{font-size:12px;color:var(--muted);display:flex;flex-direction:column;gap:5px}.lineup-row select,.lineup-row input{width:100%;min-height:35px;font-size:13px}.lineup-row:first-child{margin-top:20px}details p{margin-top:12px}.benefit-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:24px;margin-bottom:5px}.benefit-heading span{font-size:12px;color:var(--muted)}.benefits-table td{font-size:13px;padding:11px 8px}.benefit-player{display:flex;align-items:center;gap:9px}.benefit-player small{display:block;font-size:11px;color:var(--muted);margin-top:2px}.benefit-player img{width:29px;height:29px;object-fit:cover;object-position:top;border-radius:50%;background:var(--raised)}.benefits-table .gain{color:var(--accent)}.gravity-accounting{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding-top:16px;margin-top:6px;border-top:1px solid var(--border)}.gravity-accounting span{font-size:12px;color:var(--muted);display:block}.gravity-accounting strong{display:block;margin-top:4px;font-size:20px;font-weight:450}.gravity-accounting p{grid-column:1/-1;font-size:12px;color:var(--muted)}.coverage-list{margin:0 0 10px;font-size:13px}.coverage-list>div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--rule)}.coverage-list dd{margin:0;color:var(--muted);white-space:nowrap}.coverage-list dt{max-width:70%}.footer{font-size:12px;color:var(--muted);display:flex;justify-content:space-between;gap:20px;padding:30px 0}.document-view{max-width:1000px;padding:4px 0 30px}.document-view h1{margin-bottom:15px}.document-view h2{margin-top:32px;margin-bottom:12px}.document-view p,.document-view li{font-size:16px;color:#c5c5ca;line-height:1.7;max-width:75ch}.document-view ul{padding-left:22px}.document-view li{margin-bottom:10px}.document-view code{font-size:13px;background:var(--raised);padding:3px 6px;border-radius:4px;overflow-wrap:anywhere}.source-row{padding:18px 0;border-bottom:1px solid var(--border);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px}.source-row p{font-size:13px;margin-top:5px}.source-row small{color:var(--muted);font-size:12px}.document-view .notice{margin-top:20px}.notice{padding:14px 16px;background:#28231b;border:1px solid #5d4e36;border-radius:6px;color:#e0c99e;font-size:14px;margin-bottom:20px}.notice.error{background:#2b1f21;border-color:#6f4349;color:#efbec2}.loading{min-height:70vh}.loading p{margin-top:12px;color:var(--muted)}.loading-line{height:150px;margin-top:30px;background:var(--raised);border-radius:8px}.loading-line.short{height:70px;max-width:65%;margin-top:20px}.toast{position:fixed;bottom:24px;left:calc(50% + 32px);transform:translateX(-50%);z-index:50;background:var(--text);color:#161618;border-radius:8px;padding:13px 20px;font-size:14px;max-width:90vw;box-shadow:0 6px 20px #0003}.context-list{margin:12px 0 0}.context-list div{padding:13px 0;border-bottom:1px solid var(--rule)}.context-list dt{font-size:14px}.context-list dd{font-size:13px;color:var(--muted);margin:5px 0 0;line-height:1.6}.matchup-selector{margin:15px 0}.matchup-selector label{display:flex;flex-direction:column;gap:8px;font-size:13px;color:var(--muted)}.matchup-selector select{font-size:14px}.evidence-note{font-size:13px;color:var(--muted);line-height:1.65;margin-top:16px}.inline-source{font-size:12px;color:var(--muted)}.status-notice{margin-top:14px;font-size:13px;color:var(--accent)}
@media(min-width:1600px){main{padding-left:40px;padding-right:40px}.player-panel .table-scroll{max-height:410px}.court svg{max-height:270px}}
@media(max-width:1150px){.top-meta>span:first-child{display:none}main{padding:24px}.research-column{gap:18px}.panel{padding:18px}.panel-heading{flex-wrap:wrap;gap:5px}.panel-heading>.tag{font-size:11px}.players-table th:nth-child(3),.players-table td:nth-child(3){display:none}.identity .availability{max-width:100px;font-size:11px}.gravity-source{gap:10px}.measured small{max-width:70px}.benefit-heading{flex-wrap:wrap;gap:3px}.market-inputs{grid-template-columns:1fr 1fr}.market-inputs label:last-child{grid-column:1/-1}.assumption-grid{grid-template-columns:1fr 1fr}.history-chart{height:145px}}
@media(max-width:850px){main{padding:22px 20px 75px}.player-panel .table-scroll{max-height:340px}.players-table th:nth-child(3),.players-table td:nth-child(3){display:table-cell}.panel{padding:20px}.gravity-source{grid-template-columns:1fr auto}.court svg{max-height:260px}.page-heading h1{font-size:25px}.search-wrap{max-width:none;flex:1}.toast{left:50%;bottom:82px}.footer{padding-bottom:10px;font-size:11px}.source-row{grid-template-columns:1fr}.source-row>small{font-size:12px}.identity .availability{font-size:12px;max-width:160px}.assumption-grid{grid-template-columns:repeat(3,1fr)}.market-inputs{grid-template-columns:1fr 1fr .8fr}.market-inputs label:last-child{grid-column:auto}}
@media(max-width:520px){.page-heading{gap:8px;margin-bottom:20px}.page-heading h1{font-size:22px}.page-heading p{font-size:12px}.page-heading>.button{font-size:12px;min-height:36px;padding:7px 10px}.search-wrap input{font-size:13px}.panel{padding:16px}.panel-heading p{font-size:12px}h2{font-size:17px}.panel-heading{margin-bottom:12px}.players-table th{font-size:11px;padding:9px 5px}.players-table td{padding:9px 5px}.players-table th:nth-child(4),.players-table td:nth-child(4){display:none}.players-table th:nth-child(3){min-width:89px}.players-table th:nth-child(2){min-width:67px}.players-table td.num{font-size:13px}.player-avatar{width:30px;height:30px}.players-table .player-name{gap:7px}.player-text{font-size:12px}.player-text small{font-size:11px}.watch-button{width:26px;min-height:44px}.player-panel .table-scroll{max-height:320px}.identity{gap:10px}.identity img{width:52px;height:52px}.identity h2{font-size:19px}.identity p{font-size:12px}.identity .availability{max-width:90px;font-size:11px}.detail-metrics dd{font-size:22px}.detail-metrics dt{font-size:11px}.detail-metrics{gap:8px}.gravity-source label{font-size:12px}.gravity-source select{font-size:13px}.measured{font-size:11px}.court{margin:10px -6px}.court svg{max-height:none}.benefits-table th{font-size:11px;padding:9px 4px}.benefits-table td{font-size:12px;padding:10px 4px}.benefit-player{gap:6px}.benefit-player img{width:25px;height:25px}.benefit-player small{font-size:10px}.assumption-grid{grid-template-columns:1fr 1fr}.assumption-grid label{font-size:12px}.assumption-grid label:last-child{grid-column:1/-1}.market-inputs{grid-template-columns:1fr 1fr}.market-inputs label:last-child{grid-column:1/-1}.market-result{gap:10px}.market-result strong{font-size:20px}.market-result small{font-size:11px}.coverage-list{font-size:12px}.coverage-list dt{max-width:64%}.coverage-list dd{font-size:11px}.footer{flex-direction:column;gap:5px}.document-view h1{font-size:24px}.document-view p,.document-view li{font-size:14px}.tabs{gap:18px}.tabs button{font-size:13px;min-height:44px}}
@media(prefers-reduced-motion:no-preference){button,a{transition:color 120ms ease,background-color 120ms ease,border-color 120ms ease}.court .flow{transition:stroke-width 160ms ease,opacity 160ms ease}}
.history-chart text{font-size:12px}
@media(max-width:520px){.court text{font-size:20px}.court .node-name{font-size:22px}.court .court-note{font-size:18px}.history-chart{height:170px}}
.odds-meta{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:13px;color:var(--muted);margin-bottom:22px}.odds-options{display:flex;gap:25px;flex-wrap:wrap;padding:0 0 3px}.odds-options label{display:flex;align-items:center;gap:9px;font-size:14px;color:var(--muted)}.odds-options input{width:17px;height:17px;min-height:17px;margin:0;accent-color:var(--accent)}.odds-result-head{display:flex;justify-content:space-between;gap:12px;font-size:14px;margin-bottom:12px}.odds-pagination{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:20px}.odds-pagination>span{font-size:13px;color:var(--muted)}.odds-pagination button:disabled{cursor:default;color:#85858a;border-color:#38383c}.odds-panel{scroll-margin-top:20px}
@media(max-width:850px){.odds-meta{align-items:start;flex-direction:column;gap:7px}.odds-result-head{flex-direction:column;gap:3px}}
@media(max-width:600px){#odds-view .page-heading{align-items:start;flex-direction:column;gap:14px}#odds-view h1{font-size:24px}.odds-meta{font-size:12px;margin-bottom:18px}.odds-options{gap:15px}.odds-options label{font-size:13px;min-height:38px}.odds-pagination{gap:8px}.odds-pagination>span{font-size:11px}.odds-pagination .button{font-size:12px;min-height:44px;padding:8px 10px}}

.context-explanation{padding:12px;background:var(--surface);border:1px solid var(--border);border-radius:6px;margin:12px 0;font-size:12px;line-height:1.55;overflow-wrap:anywhere}.context-explanation p{margin:0 0 8px}.context-factors{list-style:none;padding:0;margin:0 0 8px}.context-factors li{padding:5px 0;border-bottom:1px solid var(--border)}.context-factors li:last-child{border-bottom:0}.context-factors small{display:block}.context-explanation small{color:var(--muted);font-size:11px}.factor-change{color:var(--accent);margin-left:4px}.context-news-label{color:var(--muted);font-size:11px}.context-factors a{font-size:12px}
.tactical-mini{padding:8px 0 12px;border-bottom:1px solid var(--border);margin-bottom:8px}.tactical-mini strong,.tactical-mini small,.tactical-table small{display:block}.tactical-mini small,.tactical-table small{font-size:11px;color:var(--muted);margin-top:3px}.tactical-report{margin:16px 0;padding-top:12px;border-top:1px solid var(--border);font-size:12px}.tactical-report h3{font-size:15px;margin-bottom:10px}.tactical-report .table-scroll{margin-bottom:12px}.tactical-table{width:100%;min-width:360px;font-size:12px}.tactical-table th,.tactical-table td{padding:9px 6px;text-align:left;vertical-align:top;border-bottom:1px solid var(--border)}.tactical-table thead th{font-weight:600}.tactical-table tbody th{color:var(--muted);font-weight:400}.tactical-report p{margin:8px 0;line-height:1.5}

/* Shared navigation and workspace */
:root {
  --page-width: 1480px;
  --page-gutter: clamp(16px, 3vw, 40px);
  --header-height: 66px;
}
html { scroll-padding-block-start: calc(var(--header-height) + 16px); }
main {
  width: 100%;
  max-width: var(--page-width);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}
.skip-link { left: var(--page-gutter); }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ground);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: var(--page-width);
  min-height: var(--header-height);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 36px);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.brand-name { font-size: 25px; font-weight: 900; font-style: italic; letter-spacing: -.04em; line-height: 1.1; }
.main-nav { display: flex; align-items: center; gap: 4px; min-width: 0; }
.nav-item {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
}
.nav-item:hover, .nav-item.selected { color: var(--text); background: var(--raised); }
.nav-item.selected { box-shadow: inset 0 -2px var(--accent); }
.top-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; min-width: 0; gap: 4px 12px; }
.top-meta { display: grid; gap: 2px; min-width: 0; font-size: 11px; color: var(--muted); text-align: right; }
.top-actions .button { white-space: nowrap; }
.page-heading { align-items: flex-end; }
.page-heading p { margin-top: 5px; font-size: 14px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.panel { border: 1px solid var(--border); }

.slate-wrapper { margin-bottom: var(--gap); }
.slate-wrapper h2 { margin-bottom: 10px; }
.slate {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(131px, 1fr);
  gap: 8px;
  overflow-x: auto;
  padding: 5px;
  margin: -5px;
  scrollbar-width: thin;
}
.game {
  display: grid;
  align-content: center;
  gap: 7px;
  min-height: 70px;
  padding: 9px 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-align: left;
}
.game:hover { background: var(--raised); border-color: var(--control); }
.game.selected { border-color: var(--accent); background: #28231d; }
.game-time { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; color: var(--muted); font-size: 11px; }
.game-teams, .game-teams > span { display: flex; align-items: center; gap: 4px; }
.game-teams { font-size: 13px; font-weight: 650; }
.game-teams img { width: 18px; height: 18px; object-fit: contain; }
.game-divider { color: var(--muted); font-weight: 400; }

.workspace { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: var(--gap); align-items: start; }
.player-column, .research-column { min-width: 0; }
.workspace > .evidence-panel { grid-column: 1 / -1; }
.workspace-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .72fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.workspace-toolbar select { width: 100%; font-size: 14px; }
.workspace-toolbar .search-wrap { max-width: none; min-width: 0; }
#watch-filter { white-space: nowrap; min-height: 40px; padding-inline: 7px; }
#watch-filter[aria-pressed=true] { background: var(--raised); border-radius: 5px; }
.players-table td.num { white-space: nowrap; }
.players-table td:nth-child(2) { font-weight: 650; }
.players-table tr.selected .player-text { color: var(--accent); }
.players-table .player-text { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.mobile-minutes { display: none; }
.back-to-players { display: none; }
#odds-offer-heading { margin-bottom: 16px; }
.odds-result-head { color: var(--muted); }
.document-view { max-width: 880px; }
.document-view .page-heading { padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.document-view .page-heading h1 { margin-bottom: 0; }
.toast { left: 50%; }

@media (max-width: 1120px) {
  .main-nav { gap: 0; }
  .nav-item { padding-inline: 8px; }
}
@media (max-width: 1150px) {
  .players-table { table-layout: fixed; }
  .players-table th:nth-child(n+2) { min-width: 0; padding-inline: 4px; }
  .players-table th:nth-child(2) { width: 70px; }
  .players-table th:nth-child(3), .players-table td:nth-child(3) { display: table-cell; width: 59px; }
  .players-table th:nth-child(4) { width: 46px; }
  .players-table th:last-child { width: 38px; }
}
@media (max-width: 1000px) {
  :root { --header-height: 60px; }
  .topbar { position: relative; }
  html { scroll-padding-block-start: 16px; }
  .main-nav {
    position: fixed;
    z-index: 20;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 4px max(4px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left));
    border-top: 1px solid var(--border);
    background: var(--ground);
  }
  .nav-item { min-height: 52px; flex-direction: column; gap: 3px; padding: 4px 0; font-size: 11px; }
  .nav-item.selected { box-shadow: inset 0 2px var(--accent); }
  main { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width: 820px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .back-to-players { display: inline-flex; align-self: flex-start; min-height: 40px; }
  .back-to-players + .detail-panel { scroll-margin-top: 42px; }
  .research-column { gap: 10px; }
}
@media (max-width: 600px) {
  .page-heading, #odds-view .page-heading { align-items: start; flex-direction: column; gap: 10px; }
  .page-actions .button, .page-heading > .button { min-height: 40px; font-size: 13px; padding-inline: 10px; }
  .top-actions .button { min-height: 40px; font-size: 12px; padding-inline: 9px; }
  .top-meta > span:first-child { display: none; }
  .topbar-inner { gap: 12px; }
  .top-actions { gap: 8px; }
}
@media (max-width: 480px) {
  .top-actions { row-gap: 3px; padding-block: 4px; }
  .workspace-toolbar { grid-template-columns: minmax(0, 1fr) auto; }
  .workspace-toolbar .search-wrap { grid-column: 1 / -1; }
  .game { min-height: 64px; }
}
@media (max-width: 520px) {
  .players-table th:nth-child(2) { width: 59px; }
  .players-table th:nth-child(3), .players-table td:nth-child(3) { width: 52px; }
  .players-table th:last-child { width: 36px; }
  .players-table td:last-child { padding-inline: 0; }
  .players-table .watch-button { margin-inline: auto; }
  .mobile-minutes { display: inline; }
}

/* Forecast history */
.history-overview { margin-bottom: 14px; }
.history-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 240px)); gap: 12px; }
.history-filters label { display: grid; gap: 5px; min-width: 0; color: var(--muted); font-size: 13px; }
.history-filters select { width: 100%; min-height: 44px; color: var(--text); font-size: 14px; }
.history-counts {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 16px;
}
.history-counts button {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 2px;
  min-height: 60px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-align: left;
}
.history-counts button:hover, .history-counts button[aria-pressed=true] { background: var(--raised); border-color: var(--control); }
.history-counts button[aria-pressed=true] { border-color: var(--accent); }
.history-counts strong { font-weight: 650; font-size: 22px; line-height: 1.15; }
.history-counts span { color: var(--muted); font-size: 12px; }
.history-list-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 14px; }
#history-message { color: var(--muted); font-size: 13px; }
.history-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(48px, .4fr)) minmax(64px, .52fr) minmax(84px, .62fr) 12px;
  align-items: center;
  gap: 12px;
  padding-inline: 8px;
}
.history-column-labels { color: var(--muted); font-size: 12px; padding-block: 6px 10px; }
.history-column-labels > :nth-child(n+2):nth-child(-n+6), .history-value { text-align: right; }

.history-game + .history-game { margin-top: 14px; }
.history-row { margin: 0; padding: 0; border: 0; border-bottom: 1px solid var(--rule); }
.history-row summary { list-style: none; padding-block: 9px; min-height: 54px; color: var(--text); }
.history-row summary::-webkit-details-marker { display: none; }
.history-row summary:hover, .history-row[open] summary { background: var(--ground); }
.history-player { min-width: 0; overflow-wrap: anywhere; }
.history-player strong { display: block; font-size: 14px; font-weight: 650; }
.history-player small { display: block; color: var(--muted); font-size: 12px; }
.history-value { font-size: 14px; }
.history-value small {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.history-actual { font-weight: 700; }
.history-delta { color: var(--muted); }
.history-odds > span, .history-chance > span { color: var(--chance); font-weight: 730; }
.history-status { justify-self: start; color: var(--muted); font-size: 12px; font-weight: 550; }
[data-outcome=hit] { color: var(--positive); }
[data-outcome=miss] { color: var(--negative); }
[data-outcome=push] { color: var(--accent); }
[data-outcome=void] { color: var(--accent); }
.history-chevron {
  width: 7px;
  height: 7px;
  border: solid var(--muted);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.history-row[open] .history-chevron { transform: rotate(225deg); }
.history-detail { max-width: 90ch; padding: 12px 8px 6px; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.history-detail p, #history-training p { margin-block: 0 8px; }
.history-detail .context-factors span, #history-training .context-factors span { display: block; color: var(--muted); }
.history-empty { color: var(--muted); padding-block: 12px; }
.history-pages { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; font-size: 13px; }
.history-pages .button { min-height: 40px; }
.history-training { margin-top: 14px; padding-block: 12px; }
.history-training summary { min-height: 40px; padding-block: 8px; color: var(--text); font-size: 15px; font-weight: 650; }
#history-training { padding-block: 4px; font-size: 14px; }

@media (max-width: 700px) {
  .history-counts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .history-counts button:first-child { grid-column: span 2; }
  .history-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) auto 10px; gap: 7px 9px; }
  .history-column-labels { display: none; }
  .history-player { grid-column: 1 / 4; }
  .history-player strong { font-size: 15px; }
  .history-status { grid-column: 4; grid-row: 1; justify-self: end; }
  .history-chevron { grid-column: 5; grid-row: 1; justify-self: center; }
  .history-value { grid-row: 2; text-align: left; }
  .history-odds, .history-chance { grid-row: 3; }
  .history-chance { grid-column: 2 / 4; }
  .history-value small {
    position: static;
    display: block;
    clip-path: none;
    width: auto;
    height: auto;
    color: var(--muted);
    font-size: 11px;
  }
  .history-row summary { padding-block: 10px; }
  .skeleton-row > :first-child { grid-column: 1 / 4; }
  .skeleton-row > :last-child { grid-column: 4 / -1; grid-row: 1; }
  .skeleton-row .skeleton-number { grid-row: 2; justify-self: start; }
  .skeleton-row .skeleton-history-market { grid-row: 3; }
  .skeleton-row { padding-block: 10px; }
}
@media (max-width: 440px) {
  .history-overview, .history-panel { padding: 12px; }
  .history-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .history-filters select { padding-left: 7px; padding-right: 22px; background-position: right 6px center; font-size: 12px; }
  .history-counts { gap: 4px; }
  .history-counts button { padding-inline: 5px; }
  .history-counts span { font-size: 11px; overflow-wrap: anywhere; max-width: 100%; }
  .history-counts strong { font-size: 19px; }
}

/* NBA game-night palette and court banners */
:root {
  --ground: #10121b;
  --surface: #171b27;
  --raised: #202636;
  --border: #32394c;
  --rule: #2a3040;
  --control: #505b72;
  --text: #f8f5f0;
  --muted: #bac2d4;
  --faint: #a3adbf;
  --accent: #ffab76;
  --chance: #a5e9ff;
  --court-orange: #ff9058;
  --court-ink: #24170f;
}

::selection { background: var(--accent); color: var(--court-ink); }
.wordmark { gap: 7px; }
.wordmark img { background: #34251f; border-radius: 8px; }
.nav-item.selected {
  background: var(--accent);
  color: var(--court-ink);
  font-weight: 750;
  box-shadow: none;
}
.panel { border-radius: 12px; }
.page-heading h1 { font-weight: 800; }
.game.selected { background: #392820; }
.game.selected .game-teams { color: var(--accent); }
.players-table td:nth-child(2) { color: var(--text); font-weight: 800; }

.page-heading.court-heading {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  align-items: flex-end;
  flex-wrap: wrap;
  border-radius: 14px;
  padding: 30px clamp(18px, 3vw, 42px);
  background: var(--court-orange);
  color: var(--court-ink);
}
.court-heading::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 50% 6% auto auto;
  width: 360px;
  aspect-ratio: 1;
  background: url('/mark.svg') center / contain no-repeat;
  filter: brightness(0);
  opacity: .17;
  transform: translateY(-50%) rotate(-16deg);
  pointer-events: none;
}
.page-heading.court-heading h1, #odds-view .court-heading h1 {
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 950;
  font-style: italic;
  letter-spacing: -.04em;
  line-height: 1;
  text-transform: uppercase;
}
.page-heading.court-heading p { margin-top: 10px; color: inherit; font-weight: 600; }
.court-heading .button {
  min-height: 44px;
  background: #ffaf87;
  border-color: #a15230;
  color: var(--court-ink);
  font-weight: 700;
}
.court-heading .button:hover:not(:disabled) { background: #ffcfb6; }
.court-heading .button:disabled { opacity: .62; }
.court-heading .primary-button { background: var(--court-ink); color: #fff5ee; border-color: var(--court-ink); }
.court-heading .primary-button:hover:not(:disabled) { background: #4b2e1e; }
.court-heading .button:focus-visible { outline-color: var(--court-ink); }

#picks-heading, #odds-offer-heading { font-size: clamp(22px, 2.5vw, 30px); font-weight: 850; }
.picks-panel { margin-bottom: 24px; }
.betting-controls {
  display: grid;
  align-items: end;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px;
  background: var(--ground);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.picks-controls { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) repeat(4, minmax(0, 1fr)); }
.offer-controls { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.2fr) minmax(0, .9fr); }
.betting-field { display: grid; gap: 6px; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 650; }
.betting-field select, .betting-field input[type=search] {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border-color: var(--control);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 550;
  color: var(--text);
}
.betting-field :is(select, input[type=search]):hover { border-color: var(--muted); }
.betting-field select:has(option:checked:not([value=all])):is(#picks-metric, #odds-market) { border-color: var(--accent); }
.betting-direction {
  display: grid;
  grid-template-columns: .75fr 1.15fr 1fr;
  gap: 3px;
  min-height: 44px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--control);
  border-radius: 7px;
}
.betting-direction label { position: relative; display: grid; min-width: 0; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.betting-direction label > span {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  padding-inline: 4px;
  border: 1px solid transparent;
  border-radius: 4px;
  white-space: nowrap;
}
.betting-direction b { font-size: 17px; font-weight: 750; line-height: 1; }
.betting-direction label:hover > span { color: var(--text); background: var(--raised); }
.betting-direction input:checked + span { color: var(--text); background: var(--raised); border-color: var(--control); }
.betting-direction input:checked:not([value=all]) + span { color: var(--court-ink); background: var(--accent); border-color: var(--accent); }
.betting-direction input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.picks-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 12px;
  align-content: start;
  align-items: start;
  max-height: min(1100px, 80vh);
  overflow-y: auto;
  padding: 4px;
  margin: -4px;
  scrollbar-gutter: stable;
}
.picks-empty { grid-column: 1 / -1; padding: 12px 0; color: var(--muted); font-size: 14px; }
.pick-card { background: var(--raised); border-radius: 12px; padding: 14px; min-width: 0; }
.pick-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.pick-top > div { min-width: 0; }
.pick-top small { color: var(--muted); font-size: 11px; }
.pick-top h3 { font-size: 20px; line-height: 1.12; font-weight: 850; letter-spacing: -.025em; }
.pick-top img { width: min(27%, 88px); height: auto; flex-shrink: 0; object-fit: contain; }
.pick-tip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; margin-top: 5px; font-size: 13px; font-weight: 650; }
.direction-tag {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding-inline: 7px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.direction-tag b:first-child { margin-inline-end: 4px; }
.direction-tag[data-side=over] { color: var(--chance); background: #1b384a; }
.direction-tag[data-side=under] { color: var(--accent); background: #3e2b24; }

.quote-metrics {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 10px;
  margin: 14px 0;
}
.quote-metrics > div { padding: 9px 10px 10px; border-radius: 8px; }
.quote-odds { background: #3e2b24; color: var(--accent); }
.quote-chance { background: #1b384a; color: var(--chance); }
.quote-metrics dt { font-size: 12px; font-weight: 750; }
.quote-metrics dd { margin: 3px 0 0; }
.quote-metrics strong { display: block; font-size: 34px; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.quote-metrics small { display: block; margin-top: 5px; font-size: 11px; line-height: 1.3; color: inherit; }
.pick-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.pick-stats strong { color: var(--text); }
.pick-reason { margin: 8px 0; font-size: 12px; color: var(--muted); }
.pick-card .button { width: 100%; min-height: 44px; font-weight: 700; }
.picks-panel .panel-footnote { margin-top: 16px; }
.market-result { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
.history-detail .quote-metrics { max-width: 400px; }

/* Full offer, grouped by fixture */
.panel.odds-panel { padding: 0; border: 0; background: transparent; }
.offer-explainer { max-width: 56ch; font-size: 12px; }
.offer-board { display: grid; gap: 24px; container-type: inline-size; }
.offer-empty { color: var(--muted); padding-block: 12px; }
.offer-match { border: 1px solid var(--border); border-radius: 12px; background: var(--ground); }


.offer-logos { display: flex; align-items: center; justify-content: center; gap: 3px; flex: none; }
.offer-logos:empty { display: none; }
.offer-logos img { width: 32px; height: 32px; object-fit: contain; }
.offer-list { list-style: none; margin: 0; padding: 0; }
.offer-outcome { display: grid; align-content: start; gap: 8px; min-width: 0; padding: 12px 14px 4px; }
.offer-outcome + .offer-outcome { border-block-start: 1px solid var(--border); }
.offer-selection { overflow-wrap: anywhere; }
.offer-selection small, .offer-line { font-size: 12px; color: var(--muted); }
.offer-selection h4 { margin: 2px 0 0; font-size: 15px; line-height: 1.35; }
.offer-line { display: inline-block; margin-top: 3px; }
.offer-selection .direction-tag { margin-block-start: 5px; }
.offer-price-row { display: flex; align-items: stretch; gap: 8px; }
.offer-art {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 56px;
  min-block-size: 58px;
}
.offer-art .offer-logos img { width: 26px; height: 26px; }
.offer-art .offer-logos img:only-child { width: 38px; height: 38px; }
.offer-art:has(.offer-portrait:not([hidden])) .offer-logos { visibility: hidden; }
.offer-portrait { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.offer-price-row .quote-metrics { flex: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-width: 0; margin: 0; }
.offer-price-row .quote-metrics > div { display: grid; align-content: end; gap: 4px; padding: 8px; }
.offer-price-row .quote-metrics dt { font-size: 12px; line-height: 1.25; overflow-wrap: anywhere; }
.offer-price-row .quote-metrics dd { margin: 0; }
.offer-price-row .quote-metrics strong { font-size: clamp(19px, 7cqi, 28px); }
.offer-actions { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 0 8px; }
.offer-actions button { scroll-margin-block-start: 88px; }
.offer-actions .quote-terms { min-height: 44px; color: var(--muted); font-size: 12px; text-decoration: underline; text-decoration-color: var(--control); text-underline-offset: 3px; }
.offer-actions .quote-terms:hover { color: var(--text); }
.offer-actions .button { min-height: 44px; }
.offer-suspended { padding-block: 12px; font-size: 12px; color: var(--muted); }


@media (max-width: 1000px) {
  html:has(#odds-view:not([hidden])) { scroll-padding-block-end: calc(64px + env(safe-area-inset-bottom)); }
}
@media (min-width: 1100px) {
  .pick-top { min-height: 90px; align-items: flex-start; }
  .pick-top img { align-self: center; }
}

@media (max-width: 1150px) {
  .picks-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .offer-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .page-heading.court-heading { align-items: flex-start; gap: 14px; padding-block: 19px; }
  .court-heading::after { width: 250px; right: -120px; }
  .page-heading.court-heading p { font-size: 12px; margin-top: 7px; }
  .court-heading .page-actions { gap: 6px; }
  .court-heading .button { font-size: 12px; padding-inline: 9px; }
  .odds-meta { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 5px 12px; }
  .picks-controls, .offer-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px; }
  .betting-field select { font-size: 13px; padding-inline: 8px 24px; background-position: right 7px center; }
  .betting-field input[type=search] { font-size: 13px; padding-inline: 8px; }
}

@media (max-width: 365px) {
  .betting-direction .direction-word { display: none; }
}

.profile-panel { padding-block: 12px 2px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.profile-panel h3 { font-size: 19px; }
.profile-panel h4 { margin: 22px 0 6px; font-size: 15px; }
.profile-panel .profile-intro, .profile-panel .profile-sample { color: var(--muted); font-size: 13px; }
.profile-panel .profile-facts { margin-top: 0; }
.profile-panel .profile-facts dt { font-weight: 600; }
.profile-panel .profile-facts dd { margin-top: 4px; }
.profile-panel details ul { margin-top: 6px; }
.profile-panel a { text-decoration: underline; text-underline-offset: 0.2em; }
.evidence-panel #defensive-evidence { font-size: 13px; line-height: 1.55; }
.evidence-panel #defensive-evidence h3 { margin: 16px 0 5px; font-size: 14px; }
.evidence-panel #defensive-evidence p { margin-bottom: 8px; }
.evidence-panel #defensive-evidence small { color: var(--muted); }

/* Shared Tipster interface */
:root {
  --ground: #0e0e0e;
  --surface: #171717;
  --raised: #222222;
  --border: #373737;
  --rule: #2d2d2d;
  --control: #70706b;
  --text: #fffdf4;
  --muted: #c3c2b9;
  --faint: #a5a49b;
  --accent: #ffe45c;
  --chance: #fff0af;
  --court-ink: #141309;
  --court-orange: var(--accent);
  --positive: #90e1b3;
  --negative: #ffa5aa;
  --page-width: 1920px;
  --page-gutter: clamp(16px, 2.2vw, 44px);
  --gap: clamp(14px, 1.5vw, 26px);
  --header-height: 62px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
body { background: var(--ground); }
main { padding-block-start: clamp(16px, 2.2vw, 34px); }
.wordmark img { background: var(--raised); border: 1px solid var(--border); border-radius: 5px; }
.brand-name { color: var(--text); }
.topbar .nav-item { border-radius: 4px; }
.topbar .nav-item.selected { color: var(--accent); background: var(--raised); box-shadow: inset 0 -2px var(--accent); }
.top-actions { display: flex; align-items: center; flex-wrap: nowrap; }
.top-meta { white-space: nowrap; }
.language-switch { display: inline-flex; border: 1px solid var(--control); border-radius: 5px; padding: 2px; flex: none; }
.language-switch button { min-inline-size: 34px; min-block-size: 34px; border-radius: 3px; color: var(--muted); font-size: 12px; font-weight: 780; }
.language-switch button[aria-pressed=true] { background: var(--accent); color: var(--court-ink); }
.language-switch button:focus-visible { outline-offset: 3px; }
.page-heading.court-heading {
  min-block-size: clamp(128px, 10vw, 180px);
  padding: clamp(18px, 2.3vw, 34px);
  border-radius: 8px;
  background: var(--accent);
  color: var(--court-ink);
}
.court-heading::after {
  inset: 50% clamp(-60px, 9vw, 175px) auto auto;
  width: clamp(255px, 36vw, 650px);
  opacity: .13;
  transform: translateY(-50%) rotate(-15deg) scale(1.75);
}
.court-heading::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--court-ink);
}
.page-heading.court-heading h1, #odds-view .court-heading h1 {
  font-size: clamp(38px, 5.1vw, 76px);
  letter-spacing: -.065em;
  text-transform: none;
}
.page-heading.court-heading p { margin-top: 7px; font-size: clamp(13px, 1vw, 16px); }
.court-heading .page-actions { margin-inline-start: auto; }
.court-heading .button { border-color: var(--court-ink); background: var(--accent); color: var(--court-ink); border-radius: 5px; }
.court-heading .button:hover:not(:disabled) { background: #fff0a2; }
.court-heading .primary-button { background: var(--court-ink); color: var(--accent); }
.court-heading .primary-button:hover:not(:disabled) { background: #32301f; color: var(--accent); }
.court-heading .primary-button span { margin-inline-start: 4px; }
.panel { border-radius: 8px; }
.panel-heading h2, .board-heading h2, #picks-heading, #odds-offer-heading, .history-list-heading h2 {
  margin: 0;
  font-size: clamp(19px, 1.65vw, 26px);
  font-weight: 830;
  letter-spacing: -.036em;
}
.slate-wrapper { margin-block-end: var(--gap); }
.slate-wrapper > h2 { font-size: 15px; font-weight: 750; }
.slate { gap: 8px; }
.game { background: var(--surface); border-radius: 6px; }
.game.selected { background: #2a2717; border-color: var(--accent); }
.game-time > span { color: var(--muted); }
.workspace { gap: var(--gap); grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); }
.research-column { gap: var(--gap); }
.workspace-toolbar.filter-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
.player-filter-row { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; justify-content: space-between; }
.player-filter-row .tabs { margin: 0; }
.players-table tr.selected { background: #272516; }
.players-table tr:hover { background: var(--raised); }
.players-table tr.selected:hover { background: #302b16; }
.players-table td, .players-table th { padding-block: 9px; }
.player-panel .table-scroll { max-height: clamp(335px, 47vh, 640px); }
.detail-panel { overflow: hidden; }
.identity { min-height: 76px; }
.identity .identity-photo { width: 84px; height: 69px; object-fit: contain; object-position: center bottom; border-radius: 5px; background: var(--raised); }
.identity h2 { font-size: clamp(19px, 2.1vw, 32px); font-weight: 850; letter-spacing: -.045em; }
.identity .availability.warning { color: var(--accent); }
.detail-tabs { gap: 4px 13px; }
.detail-tabs button { white-space: normal; text-align: start; }
.detail-metrics dd { color: var(--text); font-weight: 820; letter-spacing: -.05em; }
.detail-metrics dd small { letter-spacing: 0; }
.history-chart .bar { fill: #817344; }
.history-chart .last-bar { fill: var(--accent); }
.history-chart rect { transform-box: fill-box; transform-origin: center bottom; }
.court .source-node { fill: #2a2717; }

.filter-bar { padding: 10px; background: var(--ground); border: 1px solid var(--border); border-radius: 6px; }
.filter-bar input[type=search], .filter-bar select { min-height: 44px; border-color: var(--control); border-radius: 4px; background-color: var(--surface); }
.filter-bar input[type=search]::placeholder { color: var(--faint); }
.filter-bar .search-wrap input[type=search] { padding-inline-start: 36px; }
.filter-bar .search-wrap { width: 100%; }
.filter-bar .search-wrap svg { color: var(--muted); }
.betting-field { font-size: 12px; }
.betting-direction { border-radius: 4px; }
.betting-direction input:checked:not([value=all]) + span { background: var(--accent); }
.reset-filters { min-height: 40px; }
.offer-controls { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.odds-meta { margin-bottom: 16px; }
.panel.odds-panel { padding: clamp(14px, 1.5vw, 24px); border: 1px solid var(--border); background: var(--surface); }
.board-heading { justify-content: space-between; align-items: center; }
.board-heading h2 { margin-bottom: 0; }
.offer-filter-row { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin: -7px 0 14px; }
.odds-options { gap: 3px 16px; }
.odds-options label { min-height: 42px; }
.offer-kind { grid-auto-flow: column; align-items: center; }
.offer-kind select { max-width: 190px; }
.offer-empty .button { margin-top: 10px; }
.picks-panel { margin-bottom: var(--gap); }
.picks-list { align-items: stretch; }
.pick-card { display: flex; flex-direction: column; background: var(--ground); border: 1px solid var(--border); border-radius: 6px; }
.pick-card .button { margin-block-start: auto; }
.quote-odds, .direction-tag[data-side=under] { background: #332d17; color: var(--accent); }
.quote-chance, .direction-tag[data-side=over] { background: var(--raised); color: var(--chance); }
.quote-metrics > div { border-radius: 5px; }
.offer-board { gap: 16px; }
.offer-match, .history-game { border: 1px solid var(--border); border-radius: 6px; background: var(--ground); }
.match-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 22px;
  padding: 10px 14px;
  border-radius: 5px 5px 0 0;
  border-bottom: 1px solid var(--border);
  border-inline-start: 3px solid var(--accent);
  background: var(--raised);
}
.offer-match > .match-heading {
  position: sticky;
  z-index: 2;
  inset-block-start: var(--header-height);
}
.match-title, .match-team, .match-time { display: flex; align-items: center; gap: 8px; min-width: 0; }
.match-title { font-size: clamp(13px, 1.16vw, 17px); font-weight: 780; overflow-wrap: anywhere; }
.match-team img { width: 30px; height: 30px; object-fit: contain; flex: none; }
.match-time, .match-divider { color: var(--muted); font-size: 12px; }
.match-time time { white-space: nowrap; }
.match-time span::before { content: '·'; margin-inline-end: 8px; }
.offer-outcome { padding: 12px 12px 4px; }
.offer-outcome, .offer-outcome + .offer-outcome { border: 0; border-block-start: 1px solid var(--border); }
.offer-list { display: grid; grid-template-columns: repeat(var(--offer-columns, 1), minmax(0, 1fr)); }
.offer-list .offer-outcome { border-inline-end: 1px solid var(--border); }
.offer-list .offer-outcome:last-child { border-inline-end: 0; }
@container (min-width: 630px) { .offer-list { --offer-columns: 2; } .offer-list .offer-outcome:nth-child(2n) { border-inline-end: 0; } }
@container (min-width: 950px) { .offer-list { --offer-columns: 3; } .offer-list .offer-outcome:nth-child(n) { border-inline-end: 1px solid var(--border); } .offer-list .offer-outcome:nth-child(3n), .offer-list .offer-outcome:last-child { border-inline-end: 0; } }
@container (min-width: 1350px) { .offer-list { --offer-columns: 4; } .offer-list .offer-outcome:nth-child(n) { border-inline-end: 1px solid var(--border); } .offer-list .offer-outcome:nth-child(4n), .offer-list .offer-outcome:last-child { border-inline-end: 0; } }
.history-overview { margin-bottom: var(--gap); }
.history-filters { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.history-counts { gap: 0; border: 1px solid var(--border); border-radius: 6px; }
.history-counts button { padding: 10px 12px; border: 1px solid transparent; border-radius: 0; background: var(--ground); }
.history-counts button + button { border-inline-start-color: var(--rule); }
.history-counts button[aria-pressed=true] { border: 1px solid var(--accent); background: #2a2717; }
.history-counts strong { font-size: clamp(20px, 2vw, 34px); font-weight: 850; }
.history-row:last-child { border-bottom: 0; }
.history-grid { padding-inline: 14px; }
.history-status { font-weight: 730; }
.history-status:is([data-outcome=hit], [data-outcome=miss], [data-outcome=void]) { border-radius: 4px; padding: 3px 7px; }
.history-status[data-outcome=hit] { background: #17291f; }
.history-status[data-outcome=miss] { background: #321d20; }
.history-status[data-outcome=void] { background: #352c13; }
.notice.error { color: var(--chance); background: #2b2616; border-color: #897334; }

.skeleton { display: block; min-width: 0; height: 12px; max-width: 100%; border-radius: 4px; background: #37362f; }
.skeleton-short { width: 43px; }
.skeleton-medium { width: 110px; }
.skeleton-wide { width: 185px; }
.skeleton-number { width: 65px; height: 24px; }
.skeleton-avatar { width: 36px; height: 36px; flex: none; }
.skeleton-chart { width: 100%; height: 145px; }
.skeleton-game { display: grid; gap: 8px; align-content: center; }
.skeleton-person, .skeleton-figures { display: flex; align-items: center; gap: 10px; }
.skeleton-person .skeleton-wide { width: min(70%, 120px); }
.skeleton-identity .skeleton-avatar { width: 74px; height: 66px; }
.skeleton-identity .skeleton-medium { margin-top: 10px; }
.skeleton-stack, .skeleton-detail, .skeleton-card { display: grid; gap: 12px; padding-block: 16px; }
.skeleton-card { display: grid; min-height: 126px; align-content: center; }
.skeleton-row { min-height: 55px; border-bottom: 1px solid var(--rule); }
.skeleton-row .skeleton-number { justify-self: end; }
.document-view > .skeleton-stack { margin-block: 26px; min-height: 260px; align-content: space-around; }
@media (prefers-reduced-motion: no-preference) {
  .skeleton { animation: skeleton-pulse 1.35s ease-in-out 3; }
  .history-chevron { transition: transform 180ms var(--ease-out); }
  .game, .court-heading .button { transition: transform 150ms var(--ease-out), background-color 120ms ease; }
  .game:active, .court-heading .button:active { transform: scale(.98); }
}
@keyframes skeleton-pulse { 50% { opacity: .48; } }

@media (min-width: 1280px) {
  .workspace { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.06fr) minmax(0, .65fr); }
  .workspace > .evidence-panel { grid-column: auto; }
  #defensive-evidence {
    max-block-size: clamp(24rem, 56dvh, 34rem);
    overflow-y: auto;
    padding: 2px;
  }
}
@media (min-width: 821px) {
  #detail-content:not([aria-labelledby="tab-performance"]) {
    max-block-size: clamp(24rem, 56dvh, 34rem);
    overflow-y: auto;
    scrollbar-gutter: stable;
    padding: 2px;
  }
}
@media (max-width: 1000px) {
  .topbar .nav-item.selected { box-shadow: inset 0 2px var(--accent); }
  .language-switch button { min-block-size: 44px; }
  .offer-match > .match-heading { inset-block-start: 0; }
  .offer-controls, .history-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .player-panel .table-scroll { max-height: 340px; }
}
@media (max-width: 650px) {
  .top-meta { display: none; }
  .page-heading.court-heading { min-block-size: 0; }
  .court-heading .page-actions { margin-inline-start: 0; }
  .court-heading::after { width: 285px; right: -144px; }
  .court-heading .button { min-height: 44px; }
  .offer-controls, .history-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-counts button { padding: 6px; }
  .match-heading { padding: 8px; gap: 4px; }
  .match-title, .match-team { gap: 5px; }
  .match-team img { width: 23px; height: 23px; }
  .match-time { margin-inline-start: 28px; }
  .skeleton-row .skeleton-number { height: 16px; }
}
@media (max-width: 520px) {
  .identity .identity-photo { width: 59px; height: 55px; }
  .history-grid { padding-inline: 8px; }
  .history-status:is([data-outcome=hit], [data-outcome=miss], [data-outcome=void]) { padding-inline: 4px; }
  .detail-tabs { gap: 0 9px; }
  .detail-tabs button { font-size: 12px; }
}

html:has(.quote-drawer[open]) { overflow: hidden; scrollbar-gutter: stable; }
.quote-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 36rem);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-inline-start: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  overflow: hidden;
}
.quote-drawer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.quote-drawer::backdrop { background: rgb(0 0 0 / .64); }
.quote-drawer-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(16px, 4vw, 26px);
  padding-block-start: max(16px, env(safe-area-inset-top));
  border-block-end: 1px solid var(--border);
}
.quote-drawer-header h2 { font-size: clamp(19px, 3vw, 24px); }
.quote-drawer-header p { margin-block-start: 4px; color: var(--muted); font-size: 13px; }
#quote-drawer-close {
  display: grid;
  flex: none;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  padding: 0;
}
.quote-drawer-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px clamp(16px, 4vw, 26px);
  padding-block-end: max(24px, env(safe-area-inset-bottom));
  overflow-wrap: anywhere;
}
#quote-selection h3 { font-size: clamp(21px, 4vw, 28px); line-height: 1.15; font-weight: 800; }
#quote-selection p, #quote-model { margin-block-start: 5px; color: var(--muted); font-size: 13px; }
#quote-model { margin-block: 16px 8px; }
.quote-drawer .market-inputs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quote-drawer .market-inputs label:last-child { grid-column: auto; }
.quote-drawer .market-inputs :is(input, select) { min-width: 0; }
#quote-evidence, #quote-source { margin-block-start: 20px; }
#quote-evidence:empty { display: none; }
#quote-evidence h3, #quote-source h3 { margin-block-end: 8px; font-size: 16px; }
#quote-evidence .context-explanation { border: 0; padding: 0; font-size: 13px; }
#quote-source, #quote-evidence { border-block-start: 1px solid var(--border); padding-block-start: 16px; }
#quote-evidence > details:first-child { margin: 0; padding: 0; border: 0; }
#quote-source { font-size: 13px; line-height: 1.5; }
#quote-source p + p, #quote-source a { margin-block-start: 7px; }
#quote-source a { display: inline-block; text-decoration: underline; }
@media (max-width: 576px) {
  .quote-drawer { border-inline-start: 0; }
}
@media (max-width: 410px) {
  .quote-drawer .market-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-drawer .market-inputs label:last-child { grid-column: 1 / -1; }
}
@media (max-width: 365px) {
  .topbar-inner { gap: 6px; }
  .brand-name { font-size: 21px; }
  .wordmark img { width: 27px; height: 27px; }
  .top-actions { gap: 5px; }
}
