/* Restore the approved editorial layouts; data/actions remain server-backed. */
.restored-player{display:block;padding-top:0}.restored-player>section,.restored-player>.sp-form,.restored-player>.sp-stack,.restored-player>.sp-actions,.restored-player>.sp-pagination,.restored-player>.players-grid{margin-block:var(--gui-space-5)}
.restored-player .page-header{display:flex;justify-content:space-between;align-items:center}.restored-player .personal-heading{margin-top:var(--gui-space-7)}
.restored-player .personal-profile-strip .btn{background:var(--gui-ink);color:var(--gui-accent)}
.restored-player .personal-profile-strip>span{color:var(--gui-ink)}
.restored-player .personal-profile-strip{background:var(--gui-light);padding:var(--gui-space-5);border:0}
.restored-player .personal-top-grid,.restored-player .profile-layout,.restored-player .detail-layout{margin-block:var(--gui-space-6)}
.restored-player .personal-empty{background:transparent}.restored-player .personal-empty h3{margin-bottom:var(--gui-space-4)}
.restored-player .catalog-game p,.restored-player .player-card p,.restored-player .venue-card p,.restored-player .panel p{color:var(--gui-muted-light)}
.restored-player .catalog-game h3,.restored-player .catalog-game h4,.restored-player .player-card h3,.restored-player .venue-card h3,.restored-player .panel h2,.restored-player .panel h3{color:var(--gui-ink)}
.restored-player .game-bottom>.btn{margin-left:auto}.restored-player .game-bottom{flex-wrap:wrap}.restored-player .catalog-game .game-time h3{white-space:normal}
.restored-player .list-layout .game-list{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--gui-space-5)}
.restored-player .venue-cover-neutral{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--gui-space-5);background:var(--gui-control);color:var(--gui-muted);min-height:200px}
.restored-player .venue-cover-neutral:after{display:none}.restored-player .venue-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--gui-space-5)}
.restored-player .restored-court-row{display:flex;align-items:center;justify-content:space-between;gap:var(--gui-space-5);padding-block:var(--gui-space-5);border-top:1px solid var(--gui-line);flex-wrap:wrap}
.restored-player .restored-people{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--gui-space-4)}
.restored-player .profile-upcoming .personal-next p{color:var(--gui-muted)}
.restored-player .stats-grid .stats-card{display:flex;flex-direction:column;gap:var(--gui-space-3);padding:var(--gui-space-5)}
.restored-player .identity-panel{text-align:center}.restored-player .identity-panel h2,.restored-player .identity-panel p{text-align:center}
.restored-player .match-history .history-row{display:grid;grid-template-columns:40px minmax(0,1fr) 100px 24px;gap:var(--gui-space-4)}
.restored-player .match-history .history-row .history-info{min-width:0}.restored-player .match-history .history-row .outcome-text{text-align:left}
.restored-player .sp-slot{background:#dededb;color:var(--gui-ink)}.restored-player .sp-slot-open{background:var(--gui-accent)}
.restored-player .sp-slot strong,.restored-player .sp-slot p{text-align:center}.restored-player .sp-teams{align-items:stretch}.restored-player .sp-teams h3{border-top:1px solid var(--gui-line);padding-top:var(--gui-space-4);text-align:center}
.restored-player .booking-summary .sp-button{background:transparent;border:1px solid var(--gui-line);color:var(--gui-ink);width:100%}
.restored-player .booking-summary .sp-actions{display:grid;grid-template-columns:1fr}.restored-player .booking-summary>p{margin-block:var(--gui-space-5)}
.restored-player .sp-form{max-width:960px;margin-inline:auto}.restored-player .sp-field input,.restored-player .sp-field select,.restored-player .sp-form .graemo-select-trigger{border:0;border-bottom:1px solid var(--gui-line);background:transparent}
.restored-player .sp-filters{margin-block:var(--gui-space-5)}
.restored-player .sp-filters .sp-field input{background:var(--gui-control)}
.restored-player .sp-card{background:var(--gui-light);color:var(--gui-ink);margin-block:var(--gui-space-5)}.restored-player .sp-card p{color:var(--gui-muted-light)}
@media(max-width:1100px){.restored-player .profile-layout{grid-template-columns:240px minmax(0,1fr)}.restored-player .profile-upcoming{grid-column:1/-1}.restored-player .personal-top-grid{grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr)}.restored-player .venue-grid{grid-template-columns:1fr}}
@media(max-width:800px){.restored-player .personal-top-grid,.restored-player .profile-layout,.restored-player .detail-layout,.restored-player .list-layout .game-list,.restored-player .restored-people{grid-template-columns:minmax(0,1fr)}.restored-player .personal-profile-strip{gap:var(--gui-space-4)}.restored-player .page-header{align-items:flex-start}.restored-player .match-history .history-row{grid-template-columns:32px minmax(0,1fr) 24px}.restored-player .history-row .outcome-text{grid-column:2;grid-row:2}.restored-player .history-row>a{grid-column:3;grid-row:1/3}.restored-player .history-row .history-info{grid-column:2}.restored-player .profile-upcoming{grid-column:auto}}
@media(max-width:400px){.restored-player .courts-redesign .venue-card{grid-template-columns:1fr}.restored-player .venue-cover-neutral{min-height:120px}.restored-player .catalog-game{grid-template-columns:32px minmax(0,1fr);gap:var(--gui-space-3)}.restored-player .game-status{grid-column:2}.restored-player .game-level{grid-column:2}.restored-player .catalog-index{font-size:28px}.restored-player .game-bottom{grid-column:1/-1}.restored-player .sp-slot{min-height:180px;padding:var(--gui-space-2)}}
.restored-player .summary-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:var(--gui-space-3)}.restored-player .summary-price strong{font-size:var(--gui-h2-size);line-height:var(--gui-h2-leading);overflow-wrap:anywhere;min-width:0}
.restored-player .booking-summary,.restored-player .detail-layout>*{min-width:0}
.restored-player .booking-wizard .bw-progress{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible;gap:var(--gui-space-3)}.restored-player .booking-wizard fieldset{display:grid;gap:var(--gui-space-5);margin:0}.restored-player .booking-wizard fieldset legend{margin-bottom:var(--gui-space-5)}
@media(max-width:600px){.restored-player .booking-wizard .bw-progress{grid-template-columns:repeat(2,minmax(0,1fr))}.restored-player .booking-wizard .bw-progress button{padding:var(--gui-space-3)}.restored-player .booking-wizard fieldset{padding:var(--gui-space-4)}}

.restored-player .match-history h3,.restored-player .match-history h2{color:var(--gui-text)}.restored-player .match-history p{color:var(--gui-muted)}

.restored-onboarding{width:100%;box-sizing:border-box;margin:32px auto;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
.restored-onboarding em{color:var(--gui-primary,#acfa5b);font-style:normal}
.restored-onboarding .onboarding-panel{min-width:0;min-height:570px}
.restored-onboarding .sp-form{padding:0;margin:24px 0 0;max-width:none;width:100%;background:transparent}
.restored-onboarding [data-profile-step]{display:grid;gap:16px;min-width:0}
.restored-onboarding [hidden]{display:none!important}
.restored-onboarding .onboarding-step-icon{align-self:flex-start}
.restored-onboarding input[type=file]{max-width:100%;font-size:14px}
.restored-onboarding .onboarding-actions{margin-top:24px}
@media(max-width:800px){.restored-onboarding{grid-template-columns:minmax(0,1fr);gap:24px;padding:0}.restored-onboarding aside ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:24px 0;gap:0 16px}.restored-onboarding .onboarding-panel{padding:24px;min-height:0}.restored-onboarding aside>p{display:none}}
.restored-onboarding>aside{display:block!important}
.restored-onboarding .onboarding-identity{border-top:1px solid var(--gui-divider,#505050);padding-top:16px}
.restored-onboarding summary{cursor:pointer;min-height:44px}
.restored-onboarding details[open]>:not(summary){margin-bottom:16px}
.restored-onboarding .onboarding-options input{width:20px;min-height:20px}

body .editorial-app .restored-filters{grid-template-columns:repeat(5,minmax(0,1fr));align-items:end}
.restored-filters .filter-actions{grid-column:1/-1;margin:0;justify-content:flex-end}
.restored-filters .sp-field{min-width:0}
.restored-filters input[type=date]{width:100%;min-width:0;box-sizing:border-box;min-height:48px}
@media(max-width:800px){body .editorial-app .restored-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px;gap:12px}.restored-filters .date-filters .filter{flex:1;padding:12px 8px!important}}
@media(max-width:360px){body .editorial-app .restored-filters{grid-template-columns:minmax(0,1fr)}}

.restored-editor{width:min(960px,calc(100vw - 32px));max-width:960px;max-height:calc(100dvh - 32px);padding:0;border:0;background:var(--gui-light);color:var(--gui-ink)}
.restored-editor::backdrop{background:#0009;backdrop-filter:blur(4px)}
.restored-editor .modal-head{display:flex;justify-content:space-between;gap:24px;padding:32px;border-bottom:1px solid var(--gui-line)}
.restored-editor .modal-head h1{font-size:var(--gui-h2-size);line-height:var(--gui-h2-leading)}
.restored-editor .modal-head p{color:var(--gui-muted-light)}
.restored-editor .sp-form{margin:0!important;max-width:none;padding:32px}
.restored-editor .profile-photo-editor{display:flex;align-items:center;gap:24px}
.restored-editor .photo-file-button{position:relative;display:inline-flex;min-height:44px;align-items:center;padding:12px 16px;background:var(--gui-control);color:var(--gui-text);cursor:pointer}
.restored-editor .photo-file-button input{position:absolute;inset:0;opacity:0;cursor:pointer}
.restored-editor .photo-upload{display:grid;gap:8px}
.restored-editor .avatar-picker{grid-column:1/-1;border:0;padding:0;margin:0}
.restored-editor .avatar-emojis,.restored-editor .avatar-colors{display:flex;gap:8px;flex-wrap:wrap}
.restored-editor .avatar-emojis label,.restored-editor .avatar-colors label{position:relative;display:grid;place-items:center;min-width:44px;min-height:44px;cursor:pointer;background:var(--gui-white)}
.restored-editor .avatar-emojis input,.restored-editor .avatar-colors input{position:absolute;opacity:0;width:100%;height:100%;inset:0;margin:0;cursor:pointer}
.restored-editor .avatar-colors strong{width:32px;height:32px}
.restored-editor .avatar-emojis label:has(:checked),.restored-editor .avatar-colors label:has(:checked){box-shadow:inset 0 -3px var(--gui-ink);background:var(--gui-accent)}
.restored-editor .avatar-picker label:has(:focus-visible){outline:2px solid var(--gui-ink);outline-offset:2px}
.restored-player .booking-wizard .bw-modes{display:grid;grid-template-columns:1fr;gap:16px}
.restored-editor .bw-modes label{color:var(--gui-ink)}
.restored-editor .graemo-picker{z-index:10}
@media(max-width:600px){.restored-editor{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.restored-editor .modal-head,.restored-editor .sp-form{padding:20px}.restored-editor .modal-head{gap:12px}.restored-editor .profile-photo-editor{gap:16px;align-items:flex-start}}
.restored-club-shell .cm-header{display:flex;align-items:center;min-height:80px;padding:24px;border-bottom:1px solid var(--gui-line)}
.restored-club-shell .cm-main{min-width:0}
.restored-club-shell .server-workspace{padding:0}
@media(max-width:1023px){.restored-club-shell{display:block!important}.restored-club-shell .cm-sidebar{display:flex!important;position:static!important;width:auto!important;height:auto!important;padding:16px;gap:16px}.restored-club-shell .cm-sidebar nav{display:flex;flex-wrap:wrap;gap:8px}.restored-club-shell .cm-sidebar nav a{min-height:44px;padding:12px}.restored-club-shell .cm-sidebar-bottom{display:flex;flex-wrap:wrap;gap:16px;margin:0}.restored-club-shell .cm-workspace-main{margin-left:0!important;width:100%}.restored-club-shell .cm-main{padding:16px}}
.restored-editor .editor-language{margin:0;padding:16px 32px 0;justify-content:flex-end}
.restored-editor .editor-language button{min-width:44px;min-height:44px;border:0;background:var(--gui-control);color:var(--gui-text)}
