/* Shared player-prop presentation; league data and controls stay authoritative. */
.pd3-scope { --pd3-gold:#e1bf72; --pd3-border:#665637; --pd3-muted:#bbc0c9; color:#f7f7f8; }
.pd3-scope .pp-grid,.pd3-scope .npl-grid { display:flex!important; flex-direction:column; gap:12px; }
.pd3-scope .pd3-fold { min-width:0; width:100%; box-sizing:border-box; margin:10px 0; border:1px solid var(--pd3-border); border-radius:14px; background:linear-gradient(135deg,#242426,#151516); overflow:hidden; }
.pd3-scope .pd3-fold>summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:48px; box-sizing:border-box; padding:14px 16px; color:#f7f7f8; font-size:1rem; font-weight:750; cursor:pointer; list-style:none; overflow-wrap:anywhere; }
.pd3-scope .pd3-fold>summary::-webkit-details-marker { display:none; }
.pd3-scope .pd3-fold>summary::after { content:'+'; color:var(--pd3-gold); font-size:1.3rem; flex:none; }
.pd3-scope .pd3-fold[open]>summary::after { content:'−'; }
.pd3-scope .pd3-fold[open]>summary { border-bottom:1px solid #ffffff18; }
.pd3-scope .pd3-fold>:not(summary) { margin:0!important; border:0!important; border-radius:0!important; box-shadow:none!important; background:transparent!important; padding:14px!important; box-sizing:border-box; max-width:100%; }
.pd3-scope .pd3-player { border-color:var(--pd3-gold); }
.pd3-scope .pd3-player>summary { display:grid; grid-template-columns:minmax(0,1fr) auto; }
.pd3-summary-name { min-width:0; }
.pd3-summary-metrics { grid-row:2; grid-column:1/-1; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; width:100%; }
.pd3-summary-metrics>span { display:grid; gap:5px; min-width:0; padding:9px 6px; border-radius:8px; background:#ffffff08; text-align:center; }
.pd3-summary-metrics small { color:#bbc0c9; font-size:.72rem; font-weight:500; }
.pd3-summary-metrics b { color:#f8f8f9; font-size:1.12rem; font-variant-numeric:tabular-nums; }
.pd3-player[open]>.pd3-summary-metrics { display:none; }
.pd3-scope .pd3-player[open]>summary .pd3-summary-metrics { display:none; }
.pd3-scope .pd3-player>summary::after { grid-column:2; grid-row:1; }
.pd3-scope .npt-save,.pd3-scope .mlb-save-pick { min-height:48px; background:linear-gradient(#f1d48d,#be9447); color:#141414; border-radius:10px; font-weight:800; }
.kls-top-props .kls-top-prop-filters { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0; }
.kls-top-props .kls-top-prop-filters button { flex:1; min-height:44px; border:1px solid #80704c; border-radius:9px; background:#242426; color:#f7f7f8; font-weight:700; padding:10px; }
.kls-top-props .kls-top-prop-filters button[aria-pressed=true] { background:linear-gradient(#eed28c,#c6a456); color:#141414; }
.kls-top-props .kls-top-prop-filter-status { color:#bbc0c9; font-size:.8rem; }
.kls-top-props .kls-top-prop { background:#1c1c1f; border:1px solid #665637; border-radius:12px; padding:14px; min-width:0; }
.kls-top-props .kls-top-prop[hidden] { display:none!important; }
.kls-top-props .kls-prop-card-chance { color:#cde7c6; font-weight:700; font-size:.88rem; }
.kls-top-props .kls-prop-card-details>summary { min-height:44px; padding:12px 0; cursor:pointer; color:#e1bf72; font-size:.9rem; }
.kls-top-props :is(button,summary,a):focus-visible { outline:3px solid #e1bf72; outline-offset:3px; }
.pd3-scope .pd3-mlb-player>summary { min-height:48px; padding:14px; color:#f8f8f9; font-weight:750; }
#props.pd3-scope,#nba #nbaPropsPanel.pd3-scope,#cfbPropsContent.pd3-scope,body[data-mlb-section='props'] #mlb-featured.pd3-scope { background:#151517; color:#f7f7f8; }
.pd3-scope .pp-player-hero,.pd3-scope .npl-player-hero { min-height:0!important; padding:12px 0!important; margin:0 0 12px!important; }
.pd3-scope .pp-model,.pd3-scope .npl-projection { background:#242426!important; margin:12px 0!important; border-radius:12px!important; }
.pd3-scope .pp-model-grid small,.pd3-scope .npl-model-values small { display:block; color:#c5c7cd!important; font-size:.75rem!important; }
.pd3-scope .pp-model-grid strong,.pd3-scope .npl-model-values strong { display:block; color:#f8f8f9!important; font-size:clamp(1.25rem,5vw,2rem)!important; }
.pd3-scope [hidden] { display:none!important; }
.pd3-scope .pp-player-card,.pd3-scope .npl-player-card { display:flex; flex-direction:column; min-width:0; }
.pd3-scope .pp-player-card>.pd3-defense,.pd3-scope .npl-player-card>.pd3-defense { order:10; }
.pd3-scope .pp-model,.pd3-scope .npl-projection { border:1px solid #ffffff22; border-radius:12px; background:#ffffff06; padding:14px; margin:12px 0; }
.pd3-scope .pp-model-grid,.pd3-scope .npl-model-values { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.pd3-scope .pp-model-grid>div,.pd3-scope .npl-model-values>div { min-width:0; overflow-wrap:anywhere; text-align:center; }
.pd3-scope .pp-model-grid strong,.pd3-scope .npl-model-values strong { color:#f8f8f9; font-size:clamp(1.25rem,5vw,2rem); font-variant-numeric:tabular-nums; }
.pd3-scope .pp-model-grid small,.pd3-scope .npl-model-values small { color:var(--pd3-muted); font-size:.75rem; }
.pd3-scope .pp-odds,.pd3-scope .npl-odds { background:#1c1c1f!important; border:1px solid var(--pd3-border)!important; border-radius:14px; padding:16px; }
.pd3-scope .pp-grid>.pp-odds { order:2; }
.pd3-scope .pp-grid>.pd3-performance { order:3; }
.pd3-scope button,.pd3-scope select { min-height:44px; max-width:100%; }
.pd3-scope select,.pd3-scope input { color:#f7f7f8!important; background:#222226!important; border-color:#68686f!important; border-radius:9px; }
.pd3-scope :is(button,summary,a,select,input):focus-visible { outline:3px solid var(--pd3-gold); outline-offset:3px; }
.pd3-scope #propSave,.pd3-scope #cfbPropSave { background:linear-gradient(#f1d48d,#be9447); color:#141414; font-weight:800; border:1px solid #edcd83; border-radius:10px; min-height:48px; }
.pd3-scope .kls-top-props { border-color:var(--pd3-gold); background:#1b1b1e; border-radius:14px; }
.pd3-scope .kls-top-props>summary { min-height:48px; color:var(--pd3-gold); }
body[data-mlb-section='props'] #mlb-featured.pd3-scope .research { background:#1b1b1e; border-color:var(--pd3-border); border-radius:14px; }
@media(min-width:900px) { .pd3-scope .pp-grid,.pd3-scope .npl-grid { max-width:900px; margin-inline:auto; } }
@media(max-width:480px) { .pd3-scope .pd3-fold>summary { padding:12px; } .pd3-scope .pd3-fold>:not(summary) { padding:10px!important; } .pd3-scope .pp-model-grid small,.pd3-scope .npl-model-values small { font-size:.7rem; } }

.pd3-player-toolbar {
 position:sticky; top:0; z-index:3; display:grid; gap:8px;
 margin:-12px 0 12px; padding:8px 0; background:#0b1b2b;
}
.pd3-player-toolbar :is(.pp-roster-back,#nbaRosterBack) {justify-self:start;margin:0!important}
.pd3-player-tabs {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.pd3-scope .pd3-player-tabs button {
 min-height:44px; padding:5px; border:1px solid #4b677d; border-radius:8px;
 background:#18324a;color:#f5f7fa;font:700 .875rem/1.15 system-ui,sans-serif;
}
.pd3-scope .pd3-player-tabs button[aria-pressed=true] {background:#ebcc7d;border-color:#ebcc7d;color:#102033}
[data-player-view=overview] [data-player-pane]:not([data-player-pane=overview]),
[data-player-view=matchup] [data-player-pane]:not([data-player-pane=matchup]),
[data-player-view=splits] [data-player-pane]:not([data-player-pane=splits]),
[data-player-view=more] [data-player-pane]:not([data-player-pane=more]) {display:none!important}
[data-player-view] .npl-footer {display:none}
.pp-player-page:has(.pp-half:not([hidden])) :is(.pp-profile-header .pp-markets,[data-player-pane=overview]:not(.pp-periods)) {display:none!important}
[data-player-view] .pp-periods {margin-block:0 10px}
[data-player-view] .kls-player-best {margin:0 0 8px;padding:0;border:0;background:transparent}
[data-player-view] .kls-player-best> :is(h3,small) {display:none}
[data-player-view] .kls-player-best>button {margin:0}
@media(max-width:480px) {
 [data-player-view] :is(.pp-portrait,.npl-portrait) {display:none}
 [data-player-view] :is(.pp-player-hero,.npl-player-hero) {min-height:0!important;margin-bottom:4px!important}
}
[data-player-view] :is(#propQuickMarkets,.npl-markets) {display:none!important}

/* Keep the exit within reach while reading a player comparison in any league. */
.lab-dialog>button:first-child {
 position:sticky;top:0;z-index:2;display:block;margin-bottom:8px;
 background:#18324a;box-shadow:0 0 0 4px #111f32;
}

#props .pp-player-page .pp-profile-header {display:grid;gap:4px;padding:10px 12px}
#props .pp-profile-header .pp-player-hero {display:block;min-height:0!important;margin:0!important;padding:0!important;border:0;background:none}
#props .pp-profile-header .pp-portrait {display:none}
#props .pp-profile-header .pp-team-logo {float:left;width:40px;height:40px;margin:0 10px 4px 0}
#props .pp-profile-header .pp-name {font-size:1.4rem;margin:0}
#props .pp-profile-header :is(.pp-position,.pp-opponent,.pp-markets,.field) {margin:0}
#props .pp-profile-header select {width:100%}
#props .pp-player-page .pd3-player-toolbar {margin:0;padding:6px 0}
#props .pp-player-page .pd3-player-tabs {grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
#props .pp-player-page .pd3-player-tabs button {font-size:.8rem}
#props .pp-player-page .pp-periods {margin:6px 0}
#props .pp-player-page .pd3-player>summary,
#props .pp-player-page .pp-player-card>h3,
#props .pp-player-page .pp-context-heading,
#props .pp-player-page .pp-context-cards,
#props .pp-player-page[data-player-view=overview] .pi-center,
#props .pp-player-page[data-player-view=matchup] .pi-center,
#props .pp-player-page[data-player-view=splits] .pi-center>:not(.pi-research),
#props .pp-player-page[data-player-view=splits] .pi-research>:not([data-pi-detail="research-splits"]),
#props .pp-player-page:has([data-pi-detail="research-splits"]) .pp-splits-empty {display:none!important}
#props .pp-player-page .pp-model {margin:0!important}


.pd3-player-tabs {grid-template-columns:repeat(4,minmax(0,1fr))}
#mlb-finder .pd3-player-tabs button {min-width:0;min-height:44px;padding:4px;border:1px solid #4b677d;border-radius:8px;background:#18324a;color:#fff}
#mlb-finder .pd3-player-tabs button[aria-pressed=true] {background:#ebcc7d;color:#102033}
.pd3-baseball-profile:not([hidden]),.pd3-college-header {display:grid;gap:8px;margin-block:12px}
.pd3-baseball-profile>button,.pd3-college-header>button {justify-self:start}
.pd3-baseball-profile>label,.pd3-baseball-profile select {display:block;width:100%}
#cfbPropsContent:not(.pd3-roster-profile[open] *) :is(#cfbPropFields > .pd3-player-tabs,.pd3-college-header > button) {display:none}
#cfbPropsContent .pd3-college-header #cfbPropMarkets,
#cfbPropsContent[data-player-view=overview] #cfbPropDecision,
#cfbPropsContent[data-player-view=matchup] #cfbPropDecision,
#cfbPropsContent[data-player-view=splits] #cfbPropDecision .pi-center>:not(.pi-research),
#cfbPropsContent[data-player-view=splits] #cfbPropDecision .pi-research>:not([data-pi-detail="research-splits"]),
#cfbPropsContent:has([data-pi-detail="research-splits"]) .pp-splits-empty {display:none!important}
#cfbPropsContent[data-player-view] .pp-grid>.pp-odds,#props .pp-player-page .pp-grid>.pp-odds {order:-1}
#mlb-finder [data-player-view] .finder-player-head {display:none}
.pp-player-page[data-player-view]:not([data-player-view=overview]) .pp-half {display:none!important}

.pd3-roster-profile[open] {
  position:fixed; inset:0; box-sizing:border-box; width:min(100%,960px);
  max-width:100%; height:100%; height:100dvh; max-height:100%; margin:0 auto;
  padding:14px 12px max(20px,env(safe-area-inset-bottom)); border:0;
  overflow:auto; overscroll-behavior:contain; background:#0b1b2b; color:#edf5ff;
}
.pd3-roster-profile::backdrop {background:rgba(4,13,23,.9)}
.pd3-roster-profile #cfbPropFields>:is(.cp-schedule,.pp-controls,.pp-selection-status,.kls-top-props),
.pd3-roster-profile .mlb-finder>:is(summary,.finder-intro,.finder-selection) {display:none!important}

:is(.pp-player-page,#nbaRosterProfile,.pd3-roster-profile) .pd3-lab-title {margin:0 0 4px;font:700 1rem/1.25 system-ui,sans-serif;color:#efd18a}
.pd3-baseball-profile>.pd3-lab-title,.pd3-college-header>.pd3-lab-title {display:none}
.pd3-roster-profile .pd3-lab-title {display:block}
