/* POST'D V12: standalone full-width Broadcast Desk and unified chat toolbar. */
body:has(#postd-broadcast-studio.v5-deck) main#app,
body:has(#postd-broadcast-studio.v5-deck) .page-column {
  width:100%!important;max-width:none!important;min-width:0!important;
  margin-inline:0!important;
}
body:has(#postd-broadcast-studio.v5-deck) main#app {
  padding:10px clamp(8px,1vw,20px) 24px!important;
}
#postd-broadcast-studio.v5-deck {
  width:100%!important;max-width:none!important;min-width:0;
  margin:0!important;
}
#postd-broadcast-studio.v5-deck .bd-workspace{min-width:0;}
#postd-broadcast-studio.v5-deck .bd-stage-column{min-width:0;}
#postd-broadcast-studio.v5-deck .bd-stage-grid{min-width:0;}
#postd-broadcast-studio.v5-deck .bd-stage-tile canvas{display:block;width:100%;height:auto;aspect-ratio:16/9;}
#postd-broadcast-studio.v5-deck .bd-stage-tile{min-width:0;}
#postd-broadcast-studio.v5-deck .bd-workbench{min-width:0;}
@media (min-width:1600px) {
  #postd-broadcast-studio.v5-deck .bd-workspace {
    grid-template-columns:clamp(232px,15vw,278px) minmax(0,1fr) clamp(280px,20vw,348px);
    gap:14px;
  }
  #postd-broadcast-studio.v5-deck .bd-stage-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
}
@media (min-width:1600px) and (max-width:1799px) {
  #postd-broadcast-studio.v5-deck .bd-workspace{grid-template-columns:224px minmax(0,1fr) 282px;}
}
/* Chat action buttons should form one row without competing baseline/margins. */
.live-chat-controls .postd-chat-actions-v12 {
  display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;
  gap:9px;margin:0 0 10px;min-width:0;
}
.live-chat-controls .postd-chat-actions-v12 > .chat-emote-toggle,
.live-chat-controls .postd-chat-actions-v12 > #fm-open {
  display:inline-flex!important;align-items:center;justify-content:center;
  position:relative;vertical-align:middle;margin:0!important;
  padding:7px 12px!important;min-height:36px;height:36px;
  border:1px solid var(--stroke)!important;
  border-radius:11px!important;
  background:var(--paper)!important;color:var(--text)!important;
  box-shadow:none!important;line-height:1.2;
  font-size:12px!important;font-weight:750!important;
  white-space:nowrap;flex:0 0 auto;
}
.live-chat-controls .postd-chat-actions-v12 > button:hover,
.live-chat-controls .postd-chat-actions-v12 > button:focus-visible {
  border-color:var(--accent)!important;
  background:color-mix(in srgb,var(--accent) 10%,var(--paper))!important;
}
/* Both viewer and bot message deletion dialogs use the same simple actions. */
.fm-modal.fm-confirm-modal{gap:16px;width:min(430px,100%);padding:24px;}
.fm-modal.fm-confirm-modal h2{margin:0;font-size:20px;line-height:1.25;}
.fm-modal.fm-confirm-modal p{margin:0;line-height:1.55;}
.fm-confirm-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;flex-wrap:wrap;margin:4px 0 0;}
.fm-confirm-actions > button{flex:0 0 auto;min-width:113px;min-height:42px;margin:0!important;padding:10px 16px!important;}
.fm-confirm-actions > .fm-danger-confirm{border-color:#c93460!important;background:#c93460!important;color:#fff!important;}
.fm-confirm-actions > .fm-danger-confirm:hover{background:#af2b52!important;border-color:#af2b52!important;}
.fm-confirm-actions > button:disabled{cursor:progress;opacity:.65;}
.fm-modal.fm-confirm-modal #fm-mod-note:empty{display:none;}
.fm-modal.fm-confirm-modal #fm-mod-note[data-error="1"]{padding:10px 12px;border:1px solid color-mix(in srgb,#c93460 35%,var(--stroke));border-radius:9px;}
@media(max-width:450px){.fm-confirm-actions>button{flex:1 1 115px;}}
/* Override earlier V9's higher-specificity Fan Mail bottom margin. */
.live-chat-controls .postd-chat-actions-v12 > #fm-open.fm-open.btn.small.secondary,
.live-chat-controls .postd-chat-actions-v12 > button.chat-emote-toggle.btn.small.secondary {
  margin:0!important;
}
