.policy-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
}
.policy-banner.hidden { display: none; }
.policy-banner.policy-ok {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}
.policy-banner.policy-fail {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}
.policy-banner.policy-warn {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 99px;
    background: #f1f5f9;
    color: #64748b;
}
.live-badge.live-active {
    background: #fef2f2;
    color: #dc2626;
}
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
}
.live-active .live-dot {
    background: #ef4444;
    animation: pulse 1.2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}
.broadcast-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.status-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    box-shadow: var(--card-shadow);
}
.status-card.status-ok { border-left: 4px solid #22c55e; }
.status-card.status-fail { border-left: 4px solid #ef4444; }
.status-card.status-run { border-left: 4px solid #3b82f6; }
.status-card.status-pending { border-left: 4px solid #cbd5e1; }
.status-card-label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.status-card-value {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0.35rem 0 0.2rem;
    color: #0f172a;
}
.status-card-meta {
    font-size: 0.82rem;
    color: #64748b;
}
.mini-progress {
    height: 5px;
    background: #e2e8f0;
    border-radius: 99px;
    margin-top: 0.65rem;
    overflow: hidden;
}
.mini-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    transition: width 0.35s ease;
}
.mini-progress-fill.has-fail {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}
.broadcast-panel { margin-bottom: 1.25rem; }
.mode-select {
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 0.85rem;
}
.delivery-table-wrap { max-height: 420px; overflow-y: auto; }
.delivery-ok { color: #16a34a; font-weight: 600; }
.delivery-fail { color: #dc2626; font-weight: 600; }
.delivery-pending { color: #94a3b8; }
.log-tail {
    background: #0f172a;
    color: #e2e8f0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
    line-height: 1.45;
    padding: 1rem;
    border-radius: 0 0 14px 14px;
    max-height: 360px;
    overflow-y: auto;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}
.log-line-ok { color: #86efac; }
.log-line-fail { color: #fca5a5; }
.log-line-sched { color: #93c5fd; }
.log-line-watch { color: #fcd34d; }
.log-line-in { color: #38bdf8; }
.log-line-out { color: #34d399; }
.auto-scroll-label {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
