.notif-badge {
    position: absolute;
    top: -7px;
    inset-inline-start: -7px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.notif-menu {
    width: 360px;
    max-width: calc(100vw - 24px);
    padding: 0;
    overflow: hidden;
}

.notif-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.notif-read-all {
    border: 0;
    background: none;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
}

.notif-read-all:hover {
    text-decoration: underline;
}

.notif-menu-list {
    max-height: 380px;
    overflow-y: auto;
}

.notif-menu-foot {
    display: block;
    padding: 10px;
    border-top: 1px solid var(--line);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.notif-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 14px;
    color: var(--ink);
    text-decoration: none;
    transition: background-color .15s ease;
}

.notif-item + .notif-item {
    border-top: 1px solid var(--line);
}

.notif-item:hover {
    background: var(--primary-tint);
    color: var(--ink);
}

.notif-item.is-unread {
    background: color-mix(in srgb, var(--primary-tint) 55%, transparent);
}

.notif-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.notif-tone-primary {
    background: var(--primary-tint);
    color: var(--primary);
}

.notif-tone-success {
    background: color-mix(in srgb, var(--success) 14%, transparent);
    color: var(--success);
}

.notif-tone-warning {
    background: color-mix(in srgb, var(--warning) 14%, transparent);
    color: var(--warning);
}

.notif-tone-danger {
    background: color-mix(in srgb, var(--danger) 14%, transparent);
    color: var(--danger);
}

.notif-tone-info {
    background: color-mix(in srgb, #0EA5E9 14%, transparent);
    color: #0EA5E9;
}

.notif-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.notif-title {
    font-size: 13.5px;
    font-weight: 700;
}

.notif-body {
    color: var(--muted);
    font-size: 12.5px;
    overflow-wrap: anywhere;
}

.notif-time {
    color: var(--muted);
    font-size: 11.5px;
}

.notif-dot {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 16px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.notif-empty i {
    font-size: 22px;
}

.notif-page-list {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.notif-page-row {
    display: flex;
    align-items: center;
}

.notif-page-row + .notif-page-row {
    border-top: 1px solid var(--line);
}

.notif-page-row .notif-item {
    flex: 1;
    padding: 14px 16px;
}

.notif-page-action {
    padding-inline-end: 14px;
}
