    :root
    {
        --bg-top: #221c3c;
        --bg-bottom: #17142a;
        --card: rgba(255, 255, 255, 0.06);
        --card-border: rgba(255, 255, 255, 0.12);
        --text: #f5f2fa;
        --text-dim: rgba(245, 242, 250, 0.72);
        --accent: #ff5e3a;
        --edge-pos: #41d98d;
        --radius-ctl: 6px;
        --radius-pill: 999px;
        --ctl-ledge: 3px solid rgba(255, 255, 255, 0.22);
        --ctl-shadow: 0 0 3px 0 rgba(0, 0, 0, 1.0);
    }

    *
    {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body
    {
        font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
        zoom: 1.08;
        color: var(--text);
        min-height: 100vh;
        background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%) fixed;
    }

    .wrap
    {
        max-width: 960px;
        margin: 0 auto;
        padding: 32px 20px 64px;
    }

    /* Header */

    header
    {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 28px;
    }

    .brand
    {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .logo-img
    {
        height: 96px;
        width: auto;
        display: block;
    }

    .logo
    {
        font-size: 34px;
        font-weight: 800;
        letter-spacing: 4px;
    }

    .logo em
    {
        font-style: normal;
        color: var(--accent);
    }

    .tagline
    {
        color: var(--text-dim);
        font-size: 13px;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .hdr-right
    {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .login
    {
        background: none;
        border: 1px solid var(--card-border);
        color: var(--text);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
        padding: 6px 16px;
        border-radius: var(--radius-ctl);
        cursor: pointer;
    }

    .login:hover { border-color: var(--accent); color: var(--accent); }

    .avatar
    {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
    }

    .avatar .face
    {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--accent), #b03a8c);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 800;
        color: #fff;
    }

    .avatar .who
    {
        font-size: 12px;
        color: var(--text-dim);
    }

    /* Slate header */

    .slate-bar
    {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 18px;
    }

    .sb-left
    {
        display: flex;
        align-items: center;
        gap: 14px;
        flex-wrap: wrap;
        flex-basis: 100%;
    }

    .sb-right
    {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-basis: 100%;
        gap: 12px;
        flex-wrap: wrap;
    }

    .slate-stats
    {
        flex-basis: 100%;
        background: var(--card);
        border: 1px solid var(--card-border);
        padding: 8px 10px;
        font-size: 11px;
        color: var(--text-dim);
        letter-spacing: .04em;
    }

    .slate-stats .ss-top
    {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 4px;
    }

    #slateStats
    {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        font-variant-numeric: tabular-nums;
        font-size: 11px;
    }

    .slate-stats .ss-label
    {
        font-size: 9px;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: var(--text);
        font-weight: 600;
    }

    .model-sel
    {
        display: flex;
        align-items: center;
        gap: 7px;
    }

    .model-sel .ms-label
    {
        font-size: 10px;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: var(--text-dim);
    }

    .ms-wrap
    {
        position: relative;
    }

    .ms-btn
    {
        background: var(--card);
        border: 1px solid var(--card-border);
        color: var(--text);
        font-size: 12px;
        border-radius: var(--radius-ctl);
        padding: 6px 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .ms-btn::after
    {
        content: "▾";
        font-size: 9px;
        color: var(--text-dim);
    }

    .ms-menu
    {
        position: absolute;
        left: 0;
        top: calc(100% + 6px);
        min-width: 210px;
        max-width: calc(100vw - 20px);
        max-height: 340px;
        overflow-y: auto;
        background: #2a1d4e;
        border: 1px solid var(--card-border);
        border-radius: var(--radius-ctl);
        padding: 4px;
        z-index: 60;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
        font-size: 12px;
    }

    .ms-node, .ms-leaf
    {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 6px 8px;
        border-radius: var(--radius-ctl);
        cursor: pointer;
        white-space: nowrap;
    }

    .ms-node:hover, .ms-leaf:hover
    {
        background: rgba(255, 255, 255, 0.08);
    }

    .ms-node .tw
    {
        width: 10px;
        font-size: 9px;
        color: var(--text-dim);
    }

    .ms-sub
    {
        margin-left: 14px;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 4px;
    }

    .ms-leaf.latest
    {
        color: var(--accent);
    }

    .league-tabs, .date-tabs
    {
        display: flex;
        gap: 6px;
    }

    .league-tabs button, .date-tabs button
    {
        background: none;
        border: 1px solid var(--card-border);
        color: var(--text-dim);
        padding: 7px 18px;
        border-radius: var(--radius-ctl);
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        cursor: pointer;
    }

    .league-tabs button.active, .date-tabs button.active
    {
        background: rgba(255, 94, 58, 0.15);
        border-color: var(--accent);
        color: #fff;
    }

    /* Game cards */

    .games
    {
        display: grid;
        gap: 10px;
    }

    .game
    {
        background: var(--card);
        border: 1px solid var(--card-border);
        border-radius: 0;
        padding: 12px 16px;
    }

    .game-top
    {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 8px;
    }

    .game-time
    {
        color: var(--text-dim);
        font-size: 12px;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .matchup
    {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
    }

    .team
    {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .team.right { justify-content: flex-end; }

    .team .who
    {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .team.left .who { text-align: left; }
    .team.right .who { text-align: right; }

    .icon
    {
        width: 44px;
        height: 44px;
        object-fit: contain;
        flex-shrink: 0;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
    }

    .icon.sm
    {
        width: 22px;
        height: 22px;
        vertical-align: middle;
    }

    .team .name
    {
        font-size: 18px;
        font-weight: 700;
    }

    .team .sub
    {
        color: var(--text-dim);
        font-size: 12px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .team.right .sub { justify-content: flex-end; }

    .side-tag
    {
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 1px;
        padding: 2px 7px;
        border-radius: 0;
        border: 1px solid var(--card-border);
        color: var(--text-dim);
    }

    .side-tag.home
    {
        border-color: rgba(255, 94, 58, 0.5);
        color: var(--accent);
    }

    .vs
    {
        color: var(--text-dim);
        font-size: 12px;
        font-weight: 700;
    }

    /* Probability bar */

    .prob-wrap
    {
        position: relative;
        margin-bottom: 4px;
    }

    .prob-bar
    {
        display: flex;
        height: 10px;
        border-radius: 0;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.08);
    }

    .fx
    {
        position: absolute;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 48px;
        height: 60px;
        pointer-events: none;
    }

    .game-tools
    {
        display: flex;
        gap: 6px;
    }

    .swap, .hide-btn, .unhide
    {
        background: none;
        border: 1px solid var(--card-border);
        color: var(--text-dim);
        font-size: 13px;
        line-height: 1;
        border-radius: var(--radius-ctl);
        padding: 4px 9px;
        cursor: pointer;
    }

    .swap:hover, .hide-btn:hover, .unhide:hover
    {
        color: var(--text);
        border-color: var(--text-dim);
    }

    .game.stub
    {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 14px;
    }

    .stub-label
    {
        color: var(--text-dim);
        font-size: 12px;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .prob-labels
    {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        color: var(--text);
        margin-bottom: 10px;
    }

    .prob-labels b { font-weight: 700; }

    .prob-labels.mkt
    {
        margin-top: -10px;
        font-size: 10px;
        letter-spacing: .04em;
        opacity: .7;
    }

    .prob-labels.mkt.proj { opacity: .4; }

    .mkt-tick
    {
        position: absolute;
        top: -2px;
        bottom: -2px;
        width: 2px;
        margin-left: -1px;
        background: rgba(255, 255, 255, .55);
        pointer-events: auto;
    }

    .mkt-tick.proj
    {
        background: rgba(255, 255, 255, .25);
        border-left: 1px dashed rgba(255, 255, 255, .3);
    }

    .mkt-tick.proj i { color: rgba(255, 255, 255, .35); }

    .mkt-tick i
    {
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        font-size: 9px;
        font-style: normal;
        letter-spacing: .04em;
        color: rgba(255, 255, 255, .55);
    }

    /* ESPN win-prob baseline — the dead-reckon driver, a thin steel tick so
       the market pointer and its source are both visible */
    .espn-tick
    {
        position: absolute;
        top: -2px;
        bottom: -2px;
        width: 2px;
        margin-left: -1px;
        background: rgba(138, 180, 248, .55);
        pointer-events: auto;
    }

    /* Odds/handicap -> stake tables */

    .sum-body, .pricing-body
    {
        padding: 8px;
    }

    .summary
    {
        font-size: 12.5px;
        line-height: 1.65;
        color: var(--text-dim);
        margin: 0;
    }

    .summary b { color: var(--text); font-weight: 600; }

    .section
    {
        margin-bottom: 10px;
    }

    .section:last-child { margin-bottom: 0; }



    .tables-title
    {
        font-size: 10px;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: var(--text);
        text-align: center;
        margin: 2px 0 6px;
    }

    .help
    {
        display: inline-block;
        position: relative;
        width: 13px;
        height: 13px;
        line-height: 12px;
        margin-left: 6px;
        border: 1px solid var(--card-border);
        border-radius: 50%;
        font-size: 8.5px;
        letter-spacing: 0;
        color: var(--text-dim);
        cursor: help;
        vertical-align: 1px;
    }

    .help::after
    {
        content: attr(data-tip);
        position: absolute;
        top: 140%;
        left: 50%;
        transform: translateX(-50%);
        width: 210px;
        padding: 6px 9px;
        background: #2a2350;
        border: 1px solid var(--card-border);
        border-radius: var(--radius-ctl);
        font-size: 10.5px;
        line-height: 1.45;
        letter-spacing: normal;
        text-transform: none;
        color: var(--text-dim);
        text-align: left;
        opacity: 0;
        pointer-events: none;
        transition: opacity .12s;
        z-index: 40;
    }

    .help:hover::after { opacity: 1; }

    .tables
    {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 8px;
    }

    @media (max-width: 640px)
    {
        .tables { grid-template-columns: 1fr; }
    }

    .mini
    {
        background: rgba(0, 0, 0, 0.14);
        border-radius: 0;
        padding: 6px 8px;
    }

    .bet-table
    {
        width: 100%;
        border-collapse: collapse;
        font-size: 12px;
    }

    .bet-table th
    {
        font-size: 9px;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: var(--text-dim);
        font-weight: 600;
        text-align: center;
        padding: 2px 4px;
        border-bottom: 1px solid var(--card-border);
    }

    .bet-table td
    {
        padding: 2px 4px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .bet-table tr:last-child td { border-bottom: none; }

    .bet-table td.cur
    {
        background: rgba(255, 94, 58, 0.12);
        border-radius: 0;
    }

    .stake
    {
        display: inline-block;
        font-weight: 700;
        padding: 1px 7px;
        border-radius: 0;
        background: rgba(65, 217, 141, 0.15);
        color: var(--edge-pos);
    }

    .stake.zero
    {
        background: transparent;
        color: var(--text-dim);
        font-weight: 400;
        padding: 2px 0;
    }

    .sz-risk
    {
        position: relative;
        display: inline-block;
    }

    .sz-risk i
    {
        position: absolute;
        bottom: 100%;
        left: 0;
        right: 0;
        text-align: center;
        font-style: normal;
        font-size: 7px;
        font-weight: 600;
        letter-spacing: .06em;
        line-height: 1;
        margin-bottom: 1px;
        color: var(--text-dim);
        text-transform: uppercase;
        pointer-events: none;
    }

    .stake.neg
    {
        background: rgba(255, 94, 58, 0.15);
        color: var(--accent);
    }

    .stake.risk
    {
        background: rgba(160, 170, 195, 0.18);
        color: rgba(190, 196, 215, 0.95);
        margin-right: 5px;
    }

    /* tr.pos td paints every cell green — keep the risk pill gray */
    .bet-table tr.pos td .stake.risk { color: rgba(190, 196, 215, 0.95); }

    .sz
    {
        display: inline-block;
        white-space: nowrap;
    }

    /* two-line bet rows: icon over code, offer, stacked chance/edge, sizing */
    .cell-side
    {
        text-align: center;
        vertical-align: middle;
    }

    .cell-side .icon { display: block; margin: 0 auto 1px; }

    .cell-side .cs-code
    {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.5px;
    }

    .cell-off, .cell-ce, .cell-sz { vertical-align: middle; }

    .ce-line { line-height: 1.45; white-space: nowrap; }

    .ce-cap
    {
        color: var(--text-dim);
        font-size: 8px;
        letter-spacing: 1px;
        text-transform: uppercase;
        margin-right: 4px;
    }

    .bet-table tr.pos td .ce-cap { color: var(--text-dim); }

    .sz-arrow
    {
        color: var(--text-dim);
        opacity: 0.7;
        font-size: 10px;
        margin: 0 4px;
    }

    .sz .stake, .probe-st .stake { padding: 1px 5px; }
    .sz .stake.risk, .probe-st .stake.risk { margin-right: 0; }
    .probe-st { white-space: nowrap; }

    .availability-note
    {
        color: var(--accent);
        font-size: 11px;
        line-height: 1.5;
        margin: 10px 0 0;
        text-align: center;
    }

    .pf-kind
    {
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 1px;
        color: var(--text-dim);
    }

    .probe-bar
    {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 5px 4px 1px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .probe-col
    {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .probe-col.fixed { flex: none; }

    .off-spin
    {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        margin-left: 2px;
        padding: 2px 4px;
        vertical-align: middle;
        cursor: ns-resize;
        touch-action: none;
    }

    .off-spin i
    {
        width: 0;
        height: 0;
        border-left: 6.5px solid transparent;
        border-right: 6.5px solid transparent;
        cursor: pointer;
    }

    .off-spin .off-up { border-bottom: 8px solid var(--text-dim); margin-bottom: 4.5px; }
    .off-spin .off-dn { border-top: 8px solid var(--text-dim); }
    .off-spin i:hover { filter: brightness(2); }

    .probe-cap
    {
        align-self: center;
        font-size: 9px;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: var(--text-dim);
        font-weight: 600;
    }

    .probe-track
    {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
    }

    .mkt-btn
    {
        flex: none;
        align-self: stretch;
        margin: 6px 6px 6px 0;
        padding: 0 5px;
        font-size: 8px;
        font-weight: 700;
        letter-spacing: .5px;
        border: 1px solid rgba(255, 255, 255, .2);
        border-radius: var(--radius-ctl);
        background: transparent;
        color: var(--text-dim);
        cursor: pointer;
    }

    .mkt-btn.on
    {
        background: rgba(255, 94, 58, .14);
        border-color: var(--accent);
        color: var(--accent);
    }

    .cell-off { white-space: nowrap; }
    .cell-off .off-spin { height: 100%; }

    /* fixed row height: 30px - 6px padding - 1px border = 23px content,
       enough for the 22px icon box under border-box sizing */
    .bet-table.pf td { height: 26px; }

    /* cap the icon line box: an inline img adds strut leading and would
       push the row past the 22px content area under border-box */
    .bet-table.pf .pf-side
    {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 22px;
        gap: 4px;
    }

    /* fixed columns: value changes must not resize the table */
    .bet-table.fixed { table-layout: fixed; }

    .bet-table.pf td.pf-note
    {
        color: var(--text-dim);
        font-size: 12px;
    }

    /* fixed two-line box so a wrapping note cannot grow the row */
    .bet-table.pf .pf-note-in
    {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 30px;
        line-height: 15px;
        overflow: hidden;
    }

    .pair-probe, .hc-line, .hc-pair
    {
        -webkit-appearance: none;
        appearance: none;
        flex: 1;
        min-width: 0;
        height: 30px;
        background: transparent;
        cursor: ew-resize;
        margin: 0;
    }

    /* market-following: looks released but stays draggable — a drag detaches */
    .pair-probe.mkt, .hc-line.mkt, .hc-pair.mkt
    {
        opacity: .35;
    }

    .pair-probe::-webkit-slider-runnable-track,
    .hc-line::-webkit-slider-runnable-track,
    .hc-pair::-webkit-slider-runnable-track
    {
        height: 6px;
        border-radius: 3px;
        background: linear-gradient(90deg, rgba(255, 94, 58, 0.35), rgba(255, 255, 255, 0.14) 50%, rgba(255, 94, 58, 0.35));
        border: 1px solid var(--card-border);
    }

    .pair-probe::-webkit-slider-thumb,
    .hc-line::-webkit-slider-thumb,
    .hc-pair::-webkit-slider-thumb
    {
        -webkit-appearance: none;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: var(--accent);
        border: 2px solid var(--bg-bottom);
        box-shadow: 0 0 0 1px var(--accent), 0 2px 6px rgba(0, 0, 0, 0.5);
        margin-top: -7px;
    }

    .pair-probe:hover::-webkit-slider-thumb,
    .hc-line:hover::-webkit-slider-thumb,
    .hc-pair:hover::-webkit-slider-thumb,
    .pair-probe:active::-webkit-slider-thumb,
    .hc-line:active::-webkit-slider-thumb,
    .hc-pair:active::-webkit-slider-thumb
    {
        box-shadow: 0 0 0 1px var(--accent), 0 0 10px rgba(255, 94, 58, 0.6);
    }

    .pair-probe::-moz-range-track,
    .hc-line::-moz-range-track,
    .hc-pair::-moz-range-track
    {
        height: 6px;
        border-radius: 3px;
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid var(--card-border);
    }

    .pair-probe::-moz-range-thumb,
    .hc-line::-moz-range-thumb,
    .hc-pair::-moz-range-thumb
    {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: var(--accent);
        border: 2px solid var(--bg-bottom);
        box-shadow: 0 0 0 1px var(--accent), 0 2px 6px rgba(0, 0, 0, 0.5);
    }

    .probe-edge.pos { color: var(--edge-pos); }

    .bet-table tr.pos td { color: var(--edge-pos); }

    .unit
    {
        color: inherit;
        opacity: 0.6;
        font-size: 0.8em;
        margin-left: 1px;
    }

    @media (max-width: 640px)
    {
        body { overflow-x: hidden; }
        .wrap { padding: 16px 10px 40px; }
        header { margin-bottom: 14px; }
        .logo { font-size: 24px; letter-spacing: 3px; }
        .tagline { font-size: 10px; }
        .pages { margin-bottom: 14px; }
        .pg { padding: 6px 12px; font-size: 11px; }
        .pg[data-page="teams"] { display: none; }
        .slate-bar { gap: 8px; margin-bottom: 12px; }
        .league-tabs button, .date-tabs button { padding: 6px 12px; font-size: 12px; }
        .ms-btn { font-size: 11px; padding: 5px 6px; }
        .doc { font-size: 13px; }
        .doc h2 { font-size: 18px; }
        .doc h3 { font-size: 13px; }
        .games { gap: 8px; }
        .game { padding: 10px 12px; }
        .game-top { margin-bottom: 6px; }
        .matchup { gap: 8px; margin-bottom: 8px; }
        .team { gap: 8px; }
        .icon { width: 34px; height: 34px; }
        .icon.sm { width: 16px; height: 16px; }
        .team .name { font-size: 15px; }
        .team .sub { font-size: 11px; }
        .section { margin-bottom: 8px; }
        .sum-body, .pricing-body { padding: 6px; }
        .tables-title { margin: 2px 0 5px; }
        .tables { gap: 8px; }
        .tables > *, .sides > *, .mini { min-width: 0; }
        .mini { padding: 4px 6px; overflow-x: auto; }
        .side-head { font-size: 9px; gap: 4px; margin-bottom: 4px; }
        .bet-table { font-size: 10px; }
        .bet-table:not(.fixed) { width: max-content; min-width: 100%; }
        .doc, .team-card { overflow-x: auto; }
        .mini, .doc, .team-card { scrollbar-width: none; }
        .mini::-webkit-scrollbar, .doc::-webkit-scrollbar, .team-card::-webkit-scrollbar { display: none; }
        .bet-table th { font-size: 7px; padding: 1px 2px; }
        .bet-table td { padding: 1px 2px; }
        .bet-table.pf td { height: 24px; }
        .bet-table.pf td.pf-note { font-size: 10px; }
        .bet-table.pf .pf-note-in { height: 24px; line-height: 12px; }
        .pf-kind { font-size: 8px; }
        .probe-bar { gap: 4px; padding: 3px 2px 0; }
        .probe-cap { font-size: 8px; }
        .off-spin { padding: 6px; margin-left: 0; }
        .off-spin i { position: relative; border-left-width: 7.5px; border-right-width: 7.5px; }
        .off-spin .off-up { border-bottom-width: 9px; margin-bottom: 6px; }
        .off-spin .off-dn { border-top-width: 9px; }
        .off-spin i::after { content: ""; position: absolute; inset: -10px -9px; }
        .pair-probe, .hc-line, .hc-pair { height: 36px; }
        .pair-probe::-webkit-slider-thumb,
        .hc-line::-webkit-slider-thumb,
        .hc-pair::-webkit-slider-thumb
        {
            width: 26px;
            height: 26px;
            margin-top: -10px;
        }
        .pair-probe::-moz-range-thumb,
        .hc-line::-moz-range-thumb,
        .hc-pair::-moz-range-thumb
        {
            width: 22px;
            height: 22px;
        }
    }

    /* Pregame / live view tabs */

    .view-tabs
    {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-bottom: 4px;
    }

    .vt
    {
        flex: 1;
        background: none;
        border: 1px solid var(--card-border);
        color: var(--text-dim);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        padding: 6px 14px;
        border-radius: var(--radius-ctl);
        cursor: pointer;
    }

    .vt.active
    {
        color: #fff;
        border-color: var(--accent);
        background: rgba(255, 94, 58, 0.15);
    }

    .live-dot
    {
        display: inline-block;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #ff4b4b;
        animation: pulse 1.2s infinite;
        margin-right: 5px;
        vertical-align: 1px;
    }

    @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

    .bet-table th.cur { color: var(--accent); }

    .qt
    {
        width: 82%;
        margin: 6px auto 0;
    }

    .live-chart
    {
        display: block;
        width: 72%;
        height: auto;
        margin: 6px auto 2px;
    }


    /* Locked (members-only) card */

    .lock-zone
    {
        position: relative;
    }

    .lock-body
    {
        filter: blur(7px);
        pointer-events: none;
        user-select: none;
    }

    .lock-cover
    {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        text-align: center;
    }

    .lock-ico
    {
        width: 34px;
        height: 34px;
        color: var(--text-dim);
    }

    .lock-msg
    {
        font-size: 11px;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--text-dim);
    }

    .lock-cta
    {
        font-size: 12px;
        font-weight: 700;
        padding: 7px 16px;
        border-radius: var(--radius-ctl);
        background: var(--accent);
        color: #fff;
    }

    /* Factor chips */

    .sides
    {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .side-head
    {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: var(--text-dim);
        margin-bottom: 5px;
    }

    .factors
    {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    .factors .none
    {
        font-size: 11px;
        color: var(--text-dim);
    }

    .missing-toggle
    {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 24px;
        margin: -4px 0 6px;
    }

    .missing-toggle label
    {
        display: flex;
        align-items: center;
        gap: 5px;
        color: var(--text-dim);
        font-size: 9px;
        letter-spacing: 1px;
        text-transform: uppercase;
        cursor: pointer;
    }

    .missing-list
    {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .missing-table
    {
        table-layout: fixed;
    }

    .missing-table td
    {
        padding: 5px 6px;
        vertical-align: middle;
    }

    .missing-table .player
    {
        max-width: 0;
        color: var(--text);
        font-weight: 600;
        overflow: hidden;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .missing-name
    {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 22px;
    }

    .missing-name .abbr { display: none; }

    .missing-table .status { width: 40px; }
    .missing-table .value { width: 56px; }
    .missing-table .action { width: 24px; }

    .missing-table .empty
    {
        color: var(--text-dim);
        font-size: 11px;
        text-align: center;
    }

    .missing-table .dep-head td
    {
        padding: 0;
    }

    .dep-toggle
    {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 100%;
        padding: 4px 6px;
        background: none;
        border: none;
        border-top: 1px solid var(--card-border);
        color: var(--text-dim);
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.4px;
        text-transform: uppercase;
        cursor: pointer;
    }

    .dep-toggle:hover
    {
        color: var(--text);
    }

    .dep-toggle i
    {
        font-style: normal;
        font-size: 9px;
    }

    .missing-controls
    {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    .missing-label
    {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 98px;
        height: 22px;
        padding: 0 4px;
        border-radius: var(--radius-pill);
        background-color: rgba(255, 94, 58, 0.13);
        color: #ffb59f;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0;
        text-align: center;
    }

    .missing-label.status-departed
    {
        background-color: rgba(255, 255, 255, 0.10);
        color: var(--text-dim);
    }

    /* severity dots — greener means more likely to suit up */
    .missing-dot
    {
        display: inline-block;
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.18);
    }

    .missing-dot.status-available    { background: #3dd68c; box-shadow: 0 0 5px rgba(61, 214, 140, 0.45); }
    .missing-dot.status-probable     { background: #ffe03d; }
    .missing-dot.status-questionable { background: #ff9f2e; }
    .missing-dot.status-doubtful     { background: #ff5e3a; }
    .missing-dot.status-out          { background: #f25555; box-shadow: 0 0 5px rgba(242, 85, 85, 0.45); }
    .missing-dot.status-departed     { background: rgba(255, 255, 255, 0.18); }

    .missing-label.status-new
    {
        background-color: rgba(58, 189, 248, 0.14);
        color: #8ad4f8;
    }

    .missing-label.status-doubtful, .missing-label.status-questionable,
    .missing-status.status-doubtful, .missing-status.status-questionable
    {
        background-color: rgba(255, 190, 70, 0.12);
        color: #ffd28a;
    }

    .missing-label.status-probable, .missing-label.status-available,
    .missing-status.status-probable, .missing-status.status-available
    {
        background-color: rgba(65, 217, 141, 0.12);
        color: #7fe3b0;
    }

    .missing-player, .missing-status
    {
        height: 22px;
        padding: 0 20px 0 6px;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-color: rgba(255, 255, 255, 0.07);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%23aeb3d0'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 8px center;
        background-size: 8px 5px;
        border: 1px solid var(--card-border);
        color: var(--text);
        border-radius: var(--radius-ctl);
        font-family: inherit;
        font-size: 11px;
    }

    .missing-player
    {
        width: 100%;
        min-width: 0;
        background-color: rgba(0, 0, 0, 0.18);
        color: var(--text);
        font-size: 12px;
        font-weight: 600;
        padding-left: 20px;
        text-align: center;
        text-align-last: center;
    }

    .missing-status
    {
        width: 98px;
        min-width: 0;
        background-color: rgba(255, 94, 58, 0.13);
        color: #ffb59f;
        font-size: 9px;
        font-weight: 700;
        padding-left: 8px;
        padding-right: 18px;
        text-align: left;
    }

    .missing-player option, .missing-status option
    {
        background: #2a1d4e;
        color: var(--text);
    }

    .missing-add, .missing-remove
    {
        background: var(--card);
        border: 1px solid var(--card-border);
        color: var(--text-dim);
        border-radius: var(--radius-ctl);
        font-size: 11px;
        cursor: pointer;
    }

    .missing-add
    {
        height: 20px;
        padding: 0 10px;
        font-size: 9px;
    }

    .missing-add:hover, .missing-remove:hover
    {
        color: var(--text);
        border-color: var(--text-dim);
    }

    .missing-remove
    {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        line-height: 1;
        padding: 0;
    }

    /* Phone: the two side tables stay side-by-side — fixed columns shrink and
       names drop to initials so both fit inside ~165px each. */
    @media (max-width: 640px)
    {
        .sides { gap: 6px; }
        .missing-table td { padding: 3px 2px; }
        .missing-table .status { width: 30px; }
        .missing-table .value { width: 30px; }
        .missing-name .full { display: none; }
        .missing-name .abbr { display: inline; }
        .missing-label
        {
            width: 56px;
            height: 16px;
            padding: 0 2px;
            font-size: 7px;
        }
        .dep-toggle { font-size: 8px; }
    }


    .chip
    {
        font-size: 11px;
        padding: 2px 8px;
        border-radius: var(--radius-pill);
        background: rgba(255, 255, 255, 0.08);
        color: var(--text-dim);
        white-space: nowrap;
    }

    .chip.injury
    {
        background: rgba(255, 94, 58, 0.18);
        color: #ffb59f;
    }

    .chip.good
    {
        background: rgba(65, 217, 141, 0.14);
        color: #7fe3b0;
    }

    .chip.caution
    {
        background: rgba(255, 190, 70, 0.12);
        color: #ffd28a;
    }

    .chip.power
    {
        background: rgba(58, 189, 248, 0.16);
        color: #8ad4f8;
        font-weight: 700;
    }

    .reg-timer
    {
        color: var(--text-dim);
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

    .chip.reg-timer.locked
    {
        background: rgba(65, 217, 141, 0.14);
        color: #7fe3b0;
        font-weight: 700;
        letter-spacing: 1px;
    }

    /* Site pages */

    .pages
    {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-bottom: 26px;
    }

    .pg
    {
        background: none;
        border: 1px solid var(--card-border);
        color: var(--text-dim);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        padding: 7px 20px;
        border-radius: var(--radius-ctl);
        cursor: pointer;
    }

    .pg.active
    {
        color: #fff;
        border-color: var(--accent);
        background: rgba(255, 94, 58, 0.15);
    }

    /* Bottom ledge — a 3px baseline under every clickable tab/button hints the
       tappable height — plus a 1px shadow ring outlining the shape. */
    .pg, .vt, .login, .ms-btn, .mkt-btn,
    .league-tabs button, .date-tabs button
    {
        border-bottom: var(--ctl-ledge);
        box-shadow: var(--ctl-shadow);
    }

    .page { display: none; }
    .page.active { display: block; }

    .doc
    {
        background: var(--card);
        border: 1px solid var(--card-border);
        border-radius: 0;
        padding: 24px 28px;
        font-size: 13.5px;
        line-height: 1.75;
        color: var(--text-dim);
    }

    .doc h2
    {
        color: var(--text);
        font-size: 17px;
        letter-spacing: 1px;
        text-transform: uppercase;
        margin: 0 0 10px;
    }

    .doc h3
    {
        color: var(--accent);
        font-size: 11px;
        letter-spacing: 2px;
        text-transform: uppercase;
        margin: 22px 0 6px;
    }

    .doc p { margin: 0 0 10px; }
    .doc b { color: var(--text); font-weight: 600; }
    .doc ul { margin: 0 0 10px 18px; padding: 0; }
    .doc li { margin-bottom: 4px; }

    .feat-grid
    {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin: 10px 0 6px;
    }

    .feat
    {
        display: flex;
        align-items: center;
        gap: 10px;
        background: rgba(255, 255, 255, 0.04);
        border-radius: 0;
        padding: 9px 11px;
    }

    .feat .gly
    {
        width: 30px;
        height: 30px;
        border-radius: 0;
        background: rgba(255, 94, 58, 0.14);
        color: var(--accent);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        flex-shrink: 0;
    }

    .feat b
    {
        display: block;
        color: var(--text);
        font-size: 12.5px;
        margin-bottom: 1px;
    }

    .feat span.d
    {
        font-size: 11px;
        color: var(--text-dim);
    }

    @media (max-width: 640px)
    {
        .feat-grid { grid-template-columns: 1fr; }
    }

    .doc .bt-chart
    {
        display: block;
        width: 100%;
        height: auto;
        margin: 4px 0 6px;
    }

    .bt-legend
    {
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
        font-size: 11px;
        color: var(--text-dim);
        margin: 4px 0 0;
    }

    .bt-legend .bt-lgd
    {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .bt-legend .bt-lgd i
    {
        display: inline-block;
        width: 14px;
        height: 3px;
        border-radius: 2px;
    }

    .bt-legend .bt-lgd b { color: var(--text); font-weight: 600; }

    .bt-legend .bt-lgd .dim { opacity: 0.55; }

    .bt-meta
    {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin: 8px 0 4px;
    }

    .bt-chip
    {
        padding: 1px 7px;
        border-radius: var(--radius-pill);
        background: rgba(255, 255, 255, 0.08);
        font-size: 11px;
        color: var(--text-dim);
        white-space: nowrap;
    }

    .bt-chip b { color: var(--text); font-weight: 600; }

    .bt-chip.dim { margin-left: auto; }

    .bt-hint
    {
        font-size: 10px;
        margin: 0;
        color: var(--text-dim);
    }

    #btTable tr[data-s] { cursor: pointer; }

    #btTable tr[data-s]:hover td { background: rgba(255, 94, 58, 0.08); }

    #btTable tr.cur-sel td { background: rgba(255, 94, 58, 0.12); }

    .bt-log-head
    {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 11px;
        color: var(--text-dim);
        margin: 4px 0;
    }

    .bt-pager
    {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .bt-pager button
    {
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid var(--card-border);
        color: var(--text);
        font-size: 14px;
        width: 24px;
        height: 22px;
        line-height: 1;
        padding: 0;
        border-radius: var(--radius-ctl);
        cursor: pointer;
    }

    .bt-pager button:disabled
    {
        opacity: 0.35;
        cursor: default;
    }

    .bt-log .bt-game
    {
        font-weight: 600;
        color: var(--text-dim);
        white-space: nowrap;
    }

    .bt-log .bt-miss
    {
        display: block;
        font-size: 9px;
        font-weight: 400;
        color: var(--text-dim);
    }

    .bt-log .bt-mkt
    {
        font-size: 10px;
        color: var(--text-dim);
        white-space: nowrap;
    }

    .bt-bet
    {
        display: block;
        line-height: 1.5;
        white-space: nowrap;
    }

    .bt-log td.num { white-space: nowrap; }

    .bt-log td.op { width: 118px; }

    .bt-bet .b-kind
    {
        color: var(--text-dim);
        font-size: 9px;
        letter-spacing: 1px;
    }

    .bt-bet .b-pl.b-win { color: var(--edge-pos); }

    .bt-bet .b-pl.b-loss { color: var(--accent); }

    /* Teams page */

    .teams-grid
    {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
        gap: 12px;
        margin-top: 10px;
    }

    .team-card
    {
        background: var(--card);
        border: 1px solid var(--card-border);
        padding: 12px 14px;
    }

    .team-head
    {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 8px;
        padding-bottom: 8px;
        border-bottom: 2px solid transparent;
    }

    .team-head .icon { width: 26px; height: 26px; }

    .team-name
    {
        flex: 1;
        font-weight: 700;
        font-size: 13px;
        letter-spacing: 0.5px;
    }

    .team-power
    {
        font-size: 17px;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
    }

    .tm-table th:first-child, .tm-table td.p-name
    {
        text-align: left;
        white-space: nowrap;
    }

    .tm-table td.p-name .missing-label { margin-left: 6px; }

    @media (max-width: 640px)
    {
        .teams-grid { grid-template-columns: 1fr; }
    }

    .bt-bet .b-pl.b-push { color: var(--text-dim); }

    footer
    {
        margin-top: 36px;
        text-align: center;
        color: var(--text-dim);
        font-size: 12px;
        line-height: 1.7;
    }
