.habitual-active-counter{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;margin-left:auto;padding:5px 9px;border-radius:999px;background:#FFD300;color:#203044!important;font-size:12px;font-weight:800;white-space:nowrap;line-height:1.4}
.player-preferences-package>summary>.ctm-panel-lock-action{margin-left:0}
.habitual-step{margin:12px 0;border:1px solid #cbd9e3;border-radius:10px;min-width:0;background:#fff}
.habitual-step>h3{margin:0!important;font-size:16px!important}
.habitual-step-heading{display:flex;align-items:center;gap:9px;width:100%;min-height:48px;padding:10px;background:#f3f7fa;color:#203f53;font-size:15px;font-weight:750;text-align:left;border-radius:9px}
.habitual-step-number{display:flex;align-items:center;justify-content:center;width:25px;height:25px;flex:0 0 25px;border-radius:50%;background:#e0e8ee;font-size:13px}
.habitual-step-heading[aria-expanded=true] .habitual-step-number{background:#FFD300}
.habitual-step-body{padding:12px;min-width:0}
.habitual-step-body>.search-origin-fields{margin:0!important}
.habitual-step-next{display:block;width:100%;min-height:46px;margin-top:16px}
.habitual-step-error{margin:12px 0;padding:12px;background:#fff0ee;color:#922c25;border:1px solid #d99891;border-radius:8px;line-height:1.5}
.habitual-step [hidden]{display:none!important}
.wizard-edit-actions{display:flex;justify-content:flex-end;margin:0 0 16px;gap:10px}
.wizard-edit-actions>button{min-height:44px;white-space:normal;font-size:14px}
@media(max-width:520px){.habitual-step-body{padding:10px}.habitual-active-counter{padding:5px 7px;font-size:11px}.wizard-edit-actions>button{width:100%}}

body .ctm-editable-subcard .ctm-subcard-save-footer{flex-wrap:wrap}
body .ctm-editable-subcard .ctm-preferences-cancel{min-height:46px;border-radius:999px;padding:10px 18px;font-size:14px}
/* Each window has a full-width title, then separate center/active controls. */
body .player-settings-packages .habitual-availability{padding:16px;margin-top:16px;border:1px solid #bdcedb;border-radius:14px;background:#fff;min-width:0}
body .player-settings-packages .habitual-availability>summary.info-title{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:start;gap:12px;margin:0;padding:0;list-style:none}
body .player-settings-packages .habitual-availability>summary .availability-summary-copy{grid-column:1;grid-row:1;min-width:0;display:grid;gap:7px}
body .player-settings-packages .habitual-availability .availability-number{font-size:17px;font-weight:800;color:#203f53}
body .player-settings-packages .habitual-availability .availability-summary-copy strong{font-size:14px;font-weight:550;line-height:1.6;white-space:pre-line;word-break:normal;overflow-wrap:break-word}
body .player-settings-packages .habitual-availability [data-availability-saved]{font-size:12px;line-height:1.5;color:#526b7c}
.habitual-card-toggle{grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid #bdcedb;border-radius:11px;background:#edf4f9;color:#254963}
.habitual-availability[open] .habitual-card-toggle{background:#fff6c2;border-color:#b49d26}
.habitual-availability[open] .habitual-card-toggle svg{transform:rotate(180deg)}
body .player-settings-packages .habitual-availability>summary .habitual-header-actions{grid-column:1 / -1;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;width:100%;min-width:0;padding-top:12px;border-top:1px solid #d6e1e8}
body .player-settings-packages .habitual-availability>summary .habitual-header-actions .confirmation-check{grid-column:auto;grid-row:auto;display:flex;align-items:center;justify-content:flex-start;gap:10px;margin:0;padding:10px 12px;min-height:48px;border:1px solid #c5d5e1;border-radius:10px;background:#f4f8fb;font-size:14px;line-height:1.5;text-align:left;white-space:normal;min-width:0;cursor:pointer}
body .player-settings-packages .habitual-header-actions .confirmation-check:has(input:checked){border-color:#6296b7;background:#e6f2fb}
body .player-settings-packages .habitual-header-actions input{position:static;opacity:1;margin:0;width:20px;height:20px;min-height:20px;min-width:20px;flex:0 0 20px;accent-color:#225c8a}
body .player-settings-packages .habitual-availability.availability-off{background:#f6f8fa}
.habitual-center-settings{display:grid;gap:16px;margin-top:16px;padding:16px;border:1px solid #b8ccdc;border-radius:12px;background:#f1f7fb;color:#203f53;min-width:0}
.habitual-center-settings .field{min-width:0;font-size:15px}
.habitual-center-settings select{width:100%;min-width:0;min-height:46px;font-size:15px;background:#fff;color:#203f53}
.habitual-center-directory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.habitual-center-favorite{margin:0;font-size:15px;line-height:1.6;overflow-wrap:break-word}
body .player-settings-packages .habitual-center-channel{display:flex;align-items:flex-start;gap:12px;min-height:48px;padding:14px 0 0;margin:0;border-top:1px solid #bdcedb;font-size:15px;line-height:1.5;font-weight:750;white-space:normal}
.habitual-center-channel input{width:20px;height:20px;flex:0 0 20px;margin:2px 0 0;accent-color:#225c8a}
.habitual-center-channel-note{margin:0!important;font-size:14px!important;line-height:1.6;color:#385367}
.habitual-channel-summary{display:grid;gap:5px;padding:14px;border:1px solid #b8ccdc;border-radius:10px;background:#e6f2fb;color:#203f53;font-size:15px;line-height:1.5}
.identity-center-channel{display:block;margin-top:5px;font-weight:700;color:#245879}
@media(max-width:600px){
 body .player-settings-packages .habitual-availability{padding:13px}
 body .player-settings-packages .habitual-availability>summary .habitual-header-actions{grid-template-columns:minmax(0,1fr);gap:8px}
 .habitual-center-directory{grid-template-columns:minmax(0,1fr)}
 .habitual-center-settings{padding:13px}
}
.habitual-center-required{margin:0!important;padding:12px;border:1px solid #d7a16a;border-radius:9px;background:#fff4df;color:#74451e;font-size:14px!important;line-height:1.6;font-weight:650}
.habitual-header-actions label:has([data-availability-enabled]:disabled){background:#f1f3f5!important;border-color:#cbd4dc!important;color:#526b7c;cursor:default!important}
.habitual-location-settings{display:grid;gap:12px;margin-top:16px;min-width:0}
.habitual-location-settings .habitual-center-settings{margin-top:0}
body .player-settings-packages .habitual-availability>summary .habitual-header-actions{grid-template-columns:1fr;justify-items:end}
.center-following-section{margin-top:22px}
.center-follow-card{padding:14px;border:1px solid #bdcedb;border-radius:13px;margin:14px 0;background:#fff;min-width:0}
.center-follow-card>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px;cursor:pointer;list-style:none}
.center-follow-card>summary>span{display:grid;gap:5px;min-width:0;overflow-wrap:break-word}
.center-follow-card>summary strong{font-size:16px;color:#203f53}
.center-follow-card>summary small{font-size:13px;color:#526b7c}
.center-follow-card>summary .confirmation-check{display:flex;gap:10px;align-items:center;margin:0;min-height:44px;white-space:normal;font-size:14px}
.center-follow-card input[type=checkbox]{width:20px;height:20px;flex:none;margin:0;accent-color:#225c8a}
.center-follow-body{display:grid;gap:16px;padding-top:16px;border-top:1px solid #d6e1e8;margin-top:14px}
.center-follow-body>p{margin:0;font-size:14px;line-height:1.6;color:#385367}
.center-follow-fixed{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:12px;background:#e6f2fb;border-radius:10px}
.center-follow-fixed>label{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:700;line-height:1.5}
.identity-center-following{margin-top:22px;padding-top:18px;border-top:2px solid #bdcedb}
.identity-center-following h3{font-size:17px;line-height:1.5;margin:0 0 8px;color:#203f53}
.center-follow-archive{margin-top:16px;font-size:14px;line-height:1.6}
@media(max-width:600px){.center-follow-fixed{grid-template-columns:1fr}.center-follow-card>summary{grid-template-columns:minmax(0,1fr)}.center-follow-card>summary .confirmation-check{justify-self:start}}
/* Direct editing: the location choice lives inside Centro del raggio. */
.habitual-radius-controls{border:0;padding:0;margin:14px 0 0;min-width:0}
.habitual-step-body .habitual-location-settings{margin-top:0}
body #standardPreferencesForm .habitual-edit-toolbar{position:sticky;top:calc(var(--interaction-bar-offset,100px) + 72px);z-index:12;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;margin:0 0 18px;background:#fff;border:1px solid #bdcedb;border-radius:12px;box-shadow:0 4px 14px #203f5317}
body #standardPreferencesForm .habitual-edit-toolbar>button{min-height:44px;white-space:normal;font-size:14px}
@media(max-width:600px){body #standardPreferencesForm .habitual-edit-toolbar{padding:8px;gap:8px}body #standardPreferencesForm .habitual-edit-toolbar>button{flex:1;min-width:0}}
.availability-purpose{padding:16px;margin:0 0 18px;border:1px solid #bdcedb;border-left:4px solid #225c8a;border-radius:12px;background:#f1f7fb;color:#203f53}
.availability-purpose>strong{display:block;font-size:16px;line-height:1.5}
.availability-purpose p{font-size:14px!important;line-height:1.65;margin:10px 0 0;color:#385367}
/* Secondary Home entry: active numbers only; venue details stay in the editor. */
.identity-center-following{margin-top:14px;padding-top:12px;border-top:1px solid #d6e1e8}
.identity-other-summary{margin:12px 0 0;color:#526b7c;font-size:13px;line-height:1.5}
