/* Notification routing clarity hotfix: multi-select choices must look like checkboxes. */
.notification-choice-grid input.form-check-input[type="checkbox"]{width:1.12rem;min-width:1.12rem;height:1.12rem;min-height:1.12rem;margin:.12rem .68rem 0 0;padding:0;border-radius:.24rem!important;cursor:pointer;flex:0 0 auto}
.notification-choice-row{display:flex;align-items:flex-start;margin:.38rem 0!important;padding:.62rem .7rem;border:1px solid var(--app-border);border-radius:.65rem;background:var(--app-raised);cursor:pointer;transition:border-color .16s ease,background-color .16s ease}
.notification-choice-row:hover,.notification-choice-row:focus-within{border-color:color-mix(in srgb,var(--ha-primary,#0d8067) 45%,var(--app-border));background:color-mix(in srgb,var(--ha-primary,#0d8067) 6%,var(--app-raised))}
.notification-choice-row .form-check-label{line-height:1.35;cursor:pointer}
.notification-choice-help{margin:-.1rem 0 .6rem;color:var(--app-muted);font-size:.74rem}
.notification-active-switch{display:flex;align-items:center;gap:.7rem;width:100%;margin:0!important;padding:.72rem .85rem;border:1px solid var(--app-border);border-radius:.72rem;background:var(--app-soft)}
.notification-active-switch .form-check-input{float:none;margin:0!important;flex:0 0 auto}
.notification-active-switch .form-check-label{display:grid;gap:.12rem}
.notification-active-switch .form-check-label small{color:var(--app-muted);font-weight:400}
body.homeaid-system .notification-settings-card input.form-check-input[type="checkbox"]:not([role="switch"]){border-radius:.24rem!important}
body.homeaid-system .notification-settings-card input.form-check-input[type="checkbox"]:not([role="switch"]):checked{background-color:var(--ha-primary,#0d8067)!important;border-color:var(--ha-primary,#0d8067)!important;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m4 10 4 4 8-9'/%3e%3c/svg%3e")!important;background-repeat:no-repeat!important;background-position:center!important;background-size:.82rem .82rem!important}
body.homeaid-system .notification-active-switch input.form-check-input[type="checkbox"][role="switch"]:checked{background-color:var(--ha-primary,#0d8067)!important;border-color:var(--ha-primary,#0d8067)!important;background-image:radial-gradient(circle at calc(100% - .48rem) 50%,#fff 0 .31rem,transparent .34rem)!important;background-repeat:no-repeat!important}

/* Keep notification controls correct even when a deployment uses older page wrappers. */
.notification-channel-toggle input.form-check-input[type="checkbox"],
.notification-choice-row input.form-check-input[type="checkbox"]{border-radius:.24rem!important}
.notification-channel-toggle input.form-check-input[type="checkbox"]:checked,
.notification-choice-row input.form-check-input[type="checkbox"]:checked{background-color:var(--ha-primary,#0d8067)!important;border-color:var(--ha-primary,#0d8067)!important;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m4 10 4 4 8-9'/%3e%3c/svg%3e")!important;background-repeat:no-repeat!important;background-position:center!important;background-size:.82rem .82rem!important}
.notification-active-switch input.form-check-input[type="checkbox"][role="switch"]:checked{background-color:var(--ha-primary,#0d8067)!important;border-color:var(--ha-primary,#0d8067)!important;background-image:radial-gradient(circle at calc(100% - .48rem) 50%,#fff 0 .31rem,transparent .34rem)!important;background-repeat:no-repeat!important}
