/**
 * Player Props / DFS — page-specific styles.
 * Consolidated from four inline <style> blocks (index.php, ps-header.php,
 * ps-stats-view.php, ps-trend-chart.php) so the /my-dash/ widget versions
 * (which only get body HTML fragments, not <head>) can load them too.
 */
    /* Content wrapper */
    /* Page padding: .content-wrapper.tmb-page in front.css. Only the mobile number differs. */
    .content-wrapper.tmb-page {
        --page-top-mobile: 80px;
    }

    /* Navigation header bar look now comes from the shared .tmb-sport-bar (front.css) */

    /* Autocomplete styling */
    .ui-autocomplete {
        max-height: 300px;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 1050 !important;
    }
    .ui-autocomplete .ui-menu-item-wrapper {
        padding: 8px 12px;
    }
    .player-suggestion-team {
        color: var(--tmb-gray-600);
        font-size: 0.85em;
        margin-left: 8px;
    }

    /* Injury badges + headshot injury overlay → extracted to /styles/player-injury-common.css */

    /* Search in header */

    /* Player header */
    .player-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: 30px;
        margin-bottom: 0;
    }
    .player-header-text {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    .player-header h2 {
        margin-bottom: 0;
    }
    .player-header .team-label {
        color: var(--tmb-gray-600);
        font-size: 1rem;
    }
    /* .player-header and everything else in this file scoped to player_strip/
       prop_bar_table/mlb_pitch_mix/season_stats content is inside .tmb-cq-root
       (see ps-player-header.php / ps-matchup-view.php / ps-stats-view.php —
       each wraps its own output in that class), so these @container rules
       respond to THIS WIDGET'S width on /my-dash/, not just a narrow browser
       viewport. Page-chrome-only rules (.content-wrapper, the nav bar) stay
       plain @media further down since that markup never appears in a widget. */
    @container (max-width: 768px) {
        .player-header {
            flex-direction: row;
            gap: 10px;
            align-items: center;
        }
    }

    /* 50/50 Matchup Layout — CSS Grid + subgrid for row alignment */
    .ps-matchup-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 0 20px;
    }
    .ps-matchup-left, .ps-matchup-right {
        display: grid;
        grid-row: 1 / -1;
        grid-template-rows: subgrid;
        min-width: 0;
    }
    /* Subgrid children must also allow shrinking for overflow-x scroll */
    .ps-matchup-left > *, .ps-matchup-right > * {
        min-width: 0;
        overflow: hidden;
    }
    /* But let the player strips scroll horizontally inside their clipped parent */
    .without-player-strip {
        overflow-x: auto !important;
        overflow-y: visible !important;
    }
    /* First-visit coachmark for the player strips (TMB.coachmark) */
    .ps-coachmark {
        position: fixed;
        z-index: 98; /* above the fixed header (96, 97 with the picks bar); under the slide-out sidebar (#sidebarMenu = 99) */
        max-width: 300px;
        background: #fff;
        border: 1px solid var(--tmb-gray-300);
        border-radius: 10px;
        box-shadow: 0 10px 34px var(--tmb-black-20);
        padding: 14px 16px 12px;
        font-size: 0.85rem;
        line-height: 1.45;
        color: var(--tmb-gray-900);
    }
    .ps-coachmark-body .chip-badge { font-size: 0.6rem; vertical-align: middle; margin: 0 1px; }
    .ps-coachmark-btn {
        margin-top: 10px;
        background: var(--tmb-gray-300);
        color: #000;
        border: 1px solid var(--tmb-gray-400);
        border-radius: 6px;
        padding: 6px 16px;
        font-size: 0.82rem;
        font-weight: 600;
        cursor: pointer;
    }
    .ps-coachmark-btn:hover { background: var(--tmb-gray-300); }
    /* inset ring so the highlight isn't clipped by the strip's overflow-x scroll */
    .ps-coach-target { box-shadow: inset 0 0 0 2px var(--tmb-bad-6); }
    /* Metered paywall: dark overlay over the gated player view (instead of the modal) */
    #ps-locked-zone.ps-paywall-locked { position: relative; min-height: 320px; }
    .tmb-lock-overlay.ppdfs-lock { align-items: flex-start; padding-top: 70px; }
    .ps-matchup-left {
        grid-column: 1;
    }
    .ps-matchup-right {
        grid-column: 2;
        border-left: 1px solid var(--tmb-gray-300);
        padding-left: 20px;
    }
    @container (max-width: 768px) {
        .ps-matchup-layout {
            grid-template-columns: 1fr;
            grid-template-rows: auto;
            gap: 12px;
        }
        .ps-matchup-left, .ps-matchup-right {
            grid-row: auto;
            grid-column: 1;
            display: block;
        }
        .ps-matchup-right {
            border-left: none;
            padding-left: 0;
            border-top: 1px solid var(--tmb-gray-300);
            padding-top: 12px;
        }
    }

    /* Multi-team filter dropdown */
    #team-filter-select {
        border-color: var(--tmb-gray-300);
        color: var(--tmb-gray-700);
    }

    /* Without-player strip + excluded/required states → extracted to /styles/player-injury-common.css */

    /* Stats table */
    .stats-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .stats-table {
        width: 100%;
        font-size: 0.85rem;
    }
    .stats-table thead th {
        position: sticky;
        top: 0;
        background: var(--tmb-gray-900);
        color: #fff;
        text-align: center;
        padding: 6px 8px;
        white-space: nowrap;
        font-weight: 600;
        font-size: 0.78rem;
        z-index: 2;
    }
    .stats-table thead th:first-child {
        position: sticky;
        left: 0;
        z-index: 3;
        min-width: 110px;
    }
    /* The Game Log's Date column is as wide as a date (Zach, 2026-11-26):
       the 110px floor above is for the season table's split labels, and it
       held "11/25" in 110px at every width (a phone lifted it already). */
    #gamelog-table thead th:first-child {
        min-width: 0;
    }
    /* Game Log columns as wide as their contents (Zach, 2026-11-26, as the
       Odds tables): a header of two or three words wraps to the width of its
       longest word ("PTS off TO" 77 -> 36px), the cells stay on one line, so
       a column is the wider of the two. Above phone width the table is
       max-content, not stretched over the row (front.css's width 100%
       !important needs one that outranks `table`): NHL 1450 -> 558px, NBA's
       60 columns 2924 -> 2627px. */
    /* The season stats table (the splits) the same way, the same day. Its
       Split column keeps its 110px floor on desktop (the split labels). */
    :is(#gamelog-table, #stats-table) thead th {
        white-space: normal;
        width: 1px;
        line-height: 1.2;
        vertical-align: bottom;
    }
    @container (min-width: 768px) {
        .stats-table-wrapper :is(#gamelog-table, #stats-table) { width: max-content !important; min-width: 0; }
    }
    .stats-table tbody td {
        text-align: center;
        padding: 6px 8px;
        white-space: nowrap;
    }
    .stats-table tbody td:first-child {
        position: sticky;
        left: 0;
        background: inherit;
        font-weight: 600;
        text-align: left;
        z-index: 1;
    }
    .stats-table tbody tr:nth-child(odd) { background-color: var(--tmb-gray-100); }
    .stats-table tbody tr:nth-child(even) { background-color: #fff; }
    .stats-table tbody tr:nth-child(odd) td:first-child { background-color: var(--tmb-gray-100); }
    .stats-table tbody tr:nth-child(even) td:first-child { background-color: #fff; }
    .stats-table tbody tr:hover { background-color: var(--tmb-gray-300); }
    .stats-table tbody tr:hover td:first-child { background-color: var(--tmb-gray-300); }

    /* Section headers in table */
    .section-header {
        background-color: var(--tmb-gray-300) !important;
        font-weight: 700;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--tmb-gray-700);
    }
    .section-header td { text-align: left !important; padding: 4px 8px !important; }

    /* Loading spinner */
    .loading-spinner {
        text-align: center;
        padding: 3rem;
        display: none;
    }
    .loading-spinner .spinner-border { width: 2rem; height: 2rem; }

    /* No results */
    .no-results {
        text-align: center;
        padding: 2rem;
        color: var(--tmb-gray-600);
    }

    /* Side-by-side chart + matchup table within matchup section.
       The table column is half the row OR the width its table needs,
       whichever is more, and the chart takes what is left (never more than
       half). The table is 525 to 559px by sport and will not shrink, so at
       an even split it ran past its column, and past the page's edge where
       it is cut (html, body are overflow-x: hidden), whenever half the row
       was narrower than that: a row of 992 to about 1120px, which is a
       window of roughly 1040 to 1170px, and the page beside a snapped
       Explore dock on a 1440 screen (4 to 19px of the Projected column). */
    /* The chart and the table are two cards with a gap between them (Zach,
       2026-11-01: "disconnect the table and the graph"); until then they
       shared one border. The table's column gives the gap up, so the two
       still add up to the row and never wrap. */
    .matchup-body-row {
        display: flex;
        flex-wrap: wrap;
        /* Each card its own height (Zach, 2026-11-01): opening the strip under
           the table must not make the chart taller. */
        align-items: flex-start;
        gap: 0 var(--matchup-gap, 14px);
    }
    .matchup-body-row > .matchup-chart-col {
        flex: 1 1 0;
        min-width: 0;
        max-width: 50%;
        display: flex;
        flex-direction: column;
    }
    .matchup-body-row > .matchup-chart-col #trend-chart-section {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    .matchup-body-row > .matchup-chart-col #trend-chart-section .card {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    .matchup-body-row > .matchup-chart-col #trend-chart-section .card .card-body {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    /* Canvas must be absolute so it can't inflate the flex container on resize */
    .trend-chart-area {
        overflow: hidden;
        /* Floor so the chart still renders when the sibling .matchup-table-col
           is short and can't stretch the row taller via align-items:stretch —
           e.g. NHL's "select a team" placeholder has no stats table like other
           sports do. !important needed to override the inline min-height:0. */
        min-height: 260px !important;
    }
    .trend-chart-area canvas {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
    }
    .matchup-body-row > .matchup-table-col {
        flex: 0 0 auto;
        width: calc(50% - var(--matchup-gap, 14px));
        min-width: min-content;
        max-width: 100%;
    }
    /* The filters are ONE bar above the two cards, apart from both (Zach,
       2026-11-01): every control on one line while the width holds, wrapping
       after. */
    .ps-filter-bar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 14px;
        padding: 6px 12px;
        /* apart from the player and opponent panels above it too (Zach) */
        margin: 18px 0 10px;
        border: 1px solid var(--tmb-black-15);
        border-radius: .25rem;
        background: var(--tmb-gray-100);
    }
    .ps-filter-bar .ps-filter-title {
        font-weight: 700;
        font-size: 0.9rem;
        white-space: nowrap;
        margin-right: 4px;
    }
    /* The table is a card of its own: the wrapper carries the rounded edge
       and the "How this projection is built" row sits inside it. */
    .matchup-body-row > .matchup-table-col #matchup-content {
        border: 1px solid var(--tmb-black-15);
        border-radius: .25rem;
        background: #fff;
    }
    .matchup-body-row > .matchup-table-col #matchup-content .table-bordered {
        border: 0;
    }
    .matchup-body-row > .matchup-table-col #matchup-content .table-bordered thead th:first-child { border-top-left-radius: .25rem; }
    .matchup-body-row > .matchup-table-col #matchup-content .table-bordered thead th:last-child { border-top-right-radius: .25rem; }
    #matchup-content .matchup-avg-note { padding: 0 10px; }
    #matchup-content .matchup-avg-note:last-child { padding-bottom: 8px; }
    #trend-chart-canvas {
        cursor: crosshair;
    }
    /* The matchup table's wrapper. Side by side, the column is as wide as
       its table (above), so the wrapper clips nothing and the header's
       tooltips drop out of it over the rows. Stacked, it scrolls: see the
       block after the stacked layout's. */
    #matchup-content .table-responsive {
        overflow: visible;
    }
    /* Side by side, the matchup table's columns as wide as their contents
       (Zach, 2026-11-26, as the Odds tables): its column was half the row
       and the table stretched over it; now the column is the table's width
       and the chart takes the rest (NHL at 1450px: table 709 -> 628px, chart
       725 -> ~830px). A header wraps to its longest word, 58px at least so
       a two-word header stays on two lines, the Rank header 80px ("Rank
       vs. / Skater (i)", four lines narrower): the header row 54 -> 48px.
       The ids doubled to outrank ps-matchup-view.php's style block, which
       comes later in the page. Stacked (991px or less) as before. */
    @container (min-width: 992px) {
        .matchup-body-row > .matchup-table-col { width: auto; }
        .matchup-body-row > .matchup-chart-col { max-width: none; }
        #matchup-content .table-responsive > .table { width: max-content !important; }
        #matchup-content#matchup-content .table thead th {
            width: 1px;
            white-space: normal;
            line-height: 1.25;
            min-width: 58px;
        }
        #matchup-content#matchup-content .table thead th:first-child { min-width: 0; }
        #matchup-content#matchup-content .table thead th:has(#matchup-rank-position) { min-width: 80px; }
    }
    @container (max-width: 991px) {
        .matchup-body-row > .matchup-chart-col,
        .matchup-body-row > .matchup-table-col {
            flex: 0 0 100%;
            max-width: 100%;
            /* stacked, a column is the row's width as it always was */
            min-width: 0;
        }
        .matchup-body-row > .matchup-chart-col {
            margin-bottom: 10px;
        }
        /* Chart area needs explicit height when stacked (canvas is absolute-positioned).
           !important needed to override inline min-height:0 on the element */
        .trend-chart-area {
            min-height: 260px !important;
        }
    }

    /* Stacked, the matchup table scrolls sideways inside its wrapper with
       the Stat column held in place. The table is 525 to 559px by sport
       (wider under a long team name) and will not shrink, so on a phone
       about 180px of it, Projected included, ran past the screen's edge,
       where html, body cut it and nothing scrolled it. The condition is the
       stacked layout's, not a width: a wrapper as wide as its table has
       nothing to scroll and looks as it did. */
    @container (max-width: 991px) {
        #matchup-content .table-responsive {
            overflow-x: auto;
            /* A shadow down the right edge while more of the table lies that
               way: the second layer stays at the wrapper's edge, the first
               rides with the table and covers it at the table's end. */
            background:
                linear-gradient(to left, #fff 30%, transparent) right center / 40px 100% no-repeat local,
                linear-gradient(to left, var(--tmb-black-20), transparent) right center / 14px 100% no-repeat scroll;
        }
        /* front.css stripes every even row with an opaque grey, which would
           hide that shadow on half the rows: the same grey, see-through. */
        #matchup-tbody tr:nth-child(2n) {
            background-color: color-mix(in srgb, var(--tmb-gray-900) 3%, transparent);
        }
        #matchup-content thead th:first-child,
        #matchup-tbody td:first-child {
            position: sticky;
            left: 0;
        }
        #matchup-content thead th:first-child {
            z-index: 2;
        }
        /* The held cell must hide what scrolls under it and still show its
           row's colour, which is see-through (the stripe, the hover, the
           charted stat's highlight, all set on the tr): white as an image,
           then the row's colour over it in ::before. */
        #matchup-tbody td:first-child {
            z-index: 1;
            background-color: inherit;
            background-image: linear-gradient(#fff, #fff);
        }
        #matchup-tbody td:first-child::before {
            content: '';
            position: absolute;
            inset: 0;
            z-index: -1;
            background-color: inherit;
        }
        /* Its right-hand rule: a collapsed border stays with the grid when
           the cell is held, and box-shadow does not apply to such a cell. */
        #matchup-content thead th:first-child::after,
        #matchup-tbody td:first-child::after {
            content: '';
            position: absolute;
            top: 0;
            bottom: 0;
            right: 0;
            width: 1px;
            background: var(--tmb-gray-300);
        }
        #matchup-content thead th:first-child::after {
            background: var(--tmb-gray-700);
        }
    }
    /* The header's tooltips inside that scroller. On a phone front.css makes
       every tooltip a fixed sheet above the bottom bar, which a scroller
       does not clip. On a wider screen (a tablet, a narrow window, a
       /my-dashboards/ widget) a tooltip hangs from its icon and the scroller
       would cut it, so there it hangs from the table's column instead
       (.matchup-table-col is position: relative, in ps-matchup-view.php),
       which is outside the scroller: just under the header, at the column's
       right edge, and at its left edge for Player SOS, the third column. */
    @media (min-width: 769px) {
        @container (max-width: 991px) {
            #matchup-content .info-tooltip {
                position: static;
            }
            #matchup-content .info-tooltip .tooltip-text {
                top: auto;
                left: auto;
                right: 8px;
                margin-top: 1.5em;
                max-width: calc(100% - 16px);
            }
            #matchup-content th:nth-child(3) .info-tooltip .tooltip-text {
                left: 8px;
                right: auto;
            }
        }
    }

    /* Mobile — page-chrome only (.content-wrapper / nav bar never appear
       inside a widget, so these stay viewport-only). */
    @media (max-width: 767px) {
        .ps-navigation-header > div:first-child {
            margin-left: 0 !important;
        }
    }
    /* Everything else from that mobile block IS widget content (season_stats'
       stats-table/game-log-btn, player_strip's header/opponent panel) —
       @container so it responds to the widget's own width. */
    @container (max-width: 767px) {
        .stats-table { font-size: 0.78rem; }
        /* Game Log button margin on mobile */
        #btn-gamelog-toggle {
            margin-left: 16px;
        }
        /* Compact player + opponent headers on mobile */
        .player-header {
            margin-top: 16px;
            gap: 8px;
            padding: 0 16px;
        }
        .player-header img {
            width: 50px !important;
            height: 50px !important;
        }
        .player-header h2 {
            font-size: 1.1rem;
        }
        .player-header .team-label {
            font-size: 0.8rem;
        }
        #future-game-label {
            font-size: 0.6rem !important;
        }
        .ps-matchup-left, .ps-matchup-right {
            padding-left: 16px;
            padding-right: 16px;
        }
        .ps-panel-header {
            padding: 0;
        }
    }
    /* Chip badges → extracted to /styles/player-injury-common.css */

    /* Legend / Key */
    .ps-legend {
        display: none;
        align-items: center;
        gap: 10px;
        font-size: 0.75rem;
        color: var(--tmb-gray-600);
        flex-wrap: wrap;
    }
    /* .legend-item, .legend-badge, .legend-sep → in player-injury-common.css */
    .ps-legend .info-tooltip .tooltip-text {
        left: auto;
        right: 0;
        margin-left: 0;
        min-width: 340px;
    }
    .ps-legend .info-tooltip .tooltip-text {
        max-width: 380px;
        font-size: 0.72rem;
        line-height: 1.5;
        padding: 10px 14px;
        white-space: normal;
    }
    .ps-legend .info-tooltip .tooltip-text .out-badge,
    .ps-legend .info-tooltip .tooltip-text .in-badge {
        display: inline-block;
        color: #fff;
        font-weight: 700;
        padding: 0 5px;
        border-radius: 10px;
    }
    .ps-legend .info-tooltip .tooltip-text .out-badge { background: var(--tmb-out); }
    .ps-legend .info-tooltip .tooltip-text .in-badge { background: var(--tmb-in); }

/* ---- from ps-header.php ---- */
html { overflow-y: auto; -webkit-overflow-scrolling: touch; }
body { min-height: 100vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* Selector row below sticky header (NOT sticky) */
.ps-selector-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0px;
}
/* Remove blue box wrapper, style the select pill itself */
.ps-selector-row .selector-game {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
}
.ps-selector-row #game-selector {
    background-color: color-mix(in srgb, var(--tmb-blue) 8%, transparent) !important;
    border-color: color-mix(in srgb, var(--tmb-blue) 25%, transparent) !important;
}
.ps-selector-row #game-selector:hover,
.ps-selector-row #game-selector:focus,
.ps-selector-row .tmb-ss:hover > #game-selector, /* TMB.searchSelect's wrapper */
.ps-selector-row .tmb-ss.is-open > #game-selector {
    background-color: color-mix(in srgb, var(--tmb-blue) 12%, transparent) !important;
    border-color: var(--tmb-blue) !important;
}

/* Date picker: pill with no arrow on any state */
.ps-selector-row #date-picker {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: none !important;
}
.ps-selector-row #date-picker:hover,
.ps-selector-row #date-picker:focus {
    background-image: none !important;
}

/* The search is one rounded field, as the site's other searches (Zach, 2026-12-02): no Stats button (a name
   picked from the list opens him, ps-core.js). The box itself is .tmb-search (styles/search-box.css). */
.ps-header-right .input-group .input-group-append:has(#btn-show-stats) { display: none !important; }

#team-players-row {
    display: none !important;
    align-items: center;
    gap: 4px;
}
#team-players-row.active {
    display: none !important;
}
#team-players-row .at-sign { display: none; }

/* This block stays viewport-only (@media, not @container): it's all
   player_strip's CONTROLS fragment ($ps_strip_controls_html in
   widget-render.php), which — like +EV Props' filter row — intentionally
   closes/reopens the CALLER's own ancestor divs rather than being
   self-contained, so it can't be wrapped
   in .tmb-cq-root. Minor cosmetic gap on a narrow widget (search box/date
   picker keep their desktop sizing), not a functional one. */
@media (max-width: 767px) {
    .ps-navigation-header .btn-group { margin-right: 0.5rem !important; }
    .ps-header-right {
        max-width: 100% !important;
        flex-direction: column !important;
        gap: 6px !important;
    }
    .ps-header-right .input-group { order: -1; }
    .ps-selector-row {
        padding-left: 16px;
        padding-right: 16px;
    }
    .ps-selector-row select, .ps-selector-row input[type="date"] {
        width: 100% !important;
        min-width: 0 !important;
    }
    #team-players-row select {
        width: 100% !important;
        max-width: 100%;
    }
    #team-players-row { gap: 4px !important; max-width: 100% !important; }
}

/* ---- from ps-stats-view.php ---- */
/* Skeleton placeholder styling */
.ps-skeleton {
    opacity: 0.45;
    pointer-events: none;
    user-select: none;
}
.ps-skeleton .skeleton-bar {
    background: var(--tmb-gray-300);
    border-radius: 3px;
    display: inline-block;
}
.ps-skeleton .skeleton-line {
    background: var(--tmb-gray-300);
    border-radius: 3px;
    height: 14px;
    margin-bottom: 6px;
}
.ps-skeleton .stats-table tbody td {
    color: transparent;
}
.ps-skeleton .stats-table tbody td::after {
    content: '';
    display: inline-block;
    width: 28px;
    height: 12px;
    background: var(--tmb-gray-300);
    border-radius: 3px;
}
.ps-skeleton .stats-table tbody td:first-child::after {
    width: 60px;
}

/* ---- from ps-trend-chart.php ---- */
/* Custom slider - matches my_systems page styling */
.ps-slider-wrap {
    position: relative;
    flex: 1 1 150px;
    min-width: 120px;
    height: 32px;
}
.ps-slider-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    background: var(--tmb-gray-300);
    border-radius: 2px;
    transform: translateY(-50%);
    z-index: 1;
}
.ps-slider-fill {
    position: absolute;
    height: 4px;
    background: var(--tmb-blue);
    border-radius: 2px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
    left: 0;
}
.ps-slider-wrap input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 20px;
    background: transparent;
    outline: none;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 3;
    pointer-events: auto;
}
.ps-slider-wrap input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
}
.ps-slider-wrap input[type="range"]::-moz-range-track {
    height: 4px;
    background: transparent;
    border: none;
}
.ps-slider-wrap input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--tmb-blue);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px var(--tmb-black-30);
    margin-top: -7px;
}
.ps-slider-wrap input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--tmb-blue);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px var(--tmb-black-30);
}
.ps-slider-val {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    font-size: 11px;
    font-weight: 600;
    color: var(--tmb-gray-700);
    background: #fff;
    border: 1px solid var(--tmb-gray-300);
    border-radius: 20px;
    margin-left: 8px;
    flex-shrink: 0;
}

/* .info-tooltip is defined in front.css. */
/* Anchor to the right for tooltips near the right edge (chart legend) */
.info-tooltip .tooltip-text.tooltip-anchor-right {
    left: auto;
    right: 0;
    margin-left: 0;
}
/* Legend: 2-column grid below chart */
.trend-legend-grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: 0 10px;
    padding: 4px 6px;
    border-top: 1px solid var(--tmb-gray-300);
    font-size: 0.82rem;
    align-items: start;
}
.trend-legend-grid .legend-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
/* Each row stretches full width of the column */
.trend-legend-grid .legend-col > div {
    width: 100%;
}
/* Fixed widths for labels and rates so values line up */
.trend-legend-grid .legend-label {
    display: inline-block;
    min-width: 42px;
    flex-shrink: 0;
}
.trend-legend-grid .legend-rate {
    display: inline-block;
    min-width: 26px;
    text-align: right;
    flex-shrink: 0;
}
/* A small line under a legend row (the Line's implied odds, the Closed
   row's pushes and coverage): gone while it holds no text */
.trend-legend-grid .legend-subnote {
    padding: 0 4px 0 22px;
    font-size: 0.68rem;
    color: var(--tmb-gray-600);
    white-space: nowrap;
}
.trend-legend-grid .legend-subnote:empty {
    display: none;
}
/* The lines bar under the filters (ps-matchup-view.php #ps-props-strip,
   renderPropsStripHtml in ps-core.js, since 2026-11-01): a chip a book on the
   chart's stat, Consensus first, then a divider, Best / Hold / Sharp, a
   divider and the books, in one row that scrolls sideways; the chosen book's
   chip (the chart's line) is marked. The markup is a table (the Odds page's
   prop-cell shape, so bet-slip.js's + lands in each priced side and
   scripts/line-movement.js's popover opens from each cell's chart icon)
   laid out as a row of chips. THE CHIPS' LOOK IS styles/lines-chips.css
   (.tmb-chips on the table, .tmb-chip-* on the rows and cells; the Odds
   page's tables read it too): never a copy of those rules here. This block
   is the bar's own frame, its flex layout, and front.css's row tints kept
   off its rows. */
.ps-props-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    padding: 6px 10px;
    border: 0;            /* no frame since 2026-12-02: the grey tiles carry it */
    border-radius: 12px;
    background: var(--tmb-surface, #fff);
    overflow-x: auto;
    scrollbar-width: thin;
}
.ps-props-head { display: flex; flex: 0 0 auto; }
.ps-props-title { font-size: 0.8rem; font-weight: 700; color: var(--tmb-gray-900); white-space: nowrap; }
.ps-props-table, .ps-props-table tbody { display: flex; }
.ps-props-table { flex: 1 1 auto; min-width: 0; }
.ps-props-table tbody { gap: 8px; }
/* a chip's cells are blocks (the chip itself is lines-chips.css's) */
.ps-props-table tr td { display: block; padding: 0; border: 0; }
/* front.css paints every table row: even rows gray-100 and any row gray-300
   on hover (tr:nth-child(even), tr:hover). The chips are rows, so each
   state is named here, at a higher specificity, with the chip's own colour
   (lines-chips.css's tokens). */
.ps-props-table tr.tmb-chip:nth-child(even), .ps-props-table tr.tmb-chip:hover { background-color: var(--tmb-gray-100); cursor: pointer; }
.ps-props-table tr.tmb-chip-sum:nth-child(even), .ps-props-table tr.tmb-chip-sum:hover { background-color: color-mix(in srgb, var(--tmb-success-bg), var(--tmb-surface, #fff) 45%); cursor: default; }
.ps-props-table tr.tmb-chip-sel:nth-child(even), .ps-props-table tr.tmb-chip-sel:hover { background-color: var(--tmb-blue-50); }
.ps-props-table tr.tmb-chip-sharp:nth-child(even), .ps-props-table tr.tmb-chip-sharp:hover { background-color: var(--tmb-blue-50); }
.ps-props-table tr.tmb-chip-sharp.tmb-chip-flagged:nth-child(even), .ps-props-table tr.tmb-chip-sharp.tmb-chip-flagged:hover { background-color: var(--tmb-blue-100); }
.ps-props-table tr.tmb-chip-divider:nth-child(even), .ps-props-table tr.tmb-chip-divider:hover { background-color: var(--tmb-gray-300); opacity: 1; cursor: default; }
/* A book's Over and Under share ONE grid, each slot as wide as its widest
   entry (Zach, 2026-11-26, as the Odds page's cells): the + buttons line up
   and the Over's own width no longer differs from the Under's; the + sits
   4px off, not 6 (BetRivers 134 -> 128px). Subgrid, so a side with no + keeps
   its columns. Best's books are logos (ps-core.js bestAt(): 138 -> 110px). */
#ps-props-strip .tmb-chips .tmb-chip:not(.tmb-chip-sum) > .tmb-chip-body {
    display: grid !important;
    grid-template-columns: repeat(3, max-content);
    column-gap: 4px;
    align-content: start;
}
#ps-props-strip .tmb-chips .tmb-chip:not(.tmb-chip-sum) > .tmb-chip-body > .tmb-chip-side {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: subgrid;
}
#ps-props-strip .tmb-chips .tmb-chip-body > .tmb-chip-side > .trk-add { margin-left: 0; }
#ps-props-strip .ps-props-best .tmb-chip-at img { width: 14px; height: 14px; vertical-align: -3px; border-radius: 2px; }
@media (max-width: 767px) {
    .ps-props-hint { display: none; }
}

/* .trend-legend-grid is inside ps-matchup-view.php's .tmb-cq-root (via the
   nested ps-trend-chart.php include), so this responds to prop_bar_table's
   own width on /my-dash/. */
@container (max-width: 500px) {
    .trend-legend-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* BETA notice + page title + intro + server-rendered default view (includes/ps-ssr.php).
   At <=767px .content-wrapper goes edge-to-edge (front.css) and each block
   brings its own 15px gutter, as .ps-navigation-header does; without this
   the title and intro sat flush against the screen edge on phones. From
   768px up the wrapper keeps its own 25px sides. */
@media (max-width: 767px) {
    .ps-page-intro {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* "How this projection is built" (includes/ps-method.php): the steps behind
   one projection, in words. Printed under the default player's tables in the
   page's first paint and under the live matchup table (#matchup-method). */
.ps-method {
    max-width: 900px;
    margin: 14px 0 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--tmb-gray-900);
}
/* Under the live table it is a row that opens on a click (Zach, 2026-11-01):
   the toggle is the title, so the block's own heading is not printed there. */
#matchup-method-row {
    border-top: 1px solid var(--tmb-gray-300);
    border-left: 3px solid var(--tmb-blue);
    background: var(--tmb-blue-50);
    border-radius: 0 0 .25rem .25rem;
}
/* The note on the highlighted stat ("Titans allow 131.1 rushing yards a
   game to RBs, 20.2 more than ..."): the strip's first line, above the toggle. */
#matchup-method-row .matchup-allow-note {
    margin: 0;
    padding: 7px 10px 6px;
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--tmb-blue-800);
    border-bottom: 1px solid color-mix(in srgb, var(--tmb-blue) 18%, transparent);
}
/* The Projected column and the row that explains it share one tint, so
   the two read as one thing (Zach, 2026-11-01): the column's cells on the
   pale blue under a blue rule, the toggle on the same blue with a blue edge
   and the column's name in its label. */
#matchup-content .table-bordered thead th:last-child {
    box-shadow: inset 0 -3px 0 var(--tmb-blue);
}
#matchup-content .table-bordered tbody td:last-child {
    background: var(--tmb-blue-50);
}
.matchup-method-toggle {
    appearance: none;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--tmb-blue-800);
    font-size: 0.78rem;
    font-weight: 600;
    text-align: left;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 0 0 .25rem .25rem;
}
.matchup-method-toggle .matchup-method-chip {
    display: inline-block;
    margin-right: 6px;
    padding: 1px 6px;
    border-radius: 3px;
    background: var(--tmb-blue);
    color: #fff;
    font-size: 0.66rem;
    letter-spacing: 0.02em;
}
.matchup-method-toggle:hover { color: var(--tmb-gray-900); }
.matchup-method-toggle::before {
    content: '\25B8';
    display: inline-block;
    width: 14px;
    transition: transform 0.15s;
}
.matchup-method-toggle[aria-expanded="true"]::before { transform: rotate(90deg); }
.matchup-method-toggle[aria-expanded="true"] { border-radius: 0; }
#matchup-method {
    background: #fff;
    border-radius: 0 0 .25rem 0;
}
#matchup-method .ps-method {
    max-width: none;
    margin: 0;
    padding: 10px 12px 12px;
}
#matchup-method .ps-method .ps-method-title { display: none; }
/* front.css gives every h3 a full-width rule and 15px of padding. */
.ps-method .ps-method-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 4px;
    padding-bottom: 0;
    border-bottom: 0;
}
.ps-method .ps-method-lede {
    margin: 0 0 8px;
    color: var(--tmb-gray-700);
}
.ps-method .ps-method-steps {
    margin: 0 0 8px;
    padding-left: 1.2rem;
}
.ps-method .ps-method-steps li {
    margin-bottom: 8px;
}
.ps-method .ps-method-faced {
    margin: 8px 0 2px;
}
/* .stats-table pins its first column for wide stat tables; this one is five
   short columns and reads better without the 110px minimum. */
.ps-method .ps-method-table thead th:first-child {
    min-width: 0;
}
.ps-method .ps-method-table thead th {
    white-space: normal;
}
.ps-method .ps-method-note {
    margin: 0;
    font-size: 0.78rem;
    color: var(--tmb-gray-600);
}
/* Under a rank: the figure the rank is of ("131.1 yds allowed"), small and
   grey, so 7th reads as a number at a glance (Zach, 2026-11-01). */
#matchup-tbody .rank-allow {
    display: block;
    font-size: 0.64rem;
    font-weight: 400;
    line-height: 1.1;
    color: var(--tmb-gray-600);
    white-space: nowrap;
}

/* ============================================================================
   SIMPLE VIEW (since 2026-11-09; ps-core.js SIMPLE VIEW). html.ps-simple is
   set by the page's Simple / Full switch (#ps-view-switch); it hides the
   filters, the teammate and opponent strips, the matchup table, the splits
   and the chart's legend and controls, and shows #ps-simple-card. Nothing
   here applies without the class, so a my-dashboards widget is untouched.
   ============================================================================ */
.ps-view-switch { display: inline-flex; gap: 4px; }
.ps-simple-card { display: none; }
html.ps-simple .ps-simple-card { display: block !important; }
html.ps-simple #without-player-section,
html.ps-simple #opponent-player-section,
html.ps-simple #team-filter-wrapper,
html.ps-simple .ps-filter-bar,
html.ps-simple .ps-props-hold,
html.ps-simple .ps-props-sharp,
html.ps-simple .matchup-body-row > .matchup-table-col,
html.ps-simple #trend-custom-legend,
html.ps-simple #trend-chart-section .card > .d-flex.px-3,
html.ps-simple #stats-container,
html.ps-simple #ps-placeholder,
html.ps-simple #placeholder-matchup,
html.ps-simple #btn-gamelog-toggle,
html.ps-simple #gamelog-container { display: none !important; }
html.ps-simple .matchup-body-row > .matchup-chart-col { max-width: 100%; flex: 1 1 100%; }

.ps-simple-card {
    background: var(--tmb-surface, white);
    border: 1px solid var(--tmb-gray-300);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 12px;
}
.ps-simple-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ps-simple-stat {
    border: 1px solid var(--tmb-gray-400);
    background: var(--tmb-surface, white);
    color: var(--tmb-gray-900);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
}
.ps-simple-stat:hover { background: var(--tmb-gray-100); }
.ps-simple-stat.ps-simple-stat.active { background-color: var(--tmb-switch-on) !important; border-color: var(--tmb-switch-on); color: #fff !important; opacity: 1; }

.ps-simple-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; margin-bottom: 10px; }
.ps-simple-line, .ps-simple-proj { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ps-simple-k { font-size: 0.8rem; font-weight: 700; color: var(--tmb-gray-700); text-transform: uppercase; letter-spacing: 0.02em; }
.ps-simple-v { font-size: 1.35rem; font-weight: 800; color: var(--tmb-gray-900); }
.ps-simple-src { font-size: 0.75rem; color: var(--tmb-gray-600); }
.ps-simple-diff { font-size: 0.85rem; font-weight: 700; color: var(--tmb-gray-700); }

.ps-simple-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; margin-bottom: 8px; }
.ps-simple-chip {
    border: 1px solid var(--tmb-gray-300);
    border-radius: 8px;
    padding: 6px 8px;
    text-align: center;
    background: var(--tmb-gray-100);
}
.ps-simple-chip-label { font-size: 0.7rem; font-weight: 700; color: var(--tmb-gray-600); text-transform: uppercase; }
.ps-simple-chip-big { font-size: 1.2rem; font-weight: 800; color: var(--tmb-gray-900); line-height: 1.25; }
.ps-simple-chip-sub { font-size: 0.7rem; color: var(--tmb-gray-600); }
.ps-simple-chip.ps-simple-good { background: var(--tmb-success-bg); border-color: color-mix(in srgb, var(--tmb-green-700) 35%, transparent); }
.ps-simple-chip.ps-simple-good .ps-simple-chip-big { color: var(--tmb-green-700); }
.ps-simple-chip.ps-simple-bad { background: var(--tmb-danger-bg); border-color: color-mix(in srgb, var(--tmb-red-700) 35%, transparent); }
.ps-simple-chip.ps-simple-bad .ps-simple-chip-big { color: var(--tmb-red-700); }
.ps-simple-chip-empty { opacity: 0.6; }
.ps-simple-loading { font-size: 0.8rem; color: var(--tmb-gray-600); padding: 6px 0; }
.ps-simple-diff.ps-simple-good { color: var(--tmb-green-700); }
.ps-simple-diff.ps-simple-bad { color: var(--tmb-red-700); }

.ps-simple-avgs { font-size: 0.8rem; color: var(--tmb-gray-700); margin-bottom: 6px; }
.ps-simple-matchup { font-size: 0.85rem; color: var(--tmb-gray-900); margin-top: 4px; }
.ps-simple-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 1px 8px;
    margin-right: 4px;
    background: var(--tmb-gray-100);
    color: var(--tmb-gray-700);
    border: 1px solid var(--tmb-gray-300);
    vertical-align: 1px;
}
.ps-simple-tag.ps-simple-good { background: var(--tmb-success-bg); color: var(--tmb-green-700); border-color: transparent; }
.ps-simple-tag.ps-simple-bad { background: var(--tmb-danger-bg); color: var(--tmb-red-700); border-color: transparent; }
.ps-simple-note { font-size: 0.75rem; color: var(--tmb-warning-text, var(--tmb-gray-700)); background: var(--tmb-warning-bg-light, var(--tmb-gray-100)); border-radius: 6px; padding: 4px 8px; margin-top: 8px; }
.ps-simple-chart-key { display: none; }
html.ps-simple .ps-simple-chart-key { display: block; font-size: 0.72rem; color: var(--tmb-gray-600); padding: 4px 2px 0; }
@media (max-width: 767px) {
    .ps-simple-stats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
    .ps-simple-stat { flex: 0 0 auto; }
}
.ps-simple-chip-avg { font-size: 0.72rem; font-weight: 700; color: var(--tmb-gray-700); }
.ps-simple-chip-foot { font-size: 0.66rem; color: var(--tmb-gray-600); margin-top: 2px; line-height: 1.2; }
button.ps-simple-chip { font: inherit; width: 100%; cursor: pointer; }
/* front.css paints a hovered / focused button grey: a tapped chip keeps its tint */
button.ps-simple-chip.ps-simple-good { background: var(--tmb-success-bg) !important; }
button.ps-simple-chip.ps-simple-bad { background: var(--tmb-danger-bg) !important; }
.ps-simple-chip.ps-simple-vs, .ps-simple-chip.ps-simple-win { border-style: dashed; }
.ps-simple-chip.ps-simple-vs:hover, .ps-simple-chip.ps-simple-win:hover { border-color: var(--tmb-switch-on); }
/* The opponent-profile filter is the Full view's. */
html.ps-simple #opp-profile-note { display: none !important; }
/* "Add Similar": a button and a menu of checkboxes (ps-matchup-view.php). */
.ps-similar-dd { position: relative; }
.ps-similar-btn { width: auto; font-size: 0.78rem; cursor: pointer; white-space: nowrap; text-align: left; }
.ps-similar-btn.active { border-color: var(--tmb-switch-on); color: var(--tmb-switch-on); font-weight: 700; }
.ps-similar-menu {
    position: absolute; top: 100%; left: 0; z-index: 30; margin-top: 4px;
    min-width: 250px; padding: 8px 10px;
    background: var(--tmb-surface, white); border: 1px solid var(--tmb-gray-300);
    border-radius: 6px; box-shadow: 0 4px 14px var(--tmb-black-15);
}
.ps-similar-menu label { display: flex; align-items: center; gap: 6px; margin: 0; padding: 3px 0; font-size: 0.8rem; color: var(--tmb-gray-900); cursor: pointer; white-space: nowrap; }
.ps-similar-menu input { margin: 0; }
.ps-similar-head { font-size: 0.72rem; font-weight: 700; color: var(--tmb-gray-600); margin-bottom: 4px; }
.ps-similar-sub { font-size: 0.72rem; font-weight: 700; color: var(--tmb-gray-600); margin: 6px 0 2px; border-top: 1px solid var(--tmb-gray-300); padding-top: 6px; }

/* ==========================================================================
   BETA VIEW (since 2026-11-11; ps-core.js BETA VIEW). html.ps-beta comes with
   html.ps-simple, so the Simple view's hiding rules hold and these lay the
   card and the chart out another way. Outside the Beta view the new pieces
   are hidden and .ps-chart-main is display: contents (no layout of its own).
   ========================================================================== */
.ps-beta-teambar, .ps-beta-inj, .ps-beta-rail, .ps-beta-caption { display: none; }
.ps-chart-main { display: contents; }

/* The date and the game menu beside the player search */
html.ps-beta .ps-selector-row { display: none !important; }
html.ps-beta .ps-header-right { max-width: 920px !important; }
html.ps-beta .ps-header-right #date-picker { width: 140px !important; flex: 0 0 auto; }
html.ps-beta .ps-header-right .selector-game { flex: 0 0 auto; }
/* Wide enough for the game's time before the teams (Zach, 2026-12-02): "10:30 p.m. - Timberwolves @ Clippers" */
html.ps-beta .ps-header-right .selector-game select { width: 300px !important; min-width: 0 !important; }
@media (max-width: 767px) {
    /* Phone (Zach, 2026-11-30): the player search with the date beside it,
       then the game menu with the Filters button (.psb-game-row); the active
       filters' chips follow in the bar (TMB.filterPanel's mobileChips). */
    html.ps-beta .ps-header-right { flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: 6px 8px !important; }
    html.ps-beta .ps-header-right .input-group { flex: 1 1 0; min-width: 0; width: auto; }
    html.ps-beta .ps-header-right #date-picker { flex: 0 0 132px; width: 132px !important; }
    html.ps-beta .ps-header-right .psb-game-row { flex: 0 0 100%; }
    html.ps-beta .ps-header-right .selector-game { flex: 1 1 0; min-width: 0; }
    html.ps-beta .ps-header-right .selector-game select { width: 100% !important; }
}

/* "Show team" bars under the two headers, and the strips they open. The two
   panels are a subgrid of .ps-matchup-layout's rows: the bar is a third row
   (header, bar, strip), so the two bars line up across the panels. */
html.ps-beta .ps-matchup-layout { grid-template-rows: auto auto auto; }
/* Subtle (Zach, 2026-11-11): a thin centered line of text, no arrow; open = a colour change */
html.ps-beta .ps-beta-teambar {
    display: flex; align-items: center; justify-content: center;
    width: 100%; margin-top: 6px; padding: 2px 8px;
    font-size: 0.7rem; font-weight: 400; line-height: 1.4; color: var(--tmb-gray-600);
    /* !important: front.css paints every button var(--tmb-gray-300) !important */
    background: var(--tmb-gray-100) !important; border: 1px solid transparent; border-radius: 4px;
    cursor: pointer; text-align: center;
}
html.ps-beta .ps-beta-teambar i { display: none; }
html.ps-beta .ps-beta-teambar:hover { color: var(--tmb-gray-900); background: var(--tmb-gray-300) !important; }
html.ps-beta .ps-beta-teambar.open { color: white; background: var(--tmb-switch-on) !important; }
html.ps-beta .ps-beta-teambar.open:hover { background: color-mix(in srgb, var(--tmb-switch-on), black 10%) !important; }
html.ps-beta .ps-beta-teambar.psb-hint { border-color: var(--tmb-switch-on); animation: psb-pulse 1.1s ease-in-out 4; }
@keyframes psb-pulse {
    0%, 100% { box-shadow: 0 0 0 0 transparent; }
    50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--tmb-switch-on) 35%, transparent); }
}
/* Injuries switched on: the closed bars flash once (betaFlashTeamBars()) */
html.ps-beta .ps-beta-teambar.psb-flash { animation: psb-flash 1.2s ease-in-out 1; }
@keyframes psb-flash {
    /* an inset shadow, not background: the bar's background is !important */
    0%, 100% { box-shadow: inset 0 0 0 100px transparent, 0 0 0 0 transparent; }
    50% { color: white; box-shadow: inset 0 0 0 100px var(--tmb-switch-on), 0 0 0 4px color-mix(in srgb, var(--tmb-switch-on) 35%, transparent); }
}
html.ps-simple.ps-beta.ps-beta-team #without-player-section,
html.ps-simple.ps-beta.ps-beta-opp #opponent-player-section { display: block !important; }

/* The injuries switch and the key, under an open team */
html.ps-beta.ps-beta-team .ps-beta-inj,
html.ps-beta.ps-beta-opp .ps-beta-inj {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
    margin: 10px 0 4px; padding: 8px 12px;
    background: var(--tmb-gray-100); border: 1px solid var(--tmb-gray-300); border-radius: 8px;
}
html.ps-beta .ps-beta-inj.psb-hidden { display: none !important; }
.ps-beta-inj-hint { font-size: 0.75rem; color: var(--tmb-gray-600); }
.ps-beta-inj-key { display: none; }
html.ps-beta:not(.ps-beta-noinj) .ps-beta-inj-key {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px;
    width: 100%; font-size: 0.72rem; color: var(--tmb-gray-700);
}
.ps-beta-inj-how { color: var(--tmb-gray-600); }
.ps-beta-inj.psb-nudge { animation: psb-nudge 0.5s ease-in-out 2; border-color: var(--tmb-switch-on); }
@keyframes psb-nudge {
    0%, 100% { transform: none; }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}
/* Injuries off: a chip opens its player and toggles nothing */
html.ps-beta-noinj #without-player-strip .without-player-item:not(.nfl-roster-item),
html.ps-beta-noinj #opponent-player-strip .without-player-item { cursor: default !important; }
html.ps-beta-noinj .nfl-roster-status { opacity: 0.4; pointer-events: none; }

.ps-beta-switch { position: relative; display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; font-size: 0.82rem; font-weight: 700; color: var(--tmb-gray-900); }
.ps-beta-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ps-beta-switch-track { position: relative; flex: 0 0 auto; width: 34px; height: 18px; border-radius: 9px; background: var(--tmb-gray-400); transition: background 0.15s; }
.ps-beta-switch-track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: white; transition: left 0.15s; }
.ps-beta-switch input:checked + .ps-beta-switch-track { background: var(--tmb-switch-on); }
.ps-beta-switch input:checked + .ps-beta-switch-track::after { left: 18px; }
.ps-beta-switch input:focus-visible + .ps-beta-switch-track { outline: 2px solid var(--tmb-blue); outline-offset: 2px; }

/* The card: the odds under the stat pills, then the line box beside the rest */
html.ps-beta #ps-simple-card > #ps-props-strip { margin: 0 0 12px; }
/* The line box and the chart's filter rail are one width (Zach, 2026-11-11) */
html.ps-beta { --psb-left: 270px; }
html.ps-beta .psb-row { display: grid; grid-template-columns: var(--psb-left) minmax(0, 1fr); gap: 14px; align-items: start; }
/* The hit-rate chips under the line, inside the box */
html.ps-beta .psb-linebox .ps-simple-chips { width: 100%; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 6px; margin: 0; }
html.ps-beta .psb-linebox .ps-simple-chip { padding: 4px 6px; }
html.ps-beta .psb-linebox .ps-simple-chip-big { font-size: 1.05rem; }
html.ps-beta .psb-linebox .ps-simple-avgs { margin: 0; font-size: 0.72rem; }
html.ps-beta .psb-linebox .ps-simple-src { display: block; width: 100%; font-size: 0.68rem; line-height: 1.3; }
/* The odds where the chips were */
html.ps-beta .psb-right #ps-props-strip { margin: 0 0 10px; max-width: 100%; overflow-x: auto; }
html.ps-beta .psb-linebox {
    padding: 12px 14px; border: 2px solid var(--tmb-switch-on); border-radius: 10px;
    background: var(--tmb-blue-50);
}
html.ps-beta .psb-linebox .ps-simple-head { flex-direction: column; align-items: flex-start; gap: 10px; margin: 0; }
html.ps-beta .psb-linebox .ps-simple-v { font-size: 1.9rem; line-height: 1.1; }
html.ps-beta .psb-linebox .ps-simple-line,
html.ps-beta .psb-linebox .ps-simple-proj { gap: 4px 8px; }
.psb-proj-basis { font-size: 0.7rem; color: var(--tmb-gray-600); }
.psb-matchup-btn {
    display: block; width: 100%; margin-top: 4px; padding: 6px 8px;
    font: inherit; font-size: 0.85rem; text-align: left; color: var(--tmb-gray-900);
    background: none; border: 1px dashed var(--tmb-gray-300); border-radius: 6px; cursor: pointer;
}
.psb-matchup-btn:hover { border-color: var(--tmb-switch-on); }
.psb-matchup-more { font-size: 0.78rem; font-weight: 600; color: var(--tmb-blue); white-space: nowrap; }
@media (max-width: 767px) {
    html.ps-beta .psb-row { grid-template-columns: minmax(0, 1fr); }
}

/* The matchup (SOS) table, opened from the matchup line: moved under it while open (ps-core.js betaSosPlace) */
html.ps-simple.ps-beta.ps-beta-sos #ps-beta-sos-host > .matchup-table-col {
    display: block !important; flex: 1 1 100%; width: 100%; max-width: 100%;
    margin: 10px 0 14px; animation: psb-slide 0.25s ease-out;
}
@keyframes psb-slide { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* The game log beside the open matchup table (ps-core.js betaRenderLog): the
   table at its own width, the log in the room left; under it when none is. */
html.ps-simple.ps-beta.ps-beta-sos #ps-beta-sos-host { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 16px; overflow-x: visible; }
html.ps-simple.ps-beta.ps-beta-sos #ps-beta-sos-host > .matchup-table-col { flex: 0 1 auto; width: auto; min-width: 0; }
.ps-beta-gamelog { display: none; }
html.ps-beta.ps-beta-sos .ps-beta-gamelog:not(:empty) { display: block; flex: 1 1 360px; min-width: 0; margin: 10px 0 14px; animation: psb-slide 0.25s ease-out; }
.psb-gl-head { font-size: 0.8rem; font-weight: 700; color: var(--tmb-gray-900); margin: 0 0 4px 2px; }
.psb-gl-head span { font-weight: 400; color: var(--tmb-gray-600); }
.psb-gl-scroll { overflow: auto; max-height: 640px; border: 1px solid var(--tmb-gray-300); border-radius: .25rem; }
.psb-gl-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.8rem; }
.psb-gl-table th { position: sticky; top: 0; z-index: 1; padding: 6px 6px; background: var(--tmb-gray-900); color: white; font-weight: 600; text-align: center; white-space: nowrap; }
.psb-gl-table th[data-stat] { cursor: pointer; }
.psb-gl-table td { padding: 5px 6px; text-align: center; border-top: 1px solid var(--tmb-gray-300); white-space: nowrap; }
.psb-gl-table td[data-stat] { cursor: pointer; }
.psb-gl-table th:first-child, .psb-gl-table td:first-child { text-align: left; }
.psb-gl-table th.psb-gl-on { background: color-mix(in srgb, var(--tmb-chart-blue), var(--tmb-gray-900) 35%); }
.psb-gl-table td.psb-gl-on { background: color-mix(in srgb, var(--tmb-chart-blue) 28%, transparent); font-weight: 700; }
.psb-gl-table td.psb-gl-over { color: var(--tmb-green-700); }
.psb-gl-table td.psb-gl-under { color: var(--tmb-red-700); }

/* The chart with its filters on the left */
html.ps-beta .matchup-body-row > .matchup-chart-col {
    display: grid !important; grid-template-columns: var(--psb-left, 270px) minmax(0, 1fr); gap: 14px; align-items: start;
}
html.ps-beta .ps-chart-main { display: flex; flex-direction: column; min-width: 0; }
html.ps-beta .ps-beta-rail {
    display: block; padding: 10px; border: 1px solid var(--tmb-gray-300); border-radius: 8px;
    background: var(--tmb-surface);
}
html.ps-beta .ps-beta-rail:empty { display: none; }
@media (max-width: 767px) {
    html.ps-beta .matchup-body-row > .matchup-chart-col { grid-template-columns: minmax(0, 1fr); }
    /* Phone: the filters start collapsed; the Filters button by the game menu slides them open */
    html.ps-beta #psb-m-filters { display: inline-flex; flex: 0 0 auto; }
}
#psb-m-filters { display: none; }
/* A desktop window too narrow for the panel's column (TMB.filterPanel): the
   phone's layout, the rail in the sheet the Filters button opens */
html.ps-beta.psb-phone #psb-m-filters { display: inline-flex; flex: 0 0 auto; }
html.ps-beta.psb-phone .matchup-body-row > .matchup-chart-col { grid-template-columns: minmax(0, 1fr); }
.psb-game-row { display: contents; }
@media (max-width: 767px) {
    html.ps-beta .psb-game-row { display: flex; align-items: center; gap: 8px; width: 100%; }
    html.ps-beta .psb-game-row .selector-game { flex: 1 1 0; min-width: 0; }
}
.psb-rail-title { margin-bottom: 8px; font-size: 0.8rem; font-weight: 700; color: var(--tmb-gray-900); }
.psb-sec { margin-bottom: 12px; }
.psb-sec-k { margin-bottom: 4px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--tmb-gray-600); }
.psb-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.psb-pill {
    padding: 3px 9px; font-size: 0.74rem; line-height: 1.3; color: var(--tmb-gray-900);
    background: var(--tmb-surface); border: 1px solid var(--tmb-gray-300); border-radius: 12px; cursor: pointer;
}
.psb-pill:hover { border-color: var(--tmb-switch-on); }
/* doubled class + !important: a site-wide button.active rule outranks a plain one (as .ps-simple-stat.active) */
.psb-pill.psb-pill.active { color: white !important; background-color: var(--tmb-switch-on) !important; border-color: var(--tmb-switch-on); opacity: 1; }
.psb-check { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.psb-clear { padding: 0; font-size: 0.74rem; color: var(--tmb-blue); background: none; border: none; text-decoration: underline; cursor: pointer; }

/* What the chart shows */
html.ps-beta .ps-beta-caption:not(:empty) { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 0.75rem; }
.psb-cap-k { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; color: var(--tmb-gray-700); }
.psb-cap-chip {
    display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px;
    font-weight: 600; color: var(--tmb-gray-900);
    background: var(--tmb-blue-50); border: 1px solid var(--tmb-blue-200); border-radius: 12px;
}
.psb-cap-x { padding: 0 0 0 2px; font-size: 0.95rem; line-height: 1; color: var(--tmb-gray-600); background: none !important; border: none; box-shadow: none; margin-bottom: 0 !important; cursor: pointer; }
.psb-cap-x:hover { color: var(--tmb-red); }
.psb-cap-sum { margin-left: auto; color: var(--tmb-gray-700); }

/* The Beta view's line key under the chart: each line on / off (ps-core.js betaRenderKey) */
.ps-beta-key { display: none; }
html.ps-beta .ps-simple-chart-key { display: none !important; }
html.ps-beta .ps-beta-key:not(:empty) { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 2px 0; font-size: 0.72rem; }
.psb-key {
    display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px;
    font-size: 0.72rem; line-height: 1.4; color: var(--tmb-gray-600);
    background: var(--tmb-surface) !important; border: 1px solid var(--tmb-gray-300); border-radius: 12px;
    cursor: pointer; opacity: 0.55;
}
.psb-key.psb-key.active { color: var(--tmb-gray-900); border-color: var(--tmb-gray-600); opacity: 1; }
.psb-key:hover { border-color: var(--tmb-switch-on); opacity: 1; }
.psb-sw { display: inline-block; flex: 0 0 auto; width: 14px; height: 3px; border-radius: 2px; }
.psb-sw-avg { background: var(--tmb-chart-purple); }
.psb-sw-median { background: var(--tmb-chart-orange); }
.psb-sw-line { height: 0; border-top: 2px dashed var(--tmb-gray-900); }
.psb-sw-closes { background: var(--tmb-gold); height: 4px; }
.psb-sw-over, .psb-sw-under { width: 10px; height: 10px; }
.psb-sw-proj { height: 0; border-top: 2px dashed var(--tmb-chart-blue); }
.psb-sw-over { background: color-mix(in srgb, var(--tmb-green) 70%, transparent); }
.psb-sw-under { background: color-mix(in srgb, var(--tmb-red) 60%, transparent); margin-left: 6px; }
.psb-key-bars { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--tmb-gray-600); }

/* The rail's two switches side by side (Injuries, Position aware) */
.psb-switches { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 6px; }
.ps-beta-switch.psb-switch { font-size: 0.76rem; font-weight: 600; gap: 6px; }
.psb-switch .ps-beta-switch-track { width: 30px; height: 16px; border-radius: 8px; }
.psb-switch .ps-beta-switch-track::after { width: 12px; height: 12px; }
.psb-switch input:checked + .ps-beta-switch-track::after { left: 16px; }
.psb-dims-opt input[type="checkbox"], #filter-opp-only, #filter-current-team-only, #recency-weighted-toggle, .ps-similar-menu input[type="checkbox"] {
    -webkit-appearance: none; appearance: none; flex: 0 0 auto; width: 15px; height: 15px; margin: 0;
    border: 1.5px solid var(--tmb-gray-400); border-radius: 4px; background: var(--tmb-surface) center / 11px 11px no-repeat;
    cursor: pointer; vertical-align: -3px; transition: background-color 0.12s, border-color 0.12s;
}
.psb-dims-opt:hover input[type="checkbox"], label:hover > #filter-opp-only, label:hover > #filter-current-team-only, label:hover > #recency-weighted-toggle, .ps-similar-menu label:hover input[type="checkbox"] { border-color: var(--tmb-switch-on); }
.psb-dims-opt input[type="checkbox"]:checked, #filter-opp-only:checked, #filter-current-team-only:checked, #recency-weighted-toggle:checked, .ps-similar-menu input[type="checkbox"]:checked {
    border-color: var(--tmb-switch-on); background-color: var(--tmb-switch-on);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.4 2.4 4.6-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.psb-dims-opt input[type="checkbox"]:focus-visible, #filter-opp-only:focus-visible, #filter-current-team-only:focus-visible, #recency-weighted-toggle:focus-visible, .ps-similar-menu input[type="checkbox"]:focus-visible { outline: 2px solid var(--tmb-blue); outline-offset: 2px; }
.psb-dims-v { margin-left: auto; font-size: 0.66rem; color: var(--tmb-gray-600); white-space: nowrap; }
.psb-dims-v[class*="rankcolor"] { color: var(--tmb-gray-900); padding: 0 5px; border-radius: 3px; border: 1px solid var(--tmb-gray-300); font-variant-numeric: tabular-nums; }
.psb-dims-v small { font-size: 0.6rem; color: var(--tmb-gray-700); margin-left: 2px; }
.psb-rank-opt .psb-dims-v { margin-left: 0; }
#psb-rank-n { flex: 1; min-width: 60px; }

/* The matchup line under the chart; the two opponent sections */
.ps-beta-matchup { display: none; }
html.ps-beta .ps-beta-matchup:not(:empty) { display: block; margin-top: 8px; }
.psb-group { padding-top: 8px; border-top: 1px solid var(--tmb-gray-300); }
.psb-group-k { display: flex; align-items: center; gap: 6px; }
.psb-on { padding: 0 6px; font-size: 0.62rem; font-weight: 700; color: white; background: var(--tmb-switch-on); border-radius: 8px; text-transform: none; }
.psb-use { padding: 0 6px; font-size: 0.64rem; font-weight: 600; color: var(--tmb-blue); background: none !important; border: 1px solid var(--tmb-blue-200); border-radius: 8px; cursor: pointer; text-transform: none; }
.ps-beta-sos-host { max-width: 100%; overflow-x: auto; }

/* The card as one compact row, about the odds' height (Zach, 2026-11-11):
   the line box (line, book, L5 / Season) at its content's width, the odds beside it. */
html.ps-beta .psb-row { grid-template-columns: auto minmax(0, 1fr); align-items: stretch; }
html.ps-beta .psb-linebox { display: flex; align-items: center; gap: 12px; padding: 6px 12px; }
html.ps-beta .psb-linebox .ps-simple-head { gap: 2px; }
html.ps-beta .psb-linebox .ps-simple-line { flex-direction: column; align-items: flex-start; gap: 0; }
html.ps-beta .psb-linebox .ps-simple-v { font-size: 1.5rem; }
html.ps-beta .psb-linebox .ps-simple-src { width: auto; white-space: nowrap; cursor: help; }
html.ps-beta .psb-linebox .ps-simple-chips { display: flex; flex-wrap: nowrap; gap: 6px; width: auto; }
html.ps-beta .psb-linebox .ps-simple-chip { min-width: 74px; padding: 3px 8px; }
html.ps-beta .psb-linebox .ps-simple-chip-big { font-size: 0.95rem; line-height: 1.2; }
html.ps-beta .psb-linebox .ps-simple-chip-label, html.ps-beta .psb-linebox .ps-simple-chip-sub, html.ps-beta .psb-linebox .ps-simple-chip-avg { font-size: 0.64rem; line-height: 1.2; }
html.ps-beta .psb-right #ps-props-strip { margin: 0; }
@media (max-width: 767px) {
    html.ps-beta .psb-row { grid-template-columns: minmax(0, 1fr); }
}

/* The rail's two columns beside the chart (Zach, 2026-11-11): the basics
   with Ranked under them, then "Similar to"; they wrap where the room runs out. */
html.ps-beta .matchup-body-row > .matchup-chart-col { grid-template-columns: minmax(0, 7fr) minmax(0, 10fr); }
html.ps-beta .psb-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; align-items: start; }
html.ps-beta .psb-cols .psb-group { padding-top: 0; border-top: none; }
html.ps-beta .psb-col + .psb-col { border-left: 1px solid var(--tmb-gray-300); padding-left: 12px; }
html.ps-beta #ps-beta-sos-host { grid-column: 1 / -1; }
@media (max-width: 1199px) {
    html.ps-beta .matchup-body-row > .matchup-chart-col { grid-template-columns: minmax(0, 1fr); }
}
html.ps-beta .psb-col .psb-sec { margin-bottom: 8px; }

/* The uniform filter rail (Zach, 2026-11-11: "clearer and more uniform /
   parallel"): a labelled row a filter, each one segmented choice; the
   Opponent choice's panel (Similar or Ranked) in the second column, one shape
   for both. */
/* every row the same: the label above, the control under it, any (i) or link beside the control */
/* A row, its label, its segmented choice, the (i), a pair of rows and the
   Games slider are filter-panel.css (.tmb-fr-*, TMB.filterRows); here only
   this rail's own. */
.psb-frow-in > .psb-flabel { flex: 0 0 auto; }
.psb-frow-in { grid-template-columns: auto auto; justify-content: start; margin: 8px 0 0; }
.tmb-fr-seg.psb-seg-sm .tmb-fr-pill.tmb-fr-pill { padding: 2px 8px; font-size: 0.7rem; }
.psb-frow .psb-open-team { font-size: 0.7rem; }
.psb-clear-btn { margin-top: 2px; padding: 3px 12px; font-size: 0.72rem; color: var(--tmb-gray-700); background: var(--tmb-surface) !important; border: 1px solid var(--tmb-gray-300); border-radius: 6px; cursor: pointer; }
.psb-clear-btn:hover:not(:disabled) { border-color: var(--tmb-switch-on); color: var(--tmb-gray-900); }
.psb-clear-btn:disabled { opacity: 0.45; cursor: default; }
.psb-panel { padding: 10px; background: var(--tmb-gray-100); border: 1px solid var(--tmb-gray-300); border-radius: 8px; }
.psb-panel .psb-seg { background: var(--tmb-surface); }
.psb-panel .psb-dims-sel { margin: 0 0 6px; }
.psb-panel .psb-dims-list { background: var(--tmb-surface); border: 1px solid var(--tmb-gray-300); border-radius: 4px; padding: 2px 6px 4px; }
.psb-panel .psb-rank-add { margin-top: 0; }
.psb-result { margin-top: 8px; font-size: 0.72rem; line-height: 1.35; color: var(--tmb-gray-700); }
.psb-result.psb-warn { color: var(--tmb-red-700); }
.psb-rank-tbl-wrap { margin-top: 6px; max-height: 260px; overflow: auto; }
.psb-rank-tbl { width: 100%; border-collapse: collapse; font-size: 0.7rem; }
#ps-beta-rail .psb-rank-tbl th { position: sticky; top: 0; background: var(--tmb-surface); font-size: 0.62rem; font-weight: 700; text-transform: uppercase; color: var(--tmb-gray-600); text-align: right; padding: 2px 3px !important; border-bottom: 1px solid var(--tmb-gray-300); }
#ps-beta-rail .psb-rank-tbl th:first-child, #ps-beta-rail .psb-rank-tbl td:first-child { text-align: left; }
#ps-beta-rail .psb-rank-tbl td { padding: 2px 3px !important; font-size: 0.7rem; line-height: 1.35; border: 0; text-align: right; white-space: nowrap; color: var(--tmb-gray-900); }
#ps-beta-rail .psb-rank-tbl tr.psb-rank-out td { border-top: 1px dashed var(--tmb-gray-300); color: var(--tmb-gray-600); }
.psb-rank-tbl .psb-dims-v { margin-left: 0; }
.psb-panel-empty { padding: 22px 12px; font-size: 0.75rem; color: var(--tmb-gray-600); text-align: center; }

/* The filter DOCK (Zach, 2026-11-18: "like how the write up area works";
   ps-core.js psbDockSync). On a desktop #ps-beta-rail is moved into
   #psb-dock, a column at full height under the site's header against the
   left or right edge; TMB.pageShift moves the page over by its width
   (--psb-dock-w). Minimized it is a thin bar and the chart takes the page.
   Below the phone breakpoint the rail goes into a sheet that slides up.
   The dock's FRAME is styles/filter-panel.css (TMB.filterPanel); here only
   what it holds. */
.psb-dock .psb-dock-body .ps-beta-rail { padding: 0; border: none; background: none; }
.psb-dock .psb-rail-title { display: none; }
/* In a 360px column the rail's two columns stack, the panel under the basics */
.psb-dock .psb-cols { grid-template-columns: minmax(0, 1fr) !important; gap: 10px 0 !important; }
.psb-dock .psb-col + .psb-col { border-left: none !important; padding-left: 0 !important; border-top: 1px solid var(--tmb-gray-300); padding-top: 10px; }
/* The chart column with the rail docked: the chart alone, full width */
html.ps-beta.ps-beta-docked .matchup-body-row > .matchup-chart-col { grid-template-columns: minmax(0, 1fr) !important; }
/* A rail choice that has nothing to show yet (Post All-Star before the game) */

/* The Alt lines pill under the props strip's stat title, "Points" (staff and
   active cappers; ps-core.js populateBookDropdown() / psAltOpen(), the panel
   is scripts/alt-lines.js). The head stacks the title over it. */
.ps-props-head { flex-direction: column; align-items: flex-start; }
.ps-props-head .ps-alt-btn.tmb-pill { margin: 4px 0 0 !important; min-height: 20px; padding: 1px 8px; font-size: 11px; font-weight: 500; white-space: nowrap; }
/* Clear filters at the top of the rail, over the rows it clears */
.psb-clear-row { margin: 0 0 10px; }
.psb-clear-row .psb-clear-btn { margin-top: 0; }
/* Docked: Clear all sits beside "Filters (n)" in the dock's header */
.psb-dock .psb-clear-row { display: none; }
/* Two short rows on one line (All-Star beside Cup final) */

/* The Games slider (1 to every game the chart can show; Zach, 2026-11-24) */

/* A wider dock lays the filters side by side (Zach, 2026-11-24: "if someone
   stretches the panel wider the filters will go onto the same line"). The dock's
   body is the container, so this follows the dragged width, not the window. Each
   filter keeps its label over its choice and takes its own width; they wrap as
   the room runs out. The Similar / Ranked panel stays under them. */
.psb-dock .psb-dock-body { container-type: inline-size; container-name: psbdock; }
@container psbdock (min-width: 440px) {
    .psb-dock .psb-cols > .psb-col:first-child { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 18px; }
    .psb-dock .psb-cols > .psb-col:first-child > .psb-frow { flex: 0 0 auto; max-width: 100%; }
    .psb-dock .psb-cols > .psb-col:first-child > .psb-frow-pair { display: contents; }
    .psb-dock .psb-cols > .psb-col:first-child > .psb-frow-games { flex: 1 1 260px; }
}

/* Phone, Beta view: the player and his opponent are ONE line ("Caleb Williams  vs  Saints"),
   two halves; the Show-team bars sit under each half and an opened strip takes the full row.
   The two panels' children become the layout grid's items (display: contents). */
@container (max-width: 768px) {
    html.ps-beta .ps-matchup-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; gap: 6px 10px; padding: 0 12px; }
    html.ps-beta #future-game-label { display: none !important; }
    html.ps-beta .ps-matchup-left, html.ps-beta .ps-matchup-right:not([style*="none"]) { display: contents !important; }
    html.ps-beta .ps-matchup-left > .ps-panel-header { grid-column: 1; grid-row: 1; }
    html.ps-beta .ps-matchup-left > .ps-beta-teambar { grid-column: 1; grid-row: 2; }
    html.ps-beta .ps-matchup-left > #without-player-section { grid-column: 1 / -1; grid-row: 3; }
    html.ps-beta .ps-matchup-right > .ps-panel-header { grid-column: 2; grid-row: 1; position: relative; padding-left: 16px; min-width: 0; }
    html.ps-beta .ps-matchup-right > .ps-panel-header::before {
        content: 'vs'; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
        font-size: 0.75rem; font-weight: 700; color: var(--tmb-gray-600);
    }
    html.ps-beta .ps-matchup-right > .ps-beta-teambar { grid-column: 2; grid-row: 2; }
    html.ps-beta .ps-matchup-right > #opponent-player-section { grid-column: 1 / -1; grid-row: 4; }
    html.ps-beta .ps-matchup-layout .player-header { margin-top: 8px; gap: 6px; padding: 0 !important; }
    html.ps-beta .ps-matchup-layout .player-header img { width: 38px !important; height: 38px !important; }
    html.ps-beta .ps-matchup-layout .player-header h2 { font-size: 0.92rem; line-height: 1.15; }
    html.ps-beta .ps-matchup-layout .player-header .team-label { font-size: 0.7rem; }
    html.ps-beta .ps-matchup-layout .ps-beta-teambar { font-size: 0.7rem; white-space: normal; line-height: 1.2; }
    html.ps-beta .ps-matchup-layout .ps-panel-header { min-width: 0; overflow: hidden; }
}

/* Phone: the filters pane slides up from the bottom (its frame is filter-panel.css) */
#psb-sheet .ps-beta-rail { display: block; padding: 0; border: none; background: none; }
#psb-sheet .psb-rail-title { display: none; }

/* Phone: the "Showing ..." line keeps the page's side padding */
@media (max-width: 767px) {
    html.ps-beta .ps-beta-caption:not(:empty) { padding-left: 16px; padding-right: 16px; }
    html.ps-beta #ps-beta-matchup, html.ps-beta #ps-beta-sos-host { padding-left: 16px; padding-right: 16px; }
}

/* "From Next Player Up" (ps-core.js renderNpuNote()): what a link from the
   matchup page's block carried, under the player header. */
.ps-npu-note {
    position: relative; margin: 8px 0; padding: 7px 30px 7px 12px;
    background: var(--tmb-blue-50); border: 1px solid var(--tmb-blue-200); border-radius: 6px;
    font-size: 0.8rem; color: var(--tmb-gray-900);
}
.ps-npu-note > .fas { color: var(--tmb-blue); margin-right: 4px; }
.ps-npu-note .ps-npu-note-sub { display: block; font-size: 0.72rem; color: var(--tmb-gray-600); margin-top: 2px; }
.ps-npu-note .ps-npu-note-x {
    position: absolute; top: 4px; right: 6px; border: 0; background: none;
    font-size: 1rem; line-height: 1; color: var(--tmb-gray-600); cursor: pointer; padding: 2px 4px;
}

/* ---- Beta view (Zach, 2026-11-24) ---------------------------------------
   Suggested searches under "Matched up against": a chip sets Similar or
   Ranked for the chart's stat (ps-core.js betaSuggestions). */
.psb-suggest { flex: 0 0 100%; display: flex; flex-wrap: wrap; gap: 4px; margin: 1px 0 3px; }
.psb-suggest-chip {
    padding: 2px 9px; font: inherit; font-size: 0.7rem; font-weight: 600; line-height: 1.5;
    color: var(--tmb-blue); background: white; border: 1px solid var(--tmb-blue-200); border-radius: 12px; cursor: pointer;
}
.psb-suggest-chip:hover { border-color: var(--tmb-blue); }
/* front.css paints a focused / hovered button grey: the chip keeps its own fill */
#ps-beta-rail .psb-suggest-chip { background: white !important; }
#ps-beta-rail .psb-suggest-chip.active { color: white; background: var(--tmb-switch-on) !important; border-color: var(--tmb-switch-on); }
.psb-odds-toggle:focus { background: white; }

/* The odds: Consensus alone beside the box, "All odds" opens every book as a
   row of its own above it (html.psb-odds-open, ps-core.js betaArrangeCard). */
html.ps-beta .psb-right { display: flex; align-items: flex-start; gap: 6px; min-width: 0; }
html.ps-beta .psb-right > #ps-props-strip { flex: 0 1 auto; min-width: 0; }
.psb-odds-toggle {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; margin-top: 2px;
    padding: 2px 8px; font: inherit; font-size: 0.7rem; font-weight: 600; white-space: nowrap;
    color: var(--tmb-gray-700); background: white; border: 1px solid var(--tmb-gray-300); border-radius: 10px; cursor: pointer;
}
.psb-odds-toggle:hover { color: var(--tmb-blue); border-color: var(--tmb-blue); }
.psb-odds-toggle i { font-size: 0.65rem; }
html.ps-beta:not(.psb-odds-open) .psb-row { grid-template-columns: minmax(0, 1fr); }
html.ps-beta:not(.psb-odds-open) .psb-right { display: none; }
/* "See all odds" under the line (ps-core.js renderSimpleCard) */
html.ps-beta .psb-linebox .psb-odds-see { margin-top: 4px; }
html.ps-beta.psb-odds-open .psb-row { grid-template-columns: minmax(0, 1fr); }
html.ps-beta.psb-odds-open .psb-right { margin-top: 8px; } /* under the line box (Zach, 2026-11-25) */
html.ps-beta.psb-odds-open .psb-right > #ps-props-strip { flex: 1 1 auto; }

/* The box holds the matchup table's row for the chart's stat (betaMatchupStatsHtml) */
html.ps-beta .psb-linebox { flex-wrap: wrap; }
/* The figures stay on ONE line in every sport (Zach, 2026-11-25): one row,
   no wrap, its type scaled by --psb-ms-s, which ps-core.js fitMatchupStats()
   steps down from 1 until the row fits (0.72 at the least, then
   .psb-ms-wrap). Beside the line and the chips while 560px is left there,
   else on a row of their own under them (min-width 0: the row never asks
   for its unwrapped width). */
.psb-mstats {
    --psb-ms-s: 1;
    flex: 1 1 560px; min-width: 0; display: flex; flex-wrap: nowrap; gap: 8px calc(18px * var(--psb-ms-s)); align-items: flex-start;
    padding-left: 16px; border-left: 1px solid var(--tmb-gray-300);
}
.psb-mstats.psb-ms-wrap { flex-wrap: wrap; }
/* Desktop: the figures spread over the box's whole width, Projected at its
   right edge; the gap above is the least they keep, and fitMatchupStats()
   only scales the type down once that is used up (Zach, 2026-12-01). */
.psb-mstats:not(.psb-ms-phone):not(.psb-ms-wrap) { justify-content: space-between; }
/* Desktop: the hit-rate chips (L5, L10, Season, vs ...) share the width the
   same way: equal chips across their row, type and padding shrinking with it
   (cqi of the row). Beside the figures they take a quarter of the spare room
   (the figures grow 3 to their 1); on a row of their own with the line they
   fill it (Zach, 2026-12-01). */
@media (min-width: 768px) {
    html.ps-beta .psb-linebox .ps-simple-chips { flex: 1 1 340px; min-width: 280px; container-type: inline-size; gap: clamp(4px, 1.2cqi, 8px); }
    html.ps-beta .psb-linebox .ps-simple-chip { flex: 1 1 0; min-width: 0; padding: 3px clamp(4px, 1.5cqi, 10px); }
    html.ps-beta .psb-linebox .ps-simple-chip-big { font-size: clamp(0.85rem, 0.6rem + 1.2cqi, 1.1rem); }
    html.ps-beta .psb-linebox :is(.ps-simple-chip-label, .ps-simple-chip-sub, .ps-simple-chip-avg, .ps-simple-chip-foot) { font-size: clamp(0.58rem, 0.48rem + 0.5cqi, 0.7rem); }
    html.ps-beta .psb-linebox .psb-mstats:not(.psb-ms-phone) { flex-grow: 3; }
}
/* Phone (ps-core.js fitMatchupStats, Zach, 2026-11-25): four columns, the
   first four figures on one line, the rest behind the "More" strip */
/* Columns as wide as their figures (a wide "526th / 645" takes the room a
   "0.9" leaves), the spare space between them */
.psb-mstats.psb-ms-phone { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 8px calc(10px * var(--psb-ms-s)); }
/* Projected is the fourth shown (Zach, 2026-11-25): first three, Projected, then the rest */
.psb-mstats.psb-ms-phone:has(.psb-ms-proj) > .psb-ms-cell:nth-child(n+4) { order: 2; }
.psb-mstats.psb-ms-phone > .psb-ms-cell.psb-ms-cell.psb-ms-cell:has(.psb-ms-proj) { order: 1; }
.psb-mstats.psb-ms-phone:not(.psb-ms-open):not(:has(.psb-ms-proj)) > .psb-ms-cell:nth-child(n+5),
.psb-mstats.psb-ms-phone:not(.psb-ms-open):has(.psb-ms-proj) > .psb-ms-cell:nth-child(n+4):not(:has(.psb-ms-proj)) { display: none; }
.psb-ms-more { display: none; }
.psb-mstats.psb-ms-has-more + .psb-ms-more {
    flex: 0 0 100%; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; padding: 5px 0;
    font: inherit; font-size: 0.75rem; font-weight: 600; color: var(--tmb-gray-700);
    background: var(--tmb-surface, white); border: 1px solid var(--tmb-gray-300); border-radius: 6px; cursor: pointer;
}
.psb-mstats.psb-ms-has-more + .psb-ms-more i { font-size: 0.65rem; }
/* MLB lineup / pitcher view (ps-core.js matchupOverlayHead): the matchup
   table's 8th and 9th columns are blanked to "—" there, so they are hidden */
table.ps-mlb-overlay > thead > tr > th:nth-child(8), table.ps-mlb-overlay > thead > tr > th:nth-child(9),
table.ps-mlb-overlay > tbody > tr > td:nth-child(8), table.ps-mlb-overlay > tbody > tr > td:nth-child(9) { display: none; }
.psb-ms-cell { cursor: default; }
.psb-ms-cell[title] { cursor: help; }
.psb-ms-k { font-size: calc(0.74rem * var(--psb-ms-s)); font-weight: 600; color: var(--tmb-gray-700); white-space: nowrap; }
/* Every figure centred on one line with Projected's box (Zach, 2026-11-25) */
.psb-ms-v { display: flex; align-items: center; min-height: 2.2rem; font-size: calc(1.2rem * var(--psb-ms-s)); font-weight: 800; line-height: 1.2; color: var(--tmb-gray-900); white-space: nowrap; }
.psb-ms-success { color: var(--tmb-green-700); }
.psb-ms-danger { color: var(--tmb-red-700); }
.psb-ms-muted { color: var(--tmb-gray-600); font-weight: 600; }
/* Projected stands out (Zach, 2026-11-25): bigger, on a white card edged in its own colour */
.psb-ms-proj {
    display: inline-flex; box-sizing: border-box; height: 2.2rem; padding: 0 calc(10px * var(--psb-ms-s)); font-size: calc(1.45rem * var(--psb-ms-s)); font-weight: 800;
    background: white; border: 2px solid currentColor; border-radius: 6px;
}
.psb-ms-cell:has(.psb-ms-proj) .psb-ms-k { color: var(--tmb-gray-900); font-weight: 700; }
@media (max-width: 767px) {
    html.ps-beta:not(.psb-odds-open) .psb-row { grid-template-columns: minmax(0, 1fr); }
    .psb-mstats { padding-left: 0; border-left: none; padding-top: 6px; border-top: 1px solid var(--tmb-gray-300); }
}
/* Similar and Ranked together (ps-core.js betaBoth): the combined result over the two panels */
.psb-both-note { margin-bottom: 10px; font-size: 0.78rem; border-color: var(--tmb-switch-on); }
.psb-both-note .psb-both-result { margin-top: 4px; }

/* The lines bar on a phone: compact, edge to edge (Zach, 2026-11-26; the
   Odds page's table had it first). A book chip's chart icon goes under its
   prices instead of beside them, the label, prices, Track + and gaps are
   smaller, Alt lines is a small "Alt" pill under the stat's name, and the bar
   runs to the screen's edges with its text on the page's 15px line. In the
   Beta layout the bar sits inside the card's 14px padding (from 15px), so it
   is pulled out by that; in the standard layout it already spans the
   section, and loses only its side borders and corners. A book chip
   127 -> 95px at 375px. */
@media (max-width: 767px) {
    #ps-props-strip {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        padding: 4px 15px;
        gap: 6px;
    }
    html.ps-beta #ps-simple-card #ps-props-strip {
        margin-left: -15px;
        margin-right: -15px;
        max-width: none;
    }
    #ps-props-strip .ps-props-head { flex-direction: column; align-items: flex-start; gap: 2px; }
    #ps-props-strip .ps-props-title { font-size: 0.72rem; }
    #ps-props-strip .ps-alt-btn.tmb-pill {
        font-size: 0 !important;   /* the label is drawn below; the button keeps its words for a screen reader */
        min-height: 13px;
        height: 13px;
        padding: 0 3px;
        margin: 0;
        line-height: 1;
    }
    #ps-props-strip .ps-alt-btn.tmb-pill::before { content: "Alt"; font-size: 9px; line-height: 11px; }
    #ps-props-strip .ps-props-table tbody { gap: 4px; }
    #ps-props-strip .tmb-chips .tmb-chip-label { padding: 4px 4px 0 !important; font-size: 0.6rem; }
    #ps-props-strip .tmb-chips .tmb-chip-label img { width: 12px; height: 12px; margin-right: 3px; }
    #ps-props-strip .tmb-chips .tmb-chip-body,
    #ps-props-strip .tmb-chips .tmb-chip-body:has(> .chart-icon) { padding: 1px 4px 2px !important; }
    #ps-props-strip .tmb-chips .tmb-chip-body > .chart-icon,
    #ps-props-strip .tmb-chips .tmb-chip-body:hover > .chart-icon,
    #ps-props-strip .tmb-chips .lm-active > .chart-icon {
        position: static;
        transform: none;
        display: block;
        margin: 1px auto 0;
        width: 10px;
        height: 10px;
    }
    #ps-props-strip .tmb-chips .tmb-chip-side { font-size: 0.66rem; gap: 3px; }
    #ps-props-strip .trk-add { width: 15px; height: 15px; line-height: 13px; font-size: 11px; }
}

/* The Game Log table on a phone: compact (Zach, 2026-11-26). Rows 31 -> 25px
   at 375px, smaller text and padding, and the pinned Date column 110 -> 53px
   (the season table's 110px header floor is for its split labels, not a
   date), its text on the page's 16px line. The table already spans the
   screen. front.css gives every cell 6px padding !important. */
@container (max-width: 767px) {
    #gamelog-table { font-size: 11px; }
    #gamelog-table thead th { padding: 4px !important; font-size: 10px; }
    #gamelog-table tbody td { padding: 3px 4px !important; }
    #gamelog-table thead th:first-child { min-width: 0; }
    #gamelog-table thead th:first-child,
    #gamelog-table tbody td:first-child { padding-left: 16px !important; }
}

/* The season stats table (the splits) on a phone, the same way: rows 30 ->
   24px, and the pinned Split column 158 -> 96px, its "(17 games)" hidden
   (.ps-split-games, ps-core.js): the GP / G column beside it, in every
   sport's table, says the same. */
@container (max-width: 767px) {
    #stats-table { font-size: 11px; }
    #stats-table thead th { padding: 4px !important; font-size: 10px; }
    #stats-table tbody td { padding: 3px 4px !important; }
    #stats-table thead th:first-child { min-width: 0; }
    #stats-table thead th:first-child,
    #stats-table tbody td:first-child { padding-left: 16px !important; }
    #stats-table .ps-split-games { display: none; }
}

/* The matchup table on a phone, the same way: rows 50 -> 25px and the table
   564 -> 510px wide at 375px. Its rows are a fixed 50px tall
   (ps-matchup-view.php's own style block, #matchup-tbody tr[data-stat] td),
   which comes later in the page, so this names #matchup-content too to win;
   the cells keep to one line ("56th / 115" wrapped). */
@container (max-width: 767px) {
    #matchup-content .table { font-size: 11px; }
    #matchup-content .table thead th { padding: 4px 3px !important; font-size: 10px; line-height: 1.2; }
    #matchup-content .table tbody td { padding: 3px 4px !important; white-space: nowrap; }
    #matchup-content .table :is(th, td):first-child { padding-left: 16px !important; }
    #matchup-content #matchup-tbody tr[data-stat] td { height: auto; }
}

/* The Beta filter sheet's Similar / Ranked stat list on a phone (the shared
   picker, filter-panel.css .tmb-op; here alone): rows 25 -> 19px and a
   360px list, so about 19 stats show at once where 9 did; less nesting
   padding (the second column kept a 12px indent and a border though the
   columns are stacked). Ranked keeps its own columns (.tmb-op-list-rk). */
@media (max-width: 767px) {
    html.ps-beta #ps-beta-rail .psb-col + .psb-col { border-left: 0; padding-left: 0; }
    #ps-beta-rail .tmb-op { padding: 6px; }
    #ps-beta-rail .tmb-op-list { padding: 0 4px 2px; max-height: 360px; }
    #ps-beta-rail .tmb-op .tmb-op-opt { margin: 0 -4px; padding: 2px 4px; font-size: 0.7rem; line-height: 1.3; }
    #ps-beta-rail .tmb-op-c1:not(.tmb-op-list-rk) .tmb-op-lhead,
    #ps-beta-rail .tmb-op-c1:not(.tmb-op-list-rk) .tmb-op-opt { grid-template-columns: minmax(0, 1fr) 66px; }
    #ps-beta-rail .tmb-op-v { padding: 0 3px; font-size: 0.64rem; }
    #ps-beta-rail .tmb-op-v small { font-size: 0.58rem; }
    #ps-beta-rail .tmb-op-name { gap: 4px; }
    /* Ranked: its rows 24 -> 22px (the High / Low pair keeps its 13px
       buttons and loses the frame's padding), and the teams it ranks a list
       of up to 360px, room for a Top 15-20 without scrolling. */
    #ps-beta-rail .tmb-op-list-rk .tmb-op-opt { padding: 1px 4px; }
    #ps-beta-rail .tmb-op-mini { padding: 0; }
    #ps-beta-rail .psb-rank-tbl td { padding: 1px 3px !important; line-height: 1.3; }
    #ps-beta-rail .psb-rank-tbl-wrap { max-height: 360px; }
}

/* The Beta card's matchup figures on a phone (.psb-ms-phone: four a row,
   ps-core.js fitMatchupStats; Zach, 2026-11-26): smaller labels and figures
   and less height a row (a figure's 2.2rem floor is 1.6rem), the Projected
   box to match, and a slimmer More / Less bar. The four in view 60 -> 49px,
   all nine 139px; the bar 30 -> 23px. --psb-ms-s still scales them. */
@media (max-width: 767px) {
    html.ps-beta .psb-mstats.psb-ms-phone { gap: 4px calc(8px * var(--psb-ms-s)); }
    html.ps-beta .psb-mstats.psb-ms-phone .psb-ms-k { font-size: calc(0.66rem * var(--psb-ms-s)); }
    html.ps-beta .psb-mstats.psb-ms-phone .psb-ms-v { min-height: 1.6rem; font-size: calc(1rem * var(--psb-ms-s)); }
    html.ps-beta .psb-mstats.psb-ms-phone .psb-ms-proj {
        height: 1.6rem;
        padding: 0 calc(8px * var(--psb-ms-s));
        font-size: calc(1.15rem * var(--psb-ms-s));
    }
    html.ps-beta .psb-mstats.psb-ms-phone.psb-ms-has-more + .psb-ms-more { margin-top: 4px; padding: 2px 0; font-size: 0.7rem; }
}

/* The Beta line box's top on a phone, the same way: the stat, its line and
   Hide / See odds on ONE row (a column of three until now, held to 82px
   wide), smaller, a row of its own; the hit-rate chips the row under it
   (below). After the column rule above, so it wins. */
@media (max-width: 767px) {
    html.ps-beta .psb-linebox { padding: 5px 10px; gap: 8px; }
    html.ps-beta .psb-linebox .ps-simple-head { flex: 1 1 100%; min-width: 0; }
    html.ps-beta .psb-linebox .ps-simple-line { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
    html.ps-beta .psb-linebox .ps-simple-k { font-size: 0.7rem; }
    html.ps-beta .psb-linebox .ps-simple-v { font-size: 1.25rem; }
    html.ps-beta .psb-linebox .psb-odds-see { margin-top: 0; padding: 1px 7px; font-size: 0.66rem; }
    /* The hit-rate chips (L5 / L10, Season ...): a row of their own under
       the line, sharing its width, each chip two short lines ("L5 60%" over
       "3/5 over avg 10.2 tap: L10"). Two chips 106 -> 38px tall (the Season
       chip was squeezed to 64px and three lines of figures). The ::after is
       the line break between the two (a flex item a whole row wide). */
    html.ps-beta .psb-linebox .ps-simple-chips { flex: 1 1 100%; display: flex; flex-wrap: nowrap; gap: 6px; width: 100%; }
    html.ps-beta .psb-linebox .ps-simple-chip {
        flex: 1 1 0;
        min-width: 0;
        padding: 2px 6px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: baseline;
        column-gap: 4px;
        line-height: 1.25;
    }
    html.ps-beta .psb-linebox .ps-simple-chip > * { margin: 0; }
    html.ps-beta .psb-linebox .ps-simple-chip :is(.ps-simple-chip-label, .ps-simple-chip-big) { order: 1; }
    html.ps-beta .psb-linebox .ps-simple-chip::after { content: ""; order: 2; flex-basis: 100%; height: 0; }
    html.ps-beta .psb-linebox .ps-simple-chip > :not(.ps-simple-chip-label):not(.ps-simple-chip-big) { order: 3; }
    html.ps-beta .psb-linebox .ps-simple-chip-big { font-size: 0.88rem; }
    html.ps-beta .psb-linebox :is(.ps-simple-chip-label, .ps-simple-chip-sub, .ps-simple-chip-avg, .ps-simple-chip-foot) { font-size: 0.6rem; }
}

/* The Beta chart on a phone: the card's side padding 20 -> 8px (the bars
   wider), the chart 260 -> 240px (ps-core.js psNarrowChart gives it less
   padding and smaller badges, so the bars get more of it than before), and
   a smaller key under it. */
@media (max-width: 767px) {
    html.ps-beta #trend-chart-section .card-body { padding: 4px 8px !important; }
    html.ps-beta .trend-chart-area { min-height: 240px !important; }
    html.ps-beta .ps-beta-caption:not(:empty) { margin-bottom: 4px; font-size: 0.7rem; }
    html.ps-beta .ps-beta-key:not(:empty) { gap: 4px; padding: 4px 12px 0; }
    html.ps-beta .psb-key { gap: 4px; padding: 1px 6px; font-size: 0.66rem; }
    /* The matchup under it: the "Neutral matchup ... See the matchup" button
       104 -> 66px (smaller text and padding), and the matchup table it opens
       edge to edge (its host's 16px sides doubled the table's own 16px). */
    html.ps-beta .psb-matchup-btn { padding: 4px 8px; font-size: 0.76rem; line-height: 1.35; }
    html.ps-beta .psb-matchup-btn .ps-simple-tag { padding: 0 6px; font-size: 0.62rem; }
    html.ps-beta .psb-matchup-btn .psb-matchup-more { font-size: 0.7rem; }
    html.ps-beta #ps-beta-sos-host { padding-left: 0; padding-right: 0; }
}

/* The Beta player header on a phone (the player and his opponent side by
   side): the headshot and the opponent's logo 70 -> 44px, smaller names,
   team lines and Matchup page / Write-up pills. 183 -> 134px at 375px. The
   sizes on the images and pills are inline styles: !important. */
@media (max-width: 767px) {
    html.ps-beta .ps-matchup-layout .player-header { gap: 6px; margin-top: 4px; }
    html.ps-beta :is(#player-headshot, #opponent-team-logo) { width: 44px !important; height: 44px !important; }
    html.ps-beta :is(#player-display-name, #opponent-team-name) { margin: 0 0 2px; font-size: 0.86rem; line-height: 1.2; }
    html.ps-beta #player-team-logo { width: 14px !important; height: 14px !important; margin-right: 3px !important; }
    html.ps-beta :is(#player-team-label, #opponent-team-city) { font-size: 0.7rem; }
    html.ps-beta .ps-matchup-layout .team-label-row { gap: 3px 4px !important; }
    html.ps-beta :is(#explore-team-btn, #ps-writeup-btn, #explore-opponent-btn) { padding: 1px 6px !important; font-size: 0.6rem !important; }
    html.ps-beta #future-game-label { font-size: 0.6rem !important; }
    /* The stat pills (Points, Rebounds ...: a row that scrolls sideways):
       27 -> 21px tall and narrower, so about 5 show at once where 4 did, the
       row out to the screen's edges through the card's 14px padding. */
    html.ps-beta #ps-simple-stats { gap: 4px; margin: 0 -14px 8px; padding: 0 14px 3px; }
    html.ps-beta #ps-simple-stats .ps-simple-stat { padding: 2px 9px; font-size: 0.72rem; }
}

/* ---- The bar across the top (feature filter_top_bar; the frame is
   filter-panel.css, .tmb-ft-*): here only what this page's pop-outs hold.
   The rail's rows as in the dock: one column, no rail box. ---- */
#psb-ftbar .ps-beta-rail { display: block; margin: 0; padding: 0; border: none; background: none; }
#psb-ftbar .psb-cols { display: block; }
html.ps-beta #psb-ftbar .psb-col + .psb-col { border: 0; padding: 0; }
#psb-ftbar .psb-panel, #psb-ftbar .tmb-op { margin-top: 0; }

/* Beta view: the opponent's rank against the player's position under each
   stat pill (ps-core.js betaPillRanks; Zach, 2026-11-30). The chip's colour
   is front.css's .rankcolor1-16. */
html.ps-beta #ps-simple-stats.psb-pr-on { align-items: stretch; gap: 5px; }
/* The pill is the stat's name over the rank, whose colour fills the whole
   bottom half; the selected pill's name is on dark grey, neutral beside the
   green-to-red of the ranks (Zach, 2026-11-30). */
html.ps-beta #ps-simple-stats.psb-pr-on .ps-simple-stat {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    border-radius: 8px; padding: 0; overflow: hidden; text-align: center;
}
html.ps-beta #ps-simple-stats.psb-pr-on .ps-simple-stat > .psb-pr-name { display: block; padding: 3px 10px 2px; }
html.ps-beta #ps-simple-stats .ps-simple-stat.ps-simple-stat.active {
    background-color: var(--tmb-gray-900) !important; border-color: var(--tmb-gray-900); color: var(--tmb-surface, white) !important;
}
.psb-pr {
    display: block; padding: 1px 8px 2px;
    font-size: 0.68rem; font-weight: 700; line-height: 1.35; color: var(--tmb-gray-900);
    border-top: 1px solid var(--tmb-black-10); font-variant-numeric: tabular-nums;
}
.psb-pr.psb-pr-none { background: var(--tmb-surface, white); color: var(--tmb-gray-500); font-weight: 400; }
.psb-pr-lead {
    display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end;
    padding: 4px 4px 4px 0; font-size: 0.66rem; line-height: 1.3; color: var(--tmb-gray-600);
    text-align: right; white-space: nowrap;
}
.psb-pr-lead b { font-size: 0.7rem; color: var(--tmb-gray-900); cursor: help; }
.psb-pr-cap { display: none; }
html.ps-beta .psb-pr-cap { display: block; margin: -4px 0 10px; font-size: 0.66rem; line-height: 1.4; color: var(--tmb-gray-600); }
.psb-pr-cap b { color: var(--tmb-gray-900); }
.psb-pr-ends { white-space: nowrap; }
/* Desktop: the pills share the row's whole width, and as it narrows their
   type and padding shrink with it (cqi of the row), so one row holds down to
   a row of about 1050px; under 1040px they are two even rows of 8. Capped at
   180px so a short last row (another sport's names) is not a few giant pills
   (Zach, 2026-12-01). A phone keeps its sideways scroll. */
@media (min-width: 768px) {
    html.ps-beta #ps-simple-stats.psb-pr-on { container-type: inline-size; }
    html.ps-beta #ps-simple-stats.psb-pr-on .ps-simple-stat { flex: 1 1 auto; max-width: 180px; }
    html.ps-beta #ps-simple-stats.psb-pr-on .ps-simple-stat > .psb-pr-name {
        padding: 3px clamp(3px, 0.6cqi, 10px) 2px; white-space: nowrap;
        font-size: clamp(0.66rem, 0.45rem + 0.4cqi, 0.8rem);
    }
    html.ps-beta #ps-simple-stats.psb-pr-on .psb-pr { padding-left: 3px; padding-right: 3px; font-size: clamp(0.6rem, 0.42rem + 0.3cqi, 0.68rem); }
    @container (max-width: 1040px) {
        html.ps-beta #ps-simple-stats.psb-pr-on .ps-simple-stat { flex: 1 1 calc(12.5% - 6px); max-width: none; }
    }
}
.psb-pr-ends i {
    display: inline-block; width: 70px; height: 7px; margin: 0 3px; border-radius: 4px; vertical-align: baseline;
    background: linear-gradient(90deg, var(--tmb-good-1), var(--tmb-good-8) 48%, var(--tmb-bad-1) 52%, var(--tmb-bad-8));
}
@media (max-width: 767px) {
    html.ps-beta #ps-simple-stats.psb-pr-on .ps-simple-stat > .psb-pr-name { padding: 2px 8px 1px; }
    html.ps-beta .psb-pr-cap { margin: 0 0 8px; }
}

/* Beta view: the key of the chance bars (ps-core.js CHANCE_BARS) */
.psb-key-chance { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; color: var(--tmb-gray-700); white-space: nowrap; cursor: help; }
.psb-key-chance b { color: var(--tmb-gray-900); }
.psb-sw.psb-sw-chance { width: 4px; height: 12px; border-radius: 1px; }

/* Beta view: the hover on a game of the chart (ps-core.js trendGameTipHtml) */
/* !important: the tip's own inline style sets 4px 8px and 11px */
#rank-badge-tooltip.psb-tip { padding: 12px 16px 13px !important; font-size: 13px !important; line-height: 1.35; border-radius: 6px !important; }
.psb-tip-h { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-weight: 700; font-size: 15px; margin-bottom: 7px; white-space: nowrap; }
.psb-tip-res { padding: 1px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; color: white; }
.psb-tip-won { background: var(--tmb-green-700); }
.psb-tip-lost { background: var(--tmb-red-700); }
.psb-tip-cl { margin: -3px 0 7px; font-size: 12px; opacity: 0.85; white-space: nowrap; }
.psb-tip-t .psb-tip-sub td { font-size: 12px; opacity: 0.75; }
.psb-tip-t .psb-tip-sub td:first-child { padding-left: 10px; }
.psb-tip-out { margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--tmb-white-20); }
.psb-tip-out-h { margin-bottom: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.75; white-space: nowrap; }
.psb-tip-out-h span { font-weight: 400; text-transform: none; letter-spacing: 0; }
.psb-tip-out-r { display: flex; align-items: center; gap: 8px; padding: 2px 0; white-space: nowrap; }
.psb-tip-out-n { flex: 1 1 auto; }
.psb-tip-out-r .psb-tip-v { font-weight: 700; font-variant-numeric: tabular-nums; }
.psb-tip-face { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; overflow: hidden; background: var(--tmb-white-20); }
.psb-tip-face img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.psb-tip-out-more { font-size: 11px; opacity: 0.7; }
.psb-tip-t { border-collapse: collapse; }
.psb-tip-t th { padding: 0 0 3px 10px; font-size: 11px; font-weight: 600; text-align: center; opacity: 0.75; white-space: nowrap; }
.psb-tip-t td { padding: 1px 0 1px 10px; white-space: nowrap; }
.psb-tip-t td:first-child { padding-left: 0; }
.psb-tip-t .psb-tip-v { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.psb-tip-t .psb-tip-main td { padding-bottom: 4px; }
.psb-tip-x { font-size: 12px; opacity: 0.8; }
.psb-tip-rk { display: block; min-width: 40px; padding: 0 6px; border-radius: 4px; font-size: 12px; font-weight: 700; text-align: center; color: var(--tmb-gray-900); font-variant-numeric: tabular-nums; }
/* the site's table rules (stripes, header fill) do not reach into the dark tip */
#rank-badge-tooltip .psb-tip-t, #rank-badge-tooltip .psb-tip-t thead, #rank-badge-tooltip .psb-tip-t tbody,
#rank-badge-tooltip .psb-tip-t tr, #rank-badge-tooltip .psb-tip-t th, #rank-badge-tooltip .psb-tip-t td {
    background: none !important; color: white; border: 0; width: auto;
}
#rank-badge-tooltip .psb-tip-t td .psb-tip-rk { color: var(--tmb-gray-900); }

/* Coming off (feature ps_situations): the last game in words over a chip a
   situation his team is in going into the viewed game (ps-core.js psSituRow).
   The chips are the site's .tmb-pill, each on or off by itself. */
.psb-situ-row { align-items: flex-start; }
.psb-situ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.psb-situ-last { font-size: 12px; color: var(--tmb-gray-700); line-height: 1.3; padding-top: 4px; }
.psb-situ-chips { display: flex; flex-wrap: wrap; gap: 6px; }
/* This game: a group a line (Spread / Moneyline, Total), its chips beside it;
   the chip his team's next game falls in carries a dot. */
.psb-line-group { display: flex; align-items: flex-start; gap: 8px; }
.psb-line-k { flex: 0 0 64px; font-size: 11px; font-weight: 600; color: var(--tmb-gray-600); text-transform: uppercase; letter-spacing: .03em; padding-top: 6px; }
.psb-line-chip.psb-line-now::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 5px; border-radius: 50%; background: var(--tmb-blue); vertical-align: middle; }
.psb-line-chip.psb-line-now.active::after { background: currentColor; }

/* ---- The stat pills and the line box, app-like (Zach, 2026-12-02: "those don't look great ... more app like
   both on desktop, mobile, and in the app"). After every rule above and with #ps-simple-card in the selector,
   so it outranks them (the desktop cqi sizing, the phone shrink, the two-tone pill).
   The stat pills: one rounded pill a stat, its name and, beside it, the opponent's rank as a small tag in the
   rank's colour (front.css .rankcolorN); the chosen stat dark. A phone scrolls the row sideways; wider, it wraps. */
html.ps-beta #ps-simple-card #ps-simple-stats.psb-pr-on { align-items: center; gap: 6px; }
html.ps-beta #ps-simple-card #ps-simple-stats.psb-pr-on .ps-simple-stat {
    flex: 0 0 auto; max-width: none; display: inline-flex; flex-direction: row; align-items: center; gap: 6px;
    height: 34px; padding: 0 6px 0 13px; border: 1px solid var(--tmb-gray-300); border-radius: 999px; overflow: visible;
    background: var(--tmb-surface, white) !important; color: var(--tmb-gray-900) !important;
    font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; box-shadow: none;
}
html.ps-beta #ps-simple-card #ps-simple-stats.psb-pr-on .ps-simple-stat:hover { border-color: var(--tmb-gray-500); }
html.ps-beta #ps-simple-card #ps-simple-stats.psb-pr-on .ps-simple-stat > .psb-pr-name { display: inline; padding: 0; font-size: 13px; white-space: nowrap; }
html.ps-beta #ps-simple-card #ps-simple-stats.psb-pr-on .psb-pr {
    display: inline-block; padding: 3px 7px; border: 0; border-radius: 999px;
    font-size: 11.5px; font-weight: 700; line-height: 1.2;
}
html.ps-beta #ps-simple-card #ps-simple-stats.psb-pr-on .psb-pr.psb-pr-none { padding: 3px 2px; background: none; color: var(--tmb-gray-500); }
html.ps-beta #ps-simple-card #ps-simple-stats.psb-pr-on .ps-simple-stat.ps-simple-stat.active {
    background: var(--tmb-gray-900) !important; border-color: var(--tmb-gray-900); color: var(--tmb-surface, white) !important;
}
html.ps-beta #ps-simple-card #ps-simple-stats.psb-pr-on .ps-simple-stat.active .psb-pr.psb-pr-none { color: var(--tmb-gray-400); }
@media (min-width: 768px) {
    html.ps-beta #ps-simple-card #ps-simple-stats.psb-pr-on { flex-wrap: wrap; }
}
html.ps-beta #ps-simple-card .psb-pr-cap { font-size: 12px; color: var(--tmb-gray-600); }

/* The line box: a plain white card. The stat and its line big, "See all odds" a link; the hit-rate tiles soft
   tints (no dashed edge), each its label and rate on one line and its counts under; the figures a small grey
   label over a bold number, Projected a tinted pill in its own colour; More a link. */
html.ps-beta #ps-simple-card .psb-linebox {
    padding: 14px 16px; gap: 12px 20px; background: var(--tmb-surface, white);
    border: 1px solid var(--tmb-gray-300); border-radius: 14px; box-shadow: 0 1px 3px var(--tmb-black-5);
}
html.ps-beta #ps-simple-card .psb-linebox .ps-simple-head { gap: 4px; }
html.ps-beta #ps-simple-card .psb-linebox .ps-simple-line { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
html.ps-beta #ps-simple-card .psb-linebox .ps-simple-k { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--tmb-gray-600); }
html.ps-beta #ps-simple-card .psb-linebox .ps-simple-v { font-size: 28px; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }
html.ps-beta #ps-simple-card .psb-linebox .psb-odds-see {
    margin: 0; padding: 0; border: 0; background: none !important; box-shadow: none;
    font-size: 13px; font-weight: 600; color: var(--tmb-blue);
}
html.ps-beta #ps-simple-card .psb-linebox .psb-odds-see:hover { text-decoration: underline; }
html.ps-beta #ps-simple-card .psb-linebox .ps-simple-chips { gap: 8px; }
html.ps-beta #ps-simple-card .psb-linebox .ps-simple-chip {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; column-gap: 6px;
    padding: 8px 12px; border: 0 !important; border-radius: 12px; text-align: left; line-height: 1.3;
    background: var(--tmb-gray-100);
}
html.ps-beta #ps-simple-card .psb-linebox .ps-simple-chip > * { margin: 0; }
html.ps-beta #ps-simple-card .psb-linebox .ps-simple-chip :is(.ps-simple-chip-label, .ps-simple-chip-big) { order: 1; }
html.ps-beta #ps-simple-card .psb-linebox .ps-simple-chip::after { content: ""; order: 2; flex-basis: 100%; height: 0; }
html.ps-beta #ps-simple-card .psb-linebox .ps-simple-chip > :not(.ps-simple-chip-label):not(.ps-simple-chip-big) { order: 3; }
html.ps-beta #ps-simple-card .psb-linebox .ps-simple-chip.ps-simple-good { background: var(--tmb-success-bg) !important; }
html.ps-beta #ps-simple-card .psb-linebox .ps-simple-chip.ps-simple-bad { background: var(--tmb-danger-bg) !important; }
html.ps-beta #ps-simple-card .psb-linebox button.ps-simple-chip:hover { box-shadow: inset 0 0 0 1.5px var(--tmb-black-10); }
html.ps-beta #ps-simple-card .psb-linebox .ps-simple-chip-label { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--tmb-gray-700); }
html.ps-beta #ps-simple-card .psb-linebox .ps-simple-chip-big { font-size: 20px; font-weight: 800; line-height: 1.15; }
html.ps-beta #ps-simple-card .psb-linebox :is(.ps-simple-chip-sub, .ps-simple-chip-avg) { font-size: 12px; }
html.ps-beta #ps-simple-card .psb-linebox .ps-simple-chip-foot { font-size: 11px; color: var(--tmb-gray-500); }
html.ps-beta #ps-simple-card .psb-mstats { border-color: var(--tmb-gray-300); }
html.ps-beta #ps-simple-card .psb-ms-k { font-size: calc(11px * var(--psb-ms-s)); font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--tmb-gray-600); }
html.ps-beta #ps-simple-card .psb-ms-v { min-height: 2rem; font-size: calc(21px * var(--psb-ms-s)); }
html.ps-beta #ps-simple-card .psb-ms-proj {
    height: auto; padding: 2px calc(10px * var(--psb-ms-s)); font-size: calc(22px * var(--psb-ms-s));
    border: 0; border-radius: 10px; background: color-mix(in srgb, currentColor 12%, transparent);
}
html.ps-beta #ps-simple-card .psb-ms-cell:has(.psb-ms-proj) .psb-ms-k { color: var(--tmb-gray-900); }
html.ps-beta #ps-simple-card .psb-mstats.psb-ms-has-more + .psb-ms-more {
    margin-top: 2px; padding: 4px 0; border: 0; background: none !important;
    font-size: 13px; font-weight: 600; color: var(--tmb-blue);
}
@media (max-width: 767px) {
    html.ps-beta #ps-simple-card .psb-linebox { padding: 12px 14px; gap: 10px; }
    html.ps-beta #ps-simple-card .psb-linebox .ps-simple-v { font-size: 24px; }
    html.ps-beta #ps-simple-card .psb-linebox .ps-simple-chip { padding: 7px 10px; }
    html.ps-beta #ps-simple-card .psb-linebox .ps-simple-chip-big { font-size: 17px; }
    html.ps-beta #ps-simple-card .psb-linebox :is(.ps-simple-chip-sub, .ps-simple-chip-avg) { font-size: 11.5px; }
    html.ps-beta #ps-simple-card .psb-mstats.psb-ms-phone { padding-top: 10px; gap: 6px calc(8px * var(--psb-ms-s)); }
    html.ps-beta #ps-simple-card .psb-mstats.psb-ms-phone .psb-ms-k { font-size: calc(10.5px * var(--psb-ms-s)); }
    html.ps-beta #ps-simple-card .psb-mstats.psb-ms-phone .psb-ms-v { min-height: 1.7rem; font-size: calc(18px * var(--psb-ms-s)); }
    html.ps-beta #ps-simple-card .psb-mstats.psb-ms-phone .psb-ms-proj { height: auto; font-size: calc(19px * var(--psb-ms-s)); }
}
html.ps-beta #ps-simple-card .psb-linebox .ps-simple-chip { align-content: flex-start; }
html.ps-beta #ps-simple-card .psb-mstats:not(.psb-ms-phone) { padding-left: 0; border-left: 0; }
@media (min-width: 768px) {
    html.ps-beta #ps-simple-card #ps-simple-stats.psb-pr-on { gap: 5px; }
    html.ps-beta #ps-simple-card #ps-simple-stats.psb-pr-on .ps-simple-stat { height: 30px; padding: 0 5px 0 11px; gap: 5px; }
    html.ps-beta #ps-simple-card #ps-simple-stats.psb-pr-on .ps-simple-stat > .psb-pr-name { font-size: 12.5px; }
    html.ps-beta #ps-simple-card #ps-simple-stats.psb-pr-on .psb-pr { padding: 2px 6px; font-size: 11px; }
}
/* Desktop: one row of pills (Zach, 2026-12-02), spread over the row's width; a row too narrow for them all scrolls
   sideways as on a phone, never a second row. */
@media (min-width: 768px) {
    html.ps-beta #ps-simple-card #ps-simple-stats.psb-pr-on { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 4px; padding-bottom: 2px; }
    html.ps-beta #ps-simple-card #ps-simple-stats.psb-pr-on::-webkit-scrollbar { display: none; }
    html.ps-beta #ps-simple-card #ps-simple-stats.psb-pr-on .ps-simple-stat { flex: 1 0 auto; justify-content: center; padding: 0 4px 0 9px; }
    html.ps-beta #ps-simple-card #ps-simple-stats.psb-pr-on .psb-pr { padding: 2px 5px; }
    html.ps-beta #ps-simple-card #ps-simple-stats.psb-pr-on .psb-pr-lead { flex: none; }
}
