/* Home v535: availability first, one secondary player data card. */
body .home-focus .identity-document-intro{padding:18px 22px;margin-bottom:18px}
body .home-focus .identity-document-intro h1{font-size:26px;margin:6px 0}
.home-focus-cards{display:grid;gap:20px}
body .home-focus #player-document-preferences{border:2px solid #1681ac;border-radius:24px;background:#c8e8f7;box-shadow:0 5px 20px #12678920;animation:home-availability-glow 4s ease-in-out infinite}
@keyframes home-availability-glow{0%,100%{box-shadow:0 5px 18px #12678920}50%{box-shadow:0 0 0 4px #1c9ad124,0 5px 24px #12678938}}
body .home-focus #player-document-preferences::after{display:none}
body .home-focus #player-document-preferences .identity-section-heading{grid-template-columns:minmax(0,1fr) 32px auto 38px;gap:8px;background:#075b83;padding:16px 18px;border-radius:21px 21px 0 0}
body .home-focus #player-document-preferences .identity-section-heading h2{font-size:20px;font-weight:850;line-height:1.3}
body .home-focus #player-document-preferences .identity-section-heading>.identity-info-button{grid-column:2;width:32px;min-width:32px}
body .home-focus #player-document-preferences .identity-section-heading>.identity-info-button::after{display:none}
body .home-focus #player-document-preferences .identity-section-heading>.identity-card-toggle{grid-column:4;min-height:44px;margin:0;padding:6px;clip-path:none}
body .home-focus #player-document-preferences .identity-habitual-status{grid-column:3;display:grid;gap:5px;margin:0;padding:0;max-width:none}
body .home-focus #player-document-preferences .identity-habitual-count{padding:4px 9px;font-size:12px}
.home-habitual-overview{padding:18px 22px 22px;color:#153e56}
.home-habitual-purpose{font-size:16px;line-height:1.65;margin:0 0 16px}
.home-habitual-purpose strong{font-size:19px;line-height:1.4}
body .home-focus .identity-main-state{padding:12px 15px;border:1px solid #87b8d0;background:#fff;border-radius:14px;margin:0 0 16px}
body .home-focus .identity-state-row>span:first-child,body .home-focus .identity-state-count{color:#31556b}
.home-availability-action{display:block;width:100%;min-height:52px;padding:12px 18px;border:1px solid #00486c;border-radius:14px;background:#075b83;color:white;font-size:17px;font-weight:750;white-space:normal;line-height:1.4}
.home-availability-action:hover{background:#034a6b}
.home-player-data{border:1px solid #87abc2;border-radius:24px;background:#b9ddf0;overflow:hidden}
.home-player-data>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;min-height:78px;padding:16px 22px;background:#d9edf8;color:#244d68;font-size:18px;font-weight:800}
.home-player-data>summary::-webkit-details-marker{display:none}
.home-player-data>summary small{display:block;font-size:14px;font-weight:500;margin-top:4px;line-height:1.5}
.home-data-arrow{font-size:24px}.home-player-data[open]>summary .home-data-arrow{transform:rotate(180deg)}
.home-player-data-sections{display:grid;gap:16px;padding:18px}
body .home-focus .home-player-data .identity-document-section{border:1px solid #80a9bf;border-radius:18px;background:#c7e5f5;box-shadow:none}
body .home-focus .home-player-data .identity-section-heading{grid-template-columns:minmax(0,1fr) 32px 44px;gap:8px;border-radius:17px 17px 0 0;background:#306482;min-height:64px;margin:0;padding:10px 16px}
body .home-focus .home-player-data .identity-section-heading h2{font-size:18px}
body .home-focus .home-player-data .identity-section-heading>.identity-info-button{width:32px;min-width:32px;grid-column:2}
body .home-focus .home-player-data .identity-section-heading>.identity-info-button::after{display:none}
body .home-focus .home-player-data .identity-section-heading>.identity-card-toggle{grid-column:3;min-height:44px;margin:0;padding:8px;clip-path:none}
body .home-focus .home-player-data .identity-card-body{padding:14px 16px 18px}
body .home-focus .home-player-data .identity-data-grid{gap:12px}
body .home-focus .home-player-data .identity-data-grid>div{background:white;border:1px solid #8bb3ca;border-radius:12px;padding:12px}
body .home-focus .home-player-data .identity-data-grid dt{color:#375c74;font-size:13px}
body .home-focus .home-player-data .identity-document-section[data-expanded=false]::after{display:none}
.home-level-reminder{padding:16px 20px;border:1px solid #d5b356;border-left:5px solid #b78714;border-radius:18px;background:#fff8df;color:#65470c}
.home-level-reminder>strong{font-size:17px}.home-level-reminder p{margin:6px 0 12px;font-size:14px;line-height:1.6}
.home-level-reminder>div{display:flex;gap:10px;flex-wrap:wrap}
.home-level-reminder button{min-height:44px;border:1px solid #ac852b;border-radius:10px;background:white;color:#65470c;white-space:normal;line-height:1.4;padding:9px 12px}
.home-level-reminder button:first-child{background:#72510e;color:white}
/* Existing editors retain every field, lock and validation; contrast only. */
body .player-identity-editor :is(.player-anagraphic-package,.player-profile-package,.player-preferences-package){border:1px solid #679dbb;border-radius:22px;overflow:hidden;background:#b9ddf0}
body .player-identity-editor :is(.home-card-fields,.panel,.profile-addresses-package,.habitual-step-body){background:#c7e5f5;color:#183f59}
body .player-identity-editor :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#fff;color:#183f59;border-color:#709bb5}
body .player-identity-editor input[readonly]{background:#edf3f7;color:#456174}
body .player-identity-editor :is(.field,legend){color:#183f59}
/* The center's three existing cards now form one compact, spaced deck. */
body .center-home-document .center-home-deck{display:grid;gap:16px;background:transparent;border:0;padding:0;overflow:visible}
body .center-home-document .center-home-deck>[data-center-home-card]{margin:0!important;border:1px solid #a4bdce;border-radius:22px;overflow:hidden;box-shadow:0 4px 16px #1b435313}
body .center-home-document .center-home-deck>[data-center-home-card]>summary{border-radius:21px 21px 0 0}
body .center-home-document .center-home-profile-group{margin-top:0}
@media(max-width:600px){
 body .home-focus .identity-document-intro{padding:16px 18px}
 body .home-focus #player-document-preferences .identity-section-heading{grid-template-columns:minmax(0,1fr) 28px 72px 26px;gap:5px;padding:14px 12px}
 body .home-focus #player-document-preferences .identity-section-heading h2{font-size:17px;line-height:1.4}
 body .home-focus #player-document-preferences .identity-section-heading>.identity-info-button{width:28px;min-width:28px}
 body .home-focus #player-document-preferences .identity-habitual-count{padding:4px 5px;font-size:11px}
 .home-habitual-overview{padding:16px}
 .home-habitual-purpose strong{font-size:18px}
 .home-availability-action{font-size:16px}
 .home-player-data>summary{padding:16px 18px}
 .home-player-data-sections{padding:12px;gap:12px}
 body .home-focus .home-player-data .identity-section-heading{padding:10px 12px;grid-template-columns:minmax(0,1fr) 28px 32px}
 body .home-focus .home-player-data .identity-section-heading h2{font-size:16px}
 body .home-focus .home-player-data .identity-card-body{padding:12px}
 .home-level-reminder{padding:14px 16px}.home-level-reminder button{flex:1 1 180px}
}
@media(prefers-reduced-motion:reduce){body .home-focus #player-document-preferences{animation:none}}
.home-habitual-snapshot{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:16px}
.home-habitual-snapshot:empty{display:none}
.home-habitual-snapshot>.home-habitual-tile{display:grid;gap:5px;background:#fff;border:1px solid #87b8d0;border-radius:14px;padding:12px 15px;min-width:0}
.home-habitual-snapshot strong{font-size:14px}.home-habitual-snapshot span{font-size:15px;font-weight:650;line-height:1.5}.home-habitual-snapshot small{font-size:13px;line-height:1.5;color:#375c74;overflow-wrap:anywhere}
body .home-focus .home-player-data>summary:after{display:none}
body .home-focus .home-player-data>summary:focus-visible,.home-focus button:focus-visible{outline:3px solid #08799e;outline-offset:3px}
@media(max-width:600px){.home-habitual-snapshot{grid-template-columns:minmax(0,1fr)}}

/* v536 — original dark headers, level always visible in the player data bar. */
body .home-focus #player-document-preferences .identity-section-heading,
body .home-focus .home-player-data>summary,
body .home-focus .home-player-data .identity-section-heading{background:linear-gradient(135deg,#26303f,#191b22);color:#fff}
body .home-focus #player-document-preferences{background:#b8dced;border-color:#47677f}
body .home-focus .home-player-data>summary{display:grid;grid-template-columns:minmax(0,1fr) auto 24px;gap:14px}
body .home-focus .home-player-data>summary small{color:#e0e9f1}
body .home-focus .home-player-data>summary .home-level-hint{font-size:12px;color:#c7d9e8;font-weight:500}
.home-level-badge{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:6px 11px;border:1px solid #ffffff99;border-radius:11px;background:var(--home-level-color,#bdcedb);color:#202835;font-size:20px;font-weight:850;line-height:1.3;white-space:nowrap;font-variant-numeric:tabular-nums}
.home-level-legend{margin-top:16px;padding:12px;background:#fff;border:1px solid #8bb3ca;border-radius:12px}
@media(max-width:600px){body .home-focus .home-player-data>summary{gap:9px;padding:14px}body .home-focus .home-player-data>summary>span:first-child{font-size:16px}.home-level-badge{font-size:18px;padding:6px 9px}body .home-focus .home-player-data>summary .home-level-hint{font-size:12px;line-height:1.5}}

/* v538: each saved window opens its own editor; separate creation routes. */
.home-habitual-tile{width:100%;text-align:left;color:#153e56;white-space:normal;cursor:pointer;box-shadow:none;line-height:1.5}
.home-habitual-tile:hover{border-color:#326b8c;background:#f5fbff}
.home-habitual-tile .home-habitual-edit-hint{font-weight:750;color:#075b83;margin-top:3px}
.home-availability-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.home-availability-actions .home-availability-action{height:100%;font-size:16px}
.home-availability-actions .home-availability-action:disabled{opacity:.55;cursor:default}
.home-center-availability-action{background:#263c53;border-color:#263c53}
.home-center-availability-action small{display:block;font-weight:500;font-size:12px;line-height:1.5;margin-top:6px}
@media(max-width:600px){.home-availability-actions{grid-template-columns:minmax(0,1fr)}}
/* v539: separate activity and location rows instead of a continuous sentence. */
body .home-focus #player-document-preferences .identity-section-heading{grid-template-columns:minmax(0,1fr) 32px auto}
.home-habitual-tile>strong{font-size:19px;line-height:1.4;color:#153e56}
.home-habitual-tile .home-availability-tile-status{font-size:12px;font-weight:650;color:#3e6176}
.home-habitual-tile .home-availability-detail-block{display:grid;gap:7px;margin-top:8px;padding-top:12px;border-top:1px solid #c8dce8;font-size:15px;font-weight:500}
.home-availability-detail-block>b{font-size:14px;color:#244d68}
.home-habitual-tile .home-availability-detail{display:grid;grid-template-columns:84px minmax(0,1fr);gap:10px;min-width:0;font-size:15px;line-height:1.5}
.home-availability-detail>em{font-size:12px;font-weight:600;font-style:normal;color:#506b7d;align-self:center}
.home-availability-detail>span{font-size:15px;font-weight:750;color:#153e56;overflow-wrap:anywhere;line-height:1.5}
.home-availability-name-field{grid-column:1/-1;padding:14px;border:1px solid #80a9bf;border-radius:12px;background:#c7e5f5}
.home-availability-name-field input{display:block;width:100%;margin-top:8px}
.home-availability-name-field small{display:block;font-weight:400;margin-top:6px}
@media(max-width:600px){body .home-focus #player-document-preferences .identity-section-heading{grid-template-columns:minmax(0,1fr) 28px 72px}.home-habitual-tile>strong{font-size:18px}.home-habitual-tile .home-availability-detail{grid-template-columns:80px minmax(0,1fr);gap:8px}}
/* v540 — compact raised buttons; one aligned help column and shared dividers. */
body .home-focus .home-habitual-snapshot{gap:14px}
body .home-focus .home-habitual-snapshot>.home-habitual-tile{display:grid;gap:10px;padding:15px 17px;border:1px solid #7298b2;border-radius:18px;background:linear-gradient(145deg,#ffffff 0%,#f0f8fd 48%,#d2e6f4 100%);color:#153b54;box-shadow:inset 0 1px 1px #fff,inset 0 -2px 3px #90b6ce45,0 4px 0 #86a9c1,0 8px 16px #183f5722;transition:transform .15s,box-shadow .15s;text-align:left;font-family:inherit;line-height:1.4}
body .home-focus .home-habitual-tile:hover{transform:translateY(-2px);background:linear-gradient(145deg,#fff,#e0f1fc);border-color:#3d7598;box-shadow:inset 0 1px 1px #fff,0 5px 0 #719ab6,0 10px 20px #183f5730}
body .home-focus .home-habitual-tile:active{transform:translateY(3px);box-shadow:inset 0 2px 4px #668ca333,0 1px 0 #86a9c1,0 3px 8px #183f5722}
body .home-focus .home-tile-heading{display:grid;grid-template-columns:minmax(0,1fr) auto 16px;gap:9px;align-items:center;line-height:1.3}
body .home-focus .home-tile-heading>strong{font-size:20px;font-weight:800;letter-spacing:-.3px;line-height:1.3;overflow-wrap:anywhere}
body .home-focus .home-tile-state{padding:4px 8px;font-size:11px;font-weight:750;border-radius:20px;background:#d7eee3;color:#225e43;white-space:nowrap}
body .home-focus .home-tile-state.is-inactive{background:#eee4dd;color:#7f5038}
.home-tile-chevron{width:16px;height:20px;stroke:#477491;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
body .home-focus .home-tile-schedule{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;padding-top:10px;border-top:1px solid #aec9da;font-size:15px;line-height:1.4}
.home-tile-schedule>b{grid-column:1/-1;font-size:12px;color:#516d80;font-weight:650}
body .home-focus .home-tile-schedule>span{font-size:15px;font-weight:750;color:#204c68}
body .home-focus .home-tile-schedule>strong{font-size:16px;font-weight:800;color:#133c57}
body .home-focus .home-tile-tournaments{display:flex;gap:6px 10px;align-items:baseline;flex-wrap:wrap;font-size:14px;font-weight:650;line-height:1.45}
.home-tile-tournaments>b{font-size:12px;font-weight:650;color:#516d80}
body .home-focus .home-tile-tournaments>span{font-size:14px;font-weight:750}
body .home-focus .home-tile-tournaments>small{font-size:12px;color:#526f83}
body .home-focus .home-tile-zone{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;border-top:1px solid #b3ccdc;padding-top:9px;line-height:1.4}
.home-tile-zone>b{grid-column:1/-1;font-size:12px;font-weight:650;color:#516d80}
body .home-focus .home-tile-zone>strong{font-size:15px;font-weight:750;overflow-wrap:anywhere}
body .home-focus .home-tile-zone>small{font-size:13px;font-weight:800;align-self:center;color:#285b7c}
body .home-focus :is(#player-document-preferences .identity-section-heading,.home-player-data>summary){grid-template-columns:minmax(0,min(var(--identity-card-title-width,270px),calc(100% - 205px))) 32px minmax(0,1fr);gap:10px;padding:12px 18px;min-height:74px}
body .home-focus :is(#player-document-preferences .identity-section-heading,.home-player-data>summary)>.identity-info-button{position:relative;grid-column:2;grid-row:1;width:32px;min-width:32px;padding:4px;overflow:visible}
body .home-focus :is(#player-document-preferences .identity-section-heading,.home-player-data>summary)>.identity-info-button::after{content:"";display:block;position:absolute;right:-6px;top:50%;width:1px;height:25px;transform:translateY(-50%);background:#ffffff80;pointer-events:none}
body .home-focus #player-document-preferences .identity-habitual-status{grid-column:3;justify-self:end;display:flex;gap:7px;margin-left:10px}
body .home-focus .home-player-data>summary{padding-block:12px;text-align:left}
.home-data-caption{grid-column:1;grid-row:1;font-size:18px;font-weight:800;letter-spacing:.1px;line-height:1.4}
body .home-focus .home-data-caption small{font-size:12px;font-weight:500;color:#c9d7e4;margin-top:3px}
.home-data-disclosure-target{display:flex;align-items:center;justify-content:flex-end;gap:18px;grid-column:3;grid-row:1;align-self:stretch;min-height:50px;padding-left:14px;cursor:pointer;border-radius:10px}
.home-data-disclosure-target:hover{background:#ffffff08}
.home-data-arrow{display:block;flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
body .home-focus .home-player-data[open]>summary .home-data-arrow{transform:rotate(180deg)}
body .home-focus .home-player-data .identity-section-heading{grid-template-columns:minmax(0,min(var(--identity-card-title-width,270px),calc(100% - 115px))) 32px minmax(0,1fr)}
body .home-focus .home-player-data .identity-section-heading>.identity-info-button::after{content:"";display:block;position:absolute;right:-6px;top:50%;width:1px;height:25px;transform:translateY(-50%);background:#ffffff80}
body .home-focus .home-player-data .identity-section-heading>.identity-card-toggle{grid-column:3;justify-content:flex-end;width:100%;min-width:0}
body .home-focus .home-availability-action{border-radius:15px;background:linear-gradient(145deg,#1a7299,#084e73);border:1px solid #0c4d70;box-shadow:inset 0 1px 1px #ffffff45,0 3px 0 #063c5a,0 6px 12px #143f5320;font-weight:750;transition:transform .15s}
body .home-focus .home-center-availability-action{background:linear-gradient(145deg,#3a536f,#22344b);border-color:#22344b;box-shadow:inset 0 1px 1px #ffffff35,0 3px 0 #15263b,0 6px 12px #143f5320}
body .home-focus .home-availability-action:active{transform:translateY(2px)}
@media(max-width:600px){
 body .home-focus .home-habitual-snapshot>.home-habitual-tile{padding:14px 15px;gap:9px}
 body .home-focus .home-tile-heading>strong{font-size:19px}
 body .home-focus :is(#player-document-preferences .identity-section-heading,.home-player-data>summary){grid-template-columns:minmax(0,1fr) 26px 112px;gap:6px;padding:12px;min-height:76px}
 body .home-focus #player-document-preferences .identity-section-heading h2{font-size:16px;line-height:1.4}
 body .home-focus :is(#player-document-preferences .identity-section-heading,.home-player-data>summary)>.identity-info-button{width:26px;min-width:26px}
 body .home-focus #player-document-preferences .identity-habitual-status{display:grid;gap:4px;margin-left:10px;justify-self:center}
 .home-data-caption{font-size:15px;line-height:1.4}
 body .home-focus .home-data-caption small{font-size:11px}
 .home-data-disclosure-target{gap:8px;padding-left:8px}
 body .home-focus .home-level-badge{font-size:17px;padding:6px 8px;min-height:36px}
 .home-data-arrow{width:17px;height:17px}
}
@media(prefers-reduced-motion:reduce){body .home-focus .home-habitual-tile,.home-data-arrow{transition:none}}

/* v541: each availability entry owns a dedicated editor page. */
.player-identity-editor .availability-scope-hidden{display:none!important}
.player-identity-editor[data-availability-scope="centers"] .habitual-edit-toolbar{margin-bottom:16px}
