@font-face{font-family:"Nunito";font-style:normal;font-weight:200 1000;font-display:swap;src:url(fonts/nunito-latin.woff2) format("woff2")}
/* Gabaritou — layout: sidebar | trilha | coluna de status. Botões "chunky" com sombra inferior, cartões de borda grossa. */
:root{
  --bg:#ffffff; --surface:#ffffff; --surface2:#f4f6f1; --line:#e3e6dd; --ink:#2f3a2a; --ink2:#6d7766; --ink3:#a3ab9c;
  --green:#55c61e; --green-d:#3f9e12; --green-bg:#e4f7d4; --green-ink:#2c7a0a;
  --blue:#1fa8f0; --blue-d:#1587c4; --blue-bg:#dff3fd;
  --red:#f2554d; --red-d:#c9382f; --red-bg:#fde3e1; --red-ink:#b3261e;
  --gold:#ffc21a; --gold-d:#dc9f00; --gold-bg:#fff4cf;
  --orange:#ff8f1f; --purple:#b57bff; --navy:#1b2a49;
  --shadow:0 2px 0 rgba(0,0,0,.06);
  --font:"Nunito","Trebuchet MS",system-ui,-apple-system,"Segoe UI",sans-serif;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --bg:#121c20; --surface:#1b2a30; --surface2:#22343b; --line:#34474f; --ink:#e8efe6; --ink2:#a9b8ae; --ink3:#6f8178;
    --green-bg:#1f3a17; --green-ink:#8fe05a; --blue-bg:#15354a; --red-bg:#3d1f1f; --red-ink:#ff8f88; --gold-bg:#3d3414;
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#121c20; --surface:#1b2a30; --surface2:#22343b; --line:#34474f; --ink:#e8efe6; --ink2:#a9b8ae; --ink3:#6f8178;
  --green-bg:#1f3a17; --green-ink:#8fe05a; --blue-bg:#15354a; --red-bg:#3d1f1f; --red-ink:#ff8f88; --gold-bg:#3d3414;
  color-scheme:dark;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:16px;line-height:1.45}
body{overflow-x:hidden}
button{font:inherit;color:inherit;cursor:pointer}
h1,h2,h3,h4{margin:0;line-height:1.2;text-wrap:balance}
svg{display:block}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px;border-radius:10px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.muted{color:var(--ink2)} .small{font-size:.85rem} .tiny{font-size:.75rem}
.row{display:flex;align-items:center;gap:10px} .col{display:flex;flex-direction:column;gap:10px}
.grow{flex:1;min-width:0} .wrap{flex-wrap:wrap} .center{text-align:center}
.hide{display:none!important}

/* ---------- botões ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:2px solid var(--line);border-bottom-width:5px;border-radius:16px;background:var(--surface);color:var(--blue);
  font-weight:900;letter-spacing:.04em;text-transform:uppercase;font-size:.9rem;padding:12px 20px;min-height:48px;transition:transform .06s,border-bottom-width .06s}
.btn:active:not(:disabled){transform:translateY(3px);border-bottom-width:2px}
.btn:disabled{opacity:.55;cursor:not-allowed}
.btn.primary{background:var(--green);border-color:var(--green-d);color:#fff}
.btn.blue{background:var(--blue);border-color:var(--blue-d);color:#fff}
.btn.red{background:var(--red);border-color:var(--red-d);color:#fff}
.btn.gold{background:var(--gold);border-color:var(--gold-d);color:#4a3600}
.btn.ghost{border-color:transparent;background:transparent;color:var(--ink2);border-bottom-width:2px}
.btn.block{width:100%}
.btn.sm{min-height:38px;padding:8px 14px;font-size:.78rem;border-radius:12px;border-bottom-width:4px}
.link{background:none;border:0;color:var(--blue);font-weight:800;padding:4px 2px;text-transform:uppercase;letter-spacing:.04em;font-size:.8rem}

.card{background:var(--surface);border:2px solid var(--line);border-radius:20px;padding:16px}
.card h3{font-size:1.1rem;font-weight:900}
.pill{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:99px;background:var(--surface2);font-weight:800;font-size:.75rem;color:var(--ink2)}
.pill.green{background:var(--green-bg);color:var(--green-ink)} .pill.gold{background:var(--gold-bg);color:#9a6a00} .pill.red{background:var(--red-bg);color:var(--red-ink)} .pill.blue{background:var(--blue-bg);color:var(--blue-d)}
.bar{height:16px;border-radius:99px;background:var(--surface2);overflow:hidden;position:relative}
.bar>i{display:block;height:100%;border-radius:99px;background:var(--green);transition:width .35s cubic-bezier(.3,.9,.3,1)}
.bar>i::after{content:"";position:absolute;left:8px;right:8px;top:4px;height:4px;border-radius:4px;background:rgba(255,255,255,.35);width:calc(100% - 16px)}
.bar.thin{height:10px} .bar.thin>i::after{display:none}
.bar.gold>i{background:var(--gold)} .bar.blue>i{background:var(--blue)} .bar.orange>i{background:var(--orange)} .bar.red>i{background:var(--red)}

/* ---------- estrutura ---------- */
#app{min-height:100vh}
.shell{display:grid;grid-template-columns:250px minmax(0,1fr) 330px;gap:28px;max-width:1240px;margin:0 auto;padding:0 20px}
.side{position:sticky;top:0;height:100vh;padding:22px 0;display:flex;flex-direction:column;gap:6px}
.brand{display:flex;align-items:center;gap:10px;padding:0 10px 14px;font-weight:900;font-size:1.55rem;color:var(--green);letter-spacing:-.02em}
.brand small{display:block;font-size:.62rem;letter-spacing:.14em;color:var(--ink3);text-transform:uppercase;font-weight:800}
.nav a{display:flex;align-items:center;gap:14px;padding:10px 14px;border:2px solid transparent;border-radius:14px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;font-size:.88rem;color:var(--ink2);text-decoration:none}
.nav a:hover{background:var(--surface2)}
.nav a[aria-current="page"]{background:var(--blue-bg);border-color:var(--blue);color:var(--blue-d)}
.nav svg{width:30px;height:30px;flex:none}
.main{padding:22px 0 90px;min-width:0}
.right{padding:22px 0;display:flex;flex-direction:column;gap:16px;position:sticky;top:0;align-self:start;max-height:100vh;overflow:auto}
.topstat{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:18px}
.stat{display:flex;align-items:center;gap:6px;border:0;background:none;font-weight:900;font-size:1.05rem;padding:6px 8px;border-radius:12px}
.stat:hover{background:var(--surface2)}
.stat svg{width:26px;height:26px}
.stat.flame{color:var(--orange)} .stat.gem{color:var(--blue)} .stat.heart{color:var(--red)} .stat.dim{color:var(--ink3)}
.crest{display:flex;align-items:center;gap:8px;border:2px solid var(--line);border-radius:12px;background:var(--surface);padding:5px 10px;font-weight:900;font-size:.85rem}
.page-title{font-size:1.6rem;font-weight:900;margin-bottom:4px}
.tabbar{display:none}

/* ---------- trilha ---------- */
.unit{margin-bottom:26px}
.unit-head{display:flex;align-items:center;gap:14px;border-radius:20px;padding:16px 18px;color:#fff;background:var(--uc,var(--green));border-bottom:5px solid rgba(0,0,0,.18);position:sticky;top:8px;z-index:5}
.unit-head h2{font-size:1.25rem;font-weight:900}
.unit-head .u-eyebrow{font-size:.72rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase;opacity:.85}
.unit-head .guide{margin-left:auto;background:rgba(255,255,255,.2);border:2px solid rgba(255,255,255,.55);border-bottom-width:4px;border-radius:14px;color:#fff;font-weight:900;font-size:.78rem;letter-spacing:.06em;text-transform:uppercase;padding:9px 12px}
.unit.locked .unit-head{background:var(--ink3);color:#fff}
.path{display:flex;flex-direction:column;align-items:center;gap:14px;padding:26px 0 8px;position:relative}
.node-w{position:relative;display:flex;justify-content:center;width:100%;height:84px}
.node{width:76px;height:70px;border-radius:50%;border:0;background:var(--uc,var(--green));box-shadow:0 8px 0 var(--ucd,var(--green-d));display:grid;place-items:center;color:#fff;position:relative;transition:transform .08s,box-shadow .08s}
.node:active{transform:translateY(6px);box-shadow:0 2px 0 var(--ucd,var(--green-d))}
.node svg{width:34px;height:34px}
.node.locked{background:var(--line);box-shadow:0 8px 0 var(--ink3);color:var(--ink3)}
.node.done{background:var(--gold);box-shadow:0 8px 0 var(--gold-d);color:#fff}
.node.current::before{content:"";position:absolute;inset:-9px;border-radius:50%;border:6px solid var(--line);border-top-color:var(--uc,var(--green));border-right-color:var(--uc,var(--green));transform:rotate(-30deg)}
.node.avail-chest{animation:bob 1.4s ease-in-out infinite}
@keyframes bob{50%{transform:translateY(-5px)}}
.go-bubble{position:absolute;top:-50px;left:50%;transform:translateX(-50%);background:var(--surface);border:2px solid var(--line);border-radius:14px;color:var(--uc,var(--green));font-weight:900;font-size:.8rem;letter-spacing:.08em;padding:6px 12px;white-space:nowrap;animation:bob 1.4s ease-in-out infinite}
.go-bubble::after{content:"";position:absolute;bottom:-8px;left:50%;width:12px;height:12px;background:var(--surface);border-right:2px solid var(--line);border-bottom:2px solid var(--line);transform:translateX(-50%) rotate(45deg)}
.pop{position:absolute;top:84px;left:50%;transform:translateX(-50%);width:min(300px,86vw);z-index:8;background:var(--uc,var(--green));color:#fff;border-radius:18px;padding:14px;box-shadow:0 4px 18px rgba(0,0,0,.18)}
.pop::before{content:"";position:absolute;top:-8px;left:var(--ax,50%);width:16px;height:16px;background:var(--uc,var(--green));transform:translateX(-50%) rotate(45deg);border-radius:3px}
.pop h4{font-size:1.05rem;font-weight:900}
.pop p{margin:4px 0 12px;font-size:.88rem;opacity:.92}
.pop .btn{background:#fff;border-color:rgba(0,0,0,.18);color:var(--uc,var(--green))}
.pop.lock{background:var(--surface2);color:var(--ink);border:2px solid var(--line)}
.pop.lock::before{background:var(--surface2);border-left:2px solid var(--line);border-top:2px solid var(--line)}
.pop.lock .btn{color:var(--blue)}
.mascot-side{position:absolute;right:2%;top:12px;width:110px;pointer-events:none}
.end-card{text-align:center;padding:24px 14px}

/* ---------- cartões laterais ---------- */
.mission{display:flex;flex-direction:column;gap:6px;padding:10px 0;border-top:2px solid var(--line)}
.mission:first-of-type{border-top:0}
.mission .mt{font-weight:800;font-size:.95rem}
.ring{--p:0;width:64px;height:64px;border-radius:50%;background:conic-gradient(var(--green) calc(var(--p)*1%),var(--surface2) 0);display:grid;place-items:center;flex:none}
.ring>span{width:50px;height:50px;border-radius:50%;background:var(--surface);display:grid;place-items:center;font-weight:900;font-size:.8rem}
.week{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;text-align:center}
.week div{display:flex;flex-direction:column;align-items:center;gap:4px;font-weight:800;font-size:.72rem;color:var(--ink2)}
.week i{width:28px;height:28px;border-radius:50%;background:var(--surface2);display:grid;place-items:center;color:#fff}
.week i.on{background:var(--orange)} .week i.today{outline:3px solid var(--blue)}
.week i svg{width:16px;height:16px}

/* ---------- Prática, listas ---------- */
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.tile{display:flex;flex-direction:column;gap:6px;text-align:left;border:2px solid var(--line);border-bottom-width:5px;border-radius:18px;background:var(--surface);padding:14px}
.tile:hover{background:var(--surface2)}
.tile b{font-size:1.02rem} .tile span{color:var(--ink2);font-size:.85rem}
.hero-card{border-radius:22px;padding:20px;background:linear-gradient(135deg,var(--navy),#27427a);color:#fff;display:flex;gap:16px;align-items:center}
.hero-card h3{font-size:1.25rem;font-weight:900} .hero-card p{margin:.3rem 0 .9rem;opacity:.9}
.mrow{display:grid;grid-template-columns:minmax(120px,1.3fr) 2fr 44px;align-items:center;gap:10px;padding:7px 0}
.mrow b{font-size:.9rem}
.list{display:flex;flex-direction:column}
.li{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:2px solid var(--line)}
.li:first-child{border-top:0}
.li .grow b{display:block}
.seg{display:flex;gap:8px;flex-wrap:wrap}
.chip{border:2px solid var(--line);border-bottom-width:4px;border-radius:14px;background:var(--surface);padding:8px 14px;font-weight:800;font-size:.9rem}
.chip[aria-pressed="true"]{border-color:var(--blue);background:var(--blue-bg);color:var(--blue-d)}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-weight:900;font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;color:var(--ink2)}
.input,select.input{border:2px solid var(--line);border-radius:14px;background:var(--surface2);color:var(--ink);padding:11px 14px;font:inherit;font-weight:700;width:100%}
textarea.input{min-height:120px;font-family:ui-monospace,monospace;font-size:.78rem}
.switch{position:relative;width:52px;height:30px;border-radius:99px;background:var(--line);border:0;flex:none;transition:background .15s}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;transition:transform .15s;box-shadow:0 1px 3px rgba(0,0,0,.3)}
.switch[aria-checked="true"]{background:var(--green)} .switch[aria-checked="true"]::after{transform:translateX(22px)}
.heat{display:grid;grid-auto-flow:column;grid-template-rows:repeat(7,14px);gap:4px;overflow-x:auto;padding-bottom:6px}
.heat i{width:14px;height:14px;border-radius:4px;background:var(--surface2)}
.heat i.l1{background:#bde8a0} .heat i.l2{background:#7fd44a} .heat i.l3{background:#4fb81a} .heat i.l4{background:#2f8a0c}
.kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.kpi{border:2px solid var(--line);border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:2px}
.kpi b{font-size:1.4rem;font-weight:900} .kpi span{font-size:.75rem;color:var(--ink2);font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.ach{display:flex;gap:14px;align-items:center;padding:14px 0;border-top:2px solid var(--line)}
.ach:first-child{border-top:0}
.medal{width:64px;height:64px;border-radius:18px;display:grid;place-items:center;flex:none;color:#fff;font-weight:900;font-size:1.3rem;background:var(--ink3)}
.medal.t1{background:#c98a52} .medal.t2{background:#9aa5ad} .medal.t3{background:#f0b400} .medal.t4{background:#35a7e8} .medal.t5{background:#9b5de5}
.lg-row{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:14px}
.lg-row.me{background:var(--blue-bg);outline:2px solid var(--blue)}
.lg-row .rk{width:26px;text-align:center;font-weight:900;color:var(--ink2)}
.zone{padding:8px 12px;margin:6px 0;font-weight:900;font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;display:flex;align-items:center;gap:8px}
.zone.up{color:var(--green-ink)} .zone.down{color:var(--red-ink)}
.shopi{display:flex;align-items:center;gap:14px;padding:14px 0;border-top:2px solid var(--line)}
.shopi:first-child{border-top:0}
.shopi .ic{width:54px;height:54px;border-radius:16px;display:grid;place-items:center;background:var(--surface2);flex:none}
.shopi .ic svg{width:34px;height:34px}
.price{display:inline-flex;align-items:center;gap:6px;font-weight:900}
.price svg{width:20px;height:20px}

/* ---------- lição (tela cheia) ---------- */
.layer{position:fixed;inset:0;z-index:50;background:var(--bg);display:flex;flex-direction:column;overflow:hidden}
.ls-top{display:flex;align-items:center;gap:14px;max-width:820px;width:100%;margin:0 auto;padding:18px 18px 8px}
.xbtn{background:none;border:0;color:var(--ink3);width:36px;height:36px;border-radius:10px;display:grid;place-items:center;flex:none}
.xbtn:hover{color:var(--ink)} .xbtn svg{width:26px;height:26px}
.ls-top .bar{flex:1;height:18px}
.ls-top .bar.combo1>i{background:var(--gold)} .ls-top .bar.combo2>i{background:var(--orange)} .ls-top .bar.combo3>i{background:var(--red)}
.hearts{display:flex;align-items:center;gap:6px;color:var(--red);font-weight:900;font-size:1.1rem}
.hearts svg{width:26px;height:26px}
.combo-tag{position:absolute;right:0;top:-26px;font-weight:900;font-size:.8rem;letter-spacing:.06em;color:var(--orange)}
.ls-main{flex:1;overflow:auto;padding:8px 18px 24px}
.ls-wrap{max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.ls-prompt{font-size:1.15rem;font-weight:900;color:var(--ink)}
.stem{font-size:1.06rem;line-height:1.6;font-weight:600;white-space:pre-line}
.ctx{font-size:.95rem;color:var(--ink2);border-left:4px solid var(--line);padding:4px 12px;font-weight:600}
.tf-box{border:2px solid var(--line);border-radius:16px;padding:14px;background:var(--surface2);font-weight:700}
.tf-box small{display:block;color:var(--ink2);font-weight:900;text-transform:uppercase;letter-spacing:.06em;margin-bottom:4px}
.opts{display:flex;flex-direction:column;gap:10px;margin-top:4px}
.opt{display:flex;align-items:flex-start;gap:14px;text-align:left;width:100%;padding:13px 14px;border:2px solid var(--line);border-bottom-width:5px;border-radius:16px;background:var(--surface);font-weight:700;font-size:1rem;line-height:1.45}
.opt:hover:not(:disabled){background:var(--surface2)}
.opt .k{flex:none;width:32px;height:32px;border-radius:10px;border:2px solid var(--line);display:grid;place-items:center;font-weight:900;font-size:.85rem;color:var(--ink2)}
.opt.sel{border-color:var(--blue);background:var(--blue-bg)} .opt.sel .k{border-color:var(--blue);color:var(--blue-d)}
.opt.ok{border-color:var(--green);background:var(--green-bg)} .opt.ok .k{border-color:var(--green);background:var(--green);color:#fff}
.opt.bad{border-color:var(--red);background:var(--red-bg)} .opt.bad .k{border-color:var(--red);background:var(--red);color:#fff}
.opt.out{opacity:.35;text-decoration:line-through}
.opt:disabled{cursor:default}
.ce{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ce .opt{justify-content:center;align-items:center;font-weight:900;font-size:1.15rem;min-height:84px;text-transform:uppercase;letter-spacing:.04em}
.ls-foot{border-top:2px solid var(--line);background:var(--bg);padding:16px 18px 20px}
.ls-foot .in{max-width:760px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.ls-foot.ok{background:var(--green-bg);border-color:transparent} .ls-foot.bad{background:var(--red-bg);border-color:transparent}
.fb{flex:1;min-width:220px;display:flex;flex-direction:column;gap:6px;max-height:48vh;overflow:auto}
.fb h3{font-size:1.25rem;font-weight:900}
.ls-foot.ok .fb h3{color:var(--green-ink)} .ls-foot.bad .fb h3{color:var(--red-ink)}
.fb .ans{font-weight:800;color:var(--red-ink);overflow-wrap:anywhere}
.fb .why{font-size:.92rem;font-weight:600;overflow:visible}
.why-t{display:block;font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.05em;opacity:.7;margin-bottom:3px}
.why .btn{margin:0}
.fb .tools{display:flex;gap:8px;flex-wrap:wrap}
.fb .tools button{border:0;background:rgba(0,0,0,.07);border-radius:10px;padding:5px 10px;font-weight:800;font-size:.76rem}
.fb .tools button[aria-pressed="true"]{background:var(--gold);color:#4a3600}
.chips{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.hint{margin-left:auto}
.interlude{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:24px;text-align:center}
.interlude h2{font-size:1.5rem;font-weight:900;max-width:480px}
.sum{flex:1;overflow:auto;padding:26px 18px;display:flex;flex-direction:column;align-items:center;gap:18px;text-align:center}
.sum h1{font-size:1.9rem;font-weight:900;color:var(--gold-d)}
.sum .stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:min(520px,100%)}
.sbox{border:2px solid var(--c);border-radius:16px;overflow:hidden;background:var(--c)}
.sbox span{display:block;color:#fff;font-weight:900;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;padding:6px}
.sbox b{display:block;background:var(--surface);padding:14px 6px;font-size:1.35rem;font-weight:900;color:var(--c)}
.sum .card{width:min(520px,100%);text-align:left}
.confetti{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:90}
.confetti i{position:absolute;top:-20px;width:9px;height:14px;border-radius:2px;animation:fall linear forwards}
@keyframes fall{to{transform:translateY(110vh) rotate(720deg)}}
.noanim *{animation:none!important;transition:none!important}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* ---------- simulado ---------- */
.ex-nav{display:flex;flex-wrap:wrap;gap:6px;max-height:112px;overflow:auto;padding:2px}
.ex-nav button{width:36px;height:36px;border-radius:10px;border:2px solid var(--line);background:var(--surface);font-weight:900;font-size:.8rem}
.ex-nav button.ans{background:var(--blue-bg);border-color:var(--blue)} .ex-nav button.flag{background:var(--gold-bg);border-color:var(--gold)} .ex-nav button.cur{outline:3px solid var(--navy)}
.timer{font-variant-numeric:tabular-nums;font-weight:900;font-size:1.1rem}
.timer.low{color:var(--red)}
.res-row{padding:12px 0;border-top:2px solid var(--line)}
.res-row:first-child{border-top:0}
details.rv{border:2px solid var(--line);border-radius:14px;padding:10px 12px;margin-top:8px;background:var(--surface)}
details.rv summary{cursor:pointer;font-weight:800;list-style:none}
details.rv summary::-webkit-details-marker{display:none}
.spark{width:100%;height:64px}

/* ---------- modal / toast ---------- */
.modal-bg{position:fixed;inset:0;z-index:70;background:rgba(10,18,14,.55);display:flex;align-items:flex-end;justify-content:center;padding:0}
.modal{background:var(--bg);width:min(560px,100%);max-height:92vh;overflow:auto;border-radius:24px 24px 0 0;padding:22px 20px 26px;display:flex;flex-direction:column;gap:14px;animation:up .2s ease-out}
@keyframes up{from{transform:translateY(40px);opacity:0}}
.modal h2{font-size:1.35rem;font-weight:900}
@media (min-width:700px){.modal-bg{align-items:center}.modal{border-radius:24px}}
.toasts{position:fixed;left:50%;bottom:92px;transform:translateX(-50%);z-index:100;display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none;width:min(420px,92vw)}
.toast{background:var(--navy);color:#fff;border-radius:14px;padding:11px 16px;font-weight:800;font-size:.92rem;box-shadow:0 6px 20px rgba(0,0,0,.25);animation:up .2s ease-out;text-align:center}
.toast.gold{background:var(--gold);color:#4a3600}
.av-grid{display:flex;gap:8px;flex-wrap:wrap}
.av-opt{border:2px solid var(--line);border-bottom-width:4px;border-radius:12px;background:var(--surface);padding:6px 10px;font-weight:800;font-size:.8rem;display:flex;align-items:center;gap:6px;min-height:40px}
.av-opt[aria-pressed="true"]{border-color:var(--blue);background:var(--blue-bg)}
.av-opt .sw{width:22px;height:22px;border-radius:50%;border:2px solid rgba(0,0,0,.15)}
.goal-opt{display:flex;justify-content:space-between;align-items:center;width:100%;border:2px solid var(--line);border-bottom-width:5px;border-radius:16px;padding:14px 16px;background:var(--surface);font-weight:900}
.goal-opt[aria-pressed="true"]{border-color:var(--blue);background:var(--blue-bg)}
.goal-opt span:last-child{color:var(--ink2);font-weight:800}

/* ---------- responsivo ---------- */
@media (max-width:1099px){
  .shell{grid-template-columns:84px minmax(0,1fr);gap:20px}
  .right{display:none}
  .brand span,.nav a span{display:none} .brand{justify-content:center;padding:0 0 14px}
  .nav a{justify-content:center;padding:10px}
  .mobile-only-right{display:flex!important}
}
@media (min-width:1100px){.mobile-only-right{display:none!important}}
@media (max-width:699px){
  .shell{display:block;padding:0 14px}
  .side{display:none}
  .main{padding-top:12px;padding-bottom:110px}
  .tabbar{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:40;background:var(--bg);border-top:2px solid var(--line);padding:6px 4px calc(6px + env(safe-area-inset-bottom))}
  .tabbar a{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 2px;border-radius:12px;color:var(--ink2);font-weight:900;font-size:.62rem;text-transform:uppercase;letter-spacing:.04em;text-decoration:none;border:2px solid transparent}
  .tabbar a svg{width:28px;height:28px}
  .tabbar a[aria-current="page"]{background:var(--blue-bg);border-color:var(--blue);color:var(--blue-d)}
  .grid2{grid-template-columns:1fr}
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mascot-side{display:none}
  .ce .opt{min-height:72px}
  .unit-head{top:4px}
  .toasts{bottom:86px}
}

/* edital */
.ed-top{margin-bottom:14px}.ed-pct{font-size:1.6rem;font-weight:900;color:var(--green-d)}
.ed-sub{margin-bottom:12px;padding:12px 14px}.ed-sub.done{border-color:var(--green)}
.ed-head{all:unset;box-sizing:border-box;width:100%;display:flex;align-items:center;gap:12px;cursor:pointer}
.ed-head:focus-visible{outline:3px solid var(--blue);outline-offset:3px;border-radius:10px}
.ed-ic{width:30px;height:30px;border-radius:50%;border:3px solid var(--line);display:grid;place-items:center;flex:none}.ed-ic.ok{background:var(--green);border-color:var(--green-d)}.ed-ic svg{width:18px;height:18px}
.ed-chev{color:var(--ink3);font-size:1.1rem}
.ed-body{margin-top:12px;display:flex;flex-direction:column;gap:6px}
.ed-grp{font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:var(--ink2);margin:8px 2px 2px}
.ed-item{all:unset;box-sizing:border-box;display:flex;gap:12px;align-items:flex-start;padding:10px 12px;border:2px solid var(--line);border-radius:14px;cursor:pointer;width:100%}
.ed-item:hover{background:var(--surface2)}.ed-item:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.ed-item.on{background:var(--green-bg);border-color:var(--green)}
.ed-box{width:26px;height:26px;border-radius:8px;border:3px solid var(--line);flex:none;display:grid;place-items:center;background:var(--surface)}
.ed-item.on .ed-box{background:var(--green);border-color:var(--green-d)}.ed-box svg{width:16px;height:16px}
.ed-tx{display:flex;flex-direction:column;gap:3px;min-width:0;font-size:.95rem}.ed-tx b{font-weight:800;overflow-wrap:anywhere}.ed-tx small{color:var(--ink2);font-weight:600;font-size:.8rem;line-height:1.35;overflow-wrap:anywhere}
.ed-item.on .ed-tx small{color:var(--green-ink)}

/* avatar: marca, editor */
.brand-av{all:unset;cursor:pointer;display:block;width:46px;height:46px;border-radius:50%;box-shadow:0 0 0 3px var(--surface),0 0 0 5px var(--line);flex:none;overflow:hidden}
.brand-av:focus-visible{outline:3px solid var(--blue);outline-offset:4px}
.top-av{all:unset;cursor:pointer;display:none;width:40px;height:40px;border-radius:50%;overflow:hidden;box-shadow:0 0 0 2px var(--line);flex:none}
@media (max-width:699px){.top-av{display:block}.topstat{justify-content:flex-start}.topstat>.row{margin-left:auto}}
.modal.wide{width:min(1080px,100%);max-height:94vh}
.avE-head{display:flex;gap:12px;align-items:center}.avE-head h2{font-size:1.4rem;font-weight:900;margin:0}.avE-head p{margin:2px 0 0}
.avE-logo{width:44px;height:44px;border-radius:50%;background:var(--blue);display:grid;place-items:center;flex:none}.avE-logo svg{width:26px;height:26px}
.avE-grid{display:grid;grid-template-columns:1fr;gap:16px;margin-top:12px}
.avE-prev{display:flex;flex-direction:column;align-items:center;gap:10px;background:var(--surface2);border-radius:22px;padding:14px}
.avE-prev>svg{width:min(250px,70vw);height:auto;border-radius:26px}
.avE-undo{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.avE-tabs{display:flex;gap:8px;overflow:auto;padding-bottom:4px}
.avE-tabs button{all:unset;cursor:pointer;flex:1;min-width:84px;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 8px;border-radius:14px;background:var(--surface2);font-weight:800;font-size:.78rem;color:var(--ink2);text-align:center}
.avE-tabs button[aria-selected="true"]{background:var(--blue);color:#fff}.avE-tabs button:focus-visible{outline:3px solid var(--blue-d);outline-offset:2px}
.avE-i svg{width:22px;height:22px;display:block}.avE-tabs button[aria-selected="true"] .avE-i svg{filter:brightness(0) invert(1)}
.avE-sec{margin-top:14px}.avE-sec h4{font-size:.95rem;font-weight:900;margin:0 0 8px}.avE-row{display:flex;flex-wrap:wrap;gap:8px}
.avt{all:unset;cursor:pointer;box-sizing:border-box;border:2px solid var(--line);border-bottom-width:4px;border-radius:14px;background:var(--surface);padding:6px;display:flex;align-items:center;justify-content:center;gap:6px;font-weight:800;font-size:.82rem;color:var(--ink2)}
.avt:hover{background:var(--surface2)}.avt:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.avt[aria-pressed="true"]{border-color:var(--blue);background:var(--blue-bg);color:var(--blue-d)}
.avt.wide{padding:10px 14px;min-width:96px}.avt.pic{padding:3px}.avt.pic svg{border-radius:12px;display:block}
.avt.role{flex-direction:column;padding:6px 8px 8px}.avE-sym{font-size:1.2rem}.avE-none{width:60px;height:60px;display:grid;place-items:center;font-size:1.8rem;color:var(--ink3)}
.avsw{all:unset;cursor:pointer;width:34px;height:34px;border-radius:50%;background:var(--c);box-shadow:inset 0 0 0 2px rgba(0,0,0,.12);box-sizing:border-box}
.avsw[aria-pressed="true"]{box-shadow:0 0 0 3px var(--bg),0 0 0 6px var(--blue)}.avsw:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.avE-pre h3{font-size:1.05rem;font-weight:900;margin:0}.avE-pre p{margin:2px 0 10px}
.avE-pg{display:flex;gap:10px;overflow:auto;padding-bottom:6px}
.avE-pm{all:unset;cursor:pointer;flex:none;display:flex;flex-direction:column;align-items:center;gap:4px;border:2px solid var(--line);border-radius:16px;padding:4px 4px 8px;background:var(--surface);font-weight:800;font-size:.82rem}
.avE-pm:hover{border-color:var(--blue)}.avE-pm:focus-visible{outline:3px solid var(--blue);outline-offset:2px}.avE-pm svg{border-radius:14px}
.avE-foot{display:flex;gap:12px;justify-content:center;margin-top:16px;flex-wrap:wrap}.avE-foot .btn{min-width:150px}
@media (min-width:980px){.avE-grid{grid-template-columns:270px minmax(0,1fr) 230px;align-items:start}.avE-pg{display:grid;grid-template-columns:1fr 1fr;overflow:visible}.avE-pm svg{width:100%;height:auto}.avE-ctl{max-height:58vh;overflow:auto;padding-right:4px}}
.avE-row{padding:4px 4px 0}.avE-pane{padding-left:2px}
.avE-grid{grid-template-columns:minmax(0,1fr)}.avE-grid>*{min-width:0}.modal.wide{overflow-x:hidden}@media (min-width:980px){.avE-grid{grid-template-columns:270px minmax(0,1fr) 230px}}
.only-mobile{display:none}@media (max-width:699px){.only-mobile{display:block}}
.subj{display:flex;flex-direction:column;gap:2px;padding:8px 14px;border-left:5px solid var(--blue);background:var(--blue-bg);border-radius:0 12px 12px 0;margin-bottom:2px}.subj span{font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:var(--blue-d)}.subj b{font-size:1.02rem;font-weight:900;color:var(--ink)}
