:root{--navy:#102a43;--blue:#1565c0;--bg:#f4f6f9;--card:#fff;--ink:#172b4d;--muted:#64748b;--line:#dde5ed;--green:#16a34a;--red:#dc2626}*{box-sizing:border-box}body{margin:0;font-family:system-ui,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--ink);display:flex;min-height:100vh}aside{width:250px;background:var(--navy);color:#fff;padding:24px 16px;display:flex;flex-direction:column;gap:25px}aside h2{font-size:20px;margin:0}nav{display:grid;gap:7px}button,select,input{font:inherit}nav button{background:transparent;color:#dce8f3;text-align:left;border:0;padding:12px;border-radius:9px;cursor:pointer}nav button:hover,nav button.active{background:#244d72;color:#fff}aside small{margin-top:auto;color:#b6c8d8}main{flex:1;min-width:0;padding:30px;max-width:1300px;margin:auto}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}h1{margin:0;font-size:29px}h2{font-size:21px}button.primary{background:var(--blue);color:white;border:0;padding:12px 19px;border-radius:9px;cursor:pointer}button.secondary,#theme{background:var(--card);color:var(--ink);border:1px solid var(--line);padding:10px 15px;border-radius:9px;cursor:pointer}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}.card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:22px;margin-bottom:18px;box-shadow:0 3px 12px #102a4308}.metric{font-size:31px;font-weight:750;margin-top:10px}.muted{color:var(--muted)}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.choice{display:block;width:100%;text-align:left;background:var(--card);border:1px solid var(--line);border-radius:10px;padding:15px;margin:9px 0;cursor:pointer;color:var(--ink)}.choice:hover{border-color:var(--blue)}.choice.correct{border-color:var(--green);background:#dcfce7;color:#14532d}.choice.wrong{border-color:var(--red);background:#fee2e2;color:#7f1d1d}.choice:disabled{cursor:default}.pill{display:inline-block;background:#eaf3fb;color:#174b7c;padding:5px 9px;border-radius:30px;font-size:12px;margin:3px}.field{display:flex;flex-direction:column;gap:6px;margin:12px 0}.field select,.field input{padding:11px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--ink);max-width:420px}.bar{height:10px;background:#dbe5ee;border-radius:10px;overflow:hidden}.bar>div{height:100%;background:var(--blue)}.feedback{border-left:4px solid var(--blue);padding:14px;background:var(--bg);border-radius:8px;margin-top:15px}.listrow{padding:14px 0;border-bottom:1px solid var(--line)}.dark{--bg:#0e1726;--card:#17283b;--ink:#edf3fa;--muted:#a9bdd0;--line:#33465a}.dark .pill{background:#264d70;color:#e5f3ff}@media(max-width:750px){body{display:block}aside{width:auto;padding:14px}aside h2{font-size:18px}aside small{display:none}nav{display:flex;overflow-x:auto}nav button{white-space:nowrap;padding:10px}main{padding:17px}h1{font-size:24px}}
/* Identidade editorial: tipografia de interface inspirada em sistemas financeiros modernos. */
body{font-family:Inter,'Segoe UI Variable','Segoe UI',system-ui,sans-serif}h1,h2,h3{letter-spacing:-.025em}button{transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}button:not(:disabled):hover{transform:translateY(-1px);box-shadow:0 5px 16px #102a4318}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #60a5fa;outline-offset:2px}.between{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.metric-card{cursor:pointer;text-align:left;display:flex;flex-direction:column;gap:8px;color:var(--ink);font:inherit}.metric-card .metric{display:block}.hint{color:var(--blue);font-size:12px;font-weight:700}.choice.selected{border:2px solid var(--blue);background:#eaf3fb;color:#102a43;box-shadow:0 0 0 2px #1565c014}.dark .choice.selected{background:#1c4367;color:#fff}.choice.correct,.choice.wrong{border-width:2px}.feedback.ok{border-color:var(--green)}.feedback.bad{border-color:var(--red)}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px 20px}.form-grid .field input,.form-grid .field select{width:100%}.chart-bars{display:flex;gap:10px;min-height:160px;align-items:flex-end;overflow-x:auto;padding:20px 0}.chart-col{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;min-width:38px;font-size:11px}.chart-col>div{width:24px;background:#1565c0;border-radius:5px 5px 0 0}.chart-col small{color:var(--muted)}.stem{font-size:19px;line-height:1.6;font-weight:600}.dark .hint{color:#80baff}.dark .chart-col>div{background:#60a5fa}@media(max-width:750px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-card{padding:14px}.metric{font-size:25px}}

/* v0.3: refinamento de interface sem dependências externas */
:root{--shadow:0 8px 28px #102a430b}body{font-family:'Segoe UI Variable','Segoe UI',system-ui,sans-serif}main{max-width:1560px}aside{flex-shrink:0}aside.filter-panel{width:auto;background:var(--card);color:var(--ink);padding:20px;gap:12px;display:block;position:sticky;top:16px;align-self:start}aside.filter-panel h2{font-size:19px}aside.filter-panel .field input,aside.filter-panel .field select{width:100%;min-width:0}aside.filter-panel .field{margin:15px 0}.study-layout{display:grid;grid-template-columns:minmax(250px,310px) minmax(0,1fr);gap:22px;align-items:start}.study-main{min-width:0}.topic-checks{max-height:200px;overflow:auto;border:1px solid var(--line);padding:9px;border-radius:10px;display:grid;gap:9px}.topic-checks label{font-size:13px;display:flex;align-items:flex-start;gap:7px;line-height:1.4}.topic-checks input{width:auto!important;margin-top:2px}.preset{display:flex;gap:6px;margin:8px 0}.preset button:first-child{flex:1;text-align:left}.icon-button{min-width:35px}.welcome{display:flex;align-items:center;justify-content:space-between;background:#102a43;color:white;border-radius:17px;padding:25px 30px;margin-bottom:22px}.welcome h2{font-size:25px;margin:8px 0}.welcome p{color:#cbdcec;margin:0}.welcome-icon{font-size:60px;opacity:.4}.eyebrow{font-size:11px;letter-spacing:.13em;font-weight:800;color:#398be8}.welcome .eyebrow{color:#a9d4ff}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:22px}.feature-grid>div{padding:18px;background:var(--bg);border-radius:12px}.feature-grid strong{font-size:27px;display:block}.feature-grid span{font-size:12px;color:var(--muted)}.card{box-shadow:var(--shadow)}.metric-card:hover{border-color:#78b3f2}.note-box{display:grid;gap:8px;margin-top:15px}.note-box label{font-weight:650;font-size:13px}.note-box textarea{width:100%;min-height:85px;padding:12px;font:inherit;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink);resize:vertical}.diagnosis{background:var(--bg);padding:16px;border-radius:12px}.diagnosis p{margin:9px 0}.notebook-row{padding:8px 0;border-bottom:1px solid var(--line)}button:disabled{opacity:.6;cursor:not-allowed}.dark .welcome{background:#1d4268}.dark .choice.correct{background:#174c34;color:#d9ffe8}.dark .choice.wrong{background:#632c31;color:#fff0f0}@media(max-width:1050px){.study-layout{grid-template-columns:1fr}aside.filter-panel{position:static}}@media(max-width:750px){.welcome{padding:19px}.welcome-icon{display:none}.feature-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.feature-grid>div{padding:10px}.feature-grid strong{font-size:22px}.study-layout{gap:8px}aside.filter-panel{padding:17px}.notebook-row{align-items:flex-start}}

/* v0.4 — identidade visual, acessibilidade e modo foco */
:root{--shadow:0 8px 28px rgba(16,42,67,.055)}
body{font-family:Inter,"Segoe UI Variable","Segoe UI",system-ui,sans-serif;letter-spacing:-.008em}
.stem,.feedback,.note-box{font-family:"Source Sans 3",Inter,"Segoe UI",system-ui,sans-serif}
.card{box-shadow:var(--shadow);border-radius:17px}
main{max-width:1500px}aside{position:sticky;top:0;height:100vh}aside.filter-panel{height:auto;position:static;color:var(--ink)}
button{min-height:40px}button:disabled{opacity:.55;cursor:not-allowed}button:focus-visible,textarea:focus-visible{outline:3px solid #60a5fa;outline-offset:2px}
.choice{line-height:1.55;font-size:15px;transition:background .15s,border-color .15s}
.choice.selected{background:#eaf3fb}.dark .choice.selected{background:#1e4569}
.metric-card:hover{border-color:#7aa8dc;transform:translateY(-2px)}
.chart-col>div{min-height:5px;transition:height .25s}.chart-col{min-width:41px}
.feedback{line-height:1.65}.feedback .actions button{font-size:13px}
.focus-mode>aside{display:none}.focus-mode main{max-width:950px}.focus-mode header{opacity:.7}
@media(max-width:850px){aside{height:auto;position:static}.study-layout{display:block}.filter-panel{max-width:none}.focus-mode>aside{display:none}}
@media(max-width:520px){main{padding:12px}.card{padding:16px}.stem{font-size:17px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.actions button{flex:1}.chart-col{min-width:36px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}

/* Recorte de alternativas — BancoQuest Pro v0.5.2 */
.alternative-row{display:flex;align-items:stretch;gap:10px;margin:9px 0}.alternative-row .choice{flex:1;min-width:0;margin:0}.cut-choice{flex:0 0 40px;border:1px solid var(--line);background:var(--card);color:var(--ink);border-radius:10px;cursor:pointer;font-size:20px;align-self:stretch}.cut-choice:hover,.cut-choice:focus-visible{border-color:var(--blue);background:var(--bg)}.alternative-row.is-eliminated .choice:not(.correct):not(.wrong){text-decoration:line-through;opacity:.48;background:var(--bg)}.alternative-row.is-eliminated .cut-choice{background:var(--bg);color:var(--muted);border-style:dashed}.recorte-hint{font-size:13px;line-height:1.5}.cut-choice:disabled{opacity:.55;cursor:default}@media(max-width:750px){.alternative-row{gap:6px}.cut-choice{flex-basis:38px}}

/* v0.5.3 — brilho sutil, profundidade e hierarquia */
:root{--shadow:0 12px 38px rgba(13,45,83,.085)}
body{background:radial-gradient(ellipse at 78% -12%,rgba(79,162,255,.15),transparent 42%),var(--bg)}
body>aside:not(.filter-panel){background:linear-gradient(155deg,#0c2039,#133b60 60%,#102a43);box-shadow:5px 0 25px #061d3017}
.welcome{position:relative;overflow:hidden;background:linear-gradient(115deg,#102a43 15%,#15518c 74%,#246ab0);box-shadow:0 16px 42px #0d3d762e}
.welcome::after{content:"";position:absolute;width:280px;height:280px;right:-70px;top:-135px;background:radial-gradient(circle,#ffffff29,transparent 67%);pointer-events:none}
.card{border-color:color-mix(in srgb,var(--line) 85%,#82b9fa);box-shadow:var(--shadow);transition:box-shadow .2s ease,border-color .2s ease}
.card:hover{box-shadow:0 14px 36px #0b315b16}
button.primary{background:linear-gradient(125deg,#1565c0,#2989e7);box-shadow:0 5px 15px #1565c030;font-weight:650}
button.primary:hover{box-shadow:0 8px 22px #1565c050}
.metric-card .metric{background:linear-gradient(100deg,#0e3d6a,#2582d6);background-clip:text;-webkit-background-clip:text;color:transparent}
.dark .metric-card .metric{background:linear-gradient(100deg,#d8ebff,#7db9ff);background-clip:text;-webkit-background-clip:text}
@media(prefers-reduced-motion:reduce){.card{transition:none}}

/* Login local de perfis */
[hidden]{display:none!important}
.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 12% 15%,#245ea8 0%,transparent 34%),radial-gradient(circle at 90% 80%,#1a4b88 0%,transparent 40%),#091d33;color:#eaf3fb}
.auth-panel{width:min(100%,460px);background:rgba(255,255,255,.97);color:#102a43;padding:38px;border-radius:22px;box-shadow:0 24px 90px rgba(0,0,0,.35);border:1px solid #c5dafa}
.auth-logo{font-weight:800;letter-spacing:.1em;color:#1565c0}.auth-logo span{font-size:12px;color:#66798e}.auth-panel h1{margin:24px 0 4px;font-size:30px}.auth-panel>p{color:#566b7c}
.auth-tabs{display:flex;gap:8px;margin:24px 0}.auth-tabs button{flex:1;background:#eaf3fb;color:#164168;border:1px solid #cadcf1;border-radius:9px;padding:12px;cursor:pointer}.auth-tabs button.selected{background:#1565c0;color:white}
#auth-form{display:flex;flex-direction:column;gap:10px}#auth-form label{font-weight:600;font-size:14px}#auth-form input{width:100%;border:1px solid #b8cce1;border-radius:9px;padding:13px;font-size:16px;color:#102a43;background:white}
#auth-form input:focus{outline:3px solid #b9dcff}.auth-submit{background:linear-gradient(115deg,#1565c0,#3389eb);color:white;padding:14px;border:0;border-radius:10px;font-weight:700;margin-top:10px;cursor:pointer}
.auth-error{color:#a52135!important;background:#fff1f2;border-radius:8px;padding:10px}.auth-note{margin-top:22px;color:#52677c;font-size:12px;line-height:1.6}
#current-user{font-weight:700;margin-right:8px}#logout{margin-right:8px}
@media(max-width:600px){.auth-panel{padding:24px}.auth-panel h1{font-size:25px}}

/* v0.5.5 — Correção da estrutura de layout após autenticação */
#auth-root{width:100%;min-width:0}
#auth-root[hidden],#site-shell[hidden]{display:none!important}
#site-shell{display:flex;width:100%;min-width:0;min-height:100vh;align-items:stretch}
#site-shell>aside{flex:0 0 250px;width:250px;z-index:2}
#site-shell>main{flex:1 1 0;min-width:0;width:0;margin:0 auto;max-width:none}
#site-shell header{gap:12px;flex-wrap:wrap}
#site-shell #current-user{margin-left:auto;overflow-wrap:anywhere}
#site-shell.focus-mode>aside{display:none}
#site-shell.focus-mode>main{max-width:1100px;width:100%;margin:0 auto}
@media(max-width:850px){
 #site-shell{display:block}
 #site-shell>aside{position:static;height:auto;width:100%;max-width:none}
 #site-shell>main{width:100%;max-width:none}
 #site-shell header{align-items:center}
 #site-shell #current-user{margin-left:0}
}

/* v0.5.6: área de perfil */
.profile-container{max-width:980px;margin:auto}.profile-hero{display:flex;align-items:center;gap:24px;background:linear-gradient(125deg,var(--card),var(--bg));border-color:#85b9f266}.profile-hero h2{font-size:28px;margin:6px 0}.profile-hero .secondary{margin-left:auto}.profile-avatar{flex:0 0 92px;width:92px;height:92px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:38px;font-weight:800;background:linear-gradient(140deg,#1256ac,#4aafff);box-shadow:0 0 30px #2c83e45c}.profile-section-title{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);margin-bottom:18px}.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 22px}.profile-field{display:flex;flex-direction:column;gap:7px;font-weight:600;font-size:13px;margin:12px 0}.profile-field input,.profile-field select{padding:12px;border:1px solid var(--line);background:var(--card);color:var(--ink);border-radius:10px;min-width:0;width:100%;font:inherit}.profile-access{border-color:#8bb6df77}.account-link,#logout{border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink);padding:10px 13px;cursor:pointer}#logout:hover,.account-link:hover{border-color:#3389eb}.profile-hero{box-shadow:0 8px 35px #1565c01f}@media(max-width:650px){.profile-grid{grid-template-columns:1fr}.profile-hero{flex-wrap:wrap}.profile-hero .secondary{margin-left:0}.profile-avatar{width:70px;height:70px;flex-basis:70px}}

/* Identidade visual Canto da Aprovação */
aside h2 {display:flex;align-items:center;gap:9px;font-size:1rem;line-height:1.2}
.brand-icon {width:44px;height:44px;object-fit:cover;object-position:center;border-radius:10px;flex-shrink:0}
.auth-brand-image {display:block;width:min(100%,450px);height:auto;border-radius:12px;margin:0 auto 12px}
.provenance-box {margin:14px 0;padding:13px 15px;border:1px solid #c9dced;border-radius:12px;background:rgba(40,119,202,.06);overflow-wrap:anywhere}
.provenance-box h3{margin:0 0 8px;font-size:.94rem}
.provenance-box p{margin:4px 0;font-size:.87rem}
.provenance-box a{color:#1565c0;text-decoration:underline}
.provenance-alert{color:#a35b00}
@media(max-width:600px){aside h2{font-size:.88rem}.brand-icon{width:34px;height:34px}.auth-brand-image{width:100%}}

/* v0.5.9 — portal acadêmico, identidade visual própria */
:root{--bg:#f5f7fb;--card:#fff;--ink:#102846;--muted:#718199;--line:#e7edf5;--shadow:0 7px 26px rgba(19,48,85,.045)}
body{font-family:Inter,'Segoe UI Variable','Segoe UI',system-ui,sans-serif;letter-spacing:-.012em}
#site-shell{background:var(--bg)}
#site-shell>aside{width:80px;flex-basis:80px;padding:16px 10px;background:#fff;color:#294567;border-right:1px solid #e5ebf3;box-shadow:none;gap:18px;position:sticky;top:0;height:100vh;overflow-y:auto;transition:width .2s ease,flex-basis .2s ease}
#site-shell>aside h2{display:flex;flex-direction:column;text-align:center;gap:6px;font-size:10px;line-height:1.1;color:#103a69;overflow-wrap:anywhere}
#site-shell>aside .brand-icon{width:42px;height:42px;border-radius:12px}
#site-shell>aside nav{display:flex;flex-direction:column;gap:5px}
#site-shell>aside nav button,#site-shell>aside nav a{font-size:11px;text-align:center;line-height:1.2;color:#5c6d86;background:transparent;padding:12px 4px;border-radius:12px;overflow-wrap:anywhere}
#site-shell>aside nav button:hover,#site-shell>aside nav button.active,#site-shell>aside nav a:hover{background:#e9f2ff;color:#0863c7}
#site-shell>aside small{font-size:9px;text-align:center;color:#94a3b8}
#site-shell>main{padding:0 32px 55px;min-width:0}
#site-shell .portal-header{position:sticky;top:0;z-index:8;min-height:76px;background:rgba(255,255,255,.95);backdrop-filter:blur(14px);border-bottom:1px solid #e7edf5;display:flex;gap:13px;padding:12px 20px;margin:0 -32px 26px;justify-content:flex-end}
#site-shell #current-user{font-size:13px;color:#1b4f84;margin-left:auto}
.portal-search{display:flex;align-items:center;gap:9px;background:#f4f6fa;border:1px solid #edf1f6;border-radius:12px;padding:0 12px;width:min(450px,43vw);margin-right:auto}
.portal-search span{font-size:23px;color:#7e92a9}.portal-search input{border:0;outline:none;background:transparent;min-width:0;width:100%;color:var(--ink);font:inherit;font-size:13px}.portal-search kbd{font-size:11px;white-space:nowrap;color:#8492a5;background:white;border:1px solid #e8ecf2;border-radius:6px;padding:3px 5px}
#mobile-nav-toggle{display:none;background:white;border:1px solid var(--line);border-radius:9px;padding:8px 12px;color:var(--ink)}
#site-shell header button{font-size:12px;white-space:nowrap}#site-shell header #theme{padding:10px 12px}
.page-heading{margin:0 0 20px}.page-heading h2{font-size:25px;margin:0 0 5px}.page-heading p{margin:0;color:var(--muted);font-size:13px}
.portal-intro{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(220px,.7fr);gap:18px;margin-bottom:30px}
.portal-welcome,.portal-goal{border:1px solid #e5ecf5;border-radius:19px;background:linear-gradient(115deg,#fff 65%,#e8f2ff);padding:28px 30px;box-shadow:var(--shadow)}
.portal-welcome h2{font-size:29px;letter-spacing:-.04em;margin:10px 0 8px;color:#123b70}.portal-welcome p,.portal-goal p{color:#647a96;font-size:14px;margin:0}
.portal-shortcuts{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}.portal-shortcuts button{font-size:12px;border-radius:20px!important;padding:10px 14px!important}.portal-shortcuts button:not(.primary){background:#edf5ff;border:1px solid #d6e8ff;color:#1762ac}
.portal-goal{background:linear-gradient(130deg,#eaf4ff,#dceafc);display:flex;flex-direction:column;justify-content:center;gap:15px}.portal-goal strong{font-size:40px;color:#13549c}.portal-goal small{font-size:14px;color:#627e9f;font-weight:500}.portal-goal .bar{background:#c9d9eb}.portal-goal .bar>div{background:linear-gradient(90deg,#1369c9,#48b1ff)}
.portal-section-title{margin:0 0 16px}.portal-section-title h2{margin:0;font-size:22px;letter-spacing:-.03em}.portal-section-title h2 span{color:#e5a631}.portal-section-title p{margin:5px 0 0;color:var(--muted);font-size:13px}
#site-shell .card{border:1px solid #e9eef5;border-radius:16px;box-shadow:var(--shadow)}
#site-shell .metrics{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:20px}
#site-shell .metric-card{text-align:left;padding:21px;transition:transform .15s,border-color .15s}
#site-shell .metric-card:hover{transform:translateY(-2px);border-color:#9bc7f6}
#site-shell .metric-card .metric{color:#12539b;font-size:32px}
#site-shell .metric-card .hint{color:#2676c7}
#site-shell .study-layout aside.filter-panel{width:auto;flex-basis:auto;position:sticky;height:auto;top:90px;padding:20px;box-shadow:var(--shadow);background:var(--card);color:var(--ink);overflow:visible}
#site-shell .study-layout aside.filter-panel h2{font-size:18px;text-align:left;display:block;color:var(--ink)}
.dark #site-shell{--bg:#0e1726;--card:#17283b;--ink:#edf3fa;--muted:#a9bdd0;--line:#33465a;background:var(--bg)}
.dark #site-shell>aside,.dark #site-shell .portal-header{background:#17283b;color:#edf3fa;border-color:#33465a}.dark #site-shell>aside nav button{color:#c5d3e6}.dark .portal-welcome,.dark .portal-goal{background:linear-gradient(125deg,#193550,#203d5b);border-color:#36536f}.dark .portal-welcome h2,.dark .portal-goal strong{color:#e8f5ff}.dark .portal-search{background:#20364c;border-color:#33465a}.dark .portal-search input{color:white}.dark .portal-search kbd{background:#243b54;color:white;border-color:#33465a}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1150px){#site-shell .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-intro{grid-template-columns:1fr}.portal-goal{min-height:160px}}
@media(max-width:850px){#site-shell>aside{display:none;position:fixed;z-index:20;top:65px;left:0;width:245px;max-width:85vw;height:calc(100vh - 65px);overflow-y:auto;box-shadow:10px 12px 35px #122e4b33}#site-shell.mobile-menu-open>aside{display:flex;width:245px;flex-basis:245px}#site-shell.mobile-menu-open>aside h2{flex-direction:row;font-size:15px;text-align:left}#site-shell.mobile-menu-open>aside nav button,#site-shell.mobile-menu-open>aside nav a{font-size:14px;text-align:left;padding:12px}#mobile-nav-toggle{display:inline-flex;align-items:center}#site-shell>main{padding:0 18px 30px;width:100%}#site-shell .portal-header{margin:0 -18px 20px;padding:10px 18px;min-height:65px}.portal-search{width:min(450px,48vw)}#site-shell .study-layout aside.filter-panel{position:static}}
@media(max-width:600px){#site-shell .portal-header{gap:7px;flex-wrap:wrap}#site-shell #current-user{display:none}#site-shell header .account-link{display:none}#site-shell header #logout{padding:8px;font-size:11px}#site-shell header #theme{padding:8px;font-size:11px}.portal-search{order:5;flex:1 1 100%;width:100%;min-height:40px}.portal-search kbd{display:none}.portal-welcome,.portal-goal{padding:20px}.portal-welcome h2{font-size:24px}#site-shell .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}#site-shell .metric-card{padding:14px}.portal-shortcuts button{flex:1}.portal-intro{gap:10px}}

/* v0.5.10 — navegação lateral com ícone e texto na mesma linha */
#site-shell>aside{width:246px;flex:0 0 246px;padding:20px 13px;overflow-x:hidden}
#site-shell>aside h2{display:flex;flex-direction:row;align-items:center;gap:12px;text-align:left;font-size:15px;line-height:1.25;overflow-wrap:normal;word-break:normal}
#site-shell>aside h2 span{min-width:0}
#site-shell>aside .brand-icon{width:43px;height:43px;flex-shrink:0}
#site-shell>aside nav{display:flex;flex-direction:column;gap:5px;width:100%;min-width:0}
#site-shell>aside nav button,#site-shell>aside nav a{
 display:flex!important;flex-direction:row;align-items:center;justify-content:flex-start;
 gap:12px;width:100%;min-width:0;padding:11px 13px!important;
 text-align:left!important;font-size:13px!important;line-height:1.3!important;
 white-space:nowrap;overflow-wrap:normal;word-break:normal;text-decoration:none;
 border-radius:11px;min-height:43px;
}
#site-shell>aside nav .nav-icon{flex:0 0 22px;width:22px;display:inline-flex;align-items:center;justify-content:center;font-size:19px;line-height:1;color:#3e78b6}
#site-shell>aside nav .nav-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#site-shell>aside nav button:hover .nav-icon,#site-shell>aside nav button.active .nav-icon,#site-shell>aside nav a:hover .nav-icon{color:#0863c7}
#site-shell>aside small{font-size:11px;text-align:left;line-height:1.4}
@media(max-width:850px){
 #site-shell>aside{display:none;width:246px;flex-basis:246px}
 #site-shell.mobile-menu-open>aside{display:flex;width:246px;flex-basis:246px}
 #site-shell.mobile-menu-open>aside nav button,#site-shell.mobile-menu-open>aside nav a{display:flex!important;white-space:nowrap;font-size:13px!important;text-align:left!important}
}

/* Painel de atividade: filtros responsivos e gráfico com períodos selecionáveis */
.activity-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}
.activity-filters label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:650;color:var(--ink)}
.activity-filters select{width:100%;min-width:0;padding:10px;border:1px solid var(--border,#d4dfeb);border-radius:9px;background:var(--card,#fff);color:var(--ink);font:inherit}
.activity-summary{display:flex;flex-wrap:wrap;gap:18px;margin:10px 0;color:var(--muted);font-size:13px}
.activity-summary strong{color:var(--ink);font-size:17px}
.activity-chart{min-height:195px;gap:clamp(7px,1.2vw,16px);padding-bottom:8px}
.activity-chart .chart-col{flex:1;min-width:40px}
.activity-chart .chart-col>div{width:min(100%,30px)}
@media(max-width:680px){.activity-filters{grid-template-columns:1fr}.activity-chart .chart-col{min-width:45px}}

/* v0.5.12 — Centro de revisão de erros */
.error-hero{background:linear-gradient(115deg,rgba(19,102,191,.10),rgba(255,255,255,.02))}
.error-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}
.error-filters label{display:grid;gap:7px;font-weight:600;font-size:13px}
.error-filters select,.error-filters input{width:100%;min-width:0}
.error-pies{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:20px 0}
.error-pies>div{min-width:0;padding:15px;border:1px solid var(--line,#dbe4ee);border-radius:16px}
.pie-layout{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.pie-graphic{width:180px;height:180px;min-width:180px;border-radius:50%;display:grid;place-items:center}
.pie-center{width:102px;height:102px;border-radius:50%;background:var(--card,#fff);display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--text,#132a46)}
.pie-center strong{font-size:30px}.pie-center small{font-size:12px}
.pie-legend{flex:1;min-width:180px;max-height:280px;overflow:auto}
.pie-legend-row{display:grid;grid-template-columns:12px minmax(0,1fr) 54px 30px;gap:7px;align-items:center;padding:6px 0;font-size:12px}
.pie-legend-row span:nth-child(2){overflow-wrap:anywhere}.pie-legend-row strong{text-align:right}.pie-legend-row small{text-align:right}
.pie-dot{height:11px;width:11px;border-radius:3px}.empty-chart{padding:35px 10px;color:var(--muted,#64748b)}
.guide-item{border:1px solid var(--line,#dbe4ee);border-radius:12px;margin:10px 0;padding:12px 16px}
.guide-item summary{cursor:pointer;display:flex;gap:12px;justify-content:space-between;font-weight:700}
.guide-item p{line-height:1.65}
@media(max-width:850px){.error-pies,.error-filters{grid-template-columns:1fr}.pie-graphic{width:155px;height:155px;min-width:155px}}

/* Login: lembrar usuário sem armazenar senha */
.auth-remember{display:flex!important;align-items:center;gap:9px;margin:15px 0 6px;cursor:pointer;font-size:.9rem}.auth-remember input{width:17px!important;height:17px!important;flex:0 0 17px;margin:0!important;accent-color:#1565c0}.auth-hint{font-size:.78rem;color:var(--muted,#64748b);line-height:1.5;margin:0 0 12px}
