:root {
    --notify-accent: #08bfa2;
    --notify-accent-strong: #06aa91;
    --notify-blue: #4f6fda;
    --notify-ink: #25303b;
    --notify-muted: #637384;
    --notify-line: rgba(37,48,59,.1);
    --notify-panel: rgba(255,255,255,.86);
    --notify-soft: rgba(239,255,248,.72);
}

.navbar-notification-button {
    align-items: center;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(148,163,184,.28);
    border-radius: 999px;
    color: #536b77;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    height: 44px;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0;
    position: relative;
    transition: background .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
    width: 40px;
}

.navbar-notification-button:hover,
.navbar-notification-button[aria-expanded="true"] {
    background: rgba(255,255,255,.94);
    box-shadow: 0 8px 18px rgba(15,23,42,.10);
    color: #536b77;
    transform: translateY(-1px);
}

.navbar-notification-button svg {
    height: 20px;
    stroke: currentColor;
    width: 20px;
}

.navbar-notification-badge {
    align-items: center;
    background: #ef4444;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    display: flex;
    font-size: 10px;
    font-weight: 700;
    height: 20px;
    justify-content: center;
    min-width: 20px;
    padding: 0 4px;
    position: absolute;
    right: -4px;
    top: -5px;
}

.navbar-notification-badge[hidden],
.notification-panel-backdrop[hidden],
.notification-popup-action[hidden],
.notification-popup-open-list[hidden],
.notification-detail-layer[hidden],
.notification-detail-action[hidden] {
    display: none !important;
}

body.notification-layer-lock {
    overflow: hidden;
}

.notification-panel-backdrop {
    background: rgba(240,247,244,.58);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    height: calc(100vh / var(--site-page-zoom, 1));
    inset: 0;
    opacity: 1;
    position: fixed;
    width: calc(100vw / var(--site-page-zoom, 1));
    z-index: 19;
}

.notification-panel {
    background: var(--notify-panel);
    border: 1px solid rgba(255,255,255,.86);
    border-radius: 20px;
    box-shadow: 0 28px 70px rgba(15,23,42,.14);
    display: grid;
    grid-template-rows: auto minmax(0,1fr);
    max-height: min(690px, calc((100vh / var(--site-page-zoom, 1)) - 94px));
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: fixed;
    right: 28px;
    top: 76px;
    transform: translateY(-10px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
    visibility: hidden;
    width: min(430px, calc((100vw / var(--site-page-zoom, 1)) - 32px));
    z-index: 1211;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.notification-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: opacity .18s ease, transform .18s ease;
    visibility: visible;
}

.notification-panel-head {
    align-items: center;
    /* background: linear-gradient(135deg, rgba(8,191,162,.13), rgba(79,111,218,.07) 58%, rgba(255,255,255,.12)),
        rgba(255,255,255,.68); */
    border-bottom: 1px solid var(--notify-line);
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 18px 18px 16px 20px;
}

.notification-panel-head h2 {
    color: var(--notify-ink);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
}

.notification-panel-head > div:first-child {
    align-items: baseline;
    display: flex;
    gap: 10px;
    min-width: 0;
}

.notification-panel-head p {
    color: var(--notify-muted);
    font-size: 12px;
    margin: 0;
    white-space: nowrap;
}

.notification-panel-head-actions {
    align-items: center;
    display: flex;
    gap: 8px;
}

.notification-panel-head-actions button {
    align-items: center;
    border: 1px solid rgba(37,48,59,.1);
    border-radius: 999px;
    background: rgba(255,255,255,.76);
    color: #536b77;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    min-height: 36px;
    transition: background .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

#notificationReadAll {
    font-size: 13px;
    padding: 0 13px;
    white-space: nowrap;
}

#notificationPanelClose {
    font-size: 22px;
    height: 36px;
    line-height: 1;
    padding: 0;
    width: 36px;
}

.notification-panel-head-actions button:hover {
    background: #fff;
    box-shadow: 0 8px 18px rgba(15,23,42,.10);
    color: var(--notify-ink);
    transform: translateY(-1px);
}

.notification-list {
    display: grid;
    gap: 12px;
    grid-auto-rows: max-content;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px;
    scrollbar-color: rgba(99,115,132,.32) transparent;
}

.notification-list-state {
    align-items: center;
    color: var(--notify-muted);
    display: flex;
    justify-content: center;
    min-height: 160px;
    margin: 0;
    text-align: center;
}

.notification-item {
    min-width: 0;
}

.notification-item-trigger {
    align-items: start;
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(37,48,59,.07);
    border-radius: 16px;
    color: inherit;
    cursor: pointer;
    display: grid;
    font: inherit;
    gap: 12px;
    grid-template-columns: minmax(0,1fr);
    min-height: 118px;
    padding: 13px;
    position: relative;
    text-align: left;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    width: 100%;
}

.notification-item-trigger::after {
    background: var(--notify-accent);
    border-radius: 999px;
    bottom: 13px;
    content: "";
    left: 13px;
    opacity: .18;
    position: absolute;
    top: 13px;
    width: 3px;
}

.notification-item-trigger:hover {
    background: rgba(255,255,255,.92);
    border-color: rgba(37,48,59,.10);
    box-shadow: 0 14px 28px rgba(15,23,42,.09);
    transform: translateY(-1px);
}

.notification-item:not(.is-unread) .notification-item-trigger::after {
    content: none;
}

.notification-item.is-unread .notification-item-trigger {
    background:
        linear-gradient(180deg, rgba(8,191,162,.10), rgba(255,255,255,.68) 42%),
        rgba(255,255,255,.78);
    border-color: rgba(8,191,162,.32);
}

.notification-item.is-unread .notification-item-trigger:hover {
    border-color: rgba(8,191,162,.32);
}

.notification-item.is-unread .notification-item-trigger::after {
    content: none;
}

.notification-item-main {
    display: block;
    min-width: 0;
}

.notification-item-head {
    align-items: center;
    display: flex;
    gap: 8px;
    min-width: 0;
}

.notification-item-type {
    background: rgba(8,191,162,.11);
    border-radius: 999px;
    color: #087f70;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
}

.notification-item-type--system_announcement {
    background: #ff5b73;
    color: #fff;
}

.notification-item-type--website_update {
    background: rgba(79,111,218,.12);
    color: #365faa;
}

.notification-item-type--ordinary_message {
    background: rgba(8,191,162,.11);
    color: #087f70;
}

.notification-item-time {
    color: var(--notify-muted);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    margin-left: auto;
    white-space: nowrap;
}

.notification-item-title {
    color: var(--notify-ink);
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin: 9px 0 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-item-summary {
    color: var(--notify-muted);
    display: -webkit-box;
    font-size: 13px;
    line-height: 1.55;
    min-height: 40px;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.notification-item-status {
    background: rgba(8,191,162,.11);
    border: 0;
    border-radius: 999px;
    color: #087f70;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
}

.notification-item:not(.is-unread) .notification-item-status {
    background: rgba(100,116,139,.10);
    color: #64748b;
}

.notification-popup {
    align-items: center;
    background: rgba(15,23,42,.48);
    border: 0;
    display: none;
    height: calc(100vh / var(--site-page-zoom, 1));
    inset: 0;
    justify-content: center;
    margin: 0;
    max-height: none;
    max-width: none;
    padding: 24px;
    pointer-events: none;
    position: fixed;
    width: calc(100vw / var(--site-page-zoom, 1));
    z-index: 99989;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.notification-popup[data-fallback-open="true"] {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.notification-popup-card {
    background:
        linear-gradient(135deg, rgba(8,191,162,.08), rgba(79,111,218,.06) 42%, rgba(255,255,255,.90) 72%),
        rgba(255,255,255,.88);
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 22px;
    box-shadow: 0 34px 80px rgba(15,23,42,.16);
    display: grid;
    grid-template-columns: minmax(0,1fr);
    max-height: min(720px, calc((100vh / var(--site-page-zoom, 1)) - 48px));
    max-width: 640px;
    overflow: auto;
    padding: 0;
    pointer-events: auto;
    width: min(640px, calc((100vw / var(--site-page-zoom, 1)) - 32px));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.notification-popup-icon {
    align-items: center;
    background: linear-gradient(90deg, var(--notify-accent), #20d08b);
    color: #fff;
    display: flex;
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
    min-height: 92px;
    padding: 26px 30px;
}

.notification-popup-icon h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.22;
    margin: 0;
    overflow-wrap: anywhere;
}

.notification-popup-icon #notificationPopupTitle,
.notification-popup-icon #notificationDetailTitle {
    color: #fff;
}

.notification-popup-type {
    align-self: end;
    background: rgba(8,191,162,.12);
    border-radius: 999px;
    color: #087f70;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    justify-self: start;
    letter-spacing: 0;
    margin: 24px 30px 0;
    padding: 6px 10px;
}

.notification-popup h2 {
    color: var(--notify-ink);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.22;
    margin: 12px 30px 0;
    overflow-wrap: anywhere;
}

.notification-popup-icon + .notification-popup-type + #notificationPopupTitle {
    display: none;
}

.notification-popup-content {
    color: #4f6274;
    font-size: 15px;
    line-height: 1.85;
    margin: 18px 30px 0;
    overflow-wrap: anywhere;
}

.notification-popup-content > h2:first-child {
    display: none;
}

.notification-popup-content p {
    margin: .65em 0;
}

.notification-popup-suppress {
    align-items: center;
    color: var(--notify-muted);
    cursor: pointer;
    display: flex;
    font-size: 14px;
    gap: 8px;
    grid-column: 1;
    grid-row: 4;
    margin: 20px 24px 24px;
}

.notification-popup-suppress input {
    accent-color: var(--notify-accent);
    height: 16px;
    width: 16px;
}

.notification-popup-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    grid-column: 1;
    grid-row: 4;
    margin: 18px 24px 24px;
}

.notification-popup-actions a,
.notification-popup-actions button,
.notification-detail-action,
.notification-detail-done {
    align-items: center;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 500;
    justify-content: center;
    min-height: 40px;
    padding: 10px 18px;
    text-decoration: none;
    transition: background .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

.notification-popup-action,
.notification-detail-action {
    background: rgba(79,111,218,.10);
    border: 1px solid rgba(79,111,218,.16);
    color: #365faa;
}

.notification-popup-close,
.notification-detail-done {
    background: var(--notify-accent);
    border: 0;
    color: #fff;
    box-shadow: 0 12px 24px rgba(8,191,162,.20);
}

.notification-popup-close:hover,
.notification-detail-done:hover {
    background: var(--notify-accent-strong);
    transform: translateY(-1px);
}

.notification-popup-more {
    color: var(--notify-muted);
    font-size: 12px;
    margin: -16px 30px 0;
    text-align: right;
}

.notification-popup-open-list {
    background: transparent;
    border: 0;
    color: var(--notify-accent);
    cursor: pointer;
    display: block;
    font-weight: 700;
    margin: 4px 30px 24px auto;
    min-height: 36px;
    padding: 6px 0;
}

/* Reference modal treatment: blue header, inset white content, simple footer. */
.notification-popup-card {
    background: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(15,23,42,.24);
    grid-template-columns: minmax(0,1fr);
    max-width: 580px;
    overflow-x: hidden;
    overflow-y: auto;
    width: min(580px, calc((100vw / var(--site-page-zoom, 1)) - 32px));
}

.notification-popup-icon {
    background: linear-gradient(105deg, #e9fff7 0%, #83e6d1 48%, #08bfa2 100%);
    border-radius: 0;
    color: #fff;
    display: block;
    grid-column: 1;
    grid-row: 1;
    min-height: 112px;
    overflow: hidden;
    padding: 18px 35px 24px;
    position: relative;
}

.notification-popup-icon::after {
    background: url("./4cf4e52ea2c6414da56ebdaabcce550e.png") center / contain no-repeat;
    content: "";
    filter: brightness(0) invert(1);
    height: 150px;
    opacity: .2;
    position: absolute;
    right: 24px;
    top: 55%;
    transform: translateY(-50%);
    width: 150px;
}

.notification-popup-icon .notification-popup-type {
    background: #ff5b73;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    margin: 3px 0 7px;
    padding: 6px 11px;
    position: relative;
    z-index: 1;
}

.notification-popup-icon #notificationPopupTitle,
.notification-popup-icon #notificationDetailTitle {
    color: #444;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.25;
    margin: 0;
    max-width: 360px;
    position: relative;
    z-index: 1;
}

.notification-popup h2 {
    color: var(--notify-ink);
}

.notification-popup-content {
    background: rgba(255,255,255,1);
    border: 1px solid rgba(8,191,162,.18);
    border-radius: 12px;
    /* box-shadow: 0 10px 28px rgba(8,191,162,.10); */
    color: #4b5563;
    font-size: 14px;
    line-height: 1.75;
    margin: -13px 24px 0;
    padding: 10px 18px 22px;
    position: relative;
    text-align: justify;
    text-align-last: left;
    z-index: 2;
}

.notification-popup-suppress {
    grid-column: 1;
    grid-row: 4;
    margin: 20px 24px 24px 28px;
}

.notification-popup-actions {
    grid-column: 1;
    grid-row: 4;
    margin: 18px 24px 24px 28px;
}

.notification-popup-close {
    background: #08bfa2;
    border-radius: 6px;
    box-shadow: none;
    min-width: 90px;
    min-height: 40px;
    padding: 9px 18px;
}

.notification-popup-close:hover {
    background: #06aa91;
}

.notification-rich-content {
    overflow-wrap: anywhere;
}

.notification-rich-content > :first-child {
    margin-top: 0;
}

.notification-rich-content > :last-child {
    margin-bottom: 0;
}

.notification-rich-content h2 {
    color: var(--notify-ink);
    font-size: 1.35em;
    line-height: 1.4;
    margin: 1.25em 0 .55em;
}

.notification-rich-content h3 {
    color: #334155;
    font-size: 1.15em;
    line-height: 1.45;
    margin: 1.15em 0 .5em;
}

.notification-rich-content ul,
.notification-rich-content ol {
    margin: .75em 0;
    padding-left: 1.6em;
}

.notification-rich-content li {
    margin: .35em 0;
}

.notification-rich-content blockquote {
    background: rgba(8,191,162,.07);
    border-left: 4px solid var(--notify-accent);
    border-radius: 0 10px 10px 0;
    color: #475569;
    margin: 1em 0;
    padding: .8em 1em;
}

.notification-rich-content a {
    color: #365faa;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.notification-rich-content figure {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin: 1.1em 0;
    overflow: hidden;
    padding: 10px;
    text-align: center;
}

.notification-rich-content img,
.notification-rich-content video {
    border-radius: 9px;
    display: block;
    height: auto;
    margin: 0 auto;
    max-width: 100%;
}

.notification-rich-content audio {
    display: block;
    margin: 4px 0;
    max-width: 100%;
    width: 100%;
}

.notification-rich-content figcaption {
    color: var(--notify-muted);
    font-size: 12px;
    line-height: 1.55;
    margin-top: 8px;
}

.notification-rich-content .notification-align-left { text-align: left; }
.notification-rich-content .notification-align-center { text-align: center; }
.notification-rich-content .notification-align-right { text-align: right; }
.notification-popup-content.notification-rich-content .notification-align-center { text-align: left; }
.notification-popup-content.notification-rich-content .notification-align-right {
    text-align: right;
    text-align-last: right;
}
.notification-rich-content .notification-color-red { color: #dc2626; }
.notification-rich-content .notification-color-orange { color: #ea580c; }
.notification-rich-content .notification-color-green { color: #059669; }
.notification-rich-content .notification-color-blue { color: #2563eb; }
.notification-rich-content .notification-color-purple { color: #654ea3; }
.notification-rich-content .notification-indent-1 { margin-left: 1.5em; }
.notification-rich-content .notification-indent-2 { margin-left: 3em; }
.notification-rich-content .notification-indent-3 { margin-left: 4.5em; }
.notification-rich-content .notification-indent-4 { margin-left: 6em; }

.notification-detail-layer {
    align-items: center;
    background: rgba(15,23,42,.48);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: none;
    height: calc(100vh / var(--site-page-zoom, 1));
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    width: calc(100vw / var(--site-page-zoom, 1));
    z-index: 2147483001;
}

.notification-detail-layer.is-open {
    display: flex;
}

.notification-detail-card {
    background: rgba(255,255,255,.9);
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(15,23,42,.14);
    max-height: min(760px, calc((100vh / var(--site-page-zoom, 1)) - 48px));
    max-width: 700px;
    overflow-y: auto;
    padding: 28px;
    width: 100%;
}

.notification-detail-head {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.notification-detail-eyebrow {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.notification-detail-type,
.notification-detail-number {
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
}

.notification-detail-type {
    background: rgba(8,191,162,.11);
    color: #087f70;
}

.notification-detail-number {
    background: rgba(99,115,132,.08);
    color: var(--notify-muted);
}

.notification-detail-close {
    align-items: center;
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(37,48,59,.1);
    border-radius: 10px;
    color: #536b77;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 24px;
    height: 40px;
    justify-content: center;
    line-height: 1;
    min-height: 40px;
    width: 40px;
}

.notification-detail-close:hover {
    background: #fff;
    color: var(--notify-ink);
}

.notification-detail-card h2 {
    color: var(--notify-ink);
    font-size: clamp(23px, 3vw, 30px);
    font-weight: 800;
    line-height: 1.3;
    margin: 18px 0 8px;
    overflow-wrap: anywhere;
}

.notification-detail-time {
    color: var(--notify-muted);
    display: block;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.notification-detail-content {
    border-top: 1px solid var(--notify-line);
    color: #4f6274;
    font-size: 15px;
    line-height: 1.85;
    margin-top: 22px;
    overflow-wrap: anywhere;
    padding-top: 22px;
}

.notification-detail-actions {
    align-items: center;
    border-top: 1px solid var(--notify-line);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 26px;
    padding-top: 20px;
}

.notification-detail-card.notification-popup-card {
    background: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(15,23,42,.24);
    display: grid;
    grid-template-columns: minmax(0,1fr);
    max-height: calc((100vh / var(--site-page-zoom, 1)) - 32px);
    max-width: 580px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
    width: min(580px, calc((100vw / var(--site-page-zoom, 1)) - 32px));
}

.notification-detail-card .notification-detail-content.notification-popup-content {
    border-top: 1px solid rgba(8,191,162,.18);
    margin: -13px 24px 0;
    padding: 10px 18px 22px;
}

.notification-detail-card .notification-detail-actions.notification-popup-actions {
    border-top: 0;
    margin: 18px 24px 24px 28px;
    padding-top: 0;
}

.notification-panel-head-actions button:focus-visible,
.notification-item-trigger:focus-visible,
.notification-popup-close:focus-visible,
.notification-popup-action:focus-visible,
.notification-popup-open-list:focus-visible,
.notification-detail-close:focus-visible,
.notification-detail-action:focus-visible,
.notification-detail-done:focus-visible {
    outline: 3px solid rgba(79,111,218,.25);
    outline-offset: 2px;
}

.site-zoom-transform .notification-detail-layer {
    height: 100vh;
    width: 100vw;
}

.site-zoom-transform .notification-detail-card {
    max-height: min(760px, calc(100vh - 48px));
}

@media (max-width: 767px) {
    .navbar-notification-button {
        height: 40px;
        min-height: 40px;
        width: 40px;
    }

    .notification-panel {
        border-radius: 20px 20px 0 0;
        bottom: 0;
        left: 0;
        max-height: min(78vh, calc(100vh / var(--site-page-zoom, 1)));
        right: auto;
        top: auto;
        transform: translateY(105%);
        width: calc(100vw / var(--site-page-zoom, 1));
    }

    .notification-panel.is-open {
        transform: none;
    }

    .notification-panel-head {
        padding: 16px;
    }

    .notification-list {
        padding: 12px;
    }

    .notification-item-trigger {
        grid-template-columns: minmax(0,1fr);
        min-height: 112px;
        padding: 12px;
    }

    .notification-popup {
        padding: 14px;
    }

    .notification-popup-card {
        border-radius: 20px;
        grid-template-columns: minmax(0,1fr);
        max-height: calc((100vh / var(--site-page-zoom, 1)) - 28px);
        width: calc((100vw / var(--site-page-zoom, 1)) - 28px);
    }

    .notification-popup-icon {
        min-height: 78px;
        padding: 22px 20px;
    }

    .notification-popup-icon h2 {
        font-size: 22px;
    }

    .notification-popup-type {
        margin: 22px 20px 0;
    }

    .notification-popup h2 {
        font-size: 22px;
        margin: 10px 20px 0;
    }

    .notification-popup-content {
        font-size: 14px;
        margin: 16px 20px 0;
    }

    .notification-popup-suppress {
        grid-row: auto;
        margin: 18px 20px 0;
    }

    .notification-popup-actions {
        grid-row: auto;
        margin: 20px 20px 22px;
    }

    .notification-popup-actions > * {
        flex: 1 1 120px;
        text-align: center;
    }

    .notification-detail-layer {
        align-items: flex-end;
        padding: 0;
    }

    .notification-detail-card {
        border-radius: 20px 20px 0 0;
        max-height: min(88dvh, calc(88vh / var(--site-page-zoom, 1)));
        max-width: none;
        padding: 22px 18px max(20px, env(safe-area-inset-bottom));
        width: calc(100vw / var(--site-page-zoom, 1));
    }

    .notification-detail-card.notification-popup-card {
        border-radius: 8px;
        max-height: calc((100vh / var(--site-page-zoom, 1)) - 32px);
        max-width: 580px;
        padding: 0;
        width: min(580px, calc((100vw / var(--site-page-zoom, 1)) - 32px));
    }

    .notification-detail-card h2 {
        font-size: 22px;
    }

    .notification-detail-content {
        font-size: 14px;
        line-height: 1.8;
    }

    .notification-detail-actions > * {
        flex: 1 1 130px;
    }

    .site-zoom-transform .notification-detail-card {
        max-height: 88dvh;
        width: 100vw;
    }
}

.notification-popup-suppress {
    align-self: center;
    grid-column: 1;
    grid-row: 4;
    justify-self: start;
    margin: 20px 24px 24px;
    width: fit-content;
}

.notification-popup-actions {
    align-self: center;
    grid-column: 1;
    grid-row: 4;
    justify-self: stretch;
    margin: 20px 24px 24px 28px;
}

@media (max-width: 520px) {
    .notification-popup-suppress {
        grid-row: auto;
        margin: 18px 20px 0;
    }

    .notification-popup-actions {
        grid-row: auto;
        margin: 18px 20px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .navbar-notification-button,
    .notification-panel,
    .notification-item-trigger,
    .notification-popup-actions a,
    .notification-popup-actions button,
    .notification-detail-card {
        animation: none;
        scroll-behavior: auto;
        transition: none;
    }
}
