/* Normal-flow controls never cover questions, answers or the sound button. */
/* The sticky app bar owns the top inset; the tab bar owns the bottom one on small screens. */
body{padding:0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);overflow-wrap:break-word}
.pwa-status{max-width:1200px;margin:10px auto;padding:10px 20px;background:#fff0b5;color:#4d3a00;border:2px solid #dfc25c;border-radius:999px;text-align:center;font:600 16px 'Fredoka',sans-serif}
.pwa-status:before{content:'📴 '}
.pwa-tools{display:flex;gap:12px;align-items:center;justify-content:center;flex-wrap:wrap;margin:12px 0 24px}
.pwa-panel{max-width:680px;margin:16px auto;text-align:left;font-size:16px}
.pwa-panel p,.pwa-panel ol{margin-bottom:16px}
.pwa-panel button{margin-bottom:8px;min-height:48px}
.pwa-tools .button{font-size:16px;min-height:48px}
.pwa-offline-home{max-width:720px;margin:calc(24px + env(safe-area-inset-top)) auto 24px;padding:24px;text-align:center}
.pwa-offline-home .button{min-width:min(100%,280px)}
.pwa-offline-home h1,.pwa-offline-home p{margin-bottom:24px}
.pwa-offline-home .button{margin:8px}
@media(max-width:480px){.pwa-panel{padding:18px}.pwa-panel .button{width:100%}.pwa-status{margin:8px 12px}.pwa-tools{align-items:stretch}.pwa-tools>*{max-width:100%}}
