/* Flat surfaces. Locked Pro previews deliberately retain their original styles. */
body {
    background-image: none !important;
}

:is(
    .matchup-header,
    .trend-over-card,
    .trend-under-card,
    .trend-even-card,
    .product-preview-shell,
    .featured-tier-preview,
    .public-cta,
    .featured-pricing-card,
    .auth-card,
    .account-card,
    .lab-filter-panel,
    .game-lab-filters,
    .game-log-chart,
    .chart-filter-toolbar,
    .current-streak-kpi,
    .matchup-game-lab-button,
    .legal-hero,
    .legal-callout,
    .streak-line-card,
    .compact-price-card,
    .simple-player-row
):not(:where([class*="locked"], [class*="locked"] *)) {
    background: #ffffff !important;
    box-shadow: none !important;
}

.compact-line-info:not(:where([class*="locked"], [class*="locked"] *)) {
    background: #eef7f3 !important;
    border-color: #b8d8cc !important;
    box-shadow: none !important;
}

.simple-player-row:not(:where([class*="locked"], [class*="locked"] *)):hover,
.matchup-game-lab-button:not(:where([class*="locked"], [class*="locked"] *)):hover {
    background: #f6f8f7 !important;
}

.chart-track:not(:where([class*="locked"], [class*="locked"] *)) {
    background: #edf2f4 !important;
    box-shadow: none !important;
}

.chart-over:not(:where([class*="locked"], [class*="locked"] *)) {
    background: #3fd2aa !important;
    box-shadow: none !important;
}

.chart-under:not(:where([class*="locked"], [class*="locked"] *)) {
    background: #ff4f6f !important;
    box-shadow: none !important;
}

.chart-push:not(:where([class*="locked"], [class*="locked"] *)) {
    background: #e9a93d !important;
    box-shadow: none !important;
}

.finder-streak-highlight:not(:where([class*="locked"], [class*="locked"] *)) {
    background: #eef7f3 !important;
    box-shadow: none !important;
}

.cold-streak-card .finder-streak-highlight:not(:where([class*="locked"], [class*="locked"] *)) {
    background: #fcf0f2 !important;
}

.game-log-chart:not(:where([class*="locked"], [class*="locked"] *))::after,
.chart-bar:not(:where([class*="locked"], [class*="locked"] *))::after {
    background: none !important;
    box-shadow: none !important;
}

/* Site-wide: remove bevel/glow treatments as well as gradient shading.
   The entire locked Pro subtree is exempt, including its pseudo-elements. */
*:not(:where([class*="locked"], [class*="locked"] *)),
*:not(:where([class*="locked"], [class*="locked"] *))::before,
*:not(:where([class*="locked"], [class*="locked"] *))::after {
    box-shadow: none !important;
}

.compact-line-info:not(:where([class*="locked"], [class*="locked"] *)) {
    background: #ffffff !important;
}

/* Steel-blue identity; visualizations retain their original palette. */
:root { --accent: #356A9A; --accent-ink: #24527D; }
:is([class*="chart"], [class*="graph"], .preview-bars, .preview-bar-over,
    .preview-bar-under, .legend-over, .legend-under, .legend-push) {
    --accent: #087f65;
}
.eyebrow, .public-kicker, .back-link { color: var(--accent-ink) !important; }
:is(.primary-public-button, .primary-button, .upgrade-button, .pricing-button,
    .auth-button, .filters button, .board-filter button, .lab-filter-panel button,
    .game-lab-filters button) {
    background: #356A9A !important;
    border-color: #356A9A !important;
    color: #17242d !important;
}
.player-market-tab.active, .game-lab-market-chip,
.mobile-bottom-nav a[aria-current="page"], .mobile-prop-section-nav a:first-child {
    color: #24527D !important;
    background: #eaf2f9 !important;
    border-color: #acc7df !important;
}
.compact-line-info { border-color: #acc7df !important; }
.finder-streak-highlight:not(:where([class*="locked"], [class*="locked"] *)) {
    background: #eaf2f9 !important;
}

:is(.pricing-primary-button, .auth-submit-button, .public-primary-link, .cta-button, .pricing-popular-label, .tier-switcher a.active, .inline-upgrade-prompt a) { color: #17242d !important; }

/* Keep the selected window's live totals beside its controls. */
.chart-window-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 0 0 16px;
}
.chart-window-toolbar .chart-tabs {
    margin: 0;
    min-width: 0;
    flex: 1 1 0;
    width: auto;
}
.chart-window-toolbar .chart-summary {
    flex: 0 0 auto;
    margin: 0 0 0 auto;
    font-size: clamp(1.125rem, 1.6vw, 1.5rem);
    font-weight: 800;
    line-height: 1.3;
    text-align: right;
}
@media (max-width: 700px) {
    .chart-window-toolbar { gap: 12px; }
    .chart-window-toolbar .chart-tabs { flex-basis: 100%; }
    .chart-window-toolbar .chart-summary { font-size: 1.125rem; }
}

/* White text keeps solid blue buttons legible. */
:is(.primary-public-button, .primary-button, .upgrade-button, .pricing-button,
.auth-button, .filters button, .board-filter button, .lab-filter-panel button,
.game-lab-filters button, .pricing-primary-button, .auth-submit-button,
.public-primary-link, .cta-button, .pricing-popular-label, .tier-switcher a.active,
.inline-upgrade-prompt a) { color: #ffffff !important; }

/* Fit each homepage headline phrase on one line at every screen width. */
.public-hero-copy { container-type: inline-size; }
.public-hero-copy h1 {
    font-size: clamp(1.5rem, 10.5cqw, 5.2rem) !important;
    line-height: 1.06 !important;
    white-space: nowrap;
}

/* Align the homepage introduction with the product example. */
.public-hero { align-items: start; }
.public-hero-copy > .eyebrow:first-child { margin-top: 0; }
.hero-research-sports { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--border); }
.hero-research-sports .eyebrow { margin: 0 0 12px; }
.hero-research-leagues { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.hero-research-leagues span { font-size: 1rem; font-weight: 800; color: var(--text); letter-spacing: .04em; }
@media (max-width: 600px) {
    .hero-research-sports { margin-top: 24px; padding-top: 18px; }
    .hero-research-leagues { gap: 12px 20px; }
}

/* Keep league coverage within the main homepage introduction. */
.hero-research-sports { margin-top: 20px; padding-top: 0; border-top: 0; }
.hero-research-sports .eyebrow { font-size: .9rem !important; margin-bottom: 12px; }
.hero-research-leagues span { font-size: 1.2rem; }
@media (max-width: 600px) {
    .hero-research-sports { margin-top: 18px; padding-top: 0; }
    .hero-research-leagues span { font-size: 1.1rem; }
}

/* Compact live board fills the space beneath the homepage introduction. */
.public-hero-copy .hero-board-card {
    display: block; width: 100%; max-width: none; margin: 28px 0 0;
    padding: 22px; border-radius: 16px;
}
.hero-board-card .eyebrow { margin: 0 0 8px; }
.hero-board-card h2 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 8px; }
.hero-board-card p { font-size: .85rem; margin: 0; }
.hero-board-card .live-board-metrics {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px; margin-top: 18px;
}
.hero-board-card .live-board-metrics div { min-width: 0; }
.hero-board-card .live-board-metrics strong { font-size: 1.8rem; line-height: 1.2; }
.hero-board-card .live-board-metrics span { margin-top: 4px; }
.public-hero + .public-section { padding-top: 0; }
@media (max-width: 600px) {
    .public-hero-copy .hero-board-card { padding: 18px; margin-top: 24px; }
}

/* Streak branding: player portrait followed by the team logo. */
.streak-player-brand-row { gap: 20px !important; flex-wrap: wrap; }
.streak-player-headshot { margin-left: 0 !important; }
.compact-streak-player-headshot { width: 54px; height: 54px; object-fit: contain; object-position: center bottom; flex-shrink: 0; }
@media (max-width: 600px) {
    .streak-player-brand-row { gap: 12px !important; }
    .streak-detail-hero .streak-player-headshot { width: 76px !important; height: 72px !important; }
    .streak-detail-hero .streak-player-team-logo { width: 48px !important; height: 48px !important; }
}

/* Circular portraits and balanced prop labels on streak detail headers. */
.streak-detail-hero .streak-player-headshot {
    width: 88px !important; height: 88px !important;
    border-radius: 50%; border: 1px solid var(--border);
    background: var(--panel-light); padding: 4px; box-sizing: border-box;
    object-fit: cover; object-position: center top; transform: none !important;
}
.streak-line-card { text-align: center; }
.streak-line-card > span { display: block; text-align: center; }
@media (max-width: 600px) {
    .streak-detail-hero .streak-player-headshot { width: 68px !important; height: 68px !important; }
}

/* Crop transparent source-image margins inside the portrait frame. */
.streak-portrait-frame {
    display: block; position: relative; width: 88px; height: 88px;
    flex: 0 0 88px; overflow: hidden; border-radius: 50%;
    border: 1px solid var(--border); background: var(--panel-light);
}
.streak-detail-hero .streak-portrait-frame .streak-player-headshot {
    position: absolute !important; width: 140% !important; height: 140% !important;
    max-width: none !important; left: -20% !important; top: -34% !important;
    right: auto !important; bottom: auto !important; margin: 0 !important;
    padding: 0 !important; border: 0 !important; border-radius: 0 !important;
    object-fit: contain !important; object-position: center bottom !important;
    background: transparent !important; transform: none !important;
}
@media (max-width: 600px) {
    .streak-portrait-frame { width: 68px; height: 68px; flex-basis: 68px; }
}

/* Match streak portrait framing on player research pages. */
.research-portrait-frame {
    display: block; width: 88px; height: 88px; overflow: hidden;
    border: 1px solid var(--border); border-radius: 50%;
    background: var(--panel-light); flex-shrink: 0;
}
.research-portrait-header { position: absolute; left: -28px; top: 46%; transform: translateY(-50%); }
.research-portrait-matchup { position: absolute; left: 0; bottom: 10px; width: 72px; height: 72px; }
.research-portrait-frame img.compact-header-player-headshot,
.research-portrait-frame img.matchup-headshot {
    position: absolute !important; width: 140% !important; height: 140% !important;
    max-width: none !important; left: -20% !important; top: -34% !important;
    right: auto !important; bottom: auto !important; margin: 0 !important;
    padding: 0 !important; border: 0 !important; border-radius: 0 !important;
    object-fit: contain !important; object-position: center bottom !important;
    background: transparent !important; transform: none !important;
}

@media (max-width: 768px) {
    .matchup-analysis .matchup-player-side .research-portrait-matchup {
        position: relative !important;
        inset: auto !important;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
        width: 68px !important;
        height: 68px !important;
        margin: 2px auto 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
        overflow: hidden !important;
    }

    .matchup-analysis .matchup-player-side
    .research-portrait-frame img.matchup-headshot {
        position: absolute !important;
        left: -20% !important;
        top: -34% !important;
        right: auto !important;
        bottom: auto !important;
        width: 140% !important;
        height: 140% !important;
        max-width: none !important;
        margin: 0 !important;
        object-fit: contain !important;
        object-position: center bottom !important;
    }

    .matchup-analysis .matchup-player-side .matchup-identity-row {
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        text-align: center !important;
    }
}
@media (max-width: 600px) {
    .research-portrait-header { width: 68px; height: 68px; left: 0; }
    .research-portrait-matchup { width: 64px; height: 64px; }
}

/* Research heading shares the chart column; sidebar begins alongside it. */
.research-main-column { container-type: inline-size; }
.research-main-column > .compact-research-header {
    width: 100%; min-width: 0; max-width: 100%; margin: 0;
    box-sizing: border-box;
    grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr) repeat(3, minmax(72px, 108px));
}
@container (max-width: 1100px) {
    .research-main-column > .compact-research-header {
        grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(72px, 108px)) !important;
    }
    .research-main-column > .compact-research-header > .compact-player-info { grid-column: 1 / -1; }
}
@container (max-width: 650px) {
    .research-main-column > .compact-research-header { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .research-main-column > .compact-research-header > .compact-header-matchup { grid-column: 1 / -1; }
}

/* Keep portrait and team branding inside the resized header. */
.research-main-column .compact-header-matchup {
    display: flex !important; align-items: center; justify-content: center;
    gap: 12px !important; transform: none !important; padding: 0 !important;
    width: 100% !important; min-width: 0 !important;
}
.research-main-column .compact-header-player-group {
    position: relative; padding-left: 96px !important; flex-shrink: 0;
}
.research-main-column .research-portrait-header { left: 0; top: 50%; }
.research-main-column .compact-header-player-headshot-placeholder { left: 0; top: 50%; }
@media (max-width: 600px) {
    .research-main-column .compact-header-player-group { padding-left: 76px !important; }
    .research-main-column .compact-header-matchup {
        gap: 8px !important;
    }
    .research-main-column
    .compact-header-player-group:has(.compact-header-player-headshot-placeholder) {
        grid-template-columns: 48px minmax(0, 72px) !important;
        width: 128px !important;
        padding-left: 0 !important;
    }
    .research-main-column
    .compact-header-player-group:has(.compact-header-player-headshot-placeholder)
    .compact-header-player-headshot-placeholder {
        width: 46px !important;
        height: 46px !important;
        transform: translateX(-10px) !important;
    }
    .research-main-column
    .compact-header-player-group:has(.compact-header-player-headshot-placeholder)
    .compact-header-player-headshot-placeholder svg {
        width: 38px !important;
        height: 38px !important;
    }
}

/* Center the combined portrait and team branding between identity and prices. */
.research-main-column > .compact-research-header {
    grid-template-columns: minmax(220px, auto) minmax(320px, 1fr) repeat(3, minmax(72px, 108px));
    column-gap: 16px;
}
.research-main-column .compact-header-matchup {
    justify-content: center !important;
}
@media (max-width: 600px) {
    .research-main-column .compact-header-matchup {
        justify-content: center !important;
    }
}
@container (max-width: 1100px) {
    .research-main-column > .compact-research-header {
        grid-template-columns: minmax(320px, 1fr) repeat(3, minmax(72px, 108px)) !important;
    }
}
@container (max-width: 650px) {
    .research-main-column > .compact-research-header { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* Match injury entries to the light no-injuries surface. */
.availability-item,
.availability-clear {
    background: rgba(53, 106, 154, 0.035) !important;
    background-image: none !important;
    border-color: rgba(53, 106, 154, 0.15) !important;
}

.allowance-table-scroll { overflow-x: auto; margin-top: 18px; }
.allowance-breakdown { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .85rem; }
.allowance-breakdown caption { text-align: left; color: var(--muted); font-size: .78rem; padding-bottom: 12px; }
.allowance-breakdown th, .allowance-breakdown td { text-align: right; padding: 12px 10px; border-bottom: 1px solid var(--border); }
.allowance-breakdown th:first-child { text-align: left; }
.allowance-breakdown thead th { color: var(--muted); font-size: .75rem; }
.allowance-breakdown th small { display: block; margin-top: 4px; color: var(--muted); font-weight: 400; font-size: .7rem; }
.allowance-league-comparison, .allowance-context { font-size: .85rem; line-height: 1.6; }
.opponent-allowance-panel > .muted { font-size: .78rem; color: var(--muted); }

/* Full-slate Game Lab team profiles */
.game-lab-slate-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.game-lab-slate-card{display:block;background:#fff;border:1px solid #c9d6e1;border-radius:18px;padding:22px;color:inherit;text-decoration:none}
.game-lab-slate-card:hover{border-color:#356a9a}
.game-lab-slate-card>header,.game-lab-card-records,.game-lab-card-scoring{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
.game-lab-slate-card>header{font-size:.8rem;color:#526c84;margin-bottom:18px}
.game-lab-card-records,.game-lab-card-scoring{border-top:1px solid #d6e0e8;padding-top:14px;margin-top:14px;font-size:.86rem}
.game-lab-card-records>div,.game-lab-card-scoring>div{flex:1}
.game-lab-card-records strong,.game-lab-card-scoring strong{display:block;font-size:1.2rem;color:#182630}
.game-lab-profile-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:20px;align-items:start}
.game-lab-profile-main,.game-lab-profile-sidebar{display:grid;gap:20px;min-width:0}
.game-lab-location-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:20px 0}
.game-lab-location-grid article{padding:18px;border:1px solid #d6e0e8;border-radius:12px;background:#f7f9fb}
.game-lab-location-grid article>strong{font-size:2rem;color:#356a9a}
.game-lab-team-table-scroll{overflow-x:auto}
.game-lab-team-table{width:100%;border-collapse:collapse;margin-top:20px}
.game-lab-team-table th,.game-lab-team-table td{padding:15px 12px;border-bottom:1px solid #d6e0e8;text-align:left}
.game-lab-team-table td{text-align:center;width:25%}
.game-lab-team-table thead th:not(:first-child){text-align:center}
.game-lab-team-table td strong{font-size:1.25rem}
.game-lab-team-table td small{display:block;color:#526c84;font-size:.75rem;margin-top:3px}
.game-lab-signal{border-top:1px solid #d6e0e8;padding-top:16px;margin-top:16px}
.game-lab-profile-header{margin-top:20px}
@media(max-width:1000px){.game-lab-profile-layout{grid-template-columns:1fr}.game-lab-profile-sidebar{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.game-lab-slate-grid,.game-lab-location-grid,.game-lab-profile-sidebar{grid-template-columns:1fr}.game-lab-slate-card{padding:16px}.game-lab-team-table th,.game-lab-team-table td{padding:12px 6px}}

.game-card-logo-matchup{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);align-items:center;gap:12px;margin:20px 0;text-align:center}
.game-card-logo-matchup>div{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0}
.game-card-logo-matchup img{width:64px;height:64px;object-fit:contain}
.game-card-logo-matchup span{font-size:.75rem;color:#526c84}
.game-lab-slate-card-top,.game-lab-slate-card-bottom{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:.8rem}
.game-lab-slate-card-bottom{margin-top:20px;color:#356a9a}
.game-lab-slate-filters{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:20px 0}
.game-lab-slate-filters input,.game-lab-slate-filters select{padding:10px;border:1px solid #c9d6e1;border-radius:8px;background:#fff;max-width:100%}

.game-lab-column-team{display:flex;flex-direction:column;align-items:center;gap:8px}.game-lab-column-team img{width:48px;height:48px;object-fit:contain}
.game-lab-overall-record{display:flex;align-items:baseline;gap:10px;margin:12px 0}.game-lab-overall-record strong{font-size:1.65rem;color:#182630}.game-lab-overall-record span{font-size:.85rem;color:#526c84}
.game-lab-card-records strong:not(:first-child){margin-top:12px}
.game-lab-injury-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:22px}.game-lab-injury-grid>div{min-width:0}.game-lab-injury-grid .availability-team-heading img{width:42px;height:42px;object-fit:contain}.game-lab-injury-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.game-lab-injuries .availability-injury{margin-top:10px}.game-lab-injuries .availability-clear small{display:block;margin-top:6px}
@media(max-width:650px){.game-lab-injury-grid{grid-template-columns:1fr}.game-lab-column-team img{width:38px;height:38px}}

.game-lab-location-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 0;border-bottom:1px solid #d6e0e8}.game-lab-location-row small{display:block;margin-top:5px;color:#526c84;font-size:.8rem}.game-lab-location-row b{font-size:1.5rem;color:#356a9a;white-space:nowrap}.game-lab-location-card>.data-note{display:block;margin-top:14px}
.game-lab-injuries .availability-item{border:1px solid rgba(53,106,154,.15);border-radius:12px;padding:14px;margin-top:10px;background:rgba(53,106,154,.035)}.game-lab-injuries .availability-item-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.game-lab-injuries .availability-item p{margin:8px 0;font-size:.85rem;color:#526c84}.game-lab-injuries .availability-item>small{display:block;font-size:.75rem;color:#526c84;margin-top:6px}.game-lab-injuries .availability-team-heading h3{margin:4px 0}

/* A single quiet plot surface; totals follow the tops of the actual bars. */
.game-log-chart:not(:where([class*="locked"], [class*="locked"] *)),
.streak-detail-chart:not(:where([class*="locked"], [class*="locked"] *)) {
    background: #edf2f4 !important;
}
.game-log-chart .chart-track:not(:where([class*="locked"], [class*="locked"] *)),
.streak-detail-chart .streak-chart-track:not(:where([class*="locked"], [class*="locked"] *)) {
    position: relative;
    overflow: visible;
    background: transparent !important;
    box-shadow: none !important;
}
.game-log-chart .chart-track .chart-value,
.streak-detail-chart .streak-chart-track .streak-chart-value {
    position: absolute;
    bottom: calc(var(--bar-height, 0px) + 8px);
    left: 50%;
    width: max-content;
    transform: translateX(-50%);
    margin: 0;
    line-height: 1.2;
    z-index: 3;
    pointer-events: none;
}
.game-log-chart .chart-bar {
    animation: none;
}

/* One full-width zero baseline shared by all bars in each plot. */
.game-log-chart, .streak-detail-chart { position: relative; }
.streak-detail-chart { overflow: hidden; }
.chart-zero-baseline {
    position: absolute;
    left: 0;
    height: 1px;
    background: #000 !important;
    z-index: 4;
    pointer-events: none;
}

/* Supporting factors share the matchup badge palette and use plain symbols. */
.supporting-factors-panel .sidebar-score.matchup-lean-box.matchup-lean-negative {
    background: rgba(255, 93, 115, 0.16) !important;
    border-color: transparent !important;
}
.supporting-factors-panel .sidebar-score.matchup-lean-box.matchup-lean-negative strong {
    color: #b4364c !important;
}
.supporting-factors-panel .supporting-factor-icon {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 16px;
    height: 22px;
    font-size: 1.15rem;
    line-height: 1;
}
.supporting-factors-panel .supporting-factor-risk .supporting-factor-icon {
    color: #9f2538 !important;
}
.supporting-factors-panel .supporting-factor-positive .supporting-factor-icon {
    color: #00856a !important;
}
.supporting-factors-panel .supporting-factor-context .supporting-factor-icon {
    color: #5e7180 !important;
}
.supporting-factors-panel .factor-balance-risk {
    color: #b4364c !important;
    background: rgba(180, 54, 76, 0.08) !important;
    border-color: rgba(180, 54, 76, 0.22) !important;
}

/* Keep sportsbook identity distinct from the quoted price. */
.offer-row .sportsbook-identity {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.offer-row .sportsbook-identity-logo {
    display: block;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    object-fit: contain;
}

/* Give the portrait more breathing room before the team matchup. */
.research-main-column .compact-header-player-group {
    padding-left: 128px !important;
}
@container (max-width: 650px) {
    .research-main-column .compact-header-player-group {
        padding-left: 112px !important;
    }
}

/* Keep the portrait beside the player name; team branding remains centered. */
.research-name-portrait-row{display:flex;align-items:center;gap:20px}
.research-name-portrait-row h1{margin:0;min-width:0}
.research-main-column .research-name-portrait-row .research-portrait-header,
.research-main-column .research-name-portrait-row .compact-header-player-headshot-placeholder{
 position:relative !important;left:auto !important;top:auto !important;
 transform:none !important;margin:0 !important;flex:0 0 88px;width:88px !important;height:88px !important;
}
.research-main-column .compact-header-player-group{padding-left:0 !important}
.research-main-column .compact-header-team-logo{width:68px !important;height:68px !important;object-fit:contain}
@media(max-width:600px){
 .research-name-portrait-row{gap:16px}
 .research-main-column .research-name-portrait-row .research-portrait-header,
 .research-main-column .research-name-portrait-row .compact-header-player-headshot-placeholder{
  flex-basis:68px;width:68px !important;height:68px !important;
 }
 .research-main-column .compact-header-team-logo{width:60px !important;height:60px !important}
}

/* Separate player identity and portrait; identify the best-price books. */
.research-name-portrait-row{gap:34px}
.compact-price-card .compact-price-book{
 display:flex;align-items:center;justify-content:center;gap:5px;
}
.compact-price-book img{width:18px;height:18px;object-fit:contain;flex:0 0 18px}
.compact-price-book span{min-width:0;overflow-wrap:anywhere}
@media(max-width:600px){.research-name-portrait-row{gap:24px}}

/* Larger book marks and a more relaxed player-name gap. */
.research-name-portrait-row{gap:48px}
.compact-price-card .compact-price-book{flex-direction:column;flex-wrap:nowrap;gap:3px}
.compact-price-book img{width:30px;height:30px;flex-basis:30px}
.compact-price-card{min-height:120px}
@media(max-width:600px){
 .research-name-portrait-row{gap:32px}
 .compact-price-book img{width:28px;height:28px;flex-basis:28px}
}

/* Emphasize the price labels with moderately enlarged book logos. */
.compact-price-book img{width:27px;height:27px;flex-basis:27px}
.compact-price-card>span{font-size:.85rem !important;font-weight:800 !important;line-height:1.35}
@media(max-width:600px){.compact-price-book img{width:27px;height:27px;flex-basis:27px}}

/* Keep every mobile prop header on one balanced visual grid. */
@media (max-width: 768px) {
  .compact-research-header .research-name-portrait-row {
    width: 100%;
    justify-content: space-between;
    gap: 16px;
  }

  .compact-research-header .research-name-portrait-row h1 {
    flex: 1 1 auto;
  }

  .compact-research-header .research-name-portrait-row .research-portrait-header,
  .compact-research-header .research-name-portrait-row .compact-header-player-headshot-placeholder {
    flex: 0 0 68px !important;
    margin-left: auto !important;
  }

  .compact-research-header .compact-header-matchup {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) !important;
    align-items: center !important;
    justify-content: stretch !important;
    gap: 8px !important;
  }

  .compact-research-header .compact-header-player-group,
  .compact-research-header .compact-header-opponent {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
  }

  .compact-research-header .compact-header-versus {
    width: 28px !important;
    min-width: 28px !important;
    justify-self: center !important;
    text-align: center !important;
  }

  .compact-research-header .compact-header-team {
    width: 100% !important;
    min-width: 0 !important;
  }

  .compact-research-header .compact-line-info,
  .compact-research-header .compact-price-card {
    width: 100% !important;
    height: 120px !important;
    min-height: 120px !important;
    box-sizing: border-box;
  }
}

/* Larger team captions remain readable without truncating longer names. */
.research-main-column .compact-header-team small{
 font-size:.81rem !important;line-height:1.35;max-width:120px;
 white-space:normal;overflow:visible;text-overflow:clip;
}
@media(max-width:600px){
 .research-main-column .compact-header-team small{font-size:13.5px !important}
}

/* Pack the researched market, line, and caption into one balanced stack. */
.compact-research-header .compact-line-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  height: 120px;
  min-height: 120px;
  padding: 12px !important;
}
.compact-research-header .compact-line-info > span,
.compact-research-header .compact-line-info > strong,
.compact-research-header .compact-line-info::after {
  position: static;
  inset: auto;
  margin: 0;
}
.compact-research-header .compact-line-info > span {
  display: block;
  width: 100%;
  overflow: visible;
  font-size: .72rem !important;
  line-height: 1.1;
  white-space: nowrap;
  text-overflow: clip;
  -webkit-line-clamp: unset;
}
.compact-research-header .compact-line-info > strong {
  font-size: 1.7rem;
}

/* Make horizontal overflow discoverable in the mobile Prop Market carousel. */
@media (max-width: 768px) {
  .player-market-tabs {
    padding-bottom: 12px !important;
    scrollbar-width: thin !important;
    scrollbar-color: #356a9a #dce5eb !important;
  }
  .player-market-tabs::-webkit-scrollbar {
    display: block !important;
    height: 6px;
  }
  .player-market-tabs::-webkit-scrollbar-track {
    background: #dce5eb;
    border-radius: 999px;
  }
  .player-market-tabs::-webkit-scrollbar-thumb {
    background: #356a9a;
    border-radius: 999px;
  }
}

/* Research Lab letter-grade colors. */
.lab-rating-block .lab-grade-positive{color:#00856a !important}
.lab-rating-block .lab-grade-middle{color:#b88700 !important}
.lab-rating-block .lab-grade-negative{color:#b4364c !important}

/* Daily slate sport navigation shared by Today's Board and Game Lab. */
.daily-sport-shortcuts { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:24px 0 18px; }
.daily-sport-shortcut { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 22px; border:1px solid #aac1d5; border-radius:10px; background:#fff; color:#326c9f; font-size:1rem; font-weight:800; text-decoration:none; }
.daily-sport-shortcut:hover { background:#eaf1f7; border-color:#326c9f; }
.daily-sport-shortcut.is-active { background:#326c9f; color:#fff; border-color:#326c9f; }
.daily-sport-shortcut:focus-visible { outline:3px solid #172832; outline-offset:3px; }
@media (max-width:600px) { .daily-sport-shortcuts { gap:8px; } .daily-sport-shortcut { padding:9px 16px; } }

/* Keep every prop label inside its current-line card, including narrow layouts. */
.compact-research-header .compact-line-info { min-width:0; box-sizing:border-box; container-type:inline-size; }
.compact-research-header .compact-line-info > span {
  max-width:100%; min-width:0; white-space:normal !important;
  overflow-wrap:anywhere; word-break:normal; text-wrap:balance;
  font-size:clamp(.58rem,13cqi,.72rem) !important;
  line-height:1.2; flex-shrink:0; text-overflow:unset;
}

/* Matchup portraits and opposing logos share a size and vertical center. */
@media (min-width:769px) {
 .matchup-analysis .compact-matchup-card { align-items:stretch; }
 .matchup-analysis .compact-matchup-card .matchup-side { position:relative; display:flex; flex-direction:column; justify-content:center; min-height:116px; }
 .matchup-analysis .compact-matchup-card .matchup-side:not(.matchup-player-side) { padding-right:82px; }
 .matchup-analysis .compact-matchup-card .research-portrait-matchup,
 .matchup-analysis .compact-matchup-card .matchup-headshot-placeholder { position:absolute !important; left:0 !important; top:50% !important; bottom:auto !important; width:72px !important; height:72px !important; margin:0 !important; transform:translateY(-50%) !important; }
 .matchup-analysis .compact-matchup-card .opponent-logo-stack { position:absolute; right:0; top:50%; width:72px; height:72px; transform:translateY(-50%); justify-content:center; }
 .matchup-analysis .compact-matchup-card .opponent-league-rank { position:absolute; bottom:calc(100% + 5px); white-space:nowrap; }
 .matchup-analysis .compact-matchup-card .matchup-team-logo { width:72px !important; height:72px !important; margin:0 !important; transform:none !important; object-fit:contain; object-position:center; }
}
@media (max-width:768px) {
 .matchup-analysis .compact-matchup-card .matchup-side { position:relative !important; padding-top:80px !important; }
 .matchup-analysis .compact-matchup-card .matchup-identity-row { position:static !important; }
 .matchup-analysis .compact-matchup-card .matchup-side .research-portrait-matchup,
 .matchup-analysis .compact-matchup-card .matchup-headshot-placeholder,
 .matchup-analysis .compact-matchup-card .opponent-logo-stack { position:absolute !important; left:50% !important; right:auto !important; top:0 !important; bottom:auto !important; width:68px !important; height:68px !important; margin:0 !important; transform:translateX(-50%) !important; }
 .matchup-analysis .compact-matchup-card .opponent-logo-stack { justify-content:center !important; }
 .matchup-analysis .compact-matchup-card .matchup-team-logo { width:68px !important; height:68px !important; object-fit:contain !important; object-position:center !important; margin:0 !important; transform:none !important; }
 .matchup-analysis .compact-matchup-card .opponent-league-rank { position:absolute; top:-16px; white-space:nowrap; font-size:9px !important; min-height:0; }
}

/* Keep VS centered when the two identity columns stretch to equal height. */
.matchup-analysis .compact-matchup-card > .versus-symbol {
  align-self:center !important; justify-self:center !important;
  display:flex; align-items:center; justify-content:center;
  margin:0 !important; position:static !important; transform:none !important;
}

/* Game Lab mobile sport shortcuts sit directly on the sandy page. */
@media (max-width:768px) {
 body[data-page="game_lab"] .daily-sport-shortcuts {
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
 }
}

/* Position-allowance difficulty beside the league rank. */
.allowance-rank-value { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.allowance-rank-pill { display:inline-flex; align-items:center; justify-content:center; padding:5px 12px; border-radius:999px; font-size:.75rem; font-weight:800; line-height:1.2; white-space:nowrap; }
.allowance-rank-difficult { color:#b92e49; background:#ffe5ea; }
.allowance-rank-moderate { color:#946500; background:#fff3cf; }
.allowance-rank-favorable { color:#007c61; background:#e1f7ef; }

/* Compact Game Lab comparisons on desktop; retain stacked mobile tables. */
.comparison-sample-summary { display:none; }
.game-lab-comparisons { display:grid;gap:20px;min-width:0; }
@media(min-width:1001px) {
 .game-lab-comparisons { grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px; }
 .game-lab-comparison { min-width:0;padding:20px !important; }
 .game-lab-comparison h2 { font-size:1.2rem;margin:10px 0 !important; }
 .game-lab-comparison .eyebrow { font-size:.65rem; }
 .game-lab-comparison .game-lab-team-table { margin-top:12px;table-layout:fixed; }
 .game-lab-comparison .game-lab-team-table th,.game-lab-comparison .game-lab-team-table td { padding:10px 7px;font-size:.8rem;overflow-wrap:anywhere; }
 .game-lab-comparison .game-lab-team-table th:first-child { width:46%; }
 .game-lab-comparison .game-lab-team-table td strong { font-size:1rem; }
 .game-lab-comparison .game-lab-column-team { gap:3px; }
 .game-lab-comparison .game-lab-column-team img { width:30px;height:30px; }
 .game-lab-comparison .comparison-game-count { display:none; }
 .game-lab-comparison .comparison-sample-summary { display:block;margin:4px 0;font-size:.72rem; }
 .game-lab-comparison>.data-note:last-child { font-size:.68rem;line-height:1.45;margin-bottom:0; }
}
.nba-position-filters { display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 6px; }
.nba-position-filter { display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;box-sizing:border-box;border:1px solid #bdcfdf;border-radius:9px;background:white;color:#356a9a;text-decoration:none;font-size:.8rem;font-weight:800; }
.nba-position-filter.is-active { background:#356a9a;color:white;border-color:#356a9a; }
.nba-position-filter:focus-visible { outline:3px solid #356a9a;outline-offset:3px; }
.nba-position-table caption { text-align:left;color:#526c84;font-size:.8rem;padding:0 0 12px; }
.nba-position-table th:first-child { width:20%; }
.nba-position-table td { width:40%; }
.nba-position-value { display:flex;gap:5px;align-items:baseline;justify-content:center; }
.nba-position-value>span { color:#526c84;font-size:.72rem; }
.nba-position-rank { display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin:7px 0; }
.nba-position-rank b { font-size:.85rem; }
.nba-position-rank .allowance-rank-pill { font-size:.68rem;padding:4px 9px; }
@media(max-width:650px) { .nba-position-table th,.nba-position-table td { padding:10px 5px;font-size:.8rem; } .nba-position-table td small { font-size:.65rem; } }

/* Equal desktop comparison cards and independently centered position ranks. */
@media(min-width:1001px) {
 .game-lab-comparisons { align-items:stretch; }
 .game-lab-comparison { height:100%;box-sizing:border-box; }
}
.nba-position-rank { position:relative;display:block;text-align:center;min-height:24px;line-height:1.2; }
.nba-position-rank>b { display:inline-block;font-size:1.25rem;line-height:1.2; }
.nba-position-rank>.allowance-rank-pill { position:absolute;left:calc(50% + 48px);top:50%;transform:translateY(-50%); }
@media(max-width:650px) {
 .nba-position-rank>.allowance-rank-pill { position:static;display:table;transform:none;margin:6px auto 0; }
}

/* Exact-stat position matchups are distinct from the overall matchup profile. */
.lab-position-matchup { display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:10px 0;border-top:1px solid #d6e0e8;color:#526c84;font-size:.75rem; }
.lab-position-matchup .allowance-rank-pill { font-size:.68rem;padding:4px 9px; }
.lab-filter-panel { grid-template-columns:repeat(auto-fit,minmax(155px,1fr)); }
.lab-filter-panel>input[type="search"] { min-width:0; }

@media(min-width:769px) {
 .lab-filter-panel>select[name="position_matchup"],.lab-filter-panel>select[name="sort"] { grid-column:span 2;min-width:0; }
}

.supporting-factor-preview h2 { font-size:1.1rem; }
.supporting-preview-lock { margin-top:16px;padding:20px 14px;text-align:center;background:#e9ecef;border:1px solid #cdd5dc;border-radius:12px;color:#526c84; }
.supporting-preview-lock .large-lock { display:block;margin:12px 0;font-size:1.5rem; }
.supporting-preview-lock h3 { margin:8px 0;font-size:1rem;color:#182630; }
.supporting-preview-lock p { font-size:.8rem;line-height:1.5; }
.supporting-preview-lock .upgrade-button { margin-top:8px; }
.supporting-preview-placeholder { display:grid;gap:8px;opacity:.55; }
.supporting-preview-placeholder span { height:9px;background:#c1c9d0;border-radius:6px; }
.supporting-preview-placeholder span:last-child { width:70%; }

/* Improve readability of supporting-factor explanations. */
.supporting-factor-card > p { font-weight:700; }
