.notification-workspace { max-width: 1220px; }
.notification-header { margin-bottom: 22px; }
.notification-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, 1fr); gap: 28px; align-items: start; }
.notification-alerts, .notification-device-settings { min-width: 0; border-top: 1px solid #dbe4f1; }
.notification-section-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 57px; padding-block: 10px; }
.notification-section-head h2 { margin: 0; color: #14213d; font-size: 17px; }
.notification-section-head > span, .notification-section-head > div > span { color: #52637d; font-size: 12px; font-weight: 650; }
.notification-section-head > div { display: flex; align-items: center; gap: 9px; }
.notification-group { margin-bottom: 16px; border-bottom: 1px solid #dbe4f1; }
.notification-group h3 { margin: 0; padding: 7px 0 9px; color: #52637d; font-size: 12px; font-weight: 800; }
.notification-alert { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 8px 10px; min-height: 72px; padding: 12px 0; border-top: 1px solid #e1e8f1; }
.notification-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 7px; }
.notification-icon .app-icon { width: 18px; height: 18px; }
.notification-icon.is-blue { color: #243bbe; background: #eaefff; }
.notification-icon.is-green { color: #0d694a; background: #e4f5eb; }
.notification-icon.is-amber { color: #86500d; background: #fff2d9; }
.notification-icon.is-red { color: #a52630; background: #fce9ea; }
.notification-alert-copy, .notification-this-device > div, .notification-device-list li > div { display: grid; min-width: 0; gap: 4px; overflow-wrap: anywhere; }
.notification-alert-copy strong, .notification-this-device strong, .notification-device-list strong { color: #14213d; font-size: 14px; }
.notification-alert-copy small, .notification-device-list small { color: #536680; font-size: 12px; line-height: 1.35; }
.notification-alert-actions { display: flex; gap: 10px; align-items: center; }
.notification-workspace .order-button { min-height: 40px; white-space: normal; cursor: pointer; }
.notification-workspace .order-button:disabled { opacity: .55; cursor: not-allowed; }
.notification-workspace .order-button .app-icon { width: 15px; height: 15px; flex: none; }
.notification-alert-actions .order-button { min-width: 66px; padding-inline: 9px; }
.notification-switch { display: grid; place-items: center; position: relative; width: 46px; height: 44px; flex: none; cursor: pointer; }
.notification-switch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: inherit; }
.notification-switch > span { width: 43px; height: 24px; padding: 3px; border-radius: 12px; background: #647590; pointer-events: none; }
.notification-switch > span::after { display: block; width: 18px; height: 18px; border-radius: 50%; background: #fff; content: ""; transition: transform 140ms ease; }
.notification-switch input:checked + span { background: #147c57; }
.notification-switch input:checked + span::after { transform: translateX(19px); }
.notification-switch input:focus-visible + span { outline: 2px solid #273ee8; outline-offset: 3px; }
.notification-switch input:disabled + span { opacity: .55; }
.notification-test-result { grid-column: 2 / -1; justify-self: start; color: #435570; font-size: 12px; line-height: 1.35; }
.notification-test-result.is-green, .notification-device-state.is-green { color: #0d694a; }
.notification-test-result.is-red, .notification-device-state.is-red { color: #a52630; }
.notification-test-result.is-amber { color: #86500d; }
.notification-refresh.order-button { min-height: 36px; min-width: 36px; padding: 4px; }
.notification-this-device { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 8px 10px; align-items: center; padding: 12px; border: 1px solid #dbe4f1; border-radius: 7px; background: #f3f6fb; }
.notification-device-state { font-size: 12px; font-weight: 700; color: #536680; }
.notification-this-device > button, .notification-this-device p { grid-column: 1 / -1; }
.notification-this-device p { margin: 1px 0 0; color: #536680; font-size: 12px; line-height: 1.45; }
.notification-target { display: grid; gap: 6px; margin: 14px 0; }
.notification-target label { color: #435570; font-size: 12px; font-weight: 750; }
.notification-target select { width: 100%; min-width: 0; min-height: 42px; padding: 7px 9px; border: 1px solid #cdd8e7; border-radius: 6px; color: #14213d; background: #fff; font: inherit; font-size: 13px; }
.notification-target select:disabled { background: #eef2f6; color: #536680; }
.notification-device-list { border-block: 1px solid #e1e8f1; }
.notification-device-list summary { padding: 13px 0; color: #21388c; font-size: 13px; font-weight: 750; cursor: pointer; }
.notification-device-list ul { list-style: none; margin: 0; padding: 0; }
.notification-device-list li { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 9px 0; border-top: 1px solid #e1e8f1; }
.notification-device-list li > button { min-width: 40px; padding: 4px; }
.notification-remove-confirm { display: grid; gap: 8px; margin-block: 5px 10px; padding: 9px; border: 1px solid #f0c9ca; border-radius: 6px; background: #fff4f4; }
.notification-remove-confirm > div { display: flex; gap: 7px; flex-wrap: wrap; }
.notification-disconnect.order-button { color: #a52630; }
.notification-email-link { display: flex; align-items: center; gap: 8px; padding: 12px 0; color: #21388c; font-size: 13px; font-weight: 750; text-decoration: none; }
.notification-email-link:hover { text-decoration: underline; }
.notification-email-link .app-icon { width: 16px; height: 16px; flex: none; }
.notification-email-link .app-icon:last-child { margin-left: auto; }
.notification-feedback { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 9px 12px; border-left: 3px solid #147c57; background: #e9f7f0; color: #0d694a; font-size: 13px; }
.notification-feedback.is-error { border-color: #a52630; background: #fff0f0; color: #a52630; }
.notification-feedback .app-icon { width: 16px; height: 16px; flex: none; }
@media (max-width: 820px) {
    .notification-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
    .notification-device-settings { grid-row: 1; }
    .notification-header { margin-bottom: 14px; }
    .notification-section-head { min-height: 47px; }
    .notification-this-device { grid-template-columns: 38px minmax(0, 1fr) auto; }
    .notification-this-device > button { grid-column: auto; max-width: 150px; }
    .notification-target { margin-block: 9px; }
    .notification-alert { min-height: 66px; }
}
@media (max-width: 440px) {
    .notification-alert { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 6px 8px; }
    .notification-icon { width: 34px; height: 34px; }
    .notification-alert-actions { gap: 5px; }
    .notification-alert-actions .order-button { min-width: 48px; padding-inline: 6px; }
    .notification-alert-actions .order-button .app-icon { display: none; }
}
@media (max-width: 350px) { .notification-this-device > button { grid-column: 1 / -1; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .notification-switch > span::after { transition: none; } }
