/* CENTER CRM 0.11.28 — notification control center */

.center-notifications {
    position: relative;
    flex: 0 0 auto;
}

.center-notification-bell {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid #333;
    border-radius: 12px;
    background: #1b1b1b;
    color: #bdbdbd;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}
.center-notification-bell:hover,
.center-notification-bell[aria-expanded="true"] {
    border-color: rgba(246,197,67,.5);
    background: rgba(246,197,67,.08);
    color: #f6c543;
}
.center-notification-bell:active { transform: translateY(1px); }
.center-notification-bell svg { width: 20px; height: 20px; fill: currentColor; }
.center-notification-count {
    position: absolute;
    top: -6px;
    right: -6px;
    display: grid;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    place-items: center;
    border: 2px solid #101010;
    border-radius: 999px;
    background: #f6c543;
    color: #171717;
    font-size: .68rem;
    font-weight: 900;
    line-height: 1;
}

.center-notification-popover {
    position: absolute;
    z-index: 300;
    top: calc(100% + 12px);
    right: -12px;
    width: min(440px, calc(100vw - 24px));
    overflow: hidden;
    border: 1px solid #383838;
    border-radius: 18px;
    background: #171717;
    box-shadow: 0 28px 80px rgba(0,0,0,.55);
}
.center-notification-popover[hidden] { display: none; }
.center-notification-popover > header,
.center-notification-popover > footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
}
.center-notification-popover > header { border-bottom: 1px solid #2d2d2d; }
.center-notification-popover > header > div { display: grid; gap: 2px; }
.center-notification-popover > header strong { font-size: .98rem; }
.center-notification-popover > header small { color: #838383; font-size: .75rem; }
.center-notification-popover > footer { border-top: 1px solid #2d2d2d; background: #151515; }
.center-notification-popover > footer a,
.center-notification-popover > footer button {
    border: 0;
    background: transparent;
    color: #f6c543;
    cursor: pointer;
    font-size: .8rem;
    font-weight: 800;
    text-decoration: none;
}
.center-notification-popover > footer button:disabled { color: #666; cursor: default; }
.center-notification-close {
    display: grid;
    width: 30px;
    height: 30px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #8a8a8a;
    cursor: pointer;
    font-size: 1.35rem;
}
.center-notification-close:hover { background: #252525; color: #fff; }
.center-notification-list { max-height: 490px; overflow-y: auto; }
.center-notification-empty { padding: 38px 20px; color: #7e7e7e; text-align: center; }
.center-notification-item {
    display: grid;
    grid-template-columns: 34px minmax(0,1fr) 8px;
    gap: 11px;
    padding: 13px 15px;
    border-bottom: 1px solid #282828;
    color: inherit;
    text-decoration: none;
    transition: background .14s ease;
}
.center-notification-item:last-child { border-bottom: 0; }
.center-notification-item:hover { background: #202020; }
.center-notification-item.is-read { opacity: .6; }
.center-notification-item-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 10px;
    background: rgba(76,141,255,.12);
    color: #79a8ff;
    font-size: .76rem;
    font-weight: 900;
}
.center-notification-item[data-severity="warning"] .center-notification-item-icon { background: rgba(246,197,67,.12); color: #f6c543; }
.center-notification-item[data-severity="critical"] .center-notification-item-icon { background: rgba(239,83,80,.13); color: #ff7774; }
.center-notification-item-copy { display: grid; min-width: 0; gap: 3px; }
.center-notification-item-copy strong { overflow: hidden; color: #f4f4f4; font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.center-notification-item-copy > span { display: -webkit-box; overflow: hidden; color: #9b9b9b; font-size: .76rem; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.center-notification-item-copy small { color: #686868; font-size: .68rem; }
.center-notification-item-dot { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: #f6c543; }

.notification-page {
    display: grid;
    gap: 22px;
}
.notification-page-header {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(420px, .7fr);
    align-items: end;
    gap: 28px;
    padding: 28px 30px;
    border: 1px solid #2d2d2d;
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% 14%, rgba(246,197,67,.11), transparent 31%),
        linear-gradient(135deg, #1d1d1d, #151515);
    box-shadow: 0 18px 44px rgba(0,0,0,.14);
}
.notification-page-heading-copy { min-width: 0; }
.notification-page-header h1 { margin: 0 0 8px; font-size: clamp(2rem, 3vw, 2.75rem); letter-spacing: -.04em; }
.notification-page-header .muted { max-width: 780px; margin: 0; line-height: 1.55; }
.notification-work-status {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin-top: 16px;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid #303030;
    border-radius: 11px;
    background: rgba(0,0,0,.18);
    color: #8d8d8d;
    font-size: .7rem;
}
.notification-work-status strong { color: #d7d7d7; }
.notification-work-status em { color: #c5a94b; font-style: normal; }
.notification-work-dot { width: 7px; height: 7px; border-radius: 50%; background: #777; box-shadow: 0 0 0 3px rgba(119,119,119,.08); }
.notification-work-status.is-active .notification-work-dot { background: #3fb950; box-shadow: 0 0 0 3px rgba(63,185,80,.11); }
.notification-work-status.is-active strong { color: #82c99b; }

.notification-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
}
.notification-stat {
    display: grid;
    min-width: 0;
    gap: 3px;
    padding: 15px 16px;
    border: 1px solid #303030;
    border-radius: 15px;
    background: rgba(10,10,10,.36);
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.notification-stat:hover { transform: translateY(-1px); border-color: #444; background: rgba(255,255,255,.035); }
.notification-stat span { color: #8b8b8b; font-size: .69rem; font-weight: 800; text-transform: uppercase; letter-spacing: .035em; }
.notification-stat strong { color: #f0f0f0; font-size: 1.7rem; line-height: 1.1; }
.notification-stat small { color: #666; font-size: .66rem; }
.notification-stat.is-warning { border-color: rgba(246,197,67,.25); }
.notification-stat.is-warning strong { color: #f4cf59; }
.notification-stat.is-critical { border-color: rgba(239,83,80,.28); }
.notification-stat.is-critical strong { color: #ff8582; }

.notification-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 380px;
    align-items: start;
    gap: 20px;
}
.notification-main { padding: 18px; min-width: 0; }
.notification-main-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}
.notification-main-heading h2 { margin: 0; }
.notification-main-heading .eyebrow { margin-bottom: 4px; }

.notification-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px,1fr)) auto auto;
    align-items: end;
    gap: 9px;
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid #2b2b2b;
    border-radius: 14px;
    background: #171717;
}
.notification-filters label { display: grid; min-width: 0; gap: 6px; }
.notification-filters label > span { color: #848484; font-size: .68rem; font-weight: 800; }
.notification-filters select,
.notification-select-row select,
.notification-editor-select select,
.notification-time-field input,
.notification-template-field input,
.notification-template-field textarea {
    width: 100%;
    border: 1px solid #363636;
    border-radius: 10px;
    background: #202020;
    color: #f1f1f1;
    font: inherit;
}
.notification-filters select,
.notification-select-row select,
.notification-editor-select select,
.notification-time-field input,
.notification-template-field input {
    min-height: 42px;
    padding: 8px 11px;
}
.notification-filters select { padding-right: 34px; }
.notification-filters select:focus,
.notification-select-row select:focus,
.notification-editor-select select:focus,
.notification-time-field input:focus,
.notification-template-field input:focus,
.notification-template-field textarea:focus {
    outline: none;
    border-color: rgba(246,197,67,.62);
    box-shadow: 0 0 0 3px rgba(246,197,67,.08);
}

.notification-list-page { display: grid; gap: 9px; }
.notification-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #303030;
    border-radius: 15px;
    background: linear-gradient(180deg, #1b1b1b, #181818);
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.notification-card:hover { transform: translateY(-1px); border-color: #444; background: #202020; }
.notification-card.is-read { opacity: .64; }
.notification-card.is-unread { border-left: 3px solid #4c8dff; }
.notification-card.notification-warning.is-unread { border-left-color: #f6c543; }
.notification-card.notification-critical.is-unread { border-left-color: #ef5350; }
.notification-card-main {
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) 10px;
    gap: 13px;
    padding: 15px 16px 13px;
    color: inherit;
    text-decoration: none;
}
.notification-card-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    background: rgba(76,141,255,.12);
    color: #79a8ff;
    font-weight: 900;
}
.notification-warning .notification-card-icon { background: rgba(246,197,67,.12); color: #f6c543; }
.notification-critical .notification-card-icon { background: rgba(239,83,80,.14); color: #ff7774; }
.notification-card-copy { display: grid; min-width: 0; gap: 5px; }
.notification-card-copy > strong { color: #f1f1f1; font-size: .94rem; }
.notification-card-copy > span:last-child { color: #a2a2a2; font-size: .81rem; line-height: 1.48; }
.notification-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #6f6f6f; font-size: .68rem; }
.notification-card-tags { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 5px; }
.notification-card-tags b,
.notification-card-tags i {
    padding: 3px 6px;
    border-radius: 6px;
    background: #232323;
    color: #858585;
    font-style: normal;
    font-weight: 750;
}
.notification-card-tags b { color: #b5b5b5; }
.notification-severity-tag.is-warning { background: rgba(246,197,67,.1); color: #dfc05a; }
.notification-severity-tag.is-critical { background: rgba(239,83,80,.11); color: #f27d79; }
.notification-severity-tag.is-info { background: rgba(76,141,255,.1); color: #7da9ff; }
.notification-unread-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #f6c543; }
.notification-card form { display: flex; justify-content: flex-end; padding: 0 16px 11px; }
.notification-card-read { border: 0; background: transparent; color: #777; cursor: pointer; font-size: .7rem; }
.notification-card-read:hover { color: #f6c543; }
.notification-page-empty {
    display: grid;
    min-height: 250px;
    place-items: center;
    align-content: center;
    gap: 7px;
    padding: 45px 20px;
    border: 1px dashed #303030;
    border-radius: 15px;
    color: #777;
    text-align: center;
}
.notification-empty-icon { display: grid; width: 44px; height: 44px; margin-bottom: 3px; place-items: center; border: 1px solid #303030; border-radius: 13px; background: #1b1b1b; color: #6fb989; font-weight: 900; }
.notification-page-empty strong { color: #aaa; }
.notification-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; color: #777; font-size: .8rem; }

.notification-sidebar { display: grid; gap: 16px; }
.notification-settings,
.notification-rules-summary { padding: 19px; }
.notification-settings-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.notification-settings-heading h2,
.notification-rules-summary h2 { margin: 0; }
.notification-preference-form { display: grid; gap: 9px; }
.notification-toggle-row,
.notification-select-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid #2f2f2f;
    border-radius: 12px;
    background: #191919;
}
.notification-toggle-row > span,
.notification-select-row > span { display: grid; gap: 3px; }
.notification-toggle-row strong,
.notification-select-row strong { font-size: .8rem; }
.notification-toggle-row small,
.notification-select-row small { color: #777; font-size: .69rem; line-height: 1.4; }
.notification-toggle-row input,
.notification-global-toggle input,
.notification-editor-toggle input { width: 20px; height: 20px; accent-color: #f6c543; }
.notification-select-row { grid-template-columns: 1fr; }
.notification-permission-state,
.notification-save-state { min-height: 18px; margin: 0; color: #777; font-size: .71rem; }
.notification-permission-state.is-warning,
.notification-save-state.is-warning { color: #f6c543; }
.notification-permission-state.is-ok,
.notification-save-state.is-ok { color: #55b978; }

.notification-rules-summary { display: grid; gap: 10px; }
.notification-shift-clock { display: flex; align-items: baseline; gap: 8px; padding: 12px 13px; border: 1px solid #303030; border-radius: 12px; background: #191919; }
.notification-shift-clock strong { color: #f2f2f2; font-size: 1.1rem; }
.notification-shift-clock span { color: #666; }
.notification-shift-clock small { margin-left: auto; color: #777; }
.notification-shift-status { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 10px; background: #191919; color: #8b8b8b; font-size: .7rem; }
.notification-shift-status i { width: 7px; height: 7px; border-radius: 50%; background: #777; }
.notification-shift-status.is-active { color: #82c99b; }
.notification-shift-status.is-active i { background: #3fb950; box-shadow: 0 0 0 3px rgba(63,185,80,.1); }
.notification-rule { display: grid; grid-template-columns: 70px minmax(0,1fr); align-items: center; gap: 10px; padding: 10px 11px; border: 1px solid #2e2e2e; border-radius: 10px; background: #191919; }
.notification-rule span { color: #f6c543; font-weight: 900; font-size: .76rem; }
.notification-rule strong { font-size: .76rem; }
.notification-rule.is-critical span { color: #ef6d69; }
.notification-manage-link { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; padding: 10px 2px 0; border-top: 1px solid #292929; color: #f6c543; font-size: .74rem; font-weight: 800; text-decoration: none; }

.notification-rule-manager { padding: 22px; }
.notification-rule-manager-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 18px; }
.notification-rule-manager-heading h2 { margin: 0 0 6px; }
.notification-rule-manager-heading .muted { max-width: 820px; margin: 0; }
.notification-rule-form { display: grid; gap: 15px; }
.notification-global-rule-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) 170px 170px;
    gap: 10px;
    padding: 13px;
    border: 1px solid rgba(246,197,67,.22);
    border-radius: 15px;
    background: linear-gradient(180deg, rgba(246,197,67,.055), rgba(246,197,67,.018));
}
.notification-global-toggle { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid #333; border-radius: 11px; background: rgba(0,0,0,.18); }
.notification-global-toggle > span { display: grid; gap: 3px; }
.notification-global-toggle strong { font-size: .8rem; }
.notification-global-toggle small { color: #7e7e7e; font-size: .69rem; line-height: 1.42; }
.notification-time-field { display: grid; align-content: center; gap: 6px; }
.notification-time-field > span { color: #8a8a8a; font-size: .69rem; font-weight: 800; }

.notification-template-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.notification-template-card {
    overflow: hidden;
    border: 1px solid #303030;
    border-radius: 14px;
    background: #181818;
}
.notification-template-card[open] { border-color: #3d3d3d; background: #1a1a1a; }
.notification-template-card summary {
    display: grid;
    grid-template-columns: 10px minmax(0,1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 14px;
    cursor: pointer;
    list-style: none;
}
.notification-template-card summary::-webkit-details-marker { display: none; }
.notification-template-toggle-state { width: 8px; height: 8px; border-radius: 50%; background: #666; }
.notification-template-toggle-state.is-enabled { background: #3fb950; box-shadow: 0 0 0 3px rgba(63,185,80,.08); }
.notification-template-summary-copy { display: grid; min-width: 0; gap: 2px; }
.notification-template-summary-copy small { color: #6f6f6f; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.notification-template-summary-copy strong { color: #ededed; font-size: .84rem; }
.notification-template-summary-copy em { overflow: hidden; color: #777; font-size: .68rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.notification-template-summary-meta { display: grid; justify-items: end; gap: 4px; }
.notification-template-summary-meta b,
.notification-template-summary-meta i { padding: 3px 6px; border-radius: 6px; background: #232323; color: #898989; font-size: .62rem; font-style: normal; font-weight: 800; }
.notification-template-summary-meta b { color: #9dc5aa; }
.notification-template-editor { display: grid; gap: 10px; padding: 0 14px 14px; border-top: 1px solid #292929; }
.notification-template-controls { display: grid; grid-template-columns: minmax(0,1fr) 180px; gap: 10px; padding-top: 12px; }
.notification-editor-toggle { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px 11px; border: 1px solid #303030; border-radius: 10px; background: #171717; }
.notification-editor-toggle > span { display: grid; gap: 2px; }
.notification-editor-toggle strong { font-size: .74rem; }
.notification-editor-toggle small { color: #6f6f6f; font-size: .65rem; }
.notification-editor-select,
.notification-template-field { display: grid; gap: 6px; }
.notification-editor-select > span,
.notification-template-field > span { color: #858585; font-size: .68rem; font-weight: 800; }
.notification-template-field textarea { min-height: 76px; padding: 10px 11px; resize: vertical; line-height: 1.45; }
.notification-template-variables { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; color: #6f6f6f; font-size: .65rem; }
.notification-template-variables code { padding: 3px 5px; border: 1px solid #303030; border-radius: 6px; background: #141414; color: #cbb45e; font-family: Consolas, monospace; font-size: .64rem; }
.notification-rule-savebar { position: sticky; bottom: 12px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 12px 13px; border: 1px solid #383838; border-radius: 13px; background: rgba(24,24,24,.96); box-shadow: 0 16px 40px rgba(0,0,0,.28); backdrop-filter: blur(12px); }
.notification-rule-savebar > span { color: #777; font-size: .69rem; }

@media (max-width: 1250px) {
    .notification-page-header { grid-template-columns: 1fr; align-items: stretch; }
    .notification-stat-grid { max-width: 720px; }
    .notification-layout { grid-template-columns: minmax(0,1fr) 340px; }
    .notification-filters { grid-template-columns: repeat(2, minmax(130px,1fr)) auto auto; }
    .notification-template-list { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
    .notification-layout { grid-template-columns: 1fr; }
    .notification-sidebar { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .notification-global-rule-grid { grid-template-columns: 1fr 1fr; }
    .notification-global-toggle { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
    .center-notifications { order: 2; }
    .center-notification-bell { width: 100%; height: 42px; grid-template-columns: 20px auto; gap: 8px; }
    .center-notification-bell::after { content: "Уведомления"; font-size: .84rem; font-weight: 750; }
    .center-notification-popover { position: fixed; top: 76px; right: 12px; left: 12px; width: auto; max-height: calc(100vh - 94px); }
    .center-notification-list { max-height: calc(100vh - 210px); }
    .notification-page-header { padding: 22px; }
    .notification-stat-grid { grid-template-columns: 1fr 1fr 1fr; }
    .notification-sidebar { grid-template-columns: 1fr; }
    .notification-rule-manager-heading { flex-direction: column; }
    .notification-template-controls { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .notification-stat-grid { grid-template-columns: 1fr; }
    .notification-filters { grid-template-columns: 1fr; }
    .notification-filters .button { width: 100%; }
    .notification-main-heading { align-items: stretch; flex-direction: column; }
    .notification-card-main { grid-template-columns: 36px minmax(0,1fr) 8px; padding-inline: 12px; }
    .notification-card-icon { width: 34px; height: 34px; }
    .notification-card-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
    .notification-global-rule-grid { grid-template-columns: 1fr; }
    .notification-global-toggle { grid-column: auto; }
    .notification-rule-manager { padding: 15px; }
    .notification-template-card summary { grid-template-columns: 10px minmax(0,1fr); }
    .notification-template-summary-meta { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: start; }
    .notification-rule-savebar { position: static; align-items: stretch; flex-direction: column; }
    .notification-rule-savebar .button { width: 100%; }
}

.center-notifications.has-unread .center-notification-bell {
    border-color: rgba(246,197,67,.55);
    background: linear-gradient(180deg, rgba(246,197,67,.14), rgba(246,197,67,.05));
    color: #f6c543;
    box-shadow: 0 0 0 0 rgba(246,197,67,.16);
    animation: centerBellPulse 2.2s ease-in-out infinite;
}
.center-notification-bell {
    overflow: visible;
    border-color: #343434;
    background: linear-gradient(180deg, #202020, #161616);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 10px 26px rgba(0,0,0,.18);
}
.center-notification-bell::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 16px;
    border: 1px solid rgba(246,197,67,.0);
    opacity: 0;
    transform: scale(.92);
    pointer-events: none;
}
.center-notifications.has-unread .center-notification-bell::after {
    opacity: 1;
    border-color: rgba(246,197,67,.15);
    animation: centerBellHalo 2.2s ease-in-out infinite;
}
.center-notification-popover {
    animation: centerPopoverIn .18s ease;
}
.center-notification-count {
    box-shadow: 0 8px 18px rgba(246,197,67,.28);
}

.center-toast-stack {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1500;
    display: grid;
    width: min(380px, calc(100vw - 24px));
    gap: 10px;
    pointer-events: none;
}
.center-toast {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0,1fr);
    gap: 12px;
    padding: 14px 16px 14px 14px;
    border: 1px solid #323232;
    border-radius: 16px;
    background: rgba(22,22,22,.96);
    box-shadow: 0 18px 48px rgba(0,0,0,.38);
    color: #f3f3f3;
    cursor: pointer;
    pointer-events: auto;
    animation: centerToastIn .2s ease;
}
.center-toast.is-leaving { animation: centerToastOut .22s ease forwards; }
.center-toast-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: rgba(93,169,255,.14);
    color: #7fb0ff;
    font-weight: 900;
}
.center-toast-warning .center-toast-icon { background: rgba(246,197,67,.14); color: #f6c543; }
.center-toast-critical .center-toast-icon { background: rgba(248,81,73,.16); color: #ff8d89; }
.center-toast-copy { display: grid; gap: 4px; min-width: 0; }
.center-toast-copy strong { font-size: .92rem; line-height: 1.25; }
.center-toast-copy span { color: #c0c0c0; font-size: .8rem; line-height: 1.42; }
.center-toast-copy small { color: #888; font-size: .7rem; }
.center-toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #868686;
    cursor: pointer;
}
.center-toast-close:hover { background: rgba(255,255,255,.05); color: #fff; }

.notification-two-column-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
}
.notification-snooze-state {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(246,197,67,.25);
    border-radius: 12px;
    background: rgba(246,197,67,.08);
    color: #e2c25a;
    font-size: .77rem;
}
.notification-sound-admin {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #2d2d2d;
    border-radius: 18px;
    background: #151515;
}
.panel-slim { box-shadow: none; }
.notification-sound-admin h3 { margin: 0 0 6px; }
.notification-sound-upload-form {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto;
    gap: 10px;
    align-items: end;
}
.notification-template-field input[type="file"] {
    min-height: 42px;
    padding: 8px 10px;
}

@keyframes centerBellPulse {
    0%, 100% { transform: translateY(0); box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 10px 26px rgba(0,0,0,.18); }
    50% { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 14px 32px rgba(0,0,0,.28); }
}
@keyframes centerBellHalo {
    0% { transform: scale(.9); opacity: .2; }
    70% { transform: scale(1.08); opacity: .02; }
    100% { transform: scale(1.08); opacity: 0; }
}
@keyframes centerPopoverIn {
    from { opacity: 0; transform: translateY(-6px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes centerToastIn {
    from { opacity: 0; transform: translateY(8px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes centerToastOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(10px) scale(.98); }
}

@media (max-width: 920px) {
    .notification-two-column-grid,
    .notification-sound-upload-form {
        grid-template-columns: 1fr;
    }
    .center-toast-stack {
        right: 12px;
        bottom: 12px;
        width: min(360px, calc(100vw - 20px));
    }
}

/* 0.11.33 — employee shift delivery state */
.notification-personal-shift {
    display: grid;
    grid-template-columns: 9px minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    margin: 0 0 13px;
    padding: 11px 12px;
    border: 1px solid #303030;
    border-radius: 12px;
    background: #171717;
}
.notification-personal-shift > i { width: 8px; height: 8px; border-radius: 50%; background: #777; }
.notification-personal-shift > span { display: grid; gap: 1px; }
.notification-personal-shift strong { font-size: .77rem; }
.notification-personal-shift small { color: #7c7c7c; font-size: .66rem; line-height: 1.4; }
.notification-personal-shift > b { color: #8b8b8b; font-size: .66rem; font-weight: 800; white-space: nowrap; }
.notification-personal-shift.is-active { border-color: rgba(63,185,80,.22); background: rgba(63,185,80,.035); }
.notification-personal-shift.is-active > i { background: #3fb950; box-shadow: 0 0 0 4px rgba(63,185,80,.08); }
.notification-personal-shift.is-off { border-color: rgba(246,197,67,.2); }
.notification-personal-shift.is-off > i { background: #f6c543; box-shadow: 0 0 0 4px rgba(246,197,67,.07); }
@media (max-width: 720px) { .notification-personal-shift { grid-template-columns: 9px 1fr; } .notification-personal-shift > b { grid-column: 2; } }

/* CENTER CRM 0.11.35 — foreground/background notification routing */
.notification-channel-guide {
    display: grid;
    gap: 5px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(246, 197, 67, .18);
    border-radius: 13px;
    background: rgba(246, 197, 67, .055);
}
.notification-channel-guide strong {
    color: #f2d16a;
    font-size: .78rem;
}
.notification-channel-guide span {
    color: #a9a9a9;
    font-size: .75rem;
    line-height: 1.48;
}

/* CENTER CRM 0.11.52 — role-aware notification system and motion polish */
.notification-settings-page {
    --notification-gold: #f6c543;
    --notification-green: #55b978;
    --notification-blue: #6da7ff;
    --notification-red: #f06a67;
}

.notification-settings-toolbar {
    border: 1px solid rgba(246,197,67,.11);
    background: linear-gradient(135deg, rgba(246,197,67,.035), rgba(255,255,255,.008));
}

.notification-personal-control,
.notification-rules-summary,
.notification-rule-manager {
    position: relative;
    overflow: hidden;
}
.notification-personal-control::before,
.notification-rule-manager::before {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    top: -230px;
    right: -150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(246,197,67,.09), transparent 68%);
    pointer-events: none;
}
.notification-settings-heading { position: relative; z-index: 1; }
.notification-scope-counter {
    display: grid;
    min-width: 104px;
    padding: 10px 13px;
    justify-items: end;
    border: 1px solid rgba(246,197,67,.2);
    border-radius: 14px;
    background: rgba(246,197,67,.05);
}
.notification-scope-counter strong { color: #f5d261; font-size: 1.32rem; line-height: 1; }
.notification-scope-counter span { margin-top: 4px; color: #8c856e; font-size: .63rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }

.notification-personal-scope {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
    padding: 10px 12px;
    border: 1px solid #2d2d2d;
    border-radius: 13px;
    background: rgba(0,0,0,.16);
}
.notification-personal-scope > span { flex: 0 0 auto; color: #747474; font-size: .66rem; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.notification-personal-scope > div { display: flex; flex-wrap: wrap; gap: 6px; }
.notification-personal-scope b {
    padding: 5px 8px;
    border: 1px solid rgba(246,197,67,.17);
    border-radius: 999px;
    background: rgba(246,197,67,.045);
    color: #cdb967;
    font-size: .66rem;
    font-weight: 800;
}

.notification-personal-shift {
    transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.notification-personal-shift:hover { transform: translateY(-1px); }
.notification-personal-shift.is-active { box-shadow: inset 0 0 28px rgba(63,185,80,.025); }
.notification-personal-shift.is-break { border-color: rgba(246,197,67,.28); background: rgba(246,197,67,.045); }
.notification-personal-shift.is-break > i {
    background: #f6c543;
    box-shadow: 0 0 0 4px rgba(246,197,67,.08), 0 0 18px rgba(246,197,67,.12);
    animation: notificationBreakPulse 2.4s ease-in-out infinite;
}

.notification-channel-guide {
    grid-template-columns: 34px minmax(0,1fr);
    align-items: center;
    gap: 11px;
    margin-bottom: 14px;
    background:
        linear-gradient(135deg, rgba(246,197,67,.07), transparent 62%),
        #171717;
}
.notification-channel-guide > span:not(.notification-guide-icon) { display: grid; gap: 3px; }
.notification-channel-guide small { color: #999; font-size: .72rem; line-height: 1.5; }
.notification-guide-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid rgba(246,197,67,.24);
    border-radius: 10px;
    background: rgba(246,197,67,.08);
    color: #f5d262;
    font-family: Georgia, serif;
    font-size: 1rem;
    font-style: italic;
    font-weight: 900;
}

.notification-channel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
}
.notification-channel-card.notification-toggle-row {
    position: relative;
    grid-template-columns: 38px minmax(0,1fr) auto;
    min-height: 92px;
    padding: 14px;
    overflow: hidden;
    border-color: #303030;
    background: linear-gradient(145deg, #1d1d1d, #181818);
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.notification-channel-card.notification-toggle-row:hover {
    transform: translateY(-2px);
    border-color: #444;
    background: linear-gradient(145deg, #222, #191919);
    box-shadow: 0 13px 34px rgba(0,0,0,.13);
}
.notification-channel-symbol {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid #353535;
    border-radius: 11px;
    background: #151515;
    color: #aaa;
    font-size: .73rem;
    font-weight: 950;
    letter-spacing: -.02em;
}
.notification-channel-card.is-avito .notification-channel-symbol { border-color: rgba(246,197,67,.24); background: rgba(246,197,67,.07); color: #f1ce59; }
.notification-channel-card.is-crm .notification-channel-symbol { border-color: rgba(109,167,255,.22); background: rgba(109,167,255,.07); color: #82b5ff; }
.notification-channel-card.is-system .notification-channel-symbol { border-color: rgba(85,185,120,.22); background: rgba(85,185,120,.07); color: #73c98f; }
.notification-channel-card.is-sound .notification-channel-symbol { border-color: rgba(178,135,255,.22); background: rgba(178,135,255,.07); color: #bd9af8; }

.notification-toggle-row input[type="checkbox"],
.notification-global-toggle input[type="checkbox"],
.notification-editor-toggle input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 46px;
    height: 26px;
    flex: 0 0 auto;
    margin: 0;
    border: 1px solid #444;
    border-radius: 999px;
    background:
        radial-gradient(circle at 12px 50%, #8b8b8b 0 7px, transparent 7.5px),
        #292929;
    cursor: pointer;
    outline: none;
    transition: border-color .18s ease, background .2s ease, box-shadow .18s ease, transform .15s ease;
}
.notification-toggle-row input[type="checkbox"]:hover,
.notification-global-toggle input[type="checkbox"]:hover,
.notification-editor-toggle input[type="checkbox"]:hover { transform: scale(1.03); border-color: #5a5a5a; }
.notification-toggle-row input[type="checkbox"]:checked,
.notification-global-toggle input[type="checkbox"]:checked,
.notification-editor-toggle input[type="checkbox"]:checked {
    border-color: rgba(246,197,67,.58);
    background:
        radial-gradient(circle at calc(100% - 12px) 50%, #161616 0 7px, transparent 7.5px),
        linear-gradient(90deg, #d9aa2f, #f6c543);
    box-shadow: 0 0 0 3px rgba(246,197,67,.07), 0 5px 16px rgba(246,197,67,.09);
}
.notification-toggle-row input[type="checkbox"]:focus-visible,
.notification-global-toggle input[type="checkbox"]:focus-visible,
.notification-editor-toggle input[type="checkbox"]:focus-visible {
    box-shadow: 0 0 0 3px rgba(246,197,67,.18);
}

.notification-preference-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
    margin-top: 2px;
}
.notification-preference-options .notification-select-row {
    min-height: 92px;
    align-content: center;
    border-color: #303030;
    background: #181818;
    transition: border-color .18s ease, background .18s ease;
}
.notification-preference-options .notification-select-row:focus-within { border-color: rgba(246,197,67,.38); background: #1b1b1b; }
.notification-preference-options select { min-height: 44px; }
.notification-snooze-state {
    position: relative;
    overflow: hidden;
    padding-left: 36px;
}
.notification-snooze-state::before {
    content: "Z";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #f4cb51;
    font-size: .72rem;
    font-weight: 950;
}
.notification-preference-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 3px;
    padding-top: 13px;
    border-top: 1px solid #2c2c2c;
}
.notification-preference-footer > div { display: grid; gap: 2px; min-width: 0; }
.notification-preference-footer .button { min-width: 250px; }

.notification-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid #343434;
    border-radius: 999px;
    background: #191919;
    color: #8b8b8b;
    font-size: .67rem;
    font-weight: 850;
}
.notification-live-badge i { width: 7px; height: 7px; border-radius: 50%; background: #747474; }
.notification-live-badge.is-active { border-color: rgba(85,185,120,.24); color: #82c99b; background: rgba(85,185,120,.045); }
.notification-live-badge.is-active i { background: #55b978; box-shadow: 0 0 0 4px rgba(85,185,120,.08); animation: notificationLiveDot 2.3s ease-in-out infinite; }
.notification-sla-window { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0,1.25fr); gap: 10px; }
.notification-shift-clock,
.notification-shift-status { min-height: 52px; }
.notification-sla-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
    margin-top: 2px;
}
.notification-sla-timeline::before {
    content: "";
    position: absolute;
    top: 22px;
    right: 12%;
    left: 12%;
    height: 1px;
    background: linear-gradient(90deg, rgba(246,197,67,.28), rgba(246,197,67,.5), rgba(240,106,103,.45));
    pointer-events: none;
}
.notification-sla-timeline .notification-rule {
    position: relative;
    z-index: 1;
    grid-template-columns: 1fr;
    gap: 4px;
    min-height: 94px;
    align-content: center;
    text-align: center;
    border-radius: 14px;
    background: linear-gradient(180deg, #1b1b1b, #171717);
}
.notification-sla-timeline .notification-rule span { width: fit-content; margin-inline: auto; padding: 4px 8px; border-radius: 999px; background: #151515; }
.notification-sla-timeline .notification-rule strong { font-size: .78rem; }
.notification-sla-timeline .notification-rule small { color: #727272; font-size: .65rem; line-height: 1.4; }
.notification-sla-timeline .notification-rule.is-critical { border-color: rgba(240,106,103,.24); }

.notification-rule-manager-heading { position: relative; z-index: 1; }
.notification-sound-admin {
    position: relative;
    border-color: rgba(109,167,255,.14);
    background:
        radial-gradient(circle at 96% 10%, rgba(109,167,255,.055), transparent 26%),
        #151515;
}

.notification-global-rule-grid {
    position: relative;
    z-index: 1;
    border-color: rgba(246,197,67,.18);
    background:
        radial-gradient(circle at 6% 0%, rgba(246,197,67,.055), transparent 38%),
        #171717;
}
.notification-global-toggle { min-height: 70px; }
.notification-time-field input { background: #1d1d1d; }

.notification-rule-disclosure-hint {
    display: grid;
    grid-template-columns: 34px minmax(0,1fr);
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border: 1px dashed #393939;
    border-radius: 13px;
    background: rgba(255,255,255,.012);
}
.notification-rule-disclosure-hint > span:last-child { display: grid; gap: 2px; }
.notification-rule-disclosure-hint strong { color: #bbb; font-size: .73rem; }
.notification-rule-disclosure-hint small { color: #747474; font-size: .66rem; line-height: 1.45; }
.notification-hint-plus,
.notification-template-expander {
    position: relative;
    display: block;
    width: 30px;
    height: 30px;
    border: 1px solid #3b3b3b;
    border-radius: 50%;
    background: #1d1d1d;
}
.notification-hint-plus::before,
.notification-hint-plus::after,
.notification-template-expander::before,
.notification-template-expander::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    border-radius: 999px;
    background: #b8b8b8;
    transform: translate(-50%, -50%);
    transition: transform .22s cubic-bezier(.2,.8,.2,1), opacity .18s ease, background .18s ease;
}
.notification-hint-plus::after,
.notification-template-expander::after { transform: translate(-50%, -50%) rotate(90deg); }

.notification-template-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    align-items: start;
    gap: 12px;
}
.notification-template-column {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 12px;
}
.notification-template-card {
    position: relative;
    overflow: clip;
    border: 1px solid #303030;
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.012), transparent 46%),
        #181818;
    box-shadow: 0 7px 24px rgba(0,0,0,.06);
    transition: border-color .2s ease, background .2s ease, transform .18s ease, box-shadow .2s ease, opacity .2s ease;
}
.notification-template-card:hover {
    transform: translateY(-1px);
    border-color: #404040;
    box-shadow: 0 14px 34px rgba(0,0,0,.12);
}
.notification-template-card[open] {
    border-color: rgba(246,197,67,.32);
    background:
        radial-gradient(circle at 100% 0, rgba(246,197,67,.055), transparent 34%),
        #1a1a1a;
    box-shadow: 0 18px 42px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.018);
}
.notification-template-card.is-rule-disabled { opacity: .72; }
.notification-template-card.is-rule-disabled[open] { opacity: 1; }
.notification-template-card summary {
    grid-template-columns: 10px minmax(0,1fr) auto;
    min-height: 104px;
    padding: 15px;
    outline: none;
    user-select: none;
}
.notification-template-card summary:focus-visible { box-shadow: inset 0 0 0 2px rgba(246,197,67,.38); }
.notification-template-card summary:hover .notification-template-expander { border-color: rgba(246,197,67,.35); background: rgba(246,197,67,.06); }
.notification-template-card summary:hover .notification-template-expander::before,
.notification-template-card summary:hover .notification-template-expander::after { background: #f2cf62; }
.notification-template-card[open] .notification-template-expander {
    border-color: rgba(246,197,67,.38);
    background: rgba(246,197,67,.07);
}
.notification-template-card[open] .notification-template-expander::before { background: #f3ce5d; }
.notification-template-card[open] .notification-template-expander::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg) scaleX(.15); }
.notification-template-toggle-state {
    box-shadow: 0 0 0 4px rgba(102,102,102,.06);
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.notification-template-toggle-state.is-enabled {
    box-shadow: 0 0 0 4px rgba(63,185,80,.075), 0 0 16px rgba(63,185,80,.09);
}
.notification-template-card[open] .notification-template-toggle-state { transform: scale(1.08); }
.notification-template-summary-copy { gap: 3px; }
.notification-template-summary-copy small { color: #858585; }
.notification-template-summary-copy strong { font-size: .88rem; line-height: 1.3; }
.notification-template-summary-copy em { color: #7f7f7f; line-height: 1.42; }
.notification-template-audience {
    width: fit-content;
    margin-top: 4px;
    padding: 3px 7px;
    border: 1px solid #303030;
    border-radius: 999px;
    color: #8d8d8d;
    font-size: .61rem;
    font-weight: 750;
}
.notification-template-summary-meta {
    min-width: 112px;
    align-self: stretch;
    align-content: space-between;
}
.notification-template-badges { display: flex; justify-content: flex-end; gap: 5px; flex-wrap: wrap; }
.notification-template-summary-meta b,
.notification-template-summary-meta i { border: 1px solid rgba(255,255,255,.035); }
.notification-template-disclosure { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.notification-template-disclosure > small { color: #686868; font-size: .61rem; font-weight: 800; }
.notification-template-expander { width: 28px; height: 28px; flex: 0 0 28px; }
.notification-template-editor {
    gap: 11px;
    padding: 14px;
    border-top-color: rgba(246,197,67,.11);
    background: rgba(0,0,0,.1);
    animation: notificationEditorReveal .24s cubic-bezier(.2,.8,.2,1) both;
}
.notification-editor-toggle,
.notification-editor-select,
.notification-template-field input,
.notification-template-field textarea { transition: border-color .17s ease, background .17s ease, box-shadow .17s ease; }
.notification-editor-toggle { min-height: 66px; background: #181818; }
.notification-template-field textarea { min-height: 96px; }
.notification-template-variables code { transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.notification-template-variables code:hover { transform: translateY(-1px); border-color: rgba(246,197,67,.3); background: rgba(246,197,67,.04); }

.notification-rule-savebar {
    overflow: hidden;
    border-color: #3a3a3a;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease;
}
.notification-rule-form[data-dirty="true"] .notification-rule-savebar {
    border-color: rgba(246,197,67,.4);
    background: rgba(28,27,22,.97);
    box-shadow: 0 18px 48px rgba(0,0,0,.34), 0 0 0 1px rgba(246,197,67,.045) inset;
    animation: notificationSavebarWake .32s cubic-bezier(.2,.8,.2,1) both;
}
.notification-rule-form[data-dirty="true"] .notification-rule-savebar > span { color: #d6bc63; }

/* Bell popover */
.center-notification-popover {
    border-color: #3a3a3a;
    background:
        radial-gradient(circle at 100% 0, rgba(246,197,67,.07), transparent 28%),
        rgba(22,22,22,.985);
    box-shadow: 0 30px 88px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.018) inset;
    backdrop-filter: blur(20px) saturate(1.08);
    -webkit-backdrop-filter: blur(20px) saturate(1.08);
}
.center-notification-list { scrollbar-width: thin; scrollbar-color: #404040 transparent; }
.center-notification-item {
    --notification-rest-opacity: 1;
    position: relative;
    opacity: 0;
    transform: translateY(-5px);
    animation: notificationFeedItemIn .24s cubic-bezier(.2,.8,.2,1) forwards;
    animation-delay: var(--notification-delay, 0ms);
    transition: background .15s ease, opacity .15s ease, transform .15s ease;
}
.center-notification-item::before {
    content: "";
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: 0;
    width: 2px;
    border-radius: 999px;
    background: transparent;
}
.center-notification-item.is-unread::before { background: #6da7ff; }
.center-notification-item.is-unread[data-severity="warning"]::before { background: #f6c543; }
.center-notification-item.is-unread[data-severity="critical"]::before { background: #f06a67; box-shadow: 0 0 12px rgba(240,106,103,.16); }
.center-notification-item:hover { transform: translateX(2px); background: rgba(255,255,255,.035); }
.center-notification-item.is-read { --notification-rest-opacity: .7; opacity: .7; }
.center-notification-item-icon { border: 1px solid rgba(121,168,255,.12); }
.center-notification-item[data-severity="warning"] .center-notification-item-icon { border-color: rgba(246,197,67,.16); }
.center-notification-item[data-severity="critical"] .center-notification-item-icon { border-color: rgba(240,106,103,.17); }
.center-notification-item-dot { box-shadow: 0 0 0 4px rgba(246,197,67,.05); }

/* Full notification center */
.notification-page-header {
    background:
        radial-gradient(circle at 91% 10%, rgba(246,197,67,.13), transparent 30%),
        radial-gradient(circle at 70% 100%, rgba(109,167,255,.035), transparent 30%),
        linear-gradient(135deg, #1d1d1d, #141414);
}
.notification-stat { overflow: hidden; position: relative; }
.notification-stat::after {
    content: "";
    position: absolute;
    width: 70px;
    height: 70px;
    right: -38px;
    bottom: -42px;
    border-radius: 50%;
    background: rgba(255,255,255,.025);
    transition: transform .2s ease, background .2s ease;
}
.notification-stat:hover::after { transform: scale(1.45); background: rgba(246,197,67,.045); }
.notification-card {
    --notification-rest-opacity: 1;
    opacity: 0;
    transform: translateY(7px);
    animation: notificationPageCardIn .28s cubic-bezier(.2,.8,.2,1) forwards;
    animation-delay: var(--notification-delay, 0ms);
}
.notification-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.018), transparent 65%);
    transform: translateX(-100%);
    transition: transform .6s ease;
}
.notification-card:hover::after { transform: translateX(100%); }
.notification-card.is-read { --notification-rest-opacity: .68; opacity: .68; }
.notification-card.is-unread { box-shadow: inset 16px 0 34px -30px rgba(109,167,255,.38); }
.notification-card.notification-warning.is-unread { box-shadow: inset 16px 0 34px -30px rgba(246,197,67,.42); }
.notification-card.notification-critical.is-unread { box-shadow: inset 16px 0 34px -30px rgba(240,106,103,.48); }

/* Notification toasts intentionally use their own stack so server flash messages never overlap them. */
.center-notification-toast-stack {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 2147482900;
    display: flex;
    width: min(410px, calc(100vw - 36px));
    flex-direction: column-reverse;
    gap: 10px;
    pointer-events: none;
}
.center-notification-toast-stack .center-toast {
    --toast-accent: #6da7ff;
    --toast-accent-rgb: 109, 167, 255;
    position: relative;
    grid-template-columns: 40px minmax(0,1fr);
    min-height: 82px;
    padding: 14px 42px 16px 14px;
    overflow: hidden;
    border: 1px solid rgba(var(--toast-accent-rgb), .32);
    border-radius: 17px;
    background:
        linear-gradient(135deg, rgba(var(--toast-accent-rgb), .095), transparent 48%),
        rgba(22,22,22,.97);
    box-shadow: 0 22px 60px rgba(0,0,0,.48), 0 0 28px rgba(var(--toast-accent-rgb), .055);
    backdrop-filter: blur(18px) saturate(1.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
    transform-origin: right bottom;
    animation: notificationToastIn .3s cubic-bezier(.16,.84,.32,1.15) both;
}
.center-notification-toast-stack .center-toast-warning { --toast-accent: #f6c543; --toast-accent-rgb: 246,197,67; }
.center-notification-toast-stack .center-toast-critical { --toast-accent: #f06a67; --toast-accent-rgb: 240,106,103; }
.center-notification-toast-stack .center-toast.is-leaving { animation: notificationToastOut .26s ease forwards; }
.center-notification-toast-stack .center-toast-icon {
    border: 1px solid rgba(var(--toast-accent-rgb), .3);
    background: rgba(var(--toast-accent-rgb), .11);
    color: var(--toast-accent);
    box-shadow: inset 0 0 18px rgba(var(--toast-accent-rgb), .045);
}
.center-notification-toast-stack .center-toast-copy strong { padding-right: 2px; color: #f7f7f7; }
.center-notification-toast-stack .center-toast-copy span { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.center-notification-toast-stack .center-toast-copy small { color: #858585; }
.center-notification-toast-stack .center-toast-close { color: #8f8f8f; }
.center-notification-toast-stack .center-toast-close:hover { color: #fff; background: rgba(var(--toast-accent-rgb), .1); }
.center-toast-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--toast-accent), rgba(var(--toast-accent-rgb), .28));
    transform-origin: left center;
    animation: notificationToastProgress var(--toast-duration, 5000ms) linear forwards;
}
.center-toast.is-paused .center-toast-progress { animation-play-state: paused; }
.center-notification-toast-stack .center-toast:hover { border-color: rgba(var(--toast-accent-rgb), .48); }

@keyframes notificationEditorReveal {
    from { opacity: 0; transform: translateY(-7px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes notificationSavebarWake {
    from { transform: translateY(4px); }
    to { transform: translateY(0); }
}
@keyframes notificationFeedItemIn {
    to { opacity: var(--notification-rest-opacity, 1); transform: translateY(0); }
}
@keyframes notificationPageCardIn {
    to { opacity: var(--notification-rest-opacity, 1); transform: translateY(0); }
}
@keyframes notificationToastIn {
    from { opacity: 0; transform: translate3d(18px, 10px, 0) scale(.965); }
    to { opacity: 1; transform: translate3d(0,0,0) scale(1); }
}
@keyframes notificationToastOut {
    from { opacity: 1; transform: translate3d(0,0,0) scale(1); }
    to { opacity: 0; transform: translate3d(20px,8px,0) scale(.97); }
}
@keyframes notificationToastProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}
@keyframes notificationLiveDot {
    0%, 100% { box-shadow: 0 0 0 4px rgba(85,185,120,.08); }
    50% { box-shadow: 0 0 0 7px rgba(85,185,120,.02); }
}
@keyframes notificationBreakPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .72; transform: scale(.9); }
}

@media (max-width: 1100px) {
    .notification-channel-grid,
    .notification-preference-options,
    .notification-template-grid { grid-template-columns: 1fr; }
    .notification-sla-window { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .notification-settings-heading { align-items: stretch; flex-direction: column; }
    .notification-scope-counter { width: fit-content; justify-items: start; }
    .notification-personal-scope { align-items: flex-start; flex-direction: column; }
    .notification-channel-card.notification-toggle-row { grid-template-columns: 36px minmax(0,1fr); }
    .notification-channel-card.notification-toggle-row > input { grid-column: 2; justify-self: start; }
    .notification-preference-footer { align-items: stretch; flex-direction: column; }
    .notification-preference-footer .button { width: 100%; min-width: 0; }
    .notification-sla-timeline { grid-template-columns: 1fr; }
    .notification-sla-timeline::before { display: none; }
    .notification-template-card summary { grid-template-columns: 10px minmax(0,1fr); }
    .notification-template-summary-meta { grid-column: 2; min-width: 0; align-content: normal; gap: 8px; }
    .notification-template-badges,
    .notification-template-disclosure { justify-content: flex-start; }
    .notification-template-controls { grid-template-columns: 1fr; }
    .center-notification-toast-stack { right: 12px; left: 12px; bottom: 12px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .center-notifications.has-unread .center-notification-bell,
    .center-notifications.has-unread .center-notification-bell::after,
    .notification-personal-shift.is-break > i,
    .notification-live-badge.is-active i,
    .notification-template-editor,
    .notification-rule-form[data-dirty="true"] .notification-rule-savebar,
    .center-notification-item,
    .notification-card,
    .center-notification-toast-stack .center-toast,
    .center-notification-toast-stack .center-toast.is-leaving,
    .center-toast-progress {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0ms !important;
    }
}
html.center-profile-reduce-motion .center-notifications.has-unread .center-notification-bell,
html.center-profile-reduce-motion .center-notifications.has-unread .center-notification-bell::after,
html.center-profile-reduce-motion .notification-personal-shift.is-break > i,
html.center-profile-reduce-motion .notification-live-badge.is-active i,
html.center-profile-reduce-motion .notification-template-editor,
html.center-profile-reduce-motion .notification-rule-form[data-dirty="true"] .notification-rule-savebar,
html.center-profile-reduce-motion .center-notification-item,
html.center-profile-reduce-motion .notification-card,
html.center-profile-reduce-motion .center-notification-toast-stack .center-toast,
html.center-profile-reduce-motion .center-toast-progress {
    animation: none !important;
    transition-duration: .01ms !important;
}

@media (prefers-reduced-motion: reduce) {
    .center-notification-item,
    .notification-card {
        opacity: var(--notification-rest-opacity, 1) !important;
        transform: none !important;
    }
}
html.center-profile-reduce-motion .center-notification-item,
html.center-profile-reduce-motion .notification-card {
    opacity: var(--notification-rest-opacity, 1) !important;
    transform: none !important;
}
