/* ============================================================
   Admin Broadcasts UI
   ============================================================ */
.bcast-shell { display: grid; gap: 16px; }
.bcast-head {
    display: flex; justify-content: space-between; align-items: end; gap: 16px;
    flex-wrap: wrap;
}
.bcast-head h2 { margin: 0; }
.bcast-head p { margin: 4px 0 0; color: var(--notif-muted, #5B6470); }

.bcast-loading { padding: 36px; text-align: center; color: var(--notif-muted); }

.bcast-list { display: grid; gap: 10px; }
.bcast-row {
    display: grid; grid-template-columns: 1fr auto; gap: 16px;
    padding: 16px; background: var(--notif-bg-elev, #fff);
    border: 1px solid var(--notif-border, rgba(15,25,40,.08));
    border-radius: 14px;
}
.bcast-row-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bcast-row-title h3 { margin: 0; font-size: 16px; }
.bcast-row-msg { color: var(--notif-muted); font-size: 14px; margin: 6px 0 8px; }
.bcast-row-meta, .bcast-row-stats {
    display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--notif-muted);
}
.bcast-row-stats { margin-top: 8px; }
.bcast-row-stats span {
    background: rgba(15,25,40,.06); padding: 3px 8px; border-radius: 999px;
}
[data-theme="dark"] .bcast-row-stats span { background: rgba(255,255,255,.06); }
.bcast-row-r { display: flex; flex-direction: column; gap: 6px; align-items: stretch; min-width: 130px; }
@media (max-width: 640px) { .bcast-row { grid-template-columns: 1fr; } .bcast-row-r { flex-direction: row; } }

.bcast-pill {
    display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px;
    background: rgba(15,25,40,.06); color: var(--notif-muted); text-transform: capitalize;
}
.bcast-pill-sent      { background: rgba(16,185,129,.12); color: #10B981; }
.bcast-pill-scheduled { background: rgba(37,99,235,.12);  color: #2563EB; }
.bcast-pill-queued    { background: rgba(245,158,11,.14); color: #F59E0B; }
.bcast-pill-failed    { background: rgba(220,38,38,.14);  color: #DC2626; }
.bcast-pill-draft     { background: rgba(15,25,40,.10); }

.bcast-tag {
    display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px;
    background: rgba(0,168,89,.10); color: var(--notif-accent, #00A859);
    text-transform: capitalize;
}
.bcast-tag.tone-high, .bcast-tag.tone-urgent { background: rgba(245,158,11,.14); color: #F59E0B; }
.bcast-tag.tone-critical { background: rgba(220,38,38,.14); color: #DC2626; }

/* Composer */
.bcast-form { display: grid; gap: 14px; padding: 4px 2px 8px; }
.bcast-form h2 { margin: 0 0 4px; }
.bcast-grid {
    display: grid; gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.bcast-grid-full { grid-column: 1 / -1; }
.bcast-form label { display: grid; gap: 4px; font-size: 13px; color: var(--notif-muted); }
.bcast-form input, .bcast-form textarea, .bcast-form select {
    padding: 10px 12px; border-radius: 10px;
    border: 1px solid var(--notif-border); background: var(--notif-bg, #fff);
    color: var(--notif-text); font-size: 14px;
}
.bcast-form input:focus, .bcast-form textarea:focus, .bcast-form select:focus {
    outline: none; border-color: var(--notif-accent, #00A859);
    box-shadow: 0 0 0 3px rgba(0,168,89,.15);
}
.bcast-form fieldset { border: 1px solid var(--notif-border); border-radius: 12px; padding: 10px 12px; }
.bcast-form legend { padding: 0 6px; font-size: 13px; color: var(--notif-muted); }
.bcast-chans { display: flex; gap: 10px; flex-wrap: wrap; }
.bcast-chan {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px; border: 1px solid var(--notif-border); border-radius: 10px;
    cursor: pointer; font-size: 13px;
}
.bcast-form-actions { display: flex; gap: 10px; justify-content: end; }

.bcast-preview { margin-top: 4px; }
.bcast-preview h4 { margin: 0 0 8px; font-size: 13px; color: var(--notif-muted); text-transform: uppercase; letter-spacing: .04em; }
.bcast-prev-grid {
    display: grid; gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.bcast-prev-card { background: var(--notif-bg, #fff); border: 1px solid var(--notif-border); border-radius: 12px; padding: 10px; }
.bcast-prev-label { display: block; font-size: 11px; color: var(--notif-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.bcast-prev-push { background: #0E1116; color: #fff; border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.bcast-prev-push-head { display: flex; align-items: center; gap: 8px; font-size: 11px; opacity: .75; }
.bcast-prev-push-head img { width: 18px; height: 18px; border-radius: 4px; }
.bcast-prev-push-title { font-weight: 700; margin-top: 4px; }
.bcast-prev-push-body { opacity: .85; }
.bcast-prev-modal { padding: 8px 2px; display: grid; gap: 8px; }
.bcast-prev-modal .muted { color: var(--notif-muted); margin: 0; font-size: 13px; }
