*{box-sizing:border-box}body{margin:0;background:#090909;color:#f4f4f4;font-family:Inter,Arial,sans-serif;line-height:1.5}a{color:#d9ef6c}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #d9ef6c;outline-offset:3px}.previewBanner{padding:8px 20px;background:#292d12;color:#e2eca2;text-align:center;font-size:13px}.siteHeader{max-width:1120px;margin:auto;padding:24px;display:flex;align-items:center;gap:26px;border-bottom:1px solid #303030}.brand{display:flex;align-items:center;gap:10px;font-size:17px;font-weight:800;letter-spacing:1px;color:white;text-decoration:none}.brandMark{display:grid;place-items:center;border-radius:50%;width:36px;height:36px;background:#d9ef6c;color:#111;font-size:13px}.siteHeader nav{display:flex;gap:20px;flex:1}.siteHeader nav a{color:#ddd;text-decoration:none}.siteHeader form{margin:0}.textButton{background:none;border:0;color:#bbb;padding:8px}main{max-width:1020px;margin:auto;padding:34px 24px 60px;min-height:70vh}h1{font-size:34px;line-height:1.15;letter-spacing:-1px;margin:0 0 16px}h2{font-size:23px}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:11px;color:#c6da65;margin:0 0 12px}.muted{color:#ababab}.pageHeading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:32px}.pill{border:1px solid #4b4b35;border-radius:30px;padding:8px 14px;font-size:13px;white-space:nowrap}.notice{background:#163c2c;border:1px solid #438b65;border-radius:8px;padding:16px;margin-bottom:24px}.error{background:#422020;border-color:#ad6666}.loginPanel{max-width:470px;margin:35px auto;padding:28px;border:1px solid #373737;border-radius:12px;background:#121212}.loginPanel label,.codeForm label{display:block;margin:18px 0 6px}.loginPanel input,.codeForm input{width:100%;padding:12px;background:#080808;border:1px solid #5a5a5a;border-radius:6px;color:#fff}.loginPanel button{width:100%;margin:20px 0 16px}.demoHelp{border-top:1px solid #393939;margin-top:24px;padding-top:20px;font-size:14px}.codeForm{max-width:470px}.codeForm button{margin-top:16px}.dgList{display:grid;gap:16px}.dgActions form{margin:0}.dgActions button,.dgActions a{width:100%}.dgButton{display:inline-block;text-align:center;text-decoration:none}.dgSection{margin-bottom:34px}.roster{padding:0;list-style:none;max-width:650px}.roster li{padding:14px 16px;border-bottom:1px solid #333;display:flex;justify-content:space-between;gap:12px}.empty{padding:40px;border:1px dashed #555;border-radius:8px}footer{max-width:1120px;margin:auto;padding:24px;border-top:1px solid #303030;display:flex;justify-content:space-between;gap:20px;color:#aaa;font-size:13px}footer form{display:flex;gap:8px}footer select,footer button{background:#151515;color:#ddd;border:1px solid #555;padding:4px 8px;border-radius:4px}dialog{color:#eee;background:#181818;border:1px solid #555;border-radius:12px;max-width:460px;padding:26px}dialog::backdrop{background:#000a}.dialogActions{display:flex;gap:12px}.loginPanel>a{display:block;margin-top:12px}@media(max-width:650px){.siteHeader{padding:16px;gap:12px;flex-wrap:wrap}.siteHeader nav{order:3;flex-basis:100%}.siteHeader>form{margin-left:auto}main{padding:26px 16px}.pageHeading{display:block}.pill{display:inline-block;margin-top:8px}h1{font-size:28px}.loginPanel{padding:20px;margin:15px auto}footer{flex-direction:column}.roster li{padding:12px 0}.dialogActions{flex-direction:column}}
.loginPanel select{width:100%;padding:10px;background:#171717;border:1px solid #555;border-radius:6px;color:#fff}.checkLabel{display:flex!important;gap:10px;align-items:center}.checkLabel input{width:auto}.managementRow{padding:20px 0;border-bottom:1px solid #333;display:flex;justify-content:space-between;gap:20px}.managementRow input{display:block;color:#fff;background:#111;border:1px solid #555;padding:8px;margin:6px 0}.managementRow button{margin-top:6px}@media(max-width:600px){.managementRow{display:block}}

.calorRulesContent a,
.calorRulesContent a:visited { color:#ff8a00; text-decoration:underline; text-underline-offset:3px; }
.calorRulesContent a:hover,
.calorRulesContent a:focus-visible { color:#ffb366; }

.rulesPage{max-width:760px;margin:auto}.rulesPage form{padding:20px;border:1px solid #444;border-radius:8px;margin:24px 0}.rulesPage button{margin-top:16px}.rulesPage h3{margin-top:26px}

.siteHeader{flex-wrap:wrap;gap:16px}.siteHeader nav{gap:8px;flex-wrap:wrap}.siteHeader nav a,.navButton{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 15px;border:1px solid #484848;border-radius:10px;background:#202020;color:#eee;text-decoration:none;font-weight:600}.siteHeader nav a:hover,.navButton:hover{background:#333;border-color:#d9ef6c}.languageControl{display:flex;align-items:center;gap:8px;margin-left:auto!important}.languageControl label{font-size:13px;color:#bbb}.languageControl select{min-height:44px;padding:8px 12px;border:1px solid #555;border-radius:10px;background:#202020;color:#fff}.roster .dgButton{white-space:normal}@media(max-width:650px){.languageControl label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.siteHeader nav{order:4}.siteHeader .languageControl{margin-left:0!important}}

.organiserDashboard{max-width:960px;margin:0 auto}.adminActions{display:flex;gap:12px;flex-wrap:wrap;padding-bottom:28px;margin-bottom:28px;border-bottom:1px solid #333}.adminActions .dgButton{min-height:46px;padding:12px 20px}.adminEvents{display:grid;gap:18px}.adminEvent{background:#151515;border:1px solid #383838;border-radius:14px;padding:24px}.adminEventHeading{display:flex;justify-content:space-between;align-items:center;gap:20px}.adminEvent h3{font-size:22px;margin:0 0 8px}.adminEvent p{margin:4px 0}.adminEvent .eyebrow{margin-bottom:8px}.eventWhen{font-weight:600}.eventStats{display:flex;align-items:center;gap:28px;border-top:1px solid #353535;margin-top:18px;padding-top:18px}.eventStats div{display:grid;gap:3px}.eventStats span{font-size:13px;color:#bbb}.eventStats strong{font-size:22px}.eventStats>a{margin-left:auto}@media(max-width:650px){.adminEvent{padding:18px}.adminEventHeading{align-items:flex-start;flex-wrap:wrap}.eventStats{gap:18px;flex-wrap:wrap}.eventStats>a{margin-left:0;width:100%}.adminActions .dgButton{flex:1 1 140px}}

.adminActions .dgButton{width:auto;flex:0 0 auto}.adminEventHeading>.dgButton{width:auto;flex:0 0 auto;min-width:120px}.eventStats>.dgButton{width:auto;flex:0 0 auto}@media(max-width:650px){.adminActions .dgButton{flex:1 1 140px}.eventStats>.dgButton{width:100%}}

.activityFilter{display:flex;gap:12px;align-items:center;margin-bottom:24px;flex-wrap:wrap}.activityFilter select,.groupEditor input{background:#191919;border:1px solid #555;border-radius:8px;padding:10px;color:#fff;font:inherit;min-height:44px}.groupManagement{display:grid;gap:20px}.groupEditor{padding:24px;border:1px solid #444;border-radius:12px}.groupEditor label{display:block;margin:12px 0 6px}.groupEditor input[name=name]{width:100%}.groupEditor input[type=color]{padding:3px;width:72px}.groupEditor .dgButton{display:block;width:auto;margin-top:18px}.groupManagement+h1{margin-top:20px}

[data-user-row][hidden]{display:none}.userList .dgButton{width:auto;align-self:center}#user-search{display:block;margin:10px 0 24px;width:100%;padding:12px;border-radius:8px;border:1px solid #555;background:#191919;color:#fff}

.brandLogo{width:160px;max-height:64px;object-fit:contain}.usersFilters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:22px}.usersFilters>div{flex:1 1 180px;min-width:0}.usersFilters label{display:block;margin-bottom:6px}.usersFilters input,.usersFilters select{width:100%;min-height:44px;padding:10px;background:#191919;color:#fff;border:1px solid #555;border-radius:8px}.usersFilters #user-search{margin:0}.usersFilters>.dgButton{width:auto;min-height:44px}.usersTableScroll{overflow-x:auto;border:1px solid #383838;border-radius:10px}.usersTable{border-collapse:collapse;width:100%;font-size:14px}.usersTable th,.usersTable td{padding:12px;text-align:left;border-bottom:1px solid #333;vertical-align:middle}.usersTable th{background:#202020;white-space:nowrap}.usersTable tr:nth-child(even){background:#161616}.usersTable small{display:block;color:#aaa;margin-top:3px}.usersTable .dgButton{width:auto;white-space:nowrap;padding:8px 12px}.sortButton{display:inline-flex;color:#eee;text-decoration:none;padding:6px;border:1px solid #555;border-radius:6px;white-space:nowrap}.userPagination{display:flex;align-items:center;gap:16px;margin-top:18px}.userPagination .dgButton{width:auto}@media(max-width:650px){.brandLogo{width:130px}.usersFilters>div{flex-basis:100%}}

main:has(.usersTable){max-width:1440px}.usersTable th,.usersTable td{padding:10px}.brandLogo{width:76px;height:76px;max-height:none}.usersTable th:last-child{min-width:110px}@media(max-width:650px){.brandLogo{width:58px;height:58px}}

.whatsappLink{display:inline-block;color:#9fe6b2;text-decoration:none;border:1px solid #46664e;border-radius:6px;padding:7px;white-space:nowrap}.ratingEdit{display:block;margin-top:5px;padding:5px 10px;background:#252525;color:#eee;border:1px solid #666;border-radius:6px}.ratingForm label{display:block;margin:14px 0}.ratingForm input,.ratingForm select{display:block;width:100%;padding:10px;background:#161616;color:#fff;border:1px solid #777;border-radius:6px}

.inlineRating{margin:0}.inlineRatingValue{width:104px;padding:7px 9px;color:#fff;background:#151515;border:1px solid #555;border-radius:6px;font:inherit}.inlineRatingValue:focus{border-color:#d9ef6c}.inlineRating small{max-width:170px}

.usersDashboardCell{white-space:nowrap}.dashboardGroup{display:inline-block;border:1px solid #555;border-radius:6px;padding:4px 8px;margin:2px;font-variant-numeric:tabular-nums}

.srOnly{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.accountLogin{font-size:13px;color:#bbb;margin-left:auto;overflow-wrap:anywhere;max-width:260px}.siteHeader:has(.accountLogin){position:relative;padding-top:42px}.siteHeader .accountLogin{position:absolute;right:24px;top:12px;max-width:calc(100% - 48px)}@media(max-width:650px){.siteHeader .accountLogin{right:16px;max-width:calc(100% - 32px)}}

.participantAdd{border:1px solid #444;border-radius:10px;padding:18px;margin:24px 0}.participantAdd summary{cursor:pointer;font-weight:600}.participantAdd label{display:block;margin:14px 0}.participantAdd select{display:block;max-width:100%;padding:10px;background:#191919;color:#fff;border:1px solid #555}.participantControls{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.participantControls .dgButton{width:auto}

.clubPanel{border:1px solid #444;border-radius:12px;padding:22px;margin:24px 0}.clubForm label{display:block;margin:12px 0}.clubForm input:not([type=checkbox]),.courtForm input:not([type=checkbox]){display:block;padding:9px;background:#161616;border:1px solid #666;color:#fff;border-radius:6px;max-width:100%}.courtForm{display:flex;gap:14px;align-items:end;padding:14px 0;border-bottom:1px solid #333;flex-wrap:wrap}.courtForm input[type=number]{width:90px}.courtForm .dgButton{width:auto}.clubForm .dgButton{width:auto;margin-top:16px}.clubForm fieldset{border:1px solid #555}

.courtChoice{display:flex;align-items:center;gap:.65rem;margin:.65rem 0}.courtChoice input{width:auto;min-height:0}

.playerSheet table{width:100%;border-collapse:collapse;margin-bottom:24px}.playerSheet th,.playerSheet td{padding:12px;text-align:left;border:1px solid #777}.playerSheet td:last-child{min-width:100px}@media print{.siteHeader,.previewBanner,footer,.noPrint,main>.notice{display:none!important}body,main,.playerSheet{background:#fff!important;color:#000!important;margin:0;padding:0}.playerSheet table{color:#000}.playerSheet tr{break-inside:avoid}.playerSheet h2{break-after:avoid}a{color:inherit}}

.activitySearch{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:24px 0}.activitySearch input,.activitySearch select{background:#191919;color:#fff;border:1px solid #555;border-radius:6px;padding:10px;max-width:100%}.activitySearch .dgButton{width:auto}

.profileBookings article{display:flex;align-items:center;gap:18px;justify-content:space-between;padding:12px 0;border-bottom:1px solid #444}.profileBookings article p{margin:5px 0}.profileBookings .dgButton{width:auto}.historyStats{display:flex;gap:16px;flex-wrap:wrap;margin:18px 0}.historyStats>div{padding:18px;border:1px solid #444;border-radius:10px;flex:1;min-width:200px}.historyStats strong{display:block;font-size:24px;margin-top:8px}.profileHistory details{border-bottom:1px solid #444;padding:15px 0}.profileHistory summary{cursor:pointer;font-weight:600}.profileHistory article{padding:12px;border-bottom:1px solid #333}.profileHistory article p{margin:5px 0}

.courtPreferences label{display:flex;justify-content:space-between;gap:16px;max-width:480px;align-items:center;margin:12px 0}.courtPreferences input[type=number]{width:90px;padding:10px;background:#191919;color:#fff;border:1px solid #555;border-radius:6px}

/* Organiser cards use the same saved group theme as the player dashboard. */
.adminEvent{border-left:5px solid var(--dg-group,#82c5ff);background:color-mix(in srgb,var(--dg-group,#82c5ff) 10%,#151515)}
.adminEvent .eyebrow{color:color-mix(in srgb,var(--dg-group,#82c5ff) 55%,white)}

/* Desktop workspaces retain comfortable mobile controls without full-width toolbars. */
main:has(.organiserDashboard),main:has(.profileLayout){max-width:1440px}
.organiserDashboard{max-width:none}
.organiserDashboard .pageHeading{margin-bottom:20px}
.adminActions{gap:8px;padding-bottom:16px;margin-bottom:16px}
.adminActions .dgButton,.activityActions .dgButton,.activityListHeading .dgButton{width:auto;min-height:36px;padding:7px 11px;font-size:13px;line-height:1.3;flex:0 0 auto}
.activityListHeading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0}
.activityListHeading h2{margin:0}
.activityActions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.activityActions [data-copy-status]:not(:empty){font-size:12px;flex-basis:100%}
.activityTableScroll{display:block;overflow-x:auto;border:1px solid #414141;border-radius:10px}
.activityTable{width:100%;border-collapse:collapse;font-size:14px;min-width:920px}
.activityTable th{text-align:left;background:#202020;color:#bbb;font-weight:600;white-space:nowrap}
.activityTable th,.activityTable td{padding:13px 12px;border-bottom:1px solid #383838;vertical-align:middle}
.activityTable td:first-child{min-width:180px;border-left:5px solid var(--dg-group,#82c5ff)}
.activityTable td:last-child{width:370px;min-width:350px}
.activityTable small{display:block;color:#bcbcbc;font-size:12px;margin-top:5px}
.activityTable .adminEvent{border-radius:0;padding:0}
.groupBadge{display:inline-block;border:1px solid var(--dg-group);border-radius:5px;padding:4px 7px;color:color-mix(in srgb,var(--dg-group) 50%,white);white-space:nowrap}
.activityDate{min-width:145px;font-variant-numeric:tabular-nums}
.activityCards .activityActions{margin-top:18px}
#activity-message-dialog{width:min(680px,calc(100% - 32px));max-width:680px}
#activity-message-dialog textarea{display:block;width:100%;margin:10px 0 18px;resize:vertical;background:#111;color:#fff;border:1px solid #777;border-radius:6px;padding:12px;font:14px/1.5 Arial,sans-serif}
.profileLayout{display:grid;grid-template-columns:minmax(320px,1fr) minmax(0,1.4fr);gap:32px;align-items:start}
.profileLayout .loginPanel{width:100%;max-width:none;margin:0 0 24px}
.profileLayout .profileBookings{margin-bottom:28px}
.profileLayout .profileBookings h2{margin-top:0}
.profileLayout .profileBookings article{flex-wrap:wrap;gap:10px}
.profileLayout .profileBookings article>div{flex:1 1 230px}
.profileLayout .profileBookings .dgButton{min-height:38px;padding:8px 12px;font-size:14px}
.profileLayout .historyStats>div{min-width:180px}
.profileOverview{min-width:0}
@media(min-width:1050px){.activityCards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.profileLayout{grid-template-columns:1fr;gap:20px}.activityListHeading{align-items:flex-start;flex-direction:column}.adminActions .dgButton,.activityActions .dgButton{min-height:44px}.activityTable th,.activityTable td{padding:10px}.profileLayout .profileBookings .dgButton{min-height:44px}}

.scoreGames{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:20px}
.scoreGame{border:1px solid #444;border-radius:10px;padding:20px}.scoreGame h2{font-size:18px;margin-top:0}.scoreGame strong{display:inline-block;margin:0 10px;white-space:nowrap}.scoreGame label{display:block}.scoreGame input{display:block;width:100%;padding:10px;background:#161616;color:#fff;border:1px solid #666;border-radius:6px;margin:6px 0 14px}.scoreInputs{display:grid;grid-template-columns:1fr 1fr;gap:16px}.scoreGame .dgButton{width:auto;min-height:40px;font-size:14px;padding:8px 14px}

.siteHeader,footer{max-width:1440px}
.profileFields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
.profileFieldWide{grid-column:1 / -1}
.profileFields input,.profileFields select{min-width:0}
.profileFields .muted{font-size:13px}
@media(max-width:1050px){.profileFields{grid-template-columns:1fr}.profileFieldWide{grid-column:auto}}
@media(min-width:761px){.profileLayout .loginPanel{padding:24px}.profileLayout .loginPanel label{margin-top:12px}.profileLayout .loginPanel input{padding:10px}}

.activityRoster{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.groupManagement{grid-template-columns:repeat(auto-fit,minmax(min(100%,400px),1fr))}
@media(max-width:760px){.activityRoster{grid-template-columns:1fr;gap:0}}

#attendance-dialog,.attendanceNotice{max-width:600px;}
#attendance-dialog p,.attendanceNotice p{line-height:1.6;}

/* Reflow organiser rows without hiding data or requiring sideways scrolling. */
.organiserDashboard,.activityTableScroll{min-width:0;max-width:100%}
@media(max-width:1000px){
 .activityTableScroll{overflow:visible;border:0;border-radius:0}
 .activityTable,.activityTable tbody{display:block;width:100%;min-width:0}
 .activityTable thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .activityTable .adminEvent{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);margin-bottom:14px;border:1px solid #414141;border-left:5px solid var(--dg-group,#82c5ff);border-radius:8px;padding:12px;gap:12px}
 .activityTable td,.activityTable td:first-child,.activityTable td:last-child{display:block;min-width:0;width:auto;padding:0;border:0;overflow-wrap:anywhere}
 .activityTable td:first-child,.activityTable td:last-child{grid-column:1/-1}
 .activityTable td::before{content:attr(data-label);display:block;color:#bbb;font-size:12px;margin-bottom:5px}
 .activityTable .activityActions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .activityTable .activityActions .dgButton{width:100%;min-width:0;white-space:normal}
 .activityTable [data-copy-status]{grid-column:1/-1}
}

.playerDialog{padding:0;width:min(760px,calc(100% - 24px));max-width:760px;max-height:90dvh;border-radius:12px}
.playerPanel{max-width:760px;margin:auto;background:#151515;border:1px solid #383838;border-radius:10px;overflow:hidden}
.playerDialog .playerPanel{border:0;max-height:88dvh;display:flex;flex-direction:column}
.playerPanelTop{display:flex;gap:12px;padding:16px;border-bottom:1px solid #333}
.playerPanelBody{padding:20px;overflow:auto;min-height:0}
.playerPanelBody h1{margin:0 0 12px;font-size:28px;overflow-wrap:anywhere}
.playerPanelCount{color:#8ee5b2;font-weight:700;margin:24px 0}
.playerPanelList{list-style:none;padding:0;margin:0}.playerPanelList li{display:grid;grid-template-columns:36px minmax(0,1fr);gap:12px;padding:12px 8px;border-bottom:1px solid #333;overflow-wrap:anywhere}
.playerNumber{color:#8ee5b2;font-weight:700;text-align:center}.playerPanelReserves .playerNumber{color:#edcc74}
.playerPanelBottom{padding:16px 20px;border-top:1px solid #333;display:grid;gap:10px}
.playerPanel textarea{width:100%;min-height:140px}.playerPanelTop,.playerPanelBottom{flex-shrink:0}

.superAdminMenu{position:relative}.superAdminMenu summary{list-style:none}.superAdminMenu summary::-webkit-details-marker{display:none}.superAdminMenu>div{position:absolute;top:100%;left:0;z-index:10;min-width:220px;padding:10px;background:#202020;border:1px solid #555;border-radius:8px;display:grid;gap:8px}.activityTable td:not([data-label])::before{display:none}

.accountMenu{position:relative}.accountMenu summary{list-style:none;cursor:pointer}.accountMenu summary::-webkit-details-marker{display:none}.accountMenu>div{position:absolute;right:0;top:100%;z-index:20;min-width:190px;background:#202020;border:1px solid #555;border-radius:8px;padding:10px;display:grid;gap:10px}.accountMenu .navButton{display:block;width:100%;text-align:center}footer{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;align-items:center}.inviteList{display:grid;gap:16px}.inviteActions{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}.inviteActions .dgButton{width:auto}.inviteActions [data-copy-status]{width:100%}

/* Compact identity and navigation, with no reserved empty row above the logo. */
.siteHeader:has(.accountLogin){padding-top:12px;padding-bottom:12px;gap:12px}
.siteHeader .accountIdentity{margin-left:auto;text-align:right;min-width:0;max-width:220px;line-height:1.25}
.accountIdentity small{display:block;font-size:11px;color:#aaa;margin-bottom:2px}
.siteHeader .accountLogin{position:static;display:block;max-width:none;margin:0;font-size:14px;color:#eee;font-weight:600}
.siteHeader nav a{padding:7px 11px;font-size:14px;min-height:44px;border-radius:8px}
@media(max-width:760px){
 .siteHeader:has(.accountLogin){display:grid;grid-template-columns:48px minmax(0,1fr) 44px;padding:8px 12px;gap:6px 10px}
 .siteHeader .brand{grid-column:1;grid-row:1}
 .siteHeader .brandLogo{width:48px;height:48px}
 .siteHeader .accountIdentity{grid-column:2;grid-row:1;max-width:none;justify-self:end;margin:0}
 .siteHeader .accountMenu{grid-column:3;grid-row:1}
 .siteHeader .accountMenu summary{padding:6px;min-height:44px;font-size:22px;line-height:1.2}
 .siteHeader nav{grid-column:1/-1;grid-row:2;order:0;display:flex;gap:6px;flex-wrap:wrap;margin:0}
 .siteHeader nav a{flex:1 1 auto;padding:6px 9px;font-size:13px;min-height:44px}
}

.superAdminMenu>div{left:auto;right:0;width:240px;min-width:0;max-width:calc(100vw - 32px)}
.superAdminMenu>div .dgButton{width:100%;white-space:normal;overflow-wrap:anywhere}
@media(max-width:650px){
 .superAdminMenu[open]{flex:1 1 100%;min-width:0}
 .superAdminMenu[open]>div{position:static;width:100%;max-width:100%;margin-top:8px}
}

.activityListHeading{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:12px}
.activityListHeading h2{margin:0;flex:1 1 auto}
.activityListHeading .headingGroupFilter{margin:0 0 0 auto;flex:0 1 auto;min-width:0}
.headingGroupFilter select{max-width:100%;min-height:44px}
.activityListHeading [data-message-preview]{flex:0 0 auto}
@media(max-width:760px){.activityListHeading h2{font-size:21px}.activityListHeading .headingGroupFilter select{max-width:160px}.activityListHeading [data-message-preview]{margin-right:auto}}

.inviteList{gap:10px}
.inviteList .adminEvent{padding:14px 16px;border-radius:8px}
.inviteHeading{display:flex;align-items:baseline;justify-content:space-between;gap:8px 16px;flex-wrap:wrap}
.inviteHeading h2{font-size:20px;line-height:1.25;margin:0}
.inviteHeading .dgGroup{font-size:13px}
.inviteList .adminEvent>p{font-size:14px;margin:6px 0;line-height:1.4}
.inviteCounts{display:flex;gap:6px 18px;flex-wrap:wrap}
.inviteList .inviteActions{margin-top:10px;gap:8px}
.inviteList .inviteActions .dgButton{font-size:14px;min-height:44px;padding:8px 12px}
.inviteActions [data-copy-status]:empty{display:none}
@media(max-width:480px){.inviteList .adminEvent{padding:12px}.inviteHeading h2{font-size:18px}.inviteList .inviteActions .dgButton{flex:1 1 auto;padding:8px;font-size:13px}}

.profileAsterisk{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:18px;height:18px;margin-left:6px;border-radius:50%;background:#ff773d;color:#111;font-size:20px;font-weight:900;line-height:1;padding-top:4px;box-shadow:0 0 0 2px rgba(255,119,61,.18);animation:profilePulse 1.8s ease-in-out infinite}
.profileMissingNotice{padding:12px;border-left:3px solid #ff6363;background:#351c1c;line-height:1.5}
.profileFieldMissing input,.profileFieldMissing select{border-color:#ff6363!important;background:#271919!important}
.profileFields .muted{font-size:13px;margin:6px 0}
@keyframes profilePulse{0%,100%{transform:scale(1);box-shadow:0 0 0 2px rgba(255,119,61,.18)}50%{transform:scale(1.08);box-shadow:0 0 0 4px rgba(255,119,61,.10),0 0 8px rgba(255,119,61,.45)}}
@media(prefers-reduced-motion:reduce){.profileAsterisk{animation:none}}

.loginPanel fieldset{border:0;padding:0;min-width:0}.loginPanel fieldset select{width:100%;min-height:44px;background:#191919;color:#fff;border:1px solid #555;border-radius:6px;padding:10px}

/* Compact desktop activity actions and all-round match administration. */
/* Let desktop metadata use its content width and reserve room for every action. */
@media(min-width:1001px){.activityTable{table-layout:auto}.activityTable th:first-child{width:auto}.activityTable th:not(:first-child),.activityTable td:last-child{width:1%}.activityTable td:last-child{min-width:0}.activityTable th,.activityTable td{padding:8px 10px}.activityTable .activityDate,.activityTable td:nth-child(4):not(.activityCancellationReason){white-space:nowrap}.organiserDashboard .activityTable .activityActions{display:grid;grid-template-columns:repeat(5,max-content);gap:6px;align-items:center}.organiserDashboard .activityTable .activityActions .dgButton{min-width:0;white-space:nowrap;text-align:center;padding:7px 8px}.organiserDashboard .activityTable .activityActions [data-copy-status]{grid-column:1/-1}.organiserDashboard .activityTable .activityActions [data-copy-status]:empty{display:none}}
.manageSetup{border:1px solid #414141;border-radius:10px;padding:16px;margin:16px 0}.setupPanel{max-width:900px}.setupPanel fieldset{display:grid;grid-template-columns:1fr 2fr;gap:10px;align-items:center}.setupPanel fieldset p{grid-column:1/-1}.matchesWrap{overflow-x:auto}.matchesTable{width:100%;border-collapse:collapse;font-size:14px}.matchesTable th,.matchesTable td{padding:7px;border-bottom:1px solid #333;text-align:left}.matchesTable tbody+tbody{border-top:12px solid #080808}.matchesTable select{width:100%;min-width:120px;padding:6px}.matchesTable input[type=number]{width:58px;padding:6px}.matchesTable .dgButton{min-height:32px;padding:6px 10px;font-size:13px}.matchesTable td:last-child{max-width:230px}.matchesTable small{font-size:11px;color:#aaa}
@media(max-width:700px){.setupPanel fieldset{grid-template-columns:1fr}.matchesTable{min-width:850px}}

main:has(.matchesWrap){max-width:1600px;width:100%}.matchesTable input,.matchesTable select{background:#161616;color:#f4f4f4;border:1px solid #555;border-radius:5px;min-height:34px}.matchesTable input[name=reason]{max-width:220px;padding:6px}.matchesTable th:nth-child(-n+2){width:45px}.matchesTable th:nth-child(7),.matchesTable th:nth-child(8){width:65px}

.matchControls{display:flex;flex-wrap:wrap;gap:16px;margin:16px 0}.matchControls .adminActions{align-items:end}.matchControls input{background:#181818;color:#fff;border:1px solid #555;border-radius:5px;padding:8px}.correctionLog{border-top:1px solid #444;margin-top:24px;padding-top:16px}.correctionLog li{padding:10px 0;border-bottom:1px solid #333}.correctionLog p{margin:4px 0}.matchDestructive{max-width:350px}

/* Matches use compact court blocks on phones; all inputs remain visible. */
.matchesTable th,.matchesTable td{padding:5px 6px}.matchSaveBar{margin:12px 0;display:flex;justify-content:flex-end}
@media(max-width:800px){
 main:has(.matchesWrap){padding:12px 10px}.matchesWrap{overflow:visible}.matchesTable{min-width:0;width:100%;display:block}.matchesTable thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.matchesTable tbody{display:block;border:0!important}
 .matchesTable tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"game court" "h1 a1" "h2 a2" "hs as";gap:5px 8px;border:1px solid #393939;border-radius:7px;margin:0 0 10px;padding:8px}
 .matchesTable td{display:block;padding:0;border:0;min-width:0;max-width:none!important}.matchesTable .matchGame{grid-area:game}.matchesTable .matchCourt{grid-area:court;text-align:right}.matchGame::before,.matchCourt::before{content:attr(data-label) " ";color:#aaa;font-size:12px}
 .matchesTable .h1{grid-area:h1}.matchesTable .h2{grid-area:h2}.matchesTable .a1{grid-area:a1}.matchesTable .a2{grid-area:a2}.matchesTable .home_score{grid-area:hs}.matchesTable .away_score{grid-area:as}
 .matchesTable select{min-width:0;width:100%;max-width:100%;font-size:16px;padding:5px;min-height:40px}.matchesTable .matchScore{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-top:2px}.matchScore::before{content:attr(data-label);font-size:12px;color:#bbb}.matchesTable input[type=number]{width:64px;min-height:40px;font-size:16px;padding:5px}
 main:has(.matchesWrap) h1{font-size:23px;margin:12px 0}.matchSaveBar{position:sticky;bottom:0;background:#101010;padding:8px;z-index:2}.matchSaveBar .dgButton{width:100%;min-height:44px}.correctionLog{margin-top:16px;padding-top:10px}
}

/* First-activity assessment: compact evidence, one column on phones. */
.ratingReviews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ratingReview{min-width:0;border:1px solid #444;border-radius:12px;padding:16px;background:#141414}
.ratingReview h2{margin:0 0 8px}.ratingReview p{margin:8px 0}.ratingReview summary{cursor:pointer;padding:10px 0}
.reviewMatchList{padding-left:24px}.reviewMatchList li{padding:8px 0;border-bottom:1px solid #444;overflow-wrap:anywhere}
.reviewDecision{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:16px}.reviewDecision input{width:130px;max-width:100%;box-sizing:border-box}
@media(max-width:800px){.ratingReviews{grid-template-columns:1fr}.ratingReview{padding:12px}.reviewDecision label{flex-basis:100%}}

.reviewDecision input{background:#191919;color:inherit;border:1px solid #555;border-radius:8px;padding:8px;min-height:40px;font:inherit}.reviewMatchList p{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}

/* Manage is a roster workspace; setup stays below the participants. */
.manageHeading,.managePlayerHeading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.manageHeading h1{margin:0}.manageHeading p{margin:8px 0}.manageHeading .adminActions{margin:0;padding:0;border:0}.managePlayerHeading h2{margin:0}.managePlayerHeading>span{color:#a8b4bc}.managePlayers{margin-top:24px}.managePlayerToolbar{display:flex;gap:10px;align-items:flex-start;flex-wrap:wrap;margin:14px 0}.managePlayerToolbar .participantAdd{margin:0;padding:0;border:0}.managePlayerToolbar .participantAdd form{display:grid;gap:10px;padding:14px 0;max-width:400px}.managePlayerToolbar label{display:grid;gap:6px}.manageRosterHeading{display:flex;gap:10px;align-items:center;margin:16px 0 0;padding:10px 12px;background:#202020;font-size:16px}.manageRosterHeading span{color:#aaa}.managementList .managePerson{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px;border-bottom:1px solid #333;margin:0;background:#111}.managePersonIdentity{display:flex;gap:12px;align-items:center;min-width:130px}.manageSlot{min-width:22px;color:#87dfad;font-weight:bold}.manageAttendance{display:block;margin-top:4px;color:#dbb674}.manageAttendance.isConfirmed{color:#87dfad}.managePersonActions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.managePersonActions form{margin:0}.managePersonActions .participantControls{display:flex;gap:6px;flex-wrap:wrap}.managePerson .dgButton,.managePlayerToolbar .dgButton,.manageSetup .dgButton{padding:8px 12px;font-size:14px;min-height:38px}.managePersonMore>div{display:flex;gap:8px;flex-wrap:wrap;padding-top:8px}.managePersonMore summary{list-style:none;cursor:pointer}.manageSetup{margin-top:24px;padding:18px;border:1px solid #3a3a3a;border-radius:12px}.manageSetupSummary{display:flex;gap:8px 20px;flex-wrap:wrap;margin:14px 0}.manageCourtSummary{color:#abb7c0;font-size:14px}.setupEditor{margin:14px 0}.setupEditor>summary{display:inline-flex;cursor:pointer}.manageCourtChoices{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.manageCourtChoices .courtChoice{display:flex;gap:8px;align-items:center;border:1px solid #555;padding:10px;border-radius:8px;margin:0}.manageCourtChoices [hidden]{display:none}.manageOther{margin-top:24px}.createActivity{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;max-width:1200px}.createActivity fieldset{min-width:0;display:flex;flex-direction:column;gap:8px;border:1px solid #444;border-radius:12px;padding:20px}.createActivity input,.createActivity select,.managePlayerToolbar input,.managePlayerToolbar select{box-sizing:border-box;max-width:100%;background:#191919;color:inherit;border:1px solid #555;border-radius:8px;padding:10px;font:inherit}.createActivity label{margin-top:8px}.createActivity legend{font-size:20px;font-weight:700}.createSubmit{grid-column:1/-1}.createActivity .checkLabel{display:flex;gap:8px;align-items:center}.createActivity p{margin:6px 0;color:#b1bcc4}
@media(max-width:700px){.createActivity{grid-template-columns:1fr}.createActivity fieldset{padding:14px}.managementList .managePerson{display:block;padding:12px 8px}.managePersonActions{margin-top:10px}.manageHeading h1{font-size:26px}.manageSetup{padding:12px}.managePersonActions .dgButton{min-height:40px}.managePlayerHeading{gap:8px}.managePlayerToolbar .participantAdd[open]{flex-basis:100%}}

.managePersonActions .dgButton,.managePlayerToolbar .dgButton,.managePlayerHeading .dgButton,.setupEditor>summary.dgButton{width:auto;flex:0 0 auto}.managePersonActions .managePersonMore{flex:0 0 auto}

/* Dense roster: full desktop status, one touch-friendly line per player on phones. */
.managementList .managePerson{padding:4px 10px;gap:8px;min-height:52px;position:relative}
.managePersonIdentity{flex:1;min-width:0;gap:8px}.managePersonIdentity>div{min-width:0;display:flex;align-items:center;gap:20px;flex:1}
.managePlayerName{color:inherit;font-weight:700;text-decoration:none}.managePlayerName:hover{text-decoration:underline}.managePlayerName:focus-visible{outline:2px solid #8bdfad;outline-offset:3px}
.managePersonIdentity .manageAttendance{margin:0;font-size:12px}.managePersonActions{margin:0;flex-wrap:nowrap;gap:4px}
.managePersonActions .participantControls{flex-wrap:nowrap}.managePersonActions .attendanceToggle{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;background:transparent;color:#c9c9c9;cursor:pointer;flex:none}
.attendanceToggle span{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border:1px solid #888;border-radius:6px;font-size:19px}.attendanceToggle[aria-checked=true] span{background:#85dfac;border-color:#85dfac;color:#081b10}.attendanceToggle:focus-visible{outline:2px solid #fff;outline-offset:-2px;border-radius:6px}
.managePersonActions .manageWhatsApp{display:inline-flex;align-items:center;justify-content:center;color:#8be1ad;padding:8px;width:40px;min-height:40px;box-sizing:border-box}
.managePersonMore{position:relative}.managePersonMore>div{position:absolute;right:0;top:100%;z-index:5;background:#222;border:1px solid #555;border-radius:8px;padding:8px;min-width:170px;box-shadow:0 6px 16px #0008}.managePersonMore[open]{z-index:6}.managePersonMore>summary{width:40px!important;padding:4px!important;min-height:40px!important}
.activityDateTime{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,.6fr);gap:12px}.activityDateTime>div{min-width:0;display:grid;gap:8px}.activityDateTime input,.activityDateTime select{width:100%;min-width:0}
.organiserDefaults{display:grid;gap:10px}.organiserDefaults input,.organiserDefaults select{background:#191919;color:inherit;border:1px solid #555;border-radius:8px;padding:10px;font:inherit;max-width:100%}
@media(max-width:700px){
 .managementList .managePerson{display:flex;padding:3px 4px;min-height:50px;gap:2px}.managePersonIdentity{gap:4px}.manageSlot{font-size:12px;min-width:18px}.managePersonIdentity>div{display:block}.managePlayerName,.managePersonIdentity strong{font-size:14px;overflow-wrap:anywhere;line-height:1.2;display:block}.managePersonIdentity .manageAttendance{display:none}.managePersonActions{gap:0;margin:0;flex:none}.managePersonActions .manageWhatsApp{width:40px;padding:0;justify-content:center;border-color:transparent;background:transparent}.managePersonMore>summary{border-color:transparent;background:transparent}.manageRosterHeading{margin-top:10px;padding:7px 8px}.managePlayers{margin-top:16px}.managePlayerToolbar{margin:10px 0}.managePersonActions .dgPrimary{padding:5px;font-size:12px}.managePersonMore>div .dgButton{min-height:40px}
}

.manageRosterHeading small{margin-left:auto;margin-right:42px;color:#b8c4cb;font-size:12px;font-weight:400}

.setupPanel input[type=number]{background:#191919;color:inherit;border:1px solid #555;border-radius:8px;padding:10px;font:inherit;max-width:100%;box-sizing:border-box}

.courtOrderList{list-style:none;margin:18px 0;padding:0;max-width:640px}.courtOrderList li{display:flex;align-items:center;gap:12px;background:#171717;border:1px solid #444;border-radius:8px;padding:5px 8px;margin-bottom:6px}.courtOrderList strong{flex:1;min-width:0;overflow-wrap:anywhere}.courtOrderList button{width:44px;height:44px;border:1px solid #555;border-radius:6px;background:#242424;color:inherit;font-size:22px;cursor:pointer;padding:0}.courtOrderList .courtDrag{touch-action:none;cursor:grab;background:transparent;border-color:transparent}.courtMoveButtons{display:flex;gap:4px}.courtOrderList button:disabled{opacity:.25;cursor:default}.courtOrderList .isDragging{border-color:#ff6836;background:#30231e}.courtOrderList button:focus-visible{outline:2px solid #ff6836;outline-offset:2px}

.profileBookings article.profileBooking{border:1px solid #383838;border-left:4px solid var(--dg-group,#82c5ff);border-radius:8px;background:color-mix(in srgb,var(--dg-group,#82c5ff) 10%,#151515);padding:12px;margin-bottom:8px}.profileBookingHeading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.profileBookingHeading>strong{color:var(--dg-group,#82c5ff)}.profileBookingHeading .dgGroup{font-size:12px}

.accountMenu .mobileAdminRules{display:none}.appLog{width:100%;border-collapse:collapse;margin:16px 0 24px;font-size:14px}.appLog th,.appLog td{text-align:left;padding:10px 12px;border-bottom:1px solid #383838;vertical-align:top}.appLog th{background:#222}.appLog td:first-child{white-space:nowrap}.appLog small{display:block;color:#aaa}.appLog .groupBadge{white-space:normal}.appLog .classLogBadge{border:1px solid #e8cf58;color:#f4df84;border-radius:5px;padding:4px 7px}.appLog .logActorRole{font-size:12px;color:#e8cf58;margin-top:4px}
@media(max-width:760px){.siteHeader nav .superAdminRules{display:none}.accountMenu .mobileAdminRules{display:flex}.appLog,.appLog tbody{display:block}.appLog thead{display:none}.appLog tr{display:grid;grid-template-columns:1fr 1fr;padding:10px;margin-bottom:8px;border:1px solid #383838;border-radius:8px}.appLog td{display:block;border:0;padding:4px;overflow-wrap:anywhere}.appLog td:last-child{grid-column:1/-1}.appLog td::before{content:attr(data-label);display:block;font-size:11px;color:#aaa;margin-bottom:3px}.appLog td:first-child{white-space:normal}}

.ratingReferences{width:100%;max-width:700px;border-collapse:collapse;margin:16px 0}.ratingReferences th,.ratingReferences td{padding:9px 12px;border-bottom:1px solid #444;text-align:left}.ratingReferences td{text-align:right}

/* Compact organiser activity summaries, retaining all actions at every width. */
.organiserDashboard .activityActions{display:flex;flex-wrap:wrap;gap:5px}.organiserDashboard .activityActions .dgButton{min-height:36px;padding:6px 10px;font-size:13px;width:auto;flex:0 1 auto}.organiserDashboard .activityActions [data-copy-status]:empty{display:none}
.organiserDashboard .activityTable td{padding:8px 10px}.organiserDashboard .activityCards{gap:8px}.organiserDashboard .activityCards .adminEvent{padding:12px}.organiserDashboard .activityCards h3{font-size:18px;margin:0 0 4px}.organiserDashboard .eventStats{border:0;margin-top:6px;padding-top:0;gap:16px;align-items:center}.organiserDashboard .eventStats>div{display:flex;gap:6px;align-items:baseline}.organiserDashboard .eventStats strong{font-size:15px}.organiserDashboard .eventStats span{font-size:13px}
@media(max-width:1000px){
 .organiserDashboard .activityTable .adminEvent{gap:5px 12px;padding:10px 12px;margin-bottom:8px}.organiserDashboard .activityTable td{padding:0}.organiserDashboard .activityTable td:first-child{font-size:15px}.organiserDashboard .activityTable td:first-child small{font-size:12px;margin:2px 0 0}.organiserDashboard .activityTable .activityDate{grid-column:1/-1;font-size:14px}.organiserDashboard .activityTable .activityDate::before{display:none}.organiserDashboard .activityTable td:nth-child(3),.organiserDashboard .activityTable td:nth-child(4){font-size:14px}.organiserDashboard .activityTable td::before{display:inline;font-size:12px;margin:0 6px 0 0}.organiserDashboard .activityTable td:first-child::before,.organiserDashboard .activityTable td:last-child::before{display:none}.organiserDashboard .activityTable .activityActions{display:flex;flex-wrap:wrap;gap:5px;margin-top:3px}.organiserDashboard .activityActions .dgButton{min-height:40px;padding:6px 9px;font-size:13px;width:auto;flex:0 1 auto}.organiserDashboard .activityListHeading{margin-bottom:12px}.organiserDashboard>.adminActions{padding-bottom:14px;margin-bottom:14px}.organiserDashboard .pageHeading{margin-bottom:14px}
}

.organiserDashboard [data-manage-card]{cursor:pointer}
.organiserDashboard .activityManageLink{color:inherit;text-decoration:none}
.organiserDashboard .activityManageLink:hover{text-decoration:underline}
.organiserDashboard .activityManageLink:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.organiserDashboard .activityClub{font-weight:400;color:var(--muted,#bbb);font-size:.9em}
.organiserDashboard [data-manage-card]:hover{filter:brightness(1.08)}

/* Compact roster: equal controls, aligned centres and a truthful confirmation total. */
.manageRosterHeading small{margin-left:auto;margin-right:0;white-space:nowrap}
.managementList .managePerson{min-height:0;padding:2px 6px}
.managePersonActions{align-items:center;gap:4px}
.managePersonActions>.participantControls{align-items:center;padding:0;line-height:1}
.managePersonActions .manageWhatsApp,.managePersonActions .attendanceToggle,.managePersonMore>summary.dgButton{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:40px!important;height:40px;min-height:40px!important;padding:0!important;margin:0;border:1px solid #333;border-radius:8px;background:#191919;vertical-align:middle}
.managePersonActions .attendanceToggle span{box-sizing:border-box;width:100%;height:100%;border:0;border-radius:7px}
.managePersonActions .attendanceToggle[aria-checked=true]{background:#85dfac;border-color:#85dfac;color:#081b10}

.drawPreview{max-width:1100px}.drawMode{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0}.drawMode select,.previewRatings input{background:#191919;color:inherit;border:1px solid #555;border-radius:6px;padding:7px;font:inherit;min-height:40px}.drawMode .dgButton,.drawPreview>form>.dgButton{width:auto;padding:8px 12px;font-size:14px}.previewRatings{border-collapse:collapse;width:100%;max-width:640px;margin:8px 0}.previewRatings td,.previewRatings th{padding:4px 8px;text-align:left;border-bottom:1px solid #333}.previewRatings td:last-child,.previewRatings th:last-child{text-align:right;width:120px}.previewRatings input{width:110px;max-width:100%;text-align:right}.drawPreview [data-preview-rating-status]{display:block;color:#eac37c}.drawPreview .scoreGame{padding:12px;margin:8px 0}.drawPreview .scoreGame h2{margin:0 0 6px;font-size:18px}.drawPreview .scoreGame p{margin:0}.drawPreview button:disabled{opacity:.5;cursor:not-allowed}

/* Compact game setup, with matching dark controls on every screen. */
.setupPanel{max-width:760px;margin:12px 0}.setupPanel fieldset{border:0;padding:0;margin:0;min-width:0;gap:10px 16px;grid-template-columns:minmax(150px,1fr) minmax(0,2fr)}
.setupPanel legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.setupPanel select,.setupPanel input[type=number]{width:100%;min-width:0;background:#191919;color:#eee;border:1px solid #555;border-radius:8px;padding:9px 12px;font:inherit;min-height:42px;box-sizing:border-box}
.setupPanel fieldset p{font-size:14px;color:#bbb;line-height:1.5;margin:2px 0 8px}.setupPanel .dgButton{width:auto;min-height:40px;padding:8px 18px;justify-self:start;grid-column:1/-1}
@media(max-width:520px){.setupPanel fieldset{grid-template-columns:1fr;gap:6px}.setupPanel select,.setupPanel input{margin-bottom:8px}.setupPanel label{font-size:14px}}

.logBatch{margin-top:6px}.logBatch summary{cursor:pointer;font-size:14px}.logBatch ul{max-height:260px;overflow:auto;padding-left:20px;font-size:14px;line-height:1.6}

.drawColumns{display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,1.3fr);gap:24px}.drawColumns>section{min-width:0}.drawColumns h2{font-size:20px}.drawColumns select{background:#191919;color:inherit;border:1px solid #555;border-radius:8px;padding:8px;font:inherit;max-width:100%;margin:8px}.drawColumns .previewRatings td{padding:5px 8px}.drawColumns .previewRatings input{padding:6px;min-height:36px;width:95px}.drawColumns .dgButton{width:auto;min-height:40px;padding:8px 12px}.drawMatchPreview .scoreGame{padding:12px}.drawMatchPreview .scoreGame p{margin:6px 0}@media(max-width:760px){.drawColumns{grid-template-columns:1fr;gap:12px}}

.initialRatingsForm{max-width:760px}.initialRatingsTable{width:100%;border-collapse:collapse;margin:12px 0;font-variant-numeric:tabular-nums}.initialRatingsTable th,.initialRatingsTable td{padding:9px 12px;border-bottom:1px solid #333;text-align:left}.initialRatingsTable tbody th{font-weight:400}.initialRatingsTable th:last-child,.initialRatingsTable td{text-align:right;width:140px}.initialRatingsTable small{display:block;font-size:12px;color:#bbb;max-width:480px}.initialRatingsTable input{width:112px;max-width:100%;box-sizing:border-box;text-align:right;background:#191919;color:inherit;border:1px solid #555;border-radius:6px;padding:7px 10px;min-height:38px;font:inherit}.initialRatingsForm .dgButton{width:auto;min-height:40px;padding:8px 18px}@media(max-width:520px){.initialRatingsTable th,.initialRatingsTable td{padding:7px 8px}.initialRatingsTable td{width:110px}}

.ratingPlayerContact{display:flex;align-items:center;gap:10px}.ratingPlayerContact>a:first-child{color:inherit;text-decoration:none}.ratingPlayerContact>a:first-child:hover{text-decoration:underline}.ratingWhatsApp{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;flex:0 0 40px;border:1px solid #414141;border-radius:8px;color:#87dfad;background:#191919}.initialRatingActions{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.initialRatingActions .dgButton{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:130px;height:42px;min-height:42px;padding:8px 16px;margin:0;font-size:14px;line-height:20px}.initialRatingsTable:has(.ratingPlayerContact) th,.initialRatingsTable:has(.ratingPlayerContact) td{padding-top:4px;padding-bottom:4px}

.setupEditor[open]>summary{display:none}.setupPanel .manageCourtEditor{grid-column:1/-1}.setupPanel .manageCourtEditor h3{font-size:18px;margin:8px 0}.setupPanel .courtChoice input{width:auto;min-height:0;margin:0}

.setupPanel .manageCourtChoices{gap:6px;margin:8px 0}.setupPanel .manageCourtChoices .courtChoice{gap:5px;padding:6px 7px;min-height:36px;box-sizing:border-box;font-size:13px;white-space:nowrap;border-radius:6px}.setupPanel .manageCourtChoices input[type=checkbox]{margin:0;width:14px;height:14px}

.setupPanel [data-mix-in-settings]{grid-column:1/-1;display:grid;grid-template-columns:inherit;gap:10px 16px}.setupPanel [data-mix-in-settings][hidden]{display:none}.claimPlayerForm{display:grid;gap:16px;max-width:480px}.claimPlayerForm label{display:grid;gap:6px}.managePersonIdentity [data-copy-invitation]{display:inline-flex;width:auto;min-height:32px;font-size:12px;padding:5px 10px;margin:4px 0}.managePersonIdentity [data-copy-status]{display:block;font-size:12px}

.matchScorecard{display:none}
@media print{
 @page scorePortrait{size:A4 portrait;margin:10mm}
 @page scoreLandscape{size:A4 landscape;margin:10mm}
 body:has(.matchScorecard) main{width:auto;max-width:none;margin:0;padding:0}
 body:has(.matchScorecard) main>*:not(.matchScorecard){display:none!important}
 .matchScorecard{display:block!important;font:12pt/1.2 Arial,sans-serif;color:#111;background:#fff;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 .scorecardPortrait{page:scorePortrait}.scorecardLandscape{page:scoreLandscape}
 .scorecardPage{break-after:page}.scorecardPage:last-child{break-after:auto}
 .matchScorecard header{display:block;margin:0 0 5mm;padding:0;border:0;text-align:center}
 .matchScorecard h1{font-size:23pt;margin:0 0 2mm;line-height:1.1}.matchScorecard header p{font-size:11pt;margin:0}
 .courtSchedule{width:100%;border-collapse:collapse;table-layout:fixed;color:#111}
 .courtSchedule th,.courtSchedule td{border:1pt solid #777;padding:0;vertical-align:middle}
 .courtSchedule thead th{font-size:18pt;text-align:center;padding:3mm 1mm;color:#111;background:#fff}
 .courtSchedule thead th:first-child{font-size:10pt}
 .courtSchedule .scheduleGame{width:14mm}.courtSchedule .scheduleGameNumber{font-size:24pt;text-align:center}
 .courtSchedule tr{break-inside:avoid}
 .printedMatch{display:grid;grid-template-columns:minmax(0,1fr) 8mm minmax(0,1fr);min-height:52mm}
 .scorecardLandscape .printedMatch{min-height:48mm}
 .printedTeam{display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:3mm 2mm;gap:2mm;min-width:0}
 .printedVersus{align-self:center;text-align:center;font-size:12pt;font-weight:800;color:#111}
 .printedTeamNames{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;text-align:center;font-size:15pt;line-height:1.12;overflow-wrap:anywhere;width:100%}
 .printedTeamNames strong{font-weight:600}.teamAnd{font-size:10pt;line-height:1;margin:.6mm 0}
 .teamScore{display:flex;flex-direction:column;align-items:center;gap:1mm;width:100%}
 .teamScoreLabel{font-size:9pt;font-weight:bold;text-transform:uppercase;letter-spacing:.05em}
 .handwrittenScore{display:block;width:100%;max-width:34mm;height:19mm;box-sizing:border-box;border:1.5pt solid #111;border-radius:1mm;background:#fff}
}

.profileTitleRow{display:flex;align-items:center;gap:16px 24px;flex-wrap:wrap;margin-bottom:20px}.profileTitleRow h1{margin:0}.profileJoinStatus{flex:1 1 300px;min-width:0;font-size:14px}.profileJoinStatus>strong{display:block;margin-bottom:5px;color:#ffd166}.profileJoinCopy{display:inline-flex;width:auto;min-height:36px;padding:7px 12px;font-size:14px;text-decoration:none;margin:0}.profileJoinStatus [data-copy-status]{display:block;color:#88deb0;margin-top:4px}

@media print{
 .americanoScorecard .printedMatch{min-height:35mm}
 .americanoScorecard .printedTeam{padding:1.5mm;gap:1mm}
 .americanoScorecard .printedTeamNames{font-size:12pt}
 .americanoScorecard .handwrittenScore{height:12mm;max-width:27mm}
 .americanoScorecard .handwrittenPlayer{display:block;width:100%;height:6mm;border-bottom:.5pt solid #999}
 .americanoScorecard.scorecardLandscape .printedMatch{min-height:24mm;grid-template-columns:minmax(0,1fr) 5mm minmax(0,1fr)}
 .americanoScorecard.scorecardLandscape .printedTeamNames{font-size:10pt}
 .americanoScorecard.scorecardLandscape .printedTeam{padding:1mm;gap:.5mm}
 .americanoScorecard.scorecardLandscape .teamAnd{font-size:8pt;margin:0}
 .americanoScorecard.scorecardLandscape .handwrittenScore{height:9mm;max-width:24mm}
 .americanoScorecard.scorecardLandscape .handwrittenPlayer{height:5mm}
 .americanoScorecard.scorecardLandscape .teamScoreLabel{font-size:7pt}
 .americanoScorecard.scorecardLandscape .printedVersus{font-size:9pt}
}

.managePersonIdentity>div{flex-wrap:wrap;gap:6px 12px}
.managePersonIdentity .inlineRating{display:inline-flex;flex-direction:column;vertical-align:middle;flex:0 0 auto}
.managePersonIdentity .inlineRatingValue{box-sizing:border-box;width:86px;min-height:36px;padding:5px 8px;font-size:14px;text-align:right}
.managePersonIdentity .inlineRating small{font-size:11px}
@media(max-width:600px){.managePersonIdentity>div{display:flex;gap:4px 6px}.managePersonIdentity .inlineRatingValue{width:70px}.managePersonIdentity .managePlayerName{max-width:100%}}

.managePersonIdentity .managePlayerName{box-sizing:border-box;flex:0 0 var(--roster-name-width,auto);width:var(--roster-name-width,auto);white-space:nowrap}
@media(max-width:600px){.managePersonIdentity .managePlayerName{flex-basis:min(var(--roster-name-width),28vw);width:min(var(--roster-name-width),28vw);white-space:normal}}

.rememberChoice{display:flex!important;align-items:center;gap:8px}.rememberChoice input{width:auto!important}
.normalTeams{display:grid;grid-template-columns:1fr 1fr;gap:16px;border:1px solid #555;border-radius:8px;padding:16px;margin:16px 0}.normalTeams h2{font-size:18px}.normalTeams label{display:block}.normalTeams select{display:block;width:100%;max-width:100%;background:#191919;color:inherit;border:1px solid #555;border-radius:6px;padding:10px;margin:6px 0 12px}.normalTeams>div{min-width:0}

.profileAccountDetails h2{font-size:20px;margin:0 0 18px;line-height:1.35}
.accountMetadata{margin:0;display:grid;gap:0}
.accountMetadata>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:14px 0;border-top:1px solid #333;flex-wrap:wrap}
.accountMetadata dt{color:#aaa;font-size:14px}
.accountMetadata dd{margin:0;font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}

@media print{
 .matchScorecard header{display:flex;align-items:baseline;justify-content:space-between;gap:2mm 5mm;flex-wrap:wrap;margin:0 0 2mm;text-align:left}
 .matchScorecard header h1{font-size:14pt;margin:0;line-height:1.15}
 .matchScorecard header p{font-size:9pt;margin:0}
 .matchScorecard:not(.americanoScorecard) .courtSchedule thead th{font-size:14pt;padding:2mm 1mm}
 .matchScorecard:not(.americanoScorecard) .printedMatch{min-height:26mm}
 .matchScorecard:not(.americanoScorecard) .printedTeam{padding:2mm;gap:1mm}
 .matchScorecard:not(.americanoScorecard) .printedTeamNames{font-size:12pt}
 .matchScorecard:not(.americanoScorecard) .handwrittenScore{width:16mm;max-width:16mm;height:8mm;border-width:1pt}
}

@media print{
 .scorecardManyCourts .courtSchedule .scheduleGame{width:9mm}
 .scorecardManyCourts .printedMatch{grid-template-columns:minmax(0,1fr) 5mm minmax(0,1fr)}
 .scorecardManyCourts:not(.americanoScorecard) .printedTeam{padding:2mm .8mm;gap:1mm}
 .scorecardManyCourts:not(.americanoScorecard) .printedTeamNames{font-size:10pt}
 .scorecardManyCourts .printedVersus{font-size:9pt}
 .scorecardManyCourts:not(.americanoScorecard) .handwrittenScore{width:13mm;max-width:100%;height:8mm}
}

@media print{
 .scorecardManyCourts .courtSchedule .scheduleGame{width:14mm}
 .matchScorecard .courtSchedule thead th:first-child{font-size:9pt;white-space:nowrap;padding:2mm 1mm}
 .scorecardLandscape:not(.americanoScorecard) .scorecardRows4 .printedMatch{min-height:40mm}
 .scorecardLandscape:not(.americanoScorecard) .scorecardRows5 .printedMatch{min-height:32mm}
 .scorecardLandscape:not(.americanoScorecard) .scorecardRows6 .printedMatch{min-height:26mm}
 .scorecardLandscape:not(.americanoScorecard) .scorecardRows4 .printedTeamNames{font-size:12pt}
 .scorecardLandscape:not(.americanoScorecard) .scorecardRows4 .printedTeam{padding:3mm 1mm;gap:2mm}
}

/* Class pages: clear date, booking and recurring attendance hierarchy. */
.classesPage{max-width:960px;margin:0 auto}.classesPage .manageHeading{align-items:flex-start;margin-bottom:24px}.classesPage h1{margin-bottom:10px}.classesPage p{line-height:1.55}.classesPage .muted{color:#b8b8b8}.classBack{display:inline-block;color:#ccc;margin-bottom:20px;text-underline-offset:4px}.classPageHeading{margin-bottom:28px}.classPageHeading p{margin:6px 0}.classTabs{display:flex;gap:6px;border-bottom:1px solid #3d3d3d;margin:0 0 24px}.classTabs a{padding:13px 18px;color:#bbb;text-decoration:none;border-bottom:3px solid transparent}.classTabs a[aria-current]{color:#ff9860;border-color:#ff6934;font-weight:700}.classList{display:grid;gap:16px}.classCard{display:grid;grid-template-columns:88px minmax(0,1fr);gap:24px;padding:24px;border:1px solid #383838;border-radius:16px;background:#141414}.classDate{align-self:start;text-align:center;border:1px solid #454545;border-radius:12px;padding:12px 6px;background:#1f1f1f;display:grid;gap:5px}.classDate strong{font-size:32px;line-height:1.1}.classDate span{font-size:12px;color:#bbb}.classDate b{border-top:1px solid #444;padding-top:9px;margin-top:3px;color:#ffac7a;font-size:15px}.classCard h2{font-size:22px;margin:10px 0 8px}.classCard h2 a{color:inherit;text-decoration:none}.classCard h2 a:hover{text-decoration:underline}.classCard p{margin:5px 0}.classBadges{display:flex;gap:8px;flex-wrap:wrap}.classBadge{display:inline-flex;align-items:center;font-size:12px;line-height:1.4;color:#ccc;background:#252525;border:1px solid #484848;border-radius:20px;padding:4px 10px}.classBooked{background:#173c2b;border-color:#397355;color:#b6efd1}.classCardFooter{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px;padding-top:16px;border-top:1px solid #333}.classCapacity{font-size:13px;color:#bbb}.classCapacity strong{display:block;font-size:19px;color:#eee;margin-bottom:3px}.classPagination{display:flex;gap:12px;justify-content:flex-end;margin-top:24px}.classAttendanceGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.classPanel{background:#141414;border:1px solid #3c3c3c;border-radius:14px;padding:24px;margin:0 0 20px;min-width:0}.classPanel h2{font-size:21px;margin:0 0 14px}.classPanel p{margin:10px 0 18px}.classStatus{padding:12px 14px;border-left:3px solid #777;background:#232323;border-radius:0 8px 8px 0}.classStatusBooked{border-color:#6dc392;background:#173125;color:#c9edda}.classWeeklyAction{margin:18px 0 0}.classDisclosure summary{cursor:pointer;font-weight:600;min-height:44px;align-content:center;color:#eee}.classDisclosure[open] summary{margin-bottom:12px}.classPanel .dgButton,.classCard .dgButton{min-height:44px;white-space:normal}.classDates{list-style:none;padding:0;margin:0}.classDates li{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #343434;padding:12px 0}.classDates a{color:#ddd;line-height:1.5;text-underline-offset:4px;padding:6px 0}.classDates a[aria-current]{color:#ffac7a;font-weight:600}.classReview{border-color:#b4863c}.classReview form>label:not(.checkLabel),.classForm label{display:block;margin:16px 0}.classReview input[type=number],.classForm input,.classForm select,.classManage select{box-sizing:border-box;width:100%;background:#0c0c0c;color:#eee;border:1px solid #666;border-radius:8px;padding:12px;min-height:46px;font:inherit;margin-top:7px}.classReview .checkLabel{padding:10px 0;border-top:1px solid #333}.classReview .checkLabel input{width:20px;height:20px;flex-shrink:0}.classCreate{max-width:720px}.classForm fieldset{border:0;border-bottom:1px solid #383838;padding:0 0 16px;margin:0 0 24px;min-width:0}.classForm legend{font-size:20px;font-weight:700;padding:0;margin-bottom:4px}.classManage .managementRow{align-items:center;gap:12px}.classManage .managementRow>.adminActions{margin:0;padding:0;border:0}.classManage .managementRow>.adminActions form{display:flex;gap:8px;flex-wrap:wrap}.classManage .managementRow .dgButton{font-size:14px;padding:10px 14px;margin:0}.classesPage a:focus-visible,.classesPage button:focus-visible,.classesPage summary:focus-visible{outline:3px solid #ffb57a;outline-offset:4px}
@media(max-width:650px){.classAttendanceGrid{grid-template-columns:1fr;gap:0}.classCard{grid-template-columns:60px minmax(0,1fr);gap:14px;padding:16px}.classDate strong{font-size:26px}.classDate span{font-size:10px}.classDate b{font-size:13px}.classCard h2{font-size:19px;overflow-wrap:anywhere}.classCardFooter{align-items:stretch;flex-direction:column;gap:12px}.classCardFooter .dgButton{box-sizing:border-box}.classPanel{padding:18px}.classManage .managementRow{display:grid;grid-template-columns:1fr auto}.classManage .managementRow>.adminActions{grid-column:1/-1;justify-content:flex-start}.classManage .managementRow>.adminActions .dgButton{flex:0 0 auto}.classDates li{align-items:flex-start;flex-direction:column;gap:2px}.classTabs a{flex:1;text-align:center;padding:12px 8px}.classesPage .manageHeading{gap:16px;flex-wrap:wrap}}

.classCapacity{flex:1 1 auto}.classesPage .classCardFooter .classCapacity strong{display:inline;margin-right:8px}@media(max-width:650px){.classCapacity{line-height:1.6}}

.classesPage>.manageHeading>.dgButton{width:auto;flex:0 0 auto;white-space:nowrap}

/* Shared desktop page shell. Internal columns and dialogs keep their own sizing. */
@media screen and (min-width:901px){
 body main,body main:has(.usersTable),body main:has(.organiserDashboard),body main:has(.profileLayout),body main:has(.matchesWrap),body.courtScoring main{width:100%;max-width:1440px;box-sizing:border-box;margin-left:auto;margin-right:auto;padding-left:24px;padding-right:24px}
 body main>.rulesPage,body main>.classesPage,body main>.organiserDashboard,body main>.createActivity,body main>.drawPreview,body main>.initialRatingsForm,body main>.setupPanel,body main>.roster,body main>.codeForm,body main>.playerPanel,body main .dashboardV2 .wrap{width:100%;max-width:none;box-sizing:border-box;margin-left:0;margin-right:0}
 body:not([data-session-user="0"]) main>.loginPanel{width:100%;max-width:none;box-sizing:border-box;margin-left:0;margin-right:0}
}

/* Shared form rhythm: field groups, actions and disclosure sections. Screen only. */
@media screen{
 :root{--form-action-gap:16px;--section-gap:24px;--control-gap:12px}
 main form:not(.courtForm):not(.adminActions)>:is(fieldset,label,textarea,select,input:not([type=hidden]))+.dgButton{margin-top:var(--form-action-gap)}
 main .setupPanel>.dgButton{margin-top:var(--form-action-gap)}
 main .setupPanel>fieldset+fieldset{margin-top:var(--section-gap);padding-top:16px;border-top:1px solid #383838}
 main>.matchDestructive{margin-top:16px;margin-bottom:16px}
 main>details+details,.manageOther>details+details{margin-top:16px}
 main .matchDestructive[open]>summary{margin-bottom:16px}
 main .matchDestructive>form{margin-top:16px;margin-bottom:16px}
 main .matchDestructive>p{line-height:1.5;margin:12px 0 16px}
 main .matchDestructive .adminActions{gap:var(--control-gap);padding-bottom:16px;margin-bottom:16px}
 main .clubForm fieldset{padding:16px;margin:16px 0}
 main .courtForm{row-gap:16px;column-gap:var(--control-gap)}
 main .courtForm label>input:not([type=checkbox]){margin-top:8px}
 main .participantAdd[open]>summary{margin-bottom:16px}
 main .classDisclosure[open]>summary{margin-bottom:16px}
 main .dialogActions{gap:var(--control-gap);margin-top:20px}
}

/* Group selection is a separate, wrapping toolbar, not part of the heading. */
.organiserGroupFilters{margin:0 0 24px;padding:16px 0 0;border-top:1px solid #333}.groupFilterChoices{display:flex;flex-wrap:wrap;gap:8px}.groupFilterChip{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;box-sizing:border-box;border:1px solid #505050;border-radius:24px;background:#181818;color:#ddd;text-decoration:none;font-size:14px;font-weight:600;line-height:1.3}.groupFilterChip:hover{background:#292929;border-color:#aaa}.groupFilterChip[aria-current=true]{background:#ff693b;border-color:#ff693b;color:#110900}.groupFilterChip:focus-visible{outline:3px solid #fff;outline-offset:3px}.organiserGroupFilters p{color:#aaa;font-size:13px;line-height:1.5;margin:10px 0 0}.organiserDashboard .activityListHeading{margin:24px 0 16px;gap:16px}.organiserDashboard .activityListHeading h2{flex:1}.organiserDashboard .activityListHeading [data-message-preview]{min-height:44px}@media(max-width:650px){.organiserGroupFilters{margin-bottom:18px}.groupFilterChip{padding:10px 14px}.organiserDashboard .activityListHeading{align-items:flex-start}.organiserDashboard .activityListHeading h2{flex-basis:100%}}

/* Group lifecycle and readable activity setup */
.groupManagement{align-items:start}.groupEditor form>label{display:block;margin:16px 0}.groupEditor form>label>select{display:block;width:100%;margin-top:8px;padding:12px;background:#191919;color:inherit;border:1px solid #555;border-radius:8px}.groupLifecycle{margin-top:24px;padding-top:16px;border-top:1px solid #444}.groupLifecycle p{color:#bbb;line-height:1.5}.groupLifecycle li{margin:12px 0}.groupLifecycle a{color:#82c5ff}
.setupFacts{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.5fr;gap:16px;margin:20px 0 24px}.setupFacts>div{padding:16px;background:#191919;border-radius:8px}.setupFacts dt{color:#bbb;font-size:.9rem;margin-bottom:8px}.setupFacts dd{margin:0;font-size:1.12rem;font-weight:600}.setupFacts small{display:block;color:#bbb;margin-top:8px;line-height:1.5}.setupEditor[open]>summary{margin-bottom:20px}@media(max-width:700px){.setupFacts{grid-template-columns:1fr 1fr}}@media(max-width:400px){.setupFacts{grid-template-columns:1fr}}

/* Court preference form: consistent label, control and section spacing. */
.courtPreferencesPage>h1{margin:0 0 16px}.courtPreferencesPage>p{margin:0 0 24px;line-height:1.5}.courtPreferencesPage .activitySearch{align-items:flex-end;gap:16px;margin:0 0 24px}.courtPreferencesPage .activitySearch>label{display:flex;flex-direction:column;gap:8px;margin:0;min-width:180px}.courtPreferencesPage .activitySearch select{min-height:46px;padding:10px 12px;margin:0;box-sizing:border-box;font:inherit}.courtPreferencesPage .activitySearch>.dgButton{margin:0;min-height:46px;padding:10px 20px;box-sizing:border-box;line-height:1.3}.courtPreferencesPage .courtOrderList{max-width:none;margin:0;padding:0;display:grid;gap:12px}.courtPreferencesPage .courtOrderList li{margin:0;padding:12px 16px;gap:16px}.courtPreferencesPage .courtMoveButtons{gap:8px}.courtPreferencesPage .courtPreferences>.adminActions{margin:24px 0 0;padding:0;border:0;gap:12px}.courtPreferencesPage .courtPreferences>.adminActions .dgButton{min-height:46px;padding:10px 16px}.courtPreferencesPage .courtPreferences{margin:0}@media(max-width:650px){.courtPreferencesPage .activitySearch>label{width:100%;min-width:0}.courtPreferencesPage .activitySearch>.dgButton{width:100%}.courtPreferencesPage .courtOrderList li{padding:12px;gap:8px}}

.groupEditor [data-required-clubs]{margin:20px 0;padding:16px;border:1px solid #666;border-radius:8px}.groupEditor [data-required-clubs] legend{font-weight:600;padding:0 6px}.groupEditor [data-required-clubs] p{margin:0 0 12px;line-height:1.5;color:#bbb}.groupEditor [data-required-clubs] p[role=alert]{color:#ffb38f}.groupEditor [data-required-clubs] .checkLabel{padding:8px 0;margin:0;gap:10px}

/* Player dashboard filter matches header control sizing. */
main .activityFilter{margin:0 0 20px;padding:0;border:0;width:auto}main .activityFilter #activity-group{flex:0 1 auto;width:auto;max-width:100%;min-width:0;min-height:44px;height:44px;padding:9px 32px 9px 15px;border:1px solid #484848;border-radius:10px;background-color:#202020;color:#eee;font:inherit;font-weight:600}

/* Dashboard group choice belongs alongside the navigation controls. */
.siteHeader nav .headerGroupFilter{display:inline-flex;align-items:center;flex:0 0 auto;margin:0;padding:0;max-width:100%}.siteHeader nav .headerGroupFilter select{box-sizing:border-box;width:auto;max-width:180px;min-width:0;height:44px;min-height:44px;margin:0;padding:9px 12px;border:1px solid #484848;border-radius:10px;background:#202020;color:#eee;font:inherit;font-weight:600}.siteHeader nav{align-items:center}

.siteHeader nav .headerGroupFilter select{font-size:14px;padding:7px 11px;border-radius:8px;line-height:1.5}@media(max-width:760px){.siteHeader nav .headerGroupFilter select{font-size:13px;padding:6px 9px}}

.activityTable .activityReserveCount,.eventStats .activityReserveCount{display:inline;font-size:inherit;font-weight:400;white-space:nowrap;margin:0}.eventStats>div:has(.activityReserveCount){display:block}

.profilePermissions>summary{cursor:pointer;font-size:23px;font-weight:700;line-height:1.4}.profilePermissions>summary:focus-visible{outline:3px solid #d9ef6c;outline-offset:5px}.profilePermissions[open]>summary{margin-bottom:18px}

.activityTable td:nth-child(3){white-space:nowrap}.activityTable td:nth-child(3) small{white-space:normal}
@media(max-width:1000px){.organiserDashboard .activityTable .adminEvent{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}}

.classAttendees{display:flex;flex-wrap:wrap;gap:6px 20px;list-style:none;padding:0;margin:12px 0 0}.classAttendees li{font-size:15px;overflow-wrap:anywhere}.classAttendees li>span{color:#b8b8b8}.classAttendees .classAttendee-reserve{color:#e9cd77}.classAttendees .classAttendee-pending{color:#e9cd77}.classCard:has(.classAttendees){padding:18px;gap:18px}.classCard:has(.classAttendees) .classCardFooter{margin-top:12px;padding-top:10px}@media(max-width:650px){.classCard:has(.classAttendees){padding:14px;gap:12px}.classAttendees{gap:4px 14px}.classCard:has(.classAttendees) .classCardFooter{flex-direction:row;align-items:center}.classesPage .classCard:has(.classAttendees) .classCardFooter>.dgButton{width:auto;min-width:0}.classCard:has(.classAttendees) .classCapacity strong{display:block}}

.classRosterGroups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}.classRosterGroup{border-top:1px solid #444;padding-top:10px}.classRosterGroup h3{font-size:14px;margin:0 0 8px;display:flex;gap:12px;justify-content:space-between}.classRosterGroup .classAttendees{display:grid;gap:5px;margin:0}.classRosterGroup .classAttendees li{display:flex;gap:8px}.classRosterGroup .classAttendees li>span{min-width:24px}.classRoster-reserve{border-color:#c6a64a}.classRoster-reserve h3,.classRoster-reserve .classAttendees li>span{color:#e9cd77}.classCard:has(.classRosterGroups) .classCapacity{display:none}.classCard:has(.classRosterGroups) .classCardFooter{justify-content:flex-end}@media(max-width:650px){.classRosterGroups{grid-template-columns:1fr}.classCard:has(.classRosterGroups){grid-template-columns:1fr}.classCard:has(.classRosterGroups) .classDate{display:none}}

.usersTitleLine{display:flex;align-items:center;gap:14px}.usersTitleLine h1{margin:0}.usersPageHeading{margin-bottom:22px}.usersFilters>.usersFilterActions{display:flex;flex:0 0 auto;align-items:center;gap:8px;flex-wrap:wrap}.usersFilterActions .dgButton{width:auto;min-height:44px;white-space:nowrap}@media(max-width:650px){.usersFilters>.usersFilterActions{flex-basis:100%;gap:6px}.usersFilterActions .dgButton{font-size:13px;padding:9px 10px}.usersTitleLine .pill{font-size:13px;padding:6px 10px}}

.groupsPageHeading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}.groupsPageHeading h1{margin:0}.inactiveToggle{display:flex;align-items:center;gap:9px;cursor:pointer;min-height:44px}.inactiveToggle input{appearance:none;width:38px;height:22px;border:1px solid #777;border-radius:20px;background:#333;position:relative;margin:0;cursor:pointer}.inactiveToggle input:before{content:"";position:absolute;width:16px;height:16px;border-radius:50%;background:#eee;top:2px;left:3px}.inactiveToggle input:checked{background:#ff6934;border-color:#ff6934}.inactiveToggle input:checked:before{left:17px;background:#111}

.manageSetup .inlineCourtAllocation{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:18px 0}.manageSetup .inlineCourtAllocation .manageCourtChoices{display:flex;flex-wrap:wrap;gap:12px;margin:0}.manageSetup .inlineCourtAllocation .courtChoice:has(select){display:flex;flex-direction:column;align-items:stretch;gap:6px;border:0;padding:0;margin:0;font-size:14px;color:#bbb}.manageSetup .inlineCourtAllocation select{appearance:auto;color-scheme:dark;background:#191919;color:#f4f4f4;border:1px solid #555;border-radius:8px;font:inherit;font-size:15px;min-height:44px;min-width:160px;padding:10px 32px 10px 12px;max-width:100%}.manageSetup .inlineCourtAllocation select option{background:#191919;color:#f4f4f4}.manageSetup .inlineCourtAllocation>.dgButton{width:auto;flex:0 0 auto;min-width:80px;min-height:44px;padding:10px 18px;margin:0;font-size:14px}.manageSetup .inlineCourtAllocation+.setupEditor{margin-top:12px}

.manageRosterHeading .playingSort{width:auto;max-width:180px;min-height:36px;margin:0;padding:5px 28px 5px 10px;border:1px solid #555;border-radius:7px;background:#191919;color:#fff;color-scheme:dark;font:inherit;font-size:13px;font-weight:400}

.futureSlotTotal{margin:12px 0 0;text-align:right;font-size:14px}.futureSlotTotal strong{margin-left:5px}

.profileTitleRow>.dgButton{display:inline-flex;flex:0 0 auto;width:auto;min-height:40px;margin:0;padding:8px 14px;font-size:14px}
.accountStateBadge{display:inline-block;margin-left:8px;padding:2px 7px;border:1px solid #a97726;border-radius:5px;color:#ffd166;font-size:12px;font-weight:600;white-space:nowrap}
.accountAccess{box-sizing:border-box;max-width:640px;margin:20px 0;padding:14px 16px;border:1px solid #333;border-radius:12px;background:#111}
.accountAccess>summary{cursor:pointer;font-size:16px;font-weight:700}.accountAccess p{font-size:14px;line-height:1.5;margin:12px 0}.accountAccess form{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.accountAccess label{font-size:14px}.accountAccess input{flex:1 1 180px;min-width:0;width:auto;margin:0;min-height:40px;padding:8px}.accountAccess .dgButton{flex:0 0 auto;width:auto;margin:0;min-height:40px;padding:8px 12px;font-size:14px}

.organiserRecovery{box-sizing:border-box;width:100%;max-width:620px;margin:20px 0;padding:20px;border:1px solid #333;border-radius:12px;background:#111}.organiserRecovery h1{font-size:26px;line-height:1.2;margin:0 0 10px}.organiserRecovery .recoveryPerson{display:inline-block;color:#c6cdd3;font-size:15px;text-decoration:none}.organiserRecovery p{font-size:15px;line-height:1.5;margin:14px 0}.organiserRecovery form{margin:0}.organiserRecovery .dgButton{display:inline-flex;width:auto;max-width:100%;min-height:42px;margin:0;padding:9px 14px;font-size:14px}.organiserRecovery .recoveryActions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.organiserRecovery [data-copy-status]:empty{display:none}@media(max-width:600px){.organiserRecovery{margin:12px 0;padding:16px}.organiserRecovery h1{font-size:23px}}

.clubsHeading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0}.clubsHeading h1{margin:0}.clubsWorkspace{display:grid;grid-template-columns:230px minmax(0,850px);gap:24px;align-items:start}.clubPicker{display:grid;gap:6px}.clubPicker a{display:block;padding:12px 14px;border:1px solid #333;border-radius:8px;text-decoration:none;color:#eee;background:#141414}.clubPicker a[aria-current]{border-color:#ff693b;background:#282019}.clubPicker small{display:block;color:#aeb8c0;margin-top:4px;font-size:12px}.clubPicker .clubCreate{color:#ff8b60}.clubsWorkspace .clubPanel{margin:0;padding:20px;border-color:#333;background:#111}.clubPanel h2{margin:0 0 14px;font-size:24px}.clubPanel h3{margin:20px 0 10px;font-size:18px}.courtColumns,.clubsWorkspace .courtForm{display:grid;grid-template-columns:100px minmax(120px,1fr) 80px 110px;gap:12px;align-items:center}.courtColumns{font-size:12px;color:#aeb8c0;padding:0 0 8px}.clubsWorkspace .courtForm{padding:8px 0;flex-wrap:nowrap}.clubsWorkspace .courtForm label{font-size:0;margin:0}.clubsWorkspace .courtForm label>input:not([type=checkbox]){box-sizing:border-box;width:100%;margin:0;min-height:38px;padding:7px 9px;font-size:14px}.clubsWorkspace .courtForm .checkLabel{justify-content:center}.clubsWorkspace .courtForm input[type=checkbox]{width:18px;height:18px;accent-color:#ff693b}.clubsWorkspace .dgButton{width:auto;min-height:38px;padding:8px 12px;font-size:13px;margin:0}.clubsWorkspace .clubForm{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.clubsWorkspace .clubForm label{margin:0;font-size:14px}.clubsWorkspace .clubForm input:not([type=checkbox]){box-sizing:border-box;width:100%;margin-top:5px}.clubsWorkspace .clubForm fieldset{grid-column:1/-1;margin:0;padding:12px;display:flex;gap:12px;flex-wrap:wrap}.clubsWorkspace .clubForm button{justify-self:start}.clubsWorkspace details>summary{cursor:pointer;font-size:14px;color:#c7d0d8}@media(max-width:800px){.clubsWorkspace{grid-template-columns:1fr;gap:14px}.clubPicker{grid-template-columns:repeat(2,minmax(0,1fr))}.clubsHeading h1{font-size:26px}.clubsWorkspace .clubPanel{padding:14px}.courtColumns,.clubsWorkspace .courtForm{grid-template-columns:60px minmax(65px,1fr) 45px 85px;gap:7px}.clubsWorkspace .dgButton{padding:7px;font-size:12px}.courtColumns{font-size:11px}.clubsWorkspace .clubForm{grid-template-columns:1fr}}

@media(max-width:760px){.appLogPageTitle,.appLogHelp{display:none}.appLogTitle{font-size:24px;margin:14px 0 10px}.appLog{margin:0 0 14px;font-size:13px}.appLog tr{grid-template-columns:minmax(0,1fr) auto;gap:5px 10px;padding:10px 12px;margin-bottom:5px;border-radius:6px}.appLog td{padding:0;line-height:1.35}.appLog td::before{display:none}.appLog td:first-child{font-size:11px;color:#aeb8c0;white-space:nowrap}.appLog td:nth-child(2){font-size:12px;text-align:right}.appLog td.logGroup{grid-column:1/-1;font-size:11px}.appLog td.logGroupEmpty{display:none}.appLog td:last-child{font-size:13px}.appLog .groupBadge{padding:0;background:none;border:0}.appLog .groupBadge.classLogBadge{border:1px solid #e8cf58;padding:3px 6px}.appLog .logBatch{margin-top:5px}}

/* Keep password recovery visually secondary to signing in. */
.loginPanel a[href="/forgot-password"]{color:#b8bec5;text-decoration:none}
.loginPanel a[href="/forgot-password"]:hover,.loginPanel a[href="/forgot-password"]:focus-visible{color:#f4f4f4;text-decoration:underline;text-underline-offset:3px}
.loginPanel a[href="/forgot-password"]:focus-visible{outline-color:#b8bec5}

/* Match actions: compact desktop controls, separated touch targets on phones. */
.matchesScreen .matchSaveBar{justify-content:flex-start;margin:14px 0}
.matchesScreen .matchSaveBar>.dgButton{width:auto;min-height:44px;padding:10px 18px;margin:0}
.matchesScreen>.matchDestructive{display:inline-block;vertical-align:top;max-width:none;margin:0 10px 12px 0}
.matchesScreen>.matchDestructive>summary.dgButton{width:auto;min-height:44px;padding:10px 16px;margin:0;font-size:14px;cursor:pointer}
.matchesScreen>.matchDestructive[open]{display:block;width:100%;padding:16px;border:1px solid #383838;border-radius:10px;background:#111;margin:0 0 16px}
.matchesScreen>.matchDestructive[open]>.loginPanel{margin:16px 0;max-width:600px}
.matchesScreen>.adminActions{gap:10px;align-items:flex-start;margin:16px 0;padding-bottom:16px}
.matchesScreen>.adminActions .dgButton{min-height:44px;padding:10px 16px;margin:0}
@media(max-width:800px){
 .matchesScreen .matchSaveBar>.dgButton{width:100%}
 .matchesScreen>.matchDestructive{display:block;width:100%;margin:0 0 10px}
 .matchesScreen>.matchDestructive>summary.dgButton{width:100%;text-align:left}
 .matchesScreen>.matchDestructive[open]{padding:12px}
}

/* Activity settings actions stay content-sized, including sharing and cancellation. */
.participantAdd.manageOther form>.dgButton{width:auto;min-height:44px;padding:10px 18px;margin:16px 0 0;justify-self:start;align-self:flex-start}

/* Compact, searchable administrator account picker. */
body:not([data-session-user="0"]) main>.loginPanel.pretendPanel{max-width:760px;margin:20px auto;padding:24px}
.pretendPanel form>.dgButton{width:auto;min-height:44px;padding:10px 18px;margin:16px 0 0}
.pretendPanel [hidden]{display:none!important}
.pretendPanel input,.pretendPanel select{min-height:44px}
@media(max-width:650px){body:not([data-session-user="0"]) main>.loginPanel.pretendPanel{padding:18px;margin:0 auto}}

/* Score entry uses compact, centred numbers and separated finalisation. */
.scoreGame .scoreInputs{max-width:640px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}
.scoreGame .scoreInputs label{min-width:0}
.scoreGame .scoreInputs input{width:100%;max-width:120px;min-height:48px;padding:10px;font-size:22px;font-weight:600;text-align:center;font-variant-numeric:tabular-nums}
input[name="home_score"],input[name="away_score"],.matchesScreen input[type="number"][name*="score"]{text-align:center;font-variant-numeric:tabular-nums}
.scoreFinalise{margin-top:24px;padding-top:20px;border-top:1px solid #333}
.scoreFinalise>.dgButton{width:auto;max-width:100%;min-height:44px;padding:10px 18px;margin:0}
@media(max-width:650px){.scoreGame .scoreInputs{gap:16px}.scoreFinalise{margin-top:20px;padding-top:16px}}

.scoreOverview{align-items:start}
.scoreOverview .scoreGame{padding:20px;min-width:0}
.scoreOverview .scoreCorrection{margin-top:16px}
.scoreOverview .scoreCorrection>summary{display:list-item;width:fit-content;cursor:pointer;border:1px solid #555;border-radius:6px;padding:8px 14px;font-weight:600;min-height:44px}
.scoreOverview .scoreCorrection[open]>summary{margin-bottom:16px}
.scoreOverview .scoreCorrection .notice{padding:12px;font-size:14px;margin:12px 0}
.scoreOverview .scoreGame a.dgButton{display:inline-block;width:auto;max-width:100%}
.scoreOverview .scoreInputs label{display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:space-between}
.scoreOverview .scoreInputs input{margin:8px auto 14px}

/* Keep the organiser score list readable on wide displays. */
.scoreGames.scoreOverview{grid-template-columns:minmax(0,1fr);max-width:1000px;gap:14px}
.scoreOverview .scoreGame{padding:18px 20px}
.scoreOverview .scoreGame>h2{margin:0 0 12px}
.scoreOverview .scoreGame>p{margin:8px 0}
.scoreOverview .scoreInputs{width:100%;max-width:560px}
.scoreOverview+.scoreFinalise{max-width:1000px}
@media(min-width:801px){
 .scoreOverview .scoreGame>form{display:flex;align-items:flex-end;gap:24px;margin-top:18px}
 .scoreOverview .scoreGame>form>.scoreInputs{flex:0 1 560px}
 .scoreOverview .scoreGame>form>.dgButton{flex:none;margin:0 0 14px;min-height:48px}
 .scoreOverview .scoreCorrection{margin-top:12px}
 .scoreOverview .scoreCorrection[open]{max-width:680px}
}

/* Desktop match overview: aligned rows instead of tall cards. */
@media(min-width:1050px){
 .scoreGames.scoreOverview{max-width:none;gap:0;border:1px solid #383838;border-radius:10px;overflow:hidden}
 .scoreOverview .scoreRow{display:grid;grid-template-columns:160px minmax(360px,1fr) 140px 160px;align-items:center;column-gap:20px;border:0;border-bottom:1px solid #333;border-radius:0;padding:14px 20px}
 .scoreOverview .scoreRow:last-child{border-bottom:0}
 .scoreOverview .scoreRow>h2{font-size:16px;margin:0}
 .scoreOverview .scoreRow>.scoreRowTeams{display:grid;grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr);align-items:center;gap:12px;margin:0;font-size:15px}
 .scoreRowTeams>span:first-child{text-align:right}
 .scoreOverview .scoreRowTeams>strong{text-align:center;margin:0;font-size:19px;font-variant-numeric:tabular-nums}
 .scoreOverview .scoreRow>.scoreRowStatus{margin:0;font-size:14px}
 .scoreOverview .scoreRow>.scoreCorrection{margin:0;justify-self:end}
 .scoreOverview .scoreRow>.scoreCorrection>summary{font-size:14px;min-height:40px;padding:7px 12px;white-space:nowrap}
 .scoreOverview .scoreRow>.scoreCorrection[open]{grid-column:1/-1;width:100%;max-width:none;margin-top:12px;padding-top:12px;border-top:1px solid #333;justify-self:stretch}
 .scoreOverview .scoreCorrection[open]>form{max-width:640px}
 .scoreOverview .scoreRow>form{grid-column:2/-1;margin-top:12px}
 .scoreOverview+.scoreFinalise{max-width:none}
}

.profileDetails{min-width:0}.profileDetails .accountAccess{max-width:none;margin:0 0 24px}.profileLog .appLog,.profileLog .appLog tbody{display:block}.profileLog .appLog thead{display:none}.profileLog .appLog tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:12px 0;border:0;border-bottom:1px solid #333;border-radius:0;margin:0}.profileLog .appLog td{display:block;padding:0;border:0;overflow-wrap:anywhere}.profileLog .appLog td::before{display:none}.profileLog .appLog td:first-child{font-size:12px;color:#aaa;white-space:normal}.profileLog .appLog td:nth-child(2){text-align:right;font-size:12px}.profileLog .appLog td:last-child{grid-column:1/-1;line-height:1.5}
.profileLog .appLog tr.logStaffOnly{border-left:3px solid #c6a5ff;padding-left:12px;background:#1d1727}.profileLog .appLog tr.logStaffOnly td{color:#d8c2ff}.profileLogStaffNote{color:#d8c2ff;font-size:13px;line-height:1.5;border-left:3px solid #c6a5ff;padding-left:12px}.logChangeDetail{display:block;margin-top:4px;font-size:13px;line-height:1.5}


.organiserDashboard .adminEvent.activityCancelled{border-left:5px solid #e46363}.organiserDashboard .activityTable .activityCancelled td:first-child{border-left-color:#e46363}
@media(max-width:1000px){.organiserDashboard .activityTable .activityCancelled td:first-child{border-left:0}}

.organiserDashboard .eventStats .activityCancellationReason{grid-column:1/-1;flex-basis:100%;display:block}.organiserDashboard .activityCancellationReason{overflow-wrap:anywhere}.organiserDashboard .eventStats .activityCancellationReason span{display:block;margin-bottom:4px;color:#b7bfc4;font-size:12px}.organiserDashboard .eventStats .activityCancellationReason strong{font-weight:400;line-height:1.5}
@media(max-width:1100px){.organiserDashboard .activityTable .activityCancellationReason{grid-column:1/-1;font-size:14px;line-height:1.5}.organiserDashboard .activityTable .activityCancellationReason::before{display:block;margin:0 0 3px;font-size:12px;color:#b7bfc4}}

/* Keep activity names compact and show confirmation notices with the name. */
.organiserDashboard .activityTable .activityNameWarning{display:table;background:#fff3bf;color:#594500;border-radius:5px;padding:4px 7px;margin-top:5px;font-size:12px;font-weight:600;line-height:1.35}
@media(min-width:1001px){.organiserDashboard .activityTable th:first-child{width:1%}.organiserDashboard .activityTable th:last-child,.organiserDashboard .activityTable td:last-child{width:auto}.organiserDashboard .activityTable .activityNameWarning{white-space:nowrap}}

.passwordField{position:relative}.loginPanel .passwordField input{padding-right:56px}.loginPanel .passwordToggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:44px;height:44px;margin:0;padding:10px;display:grid;place-items:center;background:transparent;border:0;border-radius:6px;color:#ddd}.passwordToggle svg{width:24px;height:24px}.passwordToggle .eyeSlash{display:none}.passwordToggle[aria-pressed="true"] .eyeSlash{display:block}
.strikeDialog{width:min(480px,calc(100vw - 32px));max-width:480px;max-height:calc(100dvh - 32px);overflow:auto;margin:auto;padding:20px;border:1px solid #705630;background:#181818;color:#eee;border-radius:12px}.strikeDialog::backdrop{background:#000a}.strikeDialogHeading{display:flex;justify-content:space-between;align-items:center;gap:12px}.strikeDialogHeading h2{font-size:21px;margin:0}.strikeDialog .strikeDialogClose{width:36px;height:36px;min-height:36px;margin:0;padding:0;font-size:25px;background:transparent;color:#eee;border:0;border-radius:6px}.strikeDialogCount{font-weight:700;color:#ffd166;margin:12px 0}.strikeDialog .muted{font-size:13px}.strikeRecord{padding:12px 0;border-top:1px solid #484038;font-size:14px}.strikeRecord p{margin:6px 0}.strikeNote{white-space:pre-wrap;overflow-wrap:anywhere}.strikeDialog label{display:block;margin:12px 0 6px;font-size:14px}.strikeDialog textarea{display:block;width:100%;min-height:70px;max-height:160px;resize:vertical;border:1px solid #777;border-radius:6px;background:#111;color:#fff;font:inherit;padding:10px}.strikeDialog .dgButton{width:auto;min-height:38px;margin-top:12px;padding:8px 14px;font-size:14px}.strikeAdd{margin-top:12px}.strikeHistory{margin-top:16px;font-size:14px}.profileTitleRow .strikeAssignTrigger{width:auto;padding:8px 12px;font-size:14px;min-height:38px}.strikeCountTrigger{width:auto;border:1px solid #926825;background:#302510;color:#ffd166;border-radius:7px;font:inherit;font-weight:700;font-size:14px;padding:7px 11px;min-height:36px;cursor:pointer}.strikeCountTrigger:hover{background:#483718}.strikeBadge{display:inline-block;color:#ffd166;background:#372910;border:1px solid #8d682d;border-radius:5px;padding:2px 6px;font-size:12px;font-weight:700;white-space:nowrap;margin-left:5px}.strikeBadgeUrgent{color:#ffaba5;background:#3a1515;border-color:#ac4a43}

/* Subtle organiser result colours in the desktop match table. */
@media screen and (min-width:801px){
 .matchesScreen tr[data-result-side="home"] :is(.h1,.h2) select,.matchesScreen tr[data-result-side="home"] .home_score input,
 .matchesScreen tr[data-result-side="away"] :is(.a1,.a2) select,.matchesScreen tr[data-result-side="away"] .away_score input{background:#14251c;border-color:#42694e;color:#d5eddd;opacity:1}
 .matchesScreen tr[data-result-side="home"] :is(.a1,.a2) select,.matchesScreen tr[data-result-side="home"] .away_score input,
 .matchesScreen tr[data-result-side="away"] :is(.h1,.h2) select,.matchesScreen tr[data-result-side="away"] .home_score input{background:#281b1b;border-color:#684545;color:#ecd6d6;opacity:1}
 .matchesScreen tr[data-result-side="home"] .home_score input,.matchesScreen tr[data-result-side="away"] .away_score input{font-weight:700}
}

.invitationPanel .invitationWhen{font-size:clamp(1.75rem,5vw,2.5rem);font-weight:800;line-height:1.2;margin:1rem 0 .5rem}.invitationPanel .invitationClub{font-size:1rem;margin:.5rem 0 1.5rem}.invitationPanel .dgButton{white-space:normal;text-align:center}
.invitationPanel .invitationChoices{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:22px}.invitationPanel .invitationChoices form{margin:0;display:flex}.invitationPanel .invitationChoices .dgButton{display:inline-flex;align-items:center;justify-content:center;width:auto;min-height:44px;margin:0;padding:12px 22px;line-height:1.4}.invitationAttendanceNotice{padding:14px 16px;border-left:3px solid #ff8a00;background:#211a10;border-radius:6px}@media(max-width:480px){.invitationPanel .invitationChoices{align-items:stretch}.invitationPanel .invitationChoices form,.invitationPanel .invitationChoices>.dgButton{flex:1 1 100%}.invitationPanel .invitationChoices form .dgButton{width:100%}}
/* Unconfirmed playing places within 30 hours: gentle orange pulse. */
.attendanceUrgent{background:#ff8a00!important;color:#111!important;border-color:#ff8a00!important;font-weight:800;animation:attendancePulse 1.8s ease-in-out infinite}
@keyframes attendancePulse{0%,100%{box-shadow:0 0 0 0 #ff8a0066}50%{background:#ffb74d;box-shadow:0 0 0 5px #ff8a0033;opacity:.75}}
@media(prefers-reduced-motion:reduce){.attendanceUrgent{animation:none}}

/* Activity status and lifecycle actions. */
.activityStatusPanel{padding:20px;border-color:#383838;border-radius:12px;background:#111}
.activityStatusHeading{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.activityStatusHeading h2{margin:0;font-size:18px;line-height:1.4}
.activityStatusBadge{display:inline-flex;align-items:center;gap:7px;padding:5px 10px;border:1px solid #42624d;border-radius:999px;background:#19271e;color:#a5dfb6;font-size:13px;font-weight:600;line-height:1.4}
.activityStatusBadge::before{content:"";width:6px;height:6px;flex:none;border-radius:50%;background:currentColor}
.activityStatusBadge.isCancelled{background:#2b1b1b;border-color:#694040;color:#f0aaa4}
.activityStatusPanel>.adminActions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 0;padding:0;border:0}
.activityStatusPanel .dgButton{box-sizing:border-box;width:auto;min-height:42px;padding:9px 14px;font-size:14px;line-height:1.5}
.activityStatusDisclosure{margin-top:20px;padding-top:18px;border-top:1px solid #333}
.activityStatusDisclosure>summary{width:fit-content;color:#ccc;font-size:14px;line-height:1.5}
.activityStatusDisclosure>summary:hover{color:#fff}
.activityStatusDisclosure>summary:focus-visible{outline:2px solid #ff693b;outline-offset:5px;border-radius:2px}
.activityStatusDisclosure>form{display:grid;gap:14px;max-width:560px;margin-top:18px}
.activityStatusPanel .activityStatusDisclosure label{display:grid;gap:8px;margin:0;color:#ccc;font-size:14px}
.activityStatusDisclosure input[name=reason]{box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:11px 12px;border:1px solid #555;border-radius:8px;background:#191919;color:#f3f3f3;font:inherit;line-height:1.5;color-scheme:dark}
.activityStatusDisclosure input[name=reason]:focus{outline:2px solid #ff693b;outline-offset:2px;border-color:#ff693b}
.activityStatusPanel .activityStatusDisclosure form>.dgButton{margin:0;justify-self:start;padding:9px 14px}
.activityStatusPanel .activityCancelButton{background:#301c1c;border-color:#88504b;color:#ffc0b9}
@media(max-width:600px){.activityStatusPanel{padding:16px}.activityStatusPanel>.adminActions>.dgButton{flex:1 1 auto}.activityStatusPanel .activityStatusDisclosure form>.dgButton{width:100%;justify-self:stretch}}
/* Editable scores use their labelled inputs as the single match display. */
@media(min-width:1100px){.scoreOverview .scoreRowEntry{grid-template-columns:160px minmax(0,1fr) 140px}.scoreOverview .scoreRowEntry>form{grid-column:2;grid-row:1;margin-top:0}.scoreOverview .scoreRowEntry>.scoreRowStatus{grid-column:3;grid-row:1}.scoreOverview .scoreRowEntry>form>.scoreInputs{flex:1;max-width:640px}}

/* App Log filter: match the dark admin controls and keep touch targets aligned. */
.appLogFilters{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:20px 0;padding:0 0 20px}
.appLogFilters label{margin:0;color:#c5c5c5;font-size:15px;font-weight:600}
.appLogFilters select{color-scheme:dark;appearance:none;background:#1b1b1b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23d0d0d0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;color:#f5f5f5;border:1px solid #555;border-radius:8px;min-height:48px;min-width:220px;max-width:100%;padding:10px 42px 10px 14px;font:inherit;cursor:pointer}
.appLogFilters select:hover{border-color:#999}.appLogFilters select:focus-visible{outline:2px solid #ff6733;outline-offset:3px}
.appLogFilters select option{background:#1b1b1b;color:#f5f5f5}.appLogFilters .dgButton{min-height:48px;margin:0}
@media(max-width:520px){.appLogFilters{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 10px}.appLogFilters label{grid-column:1/-1;font-size:13px}.appLogFilters select{min-width:0;width:100%}}

.dgActivityTitle .dgNotesInfo{display:inline-flex;align-items:center;justify-content:center;flex:none;background:transparent;color:inherit;border:0;border-radius:50%;padding:8px;min-width:36px;min-height:36px;cursor:pointer;vertical-align:middle;margin-right:4px}
.dgActivityTitle .dgNotesInfo:hover{color:#ff873f;background:#242424}.dgNotesInfo:focus-visible{outline:2px solid #ff6733;outline-offset:2px}
#info-message{white-space:pre-wrap;overflow-wrap:anywhere}#info-dialog{max-width:min(560px,calc(100vw - 32px));max-height:85vh;overflow:auto}
.createActivity textarea#match_notes,#match_notes{width:100%;box-sizing:border-box;resize:vertical;min-height:100px;background:#1b1b1b;color:#f5f5f5;border:1px solid #555;border-radius:8px;padding:12px;font:inherit;margin-bottom:20px}

textarea.matchNotesInput{display:block;width:100%;max-width:100%;box-sizing:border-box;resize:vertical;min-height:200px;background:#1b1b1b;color:#f5f5f5;border:1px solid #666;border-radius:8px;padding:14px;font:inherit;font-size:16px;line-height:1.5;margin:8px 0 24px}textarea.matchNotesInput:focus-visible{outline:2px solid #ff6733;outline-offset:2px}
#info-message a{color:#ffb078;text-decoration:underline;overflow-wrap:anywhere}

.dgGame .dgActivityTitle{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%}.dgActivityTitle>span{min-width:0;overflow-wrap:anywhere}.dgActivityTitle .dgNotesInfo{align-self:center;flex:0 0 36px;margin:0 -7px 0 0;color:#c5c5c5;width:36px;height:36px}.dgActivityTitle .dgNotesInfo svg{width:22px;height:22px}.dgGame .dgMapLink{gap:8px}.dgGame .dgMapLink svg{width:22px;height:22px}

/* Consistent interaction feedback for activity info and map controls. */
.dgGame .dgMapLink{border-radius:6px}
.dgGame .dgMapLink:hover,.dgActivityTitle .dgNotesInfo:hover{color:#ff873f;background:#242424;text-decoration:none}
.dgGame .dgMapLink:focus-visible,.dgActivityTitle .dgNotesInfo:focus-visible{outline:2px solid #ff6733;outline-offset:2px}

#info-message{line-height:1.5}#info-message ul{white-space:normal;padding-left:1.35em;margin:8px 0}#info-message li{padding-left:.2em;margin:5px 0}#info-message .notesTextLine{white-space:pre-wrap}

#info-dialog{padding:28px;box-sizing:border-box}
#info-dialog #info-title{font-size:20px;line-height:1.35;margin:0 0 20px;font-weight:700}
#info-dialog .notesDialogActions{display:flex;justify-content:flex-end;margin:24px 0 0;padding:0}
#info-dialog .notesDialogActions .dgButton{width:auto;min-width:88px;min-height:44px;padding:10px 20px;font-size:16px;line-height:1.4;margin:0}
@media(max-width:520px){#info-dialog{padding:22px}#info-dialog #info-title{font-size:18px}}

#calendar-dialog{box-sizing:border-box;width:480px;max-width:calc(100vw - 32px);padding:24px;max-height:85vh;overflow:auto}#calendar-title{font-size:22px;margin:0 0 12px}#calendar-dialog [data-calendar-activity]{margin:0 0 20px;overflow-wrap:anywhere}.calendarChoices{display:grid;gap:12px}.calendarChoices .dgButton{width:100%;text-align:center;white-space:normal;min-height:48px}.calendarHelp{font-size:14px;line-height:1.5;margin:20px 0}.calendarClose{display:flex;justify-content:flex-end;margin:0}.calendarClose .dgButton{width:auto;min-height:44px;padding:10px 18px;margin:0}

/* Clear team halves in match administration; mirrored scores meet at the divider. */
.matchesScreen .matchTeamHeading{display:none}
@media screen and (max-width:800px){
 .matchesScreen .matchesTable tbody tr{position:relative;column-gap:26px;padding:12px;border-radius:11px;row-gap:7px}
 .matchesScreen .matchesTable tbody tr::after{content:"";position:absolute;left:50%;top:42px;bottom:12px;width:1px;background:#555;pointer-events:none}
 .matchesScreen .matchTeamHeading{display:block;margin:1px 0 9px;font-size:12px;font-weight:750;letter-spacing:.09em;text-transform:uppercase;color:#eee;line-height:1.3}
 .matchesScreen .matchesTable .matchScore{margin-top:7px;gap:8px;min-height:44px}
 .matchesScreen .matchesTable .away_score{flex-direction:row-reverse}
 .matchesScreen .matchScore::before{font-size:13px;font-weight:600;color:#c5c5c5}
 .matchesScreen .matchesTable .matchScore input{width:62px;min-height:44px;font-size:20px;font-weight:700;text-align:center;border-color:#777;background:#202020}
 .matchesScreen .matchesTable .matchPlayer select{min-height:44px;border-radius:7px}
}
@media screen and (min-width:801px){.matchesScreen .matchesTable .a1,.matchesScreen .matchesTable th:nth-child(5){border-left:2px solid #555;padding-left:12px}}

/* The entire winning team half is dark green, including live score edits. */
@media screen and (max-width:800px){
 .matchesScreen .matchesTable tr[data-result-side="home"]{background:linear-gradient(90deg,#123222 0%,#123222 50%,#090909 50%,#090909 100%)}
 .matchesScreen .matchesTable tr[data-result-side="away"]{background:linear-gradient(90deg,#090909 0%,#090909 50%,#123222 50%,#123222 100%)}
}
.matchesScreen .matchesTable tr[data-result-side="home"] :is(.h1,.h2,.home_score),.matchesScreen .matchesTable tr[data-result-side="away"] :is(.a1,.a2,.away_score){background-color:#123222}
.matchesScreen .matchesTable tr[data-result-side="home"] :is(.h1,.h2) select,.matchesScreen .matchesTable tr[data-result-side="home"] .home_score input,.matchesScreen .matchesTable tr[data-result-side="away"] :is(.a1,.a2) select,.matchesScreen .matchesTable tr[data-result-side="away"] .away_score input{background:#193e2b;border-color:#52856b;color:#e1f3e8;opacity:1}

/* A participating organiser sees their own team first; field names remain home/away. */
@media screen and (max-width:800px){
 .matchesScreen .matchesTable tr[data-left-side="away"]{grid-template-areas:"game court" "a1 h1" "a2 h2" "as hs"}
 .matchesScreen .matchesTable tr[data-left-side="away"] .away_score{flex-direction:row}
 .matchesScreen .matchesTable tr[data-left-side="away"] .home_score{flex-direction:row-reverse}
 .matchesScreen .matchesTable tr[data-left-side="away"][data-result-side="away"]{background:linear-gradient(90deg,#123222 0%,#123222 50%,#090909 50%,#090909 100%)}
 .matchesScreen .matchesTable tr[data-left-side="away"][data-result-side="home"]{background:linear-gradient(90deg,#090909 0%,#090909 50%,#123222 50%,#123222 100%)}
 .matchesScreen .matchesTable tr[data-own-team="yes"] .matchScore::before{font-size:11px}
}
@media screen and (min-width:801px){
 .matchesScreen .matchesTable tr[data-left-side="away"] .a1{border-left:0;padding-left:6px}
 .matchesScreen .matchesTable tr[data-left-side="away"] .h1{border-left:2px solid #555;padding-left:12px}
}



.profileLanguageFlag{margin-left:auto;display:inline-flex;align-items:center;flex-shrink:0;line-height:1}.profileLanguageFlag svg{display:block;overflow:hidden;border-radius:2px;box-shadow:0 0 0 1px rgba(255,255,255,.2)}
.guidelinesSection{padding-block:1rem;border-bottom:1px solid #ffffff26}.guidelinesSection h2{margin-top:0}.guidelinesSection p{line-height:1.7;overflow-wrap:anywhere}.guidelinesSwitcher,.guidelinesAgreement{margin-top:1.5rem}.guidelinesSwitcher label{display:block;margin:1rem 0}.guidelinesSwitcher select{display:block;max-width:100%;width:100%;margin-top:.5rem}.guidelinesEditor{display:block;box-sizing:border-box;width:100%;max-width:100%;margin:1rem 0;line-height:1.6}.guidelinesPage .adminActions details a{display:block;margin:.5rem 0}

/* Guidelines: scoped reading layout and compact controls. */
.rulesPage.guidelinesPage{max-width:900px}
.rulesPage.guidelinesPage .guidelinesSection{padding:8px 0 22px;border-bottom:1px solid #303030}
.guidelinesPage .guidelinesSection h2{font-size:23px;margin:24px 0 16px}
.guidelinesPage .guidelinesSection h3{font-size:17px;margin:22px 0 8px}
.guidelinesPage .guidelinesSection p{margin:8px 0 16px;line-height:1.65;color:#dedede}
.guidelinesPage .guidelinesSection a{color:#ff956f;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.guidelinesPage .guidelinesSection a:hover{color:#ffbd9f}
.rulesPage.guidelinesPage form{padding:18px;margin:22px 0;border-color:#303030;background:#111;border-radius:10px}
.rulesPage.guidelinesPage button.dgButton,.rulesPage.guidelinesPage a.dgButton{display:inline-flex;width:auto;max-width:100%;min-height:36px;padding:7px 13px;margin-top:0;font-size:14px;line-height:1.35;flex:0 0 auto}
.guidelinesPage .guidelinesSwitcher h2{font-size:17px;margin:0 0 5px}
.guidelinesPage .guidelinesSwitcher>.muted{font-size:13px;margin:0 0 16px}
.guidelinesContextFields{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:14px}
.guidelinesPage .guidelinesContextFields label{flex:0 1 240px;min-width:0;max-width:100%;margin:0;font-size:13px;color:#c4c4c4}
.guidelinesPage .guidelinesContextFields select{display:block;width:100%;min-height:38px;padding:7px 32px 7px 10px;margin-top:5px;border:1px solid #505050;border-radius:6px;background:#1b1b1b;color:#f4f4f4;font-size:14px;color-scheme:dark}
.rulesPage.guidelinesPage .guidelinesAgreement{display:flex;align-items:center;flex-wrap:wrap;gap:12px 18px}
.guidelinesPage .guidelinesAgreement .checkLabel{display:flex;align-items:center;gap:9px;margin:0;font-size:14px}
.guidelinesPage .guidelinesAgreement input[type=checkbox]{width:17px;height:17px;flex:0 0 17px;margin:0;accent-color:#ff693b}
.guidelinesPage .guidelinesEditor{padding:12px;border:1px solid #505050;border-radius:6px;background:#191919;color:#eee;font:14px/1.6 Arial,Helvetica,sans-serif;resize:vertical}
.guidelinesPage .guidelinesLinkHelp{font-size:13px}
@media(max-width:600px){.rulesPage.guidelinesPage form{padding:14px}.guidelinesContextFields{gap:10px}.guidelinesPage .guidelinesContextFields label{flex:1 1 180px}.rulesPage.guidelinesPage button.dgButton{min-height:40px}.guidelinesPage .guidelinesAgreement .checkLabel{flex-basis:100%;align-items:flex-start}.guidelinesPage .guidelinesAgreement input[type=checkbox]{margin-top:2px}}

/* The Guidelines reader: club character, visible guidance and compact controls. */
body main>.rulesPage.guidelinesReader{max-width:1120px;margin-inline:auto}
.guidelinesReader{--guide-accent:#ff956f}
.guidelinesReader .guidelinesTone-calor{--guide-accent:#ff956f}
.guidelinesReader .guidelinesTone-club{--guide-accent:#8ed5c7}
.guidelinesReader .guidelinesTone-group{--guide-accent:#d9e99a}
.guidelinesHero{position:relative;display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:220px;padding:34px 38px;border:1px solid #4a3024;border-radius:18px;background:#17120f;overflow:hidden}
.guidelinesHeroCopy{position:relative;z-index:1;max-width:690px}
.guidelinesReader .guidelinesEyebrow{margin:0 0 10px;font-size:11px;font-weight:750;letter-spacing:.16em;color:var(--guide-accent);line-height:1.4}
.guidelinesReader .guidelinesHero h1{font-size:clamp(30px,3.5vw,46px);line-height:1.12;letter-spacing:-1.3px;margin:0;color:#fff5ee;max-width:620px}
.guidelinesCourt{flex:0 0 260px;width:260px;transform:rotate(-10deg);fill:none;stroke:#785443;stroke-width:1.5;opacity:.85}
.guidelinesCourt .courtNet{stroke:#b37b5b;stroke-dasharray:3 4}.guidelinesCourt .courtTrail{stroke:#ff956f;stroke-dasharray:4 6}.guidelinesCourt .courtBall{fill:#d9e99a;stroke:#d9e99a}.guidelinesCourt .courtBallSeam{stroke:#59612b;stroke-width:1.4}
.guidelinesJump{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0 28px}
.guidelinesJumpLink{display:flex;align-items:center;gap:11px;min-width:0;padding:13px 16px;border:1px solid #343434;border-radius:9px;color:#eee;text-decoration:none;font-size:14px;font-weight:700;background:#101010;overflow-wrap:anywhere}
.guidelinesJumpLink>span:first-child{color:var(--guide-accent);font-size:11px;letter-spacing:.06em}.guidelinesJumpLink:hover{border-color:var(--guide-accent);background:#181818}.guidelinesJumpArrow{margin-left:auto;color:var(--guide-accent);font-size:18px}
.rulesPage.guidelinesReader .guidelinesSection{padding:0 0 32px;border:0;scroll-margin-top:20px}
.guidelinesReader .guidelinesLead{font-size:17px;line-height:1.65;color:#d7d0cb;max-width:850px;margin:0 0 24px;padding:3px 0 3px 18px;border-left:3px solid var(--guide-accent)}
.guidelinesCardGrid{display:block;column-count:2;column-gap:16px}
.guidelinesCard{display:inline-block;vertical-align:top;width:100%;break-inside:avoid;page-break-inside:avoid;margin:0 0 16px;min-width:0;border:1px solid #323232;border-radius:12px;background:#121212;padding:22px 24px}
.guidelinesCard>header{display:flex;align-items:baseline;gap:13px;padding-bottom:13px;margin-bottom:14px;border-bottom:1px solid #292929}
.guidelinesCardNumber{flex:0 0 auto;color:var(--guide-accent);font-size:12px;font-weight:750;letter-spacing:.07em}
.guidelinesReader .guidelinesCard h3{font-size:18px;font-weight:700;line-height:1.35;margin:0;color:#f4f1ed;letter-spacing:-.2px}
.guidelinesReader .guidelinesCard p{font-size:15px;line-height:1.65;color:#c9c9c9;margin:0 0 14px}.guidelinesReader .guidelinesCard p:last-child{margin-bottom:0}
.guidelinesReader .guidelinesCard .guidelinesImportant{color:#f2dcc8;font-weight:600;border-left:2px solid var(--guide-accent);padding-left:12px}
.guidelinesReader .guidelinesScopeHeading{display:flex;align-items:center;gap:17px;margin:22px 0 22px;padding-top:28px;border-top:1px solid #303030}
.guidelinesScopeIndex{display:grid;place-items:center;width:46px;height:46px;flex:0 0 46px;border:1px solid var(--guide-accent);border-radius:50%;font-size:12px;font-weight:700;color:var(--guide-accent)}
.guidelinesReader .guidelinesScopeHeading .guidelinesEyebrow{margin-bottom:4px}.guidelinesReader .guidelinesScopeHeading h2{font-size:28px;line-height:1.2;letter-spacing:-.6px;margin:0;color:#f5f5f5;overflow-wrap:anywhere}
.guidelinesReader .guidelinesEmpty{padding:16px 20px;border:1px dashed #3e3e3e;border-radius:10px;color:#a8a8a8;font-size:14px}
.guidelinesCommitment{display:flex;align-items:center;gap:20px;margin-top:20px;padding:22px 24px;background:#1b2116;border:1px solid #424d2f;border-radius:12px}
.guidelinesCommitment>span{color:#d9e99a;font-size:36px;line-height:1}.guidelinesReader .guidelinesCommitment p{font-size:17px;line-height:1.6;color:#e6edcf;margin:0;font-weight:600}
.rulesPage.guidelinesReader .guidelinesSwitcher{background:#111714;border-color:#33473e}.guidelinesReader .guidelinesSwitcher h2{color:#e0ede5}
.guidelinesCardGrid>.guidelinesCard:only-child{display:block;column-span:all}
@media(max-width:850px){.guidelinesHero{min-height:190px;padding:26px}.guidelinesCourt{flex-basis:190px;width:190px}.guidelinesCardGrid{column-count:1}.guidelinesReader .guidelinesCard p{font-size:15px}}
@media(max-width:600px){.guidelinesHero{min-height:180px;padding:25px 21px;border-radius:13px}.guidelinesHeroCopy{max-width:82%}.guidelinesCourt{position:absolute;right:-58px;bottom:3px;width:180px;opacity:.27}.guidelinesReader .guidelinesHero h1{font-size:32px;letter-spacing:-.8px}.guidelinesJump{gap:7px;margin:12px 0 22px}.guidelinesJumpLink{padding:10px 9px;gap:7px;font-size:12px;align-items:flex-start;flex-wrap:wrap}.guidelinesJumpLink>span:first-child{flex-basis:100%}.guidelinesJumpArrow{display:none}.guidelinesCard{padding:19px 18px}.guidelinesReader .guidelinesCard h3{font-size:18px}.guidelinesReader .guidelinesLead{font-size:16px}.guidelinesReader .guidelinesScopeHeading h2{font-size:25px}.guidelinesReader .guidelinesScopeHeading{gap:12px}.guidelinesScopeIndex{width:38px;height:38px;flex-basis:38px}.guidelinesCommitment{gap:13px;padding:18px}.guidelinesReader .guidelinesCommitment p{font-size:16px}}
@media print{.guidelinesCourt,.guidelinesJump{display:none}.guidelinesHero{min-height:0;padding:0;border:0}.guidelinesCardGrid{display:block;column-count:1}.guidelinesCard{display:block;break-inside:avoid;background:none;margin:12px 0}.guidelinesCommitment{background:none}}

/* Saved venue details beside the club's Guidelines heading. */
.guidelinesReader .guidelinesScopeTitle{min-width:0}
.guidelinesReader .guidelinesVenueMeta{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px 16px;margin-left:auto;padding-left:12px;font-size:14px}
.guidelinesReader .guidelinesVenueLocation{color:#bbb;max-width:30ch;overflow-wrap:anywhere;text-align:right}
.guidelinesReader .guidelinesVenueMap{display:inline-flex;align-items:center;gap:6px;color:#8ed5c7;text-decoration:underline;text-underline-offset:3px;white-space:nowrap;padding:4px 0;font-size:14px}
.guidelinesReader .guidelinesVenueMap:hover{color:#b5eee4}
@media(max-width:700px){.guidelinesReader .guidelinesScopeHeading{flex-wrap:wrap}.guidelinesReader .guidelinesVenueMeta{flex-basis:100%;justify-content:flex-start;margin-left:55px;padding-left:0}.guidelinesReader .guidelinesVenueLocation{text-align:left;max-width:100%}}
@media(max-width:600px){.guidelinesReader .guidelinesVenueMeta{margin-left:50px}}

/* Guidelines administration: compact, separated scope choices. */
.guidelinesAdmin .guidelinesClubFilter{background:none;border:0;padding:0;margin:16px 0}
.guidelinesAdmin .guidelinesClubFilter label{display:inline-flex;align-items:center;gap:8px;margin:0;font-size:14px;cursor:pointer}
.guidelinesAdmin .guidelinesClubFilter input[type=checkbox]{width:16px;height:16px;margin:0;flex:none}
.guidelinesAdmin .guidelinesScopeNav{align-items:flex-start;gap:12px}
.guidelinesAdmin .guidelinesEntityLinks{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.guidelinesAdmin .guidelinesScopeNav details{min-width:0}

/* Keep desktop columns while completed mobile profiles lead with match history. */
@media(min-width:761px){.profileLayoutComplete>.profileDetails{order:1}.profileLayoutComplete>.profileOverview{order:2}.profileLayoutComplete>.profileBookings{order:0}}

/* Compact scheduled times beside the matches title. */
.matchesScreen .matchPageTitle{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:16px;row-gap:8px}
.matchesScreen .matchPageTitle .matchPageTimes{display:inline-block;flex:none;font-size:14px;font-weight:400;line-height:1.5;letter-spacing:normal;white-space:nowrap;padding:4px 0;color:#bcbcbc}
@media(max-width:650px){.matchesScreen .matchPageTitle{display:block}.matchesScreen .matchPageTitle .matchPageTimes{display:block;width:fit-content;font-size:13px;margin-top:8px;padding:2px 0}}

.manageGamesPlayed{display:none}@media(min-width:1001px){.manageGamesPlayed{display:inline;color:#b8c3cb;white-space:nowrap;font-size:14px;font-variant-numeric:tabular-nums}.manageGamesPlayed strong{color:#fff}}

@media(min-width:1001px){.managePersonIdentity .manageAttendance{display:inline-block;flex:0 0 120px;width:120px;box-sizing:border-box}.managePersonIdentity .manageGamesPlayed{display:inline-block;flex:0 0 145px;width:145px;box-sizing:border-box}}

.invitationPanel .lessonWeeklyChoice{border-top:1px solid #3b3b3b;margin-top:24px;padding-top:20px}.invitationPanel .lessonWeeklyChoice h2{font-size:20px;margin:0 0 8px}.invitationPanel .lessonWeeklyChoice p{margin:0 0 12px}.invitationPanel .lessonWeeklyChoice .invitationChoices{margin-top:12px}.invitationPanel .lessonWeeklyChoice .dgButton{font-size:16px;padding:10px 18px;min-height:44px;width:auto;max-width:100%}.invitationPanel .lessonWeeklyChoice .invitationChoices form{flex:0 1 auto}

/* Lesson actions stay sized to their labels, including expanded forms and phones. */
.classesPage .dgButton{display:inline-flex;align-items:center;justify-content:center;width:fit-content;min-width:0;max-width:100%;flex:0 1 auto;justify-self:start;align-self:flex-start;min-height:44px;padding:9px 14px;font-size:14px;line-height:1.4;white-space:normal}

/* Match printouts: use the printable page and preserve recorded scores. */
@media print{
 .scorecardRows1{--scorecard-rows:1}
 .scorecardRows2{--scorecard-rows:2}
 .scorecardRows3{--scorecard-rows:3}
 .scorecardRows4{--scorecard-rows:4}
 .scorecardRows5{--scorecard-rows:5}
 .scorecardRows6{--scorecard-rows:6}
 .scorecardRows7{--scorecard-rows:7}
 .scorecardRows8{--scorecard-rows:8}
 .scorecardCourts1{--scorecard-courts:1}
 .scorecardCourts2{--scorecard-courts:2}
 .scorecardCourts3{--scorecard-courts:3}
 .scorecardCourts4{--scorecard-courts:4}
 .scorecardCourts5{--scorecard-courts:5}
 .matchScorecard .scorecardPage{
  --row-height:calc(252mm / var(--scorecard-rows, 6));
  --court-width:calc(175mm / var(--scorecard-courts, 2));
  height:275mm;display:flex;flex-direction:column;box-sizing:border-box
 }
 .matchScorecard.scorecardLandscape .scorecardPage{
  --row-height:calc(166mm / var(--scorecard-rows, 6));
  --court-width:calc(262mm / var(--scorecard-courts, 2));
  height:188mm
 }
 .matchScorecard .courtSchedule{flex:1;height:100%;min-height:0}
 .matchScorecard .courtSchedule tbody tr{height:var(--row-height)}
 .matchScorecard .scorecardPage .printedMatch{
  height:var(--row-height);min-height:0;box-sizing:border-box;
  grid-template-columns:minmax(0,1fr) clamp(5mm,12%,14mm) minmax(0,1fr)
 }
 .matchScorecard .scorecardPage .printedMatch .printedTeam{
  justify-content:center;padding:1mm;gap:clamp(1mm,calc(var(--row-height) * .065),6mm)
 }
 .matchScorecard .scorecardPage .printedMatch .printedTeamNames{
  flex:1;min-height:0;font-size:clamp(9pt,min(calc(var(--court-width) * .10),calc(var(--row-height) * .12)),32pt)
 }
 .matchScorecard .scorecardPage .printedMatch .teamAnd{font-size:.7em;margin:0}
 .matchScorecard .scorecardPage .printedMatch .printedVersus{
  font-size:clamp(8pt,calc(var(--court-width) * .057),22pt)
 }
 .matchScorecard .scorecardPage .printedMatch:has(.printedResult){
  grid-template-columns:minmax(0,1fr) max-content minmax(0,1fr)
 }
 .matchScorecard .scorecardPage .printedMatch:has(.printedResult) .printedTeamNames{
  font-size:clamp(9pt,min(calc(var(--court-width) * .10),calc(var(--row-height) * .145)),32pt)
 }
 .matchScorecard .printedResult{
  align-self:center;display:flex;align-items:center;justify-content:center;
  gap:.18em;padding:.22em .32em;border:1pt solid #777;border-radius:1mm;
  font-size:clamp(10pt,min(calc(var(--row-height) * .21),calc(var(--court-width) * .085)),34pt);
  line-height:1;font-weight:700;font-variant-numeric:tabular-nums
 }
 .matchScorecard .teamScore{flex-shrink:0}
 .matchScorecard .scorecardPage .printedMatch .handwrittenScore{
  width:85%;max-width:55mm;min-height:8mm;height:clamp(8mm,min(calc(var(--row-height) * .39),calc(var(--court-width) * .55)),38mm)
 }
}

/* Reset confirmation actions fit their labels on desktop and mobile. */
.resetMatchesPanel .resetMatchActions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:20px}
.resetMatchesPanel .resetMatchActions form,.resetMatchesPanel .resetMatchActions p{margin:0;max-width:100%}
.resetMatchesPanel .resetMatchActions .dgButton{display:inline-block;width:fit-content;max-width:100%;min-height:44px;margin:0;padding:10px 16px;white-space:normal}

/* Desktop action buttons fit their labels throughout the application.
   Width is enforced here because older page-specific rules set full-width actions. */
@media screen and (min-width:1001px){
 body main button.dgButton,body main a.dgButton{width:fit-content!important;min-width:0!important;max-width:100%;flex:0 1 auto;justify-self:start;align-self:flex-start}
 body main .loginPanel>button,body main .loginPanel form>button:not(.passwordToggle){width:fit-content;max-width:100%;justify-self:start;align-self:flex-start}
 body main .dashboardV2 #removeModal .btn,body main .courtConfirm,body main .resultConfirmationActions button{width:fit-content;max-width:100%;justify-self:start;align-self:flex-start}
 body main .courtConfirm,body main .resultConfirmationActions button{min-height:44px;padding:10px 16px;font-size:16px}
 body main .resultConfirmationActions{justify-items:start}
}

@media screen and (min-width:1001px){
 body main .courtNavigation{display:flex;flex-wrap:wrap;gap:10px}
 body main .courtNavigation a,body main .courtNavigation span,body main a.courtBack{width:fit-content;max-width:100%;min-height:44px;padding:10px 16px;flex:0 1 auto;justify-self:start;align-self:flex-start}
}


/* Calor Padel: personal player notice and explicit WhatsApp choices. */
.whatsappNoticeWrap{max-width:1060px;margin:0 auto 30px;color:#f4f1eb;font-size:16px;line-height:1.65}
.whatsappPreviewNote{margin:0 0 14px;color:#aaa69f;font-size:12px;line-height:1.5}
.whatsappNotice{overflow:hidden;border:1px solid #39352e;border-top:3px solid #ff922e;border-radius:18px;background:#141412;box-shadow:0 18px 60px #0003}
.whatsappNoticeHeader{padding:32px 38px 28px;border-bottom:1px solid #36332d}
.whatsappNoticeEyebrow{display:flex;align-items:center;gap:9px;margin:0 0 13px;color:#ffad63;font-size:11px;line-height:1.5;font-weight:700;letter-spacing:1.7px;text-transform:uppercase}
.whatsappNoticeEyebrow>span{width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:#ff922e}
.whatsappNoticeHeader h1{margin:0;font-size:clamp(29px,3.2vw,40px);line-height:1.15;letter-spacing:-1.1px;font-weight:750;color:#fff8ef}
.whatsappNoticeSubtitle{margin:12px 0 0;color:#bbb6ad;font-size:16px}
.whatsappNoticeBody{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr)}
.whatsappLetter{padding:30px 38px 34px}
.whatsappLetter>p{margin:0 0 18px;color:#c8c5bd;font-size:15px;line-height:1.75}
.whatsappLetter>p.whatsappLetterLead{color:#f5f1e9;font-size:18px;line-height:1.6;font-weight:550}
.whatsappLetter strong{color:#f0e9df;font-weight:650}
.whatsappSignature{display:flex;align-items:center;gap:14px;margin-top:28px;padding-top:22px;border-top:1px solid #35322c}
.whatsappSignatureMark{display:grid;place-items:center;flex:0 0 45px;height:45px;border:1px solid #754923;border-radius:50%;background:#2c2116;color:#ffb776;font-family:Georgia,serif;font-style:italic;font-size:27px}
.whatsappSignature p{margin:0 0 5px;color:#bbb6ad;font-size:13px;line-height:1.5}
.whatsappSignature strong{font-size:20px;line-height:1.3}
.whatsappSignature div>span{display:block;color:#99968d;font-size:12px;line-height:1.5}
.whatsappChoices{padding:32px;background:#1b1b18;border-left:1px solid #36332d;min-width:0}
.whatsappChoices form{margin:0}
.whatsappChoices fieldset{border:0;margin:0;padding:0;min-width:0}
.whatsappChoices legend,.whatsappChoices h2{padding:0;margin:0;color:#fff8ef;font-size:21px;font-weight:700;line-height:1.3;letter-spacing:-.35px}
.whatsappChoicesIntro{margin:10px 0 22px;color:#bdb8af;font-size:14px;line-height:1.6}
.whatsappNotice .whatsappChoice{display:flex;align-items:flex-start;gap:13px;margin:0 0 12px;padding:18px 16px;border:1px solid #555047;border-radius:11px;background:#161613;cursor:pointer;transition:border-color .15s,background-color .15s}
.whatsappNotice .whatsappChoice:hover{border-color:#d98d46;background:#242018}
.whatsappNotice .whatsappChoice:has(input:checked){border-color:#f29c4b;background:#2b2319}
.whatsappNotice .whatsappChoice:focus-within{outline:2px solid #ffb776;outline-offset:3px}
.whatsappNotice .whatsappChoice input[type=checkbox]{appearance:auto;display:block;flex:0 0 22px;width:22px;min-width:22px;max-width:22px;height:22px;min-height:22px;margin:2px 0 0;padding:0;accent-color:#ff9d42;cursor:pointer}
.whatsappChoice>span{display:block;min-width:0}
.whatsappChoice strong{display:block;color:#f8f1e8;font-size:15px;font-weight:700;line-height:1.5;margin-bottom:5px}
.whatsappChoice span>span{display:block;color:#c1bbb1;font-size:13px;line-height:1.6}
.whatsappChoiceHelp{margin:17px 0 0;color:#c2bcb2;font-size:13px;line-height:1.65}
.whatsappNoticeActions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:23px 0 0}
.whatsappNotice .whatsappNoticeButton{display:inline-flex;align-items:center;justify-content:center;gap:18px;flex:0 1 auto;width:fit-content;max-width:100%;min-height:46px;padding:11px 19px;margin:0;border:1px solid #ffad63;border-radius:8px;background:#ffa24b;color:#1a1209;font-size:14px;font-weight:750;line-height:1.5;cursor:pointer;text-align:center}
.whatsappNotice .whatsappNoticeButton:hover{background:#ffb86f}
.whatsappNotice .whatsappNoticeButton:focus-visible,.whatsappNotice .whatsappNoticeBack:focus-visible{outline:3px solid #ffc38b;outline-offset:4px}
.whatsappNotice .whatsappNoticeBack{display:inline-flex;align-items:center;min-height:44px;padding:7px 2px;color:#e7c4a3;font-size:13px;font-weight:600;text-decoration:underline;text-underline-offset:4px}
.whatsappSender{margin:24px 0 0;padding-top:17px;border-top:1px solid #413b31;color:#aaa398;font-size:11px;line-height:1.7}
.whatsappChoiceSummary{border:1px solid #554d42;border-radius:10px;padding:4px 16px;background:#161613}
.whatsappChoiceSummary p{display:flex;justify-content:space-between;gap:14px;margin:0;padding:14px 0;font-size:13px;line-height:1.6}
.whatsappChoiceSummary p+p{border-top:1px solid #36332d}
.whatsappChoiceSummary strong{font-weight:600}
.whatsappChoiceSummary span{white-space:nowrap;color:#ffb776}
@media(max-width:800px){.whatsappNoticeBody{grid-template-columns:1fr}.whatsappChoices{border-left:0;border-top:1px solid #36332d;padding:26px}.whatsappNoticeHeader{padding:26px}.whatsappLetter{padding:26px}.whatsappSignature{margin-top:22px}.whatsappNoticeHeader h1{font-size:32px}.whatsappNoticeWrap{max-width:650px}}
@media(max-width:420px){.whatsappNotice{border-radius:13px}.whatsappNoticeHeader,.whatsappLetter,.whatsappChoices{padding:22px 20px}.whatsappNoticeHeader h1{font-size:29px}.whatsappNoticeSubtitle{font-size:14px}.whatsappLetter>p{font-size:14px}.whatsappLetter>p.whatsappLetterLead{font-size:17px}.whatsappChoice{padding:15px 13px}.whatsappNoticeActions{gap:8px 14px}.whatsappChoiceSummary p{flex-wrap:wrap;gap:5px 12px}}
@media(prefers-reduced-motion:reduce){.whatsappNotice .whatsappChoice{transition:none}}

.whatsappWarning{margin-bottom:22px;padding:18px;border:1px solid #f17e73;border-left:5px solid #f17e73;border-radius:10px;background:#391e1d;color:#ffe2df}
.whatsappWarning h2{color:#ffd1cb}
.whatsappWarning h2 span{color:#ff9f92}
.whatsappWarning p{margin:12px 0 0;color:inherit;font-size:14px;line-height:1.6}
.whatsappNotice .whatsappWarningAcknowledgement{margin:18px 0 0;font-size:14px}
.whatsappNotice .whatsappNoticeButton{text-decoration:none}
.whatsappNotice .whatsappWarningContinue{background:transparent;color:#ffd1cb;border-color:#f17e73}
.whatsappNotice .whatsappWarningContinue:hover{background:#391e1d}

/* WhatsApp opt-in indicators on the user directory and event roster. */
.whatsappLink[data-wa-opt-in="0"],.managePersonActions .manageWhatsApp[data-wa-opt-in="0"]{color:#ff9292}
.whatsappLink[data-wa-opt-in="1"],.whatsappLink[data-wa-opt-in="2"],.managePersonActions .manageWhatsApp[data-wa-opt-in="1"],.managePersonActions .manageWhatsApp[data-wa-opt-in="2"]{color:#ffdb70}
.whatsappLink[data-wa-opt-in="0"]{border-color:#925050}
.whatsappLink[data-wa-opt-in="1"],.whatsappLink[data-wa-opt-in="2"]{border-color:#8e773b}
.managePersonActions .manageWhatsApp[data-wa-opt-in="3"]{color:#8be1ad}

[data-player-questions] {
    min-width: 0;
    margin: 18px 0;
    padding: 0 14px 14px;
    border: 1px solid #555;
    border-radius: 8px;
}
[data-player-questions] select {
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    background: #202020;
    color: #fff;
    border: 1px solid #555;
    border-radius: 6px;
}
.loginPanel [data-player-questions] button {
    width: auto;
    min-height: 44px;
    margin: 10px 0 0;
}
#player-es-guide {
    width: min(560px, calc(100% - 32px));
    max-width: none;
}
#player-es-guide dt {
    font-weight: 700;
}
#player-es-guide dd {
    margin: 0 0 14px;
}



body main .activityEditPanel>form{display:block}
.activityEditIdentity{display:grid;grid-template-columns:minmax(180px,300px) minmax(260px,500px) minmax(180px,300px);gap:20px;align-items:start}
.activityEditField{display:flex;flex-direction:column;gap:8px;min-width:0}
body main .activityEditPanel .activityEditField>label{margin:0}
body main .activityEditPanel .activityEditField>input,body main .activityEditPanel .activityEditField>select{width:100%;min-width:0;margin:0;min-height:44px}
body main .activityEditPanel .activityDateTime{display:grid;grid-template-columns:minmax(0,180px) minmax(0,120px);gap:20px;margin:24px 0;max-width:100%}
body main .activityEditPanel .activityDateTime label{margin:0}
.activityEditPanel input[type=date]{color-scheme:dark}
.activityEditNumbers{display:flex;flex-wrap:wrap;gap:24px;margin:24px 0;align-items:flex-end}
.activityEditNumbers .activityEditField{width:190px}
body main .activityEditPanel .activityEditNumbers input[type=number]{width:100px;max-width:100%}
body main .activityEditPanel .checkLabel{display:flex;align-items:center;gap:10px;margin:24px 0}
.activityEditNotes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:28px 0 20px}
.activityEditPanel textarea{width:100%;min-width:0;margin:0;resize:vertical}
body main .activityEditPanel button.dgButton{width:auto;min-height:44px}
@media(max-width:900px){.activityEditIdentity{grid-template-columns:repeat(2,minmax(0,1fr))}.activityEditName{grid-column:1/-1;grid-row:1}.activityEditNotes{grid-template-columns:1fr}}
@media(max-width:500px){.activityEditIdentity{grid-template-columns:1fr}.activityEditName{grid-column:auto;grid-row:auto}.activityEditNumbers{gap:20px}.activityEditNumbers .activityEditField{width:calc(50% - 10px)}}

.activityEditSchedule{display:flex;flex-wrap:wrap;align-items:flex-end;gap:24px;margin:24px 0}
body main .activityEditPanel .activityEditSchedule .activityDateTime{margin:0;flex:0 1 320px}
.activityEditSchedule .activityEditNumbers{margin:0;gap:24px}
.activityEditSchedule .activityEditNumbers .activityEditField{width:180px}
@media(max-width:700px){.activityEditSchedule{display:block}.activityEditSchedule .activityEditNumbers{margin-top:24px}.activityEditSchedule .activityEditNumbers .activityEditField{width:calc(50% - 12px)}}
