/* APP personalisation: form rows and self-contained accessible theme cards. */
#settingsView .sg-settings-detail[data-settings-page=personalization] .sg-settings-section-body{padding:0;border:0;background:transparent}
#settingsView .sg-settings-detail[data-settings-page=personalization] .sg-settings-row{box-sizing:border-box;display:grid;grid-template-columns:170px minmax(0,1fr);gap:16px;align-items:center;padding:16px 20px;margin-bottom:16px;border:1px solid var(--sg-control-border,#dce6ed);border-radius:12px;background:var(--sg-card-bg,#fff);font-size:15px}
#settingsView .sg-settings-detail[data-settings-page=personalization] .sg-settings-row select{width:100%;box-sizing:border-box;min-height:44px;font-size:16px}
#settingsView .sg-settings-detail[data-settings-page=personalization] .sg-settings-row:has(>.sg-theme-control){display:block;padding:20px}
#settingsView .sg-settings-row:has(>.sg-theme-control)>div{margin-bottom:16px;font-size:16px;font-weight:600}
#settingsView .sg-theme-control{box-sizing:border-box;min-width:0;width:100%;border:0;margin:0;padding:0}
#settingsView .sg-theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
#settingsView .sg-theme-option{box-sizing:border-box;display:flex;position:relative;flex-direction:column;min-width:0;gap:12px;padding:16px;border:1px solid var(--sg-control-border,#cad7df);border-radius:12px;cursor:pointer;background:var(--sg-card-bg,#fff);color:var(--sg-text,#17243b);transition:border-color .15s,box-shadow .15s}
#settingsView .sg-theme-option:hover{border-color:var(--sg-accent-text,#087f83)}
#settingsView .sg-theme-option:has(input:checked){border-color:var(--sg-accent-text,#087f83);box-shadow:inset 0 0 0 1px var(--sg-accent-text,#087f83)}
#settingsView .sg-theme-option-head{display:grid;grid-template-columns:minmax(0,1fr) 20px;gap:12px;align-items:start;min-height:24px}
#settingsView .sg-theme-option-heading{font-size:16px;font-weight:600;line-height:1.5;overflow-wrap:break-word}
#settingsView .sg-theme-control .sg-theme-option input[type=radio]{position:static!important;inset:auto!important;display:block!important;appearance:auto!important;width:20px!important;min-width:20px!important;max-width:20px!important;height:20px!important;min-height:20px!important;max-height:20px!important;padding:0!important;margin:2px 0 0!important;transform:none!important;box-shadow:none!important;flex:none!important;accent-color:var(--sg-accent-text,#087f83);cursor:pointer}
#settingsView .sg-theme-name,#settingsView .sg-theme-schedule{display:block;font-size:14px;line-height:1.6;min-height:68px;color:var(--sg-text-muted,#61758b)}
#settingsView .sg-theme-preview,#settingsView .sg-theme-auto-preview{position:relative;box-sizing:border-box;min-height:118px;margin-top:auto;border:1px solid #cbd5e1;border-radius:8px;overflow:hidden;background:#f5f7fa;color:#17243b;padding:10px}
#settingsView .sg-theme-auto-preview{display:grid;grid-template-columns:1fr 1fr;padding:0}
#settingsView .sg-theme-auto-day,#settingsView .sg-theme-auto-night{display:flex;align-items:center;justify-content:center;font-size:34px;line-height:1;background:#f5f7fa;color:#087f83}
#settingsView .sg-theme-auto-night{background:#111b29;color:#d8eeee}
#settingsView .sg-theme-preview[data-preview-theme=midnight]{background:#111b29;color:#e6edf4;border-color:#46586c}
#settingsView .sg-theme-preview-month{text-align:left;font-size:11px;font-weight:600;line-height:16px;margin-bottom:10px}
#settingsView .sg-theme-preview-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));height:68px;margin-left:18px}
#settingsView .sg-theme-preview-day{min-width:0;border-top:1px solid #dce6ed;border-left:1px solid #dce6ed}
#settingsView .sg-theme-preview[data-preview-theme=midnight] .sg-theme-preview-day{border-color:#34485e}
#settingsView .sg-theme-preview-bar{position:absolute;z-index:1;height:13px;line-height:11px;border-radius:3px;color:#162236;font-size:11px;text-align:center}
#settingsView .sg-theme-preview-bar.one{background:#ff9595;left:27%;width:43%;top:52px}
#settingsView .sg-theme-preview-bar.two{background:#7facf0;left:52%;width:34%;top:84px}
#settingsView .sg-theme-feedback{padding:14px 16px;margin-top:18px;border:1px solid var(--sg-control-border,#dce6ed);border-radius:10px;background:var(--sg-card-bg,#f8fafb);overflow-wrap:break-word}
#settingsView .sg-theme-active{font-size:14px;font-weight:600;line-height:1.5;margin:0 0 5px!important;color:var(--sg-text,#17243b)!important}
#settingsView .sg-theme-storage{font-size:14px;line-height:1.6;margin:0!important;color:var(--sg-text-muted,#61758b)}
#settingsView .sg-theme-feedback[data-save-state=failed]{border-color:#f3b4aa;background:#fff4f2}
#settingsView .sg-theme-feedback[data-save-state=failed] .sg-theme-storage{color:#a22b20!important;font-weight:500}
#settingsView .sg-theme-feedback[data-save-state=saved]{border-color:#a9d5c3;background:#f3faf7}
#settingsView .sg-theme-feedback[data-save-state=saved] .sg-theme-storage{color:#24634c!important}
#settingsView .sg-theme-retry{margin-top:12px;min-height:44px}
#settingsView .sg-theme-control [hidden]{display:none!important}
#settingsView .sg-theme-option:has(input:focus-visible){outline:3px solid var(--sg-accent-text,#087f83);outline-offset:3px}
.sg-theme-sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
body:has(#settingsView.active-view .sg-settings-shell[data-settings-active=personalization]) #genieButton{visibility:hidden;pointer-events:none}
@media(max-width:760px){#settingsView .sg-theme-options{grid-template-columns:minmax(0,1fr)}#settingsView .sg-theme-option{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:8px 16px;padding:16px}#settingsView .sg-theme-option-head{grid-column:1;grid-row:1}#settingsView .sg-theme-name,#settingsView .sg-theme-schedule{grid-column:1;grid-row:2;font-size:14px;min-height:0}#settingsView .sg-theme-preview,#settingsView .sg-theme-auto-preview{grid-column:2;grid-row:1/3;min-height:112px;height:100%;margin:0}#settingsView .sg-theme-option-heading{font-size:16px}#settingsView .sg-settings-detail[data-settings-page=personalization] .sg-settings-row{grid-template-columns:1fr;gap:10px;padding:16px}#settingsView .sg-settings-row:has(>.sg-theme-control)>div{margin-bottom:14px}}
@media(max-width:390px){#settingsView .sg-theme-option{grid-template-columns:minmax(0,1fr) 84px;gap:8px 10px;padding:12px}#settingsView .sg-theme-option-head{gap:6px;grid-template-columns:minmax(0,1fr) 18px}#settingsView .sg-theme-control .sg-theme-option input[type=radio]{width:18px!important;min-width:18px!important;max-width:18px!important;height:18px!important;min-height:18px!important;max-height:18px!important}#settingsView .sg-settings-row:has(>.sg-theme-control){padding:14px!important}#settingsView .sg-theme-preview-month{font-size:9px}#settingsView .sg-theme-preview-grid{margin-left:4px}#settingsView .sg-theme-auto-day,#settingsView .sg-theme-auto-night{font-size:25px}}
html[data-sg-theme=midnight] #settingsView .sg-theme-feedback[data-save-state=failed]{background:#402326;border-color:#95565b}
html[data-sg-theme=midnight] #settingsView .sg-theme-feedback[data-save-state=failed] .sg-theme-storage{color:#ffb4ab!important}
html[data-sg-theme=midnight] #settingsView .sg-theme-feedback[data-save-state=saved]{background:#173c33;border-color:#467f6c}
html[data-sg-theme=midnight] #settingsView .sg-theme-feedback[data-save-state=saved] .sg-theme-storage{color:#a8e0ca!important}
html[data-sg-theme=midnight]{
 --sg-theme-surface:#1b293a;--sg-theme-text:#e6edf4;--sg-theme-muted:#b5c4d4;--sg-theme-border:#41546b;
 --sg-primary:#47d4cf;--sg-primary-hover:#69e4df;--sg-action-primary:#47d4cf;--sg-accent-text:#65e5df;
 --sg-menu-bg:#0b1320;--sg-workspace-bg:#111b29;--sg-card-bg:#1b293a;--sg-text:#e6edf4;--sg-text-muted:#b5c4d4;
 --sg-control-border:#41546b;--sg-border-ui:#41546b;--sg-surface-soft:#152334;--sg-info-bg:#193647;--sg-selection-bg:#16434b;--sg-selection-text:#71eee5;
 --sg-success-bg:#163b2e;--sg-success-text:#93e7b7;--sg-progress-bg:#173b4d;--sg-progress-text:#9cd9f5;--sg-warning-bg:#44351b;--sg-warning-text:#ffe1a1;--sg-error-bg:#48262f;--sg-error-text:#ffb8c1;--sg-neutral-bg:#243448;--sg-neutral-text:#c6d4e4;
 --sg-cleaning-completed-bg:#293748;--sg-cleaning-completed-border:#53677e;--sg-cleaning-completed-text:#c5d4e4;
 --sg-clean-done-bg:#163b2e;--sg-clean-done-text:#93e7b7;--sg-clean-supplies-bg:#243448;--sg-clean-supplies-text:#b4d5ff;--sg-clean-issue-bg:#44351b;--sg-clean-issue-text:#ffe1a1;--sg-clean-urgent-bg:#48262f;--sg-clean-urgent-text:#ffb8c1;
 background:#111b29;color:#e6edf4;
}
html[data-sg-theme=midnight] body,html[data-sg-theme=midnight] #app{background:#111b29;color:#e6edf4}
html[data-sg-theme=midnight] :is(.sidebar,.top-header,.mobile-header,#mobileMoreMenu){background:#0b1320!important}
html[data-sg-theme=midnight] :is(.content-area,.view){background:#111b29}
html[data-sg-theme=midnight] :is(#bottomNav,.modal-content,.modal-header,.modal-footer,.sg-settings-section-body,.sg-provider-row,.sg-provider-counts,.sg-member-panel,.profile-card,.profile-edit-modal,.sg-cl-filter-menu){background:#1b293a;color:#e6edf4;border-color:#41546b}
html[data-sg-theme=midnight] :is(input,textarea,select){background:#152334!important;color:#e6edf4!important;border-color:#53677e!important;caret-color:#71eee5}
html[data-sg-theme=midnight] :is(input,textarea)::placeholder{color:#a9b9ca;opacity:1}
html[data-sg-theme=midnight] option{background:#152334;color:#e6edf4}
html[data-sg-theme=midnight] :focus-visible{outline:3px solid #71eee5!important;outline-offset:3px}
html[data-sg-theme=midnight] :is(.sg-settings-group-button,.sidebar-item,.nav-item,.bottom-nav-item){color:#c6d4e4}
html[data-sg-theme=midnight] :is(.sg-settings-group-button[aria-current=page],.sidebar-item.active,.nav-item.active,.bottom-nav-item.active){background:#16434b;color:#71eee5}
html[data-sg-theme=midnight] .sg-settings-group-button:hover{background:#243b4c}
html[data-sg-theme=midnight] :is(.sg-settings-nav,.sg-settings-row,.sg-settings-nav-divider){border-color:#41546b}
html[data-sg-theme=midnight] .sg-settings-detail :is(button,select){background:#1b293a;color:#e6edf4;border-color:#53677e}
html[data-sg-theme=midnight] .sg-theme-option:has(input:checked){border-color:#47d4cf}
html[data-sg-theme=midnight] .sg-theme-option:has(input:checked):after{color:#47d4cf}
html[data-sg-theme=midnight] .sg-theme-preview[data-preview-theme=light]{background:#f5f7fa;color:#17243b}
html[data-sg-theme=midnight] :is(.sg-planner-title,.sg-cleaning-planner-title,.sg-calendar-title,.sg-calendar-country,.sg-detail-title){color:#e6edf4}
/* Only neutral inline surfaces/text, never colored reservation/provider bars. */
html[data-sg-theme=midnight] #app [style*="background: white"],html[data-sg-theme=midnight] #app [style*="background:#fff;"],html[data-sg-theme=midnight] #app [style*="background: #fff;"]{background:#1b293a!important}
html[data-sg-theme=midnight] #app [style*="color: #17243"],html[data-sg-theme=midnight] #app [style*="color:#17243"],html[data-sg-theme=midnight] #app [style*="color: #64748b"],html[data-sg-theme=midnight] #app [style*="color:#64748b"]{color:#b5c4d4!important}
html[data-sg-theme=midnight] :is(.calendar-day-number,.sg-workspace-day-number,.sg-month-day-number){color:#e6edf4}
html[data-sg-theme=midnight] :is(.today,.is-today,[aria-current=date]){outline-color:#47d4cf}
html[data-sg-theme=midnight] :is(#profileName,.profile-info strong){color:#e6edf4!important}
html[data-sg-theme=midnight] #profileRole{color:#9bdde0}
html[data-sg-theme=midnight] #calendarView [data-tous-date]{color:#c6d4e4!important}
html[data-sg-theme=midnight] #calendarView [data-tous-date][style*="font-weight: 800"],html[data-sg-theme=midnight] #calendarView .sg-tous-date.weekend{color:#ff9f96!important}
html[data-sg-theme=midnight] #calendarView [data-tous-date][aria-current=date],html[data-sg-theme=midnight] #calendarView .sg-tous-date.today{background:#16434b!important;color:#91fff0!important}
html[data-sg-theme=midnight] :is(.sg-cleaning-calendar-day.weekend,.sg-cleaning-calendar-day.holiday) .sg-cleaning-day-number{color:#ff9f96}
html[data-sg-theme=midnight] .sg-cleaning-calendar-day.today .sg-cleaning-day-number{background:#47d4cf;color:#0b1320}
html[data-sg-theme=midnight] #plannerDateHeader>div{color:#c6d4e4!important}
html[data-sg-theme=midnight] #plannerDateHeader>div[style*="font-weight: 800"]{color:#ff9f96!important}
html[data-sg-theme=midnight] #app [style*="background: rgb(255, 255, 255)"],html[data-sg-theme=midnight] #app [style*="background-color: rgb(255, 255, 255)"]{background:#1b293a!important}
html[data-sg-theme=midnight] .top-header .mobile-brand strong{color:#e6edf4}
html[data-sg-theme=midnight] .top-header .profile-circle{background:#263a50;color:#e6edf4}
html[data-sg-theme=midnight] .sg-experience{--ex-line:#41546b;--ex-muted:#b5c4d4}
html[data-sg-theme=midnight] :is(.ex-link,.ex-status,.sg-an-link){color:#71eee5}
html[data-sg-theme=midnight] .ex-btn:not(.primary){background:#1b293a;color:#e6edf4;border-color:#53677e}
html[data-sg-theme=midnight] :is(.ex-dialog,.sg-member-dialog){background:#1b293a;color:#e6edf4}
/* Provider pastel fills stay unchanged; use ink for their small labels. */
html[data-sg-theme=midnight] #cleaningView .sg-cleaning-cleaner-pill:not(.cw-completed) :is(.sg-cleaning-event-label,.sg-cleaning-event-property,.sg-cleaning-event-state,.sg-cleaning-next-guests){color:#17243b!important}
html[data-sg-theme=midnight] #cleaningView .sg-cleaning-cleaner-pill.cw-completed :is(.sg-cleaning-event-property,.sg-cleaning-next-guests){color:#c5d4e4}
html[data-sg-theme=midnight] #reservationModal .sg-detail-metric:not(.sg-detail-cot) dd>span,html[data-sg-theme=midnight] #reservationModal .sg-detail-requirement dt{color:#e6edf4}
html[data-sg-theme=midnight] #reservationModal .sg-detail-actions .mb-delete{color:#ffb4aa;border-color:#ba7171}
html[data-sg-theme=midnight] #mobileMoreMenu .sg-more-item{color:#e6edf4}
html[data-sg-theme=midnight] #mobileMoreMenu .sg-more-item[aria-current=page]{background:#16434b;color:#71eee5}
html[data-sg-theme=midnight] #cleaningView :is(.sg-cleaning-calendar-day.weekend,.sg-cleaning-calendar-day.holiday) .sg-cleaning-day-number{color:#ff9f96!important}
html[data-sg-theme=midnight] #cleaningView .sg-cleaning-calendar-day.today .sg-cleaning-day-number{background:#47d4cf;color:#0b1320!important}
html[data-sg-theme=midnight] #cleaningView .sg-cleaning-calendar-panel{--sg-cleaning-completed-bg:#293748;--sg-cleaning-completed-border:#53677e;--sg-cleaning-completed-text:#c5d4e4}
