/* Native V2 Broadcasts. Grid and popovers reuse the .ct-* classes of css/contacts.css; layout follows the width of the area. */
.bc { position: absolute; inset: 0; display: grid; grid-template-columns: 250px minmax(0, 1fr); background: #f1f1f1; font-size: 14px; color: var(--ink); overflow: hidden; }
.bc.off { visibility: hidden; pointer-events: none; }
.bc .ct-loading { grid-column: 1 / -1; }

/* tabs (side column; chips when narrow) */
.bc-tabs { background: #fff; padding: 8px; display: flex; flex-direction: column; gap: 16px; align-content: start; min-height: 0; overflow-y: auto; }
.bc-tab { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: 13.5px; text-decoration: none; }
.bc-tab .wk-i { color: gray; }
.bc-tab:hover { background: #f5f5f5; } .bc-tab.on { background: #f1f1f1; color: var(--deep); }
.bc[data-layout="narrow"] { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
.bc[data-layout="narrow"] .bc-tabs { flex-direction: row; background: none; padding: 12px 16px 0; gap: 12px; }
.bc[data-layout="narrow"] .bc-tab { border: 1px solid #cfcfcf; border-radius: 16px; padding: 4px 14px; gap: 8px; background: #fff; }
.bc[data-layout="narrow"] .bc-tab.on { background: #dfe9e2; }

.bc-main { display: flex; flex-direction: column; gap: 16px; padding: 16px; min-width: 0; min-height: 0; }
.bc[data-layout="narrow"] .bc-main { padding: 12px 8px 8px; }

/* header card */
.bc-head { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; background: #fff; border-radius: 8px; padding: 16px; }
.bc-head.compact { display: flex; gap: 12px; align-items: center; }
.bc-head.compact .bc-add { flex: 1; max-width: 300px; }
.bc-headtext { display: grid; gap: 14px; justify-items: start; }
.bc-art { width: 200px; height: auto; display: block; }
.bc-des { margin: 0; color: gray; font-size: 12.5px; line-height: 1.45; max-width: 480px; }
.bc-headrow { display: flex; gap: 12px; align-items: center; width: 100%; }
.bc-add { flex: 1; max-width: 300px; }
.bc-play { justify-self: center; display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; background: #f3f3f3; color: gray; }
.bc[data-layout="narrow"] .bc-head { grid-template-columns: 1fr; }
.bc-play .wk-i { width: 44px; height: 44px; }
.bc[data-layout="narrow"] .bc-play { display: none; }
.bc[data-layout="narrow"] .bc-add { max-width: none; }

/* campaign grid */
.bc .wg { flex: 1; min-height: 240px; }
.bc .wg .ct-table th { min-width: 0; } .bc .wg .ct-table td { max-width: 320px; }
.bc .wg .ct-table th, .bc .wg .ct-table td { padding: 0 8px; }
.bc-edit { color: #666; } .bc-del { color: #d32f2f; }

/* add dialog */
.bc-dialog { width: min(560px, 94vw); }
.bc-dialog .wk-mbody { gap: 14px; }
.bc-dialog .wk-mhead { position: sticky; top: 0; z-index: 3; background: #fff; }
.bc-prev { display: grid; }
.bc-prev > .wk-stack { background: #f3f3f3; border-radius: 10px; padding: 14px; gap: 12px; }
.bc-use { font-size: 13px; }
.bc-body { background: #e9e9e9; border-radius: 10px; padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; }
.bc-media { width: 100%; max-height: 260px; object-fit: contain; border-radius: 10px; background: #fff; }
.bc-doc { display: inline-flex; align-items: center; gap: 8px; color: var(--green); overflow-wrap: anywhere; font-size: 13px; }
.bc-help { color: var(--muted); font-size: 11.5px; }
.bc-sched { display: grid; gap: 8px; }
.bc-submit { justify-self: start; }

/* delivery view (full screen) */
.bc-full { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: #fff; color: var(--ink); overflow: auto; position: fixed; inset: 0; }
.bc-full[open] { display: block; }
.bc-fullbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; padding: 0 14px; background: var(--green); color: #fff; }
.bc-fullbar h2 { color: #fff; margin: 0; font-size: 18px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.bc-fullbar .wk-ibtn { color: #fff; } .bc-fullbar .wk-ibtn:hover { background: rgba(255, 255, 255, .18); }
.bc-fullbody { padding: 0 40px 24px; display: grid; gap: 14px; }
.bc-switchrow { display: flex; justify-content: flex-end; align-items: center; min-height: 40px; padding-top: 12px; }
@media (min-width: 1001px) { .bc-switchrow { margin-right: -20px; } }
.bc-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0 16px; }
.bc-card { background: #f3f3f3; border-radius: 14px; padding: 14px 16px; min-height: 103px; display: grid; align-content: space-between; gap: 10px; }
.bc-card b { font-size: 28px; font-weight: 400; line-height: 1.2; }
.bc-card small { color: #6b6b6b; font-weight: 600; font-size: 14px; }
.bc-full .wg { background: #f3f3f3; border-radius: 20px; min-height: 320px; position: relative; padding-top: 6px; }
.bc-full .wg .ct-scroll { background: #fff; margin: 0 12px; padding: 0; }
.bc-full .wg .ct-table th { background: #fff; }
.bc-full .wg .ct-table tbody tr:hover { background: #f7fbf6; }
.bc-full .wg .ct-foot { border-top: 0; }
.bc-full .wg-toolbar { padding: 14px 16px; }
.bc-full .wg-toolbar .ct-grow { order: 3; } .bc-full .wg-toolbar h2 { order: 1; font-size: 20px; font-weight: 500; margin: 0 8px 0 0; } .bc-full .wg-toolbar .ct-tool { order: 2; }
.bc-full .ct-pop { position: fixed; }
@media (max-width: 1000px) { .bc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .bc-fullbody { padding: 0 16px 16px; } .bc-cards { margin: 0; } }
@media (max-width: 560px) { .bc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bc-switchwrap { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 28px; }
.bc-switchlbl { position: relative; display: inline-block; width: 40px; height: 22px; cursor: pointer; }
.bc-switchlbl input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.bc-switchlbl i { position: absolute; inset: 0; border-radius: 11px; background: #b9b9b9; transition: background .15s; }
.bc-switchlbl i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.bc-switchlbl input:checked + i { background: var(--green); } .bc-switchlbl input:checked + i::after { transform: translateX(18px); }
.bc-switchlbl input:focus-visible + i { outline: 2px solid #fff; outline-offset: 2px; }
.bc-spin { width: 24px; height: 24px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .5); border-top-color: #fff; animation: bc-rot .8s linear infinite; background: none; } .bc-switchwrap .bc-spin { border-color: #d6d6d6; border-top-color: var(--green); }
@keyframes bc-rot { to { transform: rotate(360deg); } }
.bc-full .wk-toast, .bc .wk-toast { z-index: 2000; }
