/* Configurações → Botões do menu (25/11). Usado por js/menubuttons.js. Tudo escopado em #bmn-root (seção) e .bm-modal (janela do meio). */
#bmn-root * { min-width: 0; }
#bmn-root .bm-ch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
html.pele #bmn-root .pr-seg, html.pele .bm-modal .pr-seg { min-height: 44px; }
#bmn-root .bm-ch .pr-seg, html.pele #bmn-root .bm-ch .pr-seg { width: 100%; min-height: 48px; font-size: 14px; }
#bmn-root .bm-ch .pr-seg i { font-size: 17px; }
#bmn-root .bm-state { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; padding: 12px 0; }
#bmn-root .bm-state-t { flex: 1 1 14rem; min-width: 0; }
#bmn-root .bm-state-t b { display: block; font-size: 14px; font-weight: 600; color: rgb(var(--fg)); }
#bmn-root .bm-state-t > span { display: block; font-size: 13px; color: rgb(var(--muted)); margin-top: 2px; line-height: 1.4; }
#bmn-root .bm-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: middle; }
#bmn-root .bm-view { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
#bmn-root .bm-view .pr-seg { width: 100%; }
#bmn-root .bm-layout { display: block; }
@media (max-width: 1099px) { #bmn-root .bm-layout[data-view="edit"] .bm-prev { display: none; } #bmn-root .bm-layout[data-view="prev"] .bm-edit { display: none; } }
@media (min-width: 1100px) {
    #bmn-root .bm-view { display: none; }
    #bmn-root .bm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
    #bmn-root .bm-prev { position: sticky; top: 12px; }
}
#bmn-root .bm-hint { font-size: 13px; color: rgb(var(--muted)); line-height: 1.45; margin: 4px 0 10px; }
#bmn-root .bm-list { border: 1px solid rgb(var(--line) / .6); border-radius: 12px; overflow: hidden; position: relative; }
#bmn-root .bm-it { position: relative; background: rgb(var(--surface)); border-top: 1px solid rgb(var(--line) / .5); }
#bmn-root .bm-it:first-child { border-top: 0; }
#bmn-root .bm-it.dragging { z-index: 5; background: rgb(var(--surface2)); box-shadow: 0 12px 30px -10px rgb(0 0 0 / .55); border-radius: .75rem; }
#bmn-root .bm-it.flash { background: rgb(var(--accent) / .12); transition: background .6s; }
#bmn-root .bm-it.bad { box-shadow: inset 3px 0 0 #ef4444; }
#bmn-root .bm-row { display: flex; align-items: center; gap: 6px; padding: 6px; min-height: 64px; }
#bmn-root .bm-h { width: 44px; height: 48px; flex-shrink: 0; border-radius: .7rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    color: rgb(var(--muted)); background: rgb(var(--surface2) / .6); border: 1px solid rgb(var(--line) / .6); cursor: grab; touch-action: none; user-select: none; }
#bmn-root .bm-h b { font-size: 15px; font-weight: 800; color: rgb(var(--fg)); line-height: 1; font-variant-numeric: tabular-nums; }
#bmn-root .bm-h i { font-size: 11px; }
#bmn-root .bm-it.dragging .bm-h { cursor: grabbing; color: rgb(var(--accent)); border-color: rgb(var(--accent)); }
#bmn-root .bm-name { flex: 1; min-width: 0; min-height: 48px; display: flex; flex-direction: column; justify-content: center; text-align: left; padding: 4px 6px; border-radius: .6rem; }
#bmn-root .bm-name:hover { background: rgb(var(--fg) / .03); }
#bmn-root .bm-name b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; color: rgb(var(--fg)); overflow-wrap: anywhere; }
#bmn-root .bm-name small { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-size: 12px; line-height: 1.3; color: rgb(var(--muted)); margin-top: 2px; }
#bmn-root .bm-name small i { width: 14px; text-align: center; flex-shrink: 0; }
#bmn-root .bm-it.off .bm-name b { color: rgb(var(--muted)); }
#bmn-root .bm-tag, .bm-modal .bm-tag { font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: rgb(var(--surface2)); color: rgb(var(--muted)); white-space: nowrap; }
.bm-msg { font-size: 12.5px; line-height: 1.35; margin-top: 3px; display: flex; gap: 6px; align-items: flex-start; }
.bm-msg i { margin-top: 2px; }
.bm-msg.e { color: #f87171; } .bm-msg.w { color: #f59e0b; }
body[data-dashboard-theme="light"] .bm-msg.e { color: #dc2626; } body[data-dashboard-theme="light"] .bm-msg.w { color: #b45309; }
#bmn-root .bm-arr { width: 44px; height: 44px; flex-shrink: 0; border-radius: .7rem; display: none; align-items: center; justify-content: center; color: rgb(var(--fg)); background: rgb(var(--surface2)); border: 1px solid rgb(var(--line) / .6); }
#bmn-root .bm-arr:disabled { opacity: .3; cursor: not-allowed; }
@media (min-width: 480px) { #bmn-root .bm-arr { display: flex; } }
.bm-swl { width: 52px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; }
.bm-swl.lock { cursor: not-allowed; }
.bm-swl.lock .pr-sw { opacity: .55; }
.bm-swl .bm-lk { position: absolute; right: 0; top: 2px; font-size: 11px; color: rgb(var(--muted)); }
#bmn-root .bm-more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 0 6px 8px 56px; }
@media (max-width: 479px) { #bmn-root .bm-more { padding-left: 6px; } }
#bmn-root .bm-more button { min-height: 44px; border-radius: .7rem; font-size: 12.5px; font-weight: 600; color: rgb(var(--fg)); background: rgb(var(--surface2)); border: 1px solid rgb(var(--line) / .6); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; line-height: 1.1; }
#bmn-root .bm-more button:disabled { opacity: .35; }
#bmn-root .bm-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
#bmn-root .bm-count { font-size: 13px; color: rgb(var(--muted)); }
#bmn-root .bm-count b { color: rgb(var(--fg)); }
#bmn-root .bm-gerr { margin-top: 10px; padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.45; color: #f87171; background: rgb(239 68 68 / .08); border: 1px solid rgb(239 68 68 / .3); }
body[data-dashboard-theme="light"] #bmn-root .bm-gerr { color: #b91c1c; }
#bmn-root .bm-rules { font-size: 13px; color: rgb(var(--muted)); line-height: 1.5; padding: 4px 0 10px 18px; list-style: disc; }
#bmn-root .bm-rules li { margin-top: 3px; } #bmn-root .bm-rules b { color: rgb(var(--fg)); font-weight: 600; }
#bmn-root details.bm-rd > summary { min-height: 44px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: rgb(var(--fg)); list-style: none; }
#bmn-root details.bm-rd > summary::-webkit-details-marker { display: none; }

/* celular de prévia */
#bmn-root .ph { width: 100%; max-width: 340px; margin: 0 auto; border-radius: 30px; padding: 7px; background: #0a0a0a; border: 1px solid rgb(var(--line)); box-shadow: 0 24px 60px -30px rgb(0 0 0 / .7); }
#bmn-root .ph-scr { border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; height: clamp(480px, 70dvh, 620px); font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
#bmn-root .ph-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; flex-shrink: 0; }
#bmn-root .ph-ava { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: #fff; flex-shrink: 0; }
#bmn-root .ph-tt b { display: block; font-size: 15px; line-height: 1.2; }
#bmn-root .ph-tt span { display: block; font-size: 12px; opacity: .7; }
#bmn-root .ph-body { flex: 1; overflow-y: auto; padding: 10px 10px 14px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
#bmn-root .ph-bot { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
#bmn-root .ph-bot .inp { flex: 1; height: 38px; border-radius: 19px; font-size: 13px; display: flex; align-items: center; padding: 0 14px; opacity: .8; }
#bmn-root .ph-day { align-self: center; font-size: 12px; padding: 3px 10px; border-radius: 8px; }
#bmn-root .ph-note { align-self: stretch; font-size: 12.5px; line-height: 1.4; padding: 8px 10px; border-radius: 10px; background: rgb(245 158 11 / .16); color: #fbbf24; border: 1px solid rgb(245 158 11 / .35); }
#bmn-root .bm-light .ph-note { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
#bmn-root .ph-cap { font-size: 12.5px; color: rgb(var(--muted)); text-align: center; margin-top: 8px; }
/* WhatsApp */
#bmn-root .bm-scr-wa { --wbg: #0b141a; --wtop: #202c33; --wb: #202c33; --wfg: #e9edef; --wmu: #8696a0; --wgr: #00a884; --wln: rgb(255 255 255 / .08); background: var(--wbg); color: var(--wfg); }
#bmn-root .bm-scr-wa.bm-light { --wbg: #efeae2; --wtop: #f0f2f5; --wb: #ffffff; --wfg: #111b21; --wmu: #667781; --wgr: #008069; --wln: rgb(0 0 0 / .08); }
#bmn-root .bm-scr-wa .ph-top, #bmn-root .bm-scr-wa .ph-bot { background: var(--wtop); } #bmn-root .bm-scr-wa .ph-ava { background: #25d366; }
#bmn-root .bm-scr-wa .ph-bot .inp, #bmn-root .bm-scr-wa .ph-day { background: var(--wb); color: var(--wmu); }
#bmn-root .wa-b { align-self: flex-start; max-width: 88%; background: var(--wb); border-radius: 0 10px 10px 10px; padding: 7px 9px 6px; font-size: 14px; line-height: 1.42; box-shadow: 0 1px 1px rgb(0 0 0 / .15); overflow-wrap: anywhere; }
#bmn-root .wa-b.poll { width: 88%; }
#bmn-root .wa-b .tm, #bmn-root .tg-b .tm { display: block; text-align: right; font-size: 12px; margin-top: 2px; }
#bmn-root .wa-b .tm { color: var(--wmu); }
#bmn-root .wa-sub { font-size: 12.5px; color: var(--wmu); margin: 6px 0 2px; display: flex; align-items: center; gap: 6px; }
#bmn-root .wa-opt { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 0; text-align: left; color: var(--wfg); border-bottom: 1px solid var(--wln); }
#bmn-root .wa-rad { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--wmu); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
#bmn-root .wa-opt.sel .wa-rad { border-color: var(--wgr); background: var(--wgr); }
#bmn-root .wa-opt.sel .wa-rad::after { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 10px; color: #fff; }
#bmn-root .wa-ol { flex: 1; font-size: 14px; overflow-wrap: anywhere; }
#bmn-root .wa-votes { text-align: center; font-size: 13.5px; color: var(--wgr); padding: 8px 0 2px; font-weight: 600; }
/* Telegram */
#bmn-root .bm-scr-tg { --tbg: #0e1621; --ttop: #17212b; --tb: #182533; --tfg: #f5f5f5; --tmu: #7f91a4; --tbt: rgb(255 255 255 / .1); --tlk: #6ab3f3; background: var(--tbg); color: var(--tfg); }
#bmn-root .bm-scr-tg.bm-light { --tbg: #9bb5c9; --ttop: #ffffff; --tb: #ffffff; --tfg: #000; --tmu: #708499; --tbt: rgb(30 50 70 / .55); --tlk: #2481cc; }
#bmn-root .bm-scr-tg .ph-top, #bmn-root .bm-scr-tg .ph-bot { background: var(--ttop); } #bmn-root .bm-scr-tg .ph-ava { background: linear-gradient(135deg, #2aabee, #229ed9); }
#bmn-root .bm-scr-tg .ph-bot .inp { background: rgb(127 145 164 / .14); color: var(--tmu); }
#bmn-root .bm-scr-tg .ph-day { background: rgb(0 0 0 / .25); color: #fff; }
#bmn-root .tg-b { align-self: flex-start; max-width: 90%; background: var(--tb); border-radius: 12px 12px 12px 4px; padding: 7px 10px 5px; font-size: 14px; line-height: 1.42; overflow-wrap: anywhere; }
#bmn-root .tg-b .tm { color: var(--tmu); }
#bmn-root .tg-kb { align-self: stretch; max-width: 100%; display: flex; flex-direction: column; gap: 4px; margin-top: -4px; }
#bmn-root .tg-kr { display: flex; gap: 4px; }
#bmn-root .tg-k { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 6px 10px; border-radius: 9px; background: var(--tbt); color: #fff; font-size: 13.5px; font-weight: 500; line-height: 1.2; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
#bmn-root .tg-k span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#bmn-root .tg-k .lk { position: absolute; top: 4px; right: 5px; font-size: 9px; opacity: .8; }
#bmn-root .tg-k.sel { outline: 2px solid #fff; outline-offset: -2px; }
#bmn-root .tg-dlg { align-self: center; width: 90%; background: var(--ttop); color: var(--tfg); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.4; box-shadow: 0 10px 30px rgb(0 0 0 / .35); }
#bmn-root .tg-dlg b { display: block; margin-bottom: 4px; }
#bmn-root .tg-dlg .u { color: var(--tlk); overflow-wrap: anywhere; font-size: 13px; }
#bmn-root .tg-dlg .bt { display: flex; justify-content: flex-end; gap: 18px; margin-top: 10px; color: var(--tlk); font-weight: 600; font-size: 13.5px; }

/* janela de edição (dentro do #admin-drawer-panel) */
.bm-modal .bm-f { margin-bottom: 16px; }
.bm-modal .bm-f > label, .bm-modal .bm-f > .bm-fl { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; color: rgb(var(--fg)); margin-bottom: 6px; }
.bm-modal .bm-f > label small, .bm-modal .bm-f > .bm-fl small { font-weight: 500; color: rgb(var(--muted)); font-size: 12px; }
.bm-modal .bm-f p.h { font-size: 12.5px; color: rgb(var(--muted)); margin-top: 6px; line-height: 1.45; }
.bm-modal .bm-emo { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; margin-top: 8px; }
.bm-modal .bm-emo button { height: 44px; border-radius: .6rem; font-size: 19px; background: rgb(var(--surface2) / .7); border: 1px solid rgb(var(--line) / .6); }
.bm-modal .bm-fn { display: flex; flex-direction: column; border: 1px solid rgb(var(--line) / .6); border-radius: 12px; overflow: hidden; }
.bm-modal .bm-fn label { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; border-top: 1px solid rgb(var(--line) / .5); cursor: pointer; }
.bm-modal .bm-fn label:first-child { border-top: 0; }
.bm-modal .bm-fn input { width: 18px; height: 18px; accent-color: rgb(var(--accent)); flex-shrink: 0; }
.bm-modal .bm-fn .ic { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: rgb(var(--accent)); background: rgb(var(--accent) / .12); font-size: 13px; }
.bm-modal .bm-fn .tx { flex: 1; min-width: 0; }
.bm-modal .bm-fn .tx b { display: block; font-size: 13.5px; font-weight: 600; color: rgb(var(--fg)); }
.bm-modal .bm-fn .tx small { display: block; font-size: 12px; color: rgb(var(--muted)); line-height: 1.35; }
.bm-modal .bm-fn label.on { background: rgb(var(--accent) / .07); }
.bm-modal .bm-w { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bm-modal .bm-w .pr-seg { width: 100%; }
.bm-modal .bm-tech { margin-top: 4px; font-size: 12.5px; color: rgb(var(--muted)); }
.bm-modal .bm-tech summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.bm-modal .bm-tech code { font-size: 12px; padding: 1px 5px; border-radius: 5px; background: rgb(var(--surface2)); color: rgb(var(--fg)); }
.bm-modal .bm-lg-only { display: none; } @media (min-width: 640px) { .bm-modal .bm-lg-only { display: inline; } }
.bm-modal .bm-x { width: 44px; padding: 0; }
@media (prefers-reduced-motion: reduce) { #bmn-root .bm-it.flash { transition: none; } }
