.notif-back {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-2);
    cursor: pointer;
}

.notif-back:hover {
    background: var(--surface-2);
    color: var(--text);
}

.notif-clear {
    flex-shrink: 0;
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    font-size: 11.5px;
    font-weight: 520;
    color: var(--text-2);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.notif-clear:hover {
    background: var(--surface-2);
    color: var(--text);
}

.notif-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    scrollbar-width: none;
}

.notif-list::-webkit-scrollbar {
    display: none;
}

.notif-item {
    display: block;
    position: relative;
    padding: 10px 12px 10px 20px;
    border-radius: var(--radius-sm);
    color: var(--text-2);
}

.notif-item:hover {
    background: var(--surface-2);
}

.notif-item strong {
    display: block;
    font-size: 13px;
    font-weight: 560;
    color: var(--text);
}

.notif-item span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-3);
}

.notif-item time {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-3);
}

.notif-item.unread::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 15px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--danger);
}

.notif-empty {
    padding: 24px 10px;
    text-align: center;
    font-size: 13px;
    color: var(--text-3);
}

.notif-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 140;
    display: flex;
    flex-direction: column;
    width: min(380px, 92vw);
    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 16px 14px;
    transform: translateX(100%);
    transition: transform 0.22s ease;
}

.notif-drawer.open {
    transform: translateX(0);
}

.notif-drawer[hidden] {
    display: none;
}

.notif-backdrop {
    position: fixed;
    inset: 0;
    z-index: 130;
    background: transparent;
}

.notif-backdrop[hidden] {
    display: none;
}

@media (max-width: 720px) {
    .notif-drawer {
        width: 100%;
        border-left: 0;
    }
}

[data-theme="dark"] .notif-drawer {
    border-left-color: transparent;
}

.notif-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 2px 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

.notif-head strong {
    font-size: 14px;
    font-weight: 600;
    flex: 1;
}

.notif-sk {
    padding: 10px 12px 10px 20px;
}

.notif-sk .sk-circle {
    align-self: flex-start;
    margin-top: 5px;
}
