.friends-page{max-width:1000px;padding-bottom:50px}.friends-page h1{font-size:calc(36px * var(--text-scale,1));line-height:1.15}.friends-page p,.friends-page label,.friends-page td,.friends-page th,.friends-page input,.friends-page select{font-size:calc(16px * var(--text-scale,1));line-height:1.55}.friends-intro{padding:30px 0}.friends-page section:not(.friends-intro){border:2px solid var(--ink);border-radius:14px;padding:20px;margin:18px 0;background:var(--tile)}.friends-page [hidden]{display:none!important}.friend-input,.friend-account,.league-controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.friend-account{justify-content:space-between}.friend-input input{flex:1 1 160px;min-width:0;padding:12px;border:1px solid currentColor;border-radius:8px;max-width:100%;background:var(--paper);color:var(--ink)}.friend-input button{white-space:normal}.friend-table{overflow-x:auto;margin:20px 0}.friend-table table{width:100%;border-collapse:collapse}.friend-table td,.friend-table th{padding:12px;text-align:left;border-bottom:1px solid currentColor}.friend-table caption{text-align:left;padding:10px 0}.friend-table .you{font-weight:800;background:var(--lavender)}#leagueList{display:flex;gap:10px;flex-wrap:wrap}.league-rules{border:2px solid currentColor;border-radius:14px;padding:20px;margin-top:20px}.league-rules summary{font-size:calc(18px * var(--text-scale,1));font-weight:700;cursor:pointer}.friends-page button,.friends-page a,.friends-page select{min-height:44px}.friends-page :focus-visible{outline:3px solid currentColor;outline-offset:3px}.friends-page #leagueStatus{padding:12px;border-left:4px solid var(--purple)}.league-controls{margin-top:16px}@media(max-width:600px){.friends-page{padding:0 16px 30px}.friends-page header{height:auto;min-height:80px;gap:15px;flex-wrap:wrap}.friends-page section:not(.friends-intro){padding:14px}.friends-page h1{font-size:calc(26px * var(--text-scale,1))}.friend-input>*{width:100%}.friend-table{max-width:100%}}
/* Standings first; setup and account details stay out of the daily path. */
.friends-page{max-width:900px}.friends-page header{height:auto;min-height:84px;padding:18px 0;gap:16px;flex-wrap:wrap}.friends-page header>a:last-child{display:inline-flex;align-items:center;padding:10px 16px;border-radius:8px;background:#d2e9a7;color:#304722;text-decoration:none;font-size:calc(15px * var(--text-scale,1));font-weight:700}.friends-intro{padding:20px 0 12px}.friends-intro h1{margin:10px 0 16px}.friends-page p{color:#526046}.friends-page section:not(.friends-intro){border:1px solid #cbd3c0;background:#fffefa}.friends-page h2{font-size:calc(23px * var(--text-scale,1));line-height:1.35}.friends-page .primary{font-size:calc(15px * var(--text-scale,1));min-height:48px;border-radius:8px;color:#304722}.friends-page .secondary{font-size:calc(15px * var(--text-scale,1));color:#526046;min-height:44px}.league-switcher{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.league-switcher label{width:100%;font-weight:700}.league-switcher select{flex:1;min-width:0}.friends-page select{padding:10px;border:1px solid #aabd94;border-radius:8px;background:#fff;color:#35452b;max-width:100%}.friends-page #leagueStatus{font-size:calc(14px * var(--text-scale,1));padding:10px 12px;background:#edf2e6;border-radius:0 8px 8px 0;line-height:1.6}.friends-page #leagueSetup{padding:16px;margin-bottom:12px}.friends-page #leagueBoard{margin-top:12px;scroll-margin-top:16px}.friend-table caption{font-size:calc(13px * var(--text-scale,1));color:#526046}.friend-table td,.friend-table th{border-color:#dde2d3}.invite-tools{border-top:1px solid #d9dfd0;margin-top:24px;padding-top:16px}.invite-tools h3{font-size:calc(18px * var(--text-scale,1));margin:0}.invite-tools p{margin:8px 0 14px}.invite-tools label{font-size:calc(13px * var(--text-scale,1));color:#526046}.invite-tools .friend-input{margin-top:8px}.friends-page #copyInvite{background:#d2e9a7;color:#304722;border:1px solid #b0cd83;border-radius:8px;padding:12px 18px;font-weight:700}.manage-league,#profileDetails{margin-top:14px}.manage-league summary,#profileDetails summary{font-size:calc(15px * var(--text-scale,1));cursor:pointer;color:#526046;min-height:44px;line-height:1.6;padding:10px 0}.league-controls button{border:1px solid #cbd3c0;border-radius:8px}.friends-page #leagueAccount{padding:6px 18px}.friends-page #profileDetails{margin:0}.league-rules{border:1px solid #cbd3c0;padding:16px}.league-rules summary{font-size:calc(15px * var(--text-scale,1));color:#526046}.friends-page .eyebrow{font-size:calc(11px * var(--text-scale,1))}.friends-page #leagueDates{font-size:calc(13px * var(--text-scale,1))}.friends-page #createPanel{scroll-margin-top:16px}.friends-page #leagueTitle{overflow-wrap:anywhere}
@media(max-width:600px){.friends-page .brand{font-size:26px}.friends-page h1{font-size:calc(28px * var(--text-scale,1))}.league-switcher select{flex-basis:100%}.league-switcher #showCreate{padding-left:0}.friend-table{overflow:visible}.friend-table table,.friend-table tbody{display:block;width:100%}.friend-table thead{display:none}.friend-table caption{display:block;width:100%;line-height:1.6}.friend-table tr{display:grid;grid-template-columns:1fr 1fr 1fr;gap:0;border:1px solid #cbd3c0;border-radius:10px;margin:12px 0;padding:12px;background:#f8faf4}.friend-table td{display:block;border:0;padding:6px;font-size:calc(14px * var(--text-scale,1));min-width:0;overflow-wrap:anywhere}.friend-table td:before{content:attr(data-label);display:block;font-size:calc(11px * var(--text-scale,1));font-weight:400;color:#526046;margin-bottom:4px}.friend-table td:nth-child(1){grid-column:1;font-weight:700}.friend-table td:nth-child(2){grid-column:2/4;font-size:calc(17px * var(--text-scale,1));font-weight:700}.friend-table td:nth-child(3){grid-column:1;font-weight:700}.friend-table td:nth-child(4){grid-column:2}.friend-table td:nth-child(5){grid-column:3}.friend-table td:nth-child(6){grid-column:1/-1;font-size:calc(13px * var(--text-scale,1));border-top:1px solid #d9dfd0;margin-top:6px}.friend-table td:nth-child(6):before{display:inline;margin-right:8px}.friends-page .friend-input{gap:8px}.friend-account{gap:8px}.friends-page section:not(.friends-intro){padding:16px}.league-controls{align-items:stretch}.league-controls button{flex:1 1 160px}}
html[data-contrast=high] .friends-page :is(section,.league-rules,.friend-table tr,#leagueStatus){border-color:#333;background:#fff;color:#111}html[data-contrast=high] .friends-page :is(p,summary,label,td:before){color:#222}
.friends-page header{flex-direction:row;align-items:center;margin:0;border:0;border-bottom:1px solid #d9dfd0;border-radius:0;background:transparent;box-shadow:none;padding:16px 0;min-height:76px}.friends-page header>a:last-child{width:auto}.has-leagues .friends-intro{padding:12px 0 0}.has-leagues .friends-intro .eyebrow,.has-leagues .friends-intro>p:not(.eyebrow){display:none}.has-leagues .friends-intro h1{font-size:calc(27px * var(--text-scale,1));margin:14px 0}.league-display{border:1px solid #cbd3c0;border-radius:12px;background:#fffefa;padding:6px 18px;margin:18px 0}.league-display summary{padding:10px 0;min-height:44px;color:#526046;cursor:pointer;font-size:calc(15px * var(--text-scale,1))}.league-display select{margin:8px}.league-switcher label{order:0;width:auto;flex:1}.league-switcher #showCreate{order:1}.league-switcher select{order:2;flex-basis:100%}
@media(max-width:600px){.friends-page header .brand{font-size:26px}.friends-page header>a:last-child{font-size:calc(14px * var(--text-scale,1));padding:8px 12px}.league-switcher #showCreate{width:auto;font-size:calc(13px * var(--text-scale,1));padding:8px 0}.has-leagues .friends-page #leagueStatus{margin:12px 0}.league-switcher{gap:6px}}

.has-invite .friends-intro>p{display:none}.has-invite .friends-intro{padding:12px 0 0}.has-invite .friends-intro h1{margin:12px 0}#invitePanel #leagueSignIn{display:flex;justify-content:center;align-items:center;min-height:48px;font-size:calc(15px * var(--text-scale,1));line-height:1.5;padding:12px 16px;text-align:center}#invitePanel #dismissInvite{display:block;margin-top:8px}
