.alert-bell{position:relative;display:inline-flex;align-items:center;gap:5px;min-height:36px;padding:6px 10px;border:1px solid #d5e2f4;border-radius:13px;background:linear-gradient(155deg,#fff,#edf5ff);color:#225ec4;box-shadow:inset 0 1px 0 #fff,0 3px 10px #2266aa0b;font-weight:700;white-space:nowrap}
.alert-bell>span:first-child{font-size:19px;line-height:1}.alert-bell-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 4px;border-radius:20px;background:#2563eb;color:#fff;font-size:11px}
.kfs-alert-dialog{--al-bg:#fff;--al-text:#17253e;--al-muted:#66788f;--al-line:#e3eaf4;--al-soft:#f6f9fe;--al-mail:#215ed0;--al-board:#6952c9;width:min(540px,calc(100vw - 28px));max-width:540px;max-height:calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom));margin:auto;padding:0;border:1px solid #e4eaf5;border-radius:26px;background:var(--al-bg);color:var(--al-text);box-shadow:0 24px 90px #15274b35,0 1px 0 #fff inset;overflow:hidden;font-family:inherit;animation:alert-appear .2s ease-out}
.kfs-alert-dialog::backdrop{background:#14203970;backdrop-filter:blur(7px)}
.kfs-alert-dialog[open]{display:flex;flex-direction:column}.kfs-alert-dialog .alert-dialog-scroll,.kfs-alert-dialog .alert-reader-text{flex:1 1 auto;min-height:0}.kfs-alert-dialog .alert-dialog-heading,.kfs-alert-dialog .alert-dialog-actions,.kfs-alert-dialog .alert-source-status,.kfs-alert-dialog .alert-notification-setting,.kfs-alert-dialog .alert-device-status{flex-shrink:0}.kfs-alert-reader .alert-dialog-heading{max-height:25dvh;overflow:auto}
.alert-dialog-heading{padding:26px 26px 18px;background:linear-gradient(130deg,#f3f7ff,transparent 85%)}
.alert-eyebrow{display:block;color:var(--al-mail);font-size:11px;font-weight:800;letter-spacing:.12em;margin-bottom:9px}.kfs-alert-dialog h2{font-size:24px;letter-spacing:-.045em;line-height:1.35;margin:0;overflow-wrap:anywhere}.alert-dialog-heading>p{margin:8px 0 0;color:var(--al-muted);font-size:13px}
.alert-dialog-scroll{padding:0 16px;max-height:48dvh;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.alert-group{padding:16px 0 3px}.alert-group+.alert-group{margin-top:7px;border-top:1px solid var(--al-line)}
.alert-group-heading{display:flex;align-items:center;gap:9px;padding:0 10px 10px}.alert-kind-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:11px;color:var(--al-mail);background:#eaf1ff;font-size:20px}.alert-group-heading h3{margin:0;font-size:16px;letter-spacing:-.03em;color:var(--al-mail)}.alert-count{margin-left:auto;border-radius:20px;padding:3px 9px;background:var(--al-soft);color:var(--al-muted);font-size:12px;font-weight:700}.alert-board .alert-kind-icon{background:#f0edff;color:var(--al-board)}.alert-board h3{color:var(--al-board)}
.alert-title-list{list-style:none;margin:0;padding:0}.alert-title-list li+li{border-top:1px solid var(--al-line)}.alert-title-list button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:56px;padding:15px 12px;text-align:left;border:0;border-radius:12px;background:transparent;color:var(--al-text);font-size:15px;font-weight:650;line-height:1.6;box-shadow:none}.alert-title-list button:hover{background:var(--al-soft)}.alert-title-list button>span:first-child{min-width:0;white-space:normal;word-break:keep-all;overflow-wrap:anywhere}.alert-row-open{flex-shrink:0;font-size:11px;color:var(--al-muted);font-weight:500}
.alert-source-status{display:flex;flex-direction:column;gap:3px;padding:12px 26px 0;font-size:10px;color:var(--al-muted);line-height:1.5}.alert-source-error{color:#b55b25}.alert-device-status{padding:0 26px;margin:10px 0 6px;font-size:11px;line-height:1.6;color:var(--al-muted)}.alert-notification-setting{display:flex;flex-wrap:wrap;gap:8px;padding:0 26px 16px}.alert-notification-setting button{min-height:34px;padding:5px 10px;font-size:11px;background:var(--al-soft);color:var(--al-mail);border:1px solid var(--al-line);border-radius:10px;box-shadow:none}.alert-notification-setting button[hidden]{display:none}
.alert-dialog-actions{display:flex;gap:10px;padding:16px 24px 22px;border-top:1px solid var(--al-line);background:var(--al-bg)}.alert-dialog-actions button{flex:1;min-height:46px;border-radius:14px;border:1px solid var(--al-line);background:var(--al-soft);color:var(--al-text);font-size:14px;font-weight:700;box-shadow:0 1px 0 #ffffffa0 inset}.alert-dialog-actions .primary{color:#fff;border-color:#2864de;background:linear-gradient(160deg,#4a8cf8,#245ad6);box-shadow:inset 0 1px 0 #ffffff55,0 5px 15px #2563eb24}
.alert-empty{text-align:center;padding:28px 15px;color:var(--al-muted)}.alert-empty>span{display:block;font-size:30px;margin-bottom:12px;color:var(--al-mail)}.alert-empty strong{display:block;color:var(--al-text);font-size:16px}.alert-empty p{font-size:12px;line-height:1.6}.alert-reader-text{white-space:pre-wrap;overflow-wrap:anywhere;padding:20px 26px;max-height:54dvh;overflow:auto;font-size:14px;line-height:1.85;border-top:1px solid var(--al-line)}
html[data-theme="dark"] .alert-bell{background:linear-gradient(145deg,#202c3e,#111a29);border-color:#34445d;color:#adcaff;box-shadow:inset 0 1px 0 #ffffff15,0 4px 15px #0004}
html[data-theme="dark"] .kfs-alert-dialog{--al-bg:#141b26;--al-text:#eef3fc;--al-muted:#a0afc6;--al-line:#2b374b;--al-soft:#1b2637;--al-mail:#95bbff;--al-board:#b8a8ff;border-color:#3b485d;box-shadow:0 25px 100px #0009,inset 0 1px 0 #ffffff13}
html[data-theme="dark"] .alert-dialog-heading{background:linear-gradient(135deg,#222e44,#141b26 90%)}html[data-theme="dark"] .alert-kind-icon{background:#263854}html[data-theme="dark"] .alert-board .alert-kind-icon{background:#322b4a}html[data-theme="dark"] .alert-dialog-actions button{box-shadow:inset 0 1px 0 #ffffff0d}html[data-theme="dark"] .alert-source-error{color:#f1b481}
.kfs-alert-dialog button:focus-visible{outline:3px solid #86b3ff;outline-offset:2px}.kfs-alert-dialog button:disabled{opacity:.55;cursor:wait}
@keyframes alert-appear{from{opacity:0;transform:translateY(9px) scale(.98)}to{opacity:1;transform:none}}
@media(max-width:420px){.alert-bell-label{display:none}.alert-dialog-heading{padding:22px 20px 14px}.kfs-alert-dialog h2{font-size:22px}.alert-dialog-actions{padding:14px 18px 18px}.alert-title-list button{font-size:14px}.alert-row-open{font-size:10px}}
@media(prefers-reduced-motion:reduce){.kfs-alert-dialog{animation:none}.kfs-alert-dialog::backdrop{backdrop-filter:none}}

.alert-bell .alert-bell-icon{flex-shrink:0;color:#8b929c;fill:#8b929c;stroke:#68717e}.alert-bell[data-push-state="on"] .alert-bell-icon{color:#f5bf28;fill:#f5bf28;stroke:#a66b00;filter:drop-shadow(0 1px 2px #f0b40035)}.alert-bell-slash{stroke:var(--al-text,#666f7d);stroke-width:2.5;paint-order:stroke}.alert-bell-label{font-size:10px;max-width:78px;white-space:normal;line-height:1.35}.alert-device-status{font-weight:700}.alert-device-status[data-state="on"]{color:#257244}html[data-theme="dark"] .alert-device-status[data-state="on"]{color:#8ed5ae}html[data-theme="dark"] .alert-bell-slash{stroke:#abb3bf}html[data-theme="dark"] .alert-bell[data-push-state="on"] .alert-bell-icon{stroke:#d99d14}@media(max-width:420px){.alert-bell-label{display:block;font-size:9px;max-width:42px}.alert-bell{padding:5px 7px;gap:3px}}

.alert-bell-count{position:absolute;top:-7px;right:-7px;pointer-events:none}.alert-bell-issue{position:absolute;right:-5px;bottom:-5px;display:grid;place-items:center;width:16px;height:16px;border:2px solid var(--surface,#fff);border-radius:50%;background:#bb4a18;color:#fff;font-size:10px;font-weight:900;line-height:1;pointer-events:none}.alert-source-error{font-size:12px;font-weight:650}
@media(max-width:900px){html[data-theme] .header{flex-wrap:nowrap;gap:8px}html[data-theme] .header .right{display:grid;grid-template-columns:repeat(3,max-content);column-gap:6px;margin-left:auto;flex:none}html[data-theme] .header .right button{white-space:nowrap}html[data-theme] .header .avatar{grid-column:1/-1;min-width:0;max-width:180px;justify-self:end;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}html[data-theme] .header #brand-home{flex:0 1 156px;min-width:0}html[data-theme] .header .brand-logo{width:100%;max-width:156px}html[data-theme] .header .alert-bell{min-width:36px;justify-content:center}html[data-theme] .header .alert-bell-label{display:none}}
.alert-notice{max-width:480px}.alert-notice .alert-dialog-heading{padding-bottom:20px}.alert-notice .alert-dialog-scroll{padding:0 18px 18px}.alert-notice .alert-title-list button{min-height:66px;font-size:17px;font-weight:750}.alert-notice .alert-title-list li{border:1px solid var(--al-line);border-radius:16px;background:var(--al-soft);margin-bottom:8px}.alert-notice .alert-eyebrow{font-size:12px;letter-spacing:.1em}.alert-notice-board .alert-eyebrow{color:var(--al-board)}.alert-notice .alert-dialog-actions{padding-top:16px}.alert-notice .alert-dialog-heading>p{display:none}
.alert-source-status[hidden]{display:none}.alert-notification-setting button{display:inline-flex;align-items:center;justify-content:center;gap:6px}.alert-notification-setting button[aria-busy="true"]{opacity:1;color:var(--al-mail);border-color:var(--al-mail)}.alert-notification-setting button[data-result="success"]{color:#257244;border-color:#65ac82}.alert-notification-setting button[data-result="error"]{color:#a34e20;border-color:#c68a63}.alert-button-spinner{width:12px;height:12px;box-sizing:border-box;flex:none;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:alert-button-spin .7s linear infinite}.alert-device-status[data-state="off"]{color:var(--al-muted)}
html[data-theme="dark"] .alert-notification-setting button[data-result="success"]{color:#8ed5ae;border-color:#538d71}html[data-theme="dark"] .alert-notification-setting button[data-result="error"]{color:#f1b481;border-color:#a97650}
@keyframes alert-button-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.alert-button-spinner{animation:none}}
.kfs-alert-dialog .alert-device-status{display:flex;align-items:center;gap:9px;margin:16px 26px 12px;padding:11px 14px;border:1px solid var(--al-line);border-radius:12px;background:var(--al-soft);font-size:16px;font-weight:800;line-height:1.5;letter-spacing:-.025em}.alert-device-status::before{content:"";width:8px;height:8px;flex:none;border-radius:50%;background:currentColor}.kfs-alert-dialog .alert-device-status[data-state="on"]{background:#eef9f2;border-color:#c2e5ce;color:#246c42}html[data-theme="dark"] .kfs-alert-dialog .alert-device-status[data-state="on"]{background:#17352b;border-color:#35634d;color:#9de3ba}
@media(max-width:420px){.kfs-alert-dialog .alert-device-status{margin-left:20px;margin-right:20px}}
.alert-title-list li{display:flex;align-items:stretch;gap:4px}.alert-title-list li [data-alert-item]{flex:1;min-width:0}.alert-title-list li .alert-row-delete{flex:0 0 38px;width:38px;min-height:38px;padding:4px;align-self:center;justify-content:center;border:1px solid var(--al-line);border-radius:11px;color:var(--al-muted);font-size:24px;background:var(--al-soft)}
.alert-dialog-actions [data-alert-delete]{color:#a53b30}.alert-kind-settings{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:16px 26px 0}.alert-kind-settings [role="switch"]{min-height:42px;padding:8px;font-size:13px;background:var(--al-soft);color:var(--al-muted);border:1px solid var(--al-line);border-radius:12px}.alert-kind-settings [aria-checked="true"]{background:#e9f3ff;color:#1d5eae;border-color:#75a6e3}.alert-kind-settings label{grid-column:1/-1;font-size:12px;color:var(--al-muted)}.alert-kind-settings select{width:100%;min-height:40px;margin-top:5px;background:var(--al-soft);color:var(--al-text);border:1px solid var(--al-line);border-radius:10px;padding:6px 10px}.alert-reader-close{float:right;margin:0 0 8px 12px;width:36px;height:36px;min-height:36px;padding:0;font-size:26px;background:var(--al-soft);color:var(--al-text);border:1px solid var(--al-line);border-radius:10px}
html[data-theme="dark"] .alert-kind-settings [aria-checked="true"]{background:#1c3a58;color:#aed5ff;border-color:#527fa6}html[data-theme="dark"] .alert-dialog-actions [data-alert-delete]{color:#ffb4ab}
@media(max-width:420px){.alert-kind-settings{padding-left:20px;padding-right:20px}.alert-dialog-actions button{font-size:13px;min-width:0}.alert-title-list li .alert-row-delete{flex-basis:34px;width:34px}}

html[data-theme] .header #developer-photos{position:relative;white-space:nowrap;background:var(--control-fill);border:1px solid var(--glass-edge);box-shadow:var(--control-shadow)}
html[data-theme] .header #developer-photos .developer-count{position:absolute;top:-7px;right:-6px;margin:0;min-width:19px;height:19px;padding:0 3px;font-size:11px}
@media(max-width:900px){html[data-theme] .header .right:has(#developer-photos){grid-template-columns:repeat(4,max-content);column-gap:4px}html[data-theme] .header .right:has(#developer-photos) :is(#developer-photos,#vehicle-change,#logout){font-size:12px;min-height:34px;padding:5px 6px}}

/* Alert surfaces use the chosen screen palette, including custom colors. */
html[data-theme] .kfs-alert-dialog{--al-bg:var(--surface);--al-text:var(--ink);--al-muted:var(--muted);--al-line:var(--line);--al-soft:var(--surface-soft);--al-mail:var(--blue);--al-board:var(--blue);border-color:var(--line);background:var(--surface);color:var(--ink)}
html[data-theme] .kfs-alert-dialog .alert-dialog-heading{background:var(--header-fill);border-bottom:1px solid var(--line)}
html[data-theme] .kfs-alert-dialog .alert-dialog-actions{background:var(--surface);border-color:var(--line)}
html[data-theme] .kfs-alert-dialog .alert-dialog-actions .primary{background:var(--blue-gradient);border-color:var(--blue-rim);color:#fff}
html[data-theme-choice="lemon"] .kfs-alert-dialog .alert-dialog-actions .primary{color:#352900}
html[data-theme] .kfs-alert-dialog .alert-dialog-actions button:not(.primary){background:var(--surface-soft);color:var(--ink);border-color:var(--line);box-shadow:none}
html[data-theme] .kfs-alert-dialog .alert-kind-icon{background:var(--surface-soft);color:var(--blue)}

/* A single scroll area keeps every setting reachable on small phones. */
.alert-manager .alert-dialog-heading{padding:20px 20px 16px}
.alert-manager .alert-eyebrow{font-size:13px;letter-spacing:0;margin-bottom:4px}
.alert-manager .alert-dialog-heading h2{font-size:23px;letter-spacing:-.025em}
.alert-manager .alert-dialog-heading>p{font-size:14px;line-height:1.45;word-break:keep-all}
.alert-manage-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px;display:grid;gap:10px;align-content:start}
.alert-manage-card{min-width:0;padding:15px;border:1px solid var(--al-line);border-radius:16px;background:var(--al-soft)}
.alert-manage-card h3{margin:0;color:var(--al-text);font-size:17px;line-height:1.35}
.alert-card-help{margin:5px 0 0;color:var(--al-muted);font-size:14px;line-height:1.45;word-break:keep-all}
.alert-manager .alert-device-status{margin:10px 0;padding:9px 11px;font-size:15px;background:var(--al-bg);border-color:var(--al-line);color:var(--al-muted)}
html[data-theme] .alert-manager .alert-device-status[data-state="on"]{background:var(--selected-fill);border-color:var(--blue-rim);color:var(--selected-ink)}
.alert-manager .alert-notification-setting{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0}
.alert-manager .alert-notification-setting button{min-width:0;min-height:44px;padding:9px 8px;font-size:14px;font-weight:700;line-height:1.35;white-space:normal;word-break:keep-all}
.alert-manager .alert-notification-setting button[hidden]{display:none}
html[data-theme] .alert-manager .alert-notification-setting [data-alert-enable]{background:var(--blue-gradient);color:#fff;border-color:var(--blue-rim)}
html[data-theme-choice="lemon"] .alert-manager .alert-notification-setting [data-alert-enable]{color:#352900}
.alert-manager .alert-kind-settings{padding:12px 0 0;gap:8px}
.alert-manager .alert-kind-settings [role="switch"]{min-height:48px;padding:9px;font-size:14px;line-height:1.35;white-space:normal;word-break:keep-all}
html[data-theme] .alert-manager .alert-kind-settings [role="switch"][aria-checked="true"]{background:var(--selected-fill);color:var(--selected-ink);border-color:var(--blue-rim)}
.alert-manager .alert-kind-settings label{margin-top:4px;font-size:14px;font-weight:700;line-height:1.4}
.alert-manager .alert-kind-settings select{min-height:44px;font-size:15px}
.alert-manager .alert-kind-settings :is([data-alert-push-hint],[data-alert-setting-status]){grid-column:1/-1;margin:0;line-height:1.45;font-size:13px}
.alert-manager .alert-setting-status:not(:empty){padding:9px 11px;border-radius:10px;background:var(--al-soft);color:var(--al-text);font-weight:700}
.alert-manager .alert-source-status{padding:8px 0 0;font-size:14px}
.alert-manager .alert-source-error{font-size:14px;line-height:1.45}
.alert-manager .alert-dialog-scroll{flex:none;overflow:visible;max-height:none;padding:0}
.alert-manager .alert-empty{padding:16px 0 4px}
.alert-manager .alert-empty>span{font-size:23px;margin-bottom:4px}
.alert-manager .alert-empty p{font-size:14px;line-height:1.5;margin:5px 0 0;word-break:keep-all}
.alert-manager .alert-dialog-actions{padding:12px 14px max(14px,env(safe-area-inset-bottom));gap:8px}
.alert-manager .alert-dialog-actions button{min-width:0;min-height:46px;font-size:14px;white-space:normal;word-break:keep-all;line-height:1.3}
.alert-manager .alert-dialog-actions button[hidden]{display:none}

.alert-hours-note{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px;margin:10px 0 0;color:var(--al-muted);font-size:14px;line-height:1.5}.alert-hours-note strong{color:var(--al-text);white-space:nowrap;font-variant-numeric:tabular-nums}
