
:root{--deep:#04214f;--ocean:#0a4fae;--sky:#3fa9f5;--foam:#e9f7ff;--gold:#f5b51c;color-scheme:dark}
*{box-sizing:border-box}
body{margin:0;min-height:100dvh;font:1rem/1.5 'Trebuchet MS','Segoe UI',sans-serif;color:var(--foam);background:radial-gradient(ellipse at 50% 0,#1e7fe0,var(--ocean) 35%,var(--deep) 80%);background-attachment:fixed}
body::before{content:'';position:fixed;inset:0;pointer-events:none;background:repeating-conic-gradient(from 3deg at 50% 12%,#ffffff14 0 6deg,transparent 6deg 18deg);mask-image:linear-gradient(#000,transparent 82%)}
.shell{position:relative;width:min(100% - 2rem,64rem);margin:auto;padding:1rem 0 2.5rem}
header,.brand,.profile,nav,.actions,.row{display:flex;align-items:center;gap:.75rem}
header{justify-content:space-between;flex-wrap:wrap;padding:.35rem 0 1rem;border-bottom:1px solid #ffffff55}
.brand img{width:4.25rem;height:auto}.brand strong{display:block;font-size:1.3rem}.brand span{display:block}
.avatar{display:grid;place-items:center;border-radius:50%;width:2.5rem;height:2.5rem;background:var(--foam);color:var(--deep);font-weight:bold}
nav{flex-wrap:wrap;margin:1.2rem 0 1.5rem}
button,nav a{font:inherit;font-weight:700;min-height:44px;padding:.55rem 1rem;border-radius:999px;border:1px solid #b8d6f6;background:#e9f7ff;color:var(--deep);cursor:pointer}
nav a{display:inline-flex;align-items:center;text-decoration:none;background:#04214fdd;color:#fff}
nav a[aria-current=page],.primary{background:var(--gold);border-color:var(--gold);color:#172440}
:focus-visible{outline:3px solid #fff;outline-offset:3px}
h1{margin:0 0 1.15rem;font-size:clamp(1.75rem,5vw,2.6rem);line-height:1.15}
h2{margin:0;font-size:1.25rem}p{margin:.35rem 0 1rem}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem}
.tile,.row{border:1px solid #b9dcff;border-radius:1rem;background:var(--foam);color:var(--deep);box-shadow:0 6px 18px #04183440}
.tile{padding:1rem;display:grid;grid-template-columns:auto 1fr;gap:.85rem}.tile h2{align-self:center}.tile p,.actions{grid-column:1/-1}.tile p{margin:0}
.row{width:100%;text-align:left;min-height:64px;margin-bottom:.65rem}
.icon{display:grid;place-items:center;font-size:1.4rem;width:2.7rem;height:2.7rem;background:#c4e4ff;border-radius:.75rem;flex:none}
.actions{flex-wrap:wrap}.actions button:not(.primary){background:#fff}
dialog{width:min(92vw,28rem);border:1px solid var(--sky);border-radius:1rem;padding:1.25rem;background:var(--deep);color:var(--foam)}
dialog::backdrop{background:#03132ed1}
label{display:grid;gap:.35rem;margin-bottom:1rem}input,textarea{font:inherit;padding:.6rem;background:#fff;color:#142b47;border:1px solid #9dbde4;border-radius:.5rem;width:100%}
output{display:block;margin-top:.75rem}
@media(max-width:650px){.grid{grid-template-columns:1fr}.brand img{width:3.4rem}.shell{width:calc(100% - 1.5rem)}}
.guia-acoes{margin:1.2rem 0}
.guia-acoes [aria-pressed=true]{background:var(--gold);border-color:var(--gold)}
.guia-resposta{padding:1.25rem;border-radius:1rem;background:var(--foam);color:var(--deep)}
.guia-resposta p{margin:.6rem 0 0;font-size:1.15rem}
#guia-pergunta{max-width:32rem;margin:0 0 1.2rem}
#ver-libras{margin-top:1rem;background:var(--gold);border-color:var(--gold)}
#ver-libras:disabled{opacity:.65;cursor:default}
