/* A single light editor surface. All overrides stay within recurring availability editing. */
body .player-identity-editor[data-identity-editing="preferences"] .identity-editor-heading{margin-bottom:16px}
body .player-identity-editor[data-identity-editing="preferences"] .identity-editor-heading>button{display:none}
body .player-identity-editor[data-identity-editing="preferences"] .player-preferences-package{border:0;box-shadow:none;background:transparent;overflow:visible}
body .player-identity-editor[data-identity-editing="preferences"] .player-preferences-package>summary{display:none}
body #standardPreferencesForm{--ctm-form-title:19px;--ctm-form-section:16px;--ctm-form-label:14px;--ctm-form-help:13px}
body .player-identity-editor #standardPreferencesForm{padding:0}
body #standardPreferencesForm>.panel{padding:18px;border:1px solid #d9e3e9;border-radius:16px;box-shadow:none;background:#fff;margin-bottom:16px;min-width:0}
body #standardPreferencesForm>.panel:first-of-type>h2{display:none}
body #standardPreferencesForm .availability-purpose{padding:0;border:0;background:transparent;margin:0 0 12px;border-radius:0}
body #standardPreferencesForm .availability-purpose>strong{font-size:16px}
body #standardPreferencesForm .availability-purpose p{margin-top:6px;line-height:1.55;color:#526b7c}
body #standardPreferencesForm>.panel>p{font-size:13px;line-height:1.55;color:#526b7c}
body #standardPreferencesForm .habitual-edit-toolbar{position:sticky;top:calc(var(--interaction-bar-offset,100px) + 8px);display:grid;grid-template-columns:1fr 1fr;padding:8px;margin-bottom:14px;border:1px solid #d9e3e9;border-radius:13px;box-shadow:0 3px 12px #203f530d}
body #standardPreferencesForm .habitual-edit-toolbar>button{width:100%;min-height:44px;padding:9px 12px;font-size:13px;border-radius:9px}
body #standardPreferencesForm #habitualAvailabilityList{display:grid;gap:12px;margin-top:16px}
body #standardPreferencesForm .habitual-availability{margin:0;padding:14px;border:1px solid #cddce5;border-radius:13px;background:#fff;box-shadow:none;min-width:0}
body #standardPreferencesForm .habitual-availability[open]{border-color:#9bb8cb}
body #standardPreferencesForm .habitual-availability.availability-off{background:#f8fafb}
body #standardPreferencesForm .habitual-availability>summary.info-title{display:grid;grid-template-columns:minmax(0,1fr) auto 28px;align-items:start;gap:8px;margin:0;padding:0}
body #standardPreferencesForm .availability-summary-copy{grid-column:1;grid-row:1;gap:4px}
body #standardPreferencesForm .availability-number{font-size:15px;line-height:1.4}
body #standardPreferencesForm .availability-summary-copy strong{font-size:13px;font-weight:500;line-height:1.5}
body #standardPreferencesForm [data-availability-saved]{font-size:11px;line-height:1.4;color:#718594}
body #standardPreferencesForm .habitual-card-toggle{grid-column:3;grid-row:1;width:28px;height:30px;border:0;border-radius:7px;background:transparent;color:#526b7c}
body #standardPreferencesForm .habitual-card-toggle svg{width:19px;height:19px}
body #standardPreferencesForm .habitual-header-actions{grid-column:2;grid-row:1;display:flex;align-items:center;gap:6px;width:auto;padding:0;border:0}
body #standardPreferencesForm .habitual-header-actions .confirmation-check{display:flex;align-items:center;gap:6px;min-height:32px;padding:5px 8px;border:0;border-radius:8px;background:#f0f5f8;font-size:12px;line-height:1.4;white-space:nowrap}
body #standardPreferencesForm .habitual-header-actions input[type=checkbox]{width:17px;height:17px;min-height:17px;min-width:17px;flex-basis:17px}
body #standardPreferencesForm .habitual-header-actions .confirmation-check:has([data-availability-enabled]:checked){background:#edf7f0!important;color:#276341;border-color:transparent!important}
body #standardPreferencesForm .habitual-header-actions .confirmation-check:has([data-availability-enabled]:disabled){cursor:default}
body #standardPreferencesForm .habitual-header-actions [data-availability-enabled]:disabled{display:none}
body #standardPreferencesForm .habitual-step{margin:0;border:0;border-top:1px solid #e1e9ee;border-radius:0;background:transparent}
body #standardPreferencesForm .habitual-step:first-of-type{margin-top:14px}
body #standardPreferencesForm .habitual-step>h3{margin:0!important;font-size:15px!important}
body #standardPreferencesForm .habitual-step-heading{display:flex;gap:8px;min-height:48px;padding:12px 0;background:transparent;border-radius:0;font-size:14px;line-height:1.5;color:#254963;box-shadow:none}
body #standardPreferencesForm .habitual-step-heading::after{content:'+';margin-left:auto;flex:none;font-size:19px;font-weight:400;color:#718594}
body #standardPreferencesForm .habitual-step-heading[aria-expanded=true]::after{content:'−'}
body #standardPreferencesForm .habitual-step-number{width:23px;height:23px;flex-basis:23px;background:#edf2f5;font-size:11px;border-radius:7px}
body #standardPreferencesForm .habitual-step-heading[aria-expanded=true] .habitual-step-number{background:#fff3b2;color:#675600}
body #standardPreferencesForm .habitual-step-body{padding:0 0 14px;min-width:0}
body #standardPreferencesForm .habitual-step-body .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
body #standardPreferencesForm .habitual-step-body .form-grid>*{grid-column:auto!important;min-width:0}
body #standardPreferencesForm .habitual-step-body .match-start-note{padding:0;border:0;background:transparent;margin:0 0 12px;font-size:12px;line-height:1.5}
body #standardPreferencesForm .habitual-center-settings{padding:0;border:0;border-radius:0;background:transparent;gap:12px}
body #standardPreferencesForm .habitual-location-settings{gap:12px}
body #standardPreferencesForm .habitual-step-body .search-origin-fields{box-shadow:none;border:0;padding:0;background:transparent}
body #standardPreferencesForm .availability-status{padding:10px 0 0;margin:0;border-top:1px solid #e1e9ee;font-size:12px;line-height:1.5;color:#526b7c}
body #standardPreferencesForm .habitual-availability>.subtle{display:none}
body #standardPreferencesForm [data-add-habitual],body #standardPreferencesForm [data-add-center-follow]{min-height:44px;border:1px dashed #aebfcc;border-radius:10px;background:#f8fafb;color:#385367;font-size:13px;padding:10px}
body #standardPreferencesForm .center-following-section{margin-top:0}
body #standardPreferencesForm .center-following-section>h2{font-size:18px!important}
body #standardPreferencesForm .center-follow-card{border-color:#d9e3e9;padding:12px;border-radius:11px;margin:12px 0;background:#fafcfd}
body #standardPreferencesForm .center-follow-body{gap:12px}
body #standardPreferencesForm .center-follow-fixed{padding:10px;background:#f0f5f8}
body #standardPreferencesForm .center-follow-body>p{font-size:12px}
@media(max-width:520px){
 body #standardPreferencesForm>.panel{padding:13px;border-radius:13px}
 body #standardPreferencesForm .habitual-availability{padding:12px}
 body #standardPreferencesForm .habitual-availability>summary.info-title{grid-template-columns:minmax(0,1fr) 26px;gap:6px 8px}
 body #standardPreferencesForm .habitual-card-toggle{grid-column:2;grid-row:1}
 body #standardPreferencesForm .habitual-header-actions{grid-column:1 / -1;grid-row:2;justify-self:start}
 body #standardPreferencesForm .habitual-header-actions .confirmation-check{min-height:30px;padding:4px 8px}
 body #standardPreferencesForm .habitual-header-actions .confirmation-check:has(input:not(:disabled)){min-height:40px}
 body #standardPreferencesForm .habitual-center-directory{grid-template-columns:minmax(0,1fr)}
}

body #standardPreferencesForm .habitual-delete{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;padding:0;border:1px solid #e6d8d5;border-radius:8px;background:#fff;color:#9c5549}
body #standardPreferencesForm .habitual-delete:hover{background:#fff2ef;border-color:#c88679}
body #standardPreferencesForm .habitual-delete:focus-visible{outline:2px solid #225c8a;outline-offset:2px}
body #standardPreferencesForm .habitual-default-notice{padding:10px 12px;border-left:3px solid #d7b546;background:#fff9e6;border-radius:0 8px 8px 0;font-size:13px;line-height:1.6}


/* Shared location and time controls, inside the targeted wizard's existing navigation. */
body #searchForm .targeted-previous-location{display:grid;gap:4px;padding:10px 12px;margin:0 0 12px;background:#f0f5f8;border-radius:9px;font-size:13px;line-height:1.5}
body #searchForm .targeted-previous-location>span{color:#607687;font-size:12px}
body #searchForm .targeted-previous-location>strong{font-size:14px;color:#254963;overflow-wrap:anywhere}
body #searchForm .targeted-keep-location{display:flex;align-items:flex-start;gap:8px;min-height:44px;font-size:14px;line-height:1.5;margin:0}
body #searchForm .targeted-keep-location>input{width:18px;height:18px;min-width:18px;flex:none;margin:2px 0 0;accent-color:#225c8a}
body #searchForm :is(.targeted-new-location-controls,.targeted-area-controls){border:0;padding:0;margin:14px 0 0;min-width:0;background:transparent}
body #searchForm .targeted-new-location-controls>legend{font-size:14px;font-weight:700;padding:0;margin:0 0 10px}
body #searchForm .habitual-location-settings{margin-top:0;gap:12px}
body #searchForm .habitual-center-settings{border:0;padding:0;margin:12px 0 0;background:transparent;gap:12px}
body #searchForm .habitual-center-required{font-size:13px!important;padding:10px;line-height:1.5}
body #searchForm .search-origin-fields{box-shadow:none;background:transparent;border:0;padding:0}
body #searchForm .field{font-size:14px!important}
body #searchForm #searchTimeRange{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
body #searchForm #searchTimeRange>.field{min-width:0;grid-column:auto!important}
body #searchForm #searchTimeRange :is(input,.ctm-time-control){min-width:0;max-width:100%;width:100%}
body #searchForm [data-targeted-radius-controls]>p{font-size:13px;line-height:1.55;color:#526b7c}
@media(max-width:600px){body #searchForm .habitual-center-directory{grid-template-columns:minmax(0,1fr)}}
/* Recurring windows now follow the same step-by-step presentation as targeted searches. */
body #standardPreferencesForm .habitual-edit-toolbar{display:flex;justify-content:space-between;align-items:center}
body #standardPreferencesForm .habitual-edit-toolbar>span{font-size:13px;line-height:1.4;color:#526b7c;min-width:0}
body #standardPreferencesForm .habitual-edit-toolbar>button{width:auto;flex:0 1 auto;max-width:65%;margin:0}
body #standardPreferencesForm .habitual-step{margin:12px 0 0;padding:0;border:1px solid #cbd9e3;border-radius:12px;background:#f6f9fb;scroll-margin-top:calc(var(--interaction-bar-offset,100px) + 76px)}
body #standardPreferencesForm .habitual-step-heading{min-height:56px;padding:12px;border-radius:11px;gap:10px}
body :is(#standardPreferencesForm,#searchForm) :is(.habitual-step-heading,.search-step-heading){font-size:16px;font-weight:750;line-height:1.45}
body #standardPreferencesForm .habitual-step-title{flex:1;min-width:0;overflow-wrap:break-word}
body #standardPreferencesForm .habitual-step-number{width:28px;height:28px;flex-basis:28px;border-radius:50%;font-size:14px;background:#e0e8ee}
body #standardPreferencesForm .habitual-step-heading[aria-expanded=true] .habitual-step-number{background:#FFD300;color:#25313b}
body #standardPreferencesForm .habitual-step-body{padding:4px 12px 16px}
body #standardPreferencesForm :is(.habitual-step-next,.habitual-step-save){display:block;width:100%;min-height:48px;margin:18px 0 0;padding:11px 14px;border-radius:9px;font-size:15px}
body #standardPreferencesForm .habitual-area-controls{padding:0;margin:12px 0 0;border:0;min-width:0}
body #standardPreferencesForm .habitual-radius-controls{padding:0;margin:0;border:0;min-width:0}
body #standardPreferencesForm .habitual-radius-controls>legend{font-size:14px;font-weight:650;padding:0 0 8px}
body #standardPreferencesForm .habitual-radius-controls>p,body #standardPreferencesForm [data-habitual-center-extent]{font-size:13px;line-height:1.55;color:#526b7c;margin:10px 0 0}

/* Keep the recurring epicentre title and its controls on the same left edge. */
body #standardPreferencesForm .habitual-step-heading{justify-content:flex-start;text-align:left;box-sizing:border-box;margin-inline:0}
body #standardPreferencesForm .habitual-step-body .search-origin-fields{display:block;width:100%;min-width:0;margin:12px 0 0!important;box-sizing:border-box;text-align:left}
body #standardPreferencesForm .habitual-step-body .search-origin-fields>legend{float:none;display:block;width:100%;max-width:100%;box-sizing:border-box;margin:0 0 12px;padding:0;background:transparent;text-align:left;white-space:normal;overflow-wrap:break-word}
body #standardPreferencesForm .search-origin-question{margin:0 0 12px;text-align:left}
body #standardPreferencesForm .habitual-area-controls{width:100%;box-sizing:border-box}
/* Each availability is an independent subsection, including while collapsed. */
body #standardPreferencesForm .habitual-availability>summary.info-title{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;cursor:default}
body #standardPreferencesForm .habitual-availability>summary .availability-summary-copy{display:contents}
body #standardPreferencesForm .habitual-card-titlebar{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;border-radius:10px;background:#203044;color:#fff;min-width:0}
body #standardPreferencesForm .habitual-card-titlebar .availability-number{font-size:16px;color:#fff;line-height:1.4}
body #standardPreferencesForm .habitual-availability>summary [data-availability-recap]{grid-column:1;grid-row:2;font-size:13px;line-height:1.5;padding:0 3px}
body #standardPreferencesForm .habitual-availability>summary [data-availability-saved]{grid-column:1;grid-row:3;padding:0 3px}
body #standardPreferencesForm .habitual-availability>summary .habitual-header-actions{grid-column:1;grid-row:4;display:flex;justify-content:space-between;justify-self:stretch;align-items:center;gap:10px;padding:0;border:0;width:100%}
body #standardPreferencesForm .habitual-card-lock{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:4px;flex:0 0 52px;width:52px;min-width:52px;min-height:46px;padding:7px;border:1px solid #71839a;border-radius:10px;background:#ffffff12;color:#fff;box-shadow:none;cursor:pointer}
body #standardPreferencesForm .habitual-card-lock .ctm-panel-lock{width:25px;height:28px;flex:none}
body #standardPreferencesForm .habitual-lock-pencil{width:13px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
body #standardPreferencesForm .habitual-card-lock[aria-expanded=true] .ctm-lock-shackle{transform:rotateY(180deg)}
body #standardPreferencesForm .habitual-card-lock[data-modified=true] .ctm-lock-save{display:block}
body #standardPreferencesForm .habitual-card-lock[data-modified=true] .ctm-lock-keyhole{display:none}
body #standardPreferencesForm .habitual-card-lock[data-modified=true]{border-color:#FFD300;color:#FFD300}
body #standardPreferencesForm .habitual-card-lock-footer{display:flex;margin:14px 0 0 auto;background:#203044;color:#fff;width:60px;min-height:48px}
body #standardPreferencesForm .habitual-card-lock:focus-visible{outline:3px solid #247d9a;outline-offset:3px}

body #standardPreferencesForm .habitual-availability .availability-summary-copy strong::after{content:none}

/* Reuse the Home card's integrated lock-and-pencil icon and raised button finish. */
body #standardPreferencesForm .habitual-card-lock{width:44px;min-width:44px;min-height:44px;height:44px;flex:0 0 44px;padding:8px;gap:0;background:linear-gradient(145deg,#5d6b7b,#2b3747);color:#fff;border:2px solid #ffffffb3;border-radius:12px;box-shadow:inset 0 1px 1px #ffffff80,inset 0 -2px 3px #10192480,0 3px 0 #101722,0 5px 9px #0005;touch-action:manipulation}
body #standardPreferencesForm .habitual-card-lock .habitual-card-edit-icon{width:24px;height:24px;flex:none}
body #standardPreferencesForm .habitual-card-lock:hover,body #standardPreferencesForm .habitual-card-lock:focus-visible{background:linear-gradient(145deg,#718090,#3a495c);border-color:#FFD300;outline:2px solid #FFD300;outline-offset:2px}
body #standardPreferencesForm .habitual-card-lock:active{transform:translateY(2px);box-shadow:inset 0 2px 4px #10192480,inset 0 -1px 1px #ffffff30,0 1px 0 #101722,0 2px 4px #0004}
body #standardPreferencesForm .habitual-card-lock[data-modified=true]{border-color:#FFD300;color:#FFD300}
