.live-notify {
    position: relative;
}

.live-notify-btn {
    position: relative;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
    border-radius: 999px;
    padding: 7px 11px;
    min-width: 44px;
    min-height: 36px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
}

.live-notify-btn[aria-expanded="true"] {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.live-notify-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #dc2626;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #ffffff;
}

.live-notify-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(340px, 84vw);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
    padding: 10px;
    display: none;
    z-index: 2000;
}

.live-notify.open .live-notify-panel {
    display: block;
}

.live-notify-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.live-notify-title {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    color: #111827;
}

.live-notify-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.live-notify-action {
    border: 0;
    background: #fff1f2;
    color: #9f1239;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.live-notify-action.secondary {
    background: #f1f5f9;
    color: #334155;
}

.live-notify-list {
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: 320px;
    overflow: auto;
    display: grid;
    gap: 6px;
}

.live-notify-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px;
    background: #ffffff;
}

.live-notify-item.unread {
    border-color: #fca5a5;
    background: #fff7ed;
}

.live-notify-item-title {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    color: #111827;
}

.live-notify-item-message {
    margin: 4px 0 0;
    font-size: 12px;
    color: #374151;
}

.live-notify-item-time {
    margin: 6px 0 0;
    font-size: 10px;
    color: #6b7280;
}

.live-notify-item-link {
    margin-top: 6px;
    display: inline-block;
    font-size: 11px;
    color: #b91c1c;
    font-weight: 700;
    text-decoration: none;
}

.live-notify-empty {
    margin: 0;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    font-size: 12px;
    color: #6b7280;
}

.live-notify-toasts {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 3000;
    display: grid;
    gap: 8px;
}

.live-notify-toast {
    min-width: 260px;
    max-width: min(360px, 88vw);
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fff1f2;
    color: #7f1d1d;
    box-shadow: 0 18px 30px rgba(127, 29, 29, 0.18);
    padding: 10px;
}

.live-notify-toast strong {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
}

.live-notify-toast p {
    margin: 0;
    font-size: 12px;
}

@media (max-width: 768px) {
    .live-notify-panel {
        right: -6px;
    }
}
