/* POST'D Fan Mail and live moderation — theme/accent reactive */
#postd-broadcast-studio .fm-studio{--fm-accent:var(--accent,#f58ab6);color:var(--bd-text,var(--text,#241b30));}
#postd-broadcast-studio .fm-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:22px 24px;border:1px solid var(--bd-border,var(--stroke));border-radius:16px;background:var(--bd-surface,var(--paper));margin-bottom:14px}
#postd-broadcast-studio .fm-heading small{font:800 10px 'DM Mono',monospace;letter-spacing:.14em;color:var(--bd-muted,var(--muted));}
#postd-broadcast-studio .fm-heading h2{font-size:clamp(23px,2.2vw,32px);letter-spacing:-.05em;margin:6px 0;line-height:1.16}
#postd-broadcast-studio .fm-heading p{font-size:12px;line-height:1.6;margin:0;color:var(--bd-muted,var(--muted));max-width:660px}
#postd-broadcast-studio .fm-heading>span{background:color-mix(in srgb,var(--fm-accent) 20%,transparent);padding:10px 13px;border:1px solid color-mix(in srgb,var(--fm-accent) 60%,transparent);border-radius:99px;white-space:nowrap;font-weight:800;font-size:11px}
#postd-broadcast-studio .fm-studio-grid{display:grid;grid-template-columns:minmax(300px,.8fr) minmax(0,1.2fr);gap:14px;align-items:start}
#postd-broadcast-studio .fm-card{padding:19px;border-radius:15px;background:var(--bd-surface,var(--paper));border:1px solid var(--bd-border,var(--stroke));min-width:0}
#postd-broadcast-studio .fm-card h3{font-size:17px;margin:0 0 16px;letter-spacing:-.035em}
#postd-broadcast-studio .fm-card p{font-size:12px;color:var(--bd-muted,var(--muted));line-height:1.5}
#postd-broadcast-studio .fm-reward-form{display:grid;gap:13px}
#postd-broadcast-studio .fm-reward-form label{display:grid;gap:7px;font-size:11px;font-weight:800}
#postd-broadcast-studio .fm-reward-form label small{display:inline;color:var(--bd-muted,var(--muted));font-weight:500}
#postd-broadcast-studio .fm-reward-form input:not([type=checkbox]),#postd-broadcast-studio .fm-reward-form textarea{width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--bd-border,var(--stroke));background:var(--bd-soft,var(--paper2));color:var(--bd-text,var(--text));border-radius:10px;padding:11px;font:inherit;resize:vertical}
#postd-broadcast-studio .fm-reward-form :is(input,textarea):focus{outline:2px solid var(--fm-accent);outline-offset:2px}
#postd-broadcast-studio .fm-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.55fr);gap:12px}
#postd-broadcast-studio .fm-check{display:flex!important;flex-direction:row;align-items:center;gap:9px;}
#postd-broadcast-studio .fm-check input{width:18px;height:18px;min-width:18px;accent-color:var(--fm-accent);margin:0}
#postd-broadcast-studio .fm-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
#postd-broadcast-studio .fm-actions button,#postd-broadcast-studio .fm-row button,#postd-broadcast-studio .fm-small-actions button{padding:9px 12px;border:1px solid var(--bd-border,var(--stroke));background:var(--bd-soft,var(--paper2));color:var(--bd-text,var(--text));border-radius:9px;font-size:11px;font-weight:750;cursor:pointer}
#postd-broadcast-studio .fm-actions button.fm-primary{background:var(--fm-accent);color:var(--accent-ink,#271c35);border-color:var(--fm-accent)}
#postd-broadcast-studio .fm-row{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}
#postd-broadcast-studio .fm-row h3{margin:0}
#postd-broadcast-studio .fm-list{display:grid;gap:9px;max-height:620px;overflow:auto}
#postd-broadcast-studio .fm-item{display:flex;align-items:center;gap:11px;padding:11px;border:1px solid var(--bd-border,var(--stroke));border-radius:11px;background:var(--bd-soft,var(--paper2));min-width:0}
#postd-broadcast-studio .fm-item>div:nth-child(2),#postd-broadcast-studio .fm-redemption{flex:1;min-width:0}
#postd-broadcast-studio .fm-item strong,#postd-broadcast-studio .fm-item small{display:block;overflow-wrap:anywhere}
#postd-broadcast-studio .fm-item small{font-size:10px;margin-top:3px;color:var(--bd-muted,var(--muted));}
#postd-broadcast-studio .fm-item p{margin:4px 0 0;overflow-wrap:anywhere}
#postd-broadcast-studio .fm-small-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
#postd-broadcast-studio .fm-small-actions .danger{color:#c43a67}
#postd-broadcast-studio .fm-emoji,.fm-popover .fm-emoji{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:10px;background:color-mix(in srgb,var(--accent) 18%,var(--paper));font-size:22px}
#postd-broadcast-studio .fm-queue{margin-top:14px}
#postd-broadcast-studio .fm-empty{padding:15px;border:1px dashed var(--bd-border,var(--stroke));border-radius:10px;font-size:12px}
.fm-open{display:inline-flex;align-items:center;gap:7px;margin:0 0 9px 8px!important;border:1px solid color-mix(in srgb,var(--accent) 50%,var(--stroke));border-radius:11px;padding:7px 11px;font-size:12px;font-weight:800;background:color-mix(in srgb,var(--accent) 16%,var(--paper));color:var(--text);cursor:pointer;vertical-align:middle}
.live-page .chat.live-chat{height:clamp(580px,78vh,940px)!important;min-height:580px!important}
.live-page .chat-log.live-chat-log{min-height:290px!important;flex:1 1 auto;overflow-y:auto}
.live-chat-controls{position:relative}
.fm-popover{position:absolute;bottom:calc(100% - 6px);right:8px;left:8px;z-index:55;max-height:min(66vh,600px);overflow:auto;padding:16px;border-radius:15px;border:1px solid var(--stroke);background:var(--paper);color:var(--text);box-shadow:0 -12px 45px #190e2933}
.fm-popover[hidden]{display:none!important}
.fm-pop-header{display:flex;justify-content:space-between;align-items:start;gap:12px}
.fm-pop-header h3{font-size:20px;line-height:1.15;letter-spacing:-.04em;margin:5px 0 0}
.fm-pop-header span{color:var(--muted);font-size:10px;font-weight:850;letter-spacing:.12em}
.fm-pop-header button{border:1px solid var(--stroke);padding:6px 9px;border-radius:9px;background:var(--paper2);color:var(--text)}
.fm-pop-sub{font-size:11px;color:var(--muted);line-height:1.5;margin:10px 0 12px}
.fm-wallet{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;background:color-mix(in srgb,var(--accent) 12%,var(--paper));border:1px solid color-mix(in srgb,var(--accent) 36%,var(--stroke));border-radius:11px;padding:13px}
.fm-wallet span{font-size:11px;font-weight:750}.fm-wallet strong{font-size:17px}.fm-wallet small{width:100%;font-size:10px;color:var(--muted)}
.fm-pop-rewards{display:grid;gap:8px;margin:12px 0;max-height:360px;overflow:auto}
.fm-pop-reward{display:flex;gap:9px;align-items:center;border:1px solid var(--stroke);background:var(--paper2);padding:10px;border-radius:11px}
.fm-pop-reward>div{flex:1;min-width:0}.fm-pop-reward strong,.fm-pop-reward small,.fm-pop-reward b{display:block}.fm-pop-reward small{font-size:10px;color:var(--muted);margin:4px 0}.fm-pop-reward b{font-size:11px}.fm-pop-reward button{padding:8px 10px;border:0;border-radius:9px;background:var(--accent);color:var(--accent-ink,#22182e);font-size:11px;font-weight:850}.fm-pop-reward button:disabled{opacity:.42;cursor:not-allowed}
.fm-note{font-size:11px;line-height:1.5;color:var(--muted)}.fm-note[data-error="1"]{color:#c73660}
.live-chat .chat-message{position:relative;padding:8px 0;border-bottom:1px solid color-mix(in srgb,var(--stroke) 55%,transparent)}
.fm-mod-actions{display:flex;gap:5px;flex-wrap:wrap;margin:7px 0 0 0}
.fm-mod-actions button{font-size:10px;font-weight:800;padding:4px 7px;border:1px solid var(--stroke);border-radius:7px;background:var(--paper2);color:var(--text);cursor:pointer}.fm-mod-actions button:last-child{color:#c43a67}
.fm-modal-shade{position:fixed;inset:0;z-index:2400;background:#0e0920b9;display:grid;place-items:center;padding:16px}
.fm-modal{display:grid;gap:13px;width:min(430px,100%);max-height:85vh;overflow:auto;background:var(--paper);color:var(--text);border:1px solid var(--stroke);border-radius:16px;padding:22px;box-shadow:0 25px 70px #10092344}
.fm-modal h2{font-size:20px;margin:0}.fm-modal p{font-size:12px;line-height:1.5;color:var(--muted)}.fm-modal label{display:grid;gap:6px;font-weight:750;font-size:12px}
.fm-modal :is(textarea,input){width:100%;box-sizing:border-box;padding:9px;border:1px solid var(--stroke);border-radius:8px;background:var(--paper2);color:var(--text)}
.fm-modal button{border:1px solid var(--stroke);padding:10px;border-radius:9px;background:var(--paper2);color:var(--text);font-weight:750}.fm-modal .fm-primary{background:var(--accent);color:var(--accent-ink,#251c35);border-color:var(--accent)}
/* Compact, branded Deck nav mark — the existing decorative P placeholder is retired. */
#postd-broadcast-studio .v5-brand-mark{background:var(--accent);color:var(--accent-ink,#281b36);border-color:color-mix(in srgb,var(--accent) 58%,var(--v5-border));}
#postd-broadcast-studio .v5-brand-mark svg{width:23px;height:23px}
#postd-broadcast-studio .v5-rail-head{gap:10px}
@media(max-width:940px){.live-page .chat.live-chat{height:clamp(570px,70vh,800px)!important;min-height:570px!important}}
@media(max-width:740px){#postd-broadcast-studio .fm-studio-grid{grid-template-columns:minmax(0,1fr)}#postd-broadcast-studio .fm-heading{padding:16px}#postd-broadcast-studio .fm-heading>span{display:none}#postd-broadcast-studio .fm-item{flex-wrap:wrap}#postd-broadcast-studio .fm-small-actions{width:100%;justify-content:flex-start}}
@media(max-width:480px){.fm-open{margin-left:0!important}.fm-popover{left:3px;right:3px}.live-page .chat.live-chat{height:620px!important;min-height:620px!important}#postd-broadcast-studio .fm-fields{grid-template-columns:1fr}}

/* POSTD_V9_FAN_MAIL_EMOTE_MATCH */
.live-chat-controls #fm-open.fm-open.btn.small.secondary{
  margin:0 0 9px 0!important;
  background:var(--paper);
  border:1px solid var(--stroke);
  color:var(--text);
  border-radius:10px;
  font-size:12px;
  font-weight:700;
  padding:7px 11px;
  box-shadow:none;
  vertical-align:middle;
}
.live-chat-controls #fm-open.fm-open.btn.small.secondary:hover,
.live-chat-controls #fm-open.fm-open.btn.small.secondary[aria-expanded="true"]{
  border-color:var(--accent);
  background:color-mix(in srgb,var(--accent) 12%,var(--paper));
}
#postd-broadcast-studio .bd-rail-icon{
  font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;
  font-size:16px;line-height:1.2;
}
#postd-broadcast-studio .bd-rail-link.active .bd-rail-icon{
  background:color-mix(in srgb,var(--accent) 20%,var(--paper));
}
/* BBCode links inherit the current creator-accent scheme. */
.bio a{color:var(--accent);text-decoration:underline;text-underline-offset:2px}


/* POSTD_V10_MOD_CONFIRM_SPACING */
.fm-confirm-modal {gap:16px;text-align:left;}
.fm-confirm-modal p {margin:0;line-height:1.6;}
.fm-confirm-actions {display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:12px;margin-top:6px;}
.fm-confirm-actions button {min-height:40px;min-width:112px;padding:10px 15px;margin:0!important;cursor:pointer;}
.fm-confirm-actions .fm-danger-confirm {background:#c93460;color:#fff;border-color:#c93460;}
.fm-confirm-actions .fm-danger-confirm:hover {background:#a8274e;border-color:#a8274e;}
.fm-confirm-actions button:focus-visible {outline:2px solid var(--accent,#f58eb3);outline-offset:3px;}
.fm-confirm-actions button:disabled {opacity:.6;cursor:progress;}
@media(max-width:430px){.fm-confirm-actions{gap:9px}.fm-confirm-actions button{flex:1 1 130px;}}

/* POSTD_V15_FAN_MAIL_CLOSE_MATCH */
/* Mirror the Emotes close button's btn small secondary sizing and treatment. */
.fm-pop-header #fm-close.btn.small.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 0;
  width: auto;
  height: auto;
  min-height: 28px;
  padding: 4px 9px;
  margin: 0;
  border: 1px solid var(--stroke);
  border-radius: 11px;
  background: var(--paper);
  color: var(--text);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  box-shadow: none;
  cursor: pointer;
}
.fm-pop-header #fm-close.btn.small.secondary:hover {
  transform: translateY(-2px);
  filter: brightness(.98);
}
.fm-pop-header #fm-close.btn.small.secondary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
