.fantasy-heading,.fantasy-toolbar,.fantasy-tabs{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.fantasy-toolbar,.fantasy-tabs{justify-content:flex-start;margin:18px 0}.fantasy-toolbar select{min-width:180px;max-width:100%}.fantasy-tabs button[aria-pressed=true]{background:var(--green,#9cbfc7);color:#121c20}.fantasy-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px}.fantasy-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:16px 0}.fantasy-player,.fantasy-scenario{background:#1b2224;border:1px solid #354145;border-radius:14px;padding:16px;min-width:0}.fantasy-player-open{display:block;width:100%;background:transparent;border:0;color:#e8eff1;text-align:left;padding:10px;cursor:pointer;min-height:48px}.fantasy-player-open strong,.fantasy-player-open small{display:block;margin:4px 0}.fantasy-player-open small,.fantasy-scenario small{color:#a6b4b8}.fantasy-card-metrics,.fantasy-rule-pills{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.fantasy-card-metrics span,.fantasy-rule-pills>span{font-size:12px;padding:6px 9px;border-radius:8px;background:#263337;color:#bdd3d9}.fantasy-select{display:flex!important;align-items:center;gap:12px;min-height:48px;padding:8px;flex-basis:auto!important}.fantasy-select input,.fantasy-category input[type=checkbox],.fantasy-rule-pills input{width:20px;min-height:20px;accent-color:#a4c4cc}.fantasy-category{display:flex!important;justify-content:space-between;align-items:center;gap:8px;background:#1b2224;padding:10px;flex-basis:auto!important}.fantasy-category>input{width:85px!important}.fantasy-category span{display:flex;align-items:center;gap:8px}.fantasy-rate{width:110px!important;min-height:44px}.fantasy-positive{color:#b4ced5}.fantasy-negative{color:#e5b093}.fantasy-scenario{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}#fantasyDialog{background:#181f21;color:#e8eff1;border:1px solid #46565b;border-radius:18px;width:min(1000px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:20px;overflow:auto}#fantasyDialog::backdrop{background:#050a08bf}#fantasyDialog .field{display:grid!important;flex-basis:auto!important;min-width:0}#fantasyDialog input,#fantasyDialog select{background:#20292c;color:#edf3f5;border:1px solid #455960;border-radius:8px;padding:10px;max-width:100%;min-height:44px}#fantasyStatus{min-height:24px;color:#b5cfd5}[data-screen=fantasy] .field{display:grid!important;flex-basis:auto!important}[data-screen=fantasy] .ui-button{min-height:44px}[data-screen=fantasy] .notice{margin:12px 0;overflow-wrap:anywhere}[data-screen=fantasy] h3{margin-top:12px}#fantasyDialog .dialog-heading{position:sticky;top:-20px;background:#181f21;padding:12px 0;z-index:1}@media(max-width:700px){.fantasy-columns{grid-template-columns:1fr}.fantasy-toolbar>*{flex:1 1 auto}.fantasy-heading{align-items:flex-start}.fantasy-tabs{display:grid;grid-template-columns:1fr 1fr}#fantasyDialog{padding:14px;width:calc(100vw - 16px)}#fantasyDialog .dialog-heading{top:-14px}.fantasy-category{font-size:14px}.fantasy-grid{grid-template-columns:1fr}}
/* Compact league controls and progressive disclosure. */
[data-screen=fantasy] .fantasy-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:end;margin:16px 0 6px}
[data-screen=fantasy] .fantasy-league-select{display:grid;gap:5px;min-width:0;flex-basis:auto;font-size:12px;color:#a6b4b8}
[data-screen=fantasy] .fantasy-toolbar select{width:100%;min-width:0;height:44px;background:#182225;color:#edf3f5;border:1px solid #405056;border-radius:9px;padding:0 10px;font-size:14px}
[data-screen=fantasy] .fantasy-toolbar .ui-button{padding:10px 14px;font-size:14px;white-space:nowrap;min-height:44px}
.fantasy-actions{position:relative;margin:0;min-width:0}
.fantasy-actions>summary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;box-sizing:border-box;padding:10px 14px;border:1px solid #405056;border-radius:9px;color:#d8e4e7;background:#202c30;cursor:pointer;font-size:14px;list-style:none}
.fantasy-actions>summary::-webkit-details-marker{display:none}
.fantasy-actions-list{position:absolute;right:0;top:calc(100% + 8px);z-index:20;width:220px;max-width:calc(100vw - 48px);padding:7px;background:#182022;border:1px solid #405056;border-radius:12px;box-shadow:0 12px 32px #0007;display:grid;gap:4px}
[data-screen=fantasy] .fantasy-actions-list .ui-button{display:flex;align-items:center;width:100%;text-align:left;justify-content:flex-start;background:transparent;border:0;border-radius:7px;font-size:14px;font-weight:500;box-sizing:border-box}
[data-screen=fantasy] .fantasy-actions-list .ui-button:hover{background:#2b383d}
[data-screen=fantasy] .fantasy-actions-list .danger{color:#eba79c;border-top:1px solid #354145;border-radius:0 0 7px 7px;margin-top:5px}
[data-screen=fantasy] .fantasy-actions-list .ui-button:disabled{opacity:.4}
#fantasyStatus{font-size:12px;line-height:1.5;min-height:18px;margin:6px 0 10px;color:#a6b4b8}
.fantasy-estimates{border-bottom:1px solid #354145;margin:0 0 16px}
.fantasy-estimates>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;cursor:pointer;font-size:13px;color:#a6b4b8;list-style:none}
.fantasy-estimates>summary::-webkit-details-marker{display:none}
.fantasy-estimates>summary>span::before{content:'▸';margin-right:8px;color:#a4c4cc}
.fantasy-estimates[open]>summary>span::before{content:'▾'}
.fantasy-estimates small{font-size:11px;color:#c9c6a0}
#fantasyEvidence{font-size:13px;line-height:1.6;padding:0 0 12px;color:#b4c1c4}
#fantasyEvidence p{margin:8px 0}#fantasyEvidence summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:#a4c4cc}
[data-screen=fantasy] .fantasy-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:4px;background:#182225;border:1px solid #354145;border-radius:12px;margin:12px 0 18px}
[data-screen=fantasy] .fantasy-tabs .ui-button{font-size:13px;padding:8px 4px;border:0;background:transparent;border-radius:8px;min-height:44px;white-space:nowrap;color:#b4c1c4}
[data-screen=fantasy] .fantasy-tabs .ui-button[aria-pressed=true]{background:#9ec0c9;color:#101c20}
[data-screen=fantasy] .fantasy-tabs .ui-button[aria-pressed=false]{box-shadow:none;outline:0}
[data-screen=fantasy] .fantasy-tabs .ui-button:focus-visible,.fantasy-actions summary:focus-visible,.fantasy-estimates summary:focus-visible{outline:2px solid #9ec0c8;outline-offset:2px}
@media(max-width:420px){[data-screen=fantasy] .fantasy-toolbar{grid-template-columns:minmax(0,1fr) auto;gap:8px}[data-screen=fantasy] .fantasy-league-select{grid-column:1/-1}[data-screen=fantasy] .fantasy-toolbar #fantasySave{width:100%}.fantasy-actions>summary{padding:10px 16px}[data-screen=fantasy] .fantasy-tabs .ui-button{font-size:12px}}

.fantasy-actions:not([open]) .fantasy-actions-list{display:none}
