 :root{font-family:system-ui,-apple-system,sans-serif;color:#1B2523;background:#F7F6F1}*{box-sizing:border-box}body{margin:0}main{max-width:760px;margin:auto;padding:16px}header{background:#fff;color:#263238;padding:12px 4px 18px;border-bottom:1px solid #dfe4e7;margin-bottom:14px}h1{font-size:24px;margin:12px 0 0}h2{margin:8px 0 16px}h3{margin-top:24px}section{background:#FFFFFF;border:1px solid #e1e6e8;border-radius:14px;padding:16px;margin:14px 0}.back,.subnav button{background:transparent;color:#52616b;padding:4px 0;min-height:auto}.subnav button{color:#52616b}.eyebrow{font-size:12px;font-weight:800;letter-spacing:.1em;color:#78858d}.muted{color:#71808a}.tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px}.admin-tabs{display:flex;gap:8px;margin:14px 0}.admin-tabs button{flex:1}.admin-tabs button.active{background:#176b87;color:#fff;border-color:#176b87}.inactive-players{margin-top:20px}.inactive-players summary{cursor:pointer;color:#52616b;font-weight:700;padding:10px}.tabs button,.league-card{background:#f5f7f8;border:1px solid #d9e0e3;text-align:left}.tabs button.active{border-color:#52616b;background:#eef2f3}.league-card{width:100%;display:flex;justify-content:space-between;align-items:center}button,input{font:inherit;font-size:16px;min-height:46px;padding:8px 12px;border-radius:9px;border:1px solid #c5cdd1}button{background:#fff;color:#36454d;font-weight:600;margin:4px 2px}.primary{background:#176b87;color:#fff;border-color:#176b87}.danger{color:#a33;background:#fff;border-color:#e2baba}.row{padding:12px;margin:8px 0;background:#f5f7f8;border-radius:10px}.player-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.player-row>input{flex:1;min-width:150px}.form-grid{display:grid;gap:12px}.form-grid label{display:grid;gap:5px;font-size:14px;color:#52616b}.status{margin-left:8px;color:#28704e}table{width:100%;font-size:16px;border-collapse:collapse}td,th{padding:10px 5px;text-align:left;border-bottom:1px solid #ddd}.match{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.score{width:54px}.add-player-row{display:flex;gap:8px;align-items:center;margin:12px 0}.add-player-row input{flex:1}.error{color:#a33}.attendance-row{display:grid;grid-template-columns:1fr 110px;gap:8px;align-items:center}.attendance-row input{grid-column:1/-1}.round-view{position:relative}.edit-setup{float:right}.round-controls{display:flex;justify-content:space-between;margin-bottom:8px}.court-card{display:grid;grid-template-columns:1fr auto auto auto auto;gap:6px;align-items:center;padding:8px;background:#f5f7f8;border-radius:8px;margin:6px 0;font-size:14px}.court-card b{grid-column:1/-1}.court-card .score{width:48px;min-height:38px;padding:4px}.round-controls button:disabled{opacity:.4}.count{font-size:14px;font-weight:500;color:#71808a}.inline-label{display:grid;gap:5px;font-size:14px;color:#52616b;margin:8px 0}.attendance-toggle.absent{color:#a33;border-color:#e2baba}.attendance-section{margin-top:14px}.attendance-section h3{margin:12px 0 6px}.attendance-row{width:100%;display:flex;justify-content:space-between;align-items:center;text-align:left;margin:4px 0;padding:12px;background:#f5f7f8;border:1px solid #d9e0e3}.attendance-row.absent{background:#fff7f7;border-color:#e2baba}.attendance-banner{font-size:13px;color:#28704e}.attendance-row.absent .attendance-banner{color:#a33}.court-section{margin:10px 0;padding:0;border:1px solid #d9e0e3;border-radius:10px;overflow:hidden}.court-section h3,.bye-section h3{margin:0;padding:10px 12px;background:#f5f7f8;font-size:15px}.team-row{width:100%;display:flex;justify-content:space-between;align-items:center;text-align:left;border:0;border-top:1px solid #e1e6e8;border-radius:0;margin:0;padding:12px;background:#fff}.team-row b{font-size:22px;min-width:34px;text-align:center}.bye-section{padding:0;overflow:hidden}.bye-section p{margin:0;padding:12px}.score-modal{position:fixed;inset:0;background:#0006;display:grid;place-items:center;padding:20px;z-index:10}.score-dialog{position:relative;background:#fff;border-radius:14px;padding:22px;width:min(340px,100%);display:grid;gap:12px}.score-dialog input{width:100%;text-align:center;font-size:24px}.modal-close{position:absolute;right:8px;top:6px;border:0;font-size:28px;min-height:auto;background:transparent}.score-dialog h3{margin:0}.score-tools{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.score-tools .danger{font-size:13px;min-height:40px}.team-names{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;flex:1;line-height:1.2}.team-row b{border:1px solid #c5cdd1;border-radius:4px;padding:5px 9px;min-width:42px}.team-row:first-of-type{background:#f7fafb}.analytics-grid{font-size:12px;display:block;overflow:auto}.analytics-grid th,.analytics-grid td{min-width:55px;text-align:center}.analytics-grid th:first-child{position:sticky;left:0;background:#fff}.analytics-grid td{font-weight:600}.analytics-grid td.outlier,.analytics-grid tr.outlier td{background:#ffe1dc;color:#9b2c1f;font-weight:800;outline:1px solid #d66b5d}.player-card{border-left:4px solid #176b87}.player-card h4{margin-bottom:6px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:20;background:#0F6E6B;display:flex;justify-content:space-around;padding:8px 4px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -2px 8px #0002}.bottom-nav button{background:transparent;border:0;color:#fff;min-height:44px;margin:0;display:grid;place-items:center;font-size:20px;padding:2px 10px}.bottom-nav span{font-size:11px}.tabs{display:none}main{padding-bottom:88px}.primary{background:#D7F238;color:#1B2523;border-color:#D7F238}.secondary{border-color:#0F6E6B;color:#0F6E6B}.linkish{color:#0F6E6B;text-decoration:underline;cursor:pointer}.hidden-back{visibility:hidden}.brand-mark{position:absolute;right:18px;top:14px;color:#D7F238;font-size:28px}.inline-label select{width:max-content;min-width:170px}.profile-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0}.profile-stats div,.relationship-cards div{background:#f5f7f8;border-radius:10px;padding:10px}.profile-stats strong,.profile-stats small,.relationship-cards span{display:block}.profile-stats strong{font-size:20px}.profile-stats small{font-size:12px;color:#71808a}.relationship-cards{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:18px}.relationship-cards b{font-size:12px;color:#0F6E6B}.relationship-cards div:nth-child(2),.relationship-cards div:nth-child(4){border-left:3px solid #c5cdd1}.brand-mark{width:44px;height:44px;position:absolute;right:14px;top:8px}.brand-mark svg{width:44px;height:44px}.profile-stats{grid-template-columns:repeat(5,1fr)}.relationship-cards .positive{border-left:3px solid #28704e;background:#eff8f0}.relationship-cards .caution{border-left:3px solid #b4772b;background:#fff7e8}.view-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.scope-select{width:max-content;min-width:170px}.numeric{text-align:right}.profile-stats div{background:#0F6E6B;color:#fff;text-align:center;border-top:4px solid #D7F238}.profile-stats strong{display:block;text-align:center}.profile-stats small{display:block;text-align:center;color:#e6f4f1}.profile-stats b{display:block;text-align:center}.header-brand{display:flex;align-items:center;justify-content:center;gap:10px}.header-brand h1{margin:0;color:#0F6E6B}.header-brand svg{flex:none}.hidden-back{visibility:hidden}.admin-danger-zone{border-top:1px solid #e2baba;margin-top:24px;padding-top:8px}.admin-danger-zone h3{color:#a33}.scores-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.scores-heading .scope-select{flex:none}.results-round{margin-top:18px}.results-round>h3{color:#0F6E6B;margin:12px 0 6px}.team-row.readonly{cursor:default}.team-row.readonly:hover{background:#fff}
.round-view{background:#f7f6f1;border:0;padding:12px;margin-top:12px}.round-view>h2{color:#0F6E6B}.round-controls button{border-color:#0F6E6B;color:#0F6E6B;background:#fff}.round-controls button:not(:disabled):hover{background:#D7F238;color:#1B2523}.court-section{border:1px solid #b8d4d2;border-radius:14px;box-shadow:0 2px 7px #0F6E6B18;background:#fff;margin:14px 0}.court-section h3{background:#0F6E6B;color:#fff;font-weight:800;letter-spacing:.03em}.court-section .team-row{min-height:60px}.team-row.pending b{color:#71808a;border:1px dashed #aebbc0;background:#f7f8f8}.team-row.scored b{color:#1B2523;background:#D7F238;border-color:#b6c92b}.team-row.winner{border-left:4px solid #D7F238;font-weight:700}.bye-section{border:1px solid #d5c77b;border-radius:14px;background:#fffdf0;box-shadow:0 2px 7px #8b9e1e20;margin:16px 0}.bye-section h3{background:#8b9e1e;color:#fff;border-radius:0}.bye-section p{font-weight:600;color:#52616b}.round-view .score-tools{margin-bottom:12px}

/* Schedule green motif refinement */
.round-view .court-section{border-color:#b7d4c0;background:#fbfefb;box-shadow:0 2px 8px #28704e20}.round-view .court-section h3{background:#28704e;color:#fff}.round-view .team-row{background:#fbfefb;border-color:#d7e8da}.round-view .team-row:first-of-type{background:#f1f9f2}.round-view .team-row.scored b{background:#D7F238;border-color:#9eb51f}.round-view .team-row.winner{border-left-color:#D7F238}.round-view .bye-section{border-color:#b8cf70;background:#fbfdec}.round-view .bye-section h3{background:#6f8f18}.round-view .round-controls button{border-color:#28704e;color:#28704e}.round-view .round-controls button:not(:disabled):hover{background:#D7F238;color:#1B2523}

/* Shared green motif for Standings and Admin */
section:not(.round-view):not(.court-section):not(.bye-section){box-shadow:0 2px 8px #28704e14;border-color:#d4e5d8}.standings-view section h2,section h2{color:#28704e}.standings-view table th,table th{background:#eff8f0;color:#28704e;font-weight:800}.standings-view table tr:hover,table tr:hover{background:#f5fbf5}.admin-tabs button.active{background:#28704e;border-color:#28704e}.admin-tabs button{border-color:#b7d4c0}.admin-danger-zone{border-top-color:#d8c7a0}.admin-danger-zone h3{color:#6f8f18}.secondary{border-color:#28704e;color:#28704e}.secondary:hover{background:#f1f9f2}.player-card{border-left-color:#28704e;background:#fbfefb}.inactive-players{border-color:#b7d4c0;background:#fbfefb}.row,.court-card{background:#f1f9f2;border:1px solid #d7e8da}

/* Scores: separate each round visually */
.results-round{border:1px solid #b7d4c0;border-radius:14px;background:#fbfefb;padding:12px;margin:18px 0;box-shadow:0 2px 8px #28704e14}.results-round>h3{margin:0 -12px 10px;padding:10px 12px;border-bottom:1px solid #d7e8da;color:#28704e;background:#f1f9f2;border-radius:12px 12px 0 0}.results-round .court-section{margin:10px 0}

/* Compact league header and aligned page controls */
header{padding:6px 4px 10px;margin-bottom:10px}.header-brand{gap:8px}.header-brand h1{font-size:21px}.header-brand svg{width:42px;height:38px}.scores-heading h2{margin:0}.scores-heading .eyebrow{margin:0;line-height:1.3}.round-view .scores-heading{margin-bottom:8px}.round-view .edit-setup{float:none;display:block;margin:18px 0 4px}.admin-danger-zone .danger{margin-bottom:6px}

/* Compact, right-aligned page selectors */
.hidden-back{display:none}.header-brand{padding:0;margin:0}.header-brand h1{line-height:1.1}.scores-heading{min-height:38px}.scores-heading h2{margin:0}.scores-heading .scope-select{margin-left:auto}

.session-management{border-top:1px solid #b7d4c0;margin-top:20px;padding-top:10px}.session-management h3{color:#28704e}.session-management .secondary{margin-right:6px}

.court-controls{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.court-controls .inline-label{flex:1;min-width:180px;margin:0}.court-controls button{white-space:nowrap}.session-controls{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.session-controls .inline-label{margin:0}.session-controls button{white-space:nowrap}.session-controls button:disabled{opacity:.45}

.session-controls{width:100%}.session-controls .reset-league{margin-left:auto}.session-controls select{height:46px}
.bottom-nav .nav-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.share-card{text-align:center;padding:24px 16px 28px}.share-intro{margin:0 auto 18px;color:#52616b;font-weight:600}.share-qr{display:grid;place-items:center;width:256px;height:256px;margin:0 auto 18px;padding:8px;background:#fff;border:1px solid #d7e8da;border-radius:12px}.share-qr img,.share-qr canvas{display:block}.share-url{margin:0 auto 14px;max-width:100%;overflow-wrap:anywhere;color:#0F6E6B;font-weight:600}.share-card button{min-width:128px}.share-card .status{display:block;margin:8px 0 0}

/* Compact, read-only Scores results; Schedule styles are intentionally unaffected. */
.scores-list .score-round{margin:12px 0;padding:0;border:0;border-bottom:1px solid #d7e8da;border-radius:0;background:transparent;box-shadow:none}.scores-list .score-round>h3{margin:0;padding:6px 0;color:#28704e;background:transparent;border:0;border-radius:0;font-size:14px;font-weight:700}.scores-list .score-match-row{display:grid;grid-template-columns:72px minmax(0,1fr) 80px minmax(0,1fr);gap:12px;align-items:center;padding:5px 0;border-top:1px solid #edf2ed;font-size:14px;line-height:1.2}.scores-list .score-court{color:#71808a;font-size:12px}.scores-list .score-team{min-width:0}.scores-list .score-team:last-child{text-align:right}.scores-list .score-team.winner{font-weight:700;color:#28704e}.scores-list .score-value{white-space:nowrap;text-align:center;font-size:14px;color:#1B2523}.scores-list .score-bye{padding:5px 0 8px;color:#71808a;font-size:12px}@media (max-width:520px){.scores-list .score-match-row{grid-template-columns:58px minmax(0,1fr) 64px minmax(0,1fr);gap:6px;font-size:12px}.scores-list .score-court{font-size:11px}}

.session-actions{display:flex;gap:8px;align-items:stretch;margin-top:18px;clear:both}.session-actions .edit-setup{float:none;display:inline-flex;flex:1;justify-content:center;align-items:center;margin:0}.adjust-session-button{background:#D7F238;color:#1B2523;border-color:#b6c92b}.adjust-session-button:hover{background:#c8e52a}.regenerate-session-button{background:#b42318;color:#fff;border-color:#8f1c13}.regenerate-session-button:hover{background:#941c12}@media(max-width:420px){.session-actions{flex-direction:column}}

.adjust-attendance{display:grid;gap:6px;margin:8px 0 14px}.adjust-attendance label{padding:8px;background:#f1f9f2;border-radius:8px}.adjust-attendance input{min-height:auto}

.analytics-grid td.not-applicable{background:#1B2523!important;color:#fff!important;font-weight:800}

.analytics-average{font-weight:800;background:#f1f9f2}.analytics-average th,.analytics-average td{font-weight:800}
