
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');
:root{color-scheme:dark;--bg:#101318;--panel:#181c23;--panel2:#1d222b;--line:#292f39;--text:#f2f4f7;--muted:#9099a8;--green:#a7f36c;--blue:#8cb8ff;--orange:#ffb45d;--red:#ff737a}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:'DM Sans',sans-serif;font-size:14px}
button{font:inherit;color:inherit;cursor:pointer;border:0}
.app-shell{min-height:100vh}
.rail{position:fixed;inset:0 auto 0 0;width:220px;background:#14171d;border-right:1px solid var(--line);padding:25px 14px;display:flex;flex-direction:column;z-index:3}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text);font:700 13px 'Space Grotesk';letter-spacing:2px;padding:0 8px 40px}
.brand-mark{display:grid;place-items:center;width:29px;height:29px;background:var(--green);border-radius:9px;color:#111;font:700 17px 'Space Grotesk';letter-spacing:0}
.rail-label,.eyebrow{color:#77808e;font-size:10px;font-weight:700;letter-spacing:1.4px}
.rail-label{padding:0 9px 12px}
.league{width:100%;display:flex;align-items:center;gap:10px;padding:11px 9px;border-radius:9px;background:transparent;text-align:left;color:#b7bdc7;font-size:12px}
.league.active{background:#222831;color:white}
.league small{margin-left:auto;color:#7f8997}
.league-dot{width:8px;height:8px;border-radius:50%;background:var(--green)}
.muted{color:#747e8d}
.rail-bottom{margin-top:auto;display:flex;align-items:center;justify-content:space-between;padding:12px 8px}
.avatar{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:#313e54;color:#cde0ff;font-weight:700}
.icon-btn{background:none;color:#c3cad4;font-size:19px;padding:6px;position:relative}
.notify-dot{position:absolute;right:4px;top:4px;width:6px;height:6px;background:var(--green);border-radius:50%}
.main{margin-left:220px;max-width:1500px;min-height:100vh}
.topbar{height:90px;padding:20px 34px;display:flex;align-items:center;border-bottom:1px solid var(--line);justify-content:space-between}
.league-title h1{font:600 21px 'Space Grotesk';margin:4px 0 0}
.chevron{font:400 17px;color:var(--muted)}
.top-actions{display:flex;align-items:center;gap:17px}
.live-indicator{font-size:11px;color:#a2aab6;display:flex;align-items:center;gap:7px}
.live-indicator i{width:7px;height:7px;border-radius:50%;background:#78828f}
.live-indicator.live i{background:var(--green);box-shadow:0 0 9px #a7f36c88}
.tabs{height:52px;padding:0 34px;display:flex;gap:27px;border-bottom:1px solid var(--line)}
.tab{background:none;color:#939dab;font-size:12px;position:relative;padding:0 1px}
.tab.selected{color:white}
.tab.selected:after{content:'';position:absolute;bottom:-1px;height:2px;background:var(--green);left:0;right:0;border-radius:2px}
.content{padding:27px 34px 60px;max-width:1320px}
.section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:18px}
.section-head h2{margin:3px 0 0;font:600 21px 'Space Grotesk'}
.subtle{color:var(--muted);font-size:12px}
.week-select{background:var(--panel2);border:1px solid var(--line);padding:9px 12px;border-radius:8px;color:#d9dee6;font-size:11px}
.score-strip{display:grid;grid-template-columns:1fr minmax(250px,.72fr) 1fr;gap:12px;margin:17px 0 21px}
.team-score,.schedule-card,.card{background:var(--panel);border:1px solid var(--line);border-radius:12px}
.team-score{min-height:116px;padding:17px 20px;display:flex;align-items:center;justify-content:space-between}
.team-name{font-weight:600;font-size:13px}
.team-owner{color:var(--muted);font-size:11px;margin-top:5px}
.score{font:700 29px 'Space Grotesk';letter-spacing:-1px}
.score-side{text-align:right}
.score-meta{font-size:10px;color:var(--muted);margin-top:4px}
.versus{color:#6d7785;font:600 11px 'Space Grotesk'}
.schedule-card{padding:15px}
.schedule-heading{display:flex;justify-content:space-between;color:#a2aab7;font-size:10px;margin-bottom:10px}
.game-line{padding:7px 0;display:flex;align-items:center;gap:8px;font-size:10px}
.game-time{margin-left:auto;color:#a5adba}
.team-abbr{font-weight:700;color:#d9e0e8}
.live-tag{font-size:8px;color:var(--green);letter-spacing:.6px}
.grid-main{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(250px,.75fr);gap:18px}
.card{overflow:hidden}
.card-head{display:flex;align-items:center;justify-content:space-between;padding:15px 17px;border-bottom:1px solid var(--line)}
.card-head h3{margin:0;font:600 13px 'Space Grotesk'}
.card-head .subtle{font-size:10px}
.roster-row{display:grid;grid-template-columns:34px minmax(140px,1.4fr) 54px repeat(3,minmax(42px,.5fr)) 62px;align-items:center;gap:8px;padding:11px 15px;border-bottom:1px solid #262b34}
.roster-row:last-child{border-bottom:0}
.position{font-size:9px;font-weight:700;letter-spacing:.4px;color:#94a0ae;background:#242b35;border-radius:5px;text-align:center;padding:5px 0}
.player{display:flex;align-items:center;gap:9px;min-width:0}
.player-avatar{width:30px;height:30px;flex:none;border-radius:50%;display:grid;place-items:center;background:linear-gradient(140deg,#344b6c,#202a39);font-size:9px;font-weight:700;color:#c3d8ff}
.player strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}
.player small{display:block;color:var(--muted);font-size:9px;margin-top:3px}
.stat{text-align:center;color:#b6beca;font-size:10px}
.stat label{display:none}
.fantasy-points{text-align:right;font:600 12px 'Space Grotesk'}
.fantasy-points small{display:block;font:400 9px 'DM Sans';color:var(--muted);margin-top:3px}
.row-actions{display:flex;justify-content:flex-end}
.action-btn{background:#252d38;border-radius:6px;padding:6px 8px;font-size:9px;color:#bbc5d1}
.empty-slot{opacity:.55}
.aside-stack{display:flex;flex-direction:column;gap:14px}
.leader-row,.activity-item,.player-result{display:flex;align-items:center;padding:12px 15px;border-bottom:1px solid #262b34;gap:10px}
.leader-row:last-child,.activity-item:last-child,.player-result:last-child{border-bottom:0}
.rank{font:600 11px 'Space Grotesk';color:#747e8c;width:17px}
.leader-row .player{flex:1}
.leader-points{font:600 12px 'Space Grotesk'}
.dot{width:7px;height:7px;background:var(--green);border-radius:50%}
.activity-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:#262e38;color:var(--green)}
.activity-copy{font-size:10px;line-height:1.5;color:#c2c8d1}
.activity-copy b{color:white}
.activity-copy small{display:block;color:#7f8896;font-size:9px}
.chat-box{background:#20252e;color:#8b95a2;padding:11px 12px;border-radius:8px;margin:13px;font-size:10px}
.full-card{margin-bottom:15px}
.roster-controls{display:flex;align-items:center;gap:8px}
.primary-btn{background:var(--green);color:#111;padding:10px 13px;border-radius:8px;font-weight:700;font-size:11px}
.search{background:#20252e;border:1px solid var(--line);border-radius:8px;padding:10px 12px;color:white;font:inherit;min-width:230px}
.filter-row{display:flex;gap:8px;align-items:center}
.chip{background:#212630;border:1px solid var(--line);color:#aeb6c2;border-radius:20px;padding:7px 11px;font-size:10px}
.chip.active{border-color:#648e46;color:var(--green);background:#222b20}
.table-head{display:grid;grid-template-columns:1fr 70px 90px 85px;padding:10px 16px;color:#788391;font-size:9px;letter-spacing:.7px;border-bottom:1px solid var(--line)}
.player-result{padding:11px 16px}
.player-result .player{flex:1}
.player-result .muted{font-size:10px}
.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);background:#edf6e9;color:#172014;padding:11px 16px;border-radius:9px;font-size:12px;opacity:0;transition:.2s;pointer-events:none;z-index:10}
.toast.show{opacity:1;transform:translate(-50%,0)}
.mobile-brand,.mobile-nav{display:none}
.empty-state{padding:36px;text-align:center;color:var(--muted)}
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.setting{padding:16px}
.setting b{display:block;font-size:12px;margin-bottom:6px}
.setting p{margin:0;color:var(--muted);font-size:11px;line-height:1.6}
@media(max-width:980px){
.rail{width:190px}
.main{margin-left:190px}
.score-strip{grid-template-columns:1fr 1fr}
.schedule-card{grid-column:1/-1;grid-row:2;display:flex;align-items:center;gap:14px}
.schedule-heading{margin:0;min-width:110px}
.game-line{flex:1}
.grid-main{grid-template-columns:1fr}
.aside-stack{display:grid;grid-template-columns:1fr 1fr}
.roster-row{grid-template-columns:30px minmax(115px,1.4fr) 46px repeat(3,minmax(35px,.5fr)) 52px;gap:5px;padding:10px}}
@media(max-width:650px){
.rail{display:none}
.main{margin:0;padding-bottom:62px}
.topbar{height:70px;padding:12px 16px}
.mobile-brand{display:flex;align-items:center;gap:8px;font:700 11px 'Space Grotesk';letter-spacing:1.2px}
.mobile-brand .brand-mark{width:26px;height:26px}
.league-title{margin-right:auto;margin-left:12px}
.league-title h1{font-size:16px}
.eyebrow{font-size:8px}
.top-actions{gap:8px}
.top-actions .avatar{width:28px;height:28px}
.live-indicator{font-size:9px}
.tabs{height:44px;padding:0 16px;gap:21px;overflow:auto;scrollbar-width:none}
.tab{font-size:11px;white-space:nowrap}
.content{padding:19px 13px 30px}
.section-head{align-items:center;margin:0 2px 13px}
.section-head h2{font-size:18px}
.section-head .subtle{font-size:10px}
.week-select{font-size:9px;padding:8px}
.score-strip{gap:7px;margin:12px 0 14px}
.team-score{padding:13px 11px;min-height:91px}
.team-name{font-size:10px}
.team-owner{font-size:9px}
.score{font-size:23px}
.score-meta{font-size:8px}
.schedule-card{padding:9px;gap:8px;overflow:auto}
.schedule-heading{font-size:9px;min-width:75px}
.game-line{font-size:9px;white-space:nowrap;gap:5px}
.grid-main{gap:12px}
.card-head{padding:13px}
.roster-row{grid-template-columns:27px minmax(100px,1fr) 38px 45px;gap:6px;padding:9px 9px}
.roster-row .stat:nth-of-type(3),.roster-row .stat:nth-of-type(4){display:none}
.roster-row .position{font-size:8px}
.player{gap:6px}
.player-avatar{width:27px;height:27px;font-size:8px}
.player strong{font-size:10px}
.player small{font-size:8px}
.stat{font-size:9px}
.stat:nth-of-type(2)::after{content:'P';display:block;color:#788391;font-size:8px}
.fantasy-points{font-size:11px}
.fantasy-points small{font-size:8px}
.row-actions{display:none}
.aside-stack{grid-template-columns:1fr}
.roster-controls{flex-wrap:wrap}
.search{min-width:0;width:100%}
.table-head{grid-template-columns:1fr 48px 58px 50px;padding:9px 11px;font-size:8px}
.player-result{padding:10px}
.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;height:62px;background:#171b21;border-top:1px solid var(--line);justify-content:space-around;z-index:5;padding-bottom:env(safe-area-inset-bottom)}
.mobile-nav button{background:none;color:#788391;font-size:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:55px}
.mobile-nav button span{font-size:18px}
.mobile-nav button.selected{color:var(--green)}
.settings-grid{grid-template-columns:1fr}
.toast{bottom:75px}
.week-label{display:none}}
.auth-backdrop{position:fixed;inset:0;z-index:20;background:rgba(9,11,15,.96);display:grid;place-items:center;padding:18px}
.auth-card{width:min(100%,410px);background:#181c23;border:1px solid #303743;border-radius:16px;padding:26px;box-shadow:0 20px 80px #0008}
.auth-card>.brand-mark{margin-bottom:20px}
.auth-card h1,.auth-card h2{font:600 23px 'Space Grotesk';margin:8px 0}
.auth-card p,.auth-card small{color:#929ba9;font-size:12px;line-height:1.6}
.auth-card form{display:grid;gap:12px;margin:20px 0 10px}
.auth-card label{display:grid;gap:6px;color:#aeb7c3;font-size:11px}
.auth-card input{background:#101318;border:1px solid #343b46;border-radius:8px;padding:11px;color:white;font:inherit}
.auth-card .primary-btn{width:100%;padding:12px}
.auth-link{display:block;background:none;color:#a7f36c;padding:10px 0;font-size:11px}
.auth-error{color:#ff737a;font-size:11px;min-height:16px}
.invite-code{display:block;padding:12px;background:#101318;border:1px dashed #65764f;border-radius:8px;color:#a7f36c;overflow-wrap:anywhere;margin:15px 0;font-size:12px}
#auth-gate{position:fixed;inset:0;z-index:20;background:rgba(9,11,15,.97);display:grid;place-items:center;padding:18px;overflow:auto}
#auth-gate .auth-card,#invite-dialog .auth-card{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:min(410px,calc(100vw - 36px));max-height:calc(100vh - 36px);overflow:auto}
.auth-card select{background:#101318;border:1px solid #343b46;border-radius:8px;padding:11px;color:white;font:inherit}
.setup-card{width:min(100%,520px)!important}
.setup-card form{grid-template-columns:1fr 1fr}
.setup-card form label:first-child{grid-column:1/-1}
.setup-card form .auth-error,.setup-card form .primary-btn{grid-column:1/-1}
@media(max-width:560px){
.setup-card form{grid-template-columns:1fr}
.setup-card form label:first-child,.setup-card form .auth-error,.setup-card form .primary-btn{grid-column:auto}}
.commissioner-setting{padding:11px 15px;border-bottom:1px solid #262b34}
.commissioner-setting p{margin-top:3px}
.commissioner-tab{margin-left:auto;color:var(--green)}
.auth-card .primary-btn:disabled{opacity:.7;cursor:wait}
.password-field{position:relative;display:block;width:100%}
.auth-card .password-field input{width:100%;padding-right:46px}
.password-toggle{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:36px;height:36px;display:grid;place-items:center;border-radius:7px;background:transparent;color:#929ba9}
.password-toggle:hover,.password-toggle:focus-visible{background:#252b34;color:#f2f4f7;outline:none}
.password-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.team-setup-card{margin-bottom:14px}
.team-form{display:grid;grid-template-columns:130px 1fr;gap:20px;padding:18px}
.team-picture-wrap{display:flex;flex-direction:column;align-items:center;gap:10px}
.team-picture,.team-picture-fallback{width:112px;height:112px;border-radius:18px;object-fit:cover;border:1px solid var(--line);background:#222a35}
.team-picture-fallback{display:grid;place-items:center;color:var(--green);font:600 42px 'Space Grotesk'}
.secondary-btn{display:inline-flex;align-items:center;justify-content:center;background:#252d38;color:#d9e0e8;border:1px solid var(--line);border-radius:7px;padding:8px 10px;font-size:10px;cursor:pointer}
.team-identity-fields{display:grid;align-content:start;gap:10px}
.team-identity-fields label{display:grid;gap:6px;color:#aeb7c3;font-size:11px}
.team-identity-fields input{max-width:460px;background:#101318;border:1px solid #343b46;border-radius:8px;padding:11px;color:white;font:inherit}
.team-identity-fields p{margin:0}
.team-form-actions{display:flex;gap:8px;align-items:center}
.team-form-actions .primary-btn{padding:9px 14px}
.team-form-actions .action-btn{font-size:10px}
.team-avatar{width:34px;height:34px;flex:none;display:grid;place-items:center;overflow:hidden;border-radius:10px;background:#26323d;color:var(--green);font:600 14px 'Space Grotesk'}
.team-avatar img{width:100%;height:100%;object-fit:cover}
.league-member{min-height:59px}
.icon-btn.selected{color:var(--green);background:#222b20;border-radius:8px}
#mobile-settings-button{display:none}
.settings-tabs{display:flex;gap:8px;margin:0 0 16px;border-bottom:1px solid var(--line)}
.settings-tab{background:transparent;color:var(--muted);padding:11px 14px;border-bottom:2px solid transparent;font-size:12px}
.settings-tab.selected{color:var(--text);border-bottom-color:var(--green)}
.scoring-category-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:14px}
.scoring-category{display:flex;align-items:center;gap:9px;padding:10px;background:#20252e;border:1px solid var(--line);border-radius:8px;color:#d5dbe4;font-size:11px}
.scoring-category input{accent-color:var(--green);width:15px;height:15px}
.scoring-points-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px}
.scoring-points-grid label{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#b8c0ca;font-size:11px}
.scoring-points-grid input{width:82px;background:#101318;border:1px solid #343b46;border-radius:7px;padding:8px;color:white;font:inherit;text-align:right}
.scoring-points-grid input:focus,.scoring-category input:focus-visible{outline:2px solid var(--green);outline-offset:2px}
@media(max-width:560px){
.team-form{grid-template-columns:1fr;gap:15px}
.team-picture-wrap{flex-direction:row;justify-content:flex-start}
.team-picture,.team-picture-fallback{width:78px;height:78px;border-radius:14px}
.team-picture-fallback{font-size:30px}}
@media(max-width:650px){}
@media(max-width:650px){
#mobile-settings-button{display:grid;place-items:center}}
@media(max-width:560px){
.settings-tabs{margin-bottom:12px}
.settings-tab{flex:1;padding:10px 5px}
.scoring-category-list,.scoring-points-grid{grid-template-columns:1fr}
.scoring-points-grid label{font-size:10px}}
.settings-tabs{overflow-x:auto;scrollbar-width:thin;align-items:stretch}
.settings-tab{white-space:nowrap}
.league-settings-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px}
.league-settings-fields>label{display:grid;align-content:start;gap:7px;color:#aeb7c3;font-size:11px}
.league-settings-fields input:not([type=checkbox]),.league-settings-fields select{width:100%;background:#101318;border:1px solid #343b46;border-radius:8px;padding:10px;color:white;font:inherit}
.league-settings-fields .settings-checkbox{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px;background:#20252e;border:1px solid var(--line);border-radius:8px}
.settings-checkbox input{accent-color:var(--green);width:17px;height:17px}
.league-settings-fields input:focus,.league-settings-fields select:focus{outline:2px solid var(--green);outline-offset:1px}
.league-settings-fields :disabled{opacity:.72}
@media(max-width:560px){
.league-settings-fields{grid-template-columns:1fr;padding:12px}}
.roster-settings-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:14px 16px;border-bottom:1px solid var(--line)}
.roster-settings-summary>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px;background:#20252e;border:1px solid var(--line);border-radius:8px;color:#aeb7c3;font-size:11px}
.roster-settings-summary b{font:600 16px 'Space Grotesk';color:var(--text)}
.roster-settings-summary small{font:400 10px 'DM Sans';color:var(--muted)}
.roster-table-wrap{overflow-x:auto}
.roster-settings-table{width:100%;border-collapse:collapse;text-align:left;font-size:11px}
.roster-settings-table th{color:#8792a0;font-size:9px;letter-spacing:.8px;text-transform:uppercase}
.roster-settings-table th,.roster-settings-table td{padding:10px 16px;border-bottom:1px solid #262b34}
.roster-settings-table td:nth-child(n+2),.roster-settings-table th:nth-child(n+2){text-align:right}
.roster-settings-table tbody tr:last-child td{border-bottom:0}
.league-settings-fields{padding:14px 16px}
@media(max-width:560px){
.roster-settings-summary{grid-template-columns:1fr;gap:7px;padding:11px}
.roster-settings-table th,.roster-settings-table td{padding:9px 11px}}
.position-move{width:100%;border:0;cursor:pointer}
.position-move:hover{background:#34422f;color:var(--green)}
.position-move:focus-visible,.player-name-button:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.player-name-button{min-width:0;padding:0;background:transparent;text-align:left}
.player-name-button:hover strong{color:var(--green)}
.player-name-button strong,.player-name-button small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.roster-row:has(.position-move):hover{background:#202630}
.roster-move-card{max-width:420px}
.move-options{display:grid;gap:7px;margin:18px 0}
.move-option{display:flex;align-items:center;justify-content:space-between;width:100%;padding:13px 14px;border:1px solid var(--line);border-radius:8px;background:var(--panel2);text-align:left;color:var(--text);font-size:12px}
.move-option:hover{border-color:var(--green);color:var(--green)}
.roster-move-card h2{margin-bottom:7px}
.roster-move-card p{color:var(--muted);font-size:12px;line-height:1.5}

@media(max-width:650px){
.roster-row:has(.position-move){grid-template-columns:27px minmax(80px,1fr) 38px 45px}
.roster-row:has(.position-move) .fantasy-points{grid-column:4;grid-row:1}
.roster-row:has(.position-move) .row-actions{display:none}}
.empty-slot.move-target-available{opacity:1;background:#1e2d20;outline:2px solid var(--green);outline-offset:-2px;cursor:pointer;box-shadow:inset 0 0 0 1px #a7f36c33}
.empty-slot.move-target-available .empty-slot-mark{background:var(--green);color:#101318}
.empty-slot.move-target-available strong{color:var(--green)}
.empty-slot.move-target-available:hover{background:#263b28}
/* Matchup controls and relocated team identity editor */
.matchup-actions{display:flex;align-items:center;gap:10px}
.week-picker{display:flex;align-items:center;gap:5px;padding:4px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.week-step{width:30px;height:30px;border-radius:7px;background:transparent;color:#cbd2dc;font-size:19px;line-height:1}
.week-step:hover:not(:disabled){background:#282f39;color:white}
.week-step:disabled{opacity:.35;cursor:default}
.week-label{display:flex;align-items:center;gap:8px;padding:0 7px}
.week-label>span{color:#778391;font-size:8px;font-weight:700;letter-spacing:1px}
.week-label select{max-width:180px;border:0;outline:0;background:transparent;color:#e7ebf0;font:600 10px 'DM Sans';cursor:pointer}
.week-label option{background:#181c23;color:#f2f4f7}
.optimize-lineup{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.score-strip{grid-template-columns:1fr 1fr}
.team-name-line{display:flex;align-items:center;gap:7px}
.team-edit-icon{width:25px;height:25px;display:grid;place-items:center;border:1px solid #363e49;border-radius:7px;background:#222831;color:#aeb8c5}
.team-edit-icon:hover{color:var(--green);border-color:#648e46}
.team-edit-icon svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.team-score-copy{min-width:0}
.matchup-schedule{display:block;padding:14px 16px}
.matchup-schedule .schedule-heading{margin-bottom:8px}
.matchup-schedule .game-line{padding:8px 0}
.team-editor-backdrop{position:fixed;inset:0;z-index:18;display:grid;place-items:center;padding:18px;background:#090b0fe8;overflow:auto}
.team-editor-dialog{width:min(650px,100%);max-height:calc(100vh - 36px);overflow:auto;padding:14px;background:var(--panel);border:1px solid #303743;border-radius:16px;box-shadow:0 24px 80px #0009}
.team-editor-dialog .team-setup-card{margin:0}
.team-editor-dialog .team-editor-close{margin:2px 0 0 auto;padding:10px 12px}
@media(max-width:980px){
.matchup-schedule{grid-column:auto;grid-row:auto;display:block}
.matchup-actions{gap:7px}
.week-label select{max-width:145px}}
@media(max-width:650px){
.matchup-actions{gap:5px}
.week-picker{gap:1px;padding:3px}
.week-step{width:26px;height:28px;font-size:17px}
.week-label{gap:4px;padding:0 4px}
.week-label>span{display:none}
.week-label select{max-width:110px;font-size:9px}
.optimize-lineup{padding:9px 10px;font-size:10px}
.team-editor-dialog{padding:8px}
.score-strip{grid-template-columns:1fr 1fr}}
/* Compact matchup score cards, summary panels and records */
.score-strip{gap:12px;margin:12px 0 14px}
.score-strip .team-score{min-height:86px;padding:12px 16px}
.own-team-score{justify-content:flex-start;gap:12px}
.own-team-score .team-score-copy{flex:1;min-width:0}
.own-team-score .score-side{margin-left:auto}
.team-record{color:var(--muted);font-size:10px;margin-top:5px}
.matchup-main-column{min-width:0}
.subtle-link{padding:4px 0;background:transparent;color:var(--green);font-size:10px}
.subtle-link:hover{color:#d1ffae}
.matchup-roster{margin-top:0}
@media(max-width:980px){
.score-strip .team-score{padding:11px 12px}}
@media(max-width:650px){
.score-strip .team-score{min-height:82px;padding:10px 9px;gap:7px}
.own-team-score .team-record,.opponent-team-score .team-record{font-size:9px;margin-top:3px}
.team-name{font-size:10px}
.score{font-size:21px}
.score-meta{font-size:7px}
.team-edit-icon{width:22px;height:22px}
.score-strip{margin:10px 0 11px}}
/* Player profile details */
.player-profile-backdrop{position:fixed;inset:0;z-index:19;display:grid;place-items:center;padding:18px;background:#090b0fe8;overflow:auto}
.player-profile-dialog{position:relative;width:min(560px,100%);max-height:calc(100vh - 36px);overflow:auto;padding:24px;background:var(--panel);border:1px solid #343c48;border-radius:16px;box-shadow:0 24px 80px #0009}
.profile-close{position:absolute;right:13px;top:12px;width:32px;height:32px;border-radius:8px;background:#252c36;color:#cbd2dc;font-size:22px;line-height:1}
.profile-close:hover{color:white;background:#343c48}
.profile-identity{display:flex;align-items:center;gap:16px;padding:8px 32px 22px 0}
.profile-photo{width:88px;height:88px;flex:none;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:radial-gradient(circle at 35% 25%,#526d92,#202b3a 68%);border:1px solid #52627a;color:#e1ecff;font:700 22px 'Space Grotesk'}
.profile-photo img{width:100%;height:100%;object-fit:cover}
.profile-identity h2{margin:4px 0;font:600 21px 'Space Grotesk'}
.profile-identity p{margin:0;color:var(--muted);font-size:11px}
.profile-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:13px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.profile-summary>div{display:grid;gap:7px}
.profile-summary small{color:#8993a1;font-size:8px;letter-spacing:.7px}
.profile-summary strong{font-size:13px}
.profile-stats{margin-top:19px}
.profile-stats h3{margin:0 0 10px;font:600 13px 'Space Grotesk'}
.profile-stats>div{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.profile-stats article{display:flex;justify-content:space-between;gap:8px;padding:10px;background:#20252e;border:1px solid #2b323c;border-radius:8px;font-size:10px}
.profile-stats article span{color:#aeb7c3}
.profile-stats article b{color:#fff}
.profile-note{margin:17px 0 0;color:#7f8997;font-size:9px;line-height:1.5}@media(max-width:650px){
.player-profile-dialog{padding:19px}
.profile-photo{width:70px;height:70px}
.profile-identity h2{font-size:17px}
.profile-summary{gap:5px}
.profile-summary strong{font-size:11px}
.profile-stats>div{grid-template-columns:repeat(2,1fr)}}
.player-profile-dialog{width:min(760px,100%);padding:0}
.profile-identity{padding:22px 54px 18px 22px}
.profile-tabs{display:flex;gap:4px;padding:0 18px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.profile-tab{flex:none;padding:12px 13px;background:transparent;color:#9ca6b4;border-bottom:2px solid transparent;font-size:11px;font-weight:600}
.profile-tab:hover{color:white}
.profile-tab.active{color:var(--green);border-bottom-color:var(--green)}
.profile-panel{min-height:280px;padding:20px 22px 24px}
.profile-overview-score{display:grid;gap:6px;padding:15px;border:1px solid #333b46;border-radius:10px;background:linear-gradient(110deg,#202a32,#1b2028)}
.profile-overview-score span{color:#98a4b2;font-size:9px;font-weight:700;letter-spacing:.8px}
.profile-overview-score strong{font:700 26px 'Space Grotesk';color:var(--green)}
.profile-overview-score small{color:#bbc3cd;font-size:10px}
.profile-overview-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0 20px}
.profile-overview-grid article,.profile-bio-grid article{display:grid;gap:7px;padding:12px;background:#20252e;border:1px solid #2b323c;border-radius:8px}
.profile-overview-grid span,.profile-bio-grid span{color:#8d98a6;font-size:9px}
.profile-overview-grid b,.profile-bio-grid b{font-size:12px;color:#f2f4f7}
.profile-overview h3,.profile-panel-title{margin:18px 0 10px;font:600 13px 'Space Grotesk'}
.profile-recent-list{display:grid}
.profile-recent-list>div{display:flex;justify-content:space-between;gap:10px;padding:11px 2px;border-bottom:1px solid #2b323c;font-size:10px}
.profile-recent-list span{color:#aeb7c3}
.profile-recent-list b{color:white}
.profile-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.profile-stat-grid article{display:flex;justify-content:space-between;gap:8px;padding:12px;background:#20252e;border:1px solid #2b323c;border-radius:8px;font-size:10px}
.profile-stat-grid article span{color:#aeb7c3}
.profile-stat-grid article b{color:white}
.profile-table-wrap{overflow-x:auto;border:1px solid #2b323c;border-radius:9px}
.profile-game-table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:10px}
.profile-game-table th{padding:11px 12px;text-align:right;color:#8d98a6;background:#20252e;font-size:8px;letter-spacing:.6px}
.profile-game-table th:first-child,.profile-game-table th:nth-child(2),.profile-game-table td:first-child,.profile-game-table td:nth-child(2){text-align:left}
.profile-game-table td{padding:11px 12px;text-align:right;border-top:1px solid #2b323c;color:#d8dde5}
.profile-bio-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.profile-empty{display:grid;place-items:center;min-height:210px;color:var(--muted);font-size:12px}
.profile-title h2{margin:4px 0}
.profile-title p{margin:0;color:var(--muted);font-size:11px}@media(max-width:650px){
.player-profile-dialog{padding:0}
.profile-identity{padding:17px 48px 14px 15px}
.profile-panel{padding:15px;min-height:240px}
.profile-overview-grid{grid-template-columns:repeat(2,1fr)}
.profile-stat-grid,.profile-bio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.profile-tab{padding:11px 10px;font-size:10px}}
.espn-profile-topbar{height:38px;display:flex;align-items:center;justify-content:space-between;padding:0 17px;border-bottom:1px solid var(--line);color:#9ca6b4;font-size:8px;font-weight:700;letter-spacing:1px}
.espn-profile-topbar .profile-close{position:static;width:27px;height:27px}
.player-profile-dialog .profile-identity{padding:17px 22px}
.espn-overview-score{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 0}
.espn-overview-score>div{display:grid;justify-items:center;gap:4px;border-right:1px solid var(--line)}
.espn-overview-score>div:last-child{border:0}
.espn-overview-score span{font:700 8px 'Space Grotesk';color:#8893a2}
.espn-overview-score b{font:700 15px 'Space Grotesk';color:#f2f4f7}
.espn-overview-score small{font-size:7px;color:#7e8997}
.espn-profile-section{margin:0 0 17px}
.espn-profile-section h3{margin:0;padding:12px 0 9px;font-size:10px;font-weight:700;letter-spacing:.5px;text-transform:uppercase}
.espn-stat-strip{display:grid;grid-template-columns:repeat(4,1fr);padding:10px;background:#20252e;border:1px solid #2b323c;border-radius:8px}
.espn-stat-strip>div{display:grid;justify-items:center;gap:5px}
.espn-stat-strip b{font:700 14px 'Space Grotesk'}
.espn-stat-strip span{font-size:8px;color:#909baa}
.espn-list-row{display:flex;justify-content:space-between;gap:12px;padding:12px;background:#20252e;border:1px solid #2b323c;border-radius:8px;font-size:10px}
.espn-list-row span{color:#bac2cc}
.espn-empty-compact{padding:14px;background:#20252e;border:1px solid #2b323c;border-radius:8px;color:#9ca6b4;font-size:10px;line-height:1.5}
.espn-table-scroll{overflow-x:auto;border:1px solid #2b323c;border-radius:8px}
.espn-profile-table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:9px}
.espn-profile-table th{padding:9px 8px;background:#20252e;color:#9ca6b4;font-size:8px;text-align:right}
.espn-profile-table td{padding:9px 8px;border-top:1px solid #2b323c;color:#dfe3e9;text-align:right}
.espn-profile-table th:first-child,.espn-profile-table th:nth-child(2),.espn-profile-table td:first-child,.espn-profile-table td:nth-child(2){text-align:left}
.espn-bio-list{display:grid}
.espn-bio-list>div{display:flex;justify-content:space-between;gap:12px;padding:12px 3px;border-bottom:1px solid #2b323c;font-size:10px}
.espn-bio-list span{color:#9ca6b4}
.espn-bio-list b{color:#f2f4f7;text-align:right}
.profile-panel{padding-top:12px}
.profile-tabs{padding:0 12px}
.profile-tab{font-size:10px;padding:12px 11px}@media(max-width:650px){
.player-profile-backdrop{padding:0;place-items:stretch}
.player-profile-dialog{width:100%;height:100dvh;max-height:100dvh;border-radius:0;border:0;overflow-y:auto;padding:0}
.espn-profile-topbar{position:sticky;top:0;z-index:2;background:#0d1015}
.player-profile-dialog .profile-identity{padding:15px 18px}
.player-profile-dialog .profile-photo{width:76px;height:76px}
.profile-tabs{position:sticky;top:38px;z-index:2;background:#111419;gap:2px;padding:0 7px}
.profile-tab{padding:12px 9px;font-size:9px}
.profile-panel{padding:10px 14px 22px;min-height:calc(100dvh - 200px)}
.espn-profile-table{font-size:8px}
.espn-profile-table th,.espn-profile-table td{padding:8px 6px}
.espn-profile-section h3{font-size:9px}}
/* Put the controls above the opponent card{display:grid;grid-template-columns:minmax(250px,.8fr) minmax(350px,.8fr) minmax(250px,.85fr);column-gap:14px;align-items:center}@media(max-width:980px){}@media(max-width:650px){}
.espn-news-list{display:grid;gap:0}
.espn-news-item{display:grid;gap:6px;padding:13px 2px;border-bottom:1px solid #2b323c;color:#e8ecf2;text-decoration:none}
.espn-news-item:hover strong{color:var(--green)}
.espn-news-item strong{font-size:11px;line-height:1.4}
.espn-news-item span,.espn-news-attribution{color:#8d98a6;font-size:9px}
.espn-news-item small{color:#b1bac5;font-size:10px;line-height:1.5}
.espn-transaction-list{margin-top:12px}
.espn-transaction-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px 2px;border-bottom:1px solid #2b323c}
.espn-transaction-row>div{display:grid;gap:5px}
.espn-transaction-row strong{font-size:10px}
.espn-transaction-row span,.espn-transaction-row time{font-size:9px;color:#8d98a6}
.espn-transaction-row b{font-size:10px}
.espn-transaction-row time{grid-column:1/-1}
.espn-data-source{padding:10px 22px 13px;border-top:1px solid var(--line);font-size:8px;color:#74808e;line-height:1.4}@media(max-width:650px){
.espn-data-source{padding:10px 14px 16px}
.espn-transaction-row{grid-template-columns:minmax(0,1fr);gap:6px}
.espn-transaction-row time{grid-column:auto}}
/* Player profile tables and linked news affordance */
.espn-profile-table th,.espn-profile-table td{text-align:center}
.espn-profile-table th:first-child,.espn-profile-table th:nth-child(2),.espn-profile-table td:first-child,.espn-profile-table td:nth-child(2){text-align:left}
.espn-news-item{cursor:pointer}
.espn-news-item strong{color:#a9c4ff;text-decoration:underline;text-decoration-color:rgba(169,196,255,.45);text-underline-offset:3px}
.espn-news-item strong::after{content:" ↗";font-size:.9em;text-decoration:none;color:var(--green)}
.espn-news-item:hover strong{color:var(--green)}
.trade-modal-backdrop{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:18px;background:#090b0fe8;overflow:auto}
.trade-modal{width:min(940px,100%);max-height:calc(100dvh - 36px);overflow:auto;background:#171b22;border:1px solid #343c48;border-radius:14px;box-shadow:0 24px 80px #000b}
.trade-modal-head{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid var(--line)}
.trade-modal-head h2{margin:5px 0 0;font:600 20px 'Space Grotesk'}
.trade-team-select{display:flex;align-items:end;justify-content:space-between;gap:12px;padding:14px 22px;border-bottom:1px solid var(--line)}
.trade-team-select label{display:grid;gap:7px;color:#9ca6b4;font-size:10px}
.trade-team-select select{min-width:260px;padding:10px;background:#11151b;border:1px solid #343c48;border-radius:8px;color:white}
.trade-columns{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:16px;padding:18px 22px}
.trade-team-panel{min-width:0;padding:12px;background:#13171d;border:1px solid #2c333e;border-radius:10px}
.trade-team-panel h3{display:flex;align-items:center;gap:9px;margin:0 0 12px;font-size:12px}
.trade-team-panel h3 .team-avatar{width:30px;height:30px}
.trade-arrow{align-self:center;color:var(--green);font-size:26px}
.trade-asset-group{margin:12px 0 16px}
.trade-asset-group h4{margin:0 0 7px;color:#8793a3;font-size:9px;letter-spacing:.7px;text-transform:uppercase}
.trade-asset{display:grid;grid-template-columns:16px minmax(0,1fr) auto;align-items:center;gap:8px;padding:9px 7px;border-top:1px solid #252c35;font-size:10px;cursor:pointer}
.trade-asset input{accent-color:#a8f369}
.trade-asset small{color:#8591a0;font-size:8px}
.trade-asset:has(input:checked){background:#273327}
.trade-summary{padding:12px 22px;color:#bfc8d3;font-size:10px;line-height:1.8}
.trade-summary b{color:#fff}
.trade-modal-footer{display:flex;justify-content:flex-end;gap:8px;padding:14px 22px;border-top:1px solid var(--line)}
.trade-form-error{padding:0 22px;color:#ff9c9c;font-size:10px}
.player-action-bar{display:flex;justify-content:flex-end;gap:8px;padding:0 22px 12px}
.fantasy-owner{display:flex;align-items:center;gap:8px;margin-top:8px;color:#aeb8c4;font-size:10px}
.fantasy-owner .team-avatar{width:24px;height:24px;border-radius:7px;font-size:10px}
.fantasy-owner b{color:#f5f6f8}
.trade-activity-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px;border-bottom:1px solid var(--line)}
.trade-activity-row .activity-copy{display:grid;gap:5px}
.trade-activity-row .activity-copy b{font-size:11px}
.trade-activity-row .activity-copy span,.trade-activity-row .activity-copy small{color:#9ca6b4;font-size:9px}
.trade-response-actions{display:flex;gap:6px}
.trade-response-actions .primary-btn,.trade-response-actions .secondary-btn{padding:7px 9px;font-size:9px}
.roster-trade-action{width:28px;height:28px;padding:0;cursor:pointer}
.roster-trade-action:hover{color:var(--green)}@media(max-width:650px){
.trade-modal-backdrop{padding:0;place-items:stretch}
.trade-modal{width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0}
.trade-modal-head{padding:14px 16px}
.trade-team-select{align-items:stretch;padding:12px 16px}
.trade-team-select select{min-width:0;width:100%}
.trade-team-select label{flex:1}
.trade-columns{grid-template-columns:1fr;gap:8px;padding:12px 14px}
.trade-arrow{justify-self:center;transform:rotate(90deg);font-size:20px}
.trade-modal-footer{position:sticky;bottom:0;background:#171b22;padding:12px 14px}
.trade-form-error{padding:0 14px}
.player-action-bar{padding:0 15px 10px}
.trade-activity-row{grid-template-columns:1fr;align-items:start}
.trade-response-actions{flex-wrap:wrap}}
.trade-notice{display:inline-grid;place-items:center;min-width:16px;height:16px;margin-left:4px;padding:0 4px;border-radius:99px;background:#a8f369;color:#111;font-size:9px;font-weight:800;vertical-align:middle}
/* Matchup trade proposal entry point and dedicated inbox */
.trade-center-trigger{display:inline-flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid #394554;border-radius:9px;background:linear-gradient(135deg,#202832,#171c23);color:#e5ebf2;font-size:10px;font-weight:700;white-space:nowrap;transition:border-color .15s,background .15s}
.trade-center-trigger:hover{border-color:#83b65b;background:#222c24}
.trade-center-icon{display:grid;place-items:center;width:22px;height:22px;border-radius:7px;background:#2b3829;color:var(--green);font-size:15px}
.trade-trigger-count{display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border-radius:99px;background:var(--green);color:#111;font-size:9px;font-weight:800}
.trade-trigger-count[hidden]{display:none}
.trade-inbox-modal{width:min(720px,100%)}
.trade-inbox-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;border-bottom:1px solid var(--line);color:#9ca6b4;font-size:10px}
.trade-inbox-toolbar .primary-btn{white-space:nowrap}
.trade-inbox-list{max-height:min(65vh,620px);overflow:auto}
.trade-inbox-item{display:flex;align-items:center;gap:12px;padding:14px 20px;border-bottom:1px solid #262d37}
.trade-inbox-mark{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:11px;background:#263327;color:var(--green);font-size:19px}
.trade-inbox-copy{display:grid;gap:4px;min-width:0;flex:1}
.trade-inbox-copy b{font-size:11px}
.trade-inbox-copy span{overflow:hidden;color:#b3bdc9;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.trade-inbox-copy small{color:#818c9a;font-size:9px}
.trade-review-btn{padding:8px 11px}
.trade-status-pill{padding:5px 8px;border-radius:99px;background:#252c35;color:#abb5c2;font-size:9px;text-transform:capitalize}
.league-chat-placeholder{display:grid;justify-items:center;gap:9px;min-height:250px}
.league-chat-placeholder h3{margin:0;color:#e5e9ef;font-size:13px}
.league-chat-placeholder p{margin:0;color:#8994a3;font-size:10px}
.league-chat-icon{display:grid;place-items:center;width:42px;height:42px;border:1px solid #343c48;border-radius:13px;background:#20252e;color:var(--green);font-size:18px}@media(max-width:650px){
.trade-center-trigger{padding:8px 9px;font-size:9px;gap:6px}
.trade-center-icon{width:20px;height:20px}
.trade-inbox-toolbar{align-items:flex-start;padding:12px 14px}
.trade-inbox-item{padding:12px 14px;gap:9px}
.trade-inbox-copy span{max-width:54vw}
.trade-review-btn{padding:8px 9px}}

@media(max-width:1150px){}
@media(max-width:850px){}
/* Align matchup controls to the same width as the two team cards; show an app-style count badge. */
.score-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
.trade-center-trigger{position:relative}
.trade-trigger-count{position:absolute;top:-8px;right:-8px;min-width:20px;height:20px;border:2px solid var(--bg);padding:0 5px;border-radius:99px;background:#ff5964;color:white;font-size:10px;box-shadow:0 2px 7px #0008}
.trade-trigger-count[hidden]{display:none}@media(max-width:650px){
.score-strip{grid-template-columns:1fr 1fr}}
.trade-team-panel h3 b{margin-left:auto;padding:5px 9px;border-radius:99px;background:#263327;color:var(--green);font-size:9px;letter-spacing:.6px;text-transform:uppercase}
.trade-back-button{display:inline-flex;align-items:center;gap:9px;padding:8px 12px;border:1px solid #343d49;border-radius:9px;background:#202630;color:#dce3ec;font-size:10px;font-weight:700;transition:background .15s,border-color .15s,color .15s}
.trade-back-button:hover{background:#29333f;border-color:#5a6878;color:white}
.trade-back-button span:first-child{display:grid;place-items:center;width:21px;height:21px;border-radius:7px;background:#303a47;color:var(--green);font-size:15px}
.trade-team-select .trade-back-button{align-self:center;white-space:nowrap}@media(max-width:650px){
.trade-team-select .trade-back-button{align-self:flex-start}}
.weekly-leader-row{min-height:55px}
.weekly-leader-row .player{gap:10px}
.weekly-leader-row .player strong{flex:1}
.weekly-leader-photo{position:relative;display:block;width:32px;height:32px;flex:none;border-radius:50%;overflow:hidden}
.weekly-leader-photo .player-avatar{position:absolute;inset:0;width:100%;height:100%;font-size:9px}
.weekly-leader-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%}
.weekly-leader-row .leader-points{min-width:42px;text-align:right;font-size:13px}
.weekly-leaders-empty{padding:19px 15px;color:var(--muted);font-size:10px;line-height:1.5}
.trade-team-panel h3 b{margin-left:0}
.trade-team-panel h3{gap:8px}
.trade-team-select.trade-offer-from{justify-content:flex-start;align-items:center;gap:8px}
.trade-team-select.trade-offer-from span{color:#cbd2dc;font-size:12px}
.trade-team-select.trade-offer-from b{color:#f2f4f7;font-size:12px}
.trade-review-cancel{margin-right:auto}
.game-log-scroll{max-height:min(64vh,680px);overflow:auto;overscroll-behavior:contain}
.game-log-table{min-width:max-content}
.game-log-table thead th{position:sticky;top:0;z-index:1}
.game-log-table th,.game-log-table td{padding:13px 11px}
.game-log-table .game-fantasy-points{color:#b7f27a;font-weight:800}@media(max-width:650px){
.game-log-scroll{max-height:58vh}
.game-log-table th,.game-log-table td{padding:12px 9px}}
.matchup-schedule{max-height:430px;overflow-y:auto;scrollbar-width:thin}
.matchup-schedule .game-line{display:flex;align-items:center;gap:8px;border-top:1px solid #292f38}
.matchup-schedule .game-line .game-time{margin-left:auto;white-space:nowrap}
.schedule-empty{padding:12px 0;color:var(--muted);font-size:10px}
.game-score{font-size:10px;color:#dce2e9;font-weight:700}
.player-status-badge{display:inline-flex;vertical-align:middle;margin-left:5px;padding:2px 6px;border-radius:5px;background:#482127;color:#ff727c;font-size:8px;font-weight:800;line-height:1.4;letter-spacing:.25px}
.settings-multiselect{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px;padding:12px;border:1px solid var(--line);border-radius:8px}
.settings-multiselect legend{padding:0 6px;color:#aeb7c3;font-size:11px}
.settings-multiselect label{display:flex;align-items:center;gap:6px;padding:7px 9px;background:#20252e;border:1px solid var(--line);border-radius:7px;color:#d9dee6;font-size:10px}
.settings-multiselect input{accent-color:var(--green)}
.settings-multiselect:disabled{opacity:.72}
.matchup-score-side{display:flex;align-items:center;gap:12px;min-width:0}
.matchup-score-side strong{font-size:clamp(24px,3vw,38px);font-weight:800;letter-spacing:-1px}
.matchup-score-side span{font-size:13px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.matchup-score-side.opponent{justify-content:flex-end;text-align:right}
.matchup-team-heading{display:flex;align-items:center;gap:9px;padding:12px;border-bottom:1px solid var(--line);min-height:72px}
.matchup-empty-player{opacity:.55}
.team-setup-card{margin-bottom:14px}
@media(max-width:980px){}
@media(max-width:650px){
.matchup-team-heading{gap:5px;padding:9px 7px;min-height:68px}
.matchup-score-side{gap:5px}
.matchup-score-side strong{font-size:23px}
.matchup-score-side span{font-size:9px}
.mobile-nav{grid-template-columns:repeat(4,1fr)}}
/* Compact matchup header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0}
.matchup-day-picker{display:flex;align-items:center;gap:12px;min-height:38px;padding:3px 10px;background:#181d24;border:1px solid var(--line);border-radius:9px;color:#dce2e9;font-size:11px;font-weight:700;white-space:nowrap}
.matchup-day-picker .week-step{width:28px;height:28px}
.team-identity-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;padding:13px 16px}
.team-identity-summary-copy{display:flex;align-items:center;gap:11px;min-width:0}
.team-identity-summary-copy .team-avatar{width:42px;height:42px;flex:0 0 42px;overflow:hidden;border-radius:11px;display:grid;place-items:center;background:#252c36;font-weight:800}
.team-identity-summary-copy .team-avatar img{width:100%;height:100%;object-fit:cover}
.team-identity-summary-copy strong,.team-identity-summary-copy small{display:block}
.team-identity-summary-copy strong{font-size:13px}
.team-identity-summary-copy small{margin-top:4px;color:var(--muted);font-size:10px}
.team-identity-summary>[data-action="edit-team"]{white-space:nowrap}
@media(max-width:980px){}
@media(max-width:650px){
.matchup-day-picker{order:3;flex:1 1 100%;justify-content:center;min-height:34px}
.week-picker{max-width:calc(100% - 122px)}
.week-picker select{max-width:180px}
.team-identity-summary{padding:10px}
.team-identity-summary-copy .team-avatar{width:34px;height:34px;flex-basis:34px}
.team-identity-summary-copy strong{font-size:11px}
.team-identity-summary>[data-action="edit-team"]{font-size:9px;padding:8px}}
.my-team-identity{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;margin-bottom:14px}
.my-team-identity-copy{display:flex;align-items:center;gap:12px;min-width:0}
.my-team-avatar{width:48px;height:48px;border-radius:13px;font-size:17px}
.my-team-avatar img{width:100%;height:100%;object-fit:cover}
.my-team-identity h3{margin:3px 0;font-size:15px}
.team-editor-backdrop{z-index:30}
.team-editor-dialog{width:min(650px,100%)}
.my-team-name-line{display:flex;align-items:center;gap:8px}
.my-team-name-line h3{margin:3px 0;font-size:15px}
.my-team-name-line .team-edit-icon{flex:none}
.my-team-identity{justify-content:flex-start}
.team-picture-wrap{display:flex;flex-direction:column;align-items:center;gap:8px}
.team-picture-actions{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap}
.team-form-actions{display:flex;align-items:center;gap:8px;width:100%;margin-top:4px}
.team-form-spacer{flex:1}
.team-form-actions .secondary-btn,.team-form-actions .primary-btn{white-space:nowrap}
.team-setup-card{margin:0}
.team-editor-dialog{padding:14px}
.team-editor-dialog .team-form{grid-template-columns:150px minmax(0,1fr)}
.team-editor-dialog .team-picture-wrap{align-items:center}
.matchup-day-picker{justify-self:center}
.my-team-identity .team-avatar{flex:none}@media(max-width:980px){}@media(max-width:760px){
.matchup-day-picker{gap:4px;padding:2px 5px;font-size:9px}
.matchup-day-picker .week-step{width:22px}}@media(max-width:560px){
.team-editor-dialog .team-form{grid-template-columns:1fr}
.team-picture-wrap{flex-direction:row;justify-content:flex-start}
.team-picture-actions{justify-content:flex-start}
.week-picker{min-width:0;max-width:none}
.week-label select{max-width:105px}
.matchup-day-picker{gap:2px;padding:2px 3px;font-size:8px}}
.team-picture-actions{min-width:190px;flex-wrap:nowrap}
/* Layout refinements from the latest roster and matchup review */
.team-form-actions{justify-content:flex-end;gap:8px}
.team-form-spacer{display:none}
.team-form-actions .secondary-btn,.team-form-actions .primary-btn{width:116px;min-height:36px;box-sizing:border-box;padding:8px 10px;white-space:nowrap}
.my-team-tools{width:100%;max-width:590px;display:flex;justify-content:flex-end;margin:0 0 8px}
.my-team-identity{width:100%;max-width:590px;box-sizing:border-box}
@media(max-width:760px){
.matchup-day-picker{flex:0 0 auto;order:initial}}
@media(max-width:650px){
.my-team-tools,.my-team-identity,.my-team-roster .card{width:100%;max-width:none}
.team-form-actions .secondary-btn,.team-form-actions .primary-btn{width:108px;min-height:36px}}
/* Responsive roster sizing, consistent picture actions, and matchup trade placement */
.team-picture-actions .secondary-btn,.team-picture-actions .action-btn{width:100px;height:36px;min-height:36px;flex:0 0 100px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;padding:8px 7px;font-size:9px;white-space:nowrap}
.team-editor-dialog .team-form{grid-template-columns:210px minmax(0,1fr)}
.my-team-tools,.my-team-identity,.my-team-roster .card{width:100%;max-width:min(100%,1040px);box-sizing:border-box}
.my-team-identity{min-height:82px;padding:clamp(14px,2vw,22px)}
.matchup-trade-row{display:none}
.trade-nav-count{display:inline-grid;place-items:center;min-width:17px;height:17px;margin-left:5px;padding:0 4px;box-sizing:border-box;border-radius:999px;background:#ff5964;color:#fff;font-size:9px;font-weight:800;line-height:1}
.trade-nav-count[hidden]{display:none}
@media(max-width:760px){
.my-team-tools,.my-team-identity,.my-team-roster .card{max-width:100%}}
@media(max-width:560px){
.team-editor-dialog .team-form{grid-template-columns:1fr}
.team-picture-actions .secondary-btn,.team-picture-actions .action-btn{width:100px;flex-basis:100px;height:36px;min-height:36px}
.matchup-trade-row .trade-center-trigger{padding:7px 9px;font-size:9px}}
/* Scale My Team content without leaving the main content column on desktop */
.my-team-tools,.my-team-identity,.my-team-roster .card{max-width:min(100%,880px)}
.my-team-name-line h3{font-size:clamp(15px,1.15vw,18px)}
.my-team-tools .secondary-btn{font-size:12px;padding:10px 14px}
@media(max-width:760px){
.my-team-tools,.my-team-identity,.my-team-roster .card{max-width:100%}}
.score-breakdown-trigger{appearance:none;border:0;background:transparent;color:inherit;font:inherit;font-weight:700;line-height:1.2;padding:1px 3px;border-radius:4px;cursor:pointer;text-align:inherit}
.score-breakdown-trigger:hover:not(:disabled){background:#ffffff12;color:var(--green)}
.score-breakdown-trigger:disabled{cursor:default;opacity:.72}
.game-fantasy-points .score-breakdown-trigger{color:var(--blue)}
.score-breakdown-backdrop{position:fixed;inset:0;z-index:1000;background:#000c;display:grid;place-items:center;padding:20px}
.score-breakdown-dialog{position:relative;width:min(560px,100%);max-height:min(85vh,760px);overflow:auto;background:#1e1e1f;border:1px solid #343638;border-radius:16px;box-shadow:0 24px 80px #0009;padding:0 0 10px;text-align:center}
.score-breakdown-close{position:absolute;right:18px;top:14px;background:transparent;color:#aaa;font-size:28px;line-height:1;padding:5px 9px}
.score-breakdown-player-photo{width:94px;height:94px;border-radius:50%;overflow:hidden;border:2px solid #41444a;margin:-2px auto 12px;background:#26364c;display:grid;place-items:center;font-size:28px}
.score-breakdown-player-photo img{width:100%;height:100%;object-fit:cover}
.score-breakdown-dialog h2{font-size:24px;margin:6px 0 18px}
.score-breakdown-game{color:#a7a7aa;font-size:17px;margin:0 10px 18px}
.score-breakdown-table{border-top:1px solid #414141;text-align:left}
.score-breakdown-heading,.score-breakdown-row{display:grid;grid-template-columns:minmax(130px,1.6fr) minmax(58px,.8fr) minmax(32px,.6fr) minmax(64px,.8fr);align-items:center;gap:8px;padding:15px 14px;border-bottom:1px solid #414141}
.score-breakdown-heading{font-size:12px;font-weight:800}
.score-breakdown-heading>*:not(:first-child),.score-breakdown-row>*:not(:first-child){text-align:right}
.score-breakdown-row{min-height:56px;font-size:15px}
.score-breakdown-row span:nth-child(2),.score-breakdown-row span:nth-child(3){color:#aaa}
.score-breakdown-row strong{font-size:16px}
.score-breakdown-total{display:flex;justify-content:space-between;padding:18px 16px 10px;font-size:15px}
.score-breakdown-empty{padding:24px 16px;color:var(--muted);text-align:center}@media(max-width:520px){
.score-breakdown-backdrop{padding:12px}
.score-breakdown-dialog{border-radius:14px}
.score-breakdown-player-photo{width:78px;height:78px}
.score-breakdown-dialog h2{font-size:21px}
.score-breakdown-game{font-size:15px}
.score-breakdown-heading,.score-breakdown-row{grid-template-columns:minmax(105px,1.5fr) minmax(52px,.7fr) minmax(24px,.5fr) minmax(53px,.7fr);gap:5px;padding:13px 9px}
.score-breakdown-heading{font-size:10px}
.score-breakdown-row{font-size:13px;min-height:50px}
.score-breakdown-row strong{font-size:14px}}
.score-breakdown-trigger:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:3px}
.my-team-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.my-team-day-picker{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:3px 8px;border:1px solid var(--line,#2b3440);border-radius:10px;background:var(--panel,#171c23);color:var(--text,#e9edf3);font-size:11px;font-weight:700}
.my-team-day-picker .week-step{width:26px;height:26px}
.my-team-tools .secondary-btn{white-space:nowrap}@media(max-width:440px){
.my-team-tools{justify-content:space-between;gap:6px}
.my-team-day-picker{gap:3px;padding:2px 4px;font-size:10px}
.my-team-tools .secondary-btn{padding:9px 10px;font-size:10px}}
.my-team-tools{justify-content:flex-start}@media(max-width:440px){
.my-team-tools{justify-content:flex-start}}
.my-team-tools>[data-action='optimize']{margin-left:auto}@media(max-width:440px){
.my-team-tools>[data-action='optimize']{margin-left:auto}}
.my-team-date-input{width:clamp(120px,15vw,160px);min-height:30px;border:0;background:transparent;color:inherit;font:inherit;font-weight:700;outline:none;color-scheme:dark}
.my-team-date-input::-webkit-calendar-picker-indicator{cursor:pointer;opacity:.8}@media(max-width:440px){
.my-team-date-input{width:125px;font-size:10px}}
.my-team-day-picker{position:relative;gap:12px;min-height:38px;padding:3px 10px}
.my-team-day-picker .week-step{width:28px;height:28px}
.my-team-day-label{padding:0 4px;border:0;background:transparent;color:inherit;font:inherit;font-weight:700;white-space:nowrap;cursor:pointer}
.my-team-day-label:hover{color:#fff;background:transparent}
.my-team-date-input{position:absolute;left:50%;top:50%;width:1px;height:1px;min-height:1px;padding:0;border:0;opacity:.01;pointer-events:none}@media(max-width:650px){
.my-team-day-picker{justify-content:space-between;gap:12px;min-height:34px;padding:2px 8px}}
.nhl-team-logo{display:inline-block;width:30px;height:30px;object-fit:contain;vertical-align:middle;flex:0 0 30px}
.player-name-button strong{display:flex;align-items:center;gap:5px}
.nhl-team-label{display:inline-flex;align-items:center;gap:5px}
.profile-team-line{display:flex;align-items:center;gap:5px}
.profile-team-line .nhl-team-logo{width:36px;height:36px;flex-basis:36px}@media(max-width:650px){
.nhl-team-logo{width:26px;height:26px;flex-basis:26px}
.profile-team-line .nhl-team-logo{width:32px;height:32px;flex-basis:32px}}
/* Keep every matchup slot the same height{height:54px;min-height:54px;box-sizing:border-box}
/* NHL player pool list */
.player-pool-filters{flex-wrap:wrap}
.nhl-player-list{max-height:72vh;overflow:auto;overscroll-behavior:contain}
.nhl-player-head,.nhl-player-result{display:grid;grid-template-columns:minmax(220px,1fr) minmax(90px,.45fr) minmax(150px,.7fr) 100px 84px;align-items:center;gap:12px}
.nhl-player-head{position:sticky;top:0;z-index:1;padding:10px 16px;background:#181c23;color:#788391;font-size:9px;letter-spacing:.7px;border-bottom:1px solid var(--line)}
.nhl-player-result{padding:9px 16px;min-height:58px}
.nhl-player-identity{display:flex;align-items:center;gap:10px;min-width:0;background:transparent;text-align:left;color:inherit;padding:0}
.nhl-player-identity>span:last-child{min-width:0}
.nhl-player-identity strong,.nhl-player-identity small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nhl-player-identity strong{font-size:11px}
.nhl-player-identity small{margin-top:4px;color:var(--muted);font-size:9px}
.nhl-player-photo{width:44px;height:44px;flex:0 0 44px;aspect-ratio:1;object-fit:cover;object-position:top;border-radius:50%;background:#253043}
.nhl-fantasy-owner{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:10px}
.nhl-season-points{text-align:right;font:600 13px 'Space Grotesk'}
.rostered-tag{justify-self:end;color:var(--muted);font-size:8px;font-weight:800;letter-spacing:.5px}
.nhl-player-result .action-btn{justify-self:end;white-space:nowrap}
.nhl-player-result .nhl-team-label{font-size:10px}
@media(max-width:760px){
.nhl-player-head{display:none}
.nhl-player-list{max-height:70vh}
.nhl-player-result{grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:auto auto;gap:4px 8px;padding:9px 10px;min-height:60px}
.nhl-player-identity{grid-column:1;grid-row:1}
.nhl-player-identity strong{font-size:10px}
.nhl-player-identity small{font-size:8px}
.nhl-player-photo{width:40px;height:40px;flex-basis:40px}
.nhl-player-result .nhl-team-label{grid-column:1;grid-row:2;margin-left:50px;font-size:8px}
.nhl-fantasy-owner{grid-column:1;grid-row:3;margin-left:50px;font-size:8px}
.nhl-season-points{grid-column:2;grid-row:1/4;font-size:11px}
.nhl-player-result .action-btn,.rostered-tag{grid-column:3;grid-row:1/4;font-size:8px;padding:6px}
.nhl-player-result .nhl-team-label .nhl-team-logo{width:18px;height:18px;flex-basis:18px}}
.rostered-player-toggle{display:inline-flex;align-items:center;gap:8px;cursor:pointer;white-space:nowrap}
.rostered-player-toggle input{appearance:auto;width:15px;height:15px;margin:0;accent-color:var(--green)}
.league-hub-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(285px,.75fr);gap:14px;align-items:start}
.league-hub-right{display:grid;gap:14px}
.league-scoreboard-card .card-head{align-items:center}
.league-score-matchup{padding:10px 13px;border-top:1px solid var(--line);display:grid;grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr);gap:8px;align-items:center}
.league-score-team{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:8px;align-items:center;min-width:0}
.league-score-name{font-size:11px;font-weight:600;overflow-wrap:anywhere}
.league-score-team strong{font:700 15px 'Space Grotesk';font-variant-numeric:tabular-nums}
.league-score-vs{text-align:center;color:#8390a0;font-size:9px;font-weight:700}
.league-bye{grid-column:3}
.demo-tag{margin-left:6px;padding:2px 5px;border-radius:4px;background:#293b2b;color:var(--green);font-size:8px;letter-spacing:.4px;vertical-align:middle}
.league-members-card .league-member{padding-left:13px;padding-right:13px}
.league-info-card .setting{padding:14px}
.league-info-card .setting p{color:var(--muted);font-size:11px;margin:7px 0 0}@media(max-width:850px){
.league-hub-layout{grid-template-columns:1fr}
.league-hub-right{grid-template-columns:1fr 1fr}}@media(max-width:560px){
.league-hub-right{grid-template-columns:1fr}
.league-score-matchup{grid-template-columns:minmax(0,1fr) 26px minmax(0,1fr);gap:5px;padding:10px 9px}
.league-score-team{grid-template-columns:28px minmax(0,1fr) auto;gap:5px}
.league-score-team .team-avatar{width:28px;height:28px}
.league-score-name{font-size:9px}
.league-score-team strong{font-size:12px}
.league-score-vs{font-size:8px}}
.league-main-column{display:grid;gap:14px;min-width:0}
.playoff-picture-card{overflow:hidden;background:linear-gradient(145deg,rgba(92,221,113,.075),transparent 44%),var(--card)}
.playoff-picture-card>.card-head{padding:16px 18px;border-bottom:1px solid var(--line)}
.playoff-picture-card .card-head h3{margin:3px 0 0;font:700 18px 'Space Grotesk'}
.playoff-eyebrow{color:var(--green);letter-spacing:1.2px}
.playoff-format{padding:6px 9px;border:1px solid rgba(149,239,99,.32);border-radius:999px;color:var(--green);font-size:9px;font-weight:700;letter-spacing:.6px}
.playoff-standings-list{display:grid}
.playoff-team-row{min-height:54px;padding:8px 15px;display:grid;grid-template-columns:36px minmax(0,1fr) 52px;gap:10px;align-items:center;border-bottom:1px solid rgba(47,55,66,.72)}
.playoff-in{background:linear-gradient(90deg,rgba(149,239,99,.07),transparent 72%);border-left:3px solid var(--green)}
.playoff-out{background:linear-gradient(90deg,rgba(242,106,106,.045),transparent 72%);border-left:3px solid #56606c}
.playoff-seed{font:700 12px 'Space Grotesk';color:#9aa5b3}
.playoff-in .playoff-seed{color:var(--green)}
.playoff-team-identity{display:grid;gap:4px;min-width:0}
.playoff-team-identity strong{font-size:11px;overflow-wrap:anywhere}
.playoff-team-identity small{font-size:9px;color:var(--muted);letter-spacing:.25px}
.playoff-status{justify-self:end;padding:5px 8px;border-radius:6px;font-size:8px;font-weight:800;letter-spacing:.7px}
.status-in{background:rgba(149,239,99,.15);color:var(--green)}
.status-out{background:#252b33;color:#a0a8b3}
.playoff-cutline{height:30px;display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center;padding:0 14px;color:#ff9b86;font-size:8px;letter-spacing:.75px}
.playoff-cutline span{height:1px;background:linear-gradient(90deg,transparent,#ff8b76)}
.playoff-cutline span:last-child{transform:scaleX(-1)}
.playoff-footnote{padding:11px 15px;color:var(--muted);font-size:9px;border-top:1px solid var(--line)}@media(max-width:560px){
.playoff-team-row{min-height:52px;padding:7px 10px;grid-template-columns:31px minmax(0,1fr) 42px;gap:7px}
.playoff-team-identity strong{font-size:10px}
.playoff-team-identity small{font-size:8px}
.playoff-picture-card>.card-head{padding:13px}
.playoff-picture-card .card-head h3{font-size:16px}}
.matchup-team-record{display:block;color:var(--green)!important;font-weight:800;letter-spacing:.45px}
.season-schedule-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:10px}
.season-schedule-card>.card-head,.season-schedule-card>.season-schedule-list{grid-column:1/-1}
.season-schedule-card>.schedule-team-select{grid-column:1;margin:0 0 9px 13px;min-width:0;box-sizing:border-box}
.season-schedule-card>.season-overall-record{grid-column:2;margin:0 13px 9px 0;min-width:0;box-sizing:border-box}
.season-schedule-card>.schedule-team-select,.season-schedule-card>.season-overall-record{min-height:42px}
.schedule-team-select select{min-width:0;width:65%;font-size:9px}
.season-overall-record{gap:5px;padding:8px}
.season-overall-record span{font-size:7px}
.season-overall-record strong{font-size:14px}
.season-overall-record small{font-size:7px;white-space:nowrap}
/* Compact app header with account menu in place of the league rail */
.rail{display:none!important}
.main{width:100%;max-width:1600px;margin:0 auto!important;min-height:100vh}
.topbar{gap:clamp(10px,2vw,24px)}
.topbar-brand{display:flex;align-items:center;gap:9px;flex:none;color:var(--text,#e9edf3);font:700 11px 'Space Grotesk',sans-serif;letter-spacing:1.3px;white-space:nowrap}
.topbar-brand .brand-mark{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#a6f36e;color:#14200d;font-size:15px;letter-spacing:0}
.league-title{margin-right:auto;margin-left:clamp(4px,1vw,14px)}
.profile-menu-wrap{position:relative;display:flex;align-items:center;flex:none}
.profile-trigger{width:36px;height:36px;flex:0 0 36px;border:1px solid #394354;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.profile-trigger:hover,.profile-trigger[aria-expanded=true]{border-color:#a6f36e;box-shadow:0 0 0 3px #a6f36e1c}
.profile-menu{position:absolute;top:calc(100% + 9px);right:0;z-index:50;min-width:190px;padding:6px;background:#1b2028;border:1px solid var(--line,#2b3440);border-radius:12px;box-shadow:0 16px 42px #0009}
.profile-menu[hidden]{display:none!important}
.profile-menu-item{display:flex;align-items:center;gap:10px;width:100%;min-height:40px;padding:8px 10px;border:0;border-radius:8px;background:transparent;color:#e3e9f0;text-align:left;font-family:inherit;font-size:12px;font-weight:600;cursor:pointer}
.profile-menu-item:hover,.profile-menu-item.selected{background:#29313b}
.profile-menu-item svg{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.profile-menu-item.is-signout{color:#ff9993}
.profile-menu-divider{height:1px;background:var(--line,#2b3440);margin:4px 2px}
@media(max-width:650px){
.topbar{height:62px;padding:10px 13px;gap:7px}
.topbar-brand{gap:0}
.topbar-brand>span:last-child{display:none}
.topbar-brand .brand-mark{width:28px;height:28px}
.league-title{margin-left:5px;margin-right:auto;min-width:0}
.league-title h1{font-size:14px}
.league-title .eyebrow{font-size:7px}
.top-actions{gap:7px}
.live-indicator{max-width:105px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-trigger{width:32px;height:32px;flex-basis:32px}
.tabs{top:0}}
/* Profile picture doubles as the account menu trigger */
.profile-trigger{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:auto;height:auto;flex:0 0 auto;padding:0;border:0;background:transparent;border-radius:0;box-shadow:none!important;overflow:visible}
.profile-photo{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;overflow:hidden;border:1px solid #394354;border-radius:50%;background:#313e54;color:#cde0ff;font-weight:700}
.profile-photo img{width:100%;height:100%;object-fit:cover}
.profile-trigger:hover .profile-photo,.profile-trigger[aria-expanded=true] .profile-photo{border-color:#a6f36e;box-shadow:0 0 0 3px #a6f36e1c}
.profile-caret{width:15px;height:15px;fill:none;stroke:#aab4c2;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .16s}
.profile-trigger[aria-expanded=true] .profile-caret{transform:rotate(180deg);stroke:#a6f36e}
.top-actions{gap:0}
.league-title .chevron{display:none}
.live-indicator{display:none!important}
@media(max-width:650px){
.profile-photo{width:32px;height:32px;flex-basis:32px}
.profile-trigger{gap:4px}
.profile-caret{width:13px;height:13px}}
.league-chat-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
/* Fluid shared layout: fill desktop space and contract cleanly on phones */
.main{width:100%;max-width:none;margin:0!important;min-width:0}
.content{width:100%;max-width:none;padding:clamp(16px,2vw,30px) clamp(12px,2.2vw,34px) 60px}
.content>*{min-width:0;max-width:100%;box-sizing:border-box}
.content .card,.content .full-card,.league-hub-layout{min-width:0;max-width:100%}
.league-chat-card{width:100%;max-width:none!important}
.my-team-tools,.my-team-identity,.my-team-roster,.my-team-roster .card{width:100%;max-width:none}
.settings-grid,.league-settings-fields,.scoring-points-grid{width:100%;min-width:0}
.league-hub-layout{width:100%;grid-template-columns:minmax(0,1.35fr) minmax(280px,.75fr)}
.league-hub-right{min-width:0}
@media(max-width:1100px){
.content{padding-left:clamp(14px,2vw,24px);padding-right:clamp(14px,2vw,24px)}
.league-hub-layout{grid-template-columns:minmax(0,1.1fr) minmax(260px,.9fr)}}
@media(max-width:850px){
.league-hub-layout{grid-template-columns:minmax(0,1fr)}
.league-hub-right{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){
.main{padding-bottom:calc(62px + env(safe-area-inset-bottom))}
.content{padding:16px 12px calc(76px + env(safe-area-inset-bottom))}
.league-hub-right{grid-template-columns:minmax(0,1fr)}
.league-chat-card{grid-template-rows:auto minmax(240px,60dvh) auto}
.league-chat-feed{min-width:0}
.league-chat-composer,.league-poll-composer{min-width:0}
.settings-grid,.league-settings-fields,.scoring-points-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:380px){
.content{padding-left:8px;padding-right:8px}
.my-team-tools{gap:5px}
.card-head{padding-left:11px;padding-right:11px}}
/* Keep matchup toolbar aligned to the matchup score strip{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(260px,30%)!important;column-gap:12px!important;align-items:center;justify-content:initial!important;padding:10px 0!important;}
@media(max-width:850px){}
@media(max-width:650px){}
/* Responsive layout pass: keep tab content usable from desktop through phone widths. */
html,body{max-width:100%;overflow-x:hidden}
.main,.topbar,.tabs,.content,.section-head,.card,.full-card{min-width:0}
.content{padding-bottom:clamp(24px,4vh,48px)}
.topbar{padding-inline:clamp(12px,2.2vw,34px)}
.tabs{overflow-x:auto;overflow-y:hidden;scrollbar-width:none;white-space:nowrap;overscroll-behavior-inline:contain}
.tabs::-webkit-scrollbar{display:none}
.tab{flex:none;min-height:44px}
.my-team-tools{display:flex;align-items:center;justify-content:flex-start;gap:10px;flex-wrap:wrap;width:100%;min-width:0}
.my-team-tools>[data-action=optimize]{margin-left:auto}
.my-team-day-picker{max-width:100%;flex:none}
.my-team-identity{width:100%;min-width:0;padding:clamp(12px,2vw,18px)}
.my-team-identity-copy{display:flex;align-items:center;gap:12px;min-width:0;max-width:100%}
.my-team-identity-copy>div{min-width:0;flex:1}.my-team-name-line{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:nowrap}
.my-team-name-line h3{min-width:0;flex:0 1 auto;overflow-wrap:anywhere}
.team-editor-backdrop,.score-breakdown-backdrop{padding:clamp(10px,3vw,24px);overflow:auto}
.team-editor-dialog,.score-breakdown-dialog{width:min(650px,100%);max-height:calc(100dvh - 2 * clamp(10px,3vw,24px));overflow:auto}
.league-hub-layout,.league-hub-right,.league-main-column{min-width:0}
.matchup-day-picker>span{white-space:nowrap}
.nhl-player-list,.espn-table-scroll,.roster-settings-table-wrap,.league-scoreboard-scroll{max-width:100%;overflow:auto;overscroll-behavior-inline:contain}
.player-pool-filters{display:flex;align-items:center;gap:8px;min-width:0}
.player-pool-filters .search{flex:1 1 220px;min-width:min(220px,100%)}
.player-pool-filters .chip{max-width:100%;white-space:nowrap}
.nhl-player-list{max-height:min(72vh,900px)}
.espn-profile-modal,.player-details-modal{width:min(960px,calc(100vw - 32px));max-width:100%;max-height:calc(100dvh - 24px);overflow:auto}
.espn-profile-section,.espn-overview-score,.espn-stat-strip{min-width:0}
.espn-profile-table{min-width:620px}
.league-hub-layout{grid-template-columns:minmax(0,1.35fr) minmax(260px,.75fr)}
.league-hub-right{grid-template-columns:minmax(0,1fr)}
.league-score-matchup,.league-score-team{min-width:0}
.league-score-name,.playoff-team-identity strong{overflow-wrap:anywhere}
.league-chat-card{width:100%;min-width:0;max-width:none!important;max-height:calc(100dvh - 190px)}
.league-chat-feed{min-width:0;overflow:auto;overscroll-behavior:contain}
.league-chat-message,.league-chat-message-body,.league-chat-message-meta{min-width:0}
.league-chat-message-meta{flex-wrap:wrap}
.league-chat-composer,.league-chat-input-wrap,.league-chat-compose-actions,.league-poll-composer{min-width:0;max-width:100%}
.settings-grid,.league-settings-fields,.scoring-points-grid{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}
.settings-grid>*,.league-settings-fields>*,.scoring-points-grid>*{min-width:0}
.season-schedule-card{min-width:0}

@media(max-width:1050px){
.content{padding-inline:clamp(12px,2vw,22px)}
}
@media(max-width:850px){
.league-hub-layout{grid-template-columns:minmax(0,1fr)}
.league-hub-right{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
.main{padding-bottom:0!important}
.content{padding:clamp(14px,4vw,20px) clamp(10px,3.4vw,16px) calc(20px + env(safe-area-inset-bottom))!important}
.topbar{height:auto;min-height:60px;padding:9px 12px;gap:6px}
.topbar-brand{gap:0}
.topbar-brand>span:last-child{display:none}
.league-title{margin:0 auto 0 4px;min-width:0}
.league-title h1{max-width:58vw;font-size:clamp(13px,4vw,17px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.top-actions{flex:none}
.tabs{height:46px;padding-inline:10px;gap:clamp(16px,5vw,26px)}
.tab{min-height:45px;font-size:11px}
.section-head{align-items:flex-start;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.section-head> :last-child{max-width:100%}
.my-team-tools{gap:7px}
.my-team-tools>[data-action=optimize]{margin-left:auto}
.my-team-day-picker{gap:5px;min-height:36px;padding-inline:5px}
.my-team-day-label{font-size:10px}
.my-team-identity{padding:11px;margin-bottom:10px}
.my-team-avatar{width:42px;height:42px}
.week-picker{gap:2px}
.week-picker .week-step{width:25px}
.week-label{gap:4px;padding-inline:3px}
.week-label select{max-width:min(35vw,145px);font-size:9px}
.matchup-day-picker{gap:4px;padding:2px 5px;font-size:9px}
.league-hub-right{grid-template-columns:minmax(0,1fr)}
.player-pool-filters{display:flex;flex-wrap:wrap;gap:6px}
.player-pool-filters .search{flex:1 1 100%;width:100%;min-width:0}
.player-pool-filters .chip{flex:1 1 auto;justify-content:center;text-align:center;padding:7px 8px;font-size:9px}
.nhl-player-list{max-height:70dvh}
.card-head{gap:8px;flex-wrap:wrap;padding:12px}
.card-head>*{min-width:0}
.settings-grid,.league-settings-fields,.scoring-points-grid{grid-template-columns:minmax(0,1fr)}
.league-score-matchup{grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);gap:4px;padding-inline:8px}
.league-score-team{grid-template-columns:25px minmax(0,1fr) auto;gap:4px}
.league-score-team .team-avatar{width:25px;height:25px}
.league-score-name{font-size:9px}
.league-score-team strong{font-size:12px}
.league-chat-card{max-height:none;grid-template-rows:auto minmax(220px,55dvh) auto}
.league-chat-composer{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;padding:9px}
.league-chat-input-wrap{width:100%}
.league-chat-compose-actions{display:flex;justify-content:flex-end;gap:7px}
.league-chat-message-meta time{margin-left:0}
.score-breakdown-heading,.score-breakdown-row{grid-template-columns:minmax(0,1.3fr) minmax(40px,.55fr) minmax(28px,.4fr) minmax(48px,.6fr);gap:4px;padding:12px 8px}
.score-breakdown-heading{font-size:9px}
.score-breakdown-row{font-size:12px;min-height:46px}
.score-breakdown-total{padding:14px 10px 8px}
.team-editor-dialog .team-form{grid-template-columns:minmax(0,1fr)}
.team-editor-dialog .team-picture-wrap{align-items:flex-start}
.team-form-actions{flex-wrap:wrap}
.team-form-spacer{display:none}
.team-form-actions .secondary-btn,.team-form-actions .primary-btn{flex:1 1 auto}
}
@media(max-width:390px){
.topbar-brand .brand-mark{width:25px;height:25px}
.league-title h1{max-width:54vw;font-size:13px}
.tabs{gap:14px;padding-inline:8px}
.my-team-tools>[data-action=optimize]{padding:8px 9px;font-size:9px}
.my-team-day-picker{gap:2px;padding-inline:3px}
.my-team-day-label{font-size:9px;padding-inline:2px}
.week-label>span{display:none}
.week-label select{max-width:29vw}
.matchup-day-picker{font-size:8px;gap:1px}
.player-pool-filters .chip{font-size:8px;padding-inline:5px}
}
/* Small-screen refinements for secondary views and dialogs. */
.settings-tabs{display:flex;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none;white-space:nowrap}
.settings-tabs::-webkit-scrollbar{display:none}
.settings-tab{flex:none;min-height:42px}
.trade-modal-backdrop{padding:clamp(8px,2vw,20px);overflow:auto}
.trade-modal{width:min(100%,1040px);max-width:100%;max-height:calc(100dvh - 2 * clamp(8px,2vw,20px));overflow:auto}
.trade-columns{min-width:0}
.trade-team-panel{min-width:0;max-width:100%}
.player-profile-dialog{width:min(100%,960px);max-width:100%;max-height:calc(100dvh - 24px);overflow:auto}
@media(max-width:650px){
.settings-tabs{margin-inline:-2px;padding-inline:2px}
.settings-tab{padding-inline:10px;font-size:10px}
.trade-columns{grid-template-columns:minmax(0,1fr)}
.trade-modal-footer{display:flex;flex-wrap:wrap;gap:7px}
.trade-modal-footer>*{flex:1 1 auto;min-width:max-content}
.trade-team-panel{padding:10px}
}
@media(max-width:390px){
.settings-tab{padding-inline:8px;font-size:9px}
.trade-modal-footer>*{min-width:0}
}
/* Roster: player identity stays fixed; matchup, fantasy score, then supporting stats. */
.lineup-card{--lineup-identity-width:clamp(240px,28vw,340px);--lineup-stat-width:54px;--lineup-opp-width:80px;--lineup-fpts-width:68px}
.lineup-scroll{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:var(--green) #29313c;isolation:isolate}
.lineup-scroll:focus-visible{outline:2px solid var(--green);outline-offset:-2px}
.lineup-table{width:100%;min-width:calc(var(--lineup-identity-width) + var(--lineup-opp-width) + var(--lineup-fpts-width) + var(--lineup-stat-count)*var(--lineup-stat-width));table-layout:fixed;border-collapse:separate;border-spacing:0}
.lineup-player-col{width:var(--lineup-identity-width)}
.lineup-opp-col{width:var(--lineup-opp-width)}
/* Keep shared identity/OPP/FPTS columns fixed; only stat columns absorb spare width. */
.lineup-stat-col{width:max(var(--lineup-stat-width),calc((100% - var(--lineup-identity-width) - var(--lineup-opp-width) - var(--lineup-fpts-width)) / var(--lineup-stat-count)))}
.lineup-fpts-col{width:var(--lineup-fpts-width)}
.lineup-table th,.lineup-table td{height:70px;padding:10px 6px;vertical-align:middle;text-align:center;border-bottom:1px solid #ffffff05;background:var(--panel)}
.lineup-table tbody tr:nth-child(even)>*{background:#1e232c}
.lineup-table thead th{height:40px;padding-block:10px;color:#9da7b5;font:700 10px/20px 'DM Sans',sans-serif;letter-spacing:.3px;border-bottom:1px solid var(--line)}
.lineup-table .lineup-identity{position:sticky;left:0;z-index:2;text-align:left;padding-inline:12px;box-shadow:8px 0 12px -12px #000,1px 0 0 #ffffff09}
.lineup-table thead .lineup-identity{padding-left:12px}
.lineup-table tbody .lineup-value,.lineup-table .score-breakdown-trigger{font:600 13px/20px 'DM Sans',sans-serif;font-variant-numeric:tabular-nums;letter-spacing:0;color:var(--text)}
.lineup-table .lineup-fpts{background:#a7f36c06}
.lineup-table tbody tr:nth-child(even)>.lineup-fpts{background:#242d2e}
.lineup-table .score-breakdown-trigger{display:inline-block;vertical-align:middle;min-width:36px;margin:0;padding:4px 2px;line-height:20px}
.lineup-table .score-breakdown-trigger:disabled{opacity:1}
.lineup-player{display:flex;align-items:center;gap:9px;min-width:0}
.lineup-position{display:grid;place-items:center;flex:0 0 34px;width:34px;min-height:25px;padding:0;border:1px solid #7da95a;border-radius:20px;background:transparent;color:#c5e9ad;font:600 10px/16px 'DM Sans',sans-serif}
button.lineup-position:hover{background:#34422f;color:var(--green)}
.lineup-photo{position:relative;display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:50%;overflow:hidden;background:#283342;color:#b5c8e5;font:600 11px 'DM Sans',sans-serif}
.lineup-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top}
.lineup-empty-photo{background:#ffffff05;color:#7c8999;font-size:20px}
.lineup-name{display:block;flex:1;min-width:0;padding:0;background:transparent;text-align:left;color:var(--text)}
.lineup-name strong{display:flex;align-items:center;gap:4px;min-width:0;font:600 13px/18px 'DM Sans',sans-serif}
.lineup-full-name,.lineup-short-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lineup-short-name{display:none}
.lineup-name small{display:flex;align-items:center;gap:3px;margin-top:4px;font:400 10px/15px 'DM Sans',sans-serif;color:#929eac;white-space:nowrap}
.lineup-name .nhl-team-logo{width:18px;height:18px;flex:0 0 18px}
.lineup-opponent{font:500 12px/16px 'DM Sans',sans-serif;color:#b9c1cc}
.lineup-opponent>span{display:block}
.lineup-opponent small{display:block;margin-top:2px;font:400 10px/14px 'DM Sans',sans-serif;color:#84909e}
button.lineup-name:hover strong{color:var(--green)}
.lineup-position:focus-visible,.lineup-name:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.lineup-table tbody tr:hover>th,.lineup-table tbody tr:hover>td{background:#29313a}
.lineup-empty .lineup-name,.lineup-empty .lineup-value{color:#8c98a8}
.lineup-move-target{padding:4px;border:1px dashed var(--green);border-radius:5px}
.lineup-move-target strong{color:var(--green)}
.lineup-scroll-hint{color:var(--green);font-size:10px;line-height:16px}
.lineup-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.lineup-scroll-space{display:none;height:calc(68px + env(safe-area-inset-bottom,0px));background:#181f25}
.lineup-has-overflow .lineup-scroll-space{display:block}
.lineup-scroll-dock{position:fixed;bottom:0;z-index:15;padding:7px 12px calc(7px + env(safe-area-inset-bottom,0px));background:#1b232df5;border:1px solid #46513e;border-bottom:0;box-shadow:0 -6px 22px #0005;backdrop-filter:blur(12px);border-radius:10px 10px 0 0}
.lineup-scroll-dock[hidden]{display:none}
.lineup-dock-label{display:flex;align-items:center;justify-content:space-between;gap:6px;font:600 9px/14px 'DM Sans',sans-serif;letter-spacing:.6px;color:var(--green)}
.lineup-scroll-status{color:#aab5c3;font-weight:400;letter-spacing:0;font-size:10px}
.lineup-dock-controls{display:flex;align-items:center;gap:10px}
.lineup-dock-controls button{flex:0 0 30px;height:36px;background:transparent;border:1px solid #46513e;border-radius:6px;color:var(--green);font:400 24px/28px 'DM Sans',sans-serif}
.lineup-dock-controls button:disabled{opacity:.3}
.lineup-dock-controls input{appearance:none;-webkit-appearance:none;display:block;flex:1;min-width:0;height:36px;margin:0;background:transparent;cursor:ew-resize;touch-action:pan-y}
.lineup-dock-controls input::-webkit-slider-runnable-track{height:9px;border-radius:6px;border:1px solid #566348;background:linear-gradient(to right,#658543 0 var(--scroll-progress),#2c3643 var(--scroll-progress) 100%)}
.lineup-dock-controls input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:38px;height:19px;margin-top:-6px;border:2px solid #d5f7b9;border-radius:10px;background:var(--green);box-shadow:0 1px 5px #0008}
.lineup-dock-controls input::-moz-range-track{height:9px;border:1px solid #566348;border-radius:6px;background:#2c3643}
.lineup-dock-controls input::-moz-range-thumb{width:34px;height:15px;border:2px solid #d5f7b9;border-radius:10px;background:var(--green)}
.lineup-dock-controls input:focus-visible,.lineup-dock-controls button:focus-visible{outline:2px solid var(--green);outline-offset:2px}
@media(max-width:850px){
.lineup-card{--lineup-identity-width:230px}
.lineup-short-name{display:inline}
.lineup-full-name{display:none}}
@media(max-width:650px){
.lineup-card{--lineup-identity-width:184px;--lineup-stat-width:46px;--lineup-opp-width:60px;--lineup-fpts-width:56px}
.lineup-table th,.lineup-table td{height:66px;padding:9px 4px}
.lineup-table .lineup-identity{padding-inline:7px}
.lineup-table thead th{font-size:9px;height:38px}
.lineup-player{gap:6px}
.lineup-position{flex-basis:29px;width:29px;min-height:23px;font-size:9px}
.lineup-photo{flex-basis:32px;width:32px;height:36px}
.lineup-name strong{font-size:12px;line-height:17px}
.lineup-name small{font-size:9px;line-height:13px;margin-top:3px}
.lineup-name .nhl-team-logo{width:15px;height:15px;flex-basis:15px}
.lineup-opponent{font-size:10px;line-height:15px}
.lineup-opponent small{font-size:9px;line-height:13px}
.lineup-scroll-hint{font-size:9px}
}
@media(max-width:360px){
.lineup-card{--lineup-identity-width:160px;--lineup-opp-width:56px;--lineup-fpts-width:52px}
.lineup-player{gap:4px}
.lineup-photo{flex-basis:27px;width:27px;height:32px}
.lineup-position{flex-basis:25px;width:25px}
.lineup-name strong{font-size:11px}
.lineup-scroll-status{font-size:9px}
}
/* Compact, persistent horizontal roster control. */
.lineup-scroll-space{height:calc(43px + env(safe-area-inset-bottom,0px))}
.lineup-scroll-dock{padding:3px 9px calc(3px + env(safe-area-inset-bottom,0px));border-radius:7px 7px 0 0}
.lineup-dock-label{font-size:8px;line-height:11px}
.lineup-scroll-status{font-size:8px}
.lineup-dock-controls{gap:7px}
.lineup-dock-controls button{flex-basis:24px;height:25px;font-size:20px;line-height:22px}
.lineup-dock-controls input{height:25px}
.lineup-dock-controls input::-webkit-slider-runnable-track{height:6px}
.lineup-dock-controls input::-webkit-slider-thumb{width:29px;height:14px;margin-top:-5px}
.lineup-dock-controls input::-moz-range-track{height:6px}
.lineup-dock-controls input::-moz-range-thumb{width:25px;height:10px}
.lineup-photo{background:#283342}
.lineup-lock-icon{display:inline-block;margin-left:2px;font-size:7px;line-height:1;color:#c4a35d}
.lineup-section+.lineup-section{border-top:8px solid var(--bg)}
.lineup-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px;background:#1e2730;border-bottom:1px solid var(--line)}
.lineup-section-head h4{margin:0;color:var(--text);font:700 11px/18px "DM Sans",sans-serif;letter-spacing:.6px;text-transform:uppercase}
.lineup-section[data-lineup-section="goalies"] .lineup-section-head{background:#253026}

/* Matchup layout: one owner for controls, comparison columns, and phone scaling. */
.matchup-view{min-width:0;width:100%}
.matchup-view .matchup-control-row{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:12px;margin:0 0 12px;padding:0;border:0;background:transparent;width:100%;min-width:0}
.matchup-view .matchup-control-main{display:grid;grid-template-columns:minmax(180px,1fr) auto minmax(140px,1fr);align-items:center;gap:10px;width:100%;min-width:0}
.matchup-view .matchup-control-main>.week-picker{justify-self:start;display:flex;align-items:center;gap:4px;width:100%;max-width:260px;min-width:0;height:42px;padding:3px;border:1px solid var(--line);border-radius:9px;background:var(--panel)}
.matchup-view .week-label{display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;flex:1;padding:0 2px}
.matchup-view .week-label>span{display:none}
.matchup-view .week-label select{width:100%;min-width:0;max-width:none;font-size:10px;text-overflow:ellipsis}
.matchup-view .week-step{flex:0 0 25px;width:25px;height:32px;padding:0;background:transparent;color:#d9e1ec;font-size:19px}
.matchup-view .week-step:disabled{opacity:.35}
.matchup-view .matchup-day-picker{display:flex;align-items:center;justify-content:center;justify-self:center;gap:5px;height:42px;min-height:0;min-width:0;padding:3px 5px;border:1px solid var(--line);border-radius:9px;background:var(--panel);font:600 11px 'DM Sans',sans-serif;white-space:nowrap;order:initial}
.matchup-view .matchup-control-main>.trade-center-trigger{justify-self:end;min-height:42px;margin:0;padding:7px 10px;font-size:10px;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:7px}
.matchup-view .matchup-columns{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:12px;align-items:start;min-width:0}
.matchup-view .matchup-main{min-width:0}
.matchup-view .matchup-sidebar{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0;align-content:start}
.matchup-view .matchup-team-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:8px;width:100%;min-width:0}
.matchup-view .matchup-team-card{min-width:0;padding:0;overflow:hidden}
.matchup-lineup-heading{display:flex;align-items:center;justify-content:space-between;gap:4px;height:36px;padding:8px 10px;border-bottom:1px solid var(--line);background:#202630}
.matchup-lineup-heading h3{margin:0;font-size:10px;font-weight:600;color:#c9d2df}
.matchup-lineup-heading small{font-size:8px;color:var(--muted)}
.matchup-view .matchup-lineup .matchup-player-row{display:grid;grid-template-columns:25px minmax(0,1fr) 38px;align-items:center;gap:6px;height:62px;min-height:62px;padding:7px 8px;border-bottom:1px solid var(--line);box-sizing:border-box}
.matchup-view .matchup-player-row:last-child{border-bottom:0}
.matchup-view .matchup-player-row>.position{width:25px;min-width:0;flex:none;padding:5px 0;font-size:8px}
.matchup-view .matchup-player-copy{min-width:0;overflow:hidden}
.matchup-view .matchup-player-name{display:block;min-width:0;width:100%;padding:0;background:transparent;text-align:left;color:inherit;line-height:inherit}
.matchup-view .matchup-player-copy strong{display:flex;align-items:center;gap:3px;min-width:0;font-size:12px;line-height:17px;font-weight:600;white-space:nowrap}
.matchup-name-full,.matchup-name-short{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.matchup-name-short{display:none}
.matchup-view .matchup-player-copy .nhl-team-logo{width:20px;height:20px;flex:0 0 20px}
.matchup-view .matchup-player-copy small{display:block;margin-top:3px;font-size:10px;line-height:14px;white-space:normal;overflow:hidden;max-height:28px;color:var(--muted)}
.matchup-view .matchup-daily-points{text-align:right;font:600 13px/20px 'DM Sans',sans-serif;font-variant-numeric:tabular-nums;min-width:0;white-space:nowrap}
.matchup-view .matchup-daily-points .score-breakdown-trigger{font:inherit;padding:0;min-width:0}
.matchup-view .matchup-empty-player{opacity:.55}
.matchup-view .matchup-player-name strong{color:var(--muted)}
.matchup-view .matchup-player-live .matchup-player-name strong{color:var(--text,#f3f5f7)}
.matchup-view .matchup-player-name:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.matchup-view .matchup-score-strip{display:block;margin:0 0 12px;padding:12px;background:var(--panel);border:1px solid var(--line);border-radius:12px}
.matchup-view .matchup-score-grid{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);align-items:center;gap:7px;min-height:76px}
.matchup-view .matchup-team-top{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:8px;align-items:center;min-width:0}
.matchup-view .matchup-team-heading-copy{min-width:0}
.matchup-view .matchup-team-heading-copy h3{margin:0 0 4px;font-size:13px;line-height:18px;overflow-wrap:anywhere;white-space:normal}
.matchup-view .matchup-team-heading-copy .subtle{display:block;font-size:9px;line-height:13px}
.matchup-view .matchup-team-avatar{width:34px;height:34px;flex:none;border-radius:9px;overflow:hidden;display:grid;place-items:center;background:#27313d}
.matchup-view .matchup-team-avatar img{width:100%;height:100%;object-fit:cover}
.matchup-view .matchup-team-total{min-width:0;text-align:right;white-space:nowrap}
.matchup-view .matchup-team-total strong{display:block;font-size:22px;line-height:26px;font-variant-numeric:tabular-nums}
.matchup-view .matchup-team-total small{display:block;font-size:7px;color:var(--muted)}
.matchup-view .matchup-team-top.opponent{grid-template-columns:auto minmax(0,1fr) 34px}
.matchup-view .matchup-team-top.opponent .team-avatar{grid-column:3;grid-row:1}
.matchup-view .matchup-team-top.opponent .matchup-team-heading-copy{grid-column:2;grid-row:1;text-align:right}
.matchup-view .matchup-team-top.opponent .matchup-team-total{grid-column:1;grid-row:1;text-align:left}
.matchup-view .matchup-score-vs{align-self:center;justify-self:center;font-size:9px;color:var(--muted)}
.my-team-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.my-team-tools .my-team-day-picker{justify-self:start;max-width:100%;min-width:0;min-height:40px}
.my-team-tools>[data-action=optimize]{margin-left:0;min-height:40px}
@media(max-width:1100px){
 .matchup-view .matchup-columns{grid-template-columns:minmax(0,1fr)}
 .matchup-view .matchup-control-row{grid-template-columns:minmax(0,1fr)}
 .matchup-view .matchup-sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
 .matchup-view .matchup-name-full{display:none}.matchup-view .matchup-name-short{display:inline}
 .matchup-view .matchup-player-copy strong{font-size:11px}
 .matchup-view .matchup-team-top{grid-template-columns:28px minmax(0,1fr);gap:5px}
 .matchup-view .matchup-team-top .team-avatar{width:28px;height:28px}
 .matchup-view .matchup-team-total{grid-column:1/-1;text-align:center}
 .matchup-view .matchup-team-top.opponent{grid-template-columns:minmax(0,1fr) 28px}
 .matchup-view .matchup-team-top.opponent .team-avatar{grid-column:2;grid-row:1}
 .matchup-view .matchup-team-top.opponent .matchup-team-heading-copy{grid-column:1;grid-row:1}
 .matchup-view .matchup-team-top.opponent .matchup-team-total{grid-column:1/-1;grid-row:2;text-align:center}
 .matchup-view .matchup-team-heading-copy h3{font-size:11px;line-height:15px}
 .matchup-view .matchup-score-grid{align-items:stretch}
}
@media(max-width:650px){
 .matchup-view .matchup-control-main{grid-template-columns:minmax(0,.9fr) minmax(0,1.2fr) 42px;gap:5px}
 .matchup-view .matchup-control-main>.week-picker{grid-column:1;justify-self:stretch;max-width:none}
 .matchup-view .matchup-control-main>.matchup-day-picker{grid-column:2;justify-self:stretch;width:100%;gap:1px;padding-inline:2px;font-size:10px}
 .matchup-view .week-label select{font-size:9px}
 .matchup-view .week-step{flex-basis:22px;width:22px}
 .matchup-view .matchup-control-main>.trade-center-trigger{grid-column:3;grid-row:1;justify-self:end;width:42px;height:42px;min-height:42px;padding:0;font-size:11px}
 .matchup-view .trade-center-icon{width:28px;height:28px;font-size:17px}
 .matchup-view .trade-center-trigger>span:not(.trade-center-icon):not(.trade-trigger-count){display:none}
 .matchup-view .week-label{position:relative;height:32px}
 .matchup-view .week-label>.matchup-week-mobile{display:block;pointer-events:none;white-space:nowrap;font-size:10px}
 .matchup-view .week-label select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
 .matchup-view .week-label:focus-within{outline:2px solid var(--green);border-radius:4px}
 .matchup-view .matchup-team-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .matchup-view .matchup-sidebar{grid-template-columns:minmax(0,1fr)}
 .matchup-view .matchup-lineup .matchup-player-row{grid-template-columns:18px minmax(0,1fr) 25px;gap:4px;height:70px;min-height:70px;padding:6px 4px}
 .matchup-view .matchup-player-row>.position{width:18px;font-size:7px}
 .matchup-view .matchup-player-copy strong{font-size:10px;line-height:15px;gap:2px}
 .matchup-view .matchup-player-copy .nhl-team-logo{width:14px;height:14px;flex-basis:14px}
 .matchup-view .matchup-player-copy small{font-size:9px;line-height:13px;max-height:26px}
 .matchup-view .matchup-daily-points{font-size:11px;line-height:18px}
 .matchup-lineup-heading{padding:6px;height:34px}.matchup-lineup-heading h3{font-size:9px}.matchup-lineup-heading small{font-size:7px}
 .matchup-view .matchup-score-strip{padding:10px 8px}
 .matchup-view .matchup-team-heading-copy .subtle{font-size:8px;line-height:12px}
 .matchup-view .matchup-team-total strong{font-size:22px}
 .my-team-tools .secondary-btn{font-size:10px;padding-inline:9px}
}
@media(max-width:360px){
 .matchup-view .matchup-player-copy .nhl-team-logo{display:none}
 .matchup-view .matchup-day-picker>span{font-size:9px}
 .matchup-view .matchup-control-main>.matchup-day-picker .week-step{flex-basis:18px;width:18px}
 .my-team-tools{gap:5px}.my-team-day-picker{gap:1px}
}

/* Team situation colors share the same legend in My Team and Matchup. */
.strength-legend{display:flex;justify-content:center;gap:20px;flex-wrap:wrap;padding:16px 10px;color:var(--muted);font-size:12px}
.strength-legend span{display:inline-flex;align-items:center;gap:6px}.strength-legend i{width:11px;height:11px;border-radius:2px;display:inline-block}
.power-play-swatch{background:#ef6268}.shorthanded-swatch{background:#efb85f}
.strength-badge{display:inline-flex;margin-left:5px;padding:1px 4px;border-radius:3px;font-size:9px;font-weight:800;vertical-align:middle;color:#fff;background:#963b43}
.shorthanded .strength-badge{background:#805b20}
.lineup-row.power-play>*,.lineup-row.power-play .lineup-identity{background:#3e262e!important}
.lineup-row.shorthanded>*,.lineup-row.shorthanded .lineup-identity{background:#3e3423!important}
.matchup-view .matchup-player-row.power-play{background:#3e262e;box-shadow:inset 3px 0 #ef6268}
.matchup-view .matchup-player-row.shorthanded{background:#3e3423;box-shadow:inset 3px 0 #efb85f}
.matchup-acquisitions{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;text-align:center;gap:12px;padding:16px 12px;margin-top:12px;border:1px solid var(--border);border-radius:12px;background:var(--panel);color:var(--muted);font-size:12px}
.matchup-acquisitions strong{font-size:16px;font-variant-numeric:tabular-nums;color:var(--text)}
@media(max-width:650px){.matchup-acquisitions{padding:12px 8px}.strength-legend{font-size:11px;gap:16px}}



.weekly-leader-photo{background:#253043}

/* Keep player card portraits square despite shared account-avatar flex rules. */
.player-profile-dialog .profile-photo{width:88px;height:88px;flex:0 0 88px;aspect-ratio:1;box-sizing:border-box;border-radius:50%}
@media(max-width:650px){.player-profile-dialog .profile-photo{width:76px;height:76px;flex-basis:76px}}

/* Player identity details share one line beneath the name. */
.nhl-player-head,.nhl-player-result{grid-template-columns:minmax(220px,1fr) 100px 84px}
.nhl-player-identity .nhl-player-meta{display:flex;align-items:center;gap:8px;white-space:nowrap;overflow:hidden;font-size:11px;line-height:24px}
.nhl-player-meta .nhl-player-position,.nhl-player-meta .nhl-team-label{flex:none}
.nhl-player-result .nhl-player-meta .nhl-team-label{margin:0;font-size:inherit;line-height:inherit;gap:3px}
.nhl-player-meta .nhl-fantasy-owner{margin:0;font-size:inherit;line-height:inherit;text-overflow:ellipsis;overflow:hidden}
@media(max-width:760px){
.nhl-player-result{grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:auto;gap:8px}
.nhl-player-identity{grid-column:1;grid-row:1}
.nhl-player-identity .nhl-player-meta{gap:5px;font-size:10px;line-height:18px}
.nhl-player-result .nhl-player-meta .nhl-team-label,.nhl-player-meta .nhl-fantasy-owner{margin:0}
.nhl-season-points,.nhl-player-result .action-btn,.nhl-player-result .rostered-tag{grid-row:1}
}

.lineup-empty[data-roster-target]{cursor:pointer}

/* Readable player news cards without repeated feed headlines. */
.player-profile-dialog .espn-news-list{display:grid;gap:10px}
.player-profile-dialog .espn-news-item{display:grid;gap:9px;padding:15px;background:#191f28;border:1px solid #303946;border-radius:10px;min-width:0}
.player-profile-dialog .espn-news-item strong{font-size:15px;line-height:1.45;color:#edf1f7;text-decoration:none;font-weight:600;overflow-wrap:anywhere}
.player-profile-dialog .espn-news-item strong::after{content:none}
.player-profile-dialog .espn-news-item .player-news-meta{display:flex;align-items:baseline;justify-content:space-between;gap:12px;color:#9daabb;font-size:11px;line-height:1.4}
.player-profile-dialog .player-news-meta>span{font-size:inherit;color:inherit;min-width:0}
.player-profile-dialog .player-news-meta time{flex:none;font-size:11px}
.player-profile-dialog .espn-news-item small{font-size:12px;line-height:1.55;color:#b8c2cf;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.player-profile-dialog .espn-news-item .player-news-read,.player-profile-dialog .player-news-read span{font-size:11px;line-height:1.5;color:#a9c4ff}
.player-profile-dialog .espn-news-item:hover{border-color:#6d87aa;background:#1c2531}
.player-profile-dialog .espn-news-item:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.player-profile-dialog .espn-news-attribution{font-size:11px;line-height:1.5;margin:0 0 12px}

/* Full team names remain visible while the native picker handles selection. */
.season-schedule-card>label.schedule-team-select{grid-column:1/-1;position:relative;display:grid;gap:5px;margin:0 13px 9px;padding:10px 32px 10px 12px;height:auto;min-height:60px;max-height:none}
.season-schedule-card>label.schedule-team-select>.schedule-selected-team{font-size:12px;line-height:1.4;letter-spacing:0;font-weight:600;color:var(--text);white-space:normal;overflow-wrap:anywhere}
.season-schedule-card>label.schedule-team-select>select{position:absolute;inset:0;opacity:0;width:100%;height:100%;max-width:none;cursor:pointer}
.season-schedule-card>label.schedule-team-select:after{content:'⌄';position:absolute;right:12px;top:50%;transform:translateY(-50%);color:var(--green);pointer-events:none}
.season-schedule-card>label.schedule-team-select:focus-within{outline:2px solid var(--green);outline-offset:2px}
.season-schedule-card>.season-overall-record{grid-column:1/-1;margin-left:13px;margin-right:13px}
.schedule-live .schedule-result strong{white-space:nowrap;font-variant-numeric:tabular-nums}
.schedule-live .schedule-result small:empty{display:none}

/* Activity controls and bubbles fit narrow screens without shrinking text. */
#content .league-chat-card{box-sizing:border-box;min-width:0;max-height:none;grid-template-rows:auto minmax(240px,55dvh);grid-auto-rows:auto}
#content .league-chat-card>.card-head{gap:10px;flex-wrap:wrap;padding:12px}
#content .league-chat-card>.card-head>div{min-width:0;flex:1 1 150px}
#content .league-chat-card>.card-head .subtle{font-size:11px;line-height:1.5}
#content .pinned-view-button{max-width:100%;white-space:normal;min-height:36px}
#content .league-chat-feed{box-sizing:border-box;min-height:0;padding:10px;overflow-x:hidden;scroll-behavior:auto;gap:12px}
#content .league-chat-message{flex-shrink:0;max-width:100%;box-sizing:border-box;gap:7px}
#content .league-chat-avatar{width:28px;height:28px;flex:0 0 28px}
#content .league-chat-message .league-chat-message-body{box-sizing:border-box;min-width:0!important;max-width:calc(100% - 35px)!important;padding:10px!important}
#content .league-chat-message-meta{display:grid;grid-template-columns:minmax(0,1fr) 32px;gap:4px 6px!important;align-items:center}
#content .league-chat-message-meta>strong{grid-column:1;font-size:11px!important;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
#content .league-chat-message-meta>.league-chat-time{grid-column:1;font-size:10px;line-height:1.4;white-space:normal;margin:0!important}
#content .league-chat-message-meta>.league-chat-pin-mark{grid-column:1;justify-self:start}
#content .league-chat-menu-toggle{grid-column:2;grid-row:1/4;width:32px!important;min-width:32px!important;height:32px!important;align-self:start}
#content .league-chat-message p{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
#content .league-poll-question{font-size:13px;line-height:1.45;overflow-wrap:anywhere}
#content .league-poll-option{box-sizing:border-box;min-width:0;min-height:42px}
#content .league-poll-option span{min-width:0;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
#content .league-poll-option b{flex:none;font-size:11px}
#content .league-poll>small{font-size:10px;line-height:1.5}
#content .league-chat-reactions{flex-wrap:wrap;max-width:100%}
#content .league-reaction-chip{height:32px!important}
#content .league-chat-composer{box-sizing:border-box;grid-template-columns:minmax(0,1fr) 90px!important;gap:8px;padding:10px}
#content .league-chat-input-wrap{min-width:0}
#content .league-chat-composer textarea{box-sizing:border-box;min-width:0;font-size:16px;line-height:1.4;height:90px;min-height:90px;padding:10px 36px 10px 10px;resize:vertical}
#content .league-chat-compose-actions{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:1fr 1fr;gap:6px;width:90px;height:90px}
#content .league-chat-compose-actions button{font-size:11px;white-space:normal;height:42px!important;min-height:42px;padding:4px}
#content .league-chat-input-wrap .league-chat-emoji-button{width:30px!important;min-width:30px;height:30px!important;min-height:30px}
#content .league-poll-composer{box-sizing:border-box;padding:10px;min-width:0}
#content .league-poll-composer input{box-sizing:border-box;font-size:16px;min-height:42px;max-width:100%}
#content .league-poll-compose-footer{flex-wrap:wrap}
#content .league-poll-compose-footer button{min-height:40px;white-space:normal}
#content .league-emoji-picker,#content .league-reaction-picker{box-sizing:border-box;grid-template-columns:repeat(6,minmax(0,1fr));width:min(260px,calc(100vw - 62px));max-width:100%;gap:4px}
#content .league-emoji-picker button,#content .league-reaction-picker button{min-width:0!important;width:100%!important;height:34px!important;padding:0}
@media(max-width:600px){
 #content .league-chat-action-menu{position:relative;inset:auto;width:100%;max-width:100%;box-sizing:border-box;margin-top:8px}
 #content .league-chat-action-menu .league-reaction-picker{position:static;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;margin-top:6px}
 #content #league-poll-options{grid-template-columns:minmax(0,1fr)}
}
#content .league-chat-message-meta>.league-chat-time{font-size:10px!important}
@media(max-width:600px){#content .league-emoji-picker{grid-template-columns:repeat(4,minmax(0,1fr))}}

#content.activity-chat-view{padding-top:10px!important;padding-bottom:calc(10px + env(safe-area-inset-bottom))!important}
#content.activity-chat-view>.section-head{display:none}
#content.activity-chat-view .league-chat-card{height:var(--activity-chat-height,calc(100dvh - 140px));min-height:180px;grid-template-rows:auto minmax(0,1fr);grid-auto-rows:auto;max-height:none;overflow:hidden}
#content.activity-chat-view .league-chat-feed{min-height:0;overflow-y:auto}
#content.activity-chat-view .league-poll-composer{max-height:40dvh;overflow-y:auto}

.brand-mark:has(img){padding:0;background:transparent;overflow:hidden;flex-shrink:0;box-shadow:none}
.brand-mark>img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.auth-card>.brand-mark{width:64px;height:64px;border-radius:15px}
/* Center the sign-in branding and heading. */
#auth-gate .auth-card>.brand-mark{margin-left:auto;margin-right:auto}
#auth-gate .auth-card>.eyebrow,#auth-gate .auth-card>h1{text-align:center}
/* Give the header artwork more room and raise the league name. */
.topbar .topbar-brand .brand-mark{width:36px;height:36px;border-radius:10px}
.topbar .league-title>.eyebrow{display:none}
.topbar .league-title h1{margin-top:0;transform:translateY(-6px)}
@media(max-width:650px){.topbar .topbar-brand .brand-mark{width:34px;height:34px}}
@media(max-width:380px){.topbar .topbar-brand .brand-mark{width:32px;height:32px}}
/* Match the league wordmark to the header icon height. */
.topbar .league-title h1{font-size:36px;line-height:1;margin:0;transform:none}
@media(max-width:650px){.topbar .league-title h1{font-size:34px;line-height:1}}
@media(max-width:380px){.topbar .league-title h1{font-size:32px;line-height:1}}

/* Prevent iPhone Safari from zooming into small form controls. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media(max-width:900px),(hover:none) and (pointer:coarse){
 html body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=button]):not([type=submit]):not([type=reset]),html body select,html body textarea{font-size:16px!important}
}

/* Consistent transaction cards with readable dates and position changes. */
.player-profile-dialog .espn-transaction-list{display:grid;gap:10px}
.player-profile-dialog .espn-transaction-row{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:14px;background:#191f28;border:1px solid #303946;border-radius:10px;min-width:0}
.player-profile-dialog .espn-transaction-row .transaction-heading{display:flex;justify-content:space-between;align-items:baseline;gap:8px 16px;flex-wrap:wrap}
.player-profile-dialog .espn-transaction-row strong{font-size:13px;line-height:1.4;color:var(--text)}
.player-profile-dialog .espn-transaction-row time{font-size:11px;line-height:1.5;color:var(--muted)}
.player-profile-dialog .espn-transaction-row .transaction-manager{font-size:12px;line-height:1.5;overflow-wrap:anywhere;color:#b8c2cf}
.player-profile-dialog .espn-transaction-row .transaction-positions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.player-profile-dialog .transaction-positions span{font-size:11px;line-height:1.4}
.player-profile-dialog .transaction-positions span:not(:nth-child(2)){padding:5px 9px;border-radius:6px;background:#26313c;color:#e0e8f1;overflow-wrap:anywhere}
/* Measured connectors replace percentage-based pseudo-elements. */
.playoff-bracket-layout{position:relative}
.bracket-connections{position:absolute;inset:0;pointer-events:none;overflow:visible;fill:none;stroke:#6c825e;stroke-width:1.5}
.playoff-bracket-layout .bracket-round:after,.playoff-bracket-layout .bracket-match:after,.playoff-bracket-layout .bracket-final:before{content:none!important}
/* Keep the menu above navigation and provide an unmistakable touch target. */
.topbar{position:relative;z-index:10;overflow:visible}
.topbar .profile-trigger{min-width:52px;min-height:44px;flex-shrink:0}
.topbar .profile-caret{display:block;flex:0 0 15px;width:15px;height:15px;stroke:#d5dfeb}
.topbar .profile-menu{max-width:calc(100vw - 24px)}
/* Share score rows across both teams, even when one name wraps. */
.matchup-view .matchup-team-top{align-self:stretch}
.matchup-view .matchup-team-total small{line-height:16px;letter-spacing:.6px}
@media(max-width:760px){
 .matchup-view .matchup-team-top,.matchup-view .matchup-team-top.opponent{grid-template-rows:minmax(44px,1fr) auto;align-items:center}
 .matchup-view .matchup-team-top .matchup-team-total{grid-row:2;align-self:end}
}
@media(max-width:650px){
 .topbar .league-title{flex:1;min-width:0;margin:0 4px}
 .topbar .league-title h1{font-size:clamp(18px,5vw,24px);line-height:1.15;max-width:none;overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere}
 .topbar .top-actions{flex-shrink:0}
}

/* Scroll the player dialog without moving the page behind it. */
html:has(.player-profile-backdrop){overflow-y:hidden}
.player-profile-backdrop,.player-profile-dialog{overscroll-behavior-y:contain}
.player-profile-dialog{min-height:0;-webkit-overflow-scrolling:touch}
/* Place VS on the numeric score baseline, below the mobile team names. */
.matchup-view .matchup-score-vs{line-height:12px;transform:translateY(-8px)}
@media(max-width:760px){
 .matchup-view .matchup-score-vs{align-self:end;margin-bottom:23px;transform:none}
}
.player-profile-dialog{overflow-anchor:none}

/* Both daily scores share one row after the active players and before reserves. */
.matchup-view .matchup-daily-total-row{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;min-height:60px;padding:14px 16px;background:#202630;border-block:1px solid #3c4653}
.matchup-daily-total-row>strong{text-align:center;font-size:22px;line-height:28px;font-variant-numeric:tabular-nums}
.matchup-daily-total-row>span{font-size:12px;font-weight:700;color:var(--text);white-space:nowrap}
@media(max-width:650px){
 .matchup-view .matchup-daily-total-row{gap:8px;min-height:54px;padding:12px 8px}
 .matchup-daily-total-row>strong{font-size:20px}
 .matchup-daily-total-row>span{font-size:11px}
}

#draft-entry[hidden]{display:none}
#draft-entry{padding:14px clamp(12px,2.2vw,34px) 0}
.draft-entry-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 18px;border:1px solid #4b653b;border-radius:12px;background:linear-gradient(110deg,#243326,#181f24)}
.draft-entry-copy{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;min-width:0}
.draft-entry-copy strong{font-size:14px;color:var(--green)}
.draft-entry-copy>span:not(.draft-preview-tag){font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.draft-entry-banner>button{flex:none;min-height:44px}
.draft-preview-tag{font-size:10px;padding:4px 7px;border:1px solid #71754a;border-radius:5px;color:#e0dfa1}
.draft-preview-controls{margin-top:16px;padding:16px}
.draft-preview-controls h3{margin:0;font-size:14px}
.draft-preview-controls p{font-size:12px;line-height:1.6;color:var(--muted)}
.draft-preview-controls label{display:grid;gap:8px;font-size:12px}
.draft-preview-controls select{padding:10px;background:#101318;color:var(--text);border:1px solid var(--line);border-radius:8px;width:100%}
.draft-lobby-backdrop{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:16px;background:#090b0fe8;overflow:auto}
.draft-lobby-dialog{position:relative;width:min(620px,100%);max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:24px}
.draft-lobby-dialog h2{margin:12px 32px 8px 0}.draft-lobby-dialog p,.draft-lobby-dialog li{font-size:13px;line-height:1.6;color:#b8c2cf}
.draft-lobby-date{display:grid;gap:8px;padding:14px;background:#202630;border-radius:8px;font-size:13px}
html:has(#draft-lobby){overflow-y:hidden}
@media(max-width:650px){.draft-entry-banner{align-items:stretch;flex-direction:column;gap:10px;padding:12px}.draft-entry-copy{align-items:flex-start;flex-direction:column;gap:6px}.draft-entry-banner>button{width:100%}.draft-lobby-dialog{padding:20px}}

.mock-room{width:min(1280px,100%);height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);padding:20px;scrollbar-gutter:stable}
.mock-room-header{display:flex;justify-content:space-between;gap:16px;align-items:center;padding-bottom:18px;border-bottom:1px solid var(--line)}
.mock-room-header h2{font:700 26px 'Space Grotesk',sans-serif;margin:12px 0 5px}.mock-room-header>div>span:last-child{color:var(--muted);font-size:12px}
.mock-room label{display:grid;gap:6px;font-size:12px;color:#b8c2cf}
.mock-room input:not([type=checkbox]),.mock-room select{min-height:42px;width:100%;max-width:100%;padding:9px 10px;background:#101318;color:var(--text);border:1px solid #3b4553;border-radius:8px;font:inherit}
.mock-room button{min-height:40px;white-space:normal}
.mock-setup{max-width:780px;padding:12px 0}.mock-setup h3{font-size:17px}.mock-setup p{max-width:680px}
.mock-setup-fields{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;margin:20px 0}
.mock-clock-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px 0}.mock-clock-bar h3{margin:7px 0;font-size:19px;overflow-wrap:anywhere}
#mock-clock{font:700 30px 'Space Grotesk',sans-serif;color:var(--green);white-space:nowrap}
.mock-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px;background:#202630;border:1px solid var(--line);border-radius:10px}
.mock-controls label{display:flex;align-items:center;gap:7px;min-height:40px}.mock-controls input{accent-color:var(--green)}
.mock-tabs{display:flex;gap:5px;margin-top:18px;overflow-x:auto;border-bottom:1px solid var(--line)}
.mock-tabs button{flex:none;padding:10px 14px;background:transparent;color:var(--muted);border-bottom:2px solid transparent;font-size:12px}
.mock-tabs button[aria-selected=true]{border-bottom-color:var(--green);color:var(--green)}
.mock-panel{padding:16px 0;min-height:300px}.mock-search{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:10px}
.mock-muted{font-size:11px!important;color:var(--muted)}
.mock-player{display:grid;grid-template-columns:minmax(0,1fr) 90px 75px;align-items:center;gap:12px;padding:12px 8px;border-bottom:1px solid var(--line)}
.mock-player>div{min-width:0}.mock-player strong{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.mock-player small{display:block;margin-top:4px;font-size:11px;color:var(--muted)}
.mock-room button:disabled{opacity:.4;cursor:default}.mock-room button:focus-visible,.mock-room input:focus-visible,.mock-room select:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.mock-board-scroll{overflow:auto;max-width:100%;max-height:60dvh}.mock-board{border-collapse:collapse;font-size:12px;width:100%;min-width:600px}
.mock-board th,.mock-board td{padding:12px;min-width:145px;border:1px solid #37404b;text-align:left;vertical-align:top}.mock-board th{background:#202630}.mock-board th:first-child{min-width:55px;position:sticky;left:0;z-index:1}.mock-board thead th{position:sticky;top:0;z-index:2}.mock-board td small{display:block;font-size:10px;color:var(--muted);margin-bottom:6px}.mock-board td strong{font-size:12px}.mock-board .mock-on-clock{background:#2b3c24;color:var(--green)}
.mock-roster-player{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:10px;padding:13px 8px;border-bottom:1px solid var(--line);font-size:12px}.mock-roster-player b{color:var(--green)}.mock-roster-player small{color:var(--muted)}
.mock-last-pick{padding:14px 0;border-top:1px solid var(--line);font-size:12px;color:#b8c2cf}
#mock-error:not(:empty){padding:12px;background:#3b2428;color:#ffb9b9;border-radius:8px;margin-top:10px}
@media(max-width:650px){
 .draft-lobby-backdrop:has(.mock-room){padding:0}.mock-room{height:100dvh;max-height:100dvh;width:100%;border-radius:0;padding:14px}
 .mock-room-header{align-items:flex-start;gap:8px}.mock-room-header h2{font-size:22px}.mock-room-header .draft-preview-tag{font-size:9px}.mock-room-header>button{flex:none;max-width:90px;font-size:11px;padding:8px}
 .mock-setup-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.mock-setup-fields>label:first-child{grid-column:1/-1}
 .mock-controls{gap:6px;padding:8px}.mock-controls>button{font-size:10px;padding:7px 9px}.mock-controls>label{font-size:11px}
 .mock-clock-bar h3{font-size:15px}.mock-clock-bar .eyebrow{font-size:9px}#mock-clock{font-size:24px}
 .mock-player{grid-template-columns:minmax(0,1fr) 64px 54px;gap:6px;padding:12px 0}.mock-player strong{font-size:12px}.mock-player small{font-size:10px;line-height:1.5}.mock-player button{font-size:10px;padding:6px}.mock-tabs button{font-size:11px;padding:9px}
 .mock-roster-player{grid-template-columns:35px minmax(0,1fr)}.mock-roster-player small{grid-column:2}
}

/* The board remains in view while the tools below scroll independently. */
.mock-room:has(.mock-board-region){display:flex;flex-direction:column;overflow:hidden;gap:0}
.mock-room:has(.mock-board-region)>.mock-room-header{flex:none;padding-bottom:10px}
.mock-room:has(.mock-board-region)>.mock-clock-bar{flex:none;padding:10px 0}
.mock-room:has(.mock-board-region)>#mock-error:empty{display:none}
.mock-board-region{flex:none;min-width:0;overflow:hidden;border:1px solid #3b4553;border-radius:10px;background:#111820}
.mock-board-heading{display:flex;align-items:center;justify-content:space-between;padding:6px 10px;font-size:12px;border-bottom:1px solid #3b4553}
.mock-board-heading button{min-height:28px;padding:4px 8px;font-size:10px}
.mock-board-region .mock-board-scroll{height:clamp(150px,25dvh,260px);max-height:none;overscroll-behavior:contain}
.mock-board-region .mock-board{min-width:100%;width:max-content;table-layout:fixed}
.mock-board-region .mock-board th,.mock-board-region .mock-board td{min-width:130px;max-width:150px;width:140px;padding:9px;overflow-wrap:anywhere}
.mock-board-region .mock-board th:first-child{min-width:45px;width:45px;max-width:45px}
.mock-board-region .mock-board td{height:66px;background:#1b2632}
.mock-board-region .mock-board td.mock-on-clock{background:#2b4429;box-shadow:inset 0 0 0 2px var(--green)}
.mock-board-region .mock-board td strong{display:block;font-size:11px;line-height:1.35}
.mock-controls-wrap{flex:none;margin-top:8px;max-height:135px;overflow:auto}
.mock-controls-wrap>summary{cursor:pointer;font-size:11px;color:var(--muted);padding:5px 0}
.mock-room:has(.mock-board-region)>.mock-tabs{flex:none;margin-top:4px}
.mock-room:has(.mock-board-region)>.mock-panel{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:10px 0}
.mock-room:has(.mock-board-region)>.mock-last-pick{flex:none;padding:7px 0;font-size:11px;line-height:1.3}
@media(max-width:650px){
 .mock-room:has(.mock-board-region){padding:9px}
 .mock-room:has(.mock-board-region) .mock-room-header{align-items:center;padding-bottom:6px}
 .mock-room:has(.mock-board-region) .mock-room-header h2{font-size:17px;margin:6px 0 0}
 .mock-room:has(.mock-board-region) .mock-room-header>div>span:last-child{display:none}
 .mock-room:has(.mock-board-region) .mock-clock-bar{padding:7px 0}
 .mock-room:has(.mock-board-region) .mock-clock-bar h3{margin:4px 0 0;font-size:13px}
 .mock-board-region .mock-board-scroll{height:clamp(110px,21dvh,180px)}
 .mock-board-region .mock-board th,.mock-board-region .mock-board td{min-width:106px;width:110px;max-width:120px;padding:7px;font-size:10px}
 .mock-board-region .mock-board td{height:57px}
 .mock-board-heading{padding:4px 7px;font-size:11px}
 .mock-room:has(.mock-board-region) .mock-tabs button{padding:7px 10px;min-height:34px}
 .mock-controls-wrap{margin-top:2px;max-height:100px}
 .mock-room:has(.mock-board-region) .mock-last-pick{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px}
}

/* Board-first draft room with the player workspace anchored beneath it. */
.mock-room:has(.mock-board-region){padding:12px;position:relative;background:#101722;gap:0}
.mock-room:has(.mock-board-region)>.mock-room-header{padding:0 100px 6px 0;border:0;min-height:34px}
.mock-room:has(.mock-board-region) .mock-room-header h2,.mock-room:has(.mock-board-region) .mock-room-header>div>span:last-child{display:none}
.mock-room:has(.mock-board-region) .mock-room-header>button{order:-1;min-height:32px;padding:5px 10px;font-size:11px}
.mock-room:has(.mock-board-region) .mock-room-header .draft-preview-tag{font-size:9px;border:0;padding:0;color:#b5c49e}
.mock-room:has(.mock-board-region)>.mock-clock-bar{justify-content:center;text-align:center;padding:4px 0 10px;gap:18px}
.mock-room:has(.mock-board-region) .mock-clock-bar h3{margin:4px 0 0;font-size:13px;color:var(--green)}
.mock-room:has(.mock-board-region) #mock-clock{font-size:24px;min-width:65px}
.mock-board-region{flex:1;min-height:100px;border:0;border-radius:0;position:relative;background:transparent;overflow:hidden}
.mock-board-region .mock-board-scroll{height:100%;max-height:none;padding-bottom:3px;scrollbar-width:thin}
.mock-board-region .mock-board{border-collapse:separate;border-spacing:4px 4px;min-width:100%;width:max-content;table-layout:fixed}
.mock-board-region .mock-board th,.mock-board-region .mock-board td,.mock-board-region .mock-board th:first-child{min-width:112px;max-width:112px;width:112px;border:0;text-align:left}
.mock-board-region .mock-board th,.mock-board-region .mock-board th:first-child{position:sticky;top:0;left:auto;z-index:2;background:#101722;height:34px;padding:0 3px;color:#dbe4ef}
.mock-board th>span:last-child{display:inline-block;max-width:76px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle;font-size:10px}
.mock-team-monogram{display:inline-grid;place-items:center;width:24px;height:24px;margin-right:4px;border-radius:50%;background:#39485e;color:#e5ecf7;font-size:11px;vertical-align:middle}
.mock-own-team .mock-team-monogram{background:#4b613c;color:var(--green);outline:1px solid var(--green)}
.mock-board-region .mock-board td{height:74px;position:relative;border-radius:6px;background:#192237;padding:17px 7px 12px;vertical-align:top}
.mock-board-region .mock-board td.mock-own-column{background:#24324b}
.mock-board-region .mock-board td.mock-on-clock{background:#314434;box-shadow:inset 0 0 0 1px var(--green)}
.mock-pick-number{position:absolute;right:6px;top:4px;font-size:9px;color:#8597b5}
.mock-snake-arrow{position:absolute;right:6px;bottom:3px;color:#667a9c;font-size:12px}
.mock-board-region .mock-board td small{font-size:8px;line-height:1.2;color:#b4c2d5;margin:2px 0 4px}
.mock-board-region .mock-board td strong{font-size:11px;line-height:1.25}
.mock-board-region .mock-board td.mock-picked-G{box-shadow:inset 0 3px #ca9beb}
.mock-board-region .mock-board td.mock-picked-D{box-shadow:inset 0 3px #72b4ec}
.mock-board-region .mock-board td.mock-picked-F,.mock-board-region .mock-board td.mock-picked-C,.mock-board-region .mock-board td.mock-picked-L,.mock-board-region .mock-board td.mock-picked-R{box-shadow:inset 0 3px #a7d37d}
.mock-follow-pick{position:absolute;bottom:8px;right:10px;z-index:3;border:1px solid #4b5c77;border-radius:20px;background:#1e2b3fe8;color:#d8e8ff;padding:5px 10px;min-height:28px!important;font-size:10px;opacity:.8}
.mock-controls-wrap{position:absolute;right:12px;top:10px;z-index:10;margin:0;max-height:none;overflow:visible}
.mock-controls-wrap>summary{list-style:none;padding:5px 10px;font-size:23px;line-height:28px;color:#dbe6f8;border-radius:8px;background:#202d40}
.mock-controls-wrap>summary::-webkit-details-marker{display:none}
.mock-controls-wrap>.mock-controls{position:absolute;right:0;top:44px;width:min(420px,calc(100vw - 40px));max-height:45dvh;overflow:auto;box-shadow:0 14px 40px #0009;background:#1e2b3f;border-color:#445873}
.mock-room:has(.mock-board-region)>.mock-tabs{background:#1a263a;border-radius:16px 16px 0 0;margin-top:5px;padding:0 8px;border-bottom:1px solid #34445e;box-shadow:0 -4px 12px #0003}
.mock-room:has(.mock-board-region)>.mock-panel{flex:0 0 clamp(220px,32dvh,350px);background:#1a263a;padding:10px 12px;border-radius:0 0 10px 10px}
.mock-room:has(.mock-board-region)>.mock-last-pick{font-size:10px;border:0;padding:5px}
@media(max-width:650px){
 .mock-room:has(.mock-board-region){padding:6px}
 .mock-room:has(.mock-board-region)>.mock-room-header{min-height:30px;padding:0 50px 2px 0;justify-content:flex-start;gap:10px}
 .mock-room:has(.mock-board-region) .mock-room-header .draft-preview-tag{font-size:8px}
 .mock-room:has(.mock-board-region)>.mock-clock-bar{padding:4px 0 5px;min-height:48px}
 .mock-room:has(.mock-board-region) .mock-clock-bar .eyebrow{font-size:8px}
 .mock-room:has(.mock-board-region) .mock-clock-bar h3{font-size:11px}
 .mock-controls-wrap{top:7px;right:8px;max-height:none}
 .mock-controls-wrap>summary{font-size:21px;padding:1px 7px}
 .mock-board-region .mock-board th,.mock-board-region .mock-board td,.mock-board-region .mock-board th:first-child{min-width:88px;max-width:88px;width:88px}
 .mock-board-region .mock-board td{height:61px;padding:16px 5px 10px}
 .mock-board-region .mock-board td strong{font-size:10px}
 .mock-board th>span:last-child{max-width:57px;font-size:9px}.mock-team-monogram{width:20px;height:20px;margin-right:3px;font-size:9px}
 .mock-room:has(.mock-board-region)>.mock-panel{flex-basis:clamp(175px,31dvh,285px);padding:8px}
 .mock-room:has(.mock-board-region) .mock-tabs button{min-height:34px;padding:7px 10px}
}
@media(max-height:600px){.mock-room:has(.mock-board-region)>.mock-panel{flex-basis:28dvh;min-height:95px}.mock-room:has(.mock-board-region)>.mock-clock-bar{min-height:36px;padding:2px}.mock-room:has(.mock-board-region) .mock-room-header{min-height:25px}}

.mock-auto-settings{flex:1 0 100%;border:1px solid #445873;border-radius:8px;margin:4px 0;padding:10px;min-width:0}
.mock-auto-settings legend{font-size:12px;color:var(--green);padding:0 5px}
.mock-auto-settings p{font-size:11px;margin:0 0 7px;line-height:1.5}
.mock-auto-settings label{display:flex;gap:8px;align-items:center;min-height:38px;border-top:1px solid #34445e}
.mock-auto-settings label span{flex:1;min-width:0;overflow-wrap:anywhere}
.mock-auto-settings label small{font-size:10px;color:#a4b4ce;white-space:nowrap}
.mock-board .mock-auto-badge{display:block;font-size:7px;color:var(--green);letter-spacing:.5px;line-height:10px;margin:2px 0 0 3px}

/* Keep names on one line even when AUTO adds a second header element. */
.mock-board-region .mock-board th{white-space:nowrap;overflow:hidden}
.mock-board th>.mock-team-name{display:inline-block;max-width:76px;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;line-height:20px}
.mock-room:has(.mock-board-region) .mock-clock-bar>div{min-width:0;max-width:55%}
.mock-room:has(.mock-board-region) .mock-clock-bar h3{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
.mock-auto-settings label span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
.mock-takeover{min-height:34px!important;padding:7px 10px;font-size:11px;flex:none}
@media(max-width:650px){
 .mock-board th>.mock-team-name{max-width:57px;font-size:9px}
 .mock-room:has(.mock-board-region)>.mock-clock-bar:has(.mock-takeover){flex-wrap:wrap;gap:4px 10px}
 .mock-room:has(.mock-board-region) .mock-clock-bar:has(.mock-takeover)>div{max-width:calc(100% - 85px)}
 .mock-takeover{flex-basis:100%;min-height:30px!important;padding:5px 10px;font-size:11px}
}

.mock-search{grid-template-columns:minmax(0,1fr) 95px 160px}
.mock-rank-add{background:transparent;color:#a9c4e9;padding:3px 0;min-height:26px!important;font-size:10px}
@media(max-width:650px){.mock-search{grid-template-columns:minmax(0,1fr) 65px 115px;gap:6px}.mock-search>label:last-child{grid-column:auto}.mock-search label{font-size:10px}.mock-player{padding-block:8px}.mock-room:has(.mock-board-region)>.mock-panel{flex-basis:clamp(210px,38dvh,340px)}.mock-panel>.mock-muted{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:9px!important;margin:7px 0}}
