.alert-feed {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card);
    padding: 22px;
    box-shadow: var(--card-shadow);
}

.alert-feed-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.alert-feed-title-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid color-mix(in oklab, var(--accent) 24%, var(--border));
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
}

.alert-feed h2 {
    margin: 0;
    color: var(--foreground);
    font-size: 18px;
    font-weight: 820;
    letter-spacing: 0;
}

.alert-feed-header p {
    margin: 4px 0 0;
    color: var(--muted-foreground);
    font-size: 13px;
    line-height: 1.5;
}

.alerts-container {
    max-height: min(520px, 58vh);
    overflow-y: auto;
    padding-right: 8px;
}

.alert-empty-state {
    display: grid;
    min-height: 180px;
    place-items: center;
    gap: 6px;
    border: 1px dashed var(--border-strong);
    border-radius: 14px;
    background: color-mix(in oklab, var(--muted) 54%, var(--card));
    padding: 28px;
    color: var(--muted-foreground);
    text-align: center;
}

.alert-empty-state strong {
    color: var(--foreground);
    font-size: 15px;
}

.alert-empty-state span {
    max-width: 360px;
    font-size: 13px;
    line-height: 1.6;
}

.alerts-container::-webkit-scrollbar {
    width: 6px;
}

.alerts-container::-webkit-scrollbar-track {
    background: var(--muted);
    border-radius: 3px;
}

.alerts-container::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 3px;
}

.alerts-container::-webkit-scrollbar-thumb:hover {
    background: var(--muted-foreground);
}

.alert-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 12px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--muted) 42%, var(--card));
    animation: slideIn 0.3s ease;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-item:hover {
    border-color: var(--border-strong);
    background: color-mix(in oklab, var(--accent-soft) 34%, var(--card));
    transform: translateY(-1px);
}

.alert-signal {
    border-left: 3px solid var(--bl-success);
}

.alert-pulse {
    border-left: 3px solid var(--bl-info);
}

.alert-error {
    border-left: 3px solid var(--bl-danger);
}

.alert-info {
    border-left: 3px solid var(--muted-foreground);
}

.alert-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    background: var(--muted);
    color: var(--muted-foreground);
}

.alert-content {
    min-width: 0;
}

.alert-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.alert-symbol {
    min-width: 0;
    overflow: hidden;
    color: var(--foreground);
    font-weight: 700;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alert-time {
    flex: 0 0 auto;
    color: var(--muted-foreground);
    font-size: 12px;
}

.alert-message {
    color: var(--muted-foreground);
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.alert-signal .alert-icon {
    background: var(--bl-success-muted);
    color: var(--bl-success);
}

.alert-pulse .alert-icon {
    background: var(--bl-info-muted);
    color: var(--bl-info);
}

.alert-error .alert-icon {
    background: var(--bl-danger-muted);
    color: var(--bl-danger);
}
