.broadcast-admin { color: #fff3dc; }
.broadcast-admin [hidden] { display: none !important; }
.broadcast-tabs, .broadcast-actions, .broadcast-history-actions { display: flex; gap: 12px; margin-bottom: 20px; }
.broadcast-tabs .active { border-color: #ffd36b; box-shadow: 0 0 13px rgba(255, 211, 107, .3); }
.broadcast-layout { display: grid; grid-template-columns: minmax(0, 560px) minmax(280px, 360px); gap: 24px; align-items: start; }
.broadcast-form, .broadcast-preview { min-width: 0; }
.broadcast-form fieldset { min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
.broadcast-form legend, .broadcast-field { display: block; margin-bottom: 9px; color: #c4daf6; font-size: 13px; font-weight: 600; }
.broadcast-form fieldset > .muted { margin: 2px 0 10px; font-size: 12px; }
.broadcast-kind, .broadcast-channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.broadcast-kind label, .broadcast-channels label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 13px; border: 2px solid #c8943a; border-radius: 12px; background: var(--wood-dark); color: #fff3dc; cursor: pointer; }
.broadcast-kind label:has(input:checked), .broadcast-channels label:has(input:checked) { border-color: #ffd36b; box-shadow: 0 0 16px rgba(255, 211, 107, .45); }
.broadcast-kind strong, .broadcast-channels strong { font-family: var(--display); font-size: 15px; }
.broadcast-kind small { flex-basis: 100%; color: #a9bedb; }
.broadcast-channels span { margin-left: auto; color: #ffd36b; font-weight: 700; }
.broadcast-channels small { flex-basis: 100%; color: #ffb547; }
.broadcast-audiences { overflow: hidden; border: 1px solid rgba(216,236,255,.3); border-radius: 14px; background: rgba(6,30,70,.45); }
.broadcast-audiences label { display: flex; align-items: center; min-height: 42px; gap: 10px; padding: 8px 12px; border-bottom: 1px solid rgba(216,236,255,.12); cursor: pointer; }
.broadcast-audiences label:last-child { border-bottom: 0; }
.broadcast-audiences label:has(input:checked) { outline: 1px solid rgba(255,211,107,.55); background: rgba(255,211,107,.1); }
.broadcast-audiences strong { margin-left: auto; color: #ffd36b; }
.broadcast-field input, .broadcast-field textarea, .broadcast-button-row input, .broadcast-button-row select { width: 100%; padding: 11px; border: 2px solid rgba(233,169,46,.7); border-radius: 12px; background: rgba(6,30,70,.6); color: #fff3dc; font: inherit; }
.broadcast-field textarea { min-height: 178px; margin-top: 8px; resize: vertical; }
.broadcast-shortcodes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.broadcast-shortcodes button { padding: 5px 8px; border: 1px solid #c8943a; border-radius: 13px; background: rgba(46,21,7,.55); color: #ffe8a3; font-size: 12px; cursor: pointer; }
.broadcast-help { display: flex; justify-content: space-between; gap: 10px; margin: -2px 0 18px; color: #a9bedb; font-size: 12px; }
.broadcast-help .invalid { color: #ff6a55; }
.broadcast-button-row { display: grid; grid-template-columns: 1fr 110px 35px; gap: 8px; margin-bottom: 8px; }
.broadcast-button-row input[name="url"] { grid-column: 1 / 3; }
.broadcast-button-row button, .broadcast-history-actions button { border: 1px solid #c8943a; border-radius: 9px; background: var(--wood); color: #fff3dc; cursor: pointer; }
.broadcast-later { display: flex; gap: 8px; margin-bottom: 12px; }
.broadcast-actions > * { flex: 1; }
.broadcast-preview { position: sticky; top: 16px; }
.broadcast-preview h3 { margin: 0 0 10px; font-family: var(--display); }
.broadcast-chat { overflow: hidden; border: 2px solid #c8943a; border-radius: 16px; background: #0e1621; }
.broadcast-chat-head { display: flex; align-items: center; gap: 10px; padding: 12px; background: #17212b; }
.broadcast-chat-head b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brass); color: #3a1f06; }
.broadcast-chat-head small { display: block; color: #a9bedb; font-weight: 400; }
.broadcast-bubble { min-height: 90px; margin: 18px 16px 8px; padding: 12px; border-radius: 14px; background: #182533; color: #f5f5f5; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; }
#broadcastPreviewButtons { margin: 0 16px 16px; }
#broadcastPreviewButtons div { padding: 9px; margin-top: 3px; border-radius: 10px; background: rgba(43,82,120,.55); text-align: center; font-weight: 600; }
.broadcast-summary { margin-top: 20px; padding: 12px; border: 2px solid #c8943a; border-radius: 13px; background: rgba(6,30,70,.45); }
.broadcast-summary div { display: flex; justify-content: space-between; padding: 5px 0; }
.broadcast-summary p { margin-bottom: 0; color: #ffb547; font-size: 12px; }
.broadcast-confirm { width: min(460px, 90vw); max-width: 460px; }
.broadcast-confirm #broadcastConfirmSend:not(.scheduled) { background: linear-gradient(#e5352b, #aa1711); color: #fff3dc; border-color: #ffd36b; }
.broadcast-confirm #broadcastConfirmCounts { padding: 12px; border-radius: 10px; background: rgba(6,30,70,.6); }
.broadcast-history { display: grid; gap: 14px; }
.broadcast-history-card { min-height: 146px; padding: 16px; border: 1.5px solid rgba(216,236,255,.3); border-radius: 14px; background: rgba(6,30,70,.45); }
.broadcast-history-card.status-running { border-color: #58c8f0; }
.broadcast-history-top { display: flex; justify-content: space-between; gap: 12px; }
.broadcast-history-top b { padding: 4px 8px; border-radius: 7px; background: var(--brass); color: #3a1f06; font: 11px var(--display); }
.broadcast-history-top b.promo { background: #ac251f; color: #fff3dc; }
.broadcast-history-top strong { color: #ffb547; font: 13px var(--display); }
.status-running .broadcast-history-top strong { color: #58c8f0; }
.status-completed .broadcast-history-top strong { color: #7cf08a; }
.status-completed_with_errors .broadcast-history-top strong { color: #ff6a55; }
.status-cancelled .broadcast-history-top strong { color: #a9bedb; }
.broadcast-history-card h3 { margin: 10px 0 4px; color: #fff3dc; font: 16px var(--display); }
.broadcast-history-card p, .broadcast-history-card small { margin: 5px 0; color: #a9bedb; font-size: 12px; }
.broadcast-history-card progress { width: 100%; height: 14px; accent-color: #58c8f0; }
.broadcast-history-actions { margin: 10px 0 0; }
.broadcast-history-actions button { padding: 7px 12px; }
@media (max-width: 860px) { .broadcast-layout { grid-template-columns: 1fr; } .broadcast-preview { position: static; } }
@media (max-width: 480px) { .broadcast-kind, .broadcast-channels { grid-template-columns: 1fr; } .broadcast-actions { flex-wrap: wrap; } .broadcast-actions > * { flex-basis: 100%; } }
