/* SLIPTERRA design system v3. Spec: docs/ui-refinement.md, section 4.
   Linked after a page's own <style>. Content sits on the canvas; only the decision column, menus and dialogs get a surface.
   Orange = primary action + current selection. Green/red = cleared/missed, always next to a number. */
:root {
  --canvas: #121A18; --surface: #18211F; --surface-2: #1E2926; --well: #0F1614;
  --hair: #26312D; --hair-2: #34413C;
  --ink-1: #F4F0E7; --ink-2: #A9B0A9; --ink-3: #7A857F;
  --act: #FF693B; --act-hover: #FF7F57; --act-ink: #1B0F0A; --act-tint: rgba(255,105,59,.12);
  --pos: #3DBE84; --neg: #E5484D; --neu: #8C958F; --series2: #9CC9F0;
  --f-ui: Barlow, -apple-system, system-ui, sans-serif;
  --f-disp: "Barlow Condensed", Barlow, -apple-system, system-ui, sans-serif;
  --r-data: 2px; --r-ctl: 6px; --r-surf: 12px;
  --bar: 56px; --wrap: 1360px; --gut: 32px;
  /* keep older page code readable while it migrates */
  --bg: var(--canvas); --panel: var(--surface); --raise: var(--surface-2); --line: var(--hair); --line-hi: var(--hair-2);
  --text: var(--ink-1); --dim: var(--ink-2); --faint: var(--ink-3); --orange: var(--act); --orange-ink: var(--act-ink);
  --hit: var(--pos); --miss: var(--neg); --orange-soft: var(--act-tint); --orange-line: rgba(255,105,59,.5);
}
html { background: var(--canvas); }
body { margin: 0; background: var(--canvas); color: var(--ink-1); font: 400 14px/1.45 var(--f-ui); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--act); outline-offset: 2px; }
button, select, summary, [role=tab] { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- app bar ---------- */
header.sb { position: sticky; top: 0; z-index: 40; background: var(--canvas); border-bottom: 1px solid var(--hair); backdrop-filter: none; }
.sb .appbar { display: flex; align-items: center; gap: 24px; height: var(--bar); max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sb-logo { flex: none; display: block; } .sb-logo img { height: 20px; display: block; }
.sb-sports, .sb-tools { display: flex; align-self: stretch; }
.sb-sports a, .sb-tools a { display: flex; align-items: center; padding: 0 10px; color: var(--ink-2); text-decoration: none; font: 600 14px/1 var(--f-ui); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.sb-sports a:hover, .sb-tools a:hover { color: var(--ink-1); }
.sb-sports a[aria-current] { color: var(--ink-1); border-bottom-color: var(--act); }
.sb .find { position: relative; flex: 1; max-width: 380px; margin: 0 0 0 auto; width: auto; }
.sb .find input { width: 100%; height: 36px; box-sizing: border-box; padding: 0 12px 0 34px; border-radius: var(--r-ctl); border: 1px solid var(--hair); background: var(--well); color: var(--ink-1); font: 400 14px var(--f-ui);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237A857F' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3.5 3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 11px 50%; }
.sb .find input:focus { outline: none; border-color: var(--hair-2); }
.sb .results { border-radius: var(--r-ctl); background: var(--surface); border: 1px solid var(--hair-2); box-shadow: 0 12px 32px rgba(0,0,0,.4); }
.sb-tools { gap: 0; }
.sb .mb { margin-left: 0 !important; }
.sb-menu { display: none; }
.sb-sheet { display: none; }

/* ---------- buttons + controls (each exists once) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; box-sizing: border-box; border-radius: var(--r-ctl);
       border: 1px solid var(--hair-2); background: transparent; color: var(--ink-1); font: 600 14px/1 var(--f-ui); text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { border-color: var(--ink-3); }
.btn-primary { background: var(--act); border-color: var(--act); color: var(--act-ink); }
.btn-primary:hover { background: var(--act-hover); border-color: var(--act-hover); }
.btn-quiet { border-color: transparent; color: var(--ink-2); padding: 0 8px; } .btn-quiet:hover { color: var(--ink-1); border-color: transparent; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: default; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.lab .seg { display: flex; padding: 2px; gap: 2px; background: var(--well); border: 1px solid var(--hair); border-radius: var(--r-ctl); overflow: visible; }
.lab .seg button { flex: 1; height: 30px; padding: 0 10px; border: 0; border-radius: 4px; background: transparent; color: var(--ink-2); font: 600 13px/1 var(--f-ui); white-space: nowrap; }
.lab .seg button:hover { color: var(--ink-1); }
.lab .seg button.on { background: var(--surface-2); color: var(--ink-1); box-shadow: inset 0 0 0 1px var(--hair-2); }
.lab select, .lab input[type=number] { height: 34px; box-sizing: border-box; padding: 0 10px; border-radius: var(--r-ctl); border: 1px solid var(--hair-2); background: var(--well); color: var(--ink-1); font: 500 14px var(--f-ui); }
.lab select { appearance: none; -webkit-appearance: none; padding-right: 30px;
  background: var(--well) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23A9B0A9' stroke-width='1.6'%3E%3Cpath d='m1 1 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 11px center; }
.lab input[type=checkbox] { accent-color: var(--act); width: 16px; height: 16px; }

/* tabs: markets + analysis sections */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--hair); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role=tab] { flex: none; position: relative; border: 0; background: transparent; padding: 12px 12px 13px; color: var(--ink-2); font: 600 14px/1 var(--f-ui); text-align: left; border-radius: 0; }
.tabs [role=tab]:hover { color: var(--ink-1); }
.tabs [role=tab][aria-selected=true] { color: var(--ink-1); }
.tabs [role=tab][aria-selected=true]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--act); }

/* ---------- Lab page ---------- */
main.labmain { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut) 64px; box-sizing: border-box; }
.lab { display: block; }

/* player header: headshot on a flat team tint, identity, game facts in their own slots */
.ph { position: relative; display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; align-items: end; gap: 0 32px; margin: 0 calc(-1 * var(--gut)); padding: 28px var(--gut) 0; overflow: hidden; }
.ph::before { content: ""; position: absolute; inset: 0; background: var(--team, #2a3531); opacity: .16; }
.ph::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hair); }
.ph > * { position: relative; }
/* team logo watermark behind the hero (all Labs): big, tilted, faint; clipped to the hero band */
.ph > .ph-mark { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ph-mark img { position: absolute; right: 22%; top: 50%; height: 330px; width: auto; transform: translateY(-48%) rotate(-8deg); opacity: .10; filter: saturate(.85); }
@media (max-width: 760px) { .ph-mark img { right: -14%; height: 230px; opacity: .08; } }
.ph-mark.flag img { height: 240px; border-radius: 6px; opacity: .08; }      /* UFC: the fighter's flag */
.ph-img { align-self: end; height: 176px; display: flex; align-items: flex-end; justify-content: center; }
.ph-img img.face { height: 176px; width: auto; max-width: 240px; object-fit: contain; object-position: bottom; display: block; }
.ph-id { padding-bottom: 28px; min-width: 0; }
.ph-team { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--ink-2); font: 500 14px/1.2 var(--f-ui); }
.ph-team img { width: 22px; height: 22px; object-fit: contain; }
.ph-team span + span::before { content: ""; display: inline-block; width: 1px; height: 12px; background: var(--hair-2); margin: 0 10px 0 2px; vertical-align: -1px; }
.ph h1 { margin: 0; font: 700 64px/.92 var(--f-disp); letter-spacing: -.01em; color: var(--ink-1); text-wrap: balance; }
.ph-game { display: grid; grid-template-columns: repeat(3, auto); gap: 14px 32px; margin: 0; padding-bottom: 30px; align-self: end; }
.ph-game > div { min-width: 0; }
.ph-game dt { color: var(--ink-3); font: 500 12px/1 var(--f-ui); margin-bottom: 6px; }
.ph-game dd { margin: 0; font: 600 15px/1.25 var(--f-ui); color: var(--ink-1); white-space: nowrap; }
.ph-game dd small { display: block; color: var(--ink-2); font-weight: 400; font-size: 13px; margin-top: 2px; }
.ph-game dd img { width: 18px; height: 18px; object-fit: contain; vertical-align: -4px; margin-right: 6px; }
.ph-game a { color: var(--ink-2); font-size: 13px; text-decoration: underline; text-decoration-color: var(--hair-2); text-underline-offset: 3px; }
.ph-game a:hover { color: var(--ink-1); }

/* market selector: tabs carrying the L10 average */
.mk { margin: 0 0 0; }
.mk [role=tab] { padding: 14px 14px 13px; }
.mk [role=tab] b { display: block; font: 600 14px/1.1 var(--f-ui); }
.mk [role=tab] small { display: block; margin-top: 4px; color: var(--ink-3); font: 500 12px/1 var(--f-ui); }
.mk [role=tab][aria-selected=true] small { color: var(--ink-2); }
.mk [role=tab]::after { left: 14px !important; right: 14px !important; }
.mk-more { position: relative; flex: none; align-self: center; margin-left: auto; }
.mk-more > summary { list-style: none; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--r-ctl); color: var(--ink-2); font: 600 13px/1 var(--f-ui); }
.mk-more > summary::-webkit-details-marker { display: none; }
.mk-more > summary:hover, .mk-more[open] > summary { color: var(--ink-1); background: var(--surface-2); }
.mk-more > summary b { color: var(--ink-1); }
.mk-wrap { display: flex; align-items: stretch; border-bottom: 1px solid var(--hair); }
.mk-wrap .tabs { border-bottom: 0; flex: 1; min-width: 0; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }

/* menus / popovers (filter buttons, more markets) */
.menu { position: absolute; top: calc(100% + 6px); z-index: 30; min-width: 280px; max-width: min(360px, calc(100vw - 32px)); box-sizing: border-box;
        background: var(--surface); border: 1px solid var(--hair-2); border-radius: var(--r-surf); box-shadow: 0 16px 40px rgba(0,0,0,.45); padding: 16px; }
.menu-r { right: 0; } .menu-l { left: 0; }
.menu h4 { margin: 0 0 8px; color: var(--ink-3); font: 500 12px/1 var(--f-ui); }
.menu .mlist { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.menu .mlist button { text-align: left; height: 32px; padding: 0 10px; border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--ink-2); font: 500 13px/1 var(--f-ui); }
.menu .mlist button:hover { background: var(--surface-2); color: var(--ink-1); }
.menu .mlist button.on { color: var(--ink-1); background: var(--surface-2); box-shadow: inset 2px 0 0 var(--act); }

/* body: research column + decision column */
.lab-body { display: grid; grid-template-columns: minmax(0, 1fr) 344px; gap: 48px; align-items: start; padding-top: 28px; }
.lab-main { min-width: 0; }

/* the answer */
.ans { margin: 0 0 20px; }
.ans-q { margin: 0 0 6px; color: var(--ink-2); font: 500 14px/1.3 var(--f-ui); }
.ans h2 { margin: 0; font: 600 28px/1.15 var(--f-ui); letter-spacing: -.01em; color: var(--ink-1); }
.ans h2 em { font-style: normal; color: var(--ink-1); }
.ans-sub { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 10px 0 0; color: var(--ink-2); font-size: 14px; }
.ans-sub b { color: var(--ink-1); font-weight: 600; }

/* filter bar: dropdown buttons above the chart */
.fbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 20px; }
.fdd { position: relative; }
.fdd > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 12px; border: 1px solid var(--hair-2); border-radius: var(--r-ctl);
                 color: var(--ink-1); font: 500 13px/1 var(--f-ui); white-space: nowrap; transition: border-color .15s, background .15s; }
.fdd > summary::-webkit-details-marker { display: none; }
.fdd > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: translateY(-2px) rotate(45deg); margin-left: 2px; }
.fdd > summary:hover { border-color: var(--ink-3); }
.fdd[open] > summary { background: var(--surface-2); }
.fdd > summary .fv { color: var(--ink-2); max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.fdd.on > summary { border-color: var(--ink-2); background: var(--surface-2); }
.fdd.on > summary .fv { color: var(--ink-1); }
.fdd .menu { width: 320px; }
.fdd .f { margin: 0 0 14px; } .fdd .f:last-child { margin-bottom: 0; }
.fdd .fl, .fdd .f > label:not(.tog) { display: block; margin: 0 0 6px; color: var(--ink-3); font: 500 12px/1.2 var(--f-ui); }
.fdd .fl small, .fdd label small { color: var(--ink-3); font-weight: 400; }
.fdd label.sub { display: block; margin: 10px 0 6px; color: var(--ink-3); font-size: 12px; }
.fdd .f select, .fdd .f input[type=number] { width: 100%; }
.fdd .row2 { display: flex; gap: 8px; } .fdd .row2 > * { flex: 1; min-width: 0; }
.fdd .tog { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-1); cursor: pointer; }
.fbar-n { margin-left: 4px; color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.fbar .btn-quiet { height: 32px; font-size: 13px; }

/* chart */
.chart-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.chart-h h3 { margin: 0; font: 600 14px/1.2 var(--f-ui); color: var(--ink-1); }
.chart-h h3 span { color: var(--ink-3); font-weight: 500; margin-left: 8px; }
.lab .ovpick { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font: 500 13px var(--f-ui); }
.lab .ovpick select { height: 32px; font-size: 13px; }
.lab .chartWrap { position: relative; overflow-x: auto; overflow-y: hidden; padding: 20px 0 4px; scrollbar-width: thin; }
.lab .chart { position: relative; display: flex; align-items: flex-start; gap: 6px; padding: 0 44px 0 36px; width: auto; min-width: 100%; box-sizing: border-box; }
.lab .chart .grid-y { position: absolute; left: 36px; right: 44px; top: 0; height: 260px; pointer-events: none; }
.lab .chart .grid-y i { position: absolute; left: 0; right: 0; border-top: 1px solid rgba(244,240,231,.06); }
.lab .chart .grid-y i span { position: absolute; left: -36px; width: 28px; top: -8px; text-align: right; color: var(--ink-3); font: 500 11px/16px var(--f-ui); }
.lab .chart .grid-y i.base { border-top-color: var(--hair-2); }
.lab .chart .col { flex: 1 1 0; min-width: 20px; max-width: 56px; display: flex; flex-direction: column; position: relative; z-index: 1; }
.lab .bar { position: relative; height: 260px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; background: none; box-shadow: none; }
.lab .bar .b { width: 100%; min-height: 2px; border-radius: var(--r-data) var(--r-data) 0 0; display: block; }
.lab .bar .b span { display: none; }
.lab .bar .v { display: block !important; margin: 0 0 4px; color: var(--ink-1); font: 600 12px/1 var(--f-ui); }
.lab .bar.hit .b { background: var(--pos); }
.lab .bar.miss .b { background: var(--neg); opacity: .72; }
.lab .bar.miss .v { color: var(--ink-2); }
.lab .bar.push .b { background: var(--neu); }
.lab .bar .ln { display: none; }
.lab .col:hover .b { filter: brightness(1.12); }
.lab .chart .lineMark { position: absolute; left: 36px; right: 44px; width: auto; height: 0; border-top: 1.5px dashed var(--act); z-index: 3; pointer-events: none; }
.lab .chart .lineMark span { position: absolute; right: -44px; left: auto; top: -10px; width: 40px; padding: 0; background: none; color: var(--act); font: 700 13px/20px var(--f-ui); text-align: left; border-radius: 0; }
.lab .ax { padding-top: 8px; text-align: center; color: var(--ink-3); font: 500 11px/1.3 var(--f-ui); white-space: nowrap; }
.lab .ax img { width: 18px; height: 18px; object-fit: contain; display: block; margin: 0 auto 3px; }
.lab .ax b { display: block; color: var(--ink-2); font-weight: 600; }
.lab .ax.new { color: var(--ink-3); } .lab .ax.new::before { content: ""; position: absolute; left: -4px; top: 0; bottom: 0; border-left: 1px dashed var(--hair-2); }
.lab .chart.dense .ax { font-size: 10px; } .lab .chart.dense .ax img { width: 14px; height: 14px; } .lab .chart.dense .bar .v { font-size: 10.5px; }
.lab .chart svg.ovl { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 4; overflow: visible; }
.lab .ovline { fill: none; stroke: var(--series2); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; opacity: .9; }
.lab .ovdot { fill: var(--canvas); stroke: var(--series2); stroke-width: 1.5; }
.lab .ovtxt { display: none; }
.lab .ovlegend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; min-height: 18px; color: var(--ink-2); font-size: 12px; }
.lab .ovlegend span { color: var(--ink-3); } .lab .ovlegend .ovkey { display: inline-block; width: 16px; height: 2px; background: var(--series2); border-radius: 1px; }
.lab .chartWrap.more-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.lab .chartWrap.more-l.more-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.lab .chartWrap.more-l:not(.more-r) { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px); mask-image: linear-gradient(90deg, transparent, #000 40px); }

/* analysis sections (tabs below the chart) */
.sect { margin-top: 40px; }
.sect-body { padding-top: 20px; }
.sect-note { margin: 14px 0 0; color: var(--ink-3); font-size: 12px; line-height: 1.5; max-width: 72ch; }

/* tables */
.lab .tableWrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lab table { width: 100%; border-collapse: collapse; font: 400 13px/1 var(--f-ui); font-variant-numeric: tabular-nums; }
.lab th { position: sticky; top: 0; z-index: 1; padding: 0 10px 10px; text-align: right; color: var(--ink-3); font: 500 12px/1 var(--f-ui); background: var(--canvas); border-bottom: 1px solid var(--hair-2); white-space: nowrap; }
.lab td { height: 38px; padding: 0 10px; text-align: right; border-bottom: 1px solid var(--hair); white-space: nowrap; color: var(--ink-1); }
.lab th:first-child, .lab td:first-child { padding-left: 0; }
.lab th.l, .lab td.l { text-align: left; }
.lab tbody tr:hover td { background: rgba(244,240,231,.025); }
.lab td.sel, .lab th.sel { background: rgba(244,240,231,.04); font-weight: 600; }
.lab td.sel.hit { color: var(--pos); } .lab td.sel.miss { color: var(--neg); }
.lab tr.season td { height: auto; padding: 22px 0 8px; color: var(--ink-2); font: 600 12px/1 var(--f-ui); background: none !important; border-bottom-color: var(--hair-2); text-align: left; }
.lab tr.avgrow td { color: var(--ink-2); font-weight: 600; background: rgba(244,240,231,.02); }
.lab td.opp img { width: 18px; height: 18px; object-fit: contain; vertical-align: -5px; margin-right: 8px; }
.lab .w { color: var(--pos); } .lab .l-res { color: var(--neg); }
.lab td .rk { margin-left: 6px; color: var(--ink-3); font-size: 12px; }
.lab td .rk.soft { color: var(--pos); } .lab td .rk.tough { color: var(--neg); }
.lab tr.me td { font-weight: 600; }
.lab tr.me td:first-child { box-shadow: inset 2px 0 0 var(--act); padding-left: 10px; }
.lab tr.low td { color: var(--ink-3); }
.lab .up { color: var(--pos); font-weight: 600; } .lab .dn { color: var(--neg); font-weight: 600; }

/* usage list */
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 32px; margin: 0; }
.kv > div { padding: 12px 0; border-bottom: 1px solid var(--hair); }
.kv button { display: block; width: 100%; text-align: left; padding: 0; border: 0; background: none; color: inherit; font: inherit; }
.kv dt { color: var(--ink-3); font: 500 12px/1.2 var(--f-ui); }
.kv dd { margin: 4px 0 0; font: 600 20px/1.1 var(--f-ui); color: var(--ink-1); }
.kv button:hover dd { color: var(--act); }

/* matchup facts above a table */
.facts { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0 0 20px; }
.facts div { min-width: 0; } .facts dt { color: var(--ink-3); font-size: 12px; } .facts dd { margin: 4px 0 0; font-weight: 600; }

/* ---------- decision column ---------- */
.tk { position: sticky; top: calc(var(--bar) + 20px); background: var(--surface); border-radius: var(--r-surf); padding: 20px; box-sizing: border-box; }
.tk-row { display: flex; gap: 8px; align-items: center; }
.tk-mk { width: 100%; margin: 0 0 12px; }
.tk .ou { flex: none; display: flex; padding: 2px; gap: 2px; background: var(--well); border: 1px solid var(--hair); border-radius: var(--r-ctl); overflow: visible; }
.tk .ou button { height: 36px; padding: 0 14px; border: 0; border-radius: 4px; background: transparent; color: var(--ink-2); font: 600 14px/1 var(--f-ui); }
.tk .ou button:hover { color: var(--ink-1); }
.tk .ou button.on { background: var(--act); color: var(--act-ink); }
.tk .stepper { flex: 1; display: flex; align-items: center; height: 42px; border: 1px solid var(--hair-2); border-radius: var(--r-ctl); background: var(--well); overflow: hidden; }
.tk .stepper button { width: 38px; height: 100%; border: 0; border-radius: 0; background: transparent; color: var(--ink-2); font: 400 20px/1 var(--f-ui); padding: 0; }
.tk .stepper button:hover { color: var(--ink-1); background: var(--surface-2); }
.tk .stepper input { flex: 1; width: 0; height: 100%; border: 0; border-radius: 0; background: transparent; padding: 0; text-align: center; color: var(--ink-1); font: 700 26px/1 var(--f-disp); -moz-appearance: textfield; }
.tk .stepper input::-webkit-outer-spin-button, .tk .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.tk .stepper input:focus { outline: none; background: var(--surface-2); }
.tk-hr { display: flex; align-items: flex-end; gap: 12px; margin: 20px 0 4px; }
.tk-hr b { font: 700 52px/.85 var(--f-disp); letter-spacing: -.01em; }
.tk-hr span { color: var(--ink-2); font-size: 13px; line-height: 1.35; padding-bottom: 2px; }
.tk .good { color: var(--pos); } .tk .bad { color: var(--neg); } .tk .na { color: var(--ink-3); }
.tk-samples { margin: 16px 0 0; border-top: 1px solid var(--hair); }
.tk-samples button { display: grid; grid-template-columns: 1fr auto 44px; align-items: center; gap: 12px; width: 100%; height: 36px; padding: 0 10px 0 12px; margin: 0; border: 0; border-bottom: 1px solid var(--hair);
                     border-radius: 0; background: transparent; color: var(--ink-2); font: 500 13px/1 var(--f-ui); text-align: left; position: relative; }
.tk-samples button:hover { background: var(--surface-2); color: var(--ink-1); }
.tk-samples button.on { color: var(--ink-1); background: var(--surface-2); }
.tk-samples button.on::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; background: var(--act); }
.tk-samples .frac { color: var(--ink-3); font-size: 12px; }
.tk-samples .pct { text-align: right; font-weight: 600; color: var(--ink-1); }
.tk-samples .pct.good { color: var(--pos); } .tk-samples .pct.bad { color: var(--neg); } .tk-samples .pct.na { color: var(--ink-3); }
.tk-h { margin: 22px 0 8px; display: flex; justify-content: space-between; align-items: baseline; color: var(--ink-3); font: 500 12px/1 var(--f-ui); }
.tk .bestOdds { display: block; margin: 0; font-size: 13px; }
.px { display: grid; grid-template-columns: 20px 1fr auto auto; align-items: center; gap: 10px; height: 38px; padding: 0 0; border-bottom: 1px solid var(--hair); }
.px img { width: 18px; height: 18px; border-radius: 4px; }
.px .px-l { color: var(--ink-1); font-weight: 600; } .px .px-l small { color: var(--ink-3); font-weight: 400; margin-left: 6px; }
.px .px-p { font-weight: 600; text-align: right; min-width: 44px; }
.px.cur .px-l, .px.cur .px-p { color: var(--ink-1); }
.px.cur { box-shadow: inset 2px 0 0 var(--act); padding-left: 10px; }
.px button.px-set { grid-column: 4; height: 24px; padding: 0 8px; border: 0; background: none; color: var(--ink-3); font: 500 12px var(--f-ui); }
.px button.px-set:hover { color: var(--ink-1); }
.px-none { color: var(--ink-2); font-size: 13px; line-height: 1.45; padding: 4px 0 2px; }
.px-when { margin: 8px 0 0; color: var(--ink-3); font-size: 12px; }
.tk-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 22px 0 0; }
.tk-acts .btn { width: 100%; }
.tk-acts .btn-primary { grid-column: 1 / -1; height: 42px; font-size: 15px; }
.tk-foot { margin: 12px 0 0; color: var(--ink-3); font-size: 12px; line-height: 1.45; }

/* empty / loading */
.lab .empty, .labmain > .empty { color: var(--ink-2); text-align: center; padding: 96px 20px; }
.empty b { display: block; color: var(--ink-1); font-size: 18px; margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }
.sk { background: var(--surface-2); border-radius: var(--r-ctl); animation: skp 1.1s ease-in-out infinite alternate; }
@keyframes skp { to { opacity: .4; } }
.sk-page { padding-top: 28px; }
.sk-row { display: flex; gap: 24px; align-items: flex-end; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; padding: 10px 16px; border-radius: var(--r-ctl); background: var(--ink-1); color: var(--canvas); font: 600 13px var(--f-ui); box-shadow: 0 10px 30px rgba(0,0,0,.4); }

/* ---------- breakpoints ---------- */
@media (min-width: 1680px) { :root { --wrap: 1520px; } .lab-body { grid-template-columns: minmax(0, 1fr) 368px; gap: 56px; } }
@media (max-width: 1279px) {
  .ph { grid-template-columns: 180px minmax(0, 1fr); }
  .ph-img, .ph-img img.face { height: 150px; }
  .ph-game { grid-column: 2; grid-template-columns: repeat(3, auto); justify-content: start; padding-bottom: 24px; }
  .ph-id { padding-bottom: 16px; }
  .ph h1 { font-size: 56px; }
  .lab-body { grid-template-columns: minmax(0, 1fr) 312px; gap: 32px; }
  .sb .appbar { gap: 16px; }
  .sb-sports a, .sb-tools a { padding: 0 8px; }
}
@media (max-width: 1023px) {
  :root { --gut: 24px; }
  .sb-tools { display: none; }
  .sb .find { max-width: none; }
  .lab-body { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tk { position: static; order: -1; margin: 0 0 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; align-items: start; }
  .tk-side .tk-h { margin-top: 0; }
}
@media (max-width: 767px) {
  :root { --gut: 16px; }
  .sb .appbar { gap: 10px; }
  .sb-sports { display: none; }
  .sb-logo img.full { display: none; } .sb-logo img.mark { display: block !important; height: 24px; }
  .sb .find input { height: 38px; font-size: 16px; }
  .sb .mb > button { padding: 0 10px; }
  .sb-menu { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-right: -8px; border: 0; background: none; color: var(--ink-1); padding: 0; }
  .sb-menu svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
  body.sheet-open .sb-sheet { display: block; }
  .sb-sheet { position: fixed; inset: var(--bar) 0 auto 0; z-index: 39; background: var(--canvas); border-bottom: 1px solid var(--hair); padding: 8px var(--gut) 20px; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
  .sb-sheet h4 { margin: 14px 0 6px; color: var(--ink-3); font: 500 12px var(--f-ui); }
  .sb-sheet nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .sb-sheet a { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: var(--r-ctl); background: var(--surface); color: var(--ink-1); text-decoration: none; font-weight: 600; }
  .sb-sheet a[aria-current] { box-shadow: inset 0 -2px 0 var(--act); }
  .ph { grid-template-columns: 112px minmax(0, 1fr); gap: 0 16px; padding-top: 16px; }
  .ph-img, .ph-img img.face { height: 112px; } .ph-img img.face { max-width: 140px; }
  .ph-id { padding-bottom: 14px; align-self: end; }
  .ph h1 { font-size: 36px; }
  .ph-team { font-size: 13px; flex-wrap: wrap; row-gap: 2px; } .ph-team img { width: 18px; height: 18px; }
  .ph-game { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 14px 0 18px; border-top: 1px solid var(--hair); }
  .ph-game dd { white-space: normal; font-size: 14px; }
  .lab-body { padding-top: 0; }
  .tk { display: block; margin: 0 calc(-1 * var(--gut)) 28px; border-radius: 0; padding: 16px var(--gut) 20px; }
  .tk-hr b { font-size: 44px; }
  .tk-samples { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 0; gap: 0; margin-top: 14px; }
  .tk-samples button { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; height: 54px; padding: 0 8px; border: 1px solid var(--hair); margin: 0 -1px -1px 0; }
  .tk-samples button.on::before { left: 0; right: 0; top: auto; bottom: -1px; width: auto; height: 2px; }
  .tk-samples .frac { order: 3; font-size: 11px; } .tk-samples .pct { order: 2; text-align: left; font-size: 15px; }
  .tk-samples span:first-child { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .ans h2 { font-size: 22px; }
  .ans-sub { gap: 2px 16px; font-size: 13px; }
  .fbar { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gut)) 16px; padding: 0 var(--gut) 2px; scrollbar-width: none; }
  .fbar::-webkit-scrollbar { display: none; }
  .fdd { position: static; }
  .fdd .menu { position: fixed; left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-width: none; max-height: 70vh; overflow-y: auto; }
  .lab .chart { padding-left: 30px; padding-right: 36px; } .lab .chart .grid-y { left: 30px; right: 36px; } .lab .chart .lineMark { left: 30px; right: 36px; }
  .lab .chart .lineMark span { right: -36px; width: 34px; font-size: 12px; } .lab .chart .grid-y i span { left: -30px; width: 24px; }
  .chart-h { flex-wrap: wrap; }
  .sect { margin-top: 32px; }
  .kv { grid-template-columns: 1fr 1fr; gap: 0 16px; }
}

/* --- pass 2 --- */
body { overflow-x: clip; }
.sb-logo img.mark { display: none; }
.ph { margin: 0; padding: 28px 0 0; overflow: visible; }
.ph::before { left: -100vmax; right: -100vmax; opacity: .10; }
.ph::after { left: -100vmax; right: -100vmax; }
.lab .chart { gap: 0; }
.lab .chart .col { max-width: none; }
.lab .bar .b { width: 68%; }
.lab .chart.dense .bar .b { width: 78%; }
.lab .chart .lineMark { border-top: 2px dashed var(--act); opacity: .9; }
.fbar-n { line-height: 32px; }
@media (max-width: 767px) { .sb-logo img.full { display: none; } .sb-logo img.mark { display: block; height: 24px; } }
.sb .find { order: 0; } .sb .mb { order: 2; } .sb-tools { order: 1; } .sb-menu { order: 3; }
@media (max-width: 767px) {
  .tk-samples { margin-bottom: 8px; }
  .ph-team span + span { flex-basis: 100%; } .ph-team span + span::before { display: none; }
}
.fdd .menu { width: 360px; max-height: min(70vh, 560px); overflow-y: auto; }
.fdd .seg { flex-wrap: wrap; } .fdd .seg button { flex: 1 0 auto; padding: 0 9px; }

/* --- sections built by older page code: no boxes inside the analysis tabs --- */
.sect-body > .card, .sect-body > div > .card, .sect-body .card { background: none; border: 0; border-radius: 0; padding: 0; margin: 0 0 32px !important; }
.sect-body .card:last-child { margin-bottom: 0 !important; }
.sect-body .chartHead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.sect-body .chartHead b { font: 600 14px/1.2 var(--f-ui); }
.sect-body .chartHead span { color: var(--ink-3); font-size: 12px; }
.sect-body .note, .lab .note { color: var(--ink-3); font-size: 12px; line-height: 1.5; margin: 14px 0 0; }
.lab .usage { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 32px; border: 0; }
.lab .usage button { display: block; text-align: left; padding: 12px 0; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; background: none; color: inherit; height: auto; }
.lab .usage button:disabled { opacity: 1; cursor: default; }
.lab .usage .lab, .lab .usage span.lab { display: block; color: var(--ink-3); font: 500 12px/1.2 var(--f-ui); }
.lab .usage b { display: block; margin-top: 4px; font: 600 20px/1.1 var(--f-ui); color: var(--ink-1); }
.lab .usage .sub { display: block; color: var(--ink-3); font-size: 11px; margin-top: 2px; }
.lab .usage button:not(:disabled):hover b { color: var(--act); }
.lab table.ladder button { background: none; border: 0; padding: 0; color: var(--ink-1); font: inherit; text-decoration: underline; text-decoration-color: var(--hair-2); text-underline-offset: 3px; }
.lab table.ladder tr.cur td { font-weight: 600; } .lab table.ladder tr.cur td:first-child { box-shadow: inset 2px 0 0 var(--act); padding-left: 10px; }
.lab table.ladder th:first-child, .lab table.ladder td:first-child { text-align: left; }
.lab .meter { display: inline-block; vertical-align: middle; width: 64px; height: 4px; margin-left: 10px; background: var(--well); border-radius: 2px; overflow: hidden; }
.lab .meter b { display: block; height: 100%; background: var(--pos); }
.logwrap th:nth-child(-n+4), .logwrap td:nth-child(-n+4) { text-align: left; }
.logwrap td.opp { display: table-cell; } .logwrap td.opp img { vertical-align: -5px; margin-right: 8px; }
.logwrap tr.avgrow td:first-child { text-align: left; }
.lab table.cov td:first-child, .lab table.cov th:first-child, .lab table.mini td:first-child, .lab table.mini th:first-child { text-align: left; }
.lab .l { color: var(--neg); } .lab td.l, .lab th.l { color: inherit; }
.lab .po { color: var(--ink-3); font-size: 10px; font-weight: 600; margin-left: 3px; }
.lab .oppdef { background: var(--surface); border-radius: var(--r-ctl); padding: 10px 12px; font-size: 13px; color: var(--ink-2); margin: 0 0 16px; }
.lab .covfoot { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; margin-top: 12px; color: var(--ink-3); font-size: 12px; }
.lab .covfoot input { width: 64px; height: 28px; }
.tk .bestOdds .bo-chip, .tk #boRefresh { margin-top: 10px; height: 30px; padding: 0 12px; border-radius: var(--r-ctl); border: 1px solid var(--hair-2); background: transparent; color: var(--ink-1); font: 600 12px var(--f-ui); }
.tk .bestOdds .bo-when, .tk .bestOdds .bo-none { display: block; color: var(--ink-3); font-size: 12px; margin-top: 8px; }

/* =====================================================================
   Lab home pages (each sport's landing): title, one line of context, then lists on the canvas
   ===================================================================== */
.labmain > .phome, .labmain > div > .phome { padding-top: 32px; }
.phome .phead2 { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin: 0 0 28px; padding-bottom: 24px; border-bottom: 1px solid var(--hair); }
.phome h1 { margin: 0 0 8px; font: 600 32px/1.1 var(--f-ui); letter-spacing: -.01em; color: var(--ink-1); }
.phome .phead2 p { margin: 0; max-width: 68ch; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.phome .phead2 button, #pkRefresh { height: 34px; padding: 0 14px; border-radius: var(--r-ctl); border: 1px solid var(--hair-2); background: transparent; color: var(--ink-1); font: 600 13px var(--f-ui); }
.phome .kicker { display: none; }
.phome .psec { margin: 0 0 40px; }
.phome .psec h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font: 600 18px/1.2 var(--f-ui); color: var(--ink-1); }
.phome .psec h2 span { color: var(--ink-3); font: 500 13px var(--f-ui); }
.phome .trkline { display: flex; align-items: center; gap: 8px; margin: -12px 0 24px; color: var(--ink-3); font-size: 13px; }
.phome .trkline i { width: 7px; height: 7px; border-radius: 50%; background: var(--pos); } .phome .trkline i.off { background: var(--ink-3); }
/* player lists: rows in columns, no boxes */
.phome .pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 32px; }
.phome .pc { display: grid; grid-template-columns: 40px minmax(0, 1fr) 24px; align-items: center; gap: 12px; padding: 10px 4px; margin: 0; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; background: none; text-align: left; color: inherit; min-height: 60px; }
.phome .pc:hover { background: rgba(244,240,231,.03); }
.phome .pc img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--surface-2); }
.phome .pc b { display: block; font: 600 14px/1.25 var(--f-ui); color: var(--ink-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phome .pc span { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.phome .pc .tlg { width: 22px; height: 22px; border-radius: 0; background: none; object-fit: contain; opacity: .9; }
.phome .synccard, .phome .card { background: var(--surface); border: 0; border-radius: var(--r-surf); padding: 20px; max-width: 760px; }
.phome .synccard ol { color: var(--ink-2); font-size: 13px; line-height: 1.8; }
.phome .synccard a.syncbm { color: var(--act); font-weight: 600; }
.phome select { height: 36px; min-width: 280px; padding: 0 32px 0 12px; border-radius: var(--r-ctl); border: 1px solid var(--hair-2); color: var(--ink-1); font: 500 14px var(--f-ui); appearance: none; -webkit-appearance: none;
  background: var(--well) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23A9B0A9' stroke-width='1.6'%3E%3Cpath d='m1 1 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 11px center; }
.phome .note { color: var(--ink-3); font-size: 12px; }
/* NFL picks: filter row + one hairline table */
.phome .pkbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 28px; margin: 0 0 32px; padding: 0; background: none; border: 0; border-radius: 0; }
.phome .pkbar label { display: flex; flex-direction: column; gap: 8px; color: var(--ink-3); font: 500 12px var(--f-ui); }
.phome .seg { display: flex; padding: 2px; gap: 2px; background: var(--well); border: 1px solid var(--hair); border-radius: var(--r-ctl); }
.phome .seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 4px; background: transparent; color: var(--ink-2); font: 600 13px var(--f-ui); }
.phome .seg button.on { background: var(--surface-2); color: var(--ink-1); box-shadow: inset 0 0 0 1px var(--hair-2); }
.phome .plist { border: 0; border-radius: 0; background: none; border-top: 1px solid var(--hair-2); }
.phome a.pick, .phome .pick.pth { background: none; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; margin: 0; padding: 10px 4px; }
.phome .pick.pth { color: var(--ink-3); font: 500 12px var(--f-ui); padding: 10px 4px; }
.phome .pickrow { border-bottom: 1px solid var(--hair); } .phome .pickrow:hover { background: rgba(244,240,231,.03); }
.phome .pwho b { font: 600 14px var(--f-ui); } .phome .pwho small, .phome .prate small, .phome .pprice small { color: var(--ink-3); font-size: 12px; }
.phome .pprop { color: var(--ink-2); font-size: 14px; } .phome .pprop b { font: 600 15px var(--f-ui); color: var(--ink-1); margin-right: 4px; }
.phome .pstrip { gap: 3px; } .phome .pstrip i { min-width: 20px; padding: 5px 0; border: 0; border-radius: var(--r-data); background: var(--surface-2); color: var(--ink-3); font: 600 11px var(--f-ui); }
.phome .pstrip i.h { background: rgba(61,190,132,.18); color: var(--pos); border: 0; }
.phome .prate b { font: 700 24px/1 var(--f-disp); color: var(--pos); }
.phome .pprice b { font: 600 16px var(--f-ui); }
.phome a.pa { height: 30px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: var(--r-ctl); border: 1px solid var(--hair-2); color: var(--ink-1); font: 600 12px var(--f-ui); }
.phome a.pa-share { border-color: transparent; background: var(--act); color: var(--act-ink); }
.phome a.pa-share:hover { background: var(--act-hover); color: var(--act-ink); }
/* UFC cards: event title + hairline bout rows */
.phome section.card.evt { background: none; border: 0; border-radius: 0; padding: 0; max-width: none; margin: 0 0 40px; }
.phome .evt .chartHead { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 8px; padding-bottom: 12px; border-bottom: 1px solid var(--hair-2); }
.phome .evt .chartHead b { font: 600 18px var(--f-ui); } .phome .evt .chartHead span { color: var(--ink-3); font-size: 13px; }
.phome .bout { border-bottom: 1px solid var(--hair); }
.phome .bo-chip { height: 28px; padding: 0 12px; border-radius: var(--r-ctl); border: 1px solid var(--hair-2); background: transparent; color: var(--ink-1); font: 600 12px var(--f-ui); }
@media (max-width: 767px) { .phome h1 { font-size: 26px; } .phome .pgrid { grid-template-columns: 1fr; } .phome select { min-width: 0; width: 100%; } }

/* tools in the app bar show where you are, like the sports */
.sb-tools a[aria-current] { color: var(--ink-1); border-bottom-color: var(--act); }
.sb .appbar > .btn { order: 2; }
.sb .gsearch { flex: 1; }
.sb .gres { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50; }

[hidden] { display: none !important; }

/* =====================================================================
   Board + Parlay Builder: same canvas, same type, same controls
   ===================================================================== */
header.board-h { padding: 0; backdrop-filter: none; }
.board-h .ctxbar, .board-h .tabs, .board-h .err { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: var(--gut); padding-right: var(--gut); box-sizing: border-box; }
.board-h .ctxbar { border-top: 1px solid var(--hair); }
.board-h .tabs { border-bottom: 0; margin-top: 0; }
.board-h .tab { font: 600 14px/1 var(--f-ui); padding: 12px 12px 13px; color: var(--ink-2); }
.board-h .tab.on { color: var(--ink-1); }
.board-h select, .board-h .viewsw button { height: 32px; padding: 0 12px; border-radius: var(--r-ctl); font: 500 13px var(--f-ui); }
.board-h .viewsw button.on { background: var(--surface-2); border-color: var(--hair-2); }
.board-h .status span, .board-h .status .pill { border-radius: var(--r-ctl) !important; }
.layout { max-width: var(--wrap) !important; padding-left: var(--gut) !important; padding-right: var(--gut) !important; gap: 40px !important; grid-template-columns: minmax(0, 1fr) 360px !important; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr !important; } }
.tools input, .layout input[type=search], .layout input[type=text] { height: 36px; border-radius: var(--r-ctl); background: var(--well); border: 1px solid var(--hair); font: 400 14px var(--f-ui); padding: 0 12px; }
.whead b { font: 600 20px/1.1 var(--f-ui) !important; letter-spacing: -.01em !important; }
.whead span { color: var(--ink-3) !important; font: 500 12px var(--f-ui) !important; }
.wday { color: var(--ink-2) !important; font: 600 13px var(--f-ui) !important; }
.wteam { font: 600 14px var(--f-ui); }
.wmore { color: var(--ink-2) !important; font-weight: 500 !important; }
.wcell { border-radius: var(--r-ctl) !important; }
.wcell .wp { font: 600 15px/1.1 var(--f-ui) !important; font-variant-numeric: tabular-nums; }
.wcell .wl { color: var(--ink-3) !important; font-size: 12px !important; }
.wcell .wb { color: var(--ink-3); font-weight: 600 !important; }
.wcell.sel, .wcell.on { box-shadow: inset 0 0 0 1.5px var(--act) !important; background: var(--act-tint) !important; }
.prow { background: none !important; border: 0 !important; border-bottom: 1px solid var(--hair) !important; border-radius: 0 !important; padding: 16px 0 !important; margin: 0 !important; }
.phead b { font: 600 15px var(--f-ui) !important; }
.pick { border-radius: var(--r-ctl) !important; background: var(--surface) !important; border-color: transparent !important; }
.pick:hover { border-color: var(--hair-2) !important; }
.pick.sel { border-color: var(--act) !important; background: var(--act-tint) !important; box-shadow: none !important; }
.pick .pbest { font: 600 18px/1.15 var(--f-ui) !important; }
.slip { background: var(--surface) !important; border: 0 !important; border-radius: var(--r-surf) !important; padding: 20px !important; }
@media (min-width: 901px) { .slip { top: 150px !important; } }
@media (max-width: 900px) { .slip { border-radius: var(--r-surf) var(--r-surf) 0 0 !important; box-shadow: 0 -20px 40px rgba(0,0,0,.4); } }
.slip h2 { font: 600 16px var(--f-ui) !important; }
.bethere { background: var(--surface-2) !important; border: 0 !important; border-radius: var(--r-ctl) !important; border-top: 0 !important; box-shadow: inset 2px 0 0 var(--act); }
.bethere::after { display: none; }
.bethere .big.best { color: var(--ink-1) !important; }
.tier { border-radius: var(--r-ctl) !important; }
.slip button.primary, .layout button.primary, main button.primary { height: 40px; border-radius: var(--r-ctl); font: 600 14px var(--f-ui); }
.rtag { border-radius: var(--r-ctl) !important; }
/* parlay builder */
.wrap > .card, main#out > .card, aside.card, .opt .card { background: var(--surface); border: 0; border-radius: var(--r-surf); }
textarea { background: var(--well); border: 1px solid var(--hair); border-radius: var(--r-ctl); color: var(--ink-1); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 28px var(--gut) 64px; box-sizing: border-box; }
.wrap h1 { font: 600 28px/1.15 var(--f-ui) !important; letter-spacing: -.01em; }
.wrap .card { background: var(--surface); border: 0; border-radius: var(--r-surf); }
.wrap main .card.empty { background: none; border: 1px dashed var(--hair-2); color: var(--ink-3); }
.wrap button.primary, .wrap .primary { background: var(--act); border-color: var(--act); color: var(--act-ink); border-radius: var(--r-ctl); height: 38px; padding: 0 16px; font: 600 14px var(--f-ui); }
.wrap button:not(.primary), .wrap select, .wrap input:not([type=checkbox]):not([type=file]) { border-radius: var(--r-ctl); }
.wrap section.book h2, .wrap section h2 { font: 600 16px var(--f-ui); }
.sb .sl-acct { order: 2; margin-left: 0; } .sb .sl-acct .in { height: 32px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: var(--r-ctl); font-weight: 600; }

/* share card editor: a dialog on the system surface */
.sharePanel, .modal { background: rgba(8,12,11,.8) !important; }
.sharePanel .modalbox, .modal .modalbox { background: var(--surface); border: 0; border-radius: var(--r-surf); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.sharePanel .sgroups .sform { border: 0; border-radius: 0; border-bottom: 1px solid var(--hair); padding: 0 0 16px; background: none; }
.sharePanel .sgh { color: var(--ink-1); font: 600 14px var(--f-ui); }
.sharePanel .sform { color: var(--ink-3); font-size: 12px; }
.sharePanel select, .sharePanel input:not([type=checkbox]):not([type=color]) { height: 34px; border-radius: var(--r-ctl); background: var(--well); border: 1px solid var(--hair-2); }
.sharePanel .seg, .sharePanel .seg.lay { background: var(--well); border: 1px solid var(--hair); border-radius: var(--r-ctl); padding: 2px; gap: 2px; }
.sharePanel .seg button { border: 0; border-radius: 4px; background: transparent; color: var(--ink-2); font: 600 13px var(--f-ui); }
.sharePanel .seg button.on, .sharePanel .seg.lay button.on { background: var(--surface-2); color: var(--ink-1); box-shadow: inset 0 0 0 1px var(--hair-2); }
.sharePanel .mbtns button, .sharePanel .mbtns select { height: 36px; border-radius: var(--r-ctl); }
.sharePanel .mbtns button.primary, .sharePanel #cardSave { background: var(--act); border-color: var(--act); color: var(--act-ink); }

/* tablet: tools fold into the menu too (they were unreachable between 768 and 1023) */
@media (max-width: 1023px) {
  .sb-menu { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-right: -8px; border: 0; background: none; color: var(--ink-1); padding: 0; }
  .sb-menu svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
  body.sheet-open .sb-sheet { display: block; }
  .sb-sheet { position: fixed; inset: var(--bar) 0 auto 0; z-index: 39; background: var(--canvas); border-bottom: 1px solid var(--hair); padding: 8px var(--gut) 20px; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
  .sb-sheet h4 { margin: 14px 0 6px; color: var(--ink-3); font: 500 12px var(--f-ui); }
  .sb-sheet nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .sb-sheet a { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: var(--r-ctl); background: var(--surface); color: var(--ink-1); text-decoration: none; font-weight: 600; }
  .sb-sheet a[aria-current] { box-shadow: inset 0 -2px 0 var(--act); }
  .lp-page .sb-tools { display: flex; }
}
/* phones: a chart scrolls sideways before its labels collide */
@media (max-width: 767px) { .lab .chart .col { min-width: 34px; } .lab .chart.dense .col { min-width: 28px; } }

@media (max-width: 767px) {
  .board-h .appbar { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 8px; row-gap: 8px; }
  .board-h .appbar .gsearch { order: 5; flex: 1 0 100%; max-width: none; }
  .board-h #refresh { padding: 0 10px; }
}
