.guide-widget{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));z-index:9500;font-family:Arial,Helvetica,sans-serif;color:#2b1a18}.guide-widget.is-chat-suppressed{opacity:0;pointer-events:none}.guide-widget__launch{position:relative;display:grid;place-items:center;width:60px;height:60px;padding:0;border:1px solid rgba(255,225,162,.72);border-radius:50%;background:radial-gradient(circle at 32% 27%,#a93858,#7d1733 56%,#4b1022);box-shadow:0 10px 28px rgba(32,12,16,.4),inset 0 1px 0 rgba(255,255,255,.35);color:#fff;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}.guide-widget__launch:hover,.guide-widget__launch:focus-visible{transform:translateY(-3px);box-shadow:0 15px 34px rgba(32,12,16,.48),inset 0 1px 0 rgba(255,255,255,.35);outline:none}.guide-widget__launch:focus-visible{outline:3px solid #f3cf78;outline-offset:3px}.guide-widget__avatar{position:relative;display:grid;place-items:center;width:38px;height:38px;border:2px solid #f3cf78;border-radius:14px 14px 16px 16px;background:#321720;box-shadow:inset 0 0 0 2px rgba(255,255,255,.08)}.guide-widget__avatar::before{content:"";position:absolute;top:10px;left:9px;width:6px;height:6px;border-radius:50%;background:#f3cf78;box-shadow:14px 0 0 #f3cf78}.guide-widget__avatar::after{content:"";position:absolute;bottom:8px;width:14px;height:5px;border-bottom:2px solid #f3cf78;border-radius:50%}.guide-widget__badge{position:absolute;right:-5px;top:-5px;min-width:18px;height:18px;padding:0 4px;box-sizing:border-box;display:grid;place-items:center;border:2px solid #fffaf2;border-radius:999px;background:#43b57d;color:#fff;font:900 9px/1 Arial,sans-serif}.guide-widget__badge:not(.has-count){width:17px;padding:0}.guide-widget__badge.has-count{background:#c42f4e;min-width:22px;height:22px}.guide-widget__badge.is-alerting{animation:hub-badge-pulse 1.15s ease-in-out infinite}.guide-widget__hint{position:absolute;right:70px;white-space:nowrap;padding:9px 11px;border-radius:9px;background:#251714;color:#fffaf2;font-size:.82rem;font-weight:700;box-shadow:0 8px 18px rgba(0,0,0,.25);opacity:0;transform:translateX(5px);pointer-events:none;transition:opacity .18s ease,transform .18s ease}.guide-widget__launch:hover .guide-widget__hint,.guide-widget__launch:focus-visible .guide-widget__hint{opacity:1;transform:translateX(0)}
.guide-widget__panel{position:absolute;right:0;bottom:74px;overflow:hidden;border:1px solid #c99b48;border-radius:20px;background:#fffaf2;box-shadow:0 28px 72px rgba(27,11,14,.46);transform-origin:bottom right;animation:hub-pop .18s ease}.guide-widget__panel[hidden]{display:none}.guide-widget--master .guide-widget__panel--hub{width:min(1180px,calc(100vw - 56px));height:min(780px,calc(100dvh - 118px))}.guide-widget--player .guide-widget__panel--hub{width:min(900px,calc(100vw - 56px));height:min(720px,calc(100dvh - 118px))}.guide-widget__panel--guest{width:min(380px,calc(100vw - 32px))}.hub__head{height:64px;box-sizing:border-box;display:flex;align-items:center;gap:11px;padding:12px 16px;background:linear-gradient(135deg,#7d1733,#4a1124);color:#fff}.hub__head .guide-widget__avatar{width:36px;height:36px;flex:0 0 36px}.hub__head .guide-widget__avatar::before{top:9px;left:8px;width:5px;height:5px;box-shadow:13px 0 0 #f3cf78}.hub__head .guide-widget__avatar::after{bottom:7px}.hub__brand{min-width:0;flex:1;display:grid;gap:2px}.hub__brand strong{font:700 1.08rem/1.1 Georgia,serif}.hub__brand small{font-size:.72rem;opacity:.82;letter-spacing:.03em}.hub__close{width:36px;height:36px;display:grid;place-items:center;padding:0;border:1px solid rgba(255,255,255,.2);border-radius:9px;background:rgba(255,255,255,.1);color:#fff;font:700 1.35rem/1 Arial,sans-serif;cursor:pointer}.hub__close:hover,.hub__close:focus-visible{background:rgba(255,255,255,.22);outline:2px solid #f3cf78}.hub__layout{height:calc(100% - 64px);min-height:0;display:grid;grid-template-columns:280px minmax(0,1fr);background:#f8f1e6}.guide-widget--player .hub__layout{grid-template-columns:minmax(0,1fr)}.hub__players[hidden]{display:none}.hub__players{min-height:0;overflow-y:auto;border-right:1px solid #dfcfba;background:linear-gradient(180deg,#f4eadc,#eee0cf);padding:13px}.hub__players-head{display:flex;align-items:end;justify-content:space-between;gap:8px;padding:2px 4px 10px}.hub__players-head strong{font:700 .95rem Georgia,serif;color:#4e2830}.hub__players-head small{color:#88746b;font-size:.68rem}.hub__player{position:relative;width:100%;display:grid;grid-template-columns:12px minmax(0,1fr) auto;align-items:center;gap:9px;margin:0 0 7px;padding:11px;border:1px solid transparent;border-radius:11px;background:rgba(255,250,243,.68);color:#402b29;text-align:left;cursor:pointer}.hub__player:hover,.hub__player:focus-visible{border-color:#caa86d;background:#fff9ef;outline:none}.hub__player.is-active{border-color:#9b455c;background:#fff9f1;box-shadow:inset 3px 0 0 #7d1733}.hub__presence{width:9px;height:9px;border-radius:50%;background:#aaa}.hub__presence.is-online{background:#43b57d;box-shadow:0 0 0 3px rgba(67,181,125,.14)}.hub__presence.is-offline{background:#aaa}.hub__player-copy{min-width:0;display:grid;gap:4px}.hub__player-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem}.hub__player-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#826f65;font-size:.68rem}.hub__player-unread{min-width:21px;height:21px;padding:0 5px;display:grid;place-items:center;border-radius:999px;background:#9c1d3d;color:#fff;font:800 .65rem/1 Arial,sans-serif}
.hub__main{min-width:0;min-height:0;display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;background:#fffaf2}.hub__context{min-height:56px;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;border-bottom:1px solid #eadcca;background:#fffdf8}.hub__context>div{min-width:0;display:grid;gap:3px}.hub__context strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:700 .98rem/1.15 Georgia,serif;color:#4d2730}.hub__context small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7c695f;font-size:.7rem}.hub__context-tag{flex:0 0 auto;padding:5px 8px;border:1px solid #d6b46f;border-radius:999px;background:#f8ecd4;color:#7b4c24;font:800 .58rem/1 Arial,sans-serif;letter-spacing:.08em}.hub__tabs{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid #e3d5c4;background:#f7eee2}.hub__tabs button{position:relative;min-height:44px;padding:9px 12px;border:0;border-right:1px solid #e4d6c5;background:transparent;color:#73554d;font:800 .76rem/1 Arial,sans-serif;cursor:pointer}.hub__tabs button:last-child{border-right:0}.hub__tabs button:hover,.hub__tabs button:focus-visible{background:#fff7eb;outline:none}.hub__tabs button.is-active{background:#fffdf8;color:#7d1733;box-shadow:inset 0 -3px 0 #7d1733}.hub__tabs button span{position:absolute;top:6px;right:8px;min-width:17px;height:17px;padding:0 4px;display:grid;place-items:center;border-radius:999px;background:#b42547;color:#fff;font:800 9px/1 Arial,sans-serif}.hub__tabs button span[hidden]{display:none}.hub__scene-info{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 14px;border-bottom:1px solid #eadac5;background:#fff8e8;color:#574039;font-size:.7rem}.hub__scene-info[hidden]{display:none}.hub__scene-info strong{color:#7d1733}.hub__scene-info span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#78645b}.hub__thread{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px 16px;display:grid;align-content:start;gap:9px;background:radial-gradient(circle at top left,rgba(218,187,126,.08),transparent 35%),#fbf7ef}.hub__message{max-width:82%;padding:10px 12px;border:1px solid #dfd1c0;border-radius:4px 12px 12px 12px;background:#fffdf9;box-shadow:0 2px 6px rgba(57,35,27,.05)}.hub__message.is-mine{justify-self:end;border-color:#cfa8b3;border-radius:12px 4px 12px 12px;background:#fbecf0}.hub__message.is-whisper{border-style:dashed;border-left-style:solid;background:#fff8e6}.hub__message header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}.hub__message header strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#632338;font-size:.72rem}.hub__message header span{flex:0 0 auto;color:#9a8980;font-size:.58rem}.hub__message p{margin:0;color:#4d3a35;font:400 .82rem/1.48 Arial,sans-serif;overflow-wrap:anywhere}.hub__empty{padding:22px;border:1px dashed #d8c8b7;border-radius:10px;color:#88786f;text-align:center;font-size:.76rem;line-height:1.45}.hub__empty--compact{padding:14px;font-size:.7rem}
.hub__composer{display:grid;gap:8px;padding:11px 14px 13px;border-top:1px solid #e2d4c3;background:#f5ecdf}.hub__composer-tools{min-height:0}.hub__notice{padding:8px 10px;border:1px solid #dfcfba;border-radius:8px;background:#fffaf0;color:#6f5b52;font-size:.68rem;line-height:1.35}.hub__notice strong{color:#7d1733}.hub__notice--warning{border-color:#d8ab68;background:#fff3d8;color:#764d20}.hub__scene-mode{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.hub__scene-mode label{display:flex;align-items:center;gap:6px;color:#6d574e;font-size:.68rem;font-weight:700}.hub__scene-mode select{min-height:32px;max-width:220px;padding:6px 28px 6px 8px;border:1px solid #d6c5b3;border-radius:7px;background:#fffdf8;color:#4f3a35;font:700 .7rem Arial,sans-serif}.hub__scene-mode label[hidden]{display:none}.hub__narrative{padding:5px 8px;border-radius:7px;background:#fff9ee}.hub__narrative input{accent-color:#7d1733}.hub__composer textarea{width:100%;min-height:72px;max-height:150px;box-sizing:border-box;resize:vertical;padding:10px 11px;border:1px solid #d7c6b4;border-radius:9px;background:#fffdf9;color:#3d2b27;font:400 .84rem/1.45 Arial,sans-serif}.hub__composer textarea:focus{outline:2px solid #c68d45;outline-offset:1px;border-color:#b77f3f}.hub__composer-foot{display:flex;align-items:center;justify-content:space-between;gap:10px}.hub__composer-foot small{min-width:0;color:#88776e;font-size:.63rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hub__composer-foot small.is-error{color:#a12b46;font-weight:700}.hub__composer-foot button{flex:0 0 auto;min-height:34px;padding:8px 14px;border:0;border-radius:8px;background:#7d1733;color:#fff;font:800 .72rem/1 Arial,sans-serif;cursor:pointer}.hub__composer-foot button:hover,.hub__composer-foot button:focus-visible{background:#982043;outline:2px solid #e0bc68;outline-offset:1px}.hub__composer-foot button:disabled{opacity:.5;cursor:default}.hub__guest{padding:20px;background:#fffaf2;color:#4f3934}.hub__guest strong{display:block;margin-bottom:7px;font:700 1rem Georgia,serif;color:#6f1b34}.hub__guest p{margin:0;color:#78685f;font-size:.82rem;line-height:1.5}@keyframes hub-pop{from{opacity:0;transform:scale(.96) translateY(8px)}to{opacity:1;transform:scale(1) translateY(0)}}@keyframes hub-badge-pulse{0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(196,47,78,.45)}50%{transform:scale(1.12);box-shadow:0 0 0 7px rgba(196,47,78,0)}}
@media(max-width:980px){.guide-widget--master .guide-widget__panel--hub,.guide-widget--player .guide-widget__panel--hub{width:calc(100vw - 28px);height:min(760px,calc(100dvh - 96px));right:-4px;bottom:68px}.hub__layout{grid-template-columns:230px minmax(0,1fr)}.hub__message{max-width:90%}}
@media(max-width:700px){.guide-widget{right:12px;bottom:max(12px,env(safe-area-inset-bottom))}.guide-widget__launch{width:56px;height:56px}.guide-widget__hint{display:none}.guide-widget--master .guide-widget__panel--hub,.guide-widget--player .guide-widget__panel--hub{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;border:0;border-radius:0;animation:none}.hub__head{height:60px;padding:10px 12px}.hub__layout{height:calc(100% - 60px);grid-template-columns:1fr}.hub__players{position:absolute;z-index:4;left:0;top:60px;bottom:0;width:min(78vw,300px);box-sizing:border-box;display:none;box-shadow:16px 0 28px rgba(42,25,20,.18)}.guide-widget--master .hub__players{display:block;position:relative;top:auto;bottom:auto;width:auto;max-height:132px;overflow-x:auto;overflow-y:hidden;border-right:0;border-bottom:1px solid #dfcfba;white-space:nowrap;padding:8px}.guide-widget--master .hub__layout{display:grid;grid-template-rows:auto minmax(0,1fr)}.guide-widget--master .hub__main{min-height:0}.hub__players-head{display:none}.guide-widget--master .hub__player{display:inline-grid;width:210px;margin:0 6px 0 0;vertical-align:top}.hub__context{min-height:50px;padding:8px 11px}.hub__tabs button{min-height:42px;padding:8px 6px;font-size:.7rem}.hub__scene-info{display:grid;gap:3px;padding:7px 10px}.hub__scene-info span{white-space:normal}.hub__thread{padding:10px}.hub__message{max-width:94%;padding:9px 10px}.hub__composer{padding:9px 10px calc(10px + env(safe-area-inset-bottom,0px))}.hub__composer textarea{min-height:66px;max-height:100px;resize:none}.hub__scene-mode{display:grid;grid-template-columns:1fr;gap:6px}.hub__scene-mode label{justify-content:space-between}.hub__scene-mode select{max-width:62%;min-width:0}.guide-widget.is-open .guide-widget__launch{display:none}}
@media(max-width:420px){.hub__brand strong{font-size:.98rem}.hub__brand small{font-size:.66rem}.hub__context-tag{font-size:.52rem}.hub__message header{gap:6px}.hub__message header span{font-size:.54rem}.hub__message p{font-size:.79rem}.guide-widget--master .hub__player{width:185px}.hub__composer-foot button{padding:8px 11px}}
@media(prefers-reduced-motion:reduce){.guide-widget__launch,.guide-widget__hint{transition:none}.guide-widget__panel{animation:none}.guide-widget__badge.is-alerting{animation:none}}

/* FRENTE CENA 16 — estabiliza histórico longo sem esmagar o compositor. */
.hub__main{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.hub__context,.hub__tabs,.hub__scene-info,.hub__composer{flex:0 0 auto}
.hub__thread{flex:1 1 auto;min-height:0;overflow-y:auto;scrollbar-gutter:stable;overscroll-behavior:contain}
.hub__composer{max-height:240px;overflow-y:auto}
@media(min-width:701px){.hub__composer textarea{height:72px;min-height:72px}}

/* FRENTE CENA 16 — navegação visual da faixa horizontal de jogadores. */
.hub__players-nav{display:none}
@media(max-width:700px){
  .guide-widget--master .hub__layout{position:relative}
  .guide-widget--master .hub__players{padding-left:34px;padding-right:34px;scroll-behavior:smooth;scrollbar-width:thin}
  .guide-widget--master .hub__players-nav{position:absolute;z-index:8;top:42px;width:28px;height:48px;display:grid;place-items:center;padding:0;border:1px solid rgba(125,23,51,.24);border-radius:999px;background:rgba(255,250,242,.94);color:#7d1733;box-shadow:0 0 18px 10px rgba(244,234,220,.88);font:800 23px/1 Georgia,serif;cursor:pointer;transform:translateY(-50%);transition:opacity .16s ease,transform .16s ease,background .16s ease}
  .guide-widget--master .hub__players-nav:hover,.guide-widget--master .hub__players-nav:focus-visible{background:#fff4df;outline:2px solid #d2aa59;outline-offset:1px}
  .guide-widget--master .hub__players-nav[hidden]{display:none}.guide-widget--master .hub__players-nav--prev{left:5px}.guide-widget--master .hub__players-nav--next{right:5px}
}

/* FRENTE CENA 16 — aposentadoria visual segura das interfaces duplicadas.
   O composer legado permanece no DOM para não interromper dashboard.js/feed,
   mas jogadores usam exclusivamente a Central da Mesa. O Mestre mantém o
   composer legado por enquanto porque a fala como NPC ainda será migrada. */
.app-shell[data-role="player"] #scene-composer{display:none!important}

/* Chat Geral legado aposentado: a aba Campanha da Central da Mesa é a UI oficial.
   Regras abaixo também protegem contra cache/script antigo ainda montado no navegador. */
.campaign-general-chat-toggle,#campaign-general-chat-drawer{display:none!important}

/* FRENTE CENA 16 — a timeline duplicada saiu da tela do jogador.
   Os registros permanecem no banco/DOM; a Central da Mesa é a superfície oficial. */
.app-shell[data-role="player"] #scene-feed{display:none!important}
.hub__message-actions{display:flex;justify-content:flex-end;margin-top:8px}
.hub__message-actions button{padding:5px 8px;border:1px solid #d8c6b1;border-radius:7px;background:#fffaf0;color:#7d1733;font:700 .62rem/1 Arial,sans-serif;cursor:pointer}
.hub__message-actions button:hover,.hub__message-actions button:focus-visible{background:#f8ecd4;outline:2px solid #d2aa59;outline-offset:1px}
.hub__message-actions button:disabled{opacity:.65;cursor:default}

/* FRENTE CENA 16 — compositor do Mestre migrado para a Central da Mesa. */
.hub__master-scene-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:7px}
.hub__master-scene-tools label{display:flex;align-items:center;gap:7px;color:#6d574e;font-size:.68rem;font-weight:700}
.hub__master-scene-tools select{min-height:32px;max-width:280px;padding:6px 28px 6px 8px;border:1px solid #d6c5b3;border-radius:7px;background:#fffdf8;color:#4f3a35;font:700 .7rem Arial,sans-serif}
.hub__master-scene-hint{color:#8a756b;font-size:.65rem}
@media(max-width:700px){.hub__master-scene-tools{display:grid;grid-template-columns:1fr;gap:6px}.hub__master-scene-tools label{justify-content:space-between}.hub__master-scene-tools select{max-width:62%;min-width:0}}

/* FRENTE CENA 16 — ações do Mestre migradas para a Central. */
.hub__message-actions button.is-danger{border-color:#d7a8a8;background:#fff6f4;color:#8a2435}
.hub__message-actions button.is-danger:hover,.hub__message-actions button.is-danger:focus-visible{background:#fde8e4;border-color:#bb6d79;color:#68172a}

/* FRENTE CENA 16 — gestão nativa de NPCs pela Central da Mesa. */
.hub__npc-manage{min-height:32px;padding:6px 10px;border:1px solid #caa86d;border-radius:7px;background:#fff8e8;color:#7d1733;font:800 .66rem/1 Arial,sans-serif;cursor:pointer}
.hub__npc-manage:hover,.hub__npc-manage:focus-visible{background:#f8ecd4;outline:2px solid #d2aa59;outline-offset:1px}
.hub__npc-modal{position:absolute;inset:0;z-index:40;display:grid;place-items:center;padding:18px;box-sizing:border-box}
.hub__npc-backdrop{position:absolute;inset:0;background:rgba(31,17,18,.58);backdrop-filter:blur(2px)}
.hub__npc-dialog{position:relative;z-index:1;width:min(640px,100%);max-height:calc(100% - 10px);display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;border:1px solid #c99b48;border-radius:16px;background:#fffaf2;box-shadow:0 24px 64px rgba(25,10,14,.44)}
.hub__npc-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 16px;background:linear-gradient(135deg,#7d1733,#4a1124);color:#fff}
.hub__npc-dialog>header div{min-width:0}.hub__npc-dialog>header span{font:800 .58rem/1 Arial,sans-serif;letter-spacing:.12em;opacity:.8}
.hub__npc-dialog>header h3{margin:4px 0 2px;font:700 1.05rem/1.15 Georgia,serif}.hub__npc-dialog>header p{margin:0;font-size:.68rem;opacity:.8}
.hub__npc-dialog>header button{width:32px;height:32px;flex:0 0 32px;border:1px solid rgba(255,255,255,.22);border-radius:8px;background:rgba(255,255,255,.1);color:#fff;font:700 1.15rem/1 Arial,sans-serif;cursor:pointer}
.hub__npc-dialog form{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:10px;padding:13px;overflow:hidden}
.hub__npc-help{padding:9px 10px;border:1px solid #dfcfba;border-radius:8px;background:#fff8e8;color:#6c574f;font-size:.69rem;line-height:1.4}
.hub__npc-list{min-height:0;overflow:auto;display:grid;align-content:start;gap:8px;padding-right:3px}
.hub__npc-row{display:grid;grid-template-columns:minmax(0,1fr) 190px;align-items:center;gap:10px;padding:10px;border:1px solid #dfd1c0;border-radius:10px;background:#fffdf9}
.hub__npc-present{min-width:0;display:flex;align-items:flex-start;gap:9px;color:#4f3934}.hub__npc-present input{margin-top:2px;accent-color:#7d1733}.hub__npc-present span{min-width:0;display:grid;gap:3px}
.hub__npc-present strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.78rem}.hub__npc-present small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#88746b;font-size:.64rem}
.hub__npc-row select{min-height:32px;max-width:100%;padding:6px 28px 6px 8px;border:1px solid #d6c5b3;border-radius:7px;background:#fffdf8;color:#4f3a35;font:700 .68rem Arial,sans-serif}.hub__npc-row select:disabled{opacity:.5}
.hub__npc-feedback{min-height:16px;margin:0;color:#a12b46;font-size:.67rem}.hub__npc-dialog footer{display:flex;justify-content:flex-end;gap:8px}
.hub__npc-dialog footer button{min-height:34px;padding:8px 13px;border-radius:8px;font:800 .7rem/1 Arial,sans-serif;cursor:pointer}.hub__npc-dialog footer .secondary{border:1px solid #d3c1ae;background:#fffaf2;color:#6a5148}.hub__npc-dialog footer .primary{border:0;background:#7d1733;color:#fff}
@media(max-width:700px){.hub__npc-modal{position:fixed;padding:10px}.hub__npc-dialog{width:100%;max-height:calc(100dvh - 20px)}.hub__npc-row{grid-template-columns:1fr}.hub__npc-row select{width:100%}}

/* FRENTE CENA 16 — Mestre: interface legada da timeline/composer aposentada.
   Mantemos os nós no DOM para compatibilidade com polling/eventos antigos,
   mas sem ocupar espaço: a Central da Mesa assumiu publicação, diário,
   exclusão e gerenciamento/publicação de NPCs por scene_instance. */
.app-shell[data-role="master"] #scene-npc-presence-surface,
.app-shell[data-role="master"] #scene-feed,
.app-shell[data-role="master"] #scene-composer {
  display: none !important;
}

/* FRENTE CENA 16 — limpeza pessoal de conversas na Central da Mesa. */
.hub__context-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto}
.hub__support-alert{min-height:30px;padding:6px 9px;border:1px solid rgba(180,113,25,.38);border-radius:999px;background:#fff2d9;color:#713f18;font:800 10px/1 Arial,sans-serif;white-space:nowrap;cursor:pointer}.hub__support-alert span{display:inline-grid;place-items:center;min-width:17px;height:17px;margin-left:4px;padding:0 4px;border-radius:999px;background:#b42547;color:#fff;font-size:9px}.hub__support-alert:hover,.hub__support-alert:focus-visible{background:#ffe8ba;border-color:#b57825;outline:none}
.hub__clear-thread{min-height:30px;padding:6px 9px;border:1px solid rgba(125,23,48,.22);border-radius:999px;background:rgba(125,23,48,.06);color:#7d1730;font:700 10px/1 Arial,sans-serif;white-space:nowrap}
.hub__clear-thread:hover:not(:disabled),.hub__clear-thread:focus-visible:not(:disabled){background:rgba(125,23,48,.12);border-color:rgba(125,23,48,.38);outline:none}
.hub__clear-thread:disabled{opacity:.42;cursor:default}
@media(max-width:700px){.hub__context{align-items:flex-start;flex-wrap:wrap}.hub__context-actions{width:100%;justify-content:space-between;margin-left:0;flex-wrap:wrap}.hub__support-alert,.hub__clear-thread{min-height:34px}}

/* TABLET PORTRAIT — compacta o Guia da Mesa no cluster inferior direito. */
@media (min-width:701px) and (max-width:920px){
  .guide-widget{
    right:max(16px,env(safe-area-inset-right));
    bottom:max(16px,env(safe-area-inset-bottom));
  }
  .guide-widget__launch{
    width:56px;
    height:56px;
  }
  .guide-widget__avatar{
    width:36px;
    height:36px;
  }
}

.hub__npc-voice{display:grid;gap:4px;margin-top:8px;padding:7px 8px;border:1px solid #d6c0a8;border-radius:8px;background:#fff7e8}
.hub__npc-voice audio{width:100%;height:34px}
.hub__npc-voice small{color:#7b675c;font-size:.58rem;font-weight:800;letter-spacing:.04em}
