/* Forja dos Mundos v4.6 — layout + PWA consolidado 2026-09-28
   Mantém Ficha/Grimório no fluxo principal e centraliza o aviso de atualização. */
.forge-pwa-toast{pointer-events:auto!important;position:relative;padding-right:3rem!important}
.forge-pwa-toast__action{pointer-events:auto!important}
.forge-pwa-toast__close{position:absolute;top:.42rem;right:.42rem;width:32px;height:32px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:#b9ad9c;font:800 1.2rem/1 system-ui,sans-serif;cursor:pointer}
.forge-pwa-toast__close:hover,.forge-pwa-toast__close:focus-visible{color:#fff4d4;background:rgba(199,154,59,.13)}
#appShell{min-height:100dvh;display:flex;flex-direction:column}
#appShell>main{position:relative;width:100%;min-height:calc(100dvh - var(--topbar-height,72px));flex:1 0 auto}
#appShell>main>.page.active{position:relative;z-index:1;clear:both}
#appShell>main>.grimorio-page.active,#appShell>main>.fce-page.active,#appShell>main>.character-create-page.active{min-height:calc(100dvh - var(--topbar-height,72px));padding-bottom:clamp(5rem,8vw,8rem)}
#appShell>.forja-brand-footer{position:relative;z-index:2;flex:0 0 auto;margin-top:auto;clear:both}
@media(max-width:760px){#appShell>main>.grimorio-page.active,#appShell>main>.fce-page.active,#appShell>main>.character-create-page.active{padding-bottom:calc(var(--forja-mobile-bar,68px) + 4rem)}.forge-pwa-toast{max-width:calc(100vw - 20px)!important}}
