.notification-bell {
    position: relative;
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    color: #475569;
    transition: background-color 160ms ease, color 160ms ease;
}

.notification-bell:hover,
.notification-bell:focus-visible {
    background: #f1f5f9;
    color: #0f172a;
    outline: none;
}

.notification-bell svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.notification-badge {
    position: absolute;
    top: 0.2rem;
    right: 0.15rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.25rem;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 800;
    line-height: 0.85rem;
    text-align: center;
}

.notification-page {
    max-width: 48rem;
    margin: 0 auto;
}

.notification-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.notification-page-kicker {
    margin-bottom: 0.25rem;
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.notification-page-header h1 {
    color: #0f172a;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    line-height: 1.1;
}

.notification-page-header p:last-child {
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.9rem;
}

.notification-stream {
    overflow: hidden;
    border-top: 1px solid #cbd5e1;
    border-bottom: 1px solid #cbd5e1;
    background: #fff;
}

.notification-row {
    display: grid;
    grid-template-columns: 0.25rem minmax(0, 1fr) auto;
    min-height: 5.5rem;
    color: inherit;
    text-decoration: none;
}

.notification-row + .notification-row {
    border-top: 1px solid #e2e8f0;
}

.notification-row:hover,
.notification-row:focus-visible {
    background: #f8fafc;
    outline: none;
}

.notification-row-marker {
    background: transparent;
}

.notification-row.is-unread .notification-row-marker {
    background: #0f766e;
}

.notification-row-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.9rem 1rem;
}

.notification-row-title {
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 650;
}

.notification-row.is-unread .notification-row-title {
    color: #0f172a;
    font-weight: 800;
}

.notification-row-body {
    overflow: hidden;
    color: #475569;
    font-size: 0.84rem;
    line-height: 1.35;
    text-overflow: ellipsis;
}

.notification-row-time {
    color: #94a3b8;
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
}

.notification-row-arrow {
    display: flex;
    align-items: center;
    padding: 0 1rem 0 0.25rem;
    color: #94a3b8;
    font-size: 1.6rem;
}

.notification-empty {
    display: flex;
    min-height: 12rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 2rem;
    color: #64748b;
    text-align: center;
}

.notification-empty strong {
    color: #334155;
}

.notification-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.25rem 0;
    color: #64748b;
    font-size: 0.85rem;
}

.notification-pagination a {
    color: #0f766e;
    font-weight: 700;
}

.web-push-settings {
    display: grid;
    gap: 0.85rem;
}

.web-push-settings-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.web-push-settings-copy h3 {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 750;
}

.web-push-settings-copy p,
.web-push-device-count,
.web-push-ios-hint {
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.4;
}

.web-push-state {
    padding-left: 0.9rem;
    border-left: 3px solid #cbd5e1;
    color: #475569;
    font-size: 0.86rem;
}

.web-push-state[data-tone="success"] {
    border-color: #0f766e;
    color: #0f766e;
}

.web-push-state[data-tone="error"] {
    border-color: #dc2626;
    color: #b91c1c;
}

.web-push-settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.web-push-settings button[disabled] {
    cursor: wait;
    opacity: 0.6;
}

@media (max-width: 640px) {
    .notification-page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .notification-page-header .btn-secondary {
        width: 100%;
    }

    .notification-stream {
        margin-right: -1rem;
        margin-left: -1rem;
        border-right: 0;
        border-left: 0;
    }

    .notification-row-copy {
        padding-right: 0.5rem;
        padding-left: 0.8rem;
    }

    .notification-row-arrow {
        padding-right: 0.8rem;
    }
}
