/* Shared local workspace refinements: permissions and navigation. */
.workspace .admin-tabs{gap:9px}
.workspace .admin-tab .nav-label-mobile{display:none}
.workspace .admin-account-permission-grid{background:#fff;border:1px solid #e5e1e9;border-radius:18px;gap:0}
.workspace .admin-account-permission-row,.workspace .admin-account-permission-row:nth-child(even){min-height:76px;margin:0;padding:14px 18px;gap:18px;align-items:center}
.workspace .admin-account-permission-row strong{gap:12px;font-size:14px;flex:1}
.workspace .admin-account-permission-row strong svg{box-sizing:content-box;width:19px;height:19px;padding:9px;border-radius:11px;background:#fff0f4;stroke:#d00035}
.workspace .account-access-options{padding:4px;gap:3px;flex:none;background:#f0edf3;border-radius:12px}
.workspace .account-access-options button{display:inline-flex;align-items:center;justify-content:center;min-height:36px;min-width:90px;padding:8px 12px;border-radius:9px;font-size:12px;line-height:1.3}
.workspace .account-access-options button[aria-pressed=true]{background:#fff;color:#c00031;box-shadow:0 1px 5px #21122d20}
.workspace .admin-account-permissions legend{font-size:13px;font-weight:650;padding-bottom:12px}
@media(max-width:760px){
 .workspace .admin-tabs{gap:10px;padding-block:6px}
 .workspace .admin-tabs::before,.workspace .admin-tabs::after{flex-basis:calc(50% - 58px)}
 .workspace .admin-tab .nav-label-desktop{display:none}
 .workspace .admin-tab .nav-label-mobile{display:block;font-size:10px!important}
 .workspace .admin-tabs .admin-tab{flex-basis:96px;max-width:96px;padding-inline:4px}
 .workspace .admin-account-permission-row,.workspace .admin-account-permission-row:nth-child(even){flex-direction:column;align-items:stretch;padding:15px 14px;gap:12px}
 .workspace .admin-account-permission-row strong{font-size:13px;gap:10px}
 .workspace .admin-account-permission-row strong svg{width:18px;height:18px;padding:7px;border-radius:9px}
 .workspace .account-access-options{width:100%;box-sizing:border-box}
 .workspace .account-access-options button{flex:1;min-width:0;min-height:38px;padding:7px 5px}
}

.workspace #admin-tab-settings span::after{content:none!important}

.workspace.workspace-admin #admin-panel-settings .home-notice-row{display:grid;grid-template-columns:minmax(0,1fr) 38px;align-items:center;padding-right:16px;background:#fff}
.workspace.workspace-admin #admin-panel-settings .home-notice-row .maintenance-toggle{border:0;border-radius:0;background:transparent}
.workspace.workspace-admin #admin-panel-settings .home-notice-row .admin-circle-control{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;justify-self:end}
.workspace.workspace-admin #admin-panel-settings .home-notice-row .admin-circle-control svg{width:18px;height:18px;stroke-width:1.5}
@media(max-width:760px){.workspace.workspace-admin #admin-panel-settings .home-notice-row{padding-right:12px;grid-template-columns:minmax(0,1fr) 34px}}

.workspace .admin-dialog-close,.workspace .workspace-close{display:inline-grid!important;place-items:center!important;box-sizing:border-box;line-height:1!important;padding:0!important;border-radius:50%;width:34px;height:34px;min-width:34px;min-height:34px}
.workspace .admin-dialog-close>svg,.workspace .workspace-close>svg{display:block!important;position:static!important;width:18px!important;height:18px!important;margin:0!important;fill:none;stroke:currentColor;stroke-width:1.8}

/* One account and area switcher across administration and games. */
.workspace-header .workspace-account-zone{display:flex;align-items:center;margin-left:auto;gap:clamp(24px,5.9vw,76px);min-width:0}
.workspace-header .workspace-account-zone>.profile-wrap{margin-left:0;flex:none}
.workspace-header .workspace-area-link{display:inline-flex;align-items:center;justify-content:center;gap:9px;flex:none;box-sizing:border-box;min-height:41px;padding:10px 16px;border:0;border-radius:12px;background:#e40038;color:#fff;font-family:inherit;font-size:13px;line-height:1.4;font-weight:650;text-decoration:none;white-space:nowrap}
.workspace-header .workspace-area-link:hover{background:#bd002e}
.workspace-header .workspace-area-link>svg{display:block;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:760px){
 .workspace-header .workspace-account-zone{gap:10px}
 .workspace-header .workspace-area-link{width:34px;height:34px;min-height:34px;padding:0;border-radius:10px}
 .workspace-header .workspace-area-link>span{display:none}
}
@media(max-width:380px){
 .workspace-header .workspace-logo img{width:100px;height:42px}
 .workspace-header .profile-name strong{max-width:78px;font-size:11px}
 .workspace-header .profile-name small{max-width:78px;font-size:9px}
}

/* Center the complete dashboard caption, including wrapped labels. */
.workspace .dashboard-stat{display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center;gap:9px}
.workspace .dashboard-stat>.stat-icon{margin-inline:auto}
.workspace .dashboard-stat>div{display:grid;justify-items:center;gap:5px;width:100%;text-align:center}
.workspace .dashboard-stat>div>span{display:block;width:100%;text-align:center}
.workspace.workspace-admin #admin-panel-settings .website-settings-panel .maintenance-toggle{column-gap:40px}
@media(max-width:760px){
 .workspace.workspace-admin #admin-panel-settings .website-settings-panel .maintenance-toggle{grid-template-columns:48px minmax(0,1fr);column-gap:30px}
}

/* Main page titles flow directly into their content, without duplicate rules. */
.workspace #calendar-admin-editor>.admin-heading{border-bottom:0;padding-bottom:0;margin-bottom:16px}
.workspace #calendar-admin-editor .admin-list-heading{border-top:0;padding-top:0}
.workspace #calendar-admin-editor>.admin-heading>.workspace-header-trash{margin-left:auto;flex:none}
.workspace #admin-panel-posts>.admin-list-heading{display:none}
.workspace #admin-panel-posts>.archive-filter{margin-top:0}
.workspace #admin-panel-registrations>.registration-form-list-heading{display:none}
.workspace #admin-panel-registrations>#admin-registration-form-list{margin-top:0}
.workspace #calendar-admin-editor .admin-status:empty{display:none}
.workspace .admin-delete.registration-icon-button,.workspace .admin-action-file-remove{color:#d00035!important}
.workspace .admin-delete.registration-icon-button:disabled{color:#aaa3ab!important;opacity:.4;cursor:not-allowed}

/* The answer picker uses the browser's top layer, outside scrolling form clips. */
.workspace .registration-type-options[popover] {
 position:fixed;inset:auto;margin:0;box-sizing:border-box;z-index:10000;
 max-width:calc(100vw - 24px);overflow-x:hidden;overflow-y:auto;
 overscroll-behavior:contain;touch-action:pan-y;scrollbar-gutter:stable;
 padding:5px;border:1px solid #e8e5ed;border-radius:10px;background:#fff;
 color:var(--ink);font-family:inherit;font-size:14px;font-weight:400;
 box-shadow:0 12px 28px #17131324;
}
.workspace .registration-type-options[popover]::backdrop{background:transparent;pointer-events:none}
.workspace .registration-type-options[popover] .registration-type-option {flex-shrink:0;min-width:0;font-size:14px;line-height:1.4}
/* Explicit grid alignment prevents the former mobile space-between rule. */
.workspace #admin-panel-dashboard .dashboard-stat>div{display:grid;grid-template-columns:minmax(0,1fr);justify-content:stretch;justify-items:center;align-items:center;text-align:center;width:100%;gap:5px}
.workspace #admin-panel-dashboard .dashboard-stat>div>strong,
.workspace #admin-panel-dashboard .dashboard-stat>div>span{display:block;width:100%;margin-inline:0;text-align:center;justify-self:center}
