/* Fabriq Quest 1.44–1.45 — refinamento visual e de usabilidade.
   Camada final, carregada depois das demais folhas: preserva cores, logo e
   estilo de vidro; ajusta legibilidade, alvos de toque, navegação no celular
   e acabamento. Para desfazer, basta remover o <link> desta folha. */

:root{--fq-tap:44px;--fq-label:12px;--fq-caption:13px;--fq-focus:0 0 0 3px color-mix(in srgb,var(--fq-mint,#7de1c4) 55%,transparent)}

/* 1. Acabamento geral */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent}
h1,h2,h3,.section-title h2{text-wrap:balance}
p,.hint,.library-guide{text-wrap:pretty}
::selection{background:color-mix(in srgb,var(--fq-mint,#7de1c4) 38%,transparent);color:inherit}
:where(button,a,summary,select,input,textarea,[role=button]):focus-visible{outline:2px solid var(--fq-mint,#7de1c4);outline-offset:2px;box-shadow:var(--fq-focus)}
html[data-theme="light"] :where(button,a,summary,select,input,textarea,[role=button]):focus-visible{outline-color:#136e59}
*{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--muted,#94a7ba) 45%,transparent) transparent}
img{max-width:100%}

/* Resposta tátil discreta ao tocar/clicar (desligada com movimento reduzido) */
@media (prefers-reduced-motion:no-preference){
 :where(.btn,.linkbtn,.navitem,.option,.course-card,.theme-card,.file-row .btn,.tabbar-item,.quiz-jump,.welcome-link){transition:transform .16s var(--fq-ease,ease),box-shadow .2s ease,background-color .2s ease,border-color .2s ease,color .2s ease}
 :where(.btn,.linkbtn,.option,.tabbar-item,.quiz-jump,.welcome-link):active:not(:disabled){transform:scale(.97)}
 @media (hover:hover) and (pointer:fine){
  :where(.course-card,.theme-card,.period-card.is-available,.included-card):hover{transform:translateY(-2px)}
 }
}
:where(.btn,button):disabled{cursor:not-allowed}

/* 2. Tipografia mínima legível (antes: rótulos de 7–10 px em celulares) */
:is(.eyebrow,.mini,.tag,.course-kicker,.course-status,.academic-badge,.library-badge,.offer-term,#offer-title,.brand-subtitle,#crumb,.quiz-legend-item,.performance-metrics span){font-size:var(--fq-label);letter-spacing:.08em}
:is(.hint,.library-guide,.library-count,.file-credit,.library-type,.course-subtitle,.account-grant,.performance-caption,.offer-note,.offer-security,.offer-includes li,.auth-legal,.offer-legal,.study-news-item small,.study-shortcut small,.performance-metrics small,.plan small,.public-price small){font-size:var(--fq-caption);line-height:1.55}
:is(.library-week,.library-group,.more-filters)>summary,:is(.library-week,.library-group)>summary span{font-size:var(--fq-caption)}
.included-card>span{font-size:var(--fq-label)}
:is(.library-tools,.history-filters,.performance-filters,.performance-topic-tools,#auth-form,.form-grid) label{font-size:var(--fq-caption)}
:is(.file-row .btn,.public-nav .btn,.public-nav .linkbtn,.public-nav-actions .btn,.welcome-link,.card-cta,#auth-secondary-actions .linkbtn,.menu-toggle span){font-size:13px}
#avatar{font-size:13px}
.legal-footer nav a,.legal-footer p,.legal-footer p a{font-size:13px}
.file-row p,.file-row p span{font-size:var(--fq-caption)}
:is(.navlabel,.nav-section,#student-shortcuts-title,.academic-nav-badge,.sidefoot small,.highlight-title,#q-tag){font-size:var(--fq-label)}
:is(#side-status,#highlight-status,#quiz-answered,#study-save-status,.quiz-draft-note,#q-report,#q-library,#q-glossary,#q-annul,#q-bookmark,.home-period-copy label,.home-period-panel label){font-size:var(--fq-caption)}
details>summary{font-size:max(var(--fq-caption),1em)}
.quiz-actions .btn{font-size:14px;font-weight:700}
:is(#renew-session,#export-progress,#import-progress,#logout,.account-actions .btn){font-size:13px}
:is(.course-card p,.welcome p,.osce-preview p){font-size:max(var(--fq-caption),1em)}
:is(.course-card>span,.edition-label,.secure-pill,.plan>div>small){font-size:var(--fq-label)}
:is(.home-period-copy,.home-period-panel,.performance-filters,.performance-topic-tools,.account-form,form) label{font-size:var(--fq-caption)}
.highlight-sidebar :is(#highlight-status,.highlight-title){font-size:var(--fq-label)}
:is(.theme-kicker){font-size:var(--fq-label)}
:is(label[for=account-period],label[for=student-period],.study-shortcut b,.theme-course b,.n2-heading label,.home-period-controls label,#quit-quiz){font-size:var(--fq-caption)}
#highlight-status.highlight-hint{font-size:var(--fq-label)!important} /* a regra original usa !important */
:is(.theme-home-note,.theme-card small,.theme-card b,.theme-course small,#quiz-progress,.plan small,.included-card>span){font-size:max(var(--fq-label),1em)}
:is(#quiz-setup,.quiz-setup,.reading-view) details>summary,.home-period-panel label,.account-period label,#account-period-label{font-size:var(--fq-caption)}

/* Selo decorativo da marca na barra lateral: uma linha, dentro da moldura */
.sidebar .identity small{font-size:11px;letter-spacing:.06em;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}

/* 3. Alvos de toque de pelo menos 44 px no celular */
@media (max-width:700px){
 :is(.btn,.menu-toggle,#avatar,.quiz-jump,#quit-quiz,.welcome-link,.public-nav .linkbtn,.quiet-link,.period-card .linkbtn){min-height:var(--fq-tap)}
 :is(.quiz-jump,#avatar){min-width:var(--fq-tap)}
 :is(#q-bookmark,#q-annul,#q-glossary,#q-library,#q-report){min-height:var(--fq-tap)}
 :is(.highlight-color,.highlight-erase,#highlight-clear){width:40px;height:40px;min-width:40px}
 .eliminate-option{width:var(--fq-tap);height:var(--fq-tap);min-width:var(--fq-tap)}
 :is(.public-nav .linkbtn,.quiet-link,.period-card .linkbtn,#quit-quiz){display:inline-flex;align-items:center}
 .legal-footer nav{display:flex;flex-wrap:wrap;justify-content:center;gap:2px 6px}
 .legal-footer nav a,.legal-footer p a{display:inline-flex;align-items:center;min-height:var(--fq-tap);padding:0 8px}
 :is(.library-week,.library-group,.more-filters)>summary{min-height:var(--fq-tap);display:flex;align-items:center}
 select,input:not([type=checkbox]):not([type=radio]),textarea{font-size:16px} /* evita zoom automático do iPhone */
}

/* 4. Celular: menos moldura no topo da área logada e barra de atalhos inferior */
.mobile-tabbar{display:none}
@media (max-width:860px){
 body:not(.is-public) .identity small{display:none}
 body:not(.is-public) #crumb{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
 body:not(.is-public) .mobile-tabbar{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;z-index:50;left:10px;right:10px;bottom:max(10px,env(safe-area-inset-bottom));padding:6px;border:1px solid color-mix(in srgb,var(--stroke,#27394b) 85%,transparent);border-radius:22px;background:color-mix(in srgb,var(--panel,#111e2c) 88%,transparent);backdrop-filter:blur(18px) saturate(140%);-webkit-backdrop-filter:blur(18px) saturate(140%);box-shadow:0 18px 40px -12px #000a}
 body:not(.is-public) .main{padding-bottom:calc(92px + env(safe-area-inset-bottom))}
 /* Durante uma questão, a barra sai para não cobrir Confirmar/Próxima */
 body:has(#quiz-view:not(.hidden)) .mobile-tabbar,body.nav-is-open .mobile-tabbar{display:none}
 body:has(#quiz-view:not(.hidden)) .main{padding-bottom:24px}
 body:not(.is-public) .top{justify-content:flex-end;min-height:0;padding-top:8px;padding-bottom:8px}
 .mobile-tabbar .tabbar-item{appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:52px;margin:0;padding:6px 2px;border:0;border-radius:16px;background:transparent;color:var(--muted,#94a7ba);font:inherit;font-size:12px;font-weight:600;letter-spacing:.01em;line-height:1.1;cursor:pointer}
 .mobile-tabbar .tabbar-item .ui-icon{width:22px;height:22px;margin:0;flex:none;opacity:1}
 .mobile-tabbar .tabbar-item span{display:block;margin:0;line-height:1.1}
 .mobile-tabbar .tabbar-item:hover{background:color-mix(in srgb,var(--fq-mint,#7de1c4) 8%,transparent)}
 .mobile-tabbar .tabbar-item.active{color:var(--text,#eaf2f9);background:color-mix(in srgb,var(--fq-mint,#7de1c4) 16%,transparent);border:0;box-shadow:none}
 .mobile-tabbar .tabbar-item.active .ui-icon{color:var(--fq-mint,#7de1c4)}
 html body .mobile-tabbar .tabbar-item.active{box-shadow:none;border-color:transparent}
 .mobile-tabbar .tabbar-item::before,.mobile-tabbar .tabbar-item::after{display:none}
 html[data-theme="light"] body .mobile-tabbar .tabbar-item.active{background:#e0f2e9;color:#123a2f}
 html[data-theme="light"] .mobile-tabbar .tabbar-item.active .ui-icon{color:#136e59}
 html[data-theme="light"] body:not(.is-public) .mobile-tabbar{background:color-mix(in srgb,#ffffff 90%,transparent);box-shadow:0 18px 40px -14px #10304a40}
}
@media print{.mobile-tabbar{display:none!important}}

/* 5. Guia de primeiro acesso: botões sempre visíveis em telas baixas */
.area-guide[open]{display:flex;flex-direction:column;overflow:hidden}
.area-guide .guide-header{flex:none}
.area-guide .guide-content{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.area-guide .guide-footer{flex:none;position:relative;z-index:1;background:inherit;box-shadow:0 -14px 22px -16px #0008}
html[data-theme="light"] .area-guide .guide-footer{box-shadow:0 -14px 22px -18px #10304a55}
@media (max-width:420px){.area-guide .guide-footer{flex-wrap:wrap;gap:8px}.area-guide .guide-footer-actions{flex:1 1 100%;display:flex;gap:8px}.area-guide .guide-footer-actions .btn{flex:1}}

/* 6. Página inicial pública (1.46.0) */
/* Topo: cartões alinhados, ação principal e condições à vista */
@media (min-width:901px){.sales-hero{align-items:stretch}.sales-hero>.sales-copy{display:flex;flex-direction:column;justify-content:center}}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin:26px 0 18px}
.hero-actions .btn{min-height:50px;padding:0 22px;font-size:15px;border-radius:14px}
.hero-actions .hero-cta{box-shadow:0 14px 30px -12px color-mix(in srgb,var(--fq-mint,#7de1c4) 70%,transparent)}
.hero-actions .hero-login{background:transparent;border:1px solid color-mix(in srgb,var(--stroke,#27394b) 100%,#ffffff 8%);color:var(--text,#eaf2f9)}
.hero-trust{list-style:none;margin:0 0 18px;padding:0;display:flex;flex-wrap:wrap;gap:8px 18px;color:var(--muted,#94a7ba);font-size:13.5px}
.hero-trust li{display:inline-flex;align-items:center;gap:7px}
.hero-trust .ui-icon{width:17px;height:17px;color:var(--fq-mint,#7de1c4);flex:none}
.hero-trust b{color:var(--text,#eaf2f9)}
html[data-theme="light"] .hero-trust .ui-icon{color:#136e59}

/* Seções novas */
.public-features,.public-steps,.public-faq{padding:clamp(36px,6vw,72px) 0 0}
.public-features .section-title,.public-steps .section-title,.public-faq .section-title{max-width:720px;margin-bottom:26px}
.feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.feature-card{position:relative;padding:24px;border:1px solid var(--stroke,#27394b);border-radius:20px;background:linear-gradient(160deg,color-mix(in srgb,var(--panel2,#142537) 92%,transparent),color-mix(in srgb,var(--panel,#111e2c) 92%,transparent));box-shadow:var(--fq-shadow-sm,0 4px 14px -2px #0006);overflow:hidden}
.feature-card::after{content:"";position:absolute;inset:-40% -30% auto auto;width:160px;height:160px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--fq-mint,#7de1c4) 14%,transparent),transparent 70%);pointer-events:none}
.feature-card .course-icon{display:grid;place-items:center;margin-bottom:18px}
.feature-card h3{margin:0 0 8px;font-size:18px;letter-spacing:-.01em}
.feature-card p{margin:0;color:var(--muted,#94a7ba);font-size:14.5px;line-height:1.6}
.steps-row{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;counter-reset:none}
.steps-row li{display:flex;gap:14px;align-items:flex-start;padding:20px;border:1px solid var(--stroke,#27394b);border-radius:18px;background:color-mix(in srgb,var(--panel,#111e2c) 86%,transparent)}
.steps-row .step-index{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:color-mix(in srgb,var(--fq-mint,#7de1c4) 18%,transparent);color:var(--fq-mint,#7de1c4);font-weight:800}
.steps-row b{display:block;margin-bottom:4px;font-size:15.5px}
.steps-row div span{color:var(--muted,#94a7ba);font-size:14px;line-height:1.55}
.steps-cta{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin-top:22px}
.steps-cta .btn{min-height:48px;padding:0 22px;font-size:15px;border-radius:14px}
html[data-theme="light"] .steps-row .step-index{background:#e0f2e9;color:#136e59}
html[data-theme="light"] :is(.feature-card,.steps-row li){background:#fff;box-shadow:0 10px 28px -18px #10304a40}
/* Perguntas frequentes */
.faq-list{display:grid;gap:10px;max-width:860px}
.faq-item{border:1px solid var(--stroke,#27394b);border-radius:16px;background:color-mix(in srgb,var(--panel,#111e2c) 88%,transparent);overflow:hidden}
.faq-item>summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:56px;padding:14px 20px;font-weight:700;font-size:15.5px}
.faq-item>summary::-webkit-details-marker{display:none}
.faq-item>summary::after{content:"";flex:none;width:10px;height:10px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translate(-2px,-2px);opacity:.7}
.faq-item[open]>summary::after{transform:rotate(225deg) translate(-2px,-2px)}
.faq-item[open]{border-color:color-mix(in srgb,var(--fq-mint,#7de1c4) 45%,var(--stroke,#27394b))}
.faq-item p{margin:0;padding:0 20px 18px;color:var(--muted,#94a7ba);font-size:14.5px;line-height:1.7}
.faq-item a{color:var(--fq-mint,#7de1c4)}
html[data-theme="light"] .faq-item{background:#fff}
html[data-theme="light"] .faq-item a{color:#136e59}
@media (prefers-reduced-motion:no-preference){.faq-item>summary::after{transition:transform .2s ease}}

/* Grade de períodos: sem repetir o mesmo aviso e o mesmo link em oito cartões */
#public-period-grid .period-card .linkbtn{display:none}
@media (max-width:700px){
 #public-period-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 #public-period-grid .period-card{padding:16px;min-height:0}
 #public-period-grid .period-card h3{font-size:16px;margin:6px 0 4px}
 #public-period-grid .period-card p{font-size:13px;line-height:1.45;margin:0}
 #public-period-grid .period-card .academic-badge{display:none}
 #public-period-grid .period-card{display:flex;flex-direction:column;gap:2px}
 #public-period-grid .period-number{font-size:22px;line-height:1;margin:0 0 6px}
 #public-period-grid .period-card h3{margin:0 0 2px}
 .feature-grid,.steps-row{grid-template-columns:1fr}
 .hero-actions .btn{flex:1 1 100%}
}
@media (min-width:701px) and (max-width:1100px){.feature-grid,.steps-row{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Cabeçalho público do celular em uma linha: o preço e a ação já estão no topo da página */
@media (max-width:600px){
 body.is-public .public-nav-inner{flex-wrap:nowrap;gap:10px;padding:12px 16px}
 body.is-public .public-nav .brand-subtitle,body.is-public #offer-mini-price,body.is-public .public-nav-actions>.btn.primary{display:none}
 body.is-public .public-nav-inner>.public-nav-actions{flex:none;width:auto;gap:8px;flex-wrap:nowrap}
 body.is-public .public-nav-inner .brand-wordmark{width:150px}
}

/* Barra de ação fixa no celular */
.public-sticky-cta{display:none}
@media (max-width:700px){
 body.is-public .public-sticky-cta{display:flex;align-items:center;justify-content:space-between;gap:12px;position:fixed;z-index:55;left:10px;right:10px;bottom:max(10px,env(safe-area-inset-bottom));padding:10px 10px 10px 18px;border:1px solid color-mix(in srgb,var(--fq-mint,#7de1c4) 30%,var(--stroke,#27394b));border-radius:20px;background:color-mix(in srgb,var(--panel,#111e2c) 90%,transparent);backdrop-filter:blur(18px) saturate(140%);-webkit-backdrop-filter:blur(18px) saturate(140%);box-shadow:0 18px 40px -12px #000a;transform:translateY(140%);opacity:0;pointer-events:none}
 body.is-public .public-sticky-cta.is-visible{transform:none;opacity:1;pointer-events:auto}
 .public-sticky-cta span{display:grid;line-height:1.2}
 .public-sticky-cta b{font-size:18px}
 .public-sticky-cta small{font-size:12px;color:var(--muted,#94a7ba)}
 .public-sticky-cta .btn{min-height:46px;padding:0 20px;border-radius:14px;font-size:15px}
 html[data-theme="light"] body.is-public .public-sticky-cta{background:color-mix(in srgb,#fff 92%,transparent);box-shadow:0 18px 40px -16px #10304a50}
 body.is-public:has(.public-sticky-cta.is-visible) .legal-footer{padding-bottom:96px}
}
@media (max-width:700px) and (prefers-reduced-motion:no-preference){body.is-public .public-sticky-cta{transition:transform .28s var(--fq-ease,ease),opacity .2s ease}}
/* Ajustes finos da página inicial */
@media (min-width:901px){.sales-hero>.sales-copy{align-items:flex-start}.sales-hero>.sales-copy>*{max-width:100%}}
.public-faq{margin-bottom:clamp(32px,6vw,64px)}
body.is-public :is(.public-features,.public-steps,.public-faq,.public-academic,.public-included) .section-title p{font-size:15px;line-height:1.65}
@media (max-width:700px){
 body.is-public .hero-pills{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px}
 body.is-public .hero-pills{gap:6px}
 body.is-public .hero-pills span{padding:6px 10px;font-size:12.5px;width:auto;gap:6px}
 .feature-card{display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:14px;align-items:start;padding:18px}
 .feature-card .course-icon{grid-row:span 2;margin:2px 0 0}
 .feature-card h3{font-size:16.5px;margin:0 0 4px}
 .feature-card p{font-size:14px}
 .steps-row li{padding:16px}
 .steps-cta .btn{flex:1 1 100%}
}
@media (max-width:600px){body.is-public .public-nav .public-brand{display:inline-flex;align-items:center;min-height:44px}}

/* 1.46.0 · Caderno de erros */
.caderno-errors{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;margin:0 0 22px;border:1px solid var(--stroke);border-radius:16px;background:var(--panel)}
.caderno-errors strong{display:block;font-size:16px}
.caderno-errors small{display:block;margin-top:4px;color:var(--muted);font-size:13px}
.caderno-marked h3{margin:0 0 10px;font-size:16px}
.caderno-train{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 14px}
.caderno-train:empty{display:none}
.question-tools .bookmark-button.is-suggested{border-color:var(--teal);color:var(--teal);box-shadow:0 0 0 3px color-mix(in srgb,var(--teal) 22%,transparent)}
@media(max-width:740px){.caderno-errors{flex-direction:column;align-items:stretch}.caderno-errors .btn{width:100%}}

/* Resposta comentada legível (1.47.0): veredito em faixa, comentário em blocos sobre fundo neutro */
#answer-verdict[data-tone]{display:flex;align-items:flex-start;gap:8px;margin:18px 0 14px;padding:12px 16px;border-radius:12px;font-size:15px;font-weight:700;line-height:1.45;border:1px solid transparent}
#answer-verdict[data-tone="correct"]{background:rgba(79,209,165,.13);border-color:rgba(79,209,165,.45);color:#9ff0d3}
#answer-verdict[data-tone="wrong"]{background:rgba(239,139,152,.12);border-color:rgba(239,139,152,.45);color:#ffc2ca}
#answer-verdict[data-tone="neutral"]{background:rgba(99,180,252,.1);border-color:rgba(99,180,252,.35);color:#cfe6ff}
#q-feedback .comment-box,#q-feedback .comment-box.original{background:var(--panel2);border:1px solid var(--stroke);border-top:3px solid #35c8ad;padding:20px 20px 18px}
#q-feedback #q-extra-box{border-top-color:#ae9bff}
.comment-box h4{font-size:13px;font-weight:800;color:var(--text);margin-bottom:14px}
.commentary{white-space:normal;display:flex;flex-direction:column;gap:12px;font-size:14.5px;line-height:1.75;color:#d9e5ee;overflow-wrap:anywhere}
.commentary .cm-block{margin:0}
.commentary .cm-heading{display:block;font-size:13px;font-weight:800;letter-spacing:.01em;color:var(--text);margin-bottom:2px}
.commentary .cm-option,.commentary .cm-item{position:relative;padding:11px 14px 11px 16px;border-radius:10px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07);border-left:1px solid #4d6375}
.commentary .cm-option[data-letter]{padding-left:50px}
.commentary .cm-option[data-letter]::before{content:attr(data-letter);position:absolute;left:13px;top:12px;width:25px;height:25px;border-radius:8px;display:grid;place-items:center;font-size:12px;font-weight:800;background:#22374a;color:var(--text)}
.commentary .cm-block.tone-correct{border-left-color:#4fd1a5}
.commentary .cm-block.tone-wrong{border-left-color:#ef8b98}
.commentary .cm-option.tone-correct::before{background:#2c7a63;color:#eafff7}
.commentary .cm-option.tone-wrong::before{background:#5b303b;color:#ffe2e6}
.commentary .cm-chip{display:inline-block;margin:0 4px 0 2px;padding:1px 8px;border-radius:999px;font-size:10.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;vertical-align:1px;background:rgba(148,167,186,.16);color:var(--muted)}
.commentary .cm-chip.tone-correct{background:rgba(79,209,165,.16);color:#7de1c4}
.commentary .cm-chip.tone-wrong{background:rgba(239,139,152,.16);color:#f6a7b1}
.commentary .cm-bullet{color:var(--muted)}
.commentary .cm-ref{margin-top:4px;padding-top:12px;border-top:1px dashed var(--stroke);font-size:12.5px;line-height:1.6;color:var(--muted)}
.commentary .cm-ref .cm-heading{font-size:12px;color:var(--muted)}
.commentary .cm-note{padding:11px 14px;border-radius:10px;background:rgba(99,180,252,.08);border:1px solid rgba(99,180,252,.28);font-size:13.5px}
.commentary .cm-appeal{padding:11px 14px;border-radius:10px;background:rgba(174,155,255,.07);border:1px solid rgba(174,155,255,.24);font-size:13px;color:#cdd7e2}
.attempt-reference .commentary,.error-question-detail .commentary{margin:6px 0 14px}
@media (max-width:640px){.commentary{font-size:14px;gap:10px}.commentary .cm-option[data-letter]{padding-left:46px}#q-feedback .comment-box,#q-feedback .comment-box.original{padding:16px 14px}}
html[data-theme="light"] #answer-verdict[data-tone="correct"]{background:#e6f6ef;border-color:#9fd7bf;color:#17634a}
html[data-theme="light"] #answer-verdict[data-tone="wrong"]{background:#fcecee;border-color:#eab2ba;color:#8e2635}
html[data-theme="light"] #answer-verdict[data-tone="neutral"]{background:#eaf3fc;border-color:#b5d3ef;color:#1d4f7c}
html[data-theme="light"] #q-feedback .comment-box,html[data-theme="light"] #q-feedback .comment-box.original{background:#fff;border-color:#d3dde3;border-top-color:#2a9d84}
html[data-theme="light"] .commentary{color:#29404c}
html[data-theme="light"] .commentary .cm-heading,html[data-theme="light"] .comment-box h4{color:#13303d}
html[data-theme="light"] .commentary .cm-option,html[data-theme="light"] .commentary .cm-item{background:#f5f8fa;border-color:#e0e7ec;border-left-color:#a9b8c3}
html[data-theme="light"] .commentary .cm-block.tone-correct{border-left-color:#2a9d84}
html[data-theme="light"] .commentary .cm-block.tone-wrong{border-left-color:#d9677a}
html[data-theme="light"] .commentary .cm-option[data-letter]::before{background:#e3eaef;color:#13303d}
html[data-theme="light"] .commentary .cm-option.tone-correct::before{background:#2a9d84;color:#fff}
html[data-theme="light"] .commentary .cm-option.tone-wrong::before{background:#d9677a;color:#fff}
html[data-theme="light"] .commentary .cm-chip.tone-correct{background:#dff3eb;color:#17634a}
html[data-theme="light"] .commentary .cm-chip.tone-wrong{background:#fbe5e8;color:#8e2635}
html[data-theme="light"] .commentary .cm-note{background:#eef6fd;border-color:#c4dcf2}
html[data-theme="light"] .commentary .cm-appeal{background:#f4f1fd;border-color:#d9d0f6;color:#3b3560}
html[data-theme="light"] .commentary .cm-ref{color:#5b7280}
.commentary .cm-prefix{display:none}
.commentary .cm-item{background:none;border:0;border-left:2px solid var(--stroke);border-radius:0;padding:2px 0 2px 14px}
.commentary .cm-item.tone-correct{border-left-color:#4fd1a5}.commentary .cm-item.tone-wrong{border-left-color:#ef8b98}
html[data-theme="light"] .commentary .cm-item{background:none;border-left-color:#c9d4db}
.commentary[data-structured="1"],#q-original.commentary[data-structured="1"],#q-extra.commentary[data-structured="1"]{white-space:normal}
/* Cartão de alternativa: letra + etiqueta no topo, texto da alternativa e explicação abaixo (só ordem visual) */
.commentary .cm-card{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.commentary .cm-card .cm-chip{order:-1;margin:2px 0 2px}
.commentary .cm-card .cm-intro,.commentary .cm-card .cm-punct{display:none}
.commentary .cm-card .cm-opttext{font-weight:650;color:var(--text);line-height:1.6}
.commentary .cm-card .cm-just{line-height:1.7}
.commentary .cm-card.auto-chip::after{order:-1;margin:2px 0;padding:1px 8px;border-radius:999px;font-size:10.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.commentary .cm-card.auto-chip.tone-correct::after{content:"Correta";background:rgba(79,209,165,.16);color:#7de1c4}
.commentary .cm-card.auto-chip.tone-wrong::after{content:"Incorreta";background:rgba(239,139,152,.16);color:#f6a7b1}
html[data-theme="light"] .commentary .cm-card.auto-chip.tone-correct::after{background:#dff3eb;color:#17634a}
html[data-theme="light"] .commentary .cm-card.auto-chip.tone-wrong::after{background:#fbe5e8;color:#8e2635}
html[data-theme="light"] .commentary .cm-card .cm-opttext{color:#13303d}
@media (max-width:640px){.commentary .cm-card[data-letter]{padding-left:14px}.commentary .cm-card .cm-chip,.commentary .cm-card.auto-chip::after{margin-left:34px}.commentary .cm-card[data-letter]::before{top:11px;left:12px}}
.commentary .cm-section{margin-top:6px}
.commentary .cm-section .cm-heading{font-size:11.5px;letter-spacing:.07em;color:#7de1c4;margin:0}
html[data-theme="light"] .commentary .cm-section .cm-heading{color:#1b6f61}
.commentary .cm-card .cm-just{color:inherit}
/* 1.47.1 · questão no Caderno de erros: anel amarelo + marcador, sem apagar a cor de certa/errada */
.quiz-jump.is-bookmarked{border:2px solid #f5c445;box-shadow:0 0 0 2px rgba(245,196,69,.28)}
.quiz-jump.is-bookmarked::after{content:"";position:absolute;top:-4px;right:-4px;width:12px;height:12px;border-radius:3px 3px 3px 0;background:#f59e0b;border:2px solid var(--bg);transform:rotate(0deg)}
.quiz-jump.is-bookmarked[aria-current="step"]{box-shadow:0 0 0 2px rgba(245,196,69,.28),0 0 0 6px #7de1c412}
.quiz-legend-mark.is-bookmarked{background:transparent;border:2px solid #f5c445;position:relative}
.quiz-legend-mark.is-bookmarked::after{content:"";position:absolute;top:-3px;right:-3px;width:6px;height:6px;border-radius:2px;background:#f59e0b}
html[data-theme="light"] .quiz-jump.is-bookmarked{border-color:#d9a215;box-shadow:0 0 0 2px rgba(217,162,21,.25)}
html[data-theme="light"] .quiz-jump.is-bookmarked::after{border-color:#fff;background:#e08a00}
html[data-theme="light"] .quiz-legend-mark.is-bookmarked{border-color:#d9a215}
/* 1.47.1 · comentário vindo de tabela do PDF (linhas curtas): mantém as quebras de linha, sem espaço entre elas */
.commentary[data-structured="1"][data-lines="1"] .cm-block{white-space:pre-line}
/* 1.47.2 · enunciado em blocos como na prova (afirmativas, itens, exames em linhas próprias); texto idêntico ao original */
#q-stem[data-structured="1"],.attempt-question h3[data-structured="1"],.error-question-review h3[data-structured="1"]{white-space:normal}
[data-structured="1"]>.st-block+.st-block{margin-top:.55em}
[data-structured="1"]>.st-item{padding-left:.15em}
[data-structured="1"]>.st-center{text-align:center;font-weight:700;letter-spacing:.06em}
.st-join{display:none}

/* Auditoria 11/2026 (docs/auditoria/05) ------------------------------------ */
/* A. Questão no celular: o enunciado chega antes e usa a largura toda.
      Só telas até 740 px; o computador não muda. */
@media (max-width:740px){
 /* a troca de questão rola até o rótulo da questão; reserva o cabeçalho fixo */
 #quiz-run .question-context{scroll-margin-top:146px}
 /* o título da página cede espaço enquanto há uma questão aberta */
 #quiz-view:has(#quiz-run:not(.hidden))>.section-title>:is(.eyebrow,p){display:none}
 #quiz-view:has(#quiz-run:not(.hidden))>.section-title{margin-bottom:10px}
 #quiz-view:has(#quiz-run:not(.hidden))>.section-title>h2{font-size:18px;line-height:1.3;margin:0}
 /* barra de grifo: de coluna fixa à direita para faixa horizontal presa logo abaixo do cabeçalho.
    No rodapé ela cobriria Confirmar e Próxima quando esses botões estão no fim da tela. */
 html body .quiz-reading-layout{display:flex;flex-direction:column}
 html body .quiz-reading-layout>.highlight-sidebar{order:-1;position:sticky;top:76px;bottom:auto;z-index:12;max-height:none;overflow:visible;margin:0 0 10px}
 html body .highlight-sidebar .highlight-toolbar{flex-direction:row;flex-wrap:nowrap;justify-content:space-between;gap:6px;padding:6px 10px;border-radius:16px;box-shadow:0 8px 24px #0006;box-sizing:border-box;max-width:100%}
 /* o rótulo "Grifar" sai: a faixa já tem nome acessível (aria-label) e cada botão diz o que faz */
 :root:root:root body .highlight-sidebar .highlight-title{display:none}
 html body .highlight-sidebar :is(.highlight-color,.highlight-erase,.highlight-clear,#highlight-clear){width:var(--fq-tap);height:var(--fq-tap);min-width:var(--fq-tap);min-height:var(--fq-tap);margin:0;flex:none}
 html[data-theme="light"] body .highlight-sidebar .highlight-toolbar{box-shadow:0 8px 24px #16324826}
 /* ferramentas da questão em duas colunas, em vez de três linhas */
 html body #quiz-run .question-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}
 html body #quiz-run .question-tools>:is(.btn,.question-more){width:100%;min-width:0;margin:0}
 html body #quiz-run .question-tools :is(.btn,.question-more>summary){min-height:var(--fq-tap);font-size:13px;padding:8px 10px;justify-content:center;text-align:center}
 html body #quiz-run .question-more>summary{display:flex;align-items:center;width:100%;box-sizing:border-box}
 /* a nota sobre anulação só aparece quando a questão está anulada */
 #quiz-run:has(#q-annul:not(.is-annulled)) #q-annul-note{display:none}
 /* leitura confortável do enunciado e das alternativas */
 html body #q-stem{font-size:16px;line-height:1.75}
 html body #q-options .option{font-size:15px;line-height:1.6}
}
@media (max-width:360px){
 html body .highlight-sidebar .highlight-toolbar{gap:4px;padding:6px}
 html body .highlight-sidebar :is(.highlight-color,.highlight-erase,.highlight-clear,#highlight-clear){width:40px;height:40px;min-width:40px;min-height:40px}
}
/* a legenda dos estados acompanha "Como usar este treino" (celular) */
@supports selector(:has(a)){
 @media (max-width:740px){#quiz-run:not(:has(.quiz-help[open])) .quiz-state-legend{display:none}}
}

/* B. Piso de legibilidade: nenhum texto funcional abaixo de 12 px
      (11 px só em rótulos curtos em maiúsculas). Lista vinda da medição. */
html body :is(.performance-caption,.performance-numbers,.performance-scope,.performance-note p,.access-note,.subject-basket-options .hint,.auth-panel>.hint,.theme-card-meta,.theme-question-count,.subject-track-description,#theme-browser-count,.community-note){font-size:var(--fq-label)}
/* :root repetido só para vencer seletores mais específicos das folhas anteriores */
:root:root:root body :is(.errors-filters,.errors-study-options,.saved-tools,.exam-tools,.subject-basket-options)>label,:root:root:root body .exam-tools label>span,:root:root:root body #quiz-setup>.fieldlabel{font-size:var(--fq-label)}
:root:root:root body :is(.theme-row-actions .btn,.theme-row-actions .linkbtn,.performance-card .linkbtn,#performance-saved,.discipline-features .feature>b){font-size:var(--fq-label)}
:root:root:root body :is(#subject-basket-all#subject-basket-all,#subject-basket-clear#subject-basket-clear){font-size:var(--fq-label)}
html body :is(.theme-week,.discipline-features .feature>span,#exam-mode-subjects small,#exam-mode-papers small){font-size:11px}
/* controles do treino no computador (no celular já eram maiores) */
@media (min-width:741px){html body :is(.quiz-navigation-guide,.quiz-state-legend,.quiz-top){font-size:var(--fq-label)}}

/* C. Alvos de toque: 44 px em telas de toque para links-botão, resumos e rodapé. */
@media (pointer:coarse){
 html body .linkbtn:not(:is(p,li,label) .linkbtn){min-height:var(--fq-tap);display:inline-flex;align-items:center}
 html body :is(.quiz-help,.question-more)>summary{min-height:var(--fq-tap);display:flex;align-items:center}
 html body .legal-footer nav a{display:inline-flex;align-items:center;min-height:var(--fq-tap)}
 html body .sidebar .navitem{min-height:var(--fq-tap)}
}


/* ==========================================================================
   1.67 · Aurora clínica — camada final do sistema visual
   Escuro sofisticado com auroras de cor (menta → azul → violeta) em movimento
   lento, painéis translúcidos com profundidade, bordas em degradê animado nos
   destaques, uma cor por disciplina, brilho que segue o ponteiro nos cartões
   e números que contam ao aparecer. Fontes hospedadas no site. Movimento e
   efeitos pesados desligados com "reduzir movimento" e reduzidos no celular.
   ========================================================================== */
@font-face{font-family:"Inter";src:url("/fonts/inter-latin-wght-normal.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2190-2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Plus Jakarta Sans";src:url("/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");font-weight:200 800;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2190-2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* 1. Tokens ---------------------------------------------------------------- */
html{
 --sans:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI Variable","Segoe UI",system-ui,sans-serif;
 --display:"Plus Jakarta Sans","Inter",-apple-system,BlinkMacSystemFont,"Segoe UI Variable",system-ui,sans-serif;
 --bg:#050b11;--sidebar:rgba(8,16,23,.72);--panel:#0c1820;--panel2:#12212c;--panel3:#182b38;
 --glass:linear-gradient(160deg,rgba(255,255,255,.075),rgba(255,255,255,.025) 55%,rgba(255,255,255,.04));
 --glass-solid:rgba(9,19,27,.44);--glass-line:rgba(186,233,255,.10);--glass-line-strong:rgba(186,233,255,.2);--glass-hi:inset 0 1px 0 rgba(255,255,255,.08);
 --stroke:rgba(186,233,255,.11);--stroke-strong:rgba(186,233,255,.2);--text:#edf6f8;--muted:#a3b7c2;--subtle:#7d93a0;
 --mint:#3ee6b5;--cyan:#38c6f4;--sky:#5aa9ff;--violet:#a78bfa;--amber:#f5b955;--rose:#fb7185;
 --teal:#3ee6b5;--accent:#3ee6b5;--accent-ink:#03201a;--accent-soft:rgba(62,230,181,.12);--good:#3ee6b5;--danger:#fb7185;--blue:#5aa9ff;
 --aurora:linear-gradient(115deg,#3ee6b5 0%,#38c6f4 48%,#a78bfa 100%);
 --aurora-soft:linear-gradient(115deg,rgba(62,230,181,.22),rgba(56,198,244,.16) 50%,rgba(167,139,250,.2));
 --fq-mint:#3ee6b5;--brand-mint:#3ee6b5;--brand-text:#edf6f8;--brand-muted:#a3b7c2;
 --r-sm:8px;--r-md:12px;--r-lg:18px;--r-xl:24px;
 --sh-1:0 1px 2px rgba(0,0,0,.35);--sh-2:0 14px 34px -14px rgba(0,0,0,.7),0 3px 8px -3px rgba(0,0,0,.4);--sh-3:0 30px 70px -24px rgba(0,0,0,.85),0 8px 20px -8px rgba(0,0,0,.5);
 --fq-shadow-sm:var(--sh-1);--fq-shadow-md:var(--sh-2);--fq-shadow-lg:var(--sh-3);
 --ease-out:cubic-bezier(.16,1,.3,1);--ease-spring:cubic-bezier(.2,1,.3,1);--fq-ease:cubic-bezier(.16,1,.3,1);--fq-focus:0 0 0 0 transparent;
 --disc:var(--mint);
 --i-bookmark:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M6.5 3.5h11v17l-5.5-3.8-5.5 3.8z'/%3E%3C/svg%3E");
 --i-bookmark-on:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M6.5 3.5h11v17l-5.5-3.8-5.5 3.8z'/%3E%3C/svg%3E");
 --i-flag:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 21V4.5M5.5 4.5h11.5l-2.4 4 2.4 4H5.5'/%3E%3C/svg%3E");
 --i-flag-on:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 21V4.5'/%3E%3Cpath d='M5.5 4.5h11.5l-2.4 4 2.4 4H5.5z' fill='black'/%3E%3C/svg%3E");
 --i-note:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4.5L19 9.5 14.5 5 4 15.5zM13 6.5l4.5 4.5'/%3E%3C/svg%3E");
 --i-focus:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9V4h5M15 4h5v5M20 15v5h-5M9 20H4v-5'/%3E%3C/svg%3E");
 --i-keys:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='6' width='19' height='12' rx='2.5'/%3E%3Cpath d='M6.5 10h.01M10 10h.01M14 10h.01M17.5 10h.01M8 14h8'/%3E%3C/svg%3E");
 --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-theme="light"]{
 --bg:#f3f7fa;--sidebar:rgba(255,255,255,.7);--panel:#ffffff;--panel2:#eef4f6;--panel3:#e3ecef;
 --glass:linear-gradient(160deg,rgba(255,255,255,.9),rgba(255,255,255,.66));
 --glass-solid:rgba(255,255,255,.6);--glass-line:rgba(18,52,66,.09);--glass-line-strong:rgba(18,52,66,.17);--glass-hi:inset 0 1px 0 #fff;
 --stroke:rgba(18,52,66,.11);--stroke-strong:rgba(18,52,66,.2);--text:#0e232b;--muted:#4b6370;--subtle:#6a8290;
 --mint:#0c9c79;--cyan:#0b86b3;--sky:#2b6fd6;--violet:#6d4fd3;--amber:#a86600;--rose:#c42f50;
 --teal:#0b8a6b;--accent:#0b8a6b;--accent-ink:#ffffff;--accent-soft:rgba(11,138,107,.1);--good:#0b8a6b;--danger:#c42f50;--blue:#2b6fd6;
 --aurora:linear-gradient(115deg,#0b7f62 0%,#0f6f99 50%,#5b3fc4 100%);
 --aurora-soft:linear-gradient(115deg,rgba(15,174,134,.14),rgba(21,146,196,.1) 50%,rgba(122,92,224,.13));
 --fq-mint:#0b8a6b;--brand-mint:#0b8a6b;--brand-text:#0e232b;--brand-muted:#4b6370;
 --sh-1:0 1px 2px rgba(14,40,52,.06);--sh-2:0 16px 36px -18px rgba(14,40,52,.28),0 3px 8px -4px rgba(14,40,52,.08);--sh-3:0 30px 70px -28px rgba(14,40,52,.4),0 8px 18px -10px rgba(14,40,52,.12);
}

/* 2. Atmosfera: aurora em movimento lento + grão fino -------------------------- */
:root{background:var(--bg)}
:root body{font-family:var(--sans);font-size:15px;line-height:1.6;letter-spacing:0;color:var(--text);font-feature-settings:"cv11","ss03";background:var(--bg);isolation:isolate}
:root body::before{content:"";position:fixed;inset:-20vmax;z-index:-2;pointer-events:none;
 background:
  radial-gradient(34vmax 28vmax at 24% 22%,rgba(62,230,181,.42),transparent 72%),
  radial-gradient(32vmax 26vmax at 80% 20%,rgba(56,198,244,.34),transparent 72%),
  radial-gradient(38vmax 30vmax at 70% 72%,rgba(167,139,250,.36),transparent 72%),
  radial-gradient(30vmax 26vmax at 20% 78%,rgba(90,169,255,.22),transparent 72%);
 filter:saturate(1.15)}
:root body::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background-image:var(--grain);opacity:.045;mix-blend-mode:overlay}
html[data-theme="light"] body::before{background:
  radial-gradient(34vmax 28vmax at 24% 22%,rgba(62,230,181,.34),transparent 72%),
  radial-gradient(32vmax 26vmax at 80% 20%,rgba(56,198,244,.28),transparent 72%),
  radial-gradient(38vmax 30vmax at 70% 72%,rgba(167,139,250,.30),transparent 72%),
  radial-gradient(30vmax 26vmax at 20% 78%,rgba(90,169,255,.18),transparent 72%)}
html[data-theme="light"] body::after{opacity:.035;mix-blend-mode:multiply}
@media (prefers-reduced-motion:no-preference) and (min-width:900px){
 :root body::before{animation:fq-aurora 38s ease-in-out infinite alternate;will-change:transform}
 @keyframes fq-aurora{0%{transform:translate3d(0,0,0) rotate(0deg) scale(1)}50%{transform:translate3d(3vmax,-2vmax,0) rotate(8deg) scale(1.06)}100%{transform:translate3d(-3vmax,2vmax,0) rotate(-6deg) scale(1.02)}}
}

/* 3. Tipografia e superfícies do navegador ---------------------------------- */
:root body :is(h1,h2,h3,h4){font-family:var(--display);color:var(--text);font-weight:750;letter-spacing:-.018em;word-spacing:.02em;line-height:1.15;text-wrap:balance}
:root body :is(input,select,textarea,button){font-family:inherit}
:root body :is(input,textarea){caret-color:var(--mint)}
:root body ::selection{background:rgba(62,230,181,.32);color:inherit}
html[data-theme="light"] ::selection{background:rgba(11,138,107,.22)}
:root body a{text-underline-offset:.22em;text-decoration-thickness:1px}
html{scrollbar-color:rgba(163,183,194,.35) transparent}
:root body ::-webkit-scrollbar{width:10px;height:10px}
:root body ::-webkit-scrollbar-thumb{background:rgba(163,183,194,.3);border-radius:10px;border:2px solid transparent;background-clip:padding-box}
:root body ::-webkit-scrollbar-thumb:hover{background-color:rgba(163,183,194,.5)}
:root body ::-webkit-scrollbar-track{background:transparent}
:root body :where(button,a,summary,select,input,textarea,[role=button],[role=radio],[tabindex]):focus-visible{outline:2px solid var(--mint);outline-offset:3px;box-shadow:none}
:root body :is(.quiz-jump,.tag,.n2-count,.study-clock,#quiz-progress,.result-metrics dd,.result-percentage,.performance-metrics strong,.insight-fact dd,.insight-bar-value,.n3-progress-label,.attempt-score,.offer-term,.plan strong,time){font-variant-numeric:tabular-nums}
:root body .hint{color:var(--muted)!important}

/* 4. Fora: etiquetas em pílula, faixas animadas antigas, números fantasma ------- */
:root body :is(.welcome,.course-card,.included-card,.offer-card,#quiz-setup,.auth-floor .auth-panel,.feature,.feature-card)::before{content:none!important;display:none!important}
:root body :is(.course-card,.included-card)::after{content:none!important;display:none!important}
:root body :is(#crumb,.eyebrow,.theme-kicker)::before,:root body :is(#q-bar,#q-options .option-row,.course-card,.dot,.exam-card,.feature,.included-card,.offer-card,.offer-card .plan strong,.performance-metrics>div,.sales-copy,.sales-copy h1 em,.study-shortcut,.theme-card,.theme-home,.welcome){animation:none!important}
:root body :is(.eyebrow,.theme-kicker,.course-kicker,.guide-kicker,.mini){display:block;background:none!important;border:0!important;padding:0!important;box-shadow:none!important;border-radius:0!important;color:var(--subtle)!important;font:650 12px/1.4 var(--sans)!important;letter-spacing:.06em!important;margin:0 0 8px}
:root body :is(.eyebrow,.theme-kicker,.course-kicker,.mini)::before,:root body #crumb::before{content:none!important;display:none!important}
:root body .card-meta{display:block;margin:-2px 0 6px;color:var(--disc,var(--mint));font-size:13px;font-weight:650}
:root body .card-badge{display:inline-flex;align-items:center;height:26px;padding:0 11px;border-radius:999px;background:var(--aurora);color:var(--accent-ink);font-size:12px;font-weight:750;white-space:nowrap;box-shadow:0 6px 16px -8px rgba(56,198,244,.8)}

/* 5. Vidro: painéis e cartões com profundidade -------------------------------- */
:root body :is(.panel,.welcome,.resume-card,.home-period-panel,.n2-simulators,.theme-home,.course-card,.study-shortcut,.attempt-result-hero,.attempt-card,.insight-card,.error-question-card,.attempt-question,.file-row,.library-tools,.exam-tools,.saved-tools,.performance-card,.performance-metrics>div,.n2-card,.theme-card,.exam-card,.included-card,.feature,.feature-card,.offer-card,.faq-item,.period-card,.academic-module-card,.study-inline-panel,.study-news,.performance-empty){
 background:var(--glass),var(--glass-solid);border:1px solid var(--glass-line);box-shadow:var(--glass-hi),var(--sh-2)}
:root body :is(.panel,.welcome,.n2-simulators,.theme-home,.attempt-result-hero,.home-period-panel,.offer-card,.included-card){border-radius:var(--r-xl)}
:root body :is(.resume-card,.course-card,.study-shortcut,.attempt-card,.insight-card,.error-question-card,.attempt-question,.performance-card,.performance-metrics>div,.n2-card,.theme-card,.exam-card,.feature,.feature-card,.faq-item,.period-card,.academic-module-card,.study-inline-panel,.study-news,.performance-empty){border-radius:var(--r-lg)}
:root body .file-row{border-radius:var(--r-md)}
/* brilho que segue o ponteiro (posição vem do aurora.js) */
:root body :is(.course-card,.n2-card,.study-shortcut,.resume-card,.insight-card,.attempt-card,.theme-course,.period-card){position:relative;background:radial-gradient(420px circle at var(--mx,-999px) var(--my,-999px),color-mix(in srgb,var(--disc,var(--mint)) 16%,transparent),transparent 45%),var(--glass),var(--glass-solid)}
@media (hover:hover) and (pointer:fine){
 :root body :is(.course-card,.study-shortcut,.n2-card,.theme-card,.exam-card,.attempt-card,.period-card.is-available,.feature-card,.file-row,.theme-course,.resume-card){transition:transform .35s var(--ease-out),border-color .25s var(--ease-out),box-shadow .35s var(--ease-out)}
 :root body :is(.course-card,.study-shortcut,.n2-card,.theme-card,.exam-card,.attempt-card,.period-card.is-available,.feature-card,.theme-course,.resume-card):hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--disc,var(--mint)) 45%,transparent);box-shadow:var(--glass-hi),var(--sh-3),0 18px 40px -22px color-mix(in srgb,var(--disc,var(--mint)) 70%,transparent)}
 :root body .file-row:hover{border-color:var(--glass-line-strong)}
}
/* cor por disciplina */
:root body :is([data-curriculum-block="iesc"],.n2-card.iesc,.theme-course.iesc,.performance-card.iesc){--disc:var(--mint)}
:root body :is([data-curriculum-block="ham"],.n2-card.ham,.theme-course.ham,.performance-card.ham){--disc:var(--sky)}
:root body :is([data-curriculum-block="ci"],.n2-card.ci,.theme-course.ci,.performance-card.ci){--disc:var(--violet)}
:root body :is([data-curriculum-block="mcm"],.n2-card.mcm,.performance-card.mcm){--disc:var(--amber)}
:root body :is([data-curriculum-block="cc"],.n2-card.cc,.performance-card.cc){--disc:var(--rose)}
:root body .n2-card.all{--disc:var(--cyan)}

/* 6. Destaques com borda em degradê animado (só o contorno, via máscara) ------- */
:root body :is(.welcome,.n3-all-card,.attempt-result-hero,.review-card){position:relative;border-color:transparent}
:root body :is(.welcome,.n3-all-card,.attempt-result-hero,.review-card)>.fq-ring{position:absolute;inset:-1px;z-index:2;border-radius:inherit;padding:1.5px;pointer-events:none;overflow:hidden;container-type:size;
 -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
/* o degradê gira só com transform (GPU); o anel mascarado fica parado — sem repintar o cartão a cada quadro */
:root body .fq-ring>i{position:absolute;left:50%;top:50%;width:142cqmax;height:142cqmax;margin:-71cqmax 0 0 -71cqmax;
 background:conic-gradient(#3ee6b5,#38c6f4 25%,#a78bfa 50%,rgba(62,230,181,.15) 72%,#3ee6b5)}
:root body .review-card .fq-ring>i{background:conic-gradient(#f5b955,#fb9d6b 25%,#3ee6b5 50%,rgba(245,185,85,.15) 72%,#f5b955)}
html[data-theme="light"] body .fq-ring{opacity:.75}
@media (prefers-reduced-motion:no-preference){:root body .fq-ring>i{animation:fq-ring 8s linear infinite}@keyframes fq-ring{to{transform:rotate(1turn)}}}

/* 7. Botões e controles ------------------------------------------------------- */
:root body .btn{min-height:42px;padding:10px 18px;border-radius:var(--r-md);font:700 13.5px/1.2 var(--sans);letter-spacing:.005em;box-shadow:none;transition:background-position .5s var(--ease-out),background-color .2s var(--ease-out),border-color .2s var(--ease-out),color .2s var(--ease-out),box-shadow .3s var(--ease-out),transform .2s var(--ease-spring)}
:root body .btn.primary{background:var(--aurora);background-size:160% 100%;background-position:0% 50%;border:0;color:var(--accent-ink);box-shadow:0 10px 26px -12px rgba(56,198,244,.75),inset 0 1px 0 rgba(255,255,255,.35)}
:root body .btn.primary:not(:disabled):hover{background-position:100% 50%;transform:translateY(-1px);box-shadow:0 16px 34px -14px rgba(56,198,244,.9),inset 0 1px 0 rgba(255,255,255,.4)}
html[data-theme="light"] .btn.primary{color:#fff;box-shadow:0 10px 24px -12px rgba(21,146,196,.65),inset 0 1px 0 rgba(255,255,255,.3)}
:root body :is(.btn.outline,.btn:not(.primary)){background:rgba(255,255,255,.035);border:1px solid var(--glass-line-strong);color:var(--text)}
html[data-theme="light"] :is(.btn.outline,.btn:not(.primary)){background:rgba(255,255,255,.7)}
:root body :is(.btn.outline,.btn:not(.primary)):not(:disabled):hover{background:rgba(62,230,181,.08);border-color:color-mix(in srgb,var(--mint) 55%,transparent)}
:root body .btn:not(:disabled):active{transform:translateY(1px) scale(.985)}
:root body .btn:disabled{opacity:.45}
:root body .linkbtn{color:var(--mint);font-weight:650}
:root body :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:rgba(3,10,15,.55);border:1px solid var(--glass-line-strong);border-radius:var(--r-md);color:var(--text);min-height:44px;box-shadow:none}
html[data-theme="light"] :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:rgba(255,255,255,.85)}
:root body :is(input,select,textarea):focus{border-color:var(--mint);box-shadow:0 0 0 4px rgba(62,230,181,.14)}
:root body label{color:var(--muted);font-weight:650;font-size:13px}

/* 8. Navegação ------------------------------------------------------------------ */
:root body .sidebar{background:var(--sidebar);border-right:1px solid var(--glass-line);box-shadow:none;backdrop-filter:blur(22px) saturate(1.4);-webkit-backdrop-filter:blur(22px) saturate(1.4)}
:root body .navlabel{color:var(--subtle);font:700 11px/1.4 var(--sans);letter-spacing:.09em;padding:16px 12px 6px}
:root body .navitem{color:var(--muted);border:1px solid transparent;border-radius:12px;font-weight:600;box-shadow:none;background:transparent;transition:background-color .2s var(--ease-out),color .2s var(--ease-out)}
:root body .navitem:hover{background:rgba(255,255,255,.05);color:var(--text)}
html[data-theme="light"] .navitem:hover{background:rgba(14,40,52,.05)}
:root body .navitem.active{background:linear-gradient(100deg,rgba(62,230,181,.2),rgba(56,198,244,.1) 70%,transparent);border-color:rgba(62,230,181,.25);color:var(--text);box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}
html[data-theme="light"] .navitem.active{background:linear-gradient(100deg,rgba(15,174,134,.16),rgba(21,146,196,.08) 70%,transparent);border-color:rgba(15,174,134,.25)}
:root body .navitem.active .ui-icon{color:var(--mint)}
:root body .top{background:rgba(5,11,17,.55);border:1px solid var(--glass-line);box-shadow:var(--sh-1);backdrop-filter:blur(18px) saturate(1.4);-webkit-backdrop-filter:blur(18px) saturate(1.4)}
html[data-theme="light"] .top{background:rgba(255,255,255,.65)}
:root body #crumb{color:var(--muted);background:none;border:0;padding:0;font:700 12px/1.4 var(--sans);letter-spacing:.07em}
:root body .top .tag{background:rgba(255,255,255,.05);border:1px solid var(--glass-line);color:var(--muted);border-radius:999px}
:root body .top .avatar{background:var(--aurora);color:var(--accent-ink);border:0;font-weight:750}
:root body .mobile-tabbar{background:rgba(8,16,23,.72);border:1px solid var(--glass-line);box-shadow:var(--sh-3);backdrop-filter:blur(22px) saturate(1.5);-webkit-backdrop-filter:blur(22px) saturate(1.5)}
html[data-theme="light"] .mobile-tabbar{background:rgba(255,255,255,.78)}
:root body .tabbar-item.active{background:linear-gradient(160deg,rgba(62,230,181,.22),rgba(56,198,244,.1));color:var(--text)}
:root body .tabbar-item.active .ui-icon{color:var(--mint)}

/* 9. Início -------------------------------------------------------------------- */
:root body .welcome{display:flex;align-items:center;justify-content:space-between;gap:24px 40px;padding:34px 36px;border-radius:var(--r-xl);box-shadow:var(--sh-3)}
:root body .welcome h1{font-size:40px;line-height:1.08;margin:0 0 10px;letter-spacing:-.025em}
:root body .welcome p{color:var(--muted);max-width:58ch;margin:0;font-size:15.5px}
:root body .welcome-actions{margin-top:22px;gap:10px}
:root body .welcome-aside{display:grid;gap:10px;justify-items:end;border:0;padding:0;min-width:0;text-align:right}
:root body .welcome-aside::before,:root body .welcome-aside::after{content:none}
:root body .welcome-period{display:grid;grid-template-columns:auto auto;align-items:baseline;gap:4px 16px;padding:16px 20px;border:1px solid var(--glass-line-strong);border-radius:var(--r-lg);background:var(--aurora-soft),rgba(255,255,255,.03);color:var(--text);text-align:left;cursor:pointer;transition:transform .3s var(--ease-spring),border-color .2s var(--ease-out),box-shadow .3s var(--ease-out)}
:root body .welcome-period:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--mint) 60%,transparent);box-shadow:0 18px 36px -20px rgba(62,230,181,.8)}
:root body .welcome-period-label{grid-column:1/-1;font-size:12px;font-weight:700;letter-spacing:.06em;color:var(--muted)}
:root body .welcome-period strong{font:800 30px/1.05 var(--display);letter-spacing:-.03em;background:var(--aurora);-webkit-background-clip:text;background-clip:text;color:transparent}
:root body .welcome-period-action{font-size:13px;font-weight:700;color:var(--mint)}
:root body .welcome-term{font-size:12.5px;color:var(--subtle)}
:root body .home-period-choice.is-collapsed{display:none}
:root body .today-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:16px;margin:20px 0}
:root body .today-grid>.resume-card{margin:0;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px 26px}
:root body .today-grid h3{font-size:20px;margin:0 0 4px}
:root body .today-grid p{color:var(--muted);margin:2px 0 0;font-size:14px}
:root body .review-card{--disc:var(--amber)}
:root body .review-card #review-title{margin:0 0 4px}
:root body :is(.section-title,.home-section-title) h2{font-size:30px;margin:0 0 6px;letter-spacing:-.022em}
:root body :is(.section-title,.home-section-title) p{color:var(--muted)}
:root body .course-card{padding:24px;gap:6px;min-height:0;overflow:hidden}
:root body .course-card .course-icon{background:color-mix(in srgb,var(--disc) 16%,transparent)!important;color:var(--disc)!important;border:1px solid color-mix(in srgb,var(--disc) 35%,transparent);box-shadow:0 10px 24px -12px var(--disc)}
:root body .course-card h3{font-size:28px;margin:16px 0 2px;letter-spacing:-.025em}
:root body .course-card .course-subtitle{color:var(--disc);font-weight:700;font-size:13px}
:root body .course-card p{color:var(--muted);font-size:14px;line-height:1.55;min-height:0}
:root body .course-card .card-cta{color:var(--disc);margin-top:auto;padding-top:14px;border-top-color:var(--glass-line)}
:root body .course-status{background:rgba(255,255,255,.05)!important;border:1px solid var(--glass-line)!important;color:var(--muted)!important;border-radius:999px!important;font-weight:650;letter-spacing:0!important}
:root body .study-shortcut{padding:18px 20px}
:root body .study-shortcut .ui-icon{color:var(--mint)}
:root body .theme-home h2{font-size:30px;letter-spacing:-.022em}
:root body .theme-course{border:1px solid var(--glass-line);box-shadow:var(--glass-hi)}
:root body .study-news{overflow:hidden}

/* 10. Simulados N3 -------------------------------------------------------------- */
:root body .n2-simulators{padding:32px 34px;box-shadow:var(--sh-3)}
:root body .n2-heading h2{font-size:36px;letter-spacing:-.028em;margin:0 0 8px;background:linear-gradient(100deg,var(--text) 40%,color-mix(in srgb,var(--mint) 80%,var(--text)));-webkit-background-clip:text;background-clip:text;color:transparent}
@media(min-width:901px){:root body .n3-simulators:has(#n3-sixth-controls:not(.hidden)) .n2-heading{grid-template-columns:minmax(140px,170px) minmax(0,1.25fr) minmax(0,1fr)}}
:root body .n2-card{padding:22px 24px;gap:10px}
:root body .n2-card h3{font-size:21px;margin:0}
:root body .n3-card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
:root body .n2-card .n2-count{color:var(--muted);font-size:13px;min-height:0}
:root body .n3-progress-fill{background:linear-gradient(90deg,var(--disc),color-mix(in srgb,var(--disc) 50%,var(--cyan)))}
:root body .segmented-option{border:1px solid var(--glass-line-strong);background:rgba(255,255,255,.03)}
:root body .segmented-option.is-active{background:var(--aurora);border-color:transparent;color:var(--accent-ink);box-shadow:0 8px 20px -12px rgba(56,198,244,.9)}
html[data-theme="light"] .segmented-option.is-active{color:#fff}
:root body .segmented-option:not(.is-active):hover{background:rgba(62,230,181,.08)}

/* 11. Desempenho ----------------------------------------------------------------- */
:root body .performance-section{display:block;margin-top:40px}
:root body .performance-section.is-empty>:not(.performance-heading):not(.performance-empty){display:none!important}
:root body .performance-section.is-empty .performance-filters{display:none}
:root body .performance-empty{display:grid;justify-items:start;gap:8px;padding:30px 32px;border-style:dashed}
:root body .performance-empty[hidden]{display:none}
:root body .performance-empty h3{margin:0;font-size:22px}
:root body .performance-empty p{margin:0 0 8px;color:var(--muted);max-width:60ch}
:root body .performance-metrics>div strong{font:800 38px/1.05 var(--display);letter-spacing:-.03em}

/* 12. Questão -------------------------------------------------------------------- */
:root body #quiz-run{background:var(--glass),var(--glass-solid);border:1px solid var(--glass-line);border-radius:var(--r-xl);box-shadow:var(--glass-hi),var(--sh-3)}
:root body .quiz-top{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-bottom:16px}
:root body .quiz-top #quit-quiz{order:0;margin-right:auto}
:root body .quiz-top .study-clock{order:1;font-size:13px;color:var(--muted);font-weight:650}
:root body .quiz-top .quiz-view-tools{order:2;margin:0;gap:6px}
:root body .quiz-top #quiz-progress{order:3;background:var(--aurora);color:var(--accent-ink);border:0;border-radius:999px;padding:6px 14px;font-size:13px;font-weight:800}
html[data-theme="light"] .quiz-top #quiz-progress{color:#fff}
:root body .quiz-view-tools .btn{min-height:34px;padding:6px 11px;font-size:12.5px;border-radius:10px;gap:6px}
:root body :is(#quiz-focus,#quiz-shortcuts-open,.bookmark-button,.flag-button){display:inline-flex;align-items:center;gap:7px}
:root body :is(#quiz-focus,#quiz-shortcuts-open,.bookmark-button,.flag-button)::before{content:"";flex:none;width:16px;height:16px;background:currentColor;-webkit-mask:var(--icon) center/contain no-repeat;mask:var(--icon) center/contain no-repeat}
:root body #quiz-focus{--icon:var(--i-focus)}:root body #quiz-shortcuts-open{--icon:var(--i-keys)}
:root body .bookmark-button{--icon:var(--i-bookmark)}:root body .bookmark-button.is-saved{--icon:var(--i-bookmark-on);color:var(--amber)}
:root body .flag-button{--icon:var(--i-flag)}:root body .flag-button[aria-pressed="true"]{--icon:var(--i-flag-on);color:var(--amber);border-color:color-mix(in srgb,var(--amber) 55%,transparent)}
:root body .question-note summary::before{content:""!important;display:inline-block;width:16px;height:16px;margin-right:8px;vertical-align:-3px;background:var(--mint);-webkit-mask:var(--i-note) center/contain no-repeat;mask:var(--i-note) center/contain no-repeat}
:root body .quiz-jump.is-flagged::after{content:""!important;top:-6px;right:-5px;width:12px;height:12px;background:var(--amber);-webkit-mask:var(--i-flag-on) center/contain no-repeat;mask:var(--i-flag-on) center/contain no-repeat;text-shadow:none}
:root body .quiz-legend-mark.is-flagged{width:12px;height:12px;font-size:0;background:var(--amber)!important;-webkit-mask:var(--i-flag-on) center/contain no-repeat;mask:var(--i-flag-on) center/contain no-repeat}
:root body .progress-rail{height:5px;background:rgba(255,255,255,.06);border-radius:9px}
:root body .progress-rail>div{background:var(--aurora);border-radius:9px;box-shadow:0 0 14px -2px rgba(56,198,244,.7);transition:width .5s var(--ease-out)}
:root body .quiz-jump{width:38px;height:38px;min-height:38px;flex:0 0 38px;border-radius:12px;font-size:13px;font-weight:700;background:rgba(255,255,255,.035);border:1px solid var(--glass-line-strong);color:var(--muted);box-shadow:none;transition:transform .25s var(--ease-spring),border-color .2s,background-color .2s}
:root body .quiz-jump:hover{transform:translateY(-2px);border-color:var(--mint)}
:root body .quiz-jump[aria-current="step"]{outline:0;border:0;color:var(--accent-ink);background:var(--aurora);box-shadow:0 8px 18px -10px rgba(56,198,244,.95)}
html[data-theme="light"] .quiz-jump[aria-current="step"]{color:#fff}
:root body .question-tools .btn{min-height:36px;font-size:12.5px;border-radius:10px}
:root body #q-stem{font-family:var(--sans);font-size:17.5px;line-height:1.75;font-weight:470;color:var(--text);max-width:72ch}
:root body .option{background:rgba(255,255,255,.03);border:1px solid var(--glass-line-strong);border-radius:14px;box-shadow:none;color:var(--text);transition:border-color .2s var(--ease-out),background-color .2s var(--ease-out),transform .25s var(--ease-spring),box-shadow .3s var(--ease-out)}
html[data-theme="light"] .option{background:rgba(255,255,255,.75)}
:root body .option:not(:disabled):hover{border-color:color-mix(in srgb,var(--mint) 60%,transparent);background:rgba(62,230,181,.06);transform:translateX(2px)}
:root body .option>span:first-child{background:rgba(255,255,255,.06);border:1px solid var(--glass-line-strong);color:var(--text);border-radius:9px;font-weight:800}
:root body .option.selected{border-color:transparent;background:linear-gradient(rgba(10,24,32,.9),rgba(10,24,32,.9)) padding-box,var(--aurora) border-box;border:1px solid transparent;box-shadow:0 12px 28px -16px rgba(56,198,244,.9)}
html[data-theme="light"] .option.selected{background:linear-gradient(#fff,#fff) padding-box,var(--aurora) border-box}
:root body .option.selected>span:first-child{background:var(--aurora);border-color:transparent;color:var(--accent-ink)}
:root body .option.correct{border-color:var(--good);background:rgba(62,230,181,.1);box-shadow:0 0 0 1px var(--good),0 14px 30px -18px rgba(62,230,181,.9)}
:root body .option.wrong{border-color:var(--danger);background:rgba(251,113,133,.1);box-shadow:0 0 0 1px var(--danger),0 14px 30px -18px rgba(251,113,133,.8)}
:root body .option.correct>span:first-child{background:var(--good);color:var(--accent-ink);border-color:transparent}
:root body .option.wrong>span:first-child{background:var(--danger);color:#2a0710;border-color:transparent}
:root body .eliminate-option{border:1px solid var(--glass-line);background:transparent;color:var(--muted);box-shadow:none;border-radius:12px}
:root body .eliminate-option:hover{border-color:var(--danger);color:var(--danger)}
:root body .comment-box{background:rgba(255,255,255,.03);border:1px solid var(--glass-line);border-radius:var(--r-lg);box-shadow:none}
html[data-theme="light"] .comment-box{background:rgba(255,255,255,.7)}
:root body .commentary .cm-option,:root body .commentary [class*="cm-"][data-letter]{border-left-width:1px!important;box-shadow:none}
:root body #answer-verdict{border-radius:var(--r-md);font-family:var(--display);font-weight:750}
@media (prefers-reduced-motion:no-preference){
 :root body #q-feedback:not(.hidden){animation:fq-answer-in .45s var(--ease-out) both}
 :root body #q-community:not([hidden]){animation:fq-answer-in .45s .08s var(--ease-out) both}
 :root body .option.correct,:root body .option.wrong{animation:fq-answer-pop .5s var(--ease-spring) both}
 @keyframes fq-answer-in{from{opacity:.25;transform:translateY(12px);filter:blur(4px)}to{opacity:1;transform:none;filter:none}}
 @keyframes fq-answer-pop{0%{transform:scale(.985)}60%{transform:scale(1.008)}100%{transform:none}}
}
:root body .highlight-sidebar .highlight-toolbar{background:var(--glass),var(--glass-solid);border:1px solid var(--glass-line);box-shadow:var(--glass-hi),var(--sh-2);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
:root body .q-confidence{border:1px solid var(--glass-line);background:rgba(255,255,255,.025)}
:root body .confidence-chip[aria-pressed="true"]{color:var(--text)}

/* 13. Resultado ------------------------------------------------------------------ */
:root body .attempt-result-hero{padding:34px 36px;box-shadow:var(--sh-3)}
:root body .result-percentage,:root body .result-percentage.has-score{display:inline-block;width:auto;height:auto;border-radius:0;background:var(--aurora);-webkit-background-clip:text;background-clip:text;color:transparent;margin:18px 0 12px;font:800 76px/.95 var(--display);letter-spacing:-.05em;animation:none}
:root body .result-percentage.is-mid{background:linear-gradient(115deg,#f5b955,#fb9d6b)}:root body .result-percentage.is-low{background:linear-gradient(115deg,#fb7185,#f5b955)}
:root body .result-percentage:is(.is-mid,.is-low){-webkit-background-clip:text;background-clip:text}
:root body .result-bar{display:flex;gap:4px;height:12px;width:min(100%,460px);margin:0 0 16px;border-radius:999px;overflow:hidden;background:rgba(255,255,255,.06)}
:root body .result-bar[hidden]{display:none}
:root body .result-bar-seg{display:block;min-width:6px;flex:1 1 0;border-radius:999px;transform-origin:left}
:root body .result-bar-seg.is-correct{background:linear-gradient(90deg,#3ee6b5,#38c6f4)}:root body .result-bar-seg.is-wrong{background:linear-gradient(90deg,#fb7185,#f5b955)}:root body .result-bar-seg.is-blank{background:var(--stroke-strong)}
@media (prefers-reduced-motion:no-preference){:root body .result-bar-seg{animation:fq-bar-in .9s var(--ease-out) both}:root body .result-bar-seg:nth-child(2){animation-delay:.12s}:root body .result-bar-seg:nth-child(3){animation-delay:.24s}@keyframes fq-bar-in{from{transform:scaleX(0)}to{transform:scaleX(1)}}}
:root body .result-metrics>div{background:rgba(255,255,255,.035);border:1px solid var(--glass-line);border-radius:var(--r-lg);box-shadow:var(--glass-hi)}
:root body .result-metrics>div.metric-correct{background:linear-gradient(160deg,rgba(62,230,181,.18),rgba(62,230,181,.04));border-color:rgba(62,230,181,.35)}
:root body .result-metrics>div.metric-wrong{background:linear-gradient(160deg,rgba(251,113,133,.18),rgba(251,113,133,.04));border-color:rgba(251,113,133,.35)}
:root body .result-metrics dd{font:800 34px/1.05 var(--display);letter-spacing:-.03em}
:root body .attempt-question.status-correct{border-color:rgba(62,230,181,.35)}
:root body .attempt-question.status-wrong{border-color:rgba(251,113,133,.35)}
:root body .insight-bar-fill{background:var(--aurora)}
:root body .insight-bar.is-mid .insight-bar-fill{background:linear-gradient(90deg,#f5b955,#fb9d6b)}:root body .insight-bar.is-low .insight-bar-fill{background:linear-gradient(90deg,#fb7185,#f5b955)}

/* 14. Biblioteca e listas ----------------------------------------------------------- */
:root body :is(.library-group,.library-week)>summary{border-radius:var(--r-md)}
:root body :is(.library-badge,.academic-badge){background:rgba(255,255,255,.05)!important;border:1px solid var(--glass-line)!important;color:var(--muted)!important;box-shadow:none!important;border-radius:999px!important}

/* 15. Entrada das telas ------------------------------------------------------------ */
@media (prefers-reduced-motion:no-preference){
 :root body :is(.today-grid>*,.n2-simulators,#student-module-grid>*,.study-shortcuts>*,.insight-grid>*){animation:fq-rise .6s var(--ease-out) both}
 :root body :is(#student-module-grid,.study-shortcuts,.insight-grid)>*:nth-child(2){animation-delay:.06s}
 :root body :is(#student-module-grid,.study-shortcuts,.insight-grid)>*:nth-child(3){animation-delay:.12s}
 :root body :is(#student-module-grid,.study-shortcuts,.insight-grid)>*:nth-child(4){animation-delay:.18s}
 @keyframes fq-rise{from{opacity:.001;transform:translateY(14px)}to{opacity:1;transform:none}}
}

/* 16. Celular: menos custo e questão primeiro -------------------------------------- */
@media (max-width:740px){
 :root body::before{inset:-30vmax}
 :root body .welcome{flex-direction:column;align-items:stretch;padding:24px 20px}
 :root body .welcome h1{font-size:30px}
 :root body .welcome-aside{justify-items:stretch;text-align:left}
 :root body .welcome-period{width:100%}
 :root body .today-grid>.resume-card{flex-direction:column;align-items:stretch;padding:20px}
 :root body .n2-simulators{padding:22px 16px}
 :root body .n2-heading h2{font-size:28px}
 :root body :is(.section-title,.home-section-title) h2{font-size:24px}
 :root body .course-card h3{font-size:24px}
 :root body .quiz-top{gap:8px}
 :root body .quiz-top .quiz-view-tools{order:4;width:100%}
 :root body .quiz-view-tools :is(#quiz-focus,#quiz-shortcuts-open){font-size:0;gap:0;padding:6px 9px}
 :root body .quiz-navigator{flex-wrap:nowrap!important;overflow-x:auto;scroll-snap-type:x proximity;padding:6px 2px 10px;scrollbar-width:none;-webkit-mask:linear-gradient(90deg,#000 86%,transparent);mask:linear-gradient(90deg,#000 86%,transparent)}
 :root body .quiz-navigator::-webkit-scrollbar{display:none}
 :root body .quiz-navigator .quiz-jump{scroll-snap-align:center}
 :root body .question-tools{flex-wrap:nowrap!important;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
 :root body .question-tools::-webkit-scrollbar{display:none}
 :root body .question-tools>.btn{flex:none;white-space:nowrap}
 :root body .question-tools .question-more{margin-left:0;flex:none}
 :root body #q-stem{font-size:16.5px;line-height:1.7}
 :root body .result-percentage{font-size:60px}
 :root body .attempt-result-hero{padding:24px 20px}
 :root body .sidebar,:root body .top,:root body .mobile-tabbar{backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
}
@media (prefers-reduced-motion:reduce){html *,html *::before,html *::after{animation:none!important;transition:none!important}}

/* 17. Assinatura do início: nome em degradê e linha de ECG viva ---------------- */
:root body .welcome{overflow:hidden;background:radial-gradient(60% 120% at 100% 0%,rgba(56,198,244,.14),transparent 60%),radial-gradient(50% 120% at 0% 100%,rgba(62,230,181,.12),transparent 60%),var(--glass),var(--glass-solid)}
:root body .welcome>*{position:relative;z-index:1}
:root body .greeting-name{background:var(--aurora);-webkit-background-clip:text;background-clip:text;color:transparent;padding-right:.04em}
:root body .welcome-ecg{position:absolute!important;left:0;right:0;bottom:6px;width:100%;height:64px;z-index:0!important;opacity:.55;pointer-events:none}
html[data-theme="light"] .welcome-ecg{opacity:.45}
:root body .welcome-ecg{overflow:hidden;display:block}
:root body .welcome-ecg>.ecg-window,:root body .welcome-ecg svg{display:block;width:100%;height:100%}
:root body .welcome-ecg>.ecg-window{overflow:hidden}
:root body .welcome-ecg-line{filter:drop-shadow(0 0 6px rgba(56,198,244,.55))}
/* a janela entra pela esquerda e sai pela direita enquanto o desenho anda ao contrário: o traço parece se desenhar
   e se apagar no lugar, sem repintar (antes: stroke-dashoffset com sombra refeita a cada quadro) */
@media (prefers-reduced-motion:no-preference){
 :root body .welcome-ecg>.ecg-window{animation:fq-ecg-window 6s cubic-bezier(.45,0,.25,1) infinite}
 :root body .welcome-ecg svg{animation:fq-ecg-paper 6s cubic-bezier(.45,0,.25,1) infinite}
 @keyframes fq-ecg-window{0%{transform:translateX(-100%)}55%{transform:none}100%{transform:translateX(100%)}}
 @keyframes fq-ecg-paper{0%{transform:translateX(100%)}55%{transform:none}100%{transform:translateX(-100%)}}
}
@media (max-width:740px){:root body .welcome-ecg{height:44px;opacity:.4}}

/* 18. Ajustes: fundo claro sem grade antiga; questão no celular sem alargar o painel */
html[data-theme="light"] body{background:var(--bg)!important;background-image:none!important}
:root body:not(.is-public){background-image:none}
:root body :is(#quiz-run,.quiz-reading-layout>*,#quiz-view,.quiz-reading-layout){min-width:0}
:root body .quiz-navigator{max-width:100%}
@media (max-width:740px){
 :root body .quiz-top{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
 :root body .quiz-top #quit-quiz{order:0;flex:1 1 auto;margin:0}
 :root body .quiz-top #quiz-progress{order:1;flex:none}
 :root body .quiz-top .study-clock{order:2;flex:1 1 auto;font-size:12.5px}
 :root body .quiz-top .quiz-view-tools{order:3;width:auto;flex:none}
 :root body .quiz-view-tools .btn{min-height:36px;padding:6px 9px}
 :root body #q-font-value{display:none}
 :root body #quiz-run{width:100%;max-width:100%;align-self:stretch;box-sizing:border-box}
 :root body .question-tools{display:flex!important;grid-template-columns:none!important}
}

/* 19. Piso de legibilidade nos atalhos e nas disciplinas do treino por tema */
:root body .study-shortcut small,:root body .theme-course small{font-size:12.5px!important;line-height:1.45}
:root body .theme-course b,:root body .theme-course strong{font-size:14px}

/* ==========================================================================
   1.68 · Pulso — o traçado do batimento como linguagem do site
   ========================================================================== */
html{--ecg-strip:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath d='M0 15 H32 l4 -3 l4 3 H52 l3 3 l4 -14 l4 18 l3 -8 H78 q6 -6 12 0 H120' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
 --monitor-bg:#02090d;--vital-hr:#3ee6b5;--vital-spo2:#38c6f4;--vital-pa:#fb7185;--vital-t:#f5b955}
html[data-theme="light"]{--monitor-bg:#06141b}

/* Monitor de estudo ------------------------------------------------------------ */
:root body .study-monitor{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:18px;margin:20px 0 0;padding:20px;border-radius:var(--r-xl);
 background:var(--glass),var(--glass-solid);border:1px solid var(--glass-line);box-shadow:var(--glass-hi),var(--sh-3)}
:root body .study-monitor.hidden{display:none}
:root body .monitor-screen{position:relative;display:flex;flex-direction:column;min-width:0;padding:16px 18px 14px;border-radius:16px;background:
 linear-gradient(rgba(62,230,181,.06) 1px,transparent 1px) 0 0/22px 22px,linear-gradient(90deg,rgba(62,230,181,.06) 1px,transparent 1px) 0 0/22px 22px,
 radial-gradient(120% 140% at 50% 0%,#082028,var(--monitor-bg) 70%);border:1px solid rgba(62,230,181,.18);box-shadow:inset 0 0 0 1px rgba(0,0,0,.4),inset 0 20px 50px -30px rgba(62,230,181,.35);color:#dff7f1;overflow:hidden}
:root body .monitor-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
:root body .monitor-head h2{margin:0;font-size:17px;color:#eafcf7;letter-spacing:-.01em}
:root body .monitor-tag{white-space:nowrap;flex:none;font:600 11px/1 var(--mono,ui-monospace,monospace);letter-spacing:.06em;color:#7ee8c9;padding:5px 8px;border:1px solid rgba(62,230,181,.3);border-radius:6px}
:root body .monitor-canvas{display:block;width:100%;height:150px;margin:8px 0 6px;filter:drop-shadow(0 0 4px rgba(62,230,181,.9)) drop-shadow(0 0 12px rgba(62,230,181,.45))}
:root body .monitor-caption{margin:0;font-size:12.5px;color:#9cc7bd}
:root body .monitor-vitals{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0}
:root body .vital{--v:var(--vital-hr);display:flex;flex-direction:column;justify-content:space-between;gap:6px;padding:14px 16px;border-radius:14px;background:linear-gradient(160deg,color-mix(in srgb,var(--v) 14%,transparent),transparent 70%),var(--monitor-bg);border:1px solid color-mix(in srgb,var(--v) 30%,transparent);color:#dff7f1;min-width:0}
:root body .vital.is-spo2{--v:var(--vital-spo2)}:root body .vital.is-pa{--v:var(--vital-pa)}:root body .vital.is-temp{--v:var(--vital-t)}
:root body .vital dt{font-size:12px;font-weight:650;color:#a9c4bf;display:flex;gap:6px;align-items:baseline;flex-wrap:wrap}
:root body .vital-code{font:800 12px/1 var(--mono,ui-monospace,monospace);color:var(--v);letter-spacing:.04em}
:root body .vital dd{margin:0;font:800 40px/1 var(--display);letter-spacing:-.03em;color:var(--v);font-variant-numeric:tabular-nums;text-shadow:0 0 18px color-mix(in srgb,var(--v) 55%,transparent)}
:root body .vital dd small{font-size:18px;margin-left:2px;opacity:.8}
@media (prefers-reduced-motion:no-preference){:root body .vital.is-hr dd{animation:fq-beat 1s ease-in-out infinite}@keyframes fq-beat{0%,100%{transform:none}12%{transform:scale(1.06)}24%{transform:none}}}
:root body .vital dd{transform-origin:left center}

/* Varredura de monitor nas trocas de tela ------------------------------------------ */
.fq-sweep{position:fixed;left:0;right:0;top:0;height:74px;z-index:90;pointer-events:none;opacity:0}
.fq-sweep-window{width:100%;height:100%;overflow:hidden}
.fq-sweep svg{display:block;width:100%;height:100%;overflow:visible}
.fq-sweep path{fill:none;stroke:var(--mint);stroke-width:2.2;vector-effect:non-scaling-stroke;stroke-linejoin:round;filter:drop-shadow(0 0 6px rgba(62,230,181,.85)) drop-shadow(0 0 16px rgba(56,198,244,.5))}

/* Questão: progresso como traçado e pulso na alternativa corrigida ------------------- */
:root body .progress-rail{height:24px;background:color-mix(in srgb,var(--muted) 30%,transparent);border-radius:0;-webkit-mask:var(--ecg-strip) repeat-x left center/120px 24px;mask:var(--ecg-strip) repeat-x left center/120px 24px;overflow:hidden}
:root body .progress-rail>div{height:100%;border-radius:0;background:var(--aurora);box-shadow:none}
:root body .option{position:relative;overflow:hidden}
:root body #q-options.just-answered :is(.option.correct,.option.wrong)::after{content:"";position:absolute;left:0;right:0;bottom:1px;height:22px;pointer-events:none;background:linear-gradient(90deg,transparent,var(--good) 30%,#fff 50%,var(--good) 70%,transparent);
 -webkit-mask:var(--ecg-strip) repeat-x left center/120px 22px;mask:var(--ecg-strip) repeat-x left center/120px 22px;opacity:0}
:root body #q-options.just-answered .option.wrong::after{background:linear-gradient(90deg,transparent,var(--danger) 30%,#ffd0d8 50%,var(--danger) 70%,transparent)}
@media (prefers-reduced-motion:no-preference){:root body #q-options.just-answered :is(.option.correct,.option.wrong)::after{animation:fq-pulse-run 1.1s cubic-bezier(.3,0,.2,1) both}
 :root body #q-options.just-answered .option.wrong::after{animation:fq-pulse-run 1.1s cubic-bezier(.3,0,.2,1) both,fq-jitter .12s steps(2) 4}
 @keyframes fq-pulse-run{0%{opacity:0;clip-path:inset(0 100% 0 0)}15%{opacity:1}70%{opacity:1;clip-path:inset(0 0 0 0)}100%{opacity:0;clip-path:inset(0 0 0 0)}}
 @keyframes fq-jitter{50%{transform:translateY(1.5px)}}}

/* Entrada pública cinematográfica ----------------------------------------------------- */
body.is-public .sales-hero{position:relative;isolation:isolate}
.hero-ecg{position:absolute;left:-4%;right:-4%;width:108%;top:calc(50% - 80px);height:160px;z-index:-1;pointer-events:none;opacity:.85;filter:drop-shadow(0 0 8px rgba(56,198,244,.55))}
html[data-theme="light"] .hero-ecg{opacity:.4}
@media (prefers-reduced-motion:no-preference){
 .hero-ecg{animation:fq-hero-draw 2.4s cubic-bezier(.45,0,.2,1) .2s both,fq-hero-breathe 6s ease-in-out 2.6s infinite}
 @keyframes fq-hero-draw{from{clip-path:inset(0 100% 0 0);opacity:1}to{clip-path:inset(0 0 0 0);opacity:.85}}
 @keyframes fq-hero-breathe{0%,100%{opacity:.85}50%{opacity:.5}}
 body.is-public .sales-copy h1 em{animation:fq-title-flash 1.6s ease-out 1.1s both}
 @keyframes fq-title-flash{0%{text-shadow:none}35%{text-shadow:0 0 28px rgba(62,230,181,.9),0 0 60px rgba(56,198,244,.5)}100%{text-shadow:none}}
}

/* Paleta de comandos -------------------------------------------------------------------- */
:root body .cmdk-trigger{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 10px 0 12px;border-radius:12px;border:1px solid var(--glass-line-strong);background:rgba(255,255,255,.04);color:var(--muted);font:600 13px/1 var(--sans);cursor:pointer;transition:border-color .2s,color .2s,background-color .2s}
:root body .cmdk-trigger:hover{border-color:var(--mint);color:var(--text);background:rgba(62,230,181,.08)}
:root body .cmdk-trigger .ui-icon{width:16px;height:16px}
:root body .cmdk-trigger kbd,:root body .cmdk kbd{font:650 11px/1 var(--mono,ui-monospace,monospace);padding:4px 6px;border-radius:6px;border:1px solid var(--glass-line-strong);background:rgba(255,255,255,.05);color:var(--muted)}
.cmdk{width:min(660px,94vw);max-height:min(560px,80vh);margin:12vh auto auto;padding:0;border:0;background:transparent;color:var(--text);overflow:visible}
.cmdk::backdrop{background:rgba(2,8,12,.55);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
html[data-theme="light"] .cmdk::backdrop{background:rgba(14,40,52,.25)}
.cmdk-box{display:flex;flex-direction:column;border-radius:20px;overflow:hidden;background:var(--glass),rgba(9,19,27,.92);border:1px solid var(--glass-line-strong);box-shadow:var(--sh-3),0 0 0 1px rgba(62,230,181,.08)}
html[data-theme="light"] .cmdk-box{background:var(--glass),rgba(255,255,255,.96)}
@media (prefers-reduced-motion:no-preference){.cmdk[open] .cmdk-box{animation:fq-cmdk-in .28s cubic-bezier(.16,1,.3,1) both}@keyframes fq-cmdk-in{from{opacity:.4;transform:translateY(-8px) scale(.985)}to{opacity:1;transform:none}}}
.cmdk-search{display:flex;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid var(--glass-line)}
.cmdk-search .ui-icon{width:20px;height:20px;color:var(--mint);flex:none}
:root body .cmdk-search input{flex:1;min-height:30px;border:0!important;background:transparent!important;box-shadow:none!important;padding:0;font:500 17px/1.3 var(--sans);color:var(--text);outline:none}
.cmdk-list{list-style:none;margin:0;padding:8px;overflow-y:auto;max-height:min(400px,56vh)}
.cmdk-group{padding:10px 10px 4px;font:700 11px/1.2 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--subtle)}
.cmdk-item{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;cursor:pointer;color:var(--text)}
.cmdk-item.is-active{background:var(--aurora-soft),rgba(255,255,255,.03);box-shadow:inset 0 0 0 1px rgba(62,230,181,.25)}
.cmdk-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:rgba(255,255,255,.05);border:1px solid var(--glass-line);color:var(--mint);flex:none}
.cmdk-icon svg{width:16px;height:16px}
.cmdk-label{font-weight:650;font-size:14.5px}
.cmdk-hint{margin-left:auto;color:var(--muted);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:45%}
.cmdk-empty{padding:18px;color:var(--muted)}
.cmdk-foot{display:flex;gap:16px;flex-wrap:wrap;margin:0;padding:10px 16px;border-top:1px solid var(--glass-line);color:var(--subtle);font-size:12px}
.cmdk-foot span{display:inline-flex;gap:4px;align-items:center}

/* Cartões com inclinação 3D, luz ambiente, comemoração e troca de tema -------------------- */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 :root body :is(.course-card,.n2-card,.study-shortcut,.today-grid>.resume-card,.insight-card,.period-card):hover{transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(-3px);transition:transform .18s ease-out,border-color .25s,box-shadow .35s}
}
.fq-ambient{position:fixed;left:0;top:0;width:600px;height:600px;z-index:-1;pointer-events:none;border-radius:50%;background:radial-gradient(closest-side,rgba(62,230,181,.13),rgba(56,198,244,.06) 55%,transparent);will-change:transform}
html[data-theme="light"] .fq-ambient{background:radial-gradient(closest-side,rgba(11,138,107,.10),rgba(21,146,196,.05) 55%,transparent)}
.fq-confetti{position:fixed;inset:0;width:100vw;height:100vh;z-index:200;pointer-events:none}
::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal}
::view-transition-new(root){animation:fq-theme-reveal .7s cubic-bezier(.16,1,.3,1)}
@keyframes fq-theme-reveal{from{clip-path:circle(0 at var(--vt-x,90%) var(--vt-y,40px))}to{clip-path:circle(150vmax at var(--vt-x,90%) var(--vt-y,40px))}}

@media (max-width:900px){:root body .study-monitor{grid-template-columns:1fr}}
@media (max-width:740px){
 :root body .study-monitor{padding:14px;gap:12px}
 :root body .monitor-canvas{height:110px}
 :root body .vital{padding:12px}
 :root body .vital dd{font-size:32px}
 :root body .cmdk-trigger span,:root body .cmdk-trigger kbd{display:none}
 :root body .cmdk-trigger{width:40px;justify-content:center;padding:0}
 .cmdk{margin-top:8vh}
 .cmdk-foot{display:none}
 .hero-ecg{height:110px;top:calc(40% - 55px)}
}

/* ==========================================================================
   1.69 · Ferramentas de estudo e nova área de Questões
   ========================================================================== */
html{--m-good:#3ee6b5;--m-mid:#f5b955;--m-low:#fb7185;--m-new:rgba(163,183,194,.35)}
html[data-theme="light"]{--m-good:#0b8a6b;--m-mid:#a86600;--m-low:#c42f50;--m-new:rgba(75,99,112,.3)}

/* Plano até a prova ------------------------------------------------------------- */
:root body .study-plan{display:grid;grid-template-columns:200px minmax(0,1fr);gap:22px;margin:20px 0 0;padding:24px;border-radius:var(--r-xl);background:var(--glass),var(--glass-solid);border:1px solid var(--glass-line);box-shadow:var(--glass-hi),var(--sh-3)}
:root body .study-plan.hidden{display:none}
:root body .plan-countdown{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:4px;padding:18px 20px;border-radius:18px;background:var(--aurora-soft),rgba(255,255,255,.03);border:1px solid var(--glass-line-strong)}
:root body .plan-countdown-value{font:800 72px/.9 var(--display);letter-spacing:-.05em;background:var(--aurora);-webkit-background-clip:text;background-clip:text;color:transparent;font-variant-numeric:tabular-nums}
:root body .plan-countdown-label{font-size:13px;font-weight:650;color:var(--muted)}
:root body .plan-head{display:flex;align-items:baseline;gap:8px 14px;flex-wrap:wrap;margin-bottom:10px}
:root body .plan-head h2{margin:0;font-size:24px}
:root body .plan-date-label{color:var(--muted);font-size:13.5px;font-weight:600;display:inline-block}
:root body .plan-date-label::first-letter{text-transform:uppercase}
:root body .plan-head .linkbtn{margin-left:auto}
:root body .plan-fields{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px}
:root body .plan-fields label{margin:0;min-width:160px}
:root body .plan-today-title{margin:6px 0 10px;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--subtle)}
:root body .plan-today{list-style:none;margin:0;padding:0;display:grid;gap:10px}
:root body .plan-task{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title btn" "meta btn" "rail rail";gap:4px 14px;align-items:center;padding:12px 14px;border-radius:14px;border:1px solid var(--glass-line);background:rgba(255,255,255,.025)}
:root body .plan-task-title{grid-area:title;font-weight:700}
:root body .plan-task-meta{grid-area:meta;font-size:12.5px;color:var(--muted)}
:root body .plan-task .btn{grid-area:btn;min-height:36px;padding:7px 14px}
:root body .plan-task-rail{grid-area:rail;height:5px;border-radius:9px;background:rgba(255,255,255,.07);overflow:hidden;margin-top:4px}
:root body .plan-task-rail span{display:block;height:100%;border-radius:9px;background:var(--aurora);transition:width .6s var(--ease-out)}
:root body .plan-task.is-low{border-color:color-mix(in srgb,var(--m-low) 35%,transparent)}
:root body .plan-task.is-done{opacity:.7}
:root body .plan-task.is-flash{border-color:color-mix(in srgb,var(--m-mid) 45%,transparent);background:linear-gradient(120deg,color-mix(in srgb,var(--m-mid) 14%,transparent),transparent)}
:root body .plan-empty{padding:14px;border:1px dashed var(--glass-line-strong);border-radius:14px;color:var(--muted)}

/* Mapa de domínio ------------------------------------------------------------- */
:root body .mastery-map{margin:24px 0 0;padding:28px 30px;border-radius:var(--r-xl);background:var(--glass),var(--glass-solid);border:1px solid var(--glass-line);box-shadow:var(--glass-hi),var(--sh-3)}
:root body .mastery-map.hidden{display:none}
:root body .mastery-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;flex-wrap:wrap}
:root body .mastery-head h2{margin:0 0 4px;font-size:28px}
:root body .mastery-score-box{display:grid;justify-items:end}
:root body .mastery-score-box strong{font:800 52px/.95 var(--display);letter-spacing:-.04em;background:var(--aurora);-webkit-background-clip:text;background-clip:text;color:transparent}
:root body .mastery-score-box span{font-size:12.5px;color:var(--muted);font-weight:650}
:root body .mastery-bar{display:flex;gap:3px;height:10px;margin:16px 0 8px;border-radius:999px;overflow:hidden;background:rgba(255,255,255,.05)}
:root body .mastery-seg{display:block;min-width:6px}
:root body .mastery-seg.is-good{background:var(--m-good)}:root body .mastery-seg.is-mid{background:var(--m-mid)}:root body .mastery-seg.is-low{background:var(--m-low)}:root body .mastery-seg.is-new{background:var(--m-new)}
:root body .mastery-legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin:0 0 16px;font-size:12px;color:var(--muted)}
:root body .mastery-legend span::before{content:"";display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:6px;vertical-align:0;background:var(--m-new)}
:root body .mastery-legend .is-good::before{background:var(--m-good)}:root body .mastery-legend .is-mid::before{background:var(--m-mid)}:root body .mastery-legend .is-low::before{background:var(--m-low)}
:root body .mastery-group{margin-top:14px}
:root body .mastery-group-title{margin:0 0 8px;font-size:14px;color:var(--muted);letter-spacing:.02em}
:root body .mastery-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}
:root body .mastery-tile{--m:var(--m-new);display:grid;gap:6px;text-align:left;padding:12px 14px;border-radius:14px;cursor:pointer;color:var(--text);border:1px solid color-mix(in srgb,var(--m) 45%,transparent);background:linear-gradient(150deg,color-mix(in srgb,var(--m) 16%,transparent),transparent 75%),rgba(255,255,255,.02);transition:transform .25s var(--ease-out),box-shadow .3s var(--ease-out),border-color .2s}
:root body .mastery-tile.is-good{--m:var(--m-good)}:root body .mastery-tile.is-mid{--m:var(--m-mid)}:root body .mastery-tile.is-low{--m:var(--m-low)}
:root body .mastery-tile:hover{transform:translateY(-2px);border-color:var(--m);box-shadow:0 14px 28px -18px var(--m)}
:root body .mastery-tile-title{font-weight:700;font-size:13.5px;line-height:1.35}
:root body .mastery-tile-meta{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
:root body .mastery-tile-rail{height:4px;border-radius:9px;background:rgba(255,255,255,.07);overflow:hidden}
:root body .mastery-tile-rail span{display:block;height:100%;background:var(--m)}

/* Armadilha da questão -------------------------------------------------------- */
:root body .q-trap{display:grid;gap:4px;margin:12px 0;padding:14px 16px;border-radius:14px;border:1px solid color-mix(in srgb,var(--m-mid) 50%,transparent);background:linear-gradient(120deg,color-mix(in srgb,var(--m-mid) 16%,transparent),transparent 80%)}
:root body .q-trap[hidden]{display:none}
:root body .q-trap strong{font-family:var(--display);color:var(--m-mid)}
:root body .q-trap p{margin:0;font-size:14px}
:root body .commentary .is-trap{border-color:var(--m-mid)!important;box-shadow:0 0 0 1px var(--m-mid),0 12px 26px -18px var(--m-mid)!important}

/* Folha de respostas (modo prova) ---------------------------------------------- */
:root body .answer-sheet{margin:12px 0 4px;padding:14px;border-radius:14px;border:1px solid var(--glass-line);background:rgba(255,255,255,.02)}
:root body .answer-sheet[hidden]{display:none}
:root body .answer-sheet-title{margin:0 0 10px;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--subtle)}
:root body .answer-sheet-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:6px 14px;max-height:220px;overflow:auto}
:root body .answer-sheet-row{display:flex;align-items:center;gap:6px}
:root body .answer-sheet-num{min-width:30px;height:26px;padding:0 6px;border-radius:8px;border:1px solid var(--glass-line-strong);background:transparent;color:var(--muted);font:700 12px/1 var(--sans);cursor:pointer}
:root body .answer-sheet-row.is-current .answer-sheet-num{background:var(--aurora);color:var(--accent-ink);border-color:transparent}
:root body .answer-sheet-num:disabled{opacity:.4;cursor:not-allowed}
:root body .answer-bubble{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;border:1px solid var(--glass-line-strong);font:700 10.5px/1 var(--sans);color:var(--subtle)}
:root body .answer-bubble.is-marked{background:var(--mint);border-color:var(--mint);color:var(--accent-ink)}
:root body .answer-bubble.is-cut{opacity:.35;text-decoration:line-through}
:root body .answer-sheet-row.is-flagged .answer-sheet-num{border-color:var(--amber);color:var(--amber)}

/* Ritmo da prova (relatório de tempo) ------------------------------------------- */
:root body .pacing-chart{display:flex;align-items:flex-end;gap:3px;height:90px;margin:10px 0 6px;padding:6px;border-radius:12px;background:rgba(255,255,255,.03);border:1px solid var(--glass-line)}
:root body .pacing-bar{flex:1 1 0;min-width:3px;border-radius:4px 4px 1px 1px;background:var(--stroke-strong)}
:root body .pacing-bar.is-correct{background:var(--good)}:root body .pacing-bar.is-wrong{background:var(--danger)}
:root body .pacing-bar.is-guess{outline:2px solid var(--amber);outline-offset:-2px}

/* Flashcards ---------------------------------------------------------------- */
.flashcards{width:min(760px,95vw);max-height:92vh;margin:auto;padding:0;border:0;background:transparent;color:var(--text);overflow:visible}
.flashcards::backdrop{background:rgba(2,8,12,.6);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.flash-box{display:grid;gap:14px;padding:22px;border-radius:22px;background:var(--glass),rgba(9,19,27,.94);border:1px solid var(--glass-line-strong);box-shadow:var(--sh-3)}
html[data-theme="light"] .flash-box{background:var(--glass),rgba(255,255,255,.97)}
.flash-top{display:flex;align-items:center;gap:12px}.flash-top h2{margin:0;font-size:20px}.flash-progress{margin-left:auto;color:var(--muted);font-weight:650;font-variant-numeric:tabular-nums}
.flash-rail{height:4px;border-radius:9px;background:rgba(255,255,255,.07);overflow:hidden}.flash-rail span{display:block;height:100%;width:0;background:var(--aurora);transition:width .4s var(--ease-out)}
.flash-card{position:relative;min-height:320px;perspective:1400px;cursor:pointer;outline:none}
.flash-card:focus-visible{outline:2px solid var(--mint);outline-offset:4px;border-radius:18px}
.flash-face{position:absolute;inset:0;overflow:auto;padding:22px 24px;border-radius:18px;border:1px solid var(--glass-line-strong);background:linear-gradient(160deg,rgba(62,230,181,.07),transparent 60%),var(--panel);backface-visibility:hidden;-webkit-backface-visibility:hidden;transition:transform .6s var(--ease-out)}
html[data-theme="light"] .flash-face{background:linear-gradient(160deg,rgba(11,138,107,.06),transparent 60%),#fff}
.flash-back{transform:rotateY(180deg)}
.flash-card.is-flipped .flash-front{transform:rotateY(-180deg)}.flash-card.is-flipped .flash-back{transform:rotateY(0)}
.flash-source{display:block;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--subtle);margin-bottom:10px}
.flash-stem{font-size:16.5px;line-height:1.7;margin:0 0 12px}
.flash-options{margin:0;padding-left:0;list-style:none;display:grid;gap:6px;font-size:14px;color:var(--muted)}
.flash-answer{font:750 20px/1.35 var(--display);color:var(--good);margin:0 0 8px}
.flash-was{color:var(--danger);font-weight:650;margin:0 0 10px}
.flash-comment{font-size:14.5px;line-height:1.7;margin:0 0 10px}
.flash-note{padding:10px 12px;border-radius:10px;border:1px solid var(--glass-line);background:rgba(255,255,255,.03);font-size:13.5px}
.flash-controls{display:flex;justify-content:center}
.flash-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.flash-actions.hidden,.flash-controls .hidden{display:none}
.flash-actions .is-again{border-color:color-mix(in srgb,var(--danger) 50%,transparent);color:var(--danger)}
.flash-actions .is-hard{border-color:color-mix(in srgb,var(--amber) 50%,transparent);color:var(--amber)}
.flash-hint{text-align:center;margin:0}
.flashcards kbd{font:650 10.5px/1 var(--mono,ui-monospace,monospace);padding:3px 5px;border-radius:5px;border:1px solid currentColor;opacity:.7;margin-left:6px}
@media (prefers-reduced-motion:reduce){.flash-face{transition:none}}

/* Questões por tema: mapa compacto com o seu domínio ----------------------------- */
:root body #theme-card-list:not(.show-empty) .theme-card.is-empty{display:none}
:root body .theme-tools{display:flex;flex-wrap:wrap;gap:6px 18px;margin:4px 0 12px}
:root body .theme-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}
:root body .theme-card{--m:var(--m-new);display:flex;flex-direction:column;gap:6px;padding:14px 16px;min-height:0;border-color:color-mix(in srgb,var(--m) 35%,var(--glass-line))}
:root body .theme-card::before{display:none}
:root body .theme-card.mastery-good{--m:var(--m-good)}:root body .theme-card.mastery-mid{--m:var(--m-mid)}:root body .theme-card.mastery-low{--m:var(--m-low)}
:root body .theme-card.mastery-good,:root body .theme-card.mastery-mid,:root body .theme-card.mastery-low{background:linear-gradient(150deg,color-mix(in srgb,var(--m) 13%,transparent),transparent 70%),var(--glass),var(--glass-solid)}
:root body .theme-card-top{display:flex;justify-content:space-between;gap:8px;font-size:12px}
:root body .theme-week{color:var(--subtle);font-weight:700}
:root body .theme-question-count{color:var(--muted);font-weight:650}
:root body .theme-card-title{margin:0;font:700 15px/1.3 var(--display)}
:root body .theme-card-meta{margin:0;font-size:12.5px;color:var(--muted)}
:root body .theme-card-subtopics{display:none}
:root body .theme-mastery-rail{height:4px;border-radius:9px;background:rgba(255,255,255,.07);overflow:hidden;margin-top:2px}
:root body .theme-mastery-rail span{display:block;height:100%;background:var(--m)}
:root body .theme-row-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:6px}
:root body .theme-row-actions .btn{min-height:32px;padding:5px 12px;font-size:12.5px}
:root body .theme-card.in-basket{border-color:var(--mint);box-shadow:0 0 0 1px var(--mint),var(--sh-2)}
:root body .theme-card.in-basket .theme-add{background:var(--aurora);color:var(--accent-ink);border-color:transparent}
:root body .theme-card.is-selected{border-color:var(--cyan)}
:root body .theme-workspace{display:block}
:root body #theme-browser{padding-bottom:110px}
:root body .theme-group{margin-bottom:22px}
:root body .theme-group-title{font:750 18px/1.2 var(--display);margin:0 0 10px}

/* Estúdio da Minha prova (barra flutuante) -------------------------------------- */
:root body .subject-basket-mobile{display:none!important}
:root body #subject-basket{position:fixed;z-index:70;left:50%;bottom:18px;transform:translateX(-50%);width:min(760px,calc(100% - 32px));max-height:calc(100vh - 120px);display:flex;flex-direction:column;padding:12px 14px;border-radius:20px;
 background:var(--glass),rgba(9,19,27,.9);border:1px solid var(--glass-line-strong);box-shadow:var(--sh-3),0 0 0 1px rgba(62,230,181,.06);backdrop-filter:blur(20px) saturate(1.4);-webkit-backdrop-filter:blur(20px) saturate(1.4);margin:0;top:auto}
html[data-theme="light"] #subject-basket{background:var(--glass),rgba(255,255,255,.92)}
@media (min-width:1050px){:root body #subject-basket{left:calc(50% + 122px)}}
:root body #subject-basket .subject-basket-heading{display:flex;align-items:center;gap:10px;margin:0}
:root body .studio-summary{flex:1;min-width:0}
:root body .studio-summary h3{margin:0;font-size:16px}
:root body #subject-basket .subject-basket-count{margin:2px 0 0;font-size:12.5px;color:var(--muted)}
:root body .studio-toggle{min-height:38px;padding:7px 12px;font-size:12.5px}
:root body #subject-basket-start{min-height:40px;white-space:nowrap}
:root body .subject-basket-body{display:none;overflow:auto;margin-top:12px;padding-top:12px;border-top:1px solid var(--glass-line)}
:root body #subject-basket.is-open .subject-basket-body{display:block}
:root body .studio-body-top{display:flex;align-items:center;gap:12px;margin-bottom:8px}
:root body .studio-dist{flex:1;display:flex;gap:3px;height:12px;border-radius:999px;overflow:hidden;background:rgba(255,255,255,.06)}
:root body .studio-seg{display:block;min-width:6px;background:var(--mint)}
:root body .studio-seg.ham{background:var(--sky)}:root body .studio-seg.ci{background:var(--violet)}:root body .studio-seg.iesc{background:var(--mint)}
:root body .subject-basket-list{max-height:200px;overflow:auto}
:root body .subject-basket-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:end}
:root body .subject-basket-options .hint{grid-column:1/-1;margin:0}
@media (prefers-reduced-motion:no-preference){:root body #subject-basket.has-items{animation:fq-dock-in .45s var(--ease-out) both}@keyframes fq-dock-in{from{transform:translate(-50%,12px);opacity:.6}to{transform:translate(-50%,0);opacity:1}}}

/* Provas por ano: linha do tempo por semestre ------------------------------------- */
:root body .exam-year{grid-column:1/-1;display:flex;align-items:center;gap:12px;margin:18px 0 2px;font:750 15px/1.2 var(--display);color:var(--text)}
:root body .exam-year::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--aurora);box-shadow:0 0 0 4px rgba(62,230,181,.15)}
:root body .exam-year::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,var(--glass-line-strong),transparent)}
:root body .exam-progress{display:flex;height:6px;border-radius:9px;overflow:hidden;background:rgba(255,255,255,.07);margin:4px 0 2px}
:root body .exam-progress-right{background:var(--good)}:root body .exam-progress-wrong{background:var(--danger)}

@media (max-width:900px){:root body .study-plan{grid-template-columns:1fr}:root body .plan-countdown{flex-direction:row;align-items:baseline;gap:12px}:root body .plan-countdown-value{font-size:56px}}
@media (max-width:740px){
 :root body .study-plan,:root body .mastery-map{padding:18px 16px}
 :root body .mastery-score-box{justify-items:start}
 :root body .mastery-tiles{grid-template-columns:1fr 1fr}
 :root body .plan-task{grid-template-areas:"title" "meta" "rail" "btn";grid-template-columns:1fr}
 :root body .plan-task .btn{justify-self:start}
 :root body #subject-basket{bottom:calc(90px + env(safe-area-inset-bottom));padding:10px 12px}
 :root body .studio-toggle{padding:7px 9px}
 :root body .subject-basket-options{grid-template-columns:1fr}
 :root body .theme-card-grid{grid-template-columns:1fr}
 .flash-card{min-height:min(56vh,470px)}.flash-face{padding:18px}
 .flash-top h2{font-size:18px}.flash-progress{white-space:nowrap}
 .flash-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.flash-actions .btn{padding-inline:8px;justify-content:center}
 :root body #subject-basket .subject-basket-heading{flex-wrap:wrap;gap:8px}
 :root body #subject-basket .studio-summary{flex:1 1 100%;display:flex;align-items:baseline;gap:8px}
 :root body #subject-basket .studio-summary h3{white-space:nowrap}
 :root body #subject-basket .subject-basket-heading>.btn{flex:1 1 0}
}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}

/* ==========================================================================
   1.71 · Metas e conquistas, desafio semanal, termômetro da turma, estante e página da N3
   ========================================================================== */
/* Faixa de metas ----------------------------------------------------------------- */
:root body .goals-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0 0}
:root body .goals-strip[hidden],:root body .goals-strip.hidden{display:none}
:root body .goal-block{position:relative;display:flex;align-items:center;gap:14px;min-width:0;padding:16px 18px;border-radius:var(--r-lg);background:var(--glass),var(--glass-solid);border:1px solid var(--glass-line);box-shadow:var(--glass-hi),var(--sh-2);overflow:hidden}
:root body .goal-block::before{content:"";position:absolute;inset:0;background:radial-gradient(120% 90% at 0% 0%,var(--g,rgba(62,230,181,.16)),transparent 60%);pointer-events:none}
:root body .goal-streak{--g:rgba(245,185,85,.2)}:root body .goal-ach{--g:rgba(167,139,250,.2);flex-wrap:wrap}
:root body .goal-text{position:relative;display:grid;gap:2px;min-width:0}
:root body .goal-label{font-size:11.5px;font-weight:750;letter-spacing:.09em;text-transform:uppercase;color:var(--subtle)}
:root body .goal-value{font:800 30px/1 var(--display);letter-spacing:-.03em;font-variant-numeric:tabular-nums}
:root body .goal-value small{font-size:14px;font-weight:650;color:var(--muted);letter-spacing:0}
:root body .goal-caption{font-size:12.5px;color:var(--muted)}
:root body .goal-ring{position:relative;flex:none;width:58px;height:58px;transform:rotate(-90deg)}
:root body .goal-ring circle{fill:none;stroke-width:4.2}
:root body .goal-ring-track{stroke:rgba(255,255,255,.08)}
html[data-theme="light"] body .goal-ring-track{stroke:rgba(10,30,40,.1)}
:root body .goal-ring-fill{stroke:#3ee6b5;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:100;filter:drop-shadow(0 0 6px rgba(62,230,181,.55))}
:root body .goals-strip.is-goal-done .goal-ring-fill{stroke:#f5b955;filter:drop-shadow(0 0 7px rgba(245,185,85,.7))}
:root body .goal-flame{position:relative;flex:none;display:grid;place-items:center;width:52px;height:52px;border-radius:16px;color:#f5b955;background:linear-gradient(150deg,rgba(245,185,85,.22),rgba(251,113,133,.12));border:1px solid rgba(245,185,85,.35)}
:root body .goal-flame .ui-icon{width:28px;height:28px}
@media (prefers-reduced-motion:no-preference){:root body .goal-flame .ui-icon{animation:fq-flame 2.4s ease-in-out infinite;transform-origin:50% 90%}@keyframes fq-flame{50%{transform:scale(1.08) rotate(-3deg)}}}
:root body .streak-shield::before{content:"◈ ";color:#38c6f4}
:root body .streak-shield.is-used::before{color:var(--subtle)}
:root body .goals-badges{position:relative;display:flex;gap:6px;flex:1 1 auto;min-width:0}
:root body .goal-badge{display:grid;place-items:center;min-width:34px;height:34px;padding:0 6px;border-radius:11px;font:800 12px/1 var(--display);color:#071018;background:linear-gradient(140deg,#3ee6b5,#38c6f4 55%,#a78bfa);box-shadow:0 6px 16px -8px rgba(56,198,244,.8)}
:root body .goals-empty{font-size:12.5px;color:var(--muted)}
:root body .goal-ach .btn{position:relative;margin-left:auto;min-height:36px;padding:7px 14px}

/* Desafio semanal e termômetro --------------------------------------------------- */
:root body .n3-live-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:16px;margin:24px 0 0}
:root body .n3-live-grid:not(:has(>section:not([hidden]):not(.hidden))){display:none}
:root body :is(.weekly-challenge,.class-thermometer){position:relative;display:grid;align-content:start;gap:12px;padding:24px 26px;border-radius:var(--r-xl);background:var(--glass),var(--glass-solid);border:1px solid var(--glass-line);box-shadow:var(--glass-hi),var(--sh-3);overflow:hidden}
:root body :is(.weekly-challenge,.class-thermometer)[hidden],:root body :is(.weekly-challenge,.class-thermometer).hidden{display:none}
:root body .weekly-challenge{background:radial-gradient(90% 120% at 100% 0%,rgba(167,139,250,.22),transparent 60%),radial-gradient(70% 90% at 0% 100%,rgba(62,230,181,.14),transparent 60%),var(--glass),var(--glass-solid)}
:root body .weekly-challenge>.fq-ring{position:absolute;inset:-1px;z-index:2;border-radius:inherit;padding:1.5px;pointer-events:none;overflow:hidden;container-type:size;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
:root body .challenge-head h2,:root body .thermo-head h2{margin:2px 0 4px;font-size:24px}
:root body .challenge-tag{display:inline-flex;align-items:center;gap:8px;font-size:11.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#c4b5fd}
html[data-theme="light"] body .challenge-tag{color:#6d4fd6}
:root body .challenge-tag i{width:8px;height:8px;border-radius:50%;background:#fb7185}
:root body .challenge-meta{margin:0;color:var(--muted);font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
:root body .challenge-hist{display:grid;grid-template-columns:repeat(10,1fr);align-items:end;gap:5px;height:96px;padding:10px 4px 0;border-bottom:1px solid var(--glass-line-strong)}
:root body .challenge-bin{display:block;height:100%;border-radius:7px 7px 2px 2px;transform-origin:50% 100%;background:linear-gradient(180deg,rgba(167,139,250,.75),rgba(56,198,244,.35))}
:root body .challenge-bin.is-mine{background:linear-gradient(180deg,#3ee6b5,#38c6f4);box-shadow:0 0 18px -2px rgba(62,230,181,.75)}
:root body .challenge-scale{display:flex;justify-content:space-between;font-size:11px;color:var(--subtle);margin-top:-6px}
:root body .challenge-status{margin:0}
:root body .weekly-challenge .btn{justify-self:start}
:root body .weekly-challenge.is-done .btn{opacity:.75}
:root body .thermo-list{list-style:none;margin:0;padding:0;display:grid;gap:9px}
:root body .thermo-row{--m:var(--m-mid);display:grid;grid-template-columns:minmax(0,1fr) 92px 42px 54px;align-items:center;gap:10px;padding:9px 12px;border-radius:12px;background:rgba(255,255,255,.03);border:1px solid color-mix(in srgb,var(--m) 30%,transparent)}
:root body .thermo-row.is-low{--m:var(--m-low)}:root body .thermo-row.is-good{--m:var(--m-good)}
:root body .thermo-topic{font-weight:650;font-size:13.5px;line-height:1.3;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
:root body .thermo-bar{height:8px;border-radius:9px;background:rgba(255,255,255,.07);overflow:hidden}
:root body .thermo-bar span{display:block;height:100%;transform-origin:0 50%;background:linear-gradient(90deg,var(--m-low),var(--m))}
:root body .thermo-pct{font:800 16px/1 var(--display);color:var(--m);text-align:right;font-variant-numeric:tabular-nums}
:root body .thermo-n{font-size:11.5px;color:var(--subtle);text-align:right}
:root body .thermo-empty{padding:18px;border-radius:14px;border:1px dashed var(--glass-line-strong);color:var(--muted);line-height:1.5;background:rgba(255,255,255,.02)}
:root body .class-thermometer .btn{justify-self:start}
:root body .class-thermometer>.hint:last-child{margin:0;font-size:12px}
:root body .insight-challenge{border-color:rgba(167,139,250,.45);background:linear-gradient(140deg,rgba(167,139,250,.16),transparent 70%),rgba(255,255,255,.02)}
:root body .challenge-result{font:800 20px/1.3 var(--display);margin:0}

/* Conquistas --------------------------------------------------------------------- */
.achievements{width:min(860px,95vw);max-height:92vh;margin:auto;padding:0;border:0;background:transparent;color:var(--text);overflow:visible}
.achievements::backdrop{background:rgba(2,8,12,.6);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.achievements-box{display:grid;gap:14px;max-height:92vh;overflow:auto;padding:24px;border-radius:22px;background:var(--glass),rgba(9,19,27,.95);border:1px solid var(--glass-line-strong);box-shadow:var(--sh-3)}
html[data-theme="light"] .achievements-box{background:var(--glass),rgba(255,255,255,.98)}
.achievements-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.achievements-top h2{margin:0 0 4px}
.achievements-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px}
.achievement{display:grid;gap:5px;align-content:start;padding:14px;border-radius:16px;border:1px solid var(--glass-line);background:rgba(255,255,255,.025);opacity:.72}
.achievement strong{font-size:14px}.achievement p{margin:0;font-size:12.5px;color:var(--muted);line-height:1.4}.achievement small{font-size:11.5px;color:var(--subtle)}
.achievement-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;font:800 14px/1 var(--display);color:var(--subtle);background:rgba(255,255,255,.05);border:1px dashed var(--glass-line-strong)}
.achievement.is-earned{opacity:1;border-color:rgba(62,230,181,.45);background:linear-gradient(150deg,rgba(62,230,181,.14),rgba(167,139,250,.08) 70%,transparent)}
.achievement.is-earned .achievement-icon{color:#071018;border:0;background:linear-gradient(140deg,#3ee6b5,#38c6f4 55%,#a78bfa);box-shadow:0 8px 20px -10px rgba(56,198,244,.9)}
.achievement-rail{height:5px;border-radius:9px;background:rgba(255,255,255,.07);overflow:hidden}
.achievement-rail span{display:block;height:100%;transform-origin:0 50%;background:var(--aurora)}

/* Biblioteca em estante ------------------------------------------------------------ */
:root body .library-view-toggle{display:inline-flex;margin:4px 0 10px}
:root body .library-shelf{display:grid;gap:22px;margin-top:6px;min-width:0}
:root body .library-shelf[hidden]{display:none}
:root body .shelf{display:grid;gap:10px;min-width:0}
:root body .shelf-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}
:root body .shelf-titles{display:grid;gap:2px;min-width:0}
:root body .shelf-name{margin:0;font-size:18px;line-height:1.25}
:root body .shelf.is-topic .shelf-name::before{content:"N3";display:inline-block;margin-right:8px;padding:3px 7px;border-radius:7px;font:800 10.5px/1 var(--display);vertical-align:3px;color:#071018;background:linear-gradient(120deg,#3ee6b5,#38c6f4)}
:root body .shelf.is-recent .shelf-name::before{content:"↻ ";color:#38c6f4}
:root body .shelf.is-fav .shelf-name::before{content:"★ ";color:#f5b955}
:root body .shelf-count{font-size:12.5px;color:var(--muted)}
:root body .shelf-train{min-height:34px;padding:6px 14px}
:root body .shelf-progress{height:3px;border-radius:9px;background:rgba(255,255,255,.07);overflow:hidden}
:root body .shelf-progress span{display:block;height:100%;transform-origin:0 50%;background:var(--aurora)}
:root body .shelf-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(150px,168px);gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:4px 2px 14px;scrollbar-width:thin}
:root body .shelf-book{--disc:var(--violet);position:relative;display:grid;grid-template-rows:1fr auto;scroll-snap-align:start;min-height:228px;border-radius:14px 18px 18px 14px;background:linear-gradient(165deg,color-mix(in srgb,var(--disc) 34%,#0b1620) 0%,#0c1822 70%);border:1px solid color-mix(in srgb,var(--disc) 40%,transparent);box-shadow:inset 6px 0 0 color-mix(in srgb,var(--disc) 70%,#000),0 14px 26px -18px color-mix(in srgb,var(--disc) 80%,transparent);transition:transform .25s var(--ease-out),box-shadow .25s var(--ease-out)}
:root body .shelf-book[data-module="ham"]{--disc:var(--sky)}:root body .shelf-book[data-module="iesc"]{--disc:var(--mint)}:root body .shelf-book[data-module="mcm"],:root body .shelf-book[data-module="cc"]{--disc:var(--amber)}
html[data-theme="light"] body .shelf-book{background:linear-gradient(165deg,color-mix(in srgb,var(--disc) 22%,#fff) 0%,#fff 75%)}
:root body .shelf-book:hover{transform:translateY(-4px) rotate(-.6deg)}
:root body .shelf-book.is-read{opacity:.82}
:root body .shelf-book.is-read::after{content:"✓";position:absolute;top:10px;right:10px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;font-size:12px;font-weight:900;color:#071018;background:#3ee6b5}
:root body .shelf-cover{display:grid;align-content:start;gap:8px;padding:14px 14px 10px 18px;text-align:left;color:var(--text);background:none;border:0;cursor:pointer;min-width:0;border-radius:inherit}
:root body .shelf-kind{font-size:10.5px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:color-mix(in srgb,var(--disc) 75%,#fff)}
html[data-theme="light"] body .shelf-kind{color:color-mix(in srgb,var(--disc) 75%,#000)}
:root body .shelf-title{font:750 14px/1.32 var(--display);display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
:root body .shelf-meta{font-size:11.5px;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
:root body .shelf-actions{display:flex;gap:6px;padding:0 10px 10px 16px}
:root body .shelf-actions button{min-height:30px;border-radius:10px;border:1px solid var(--glass-line-strong);background:rgba(255,255,255,.05);color:var(--text);font-size:12px;font-weight:700;cursor:pointer;padding:4px 9px}
:root body .shelf-actions .shelf-fav{font-size:15px;line-height:1;color:#f5b955}
html[data-theme="light"] body .shelf-actions .shelf-fav{color:#b07400}
:root body .shelf-read{flex:1}
:root body .shelf-actions .shelf-read[aria-pressed="true"]{color:#071018;background:#3ee6b5;border-color:#3ee6b5}
:root body .shelf-more{align-self:center;min-height:120px;border-radius:14px;border:1px dashed var(--glass-line-strong);background:transparent;color:var(--muted);font-weight:700;cursor:pointer}
:root body .shelf-tip{margin:0}

/* Página da N3 (pública) ---------------------------------------------------------- */
:root body .n3-sales{position:relative;margin:64px auto 0;padding:48px clamp(18px,4vw,54px);max-width:1180px;border-radius:32px;overflow:hidden;background:radial-gradient(80% 90% at 85% 0%,rgba(167,139,250,.26),transparent 60%),radial-gradient(70% 80% at 0% 100%,rgba(62,230,181,.2),transparent 60%),var(--glass),var(--glass-solid);border:1px solid var(--glass-line-strong);box-shadow:var(--glass-hi),var(--sh-3)}
:root body .n3-sales-head{display:grid;gap:12px;max-width:760px}
:root body .n3-sales-tag{justify-self:start;padding:7px 12px;border-radius:999px;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#071018;background:linear-gradient(120deg,#3ee6b5,#38c6f4 55%,#a78bfa)}
:root body .n3-sales-head h2{margin:0;font:800 clamp(32px,5vw,58px)/1.02 var(--display);letter-spacing:-.035em}
:root body .n3-sales-head h2 em{font-style:normal;background:var(--aurora);-webkit-background-clip:text;background-clip:text;color:transparent}
:root body .n3-sales-head p{margin:0;font-size:17px;line-height:1.55;color:var(--muted)}
:root body .n3-sales-stats{list-style:none;margin:28px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
:root body .n3-sales-stats li{display:grid;gap:4px;padding:18px;border-radius:18px;background:rgba(255,255,255,.035);border:1px solid var(--glass-line)}
:root body .n3-sales-stats strong{font:800 clamp(26px,3.4vw,40px)/1 var(--display);letter-spacing:-.03em;background:var(--aurora);-webkit-background-clip:text;background-clip:text;color:transparent;font-variant-numeric:tabular-nums}
:root body .n3-sales-stats span{font-size:13px;color:var(--muted);line-height:1.35}
:root body .n3-sales-shots{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:14px;margin:28px 0 0}
:root body .n3-sales-shots:empty{display:none}
:root body .n3-sales-shots figure{margin:0;border-radius:18px;overflow:hidden;border:1px solid var(--glass-line-strong);box-shadow:0 28px 50px -28px rgba(56,198,244,.55);background:#09131b}
:root body .n3-sales-shots img{display:block;width:100%;height:auto}
:root body .n3-sales-shots figcaption{padding:9px 12px;font-size:12px;font-weight:650;color:var(--muted)}
:root body .n3-sales-grid{list-style:none;margin:28px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
:root body .n3-sales-grid li{display:grid;gap:6px;align-content:start;padding:16px;border-radius:16px;background:rgba(255,255,255,.03);border:1px solid var(--glass-line);transition:transform .25s var(--ease-out),border-color .25s}
:root body .n3-sales-grid li:hover{transform:translateY(-3px);border-color:rgba(62,230,181,.5)}
:root body .n3-sales-grid b{font:750 15px/1.25 var(--display)}
:root body .n3-sales-grid span{font-size:13px;line-height:1.45;color:var(--muted)}
:root body .n3-sales-cta{display:flex;flex-wrap:wrap;align-items:center;gap:14px 22px;margin:30px 0 0}
:root body .n3-sales-cta p{margin:0;max-width:520px;font-size:13.5px;color:var(--muted)}
:root body .n3-faq{margin-top:26px}
:root body .hero-pill-n3{display:inline-flex;align-items:center;gap:6px;padding:7px 13px;border-radius:999px;font-weight:800;color:#071018;text-decoration:none;background:linear-gradient(120deg,#3ee6b5,#38c6f4 55%,#a78bfa)}

@media (max-width:980px){
 :root body .goals-strip{grid-template-columns:1fr 1fr}
 :root body .goal-ach{grid-column:1/-1}
 :root body .n3-live-grid{grid-template-columns:1fr}
 :root body .n3-sales-grid{grid-template-columns:1fr 1fr}
 :root body .n3-sales-stats{grid-template-columns:1fr 1fr}
 :root body .n3-sales-shots{grid-template-columns:1fr}
}
@media (max-width:560px){
 :root body .goals-strip{grid-template-columns:1fr}
 :root body .goal-block{padding:14px}
 :root body :is(.weekly-challenge,.class-thermometer){padding:18px}
 :root body .thermo-row{grid-template-columns:minmax(0,1fr) 40px;grid-template-areas:"t p" "b b"}
 :root body .thermo-topic{grid-area:t}:root body .thermo-pct{grid-area:p}:root body .thermo-bar{grid-area:b}:root body .thermo-n{display:none}
 :root body .shelf-row{grid-auto-columns:minmax(136px,146px)}
 :root body .n3-sales{margin-top:40px;padding:30px 16px;border-radius:24px}
 :root body .n3-sales-grid{grid-template-columns:1fr}
 :root body .n3-sales-cta .btn{width:100%}
}
:root body .library-view-toggle .segmented-option{white-space:nowrap;min-width:96px}
:root body .shelf-book{min-height:196px}
:root body .shelf-block-title{margin:0 0 10px;font-size:13px;letter-spacing:.09em;text-transform:uppercase;color:var(--subtle)}
:root body .shelf-topic-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:14px}
:root body .shelf-topic-grid .shelf{align-content:start;padding:16px 16px 6px;border-radius:20px;background:var(--glass),var(--glass-solid);border:1px solid var(--glass-line);box-shadow:var(--glass-hi),var(--sh-2)}
:root body .shelf-topic-grid .shelf-name{font-size:16px}
:root body .shelf-topic-grid .shelf-row{grid-auto-columns:minmax(138px,150px)}
@media (max-width:560px){:root body .shelf-topic-grid{grid-template-columns:1fr}}
:root body .shelf-actions .shelf-read{white-space:nowrap;font-size:11.5px;padding:4px 8px}
:root body .n3-sales-shots img{aspect-ratio:16/11;height:auto;object-fit:cover;object-position:top center}
:root body .library-shelf>.shelf,:root body .shelf-topic-grid>.shelf{content-visibility:auto;contain-intrinsic-size:auto 300px}
/* 1.71.1 · vídeo da página da N3 */
:root body .n3-sales-video{margin:28px 0 0;border-radius:22px;overflow:hidden;border:1px solid var(--glass-line-strong);background:#050b11;box-shadow:0 30px 60px -30px rgba(56,198,244,.55)}
:root body .n3-sales-video video{display:block;width:100%;height:auto;aspect-ratio:16/9;background:#050b11}
:root body .n3-sales-video.is-vertical{max-width:420px;margin-left:auto;margin-right:auto}
:root body .n3-sales-video.is-vertical video{aspect-ratio:9/16}
:root body .n3-sales-video figcaption{padding:10px 14px;font-size:12.5px;font-weight:650;color:var(--muted)}

/* ==========================================================================
   1.72 · Vitrine do OSCE Lab (página inicial): só 6º período, passo a passo com telas reais, monitor e prova de ritmos
   ========================================================================== */
:root body .osce-showcase.osce-v2{display:block;position:relative;overflow:hidden;padding:clamp(26px,4vw,52px);border-radius:32px;border:1px solid var(--glass-line-strong);
 background:radial-gradient(70% 60% at 100% 0%,rgba(56,198,244,.2),transparent 62%),radial-gradient(60% 50% at 0% 100%,rgba(62,230,181,.16),transparent 62%),var(--glass),var(--glass-solid);box-shadow:var(--glass-hi),var(--sh-3)}
:root body .osce-v2-head{display:grid;gap:14px;max-width:880px}
:root body .osce-v2-only{justify-self:start;display:inline-flex;align-items:center;gap:10px;padding:9px 16px;border-radius:999px;font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#071018;background:linear-gradient(120deg,#f5b955,#fb9d6b);box-shadow:0 10px 26px -12px rgba(245,185,85,.8)}
:root body .osce-v2-only i{width:9px;height:9px;border-radius:50%;background:#071018}
:root body .osce-v2-head h2{margin:0;font:800 clamp(30px,4.6vw,54px)/1.04 var(--display);letter-spacing:-.035em}
:root body .osce-v2-head h2 em{font-style:normal;background:var(--aurora);-webkit-background-clip:text;background-clip:text;color:transparent}
:root body .osce-v2-head .osce-showcase-lede{margin:0;font-size:17px;line-height:1.55;color:var(--muted)}
:root body .osce-v2-stats{list-style:none;margin:12px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
:root body .osce-v2-stats li{display:grid;gap:4px;padding:16px 18px;border-radius:18px;background:rgba(255,255,255,.035);border:1px solid var(--glass-line)}
:root body .osce-v2-stats strong{font:800 clamp(30px,3.6vw,44px)/1 var(--display);letter-spacing:-.03em;background:var(--aurora);-webkit-background-clip:text;background-clip:text;color:transparent;font-variant-numeric:tabular-nums}
:root body .osce-v2-stats span{font-size:13px;line-height:1.35;color:var(--muted)}
:root body .osce-steps{display:grid;gap:clamp(22px,3vw,40px);margin:clamp(30px,4vw,48px) 0 0}
:root body .osce-step{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:clamp(18px,3vw,40px);align-items:center}
:root body .osce-step:nth-child(even){grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr)}
:root body .osce-step:nth-child(even) .osce-step-shot{order:2}
:root body .osce-step-shot{position:relative;margin:0;border-radius:20px;overflow:hidden;border:1px solid var(--glass-line-strong);background:#050b11;box-shadow:0 34px 60px -34px rgba(56,198,244,.65),0 0 0 6px rgba(255,255,255,.025)}
:root body .osce-step-shot img{display:block;width:100%;height:auto;aspect-ratio:1200/760;object-fit:cover;object-position:top left}
:root body .osce-step-copy{display:grid;gap:10px;align-content:center}
:root body .osce-step-num{font:800 15px/1 var(--mono,ui-monospace,monospace);letter-spacing:.12em;color:#3ee6b5}
:root body .osce-step-new{justify-self:start;padding:4px 10px;border-radius:999px;font-size:11.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#071018;background:linear-gradient(120deg,#3ee6b5,#38c6f4)}
:root body .osce-step-copy h3{margin:0;font:800 clamp(22px,2.4vw,30px)/1.12 var(--display);letter-spacing:-.02em}
:root body .osce-step-copy p{margin:0;font-size:15.5px;line-height:1.6;color:var(--muted)}
:root body .osce-v2-notice{margin:clamp(28px,4vw,44px) 0 26px;padding:18px 20px;border-radius:18px;border:1px solid rgba(245,185,85,.55);background:linear-gradient(120deg,rgba(245,185,85,.14),rgba(245,185,85,.04));font-size:15px;line-height:1.55;color:var(--text)}
:root body .osce-v2-notice b{color:#f5b955}
html[data-theme="light"] body .osce-v2-notice b{color:#9a5b00}
:root body .osce-v2 .osce-showcase-plans{padding-top:22px}
:root body .osce-preview.is-live .academic-badge{color:#071018;background:linear-gradient(120deg,#f5b955,#fb9d6b);border-color:transparent}
:root body .osce-preview.is-live .btn{white-space:nowrap}
@media (max-width:900px){
 :root body .osce-v2-stats{grid-template-columns:1fr 1fr}
 :root body .osce-step,:root body .osce-step:nth-child(even){grid-template-columns:1fr}
 :root body .osce-step:nth-child(even) .osce-step-shot{order:0}
}
@media (max-width:560px){
 :root body .osce-showcase.osce-v2{padding:24px 16px;border-radius:24px}
 :root body .osce-v2-only{font-size:11.5px;padding:8px 12px}
 :root body .osce-v2-stats li{padding:12px}
}

/* 1.73 · Entrega do e-mail de confirmação: dicas para achar a mensagem e aviso de e-mail digitado errado */
:root body .confirmation-tips{margin:12px 0 14px;padding:12px 14px 12px 30px;border-radius:14px;border:1px solid var(--glass-line-strong);background:var(--aurora-soft),rgba(255,255,255,.03);display:grid;gap:6px;font-size:13.5px;line-height:1.45;color:var(--muted)}
:root body .confirmation-tips b{color:var(--ink,inherit)}
:root body .email-suggestion{margin:-4px 0 8px;padding:8px 12px;border-radius:12px;border:1px solid color-mix(in srgb,var(--amber) 55%,transparent);background:color-mix(in srgb,var(--amber) 12%,transparent);font-size:13.5px;font-weight:600}
:root body .email-suggestion.hidden{display:none}
:root body .email-suggestion .linkbtn{margin-left:4px}
html[data-theme="light"] .email-suggestion{background:color-mix(in srgb,var(--amber) 10%,#fff)}

/* 1.74 · Cupom de parceiro no painel do administrador */
:root body .admin-partner-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin:10px 0}
:root body .admin-partner-fact{display:grid;gap:2px;padding:10px 12px;border-radius:12px;border:1px solid var(--glass-line-strong);background:var(--aurora-soft),rgba(255,255,255,.03)}
:root body .admin-partner-fact span{font-size:12px;font-weight:650;color:var(--muted)}
:root body .admin-partner-fact strong{font-size:20px;font-variant-numeric:tabular-nums}


/* 1.75 · Material N3 do monitor: vitrine no topo da biblioteca e no hub N3; estante por disciplina ------------- */
:root body .n3-vitrine-host{margin:6px 0 18px;min-width:0}
:root body .n3-vitrine-host[hidden]{display:none}
#n3-home .n3-vitrine-host{margin:14px 0 6px}
:root body .n3-vitrine{position:relative;display:grid;gap:18px;padding:clamp(18px,2.6vw,28px);border-radius:26px;overflow:hidden;isolation:isolate;
 background:radial-gradient(70% 120% at 100% 0%,rgba(167,139,250,.30),transparent 62%),radial-gradient(60% 110% at 0% 100%,rgba(62,230,181,.24),transparent 60%),linear-gradient(160deg,rgba(13,27,38,.92),rgba(8,17,25,.9));
 border:1px solid var(--glass-line-strong);box-shadow:var(--sh-3),var(--glass-hi)}
html[data-theme="light"] body .n3-vitrine{background:radial-gradient(70% 120% at 100% 0%,rgba(122,92,224,.16),transparent 62%),radial-gradient(60% 110% at 0% 100%,rgba(15,174,134,.16),transparent 60%),linear-gradient(160deg,#ffffff,#f2f8fa)}
:root body .n3-vitrine::before{content:"";position:absolute;inset:0 0 auto;height:3px;background:var(--aurora);z-index:1}
:root body .n3-vitrine-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:end}
:root body .n3-vitrine-copy{display:grid;gap:8px;min-width:0;max-width:720px}
:root body .n3-vitrine-tag{justify-self:start;padding:6px 11px;border-radius:999px;font:800 11px/1 var(--display);letter-spacing:.08em;text-transform:uppercase;color:#071018;background:linear-gradient(120deg,#3ee6b5,#38c6f4 55%,#a78bfa)}
:root body .n3-vitrine-title{margin:0;font:800 clamp(21px,2.6vw,30px)/1.12 var(--display);letter-spacing:-.025em;text-wrap:balance}
:root body .n3-vitrine-lead{margin:0;font-size:14px;line-height:1.55;color:var(--muted)}
:root body .n3-vitrine-nums{list-style:none;margin:0;padding:0;display:flex;gap:10px}
:root body .n3-vitrine-nums li{display:grid;gap:2px;min-width:92px;padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.045);border:1px solid var(--glass-line)}
html[data-theme="light"] body .n3-vitrine-nums li{background:rgba(255,255,255,.75)}
:root body .n3-vitrine-nums strong{font:800 26px/1 var(--display);letter-spacing:-.03em;font-variant-numeric:tabular-nums;background:var(--aurora);-webkit-background-clip:text;background-clip:text;color:transparent}
:root body .n3-vitrine-nums span{font-size:12px;color:var(--muted)}
:root body .n3-vitrine-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(228px,1fr));gap:14px}
:root body .n3-vitrine.is-compact .n3-vitrine-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
:root body .n3-volume{--disc:var(--violet);position:relative;display:grid;align-content:start;gap:10px;min-width:0;padding:16px 16px 14px 24px;border-radius:14px 20px 20px 14px;
 background:linear-gradient(162deg,color-mix(in srgb,var(--disc) 40%,#0b1620) 0%,#0c1822 78%);border:1px solid color-mix(in srgb,var(--disc) 42%,transparent);box-shadow:var(--sh-2);transition:transform .25s var(--ease-out),box-shadow .25s var(--ease-out)}
:root body .n3-volume[data-disc="ham"]{--disc:var(--sky)}:root body .n3-volume[data-disc="iesc"]{--disc:var(--mint)}:root body .n3-volume[data-disc="mcm"]{--disc:var(--amber)}
html[data-theme="light"] body .n3-volume{background:linear-gradient(162deg,color-mix(in srgb,var(--disc) 20%,#fff) 0%,#fff 80%)}
@media (hover:hover) and (prefers-reduced-motion:no-preference){:root body .n3-volume:hover{transform:translateY(-4px)}}
:root body .n3-volume-spine{position:absolute;inset:0 auto 0 0;width:9px;border-radius:14px 0 0 14px;background:linear-gradient(180deg,var(--disc),color-mix(in srgb,var(--disc) 45%,#000))}
:root body .n3-volume-top{display:grid;gap:2px}
:root body .n3-volume-kicker{font:800 10.5px/1 var(--display);letter-spacing:.1em;text-transform:uppercase;color:color-mix(in srgb,var(--disc) 75%,#fff)}
html[data-theme="light"] body .n3-volume-kicker{color:color-mix(in srgb,var(--disc) 80%,#000)}
:root body .n3-volume-label{font:800 28px/1.05 var(--display);letter-spacing:-.03em}
:root body .n3-volume-stats{margin:0;font-size:13px;color:var(--muted)}
:root body .n3-volume-stats b{color:var(--text);font-variant-numeric:tabular-nums}
:root body .n3-volume-topics{list-style:none;margin:0;padding:0;display:grid;gap:5px}
:root body .n3-volume-topics li{position:relative;padding-left:14px;font-size:12.5px;line-height:1.35;color:var(--text)}
:root body .n3-volume-topics li::before{content:"";position:absolute;left:0;top:.5em;width:6px;height:6px;border-radius:50%;background:var(--disc)}
:root body .n3-volume-topics li.is-more{color:var(--muted)}
:root body .n3-volume-topics li.is-more::before{background:transparent;border:1px solid var(--disc)}
:root body .n3-volume-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:4px}
:root body .n3-volume-actions .btn{min-height:38px;padding:7px 13px;font-size:13px}
:root body .n3-volume-train{font-weight:800}
:root body .n3-volume-lock{margin:0;font-size:12.5px;color:var(--muted)}
:root body .n3-volume.is-read .n3-volume-label::after{content:"✓ lido";margin-left:8px;padding:3px 7px;border-radius:7px;font:800 10.5px/1 var(--display);vertical-align:6px;color:#071018;background:#3ee6b5}
:root body .n3-vitrine-more{justify-self:start;font-weight:800}
:root body .academic-nav-badge.is-n3{opacity:1;padding:2px 6px;border-radius:6px;font-weight:800;color:#071018;background:linear-gradient(120deg,#3ee6b5,#38c6f4)}
/* Estante por disciplina */
:root body .shelf-tabs{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 6px;scrollbar-width:thin}
:root body .shelf-tab{--disc:var(--violet);display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;min-height:40px;padding:8px 14px;border-radius:999px;border:1px solid var(--glass-line-strong);background:rgba(255,255,255,.04);color:var(--text);font-weight:750;cursor:pointer}
:root body .shelf-tab small{padding:2px 7px;border-radius:999px;font-size:11.5px;color:var(--muted);background:rgba(255,255,255,.06)}
:root body .shelf-tab[data-disc="ham"]{--disc:var(--sky)}:root body .shelf-tab[data-disc="iesc"]{--disc:var(--mint)}:root body .shelf-tab[data-disc="mcm"],:root body .shelf-tab[data-disc="cc"]{--disc:var(--amber)}:root body .shelf-tab[data-disc="todas"]{--disc:var(--cyan)}
:root body .shelf-tab.is-active{color:#071018;background:var(--disc);border-color:var(--disc)}
:root body .shelf-tab.is-active small{color:#071018;background:rgba(255,255,255,.35)}
:root body .shelf-discipline{--disc:var(--violet);display:grid;gap:16px;padding:18px 18px 6px;border-radius:22px;background:var(--glass);border:1px solid var(--glass-line);min-width:0}
:root body .shelf-discipline[data-disc="ham"]{--disc:var(--sky)}:root body .shelf-discipline[data-disc="iesc"]{--disc:var(--mint)}:root body .shelf-discipline[data-disc="mcm"],:root body .shelf-discipline[data-disc="cc"]{--disc:var(--amber)}
:root body .shelf-discipline-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;padding-left:14px;border-left:4px solid var(--disc)}
:root body .shelf-discipline-name{margin:0;font:800 22px/1.15 var(--display);letter-spacing:-.02em}
:root body .shelf-discipline-count{font-size:13px;color:var(--muted)}
:root body .shelf-discipline .shelf-name{font-size:16px}
@media (max-width:760px){
 :root body .n3-vitrine-head{grid-template-columns:1fr}
 :root body .n3-vitrine-nums li{flex:1;min-width:0}
 :root body .n3-vitrine-grid,:root body .n3-vitrine.is-compact .n3-vitrine-grid{grid-template-columns:1fr}
 :root body .shelf-discipline{padding:14px 12px 4px}
}
:root body .n3-volume{display:flex;flex-direction:column}
:root body .n3-volume-actions{margin-top:auto;padding-top:6px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
:root body .n3-volume-actions .n3-volume-open{grid-column:1/-1;width:100%;justify-content:center}
:root body .n3-volume-actions .n3-volume-pdf{justify-content:center}
:root body .n3-volume-actions .n3-volume-lock{grid-column:1/-1}
:root body .n3-volume-actions .btn{white-space:nowrap}
@media (max-width:760px){:root body .n3-vitrine-lead{font-size:13.5px}}
:root body .shelf-discipline-head{padding-left:0;border-left:0}
:root body .shelf-discipline-name::before{content:"";display:inline-block;width:10px;height:10px;margin-right:10px;border-radius:50%;vertical-align:2px;background:var(--disc);box-shadow:0 0 0 4px color-mix(in srgb,var(--disc) 22%,transparent)}
/* 1.75.1 · botões do volume N3 empilhados, cada um com a largura do cartão */
:root body .n3-volume-actions{grid-template-columns:1fr}
:root body .n3-volume-actions .btn{width:100%;justify-content:center;text-align:center;white-space:normal;line-height:1.2}
:root body .n3-volume-actions .n3-volume-train{border-style:dashed}
/* 1.77 · O dia de estudo espalhado pela barra lateral: selos nos itens do menu e o pulso no fim dele */
:root body #nav .navitem>span:first-of-type{min-width:0}
:root body .nav-day-badge{margin-left:auto;flex:none;padding:2px 8px;border-radius:999px;font-size:10.5px;font-weight:800;letter-spacing:.02em;line-height:1.5;white-space:nowrap;font-variant-numeric:tabular-nums;
 color:var(--muted);background:rgba(255,255,255,.05);border:1px solid var(--glass-line)}
:root body .nav-day-badge[hidden]{display:none}
:root body .nav-day-badge.is-goal{color:var(--mint);border-color:color-mix(in srgb,var(--mint) 35%,transparent);background:color-mix(in srgb,var(--mint) 9%,transparent)}
:root body .nav-day-badge.is-done{color:#04221a;background:var(--mint);border-color:var(--mint)}
:root body .nav-day-badge.is-review{min-width:20px;text-align:center;color:#fff;background:var(--rose);border-color:var(--rose);box-shadow:0 0 0 3px color-mix(in srgb,var(--rose) 18%,transparent)}
/* barra fina da meta sob "Simulados N3" */
:root body #nav .navitem.has-day-progress{position:relative}
:root body #nav .navitem.has-day-progress::after{content:"";position:absolute;left:44px;right:12px;bottom:5px;height:2px;border-radius:2px;
 background:linear-gradient(90deg,var(--mint),var(--cyan)) left/calc(var(--day-progress,0) * 100%) 100% no-repeat,rgba(255,255,255,.07);transition:background-size .6s ease}
/* fim do menu: pulso, sequência e N3 */
:root body .side-pulse-foot{--beat:1s;display:flex;align-items:stretch;gap:6px;margin:14px -4px 0;padding:10px 4px 8px;border-top:1px solid var(--glass-line);
 position:sticky;bottom:0;z-index:2;background:linear-gradient(to bottom,color-mix(in srgb,var(--sidebar,#0b1420) 70%,transparent),var(--sidebar,#0b1420) 30%);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
:root body .side-pulse-foot[hidden],:root body .side-pulse-n3[hidden],:root body .side-day-pill[hidden]{display:none!important}
:root body .side-pulse-row{flex:1;min-width:0;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;gap:2px 8px;align-items:center;padding:7px 10px;border-radius:12px;
 border:1px solid rgba(62,230,181,.18);background:#04120f;color:#cfeee4;font:inherit;text-align:left;cursor:pointer;
 background-image:linear-gradient(rgba(62,230,181,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(62,230,181,.07) 1px,transparent 1px);background-size:9px 9px}
:root body .side-pulse-row:hover{border-color:rgba(62,230,181,.45)}
:root body .side-pulse-row:focus-visible,:root body .side-pulse-n3:focus-visible,:root body .side-day-pill:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}
:root body .side-pulse-trace{grid-column:1/-1;width:100%;height:22px;overflow:visible}
:root body .side-pulse-trace path{fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
:root body .side-pulse-trace-base{stroke:rgba(62,230,181,.22)}
:root body .side-pulse-trace-beam{stroke:#3ee6b5;stroke-dasharray:30 200;stroke-dashoffset:30;filter:drop-shadow(0 0 3px rgba(62,230,181,.8));animation:fq-side-pulse-beat calc(var(--beat) * 2.2) linear infinite}
:root body .is-resting .side-pulse-trace-beam{animation-duration:4.4s;opacity:.7}
@keyframes fq-side-pulse-beat{to{stroke-dashoffset:-200}}
:root body .side-pulse-bpm{font-size:11.5px;color:#8fbfb0;font-variant-numeric:tabular-nums}
:root body .side-pulse-bpm b{font-size:14px;color:#3ee6b5;font-weight:800}
:root body .side-pulse-streak{display:inline-flex;align-items:center;gap:3px;font-size:11.5px;color:#d9c08f;font-variant-numeric:tabular-nums}
:root body .side-pulse-streak .ui-icon{width:13px;height:13px;color:#f5b955}
:root body .side-pulse-streak b{font-size:14px;color:#f5b955;font-weight:800}
:root body .side-pulse-foot.is-complete .side-pulse-row{border-color:color-mix(in srgb,var(--amber) 55%,transparent);box-shadow:0 0 0 3px color-mix(in srgb,var(--amber) 14%,transparent)}
:root body .side-day-pill{display:none}
html[data-theme="light"] body .nav-day-badge{background:rgba(18,52,66,.05)}
html[data-theme="light"] body .side-pulse-foot{background:linear-gradient(to bottom,rgba(246,250,251,.7),rgba(246,250,251,.96) 30%)}
html[data-theme="light"] body #nav .navitem.has-day-progress::after{background:linear-gradient(90deg,var(--mint),var(--cyan)) left/calc(var(--day-progress,0) * 100%) 100% no-repeat,rgba(18,52,66,.08)}
@media (prefers-reduced-motion:reduce){:root body .side-pulse-trace-beam{animation:none;stroke-dasharray:none;stroke-dashoffset:0}:root body #nav .navitem.has-day-progress::after{transition:none}}
@media (max-width:860px){
 /* No celular a barra lateral é a faixa do topo: a pílula mostra sequência e meta e abre o menu */
 body:not(.is-public) .sidebar .side-day-pill{display:inline-flex;align-items:center;gap:4px;margin:0 6px 0 auto;padding:6px 11px;min-height:38px;border-radius:999px;
  border:1px solid color-mix(in srgb,var(--mint) 30%,transparent);background:color-mix(in srgb,var(--mint) 10%,transparent);color:var(--text);font:inherit;font-size:12.5px;cursor:pointer}
 body:not(.is-public) .sidebar .side-day-pill .side-pulse-trace{width:28px;height:16px}
 body:not(.is-public) .sidebar .side-day-pill b{font-size:13.5px;font-variant-numeric:tabular-nums}
 body:not(.is-public) .sidebar .side-day-pill b:first-of-type{color:var(--amber)}
 body:not(.is-public) .sidebar .side-day-pill-unit{color:var(--muted);margin-right:2px}
 body:not(.is-public) .sidebar .side-day-pill-sep{width:1px;height:14px;background:var(--glass-line-strong);margin:0 4px}
 body:not(.is-public) #nav .navitem{position:relative}
 body:not(.is-public) .nav-day-badge{position:absolute;top:-8px;right:10px;margin:0;font-size:11.5px;padding:1px 8px;box-shadow:0 2px 8px rgba(0,0,0,.35)}
 body:not(.is-public) .nav-day-badge:not(.is-done):not(.is-review){background:var(--panel,#111e2c)}
 body:not(.is-public) .side-pulse-n3{min-height:44px}
 body:not(.is-public) .side-pulse-foot{position:static;background:none;backdrop-filter:none;-webkit-backdrop-filter:none}
}
/* 1.77.1 · contador da N3 como mini calendário de vidro (antes: texto cru em vermelho) */
:root body .side-pulse-n3{--n3a:var(--cyan);--n3b:var(--violet);position:relative;flex:none;width:60px;display:grid;grid-template-rows:auto 1fr auto;place-items:center;gap:0;padding:6px 4px 7px;border-radius:12px;border:1px solid transparent;
 background:linear-gradient(170deg,color-mix(in srgb,var(--n3a) 9%,transparent),rgba(255,255,255,.02)) padding-box,linear-gradient(#0c1822,#0c1822) padding-box,linear-gradient(160deg,color-mix(in srgb,var(--n3a) 70%,transparent),color-mix(in srgb,var(--n3b) 55%,transparent)) border-box;
 color:var(--text);font:inherit;line-height:1;cursor:pointer;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease}
:root body .side-pulse-n3::before{content:"";position:absolute;inset:0 0 auto;height:15px;background:linear-gradient(90deg,color-mix(in srgb,var(--n3a) 28%,transparent),color-mix(in srgb,var(--n3b) 22%,transparent));border-bottom:1px solid color-mix(in srgb,var(--n3a) 30%,transparent)}
:root body .side-pulse-n3:hover{transform:translateY(-1px);box-shadow:0 6px 16px color-mix(in srgb,var(--n3a) 22%,transparent)}
:root body .n3-count-top{position:relative;font-size:9px;font-weight:800;letter-spacing:.16em;color:color-mix(in srgb,var(--n3a) 80%,#fff);padding-left:.16em}
:root body .n3-count-num{margin-top:3px;font-size:21px;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums;
 background:linear-gradient(160deg,var(--n3a),var(--n3b));-webkit-background-clip:text;background-clip:text;color:transparent}
:root body .n3-count-num.is-word{font-size:13px;letter-spacing:0}
:root body .n3-count-unit{font-size:9.5px;font-weight:700;color:var(--muted);letter-spacing:.04em}
:root body .side-pulse-n3.is-near{--n3a:#f5b955;--n3b:#fb923c}
:root body .side-pulse-n3.is-urgent,:root body .side-pulse-n3.is-today{--n3a:#fb7185;--n3b:#f59e0b;box-shadow:0 0 0 3px color-mix(in srgb,#fb7185 14%,transparent)}
:root body .side-pulse-n3.is-empty{--n3a:var(--muted);--n3b:var(--subtle)}
:root body .side-pulse-n3.is-empty .n3-count-num{font-size:18px}
@media (prefers-reduced-motion:no-preference){:root body .side-pulse-n3.is-urgent::after,:root body .side-pulse-n3.is-today::after{content:"";position:absolute;inset:-1px;border-radius:inherit;border:1px solid #fb7185;opacity:0;animation:fq-n3-soon 2.4s ease-out infinite}}
@keyframes fq-n3-soon{0%{opacity:.55;transform:scale(1)}100%{opacity:0;transform:scale(1.12)}}
html[data-theme="light"] body .side-pulse-n3{background:linear-gradient(170deg,#fff,rgba(255,255,255,.75)) padding-box,linear-gradient(160deg,color-mix(in srgb,var(--n3a) 75%,transparent),color-mix(in srgb,var(--n3b) 60%,transparent)) border-box}
html[data-theme="light"] body .side-pulse-n3.is-near{--n3a:#c27803;--n3b:#ea580c}
html[data-theme="light"] body .side-pulse-n3.is-urgent,html[data-theme="light"] body .side-pulse-n3.is-today{--n3a:#e11d48;--n3b:#d97706}
/* 1.77.1 · Monitor de estudo e pulso da barra lateral no tema claro: fundo claro de papel milimetrado, traçado verde-escuro
   (antes ficavam pretos/esverdeados mesmo no tema claro) */
html[data-theme="light"]{--monitor-bg:#f6fbf9;--vital-hr:#0a8f6f;--vital-spo2:#0a7aa6;--vital-pa:#c42f50;--vital-t:#a35f00}
html[data-theme="light"] body .monitor-screen{background:
 linear-gradient(rgba(10,143,111,.10) 1px,transparent 1px) 0 0/22px 22px,linear-gradient(90deg,rgba(10,143,111,.10) 1px,transparent 1px) 0 0/22px 22px,
 radial-gradient(120% 140% at 50% 0%,#ffffff,#eef7f3 75%);border:1px solid rgba(10,143,111,.22);box-shadow:inset 0 1px 0 #fff,0 1px 2px rgba(18,52,66,.06);color:#0e232b}
html[data-theme="light"] body .monitor-head h2{color:#0e232b}
html[data-theme="light"] body .monitor-tag{color:#0a7a5f;border-color:rgba(10,143,111,.35);background:rgba(255,255,255,.7)}
html[data-theme="light"] body .monitor-canvas{filter:drop-shadow(0 0 2px rgba(10,143,111,.35))}
html[data-theme="light"] body .monitor-caption{color:#4b6370}
html[data-theme="light"] body .vital{background:linear-gradient(160deg,color-mix(in srgb,var(--v) 10%,#fff),#fff 75%);border:1px solid color-mix(in srgb,var(--v) 28%,transparent);color:#0e232b;box-shadow:0 1px 2px rgba(18,52,66,.05)}
html[data-theme="light"] body .vital dt{color:#4b6370}
html[data-theme="light"] body .vital dd{text-shadow:none}
/* barra lateral: linha do pulso e pílula do celular */
html[data-theme="light"] body .side-pulse-row{background-color:#f6fbf9;color:#0e232b;border-color:rgba(10,143,111,.25);
 background-image:linear-gradient(rgba(10,143,111,.09) 1px,transparent 1px),linear-gradient(90deg,rgba(10,143,111,.09) 1px,transparent 1px)}
html[data-theme="light"] body .side-pulse-row:hover{border-color:rgba(10,143,111,.5)}
html[data-theme="light"] body .side-pulse-trace-base{stroke:rgba(10,143,111,.25)}
html[data-theme="light"] body .side-pulse-trace-beam{stroke:#0a8f6f;filter:drop-shadow(0 0 2px rgba(10,143,111,.35))}
html[data-theme="light"] body .side-pulse-bpm{color:#4b6370}
html[data-theme="light"] body .side-pulse-bpm b{color:#0a8f6f}
html[data-theme="light"] body .side-pulse-streak{color:#7a5a1e}
html[data-theme="light"] body .side-pulse-streak .ui-icon,html[data-theme="light"] body .side-pulse-streak b{color:#b26a00}
html[data-theme="light"] body .side-pulse-foot.is-complete .side-pulse-row{border-color:color-mix(in srgb,#b26a00 55%,transparent)}
html[data-theme="light"] body .sidebar .side-day-pill b:first-of-type{color:#b26a00}
/* 1.78 · Administração ao vivo: "Visão da operação" */
:root body .admin-live[hidden]{display:none}
:root body .admin-live{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;scroll-margin-top:96px}
:root body .admin-live-tabs{display:flex;gap:6px;padding:5px;border-radius:999px;background:rgba(3,10,15,.45);border:1px solid var(--glass-line);overflow-x:auto;scrollbar-width:none}
:root body .admin-live-tab{position:relative;flex:1 0 auto;min-height:40px;padding:0 16px;border:0;border-radius:999px;background:transparent;color:var(--muted);font:600 14px/1 inherit;font-family:inherit;cursor:pointer;white-space:nowrap}
:root body .admin-live-tab:hover{color:var(--text);background:rgba(255,255,255,.05)}
:root body .admin-live-tab.is-active{color:#04221a;background:linear-gradient(135deg,var(--mint),var(--cyan))}
:root body .admin-live-tab:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}
:root body .admin-live-tab.has-alert::after{content:"";position:absolute;top:8px;right:8px;width:8px;height:8px;border-radius:50%;background:var(--rose);box-shadow:0 0 0 3px color-mix(in srgb,var(--rose) 25%,transparent)}
:root body .admin-live-body{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;min-height:120px}
:root body .admin-student-head small{display:block;overflow-wrap:anywhere}
:root body .admin-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
:root body .admin-kpi{display:grid;align-content:start;gap:4px;padding:14px 16px;border-radius:14px;background:var(--glass),var(--glass-solid);border:1px solid var(--glass-line);min-width:0}
:root body .admin-kpi-label{font-size:11.5px;font-weight:700;letter-spacing:.04em;color:var(--subtle);text-transform:uppercase}
:root body .admin-kpi-value{font:800 28px/1.1 var(--display,inherit);letter-spacing:-.02em;color:var(--text);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
:root body .admin-kpi-note{font-size:12.5px;color:var(--muted)}
:root body .admin-kpi.is-live .admin-kpi-value{color:var(--mint)}
:root body .admin-kpi.is-live .admin-kpi-label::before{content:"";display:inline-block;width:8px;height:8px;margin-right:6px;border-radius:50%;background:var(--mint);box-shadow:0 0 0 3px color-mix(in srgb,var(--mint) 25%,transparent);vertical-align:1px}
@media (prefers-reduced-motion:no-preference){:root body .admin-kpi.is-live .admin-kpi-label::before{animation:fq-live-dot 1.6s ease-in-out infinite}}
@keyframes fq-live-dot{50%{box-shadow:0 0 0 6px color-mix(in srgb,var(--mint) 0%,transparent)}}
:root body .admin-kpi.is-money .admin-kpi-note{color:var(--mint);font-weight:700;font-size:14px}
:root body .admin-kpi.is-warn{border-color:color-mix(in srgb,var(--rose) 45%,transparent)}
:root body .admin-kpi.is-warn .admin-kpi-value{color:var(--rose)}
:root body .admin-kpi.is-ok .admin-kpi-value{color:var(--mint)}
:root body .admin-live-chart{padding:14px 16px 10px;border-radius:14px;background:var(--glass),var(--glass-solid);border:1px solid var(--glass-line)}
:root body .admin-live-chart h4,:root body .admin-live-list h4{margin:0 0 10px;font-size:13px;letter-spacing:.02em;color:var(--muted)}
:root body .admin-bars{display:flex;align-items:flex-end;gap:3px;height:110px}
:root body .admin-bar{flex:1;min-width:2px;height:calc(var(--h,0) * 100%);border-radius:4px 4px 1px 1px;background:linear-gradient(to top,color-mix(in srgb,var(--mint) 55%,transparent),var(--mint))}
:root body .admin-bar.is-now{background:linear-gradient(to top,color-mix(in srgb,var(--cyan) 55%,transparent),var(--cyan));box-shadow:0 0 0 2px color-mix(in srgb,var(--cyan) 25%,transparent)}
:root body .admin-bars-axis{display:flex;justify-content:space-between;margin-top:6px;font-size:11px;color:var(--subtle)}
:root body .admin-live-columns{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px;align-items:start}
:root body .admin-live-list{padding:14px 16px;border-radius:14px;background:var(--glass),var(--glass-solid);border:1px solid var(--glass-line);min-width:0}
:root body .admin-live-list ul{list-style:none;margin:0;padding:0;display:grid;gap:2px;max-height:320px;overflow:auto}
:root body .admin-live-list li{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;padding:8px 0;border-top:1px solid var(--glass-line);font-size:13px}
:root body .admin-live-list li:first-child{border-top:0}
:root body .admin-cell-main{flex:1 1 180px;min-width:0;font-weight:650;color:var(--text);overflow-wrap:anywhere}
:root body .admin-cell{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
:root body .admin-cell.is-muted{color:var(--subtle)}
:root body .admin-live-search{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
:root body .admin-live-search input{flex:1 1 260px;min-height:44px}
:root body .admin-students{display:grid;gap:6px}
:root body .admin-student-row{display:grid;grid-template-columns:minmax(0,2.2fr) repeat(4,minmax(0,1fr)) minmax(0,1.6fr);align-items:center;gap:10px;width:100%;padding:10px 14px;border-radius:12px;
 border:1px solid var(--glass-line);background:var(--glass),var(--glass-solid);color:var(--text);font:inherit;font-size:13px;text-align:left;cursor:pointer}
:root body .admin-student-row:hover{border-color:color-mix(in srgb,var(--mint) 45%,transparent)}
:root body .admin-student-row:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}
:root body .admin-student-who{display:grid;min-width:0}
:root body .admin-student-who strong,:root body .admin-student-who small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:root body .admin-student-who small{color:var(--subtle)}
:root body .admin-student-row .admin-cell{overflow:hidden;text-overflow:ellipsis}
:root body .admin-live-body>.btn.outline{justify-self:start;min-height:40px}
:root body .admin-student-head h4{margin:4px 0 2px;font-size:20px}
:root body .admin-live-error{padding:14px;border-radius:12px;border:1px solid color-mix(in srgb,var(--rose) 45%,transparent);color:var(--rose)}
html[data-theme="light"] body .admin-live-tabs{background:rgba(18,52,66,.06)}
html[data-theme="light"] body .admin-live-tab.is-active{color:#fff}
@media (max-width:760px){
 :root body .admin-student-row{grid-template-columns:1fr 1fr;row-gap:4px}
 :root body .admin-student-who{grid-column:1/-1}
 :root body .admin-kpi-value{font-size:24px}
 :root body .admin-bars{height:90px;gap:2px}
}
/* 1.78.8 · Código do e-mail na confirmação (alternativa ao link) */
.confirmation-code{display:grid;gap:8px;margin:14px 0 4px;padding:14px;border-radius:14px;border:1px dashed var(--glass-line-strong,#2a3b49);background:rgba(255,255,255,.02)}
.confirmation-code label{font-size:13.5px;font-weight:650;color:var(--ink,inherit)}
.confirmation-code-row{display:flex;gap:8px;flex-wrap:wrap}
.confirmation-code-row input{flex:1 1 140px;min-width:0;min-height:48px;font-size:22px;font-weight:700;letter-spacing:.28em;text-align:center;font-variant-numeric:tabular-nums}
.confirmation-code-row .btn{flex:0 0 auto;min-height:48px}
[data-theme=light] .confirmation-code{background:#fff}
/* 1.78.10 · Plano até a N3 montando (sem "tudo em dia" antes da hora) */
:root body .plan-empty.is-loading{color:var(--muted);border-style:dashed}
@media (prefers-reduced-motion:no-preference){:root body .plan-empty.is-loading{animation:fq-plan-loading 1.4s ease-in-out infinite}}
@keyframes fq-plan-loading{50%{opacity:.55}}
