/* Go Live as a broadcast (broadcast.js). While hosting or watching, the panel takes the chat's place on the Live stage. */
body.broadcasting #liveScreen #messages,body.broadcasting #liveScreen .composer,body.broadcasting #liveScreen .live-mic-status,body.broadcasting #liveScreen .chat-attachments,
body.broadcasting #liveScreen .story-actions{display:none}
.broadcast-panel{margin-top:auto;display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid var(--line);border-radius:var(--r-compact);background:var(--story-glass);-webkit-backdrop-filter:var(--story-glass-filter);backdrop-filter:var(--story-glass-filter)}
.broadcast-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.broadcast-head b{flex:1 1 auto;min-width:0;font-size:var(--vx-fs-8);line-height:1.3}
.broadcast-head small{font-size:var(--vx-fs-4);color:var(--text-2)}
/* A darker red than --live, so the white LIVE reads at 4.5:1 or better. */
.broadcast-pill{padding:2px 8px;border-radius:var(--r-pill);background:var(--live-fill);color:var(--on-live);font-size:var(--vx-fs-2);font-weight:700;letter-spacing:.06em}
.broadcast-caption{margin:0;font-size:var(--vx-fs-10);line-height:1.45}
.broadcast-caption:empty{display:none}
.broadcast-comments{max-height:22dvh;overflow-y:auto;display:flex;flex-direction:column;gap:4px}
.broadcast-comment{margin:0;font-size:var(--vx-fs-6);line-height:1.4}
.broadcast-comment b{margin-inline-end:4px}
.broadcast-comment.agent b{color:var(--b)}
.broadcast-agent{display:flex;align-items:center;gap:8px;font-size:var(--vx-fs-4);color:var(--text-2)}
.broadcast-bar{display:flex;gap:8px}
.broadcast-bar .field{min-height:44px}
.broadcast-bar .btn{flex:none}
#broadcastStatus{margin:0}
#broadcastStatus:empty{display:none}
/* End live, Leave and Like sit on the right, as the Go live modal's buttons do. */
.broadcast-bar:last-child{justify-content:flex-end}
#broadcastLike.liked{color:var(--pink)}
/* The Go live modal is on the kit sheet's glass: its fill, gloss, blur, edge and shadow. Title, instructions, field,
   message and buttons stand in one column 12px apart. On a touch screen it sits at the bottom, as a sheet does, and
   rises over the keyboard while the field has focus (body.kb-field, index.html). */
.broadcast-modal{position:fixed;inset:0;z-index:65;display:grid;place-items:center;padding:16px;background:var(--scrim)}
.broadcast-modal:focus{outline:none}
.broadcast-modal-box{display:grid;gap:12px;box-sizing:border-box;width:100%;max-width:420px;padding:18px;border:1px solid var(--vx-hair);border-radius:var(--r-panel);background:var(--surface-gloss),var(--glass-modal);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);box-shadow:var(--vx-shadow)}
.broadcast-modal-box>*{margin:0}
#broadcastModalMessage:empty{display:none}
@media (pointer:coarse){.broadcast-modal{place-items:end center;padding-bottom:max(16px,env(safe-area-inset-bottom))}}
body.kb-field .broadcast-modal{bottom:var(--kb-field-lift,0px)}
/* The Go live modal fades in over its scrim, the box scaling up from .96 in the centre; it leaves the same way,
   faster. Visuals only: the mic hold/release and focus run exactly when they did. Reduced motion: fades only. */
.broadcast-modal{transition:opacity 200ms var(--ease-out)}
.broadcast-modal-box{transition:opacity 200ms var(--ease-out),transform 200ms var(--ease-out)}
@starting-style{.broadcast-modal{opacity:0}.broadcast-modal-box{opacity:0;transform:scale(.96)}}
.broadcast-modal.hidden.leaving{display:grid!important;opacity:0;pointer-events:none;transition-duration:150ms}
.broadcast-modal.leaving .broadcast-modal-box{opacity:0;transform:scale(.96);transition-duration:150ms}
@media (prefers-reduced-motion:reduce){.broadcast-modal-box{transition-property:opacity}}
.broadcast-modal-box h3{display:flex;align-items:center;gap:8px}
.broadcast-topic-wrap{display:flex;gap:8px;align-items:flex-start}
.broadcast-topic-wrap textarea{min-height:90px;padding-top:12px}
#broadcastDictate.listening{color:var(--green)}
.broadcast-modal-box .toolbar{display:flex;justify-content:flex-end;gap:8px}
/* The sheet's instructions are a paragraph, so Inter, not the one-line machine voice. */
#broadcastModal h3+.note{font-family:var(--font);font-size:var(--vx-fs-8);font-weight:400;line-height:1.5;color:var(--text-2)}

/* ---- The Go live sheet's options (deep review L1, broadcast.js bcRenderOptions): three labelled rows under the topic,
   kit chips for who can watch and how long, a kit button for the document. The modal steps aside (.is-picking) while
   the Drive's picker, the app's sheet, is open over it. */
.broadcast-options{display:grid;gap:var(--space-3)}
.broadcast-option{display:grid;gap:var(--space-2);min-width:0}
.broadcast-chips{display:flex;flex-wrap:wrap;gap:var(--space-2)}
.broadcast-chip{--verser-chip-height:36px;font-variant-numeric:tabular-nums}
.broadcast-source{display:flex;align-items:center;gap:var(--space-2);min-width:0}
.broadcast-source-name{flex:1 1 auto;min-width:0;overflow:hidden;font-size:var(--font-size-small);font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.broadcast-option-note{color:var(--text-2);font-size:var(--font-size-meta);line-height:1.45}
.broadcast-modal.is-picking{visibility:hidden}

/* ---- The host's recap after the end (bcShowRecap, in the app's sheet): the topic, four counts, the transcript. */
.broadcast-recap{display:grid;gap:var(--space-4)}
.broadcast-recap-topic{margin:0;font-family:var(--display);font-size:var(--font-size-title);line-height:1.25;text-wrap:balance}
.broadcast-recap-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--space-2)}
.broadcast-recap-stat{display:grid;gap:2px;padding:var(--space-3);border:1px solid var(--vx-hair);border-radius:var(--r-compact);background:var(--surface-fill-1)}
.broadcast-recap-stat b{font-family:var(--mono);font-size:var(--font-size-heading);font-weight:600;font-variant-numeric:tabular-nums;line-height:1.1}
.broadcast-recap-stat small{color:var(--text-2);font-size:var(--font-size-meta)}
.broadcast-recap-head{margin:0;font-family:var(--mono);font-size:var(--font-size-meta);font-weight:500;color:var(--text-2)}
.broadcast-recap-lines{display:grid;gap:var(--space-3);margin:0;padding-inline-start:1.4em;font-size:var(--font-size-small);line-height:1.55}
.broadcast-recap-lines li::marker{color:var(--text-2);font-family:var(--mono);font-size:var(--font-size-meta)}
