*, *::before, *::after { box-sizing: border-box }
html, body { height: 100% }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; letter-spacing: -.01em }
button, input { font: inherit; color: inherit }
img { max-width: 100%; display: block }
[hidden] { display: none !important }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }

/* O app ocupa a janela; o layout responde à largura do próprio contêiner (mesmo componente embutido ou em tela cheia). */
.app { container: app / inline-size; height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; position: relative;
       padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px) }
.main { flex: 1; min-height: 0; display: flex; flex-direction: column }
