@font-face{font-family:Montserrat;src:url('/identity/fonts/Montserrat-Regular.woff2') format('woff2'),url('/identity/fonts/Montserrat-Regular.otf') format('opentype');font-weight:400;font-display:swap}
@font-face{font-family:Montserrat;src:url('/identity/fonts/Montserrat-SemiBold.woff2') format('woff2'),url('/identity/fonts/Montserrat-SemiBold.ttf') format('truetype');font-weight:600;font-display:swap}
@font-face{font-family:Montserrat;src:url('/identity/fonts/Montserrat-Bold.woff2') format('woff2'),url('/identity/fonts/Montserrat-Bold.otf') format('opentype');font-weight:700 900;font-display:swap}
:root{--bg:#060A24;--bg-elevado:#0D1438;--card:#111B45;--borda:#28366D;--texto:#FFFFFF;--texto-suave:#C2CAE5;--primaria:#A3E635;--primaria-texto:#10172F;--acento:#22D3EE;--sucesso:#A3E635;--erro:#FB7185;--aviso:#FBBF24;--foco:#67E8F9;--mod-concursos:#A3E635;--mod-vestibulares:#FB923C;--mod-passatempos:#F472B6;--mod-idiomas:#2DD4BF;--raio-sm:8px;--raio-md:14px;--raio-lg:22px;--sombra-card:0 8px 28px rgba(0,0,0,.28);--brilho-neon:0 0 22px rgba(34,211,238,.22);--fonte-titulo:Montserrat,sans-serif;--fonte-texto:Montserrat,sans-serif;--surface:var(--card);--surface-2:var(--bg-elevado);--ink:var(--texto);--ink-muted:var(--texto-suave);--border:var(--borda);--line:var(--borda);--accent:var(--modulo-acento,var(--acento));--accent-ink:var(--primaria-texto);--accent-soft:rgba(34,211,238,.12);--muted:var(--texto-suave);--f-body:Montserrat,sans-serif;--f-display:Montserrat,sans-serif;color-scheme:dark}
html{background:var(--bg);color-scheme:dark}body{background:var(--bg)!important;color:var(--texto)!important;font-family:Montserrat,Arial,sans-serif!important;-webkit-font-smoothing:antialiased}body[data-module-key="cronofoco"]{--modulo-acento:var(--acento)}body[data-module-key="concursos"]{--modulo-acento:var(--mod-concursos)}body[data-module-key="vestibulares"]{--modulo-acento:var(--mod-vestibulares)}body[data-module-key="passatempos"]{--modulo-acento:var(--mod-passatempos)}body[data-module-key="idiomas"]{--modulo-acento:var(--mod-idiomas)}
h1,h2,h3,h4,.brand-title h1,.logo,.clue,.time-target{font-family:Montserrat,Arial,sans-serif!important;color:var(--texto)}p,small,label,li,td,th{color:inherit}a{color:var(--acento)}
button,input,select,textarea{font-family:Montserrat,Arial,sans-serif!important}button,.btn,.action,.action-link,.gateway-toolbar button{transition:background-color .18s,border-color .18s,color .18s,transform .18s;min-height:44px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--foco)!important;outline-offset:3px!important}
button:disabled,[disabled]{background:#46516A!important;color:#AAB3C8!important;box-shadow:none!important;opacity:1!important}input,select,textarea{background:#0B1232!important;color:var(--texto)!important;border-color:var(--borda)!important}input::placeholder,textarea::placeholder{color:#AAB4D1!important}
.panel,.card,.module-card,.lang,.daily,.today,.result-block,.module-content,.gateway-message,.tips-grid>*,.tip-cat-card,.checkup-card-preview,.checkup-result-card,.panel-head,.question-card,.exercise-card,.module-tabs,.question,.item-card{background:var(--card)!important;color:var(--texto)!important;border-color:var(--borda)!important;border-radius:var(--raio-md)}.panel,.card,.module-card,.lang,.today,.question-card,.exercise-card{box-shadow:var(--sombra-card)}
.btn.primary,.btn:not(.ghost):not(.secondary):not(.warn),button.primary,.action:not(.secondary){background:var(--primaria)!important;color:var(--primaria-texto)!important;border:1px solid var(--primaria)!important;font-weight:700}.btn.primary:hover,.btn:not(.ghost):not(.secondary):not(.warn):hover,button.primary:hover,.action:not(.secondary):hover{background:#B7F45B!important}
.btn.ghost,.btn.secondary,button.secondary,.crumb,.tip-back{background:transparent!important;color:var(--acento)!important;border:1px solid var(--acento)!important}.btn.ghost:hover,.btn.secondary:hover,button.secondary:hover{background:rgba(34,211,238,.1)!important}
.tag,.badge,.eyebrow,.pill,.module-badge{background:rgba(34,211,238,.08)!important;color:var(--acento)!important;border:1px solid var(--acento)!important;border-radius:999px}.alert,.notice,.message{background:var(--bg-elevado)!important;color:var(--texto)!important;border-color:var(--aviso)!important}
.bar,.progress,.progress-track{background:#263158!important}.bar i,.progress-fill{background:var(--acento)!important}
.gateway-toolbar{position:relative;z-index:100;display:flex!important;align-items:center;gap:12px;flex-wrap:wrap;width:min(1180px,calc(100% - 32px));margin:12px auto 16px!important;padding:10px 14px!important;background:var(--bg-elevado)!important;border:1px solid var(--borda)!important;border-radius:var(--raio-md)!important;box-shadow:var(--sombra-card)!important;color:var(--texto)!important;font:14px Montserrat,Arial,sans-serif!important}.gateway-brand{display:flex;align-items:center;gap:9px;color:var(--texto)!important;text-decoration:none;font-weight:700;white-space:nowrap}.gateway-brand img{display:block!important;width:34px!important;height:34px!important;border-radius:9px;object-fit:cover;flex:none}.gateway-brand small{display:block;color:var(--texto-suave)!important;font-size:11px}.gateway-toolbar .module-menu{position:relative;margin-left:auto}.gateway-toolbar .module-menu summary{display:flex;align-items:center;min-height:44px;padding:0 14px;border:1px solid var(--acento);border-radius:10px;color:var(--acento);font-weight:700;cursor:pointer;list-style:none}.gateway-toolbar .module-menu summary::-webkit-details-marker{display:none}.gateway-toolbar .module-menu nav{display:none;position:absolute;z-index:200;top:calc(100% + 8px);right:0;min-width:220px;max-height:70vh;overflow:auto;padding:8px;background:var(--bg-elevado);border:1px solid var(--borda);border-radius:12px;box-shadow:var(--sombra-card)}.gateway-toolbar .module-menu[open] nav{display:grid;gap:4px}.gateway-toolbar .module-menu nav a{display:block;min-height:44px;padding:11px 12px;border:1px solid transparent;border-radius:9px;background:var(--card)!important;color:var(--texto)!important;text-decoration:none;font-size:13px;font-weight:600}.gateway-toolbar .module-menu nav a:hover{background:var(--bg)!important;border-color:var(--acento)}.gateway-toolbar .module-menu nav a:focus-visible{background:var(--card)!important;border-color:var(--foco);outline:3px solid var(--foco)!important;outline-offset:2px!important}.gateway-toolbar .module-menu nav a.locked{opacity:1;color:var(--texto-suave)!important}.gateway-toolbar form{margin:0}.gateway-toolbar form button{min-height:44px;padding:0 14px;border:1px solid var(--borda);border-radius:10px;background:transparent;color:var(--texto-suave);font:600 14px Montserrat,Arial,sans-serif;cursor:pointer}
.identity-page{min-height:100vh;background:var(--bg);color:var(--texto);font-family:Montserrat,Arial,sans-serif}.identity-page .page,.identity-page .card{background:var(--bg-elevado);color:var(--texto);border:1px solid var(--borda);border-radius:var(--raio-lg);box-shadow:var(--sombra-card)}.identity-page .brand .name,.identity-page h1{font-family:Montserrat,Arial,sans-serif;color:var(--texto);background:none}.identity-page .brand .name{font-weight:700}.identity-page input{background:#0B1232;color:var(--texto);border:1px solid var(--borda)}.identity-page button,.identity-page .action-link{background:var(--primaria);color:var(--primaria-texto);border-radius:12px;font-family:Montserrat,Arial,sans-serif}.identity-page .action-secondary{background:transparent;color:var(--acento);border:1px solid var(--acento)}
.app-portal,.app-message{min-height:100vh;background:var(--bg)!important;color:var(--texto)!important;font-family:Montserrat,Arial,sans-serif!important}.app-portal .page{width:min(1120px,calc(100% - 32px));margin:auto;padding:20px 0 48px}.app-portal .top{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.app-portal .brand{color:var(--texto);font-weight:700}.app-portal .brand img{display:none}.app-portal .top button{background:transparent;color:var(--texto-suave);border:1px solid var(--borda);border-radius:10px;padding:10px 14px}.app-portal .intro h1{font-size:clamp(24px,4vw,34px)}.app-portal .intro p,.app-portal .module-copy p,.app-portal .validity{color:var(--texto-suave)}.app-portal .cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.app-portal .module-card{position:relative;display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:14px;align-items:center;padding:20px;background:var(--card);border:1px solid var(--borda);border-radius:var(--raio-md);box-shadow:var(--sombra-card)}.app-portal .module-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:12px;background:var(--bg-elevado);font-size:24px}.app-portal .module-copy h2{font-size:18px;margin:0 0 4px}.app-portal .module-copy p{margin:0}.app-portal .module-card.locked{grid-template-columns:minmax(0,1fr);max-width:680px;margin-inline:auto;opacity:1}.app-portal .module-card.locked h1{font-size:clamp(22px,4vw,30px);margin:0 0 8px}.app-portal .module-card .action{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;border:1px solid var(--primaria);border-radius:10px;background:var(--primaria);color:var(--primaria-texto);text-decoration:none;font-weight:700}.app-portal .module-card .action.secondary{background:transparent;border-color:var(--texto-suave);color:var(--texto)}
.app-message .card{max-width:620px;margin:10vh auto;padding:28px;background:var(--bg-elevado);border:1px solid var(--borda);border-radius:var(--raio-lg);box-shadow:var(--sombra-card)}.app-message .actions{display:flex;gap:12px;flex-wrap:wrap}.app-message .action{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;border-radius:10px;background:var(--primaria);color:var(--primaria-texto);text-decoration:none}.app-message .action.secondary{background:transparent;color:var(--acento);border:1px solid var(--acento)}
.owl-guide{display:block;width:min(220px,48vw);height:auto;margin:12px auto}.owl-guide.welcome{width:min(260px,55vw)}
@media(max-width:650px){.gateway-toolbar{width:calc(100% - 20px);margin:10px auto 12px!important;padding:9px 10px!important;gap:8px}.gateway-toolbar .gateway-brand{margin-right:auto}.gateway-toolbar .module-menu{margin-left:auto}.gateway-toolbar .module-menu summary{padding:0 10px;font-size:13px}.gateway-toolbar form button{padding:0 10px}.app-portal .cards{grid-template-columns:1fr}.app-portal .module-card{grid-template-columns:42px minmax(0,1fr);padding:16px}.app-portal .module-card .action{grid-column:1/-1}.app-message .card{margin:7vh 12px;padding:22px 18px}}
@media(max-width:650px){.gateway-toolbar{flex-wrap:nowrap!important;gap:8px!important}.gateway-toolbar .gateway-brand{width:auto!important;min-width:0;flex:1 1 auto;margin-right:0!important}.gateway-toolbar .gateway-brand>span{overflow:visible;text-overflow:clip;white-space:nowrap}.gateway-toolbar .module-menu{flex:0 0 auto;margin-left:0!important}.gateway-toolbar form{flex:0 0 auto}.gateway-toolbar .module-menu summary{padding:0 9px;font-size:12px;white-space:nowrap}.gateway-toolbar form button{padding:0 9px;font-size:12px;white-space:nowrap}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}

body[data-module-key="cronofoco"] .topbar>.brand{display:none!important}body[data-module-key="cronofoco"] .topbar{display:block!important;margin:0 0 16px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
body[data-module-key="idiomas"] .appbar .logo{display:none!important}

.welcome-empty{display:grid;justify-items:center;text-align:center;padding:20px!important;background:var(--bg-elevado)!important;border:1px solid var(--borda);border-radius:var(--raio-md);font-weight:600}.welcome-empty p{font-size:18px;color:var(--texto)}#mainWrap>.gateway-toolbar~.topbar>.brand{display:none!important}

.app-portal .module-card[data-module="cronofoco"]{border-left:4px solid var(--acento)}.app-portal .module-card[data-module="concursos"]{border-left:4px solid var(--mod-concursos)}.app-portal .module-card[data-module="vestibulares"]{border-left:4px solid var(--mod-vestibulares)}.app-portal .module-card[data-module="passatempos"]{border-left:4px solid var(--mod-passatempos)}.app-portal .module-card[data-module="idiomas"]{border-left:4px solid var(--mod-idiomas)}
.profile-lead{max-width:780px;color:var(--texto-suave);font-size:16px;line-height:1.65}.profile-section{margin:20px 0;padding:20px;background:var(--card);border:1px solid var(--borda);border-radius:var(--raio-md);box-shadow:var(--sombra-card)}.profile-section h3{margin:0 0 14px;font-size:20px}.profile-section p{line-height:1.6}.profile-rights{display:flex;flex-wrap:wrap;gap:8px 24px;padding-left:22px;color:var(--texto-suave)}.profile-rights li{padding:3px 0}.profile-button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 16px;border:1px solid var(--primaria);border-radius:12px;background:var(--primaria);color:var(--primaria-texto)!important;font:600 14px Montserrat,Arial,sans-serif;text-decoration:none;cursor:pointer}.profile-button.secondary{border-color:var(--acento);background:transparent;color:var(--acento)!important}.profile-button.danger{border-color:var(--erro);background:transparent;color:var(--erro)!important}.profile-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.profile-metric{display:grid;align-content:center;gap:8px;min-height:92px;padding:14px;background:var(--bg-elevado);border:1px solid var(--borda);border-radius:12px}.profile-metric small{color:var(--texto-suave);line-height:1.35}.profile-metric strong{font-size:18px}.profile-empty{padding:18px;text-align:center;background:var(--bg-elevado);border-radius:12px;font-weight:600}.profile-tone-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.profile-tone{display:flex;align-items:flex-start;gap:12px;padding:14px;background:var(--bg-elevado);border:1px solid var(--borda);border-radius:12px;cursor:pointer}.profile-tone:has(input:checked){border-color:var(--acento);box-shadow:0 0 0 1px var(--acento)}.profile-tone input{flex:0 0 20px;width:20px;height:20px;margin:2px 0;accent-color:var(--primaria)}.profile-tone-copy{display:grid;gap:6px}.profile-tone-copy small,.profile-tone-copy em{color:var(--texto-suave);font-size:13px;line-height:1.45}.profile-tone-copy em{font-style:normal}.profile-note,.profile-status{color:var(--texto-suave);font-size:14px}.profile-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.profile-logout{margin:24px 0}.profile-logout button{min-width:180px}
@media(max-width:760px){.profile-section{padding:16px}.profile-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-tone-list{grid-template-columns:1fr}.profile-actions>.profile-button{width:100%}.profile-logout .profile-button{width:100%}}

.gateway-toolbar .module-menu{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important}

/* Shared content frame: align all module bodies with the gateway header. */
body[data-module-key="cronofoco"] #mainWrap{width:min(1180px,calc(100% - 32px));max-width:1180px;margin-left:auto!important;margin-right:auto!important}
body[data-module-key="idiomas"] .wrap{width:min(1180px,calc(100% - 32px));max-width:1180px}
body[data-module-key="concursos"] .shell,body[data-module-key="vestibulares"] .shell{width:min(1180px,calc(100% - 32px));max-width:1180px}
body[data-module-key="passatempos"] .module-content,body[data-module-key="passatempos"] .wrap{width:min(1180px,calc(100% - 32px));max-width:1180px}

/* Persisted user theme. The default remains dark; the public free Check-up is isolated. */
:root[data-theme="dark"]{--bg:#060A24;--bg-elevado:#0D1438;--card:#111B45;--borda:#28366D;--texto:#FFFFFF;--texto-suave:#C2CAE5;--primaria:#A3E635;--primaria-texto:#10172F;--acento:#22D3EE;--sucesso:#A3E635;--erro:#FB7185;--aviso:#FBBF24;--foco:#67E8F9;--surface:var(--card);--surface-2:var(--bg-elevado);--ink:var(--texto);--ink-muted:var(--texto-suave);--border:var(--borda);--line:var(--borda);--accent:var(--modulo-acento,var(--acento));--accent-ink:var(--primaria-texto);--muted:var(--texto-suave);color-scheme:dark}
:root[data-theme="light"]{--bg:#F4F6FB;--bg-elevado:#FFFFFF;--card:#FFFFFF;--borda:#D8DFEC;--texto:#10172F;--texto-suave:#4A5578;--primaria:#A3E635;--primaria-texto:#10172F;--acento:#0E7490;--sucesso:#166534;--erro:#BE123C;--aviso:#B45309;--foco:#0891B2;--surface:var(--card);--surface-2:var(--bg-elevado);--ink:var(--texto);--ink-muted:var(--texto-suave);--border:var(--borda);--line:var(--borda);--accent:var(--modulo-acento,var(--acento));--accent-ink:var(--primaria-texto);--accent-soft:#E0F2F1;--muted:var(--texto-suave);color-scheme:light}
html[data-theme="light"],html[data-theme="light"] body{background:var(--bg)!important;color:var(--texto)!important}
:root[data-theme="light"] a{color:#0E7490}
:root[data-theme="light"] .gateway-toolbar,:root[data-theme="light"] .gateway-toolbar .module-menu nav,:root[data-theme="light"] .gateway-toolbar .module-menu nav a,:root[data-theme="light"] .app-portal .module-card,:root[data-theme="light"] .app-message .card,:root[data-theme="light"] .profile-section,:root[data-theme="light"] .profile-metric,:root[data-theme="light"] .profile-tone{background:#FFFFFF!important;color:#10172F!important;border-color:#D8DFEC!important}
:root[data-theme="light"] .gateway-toolbar .gateway-brand,:root[data-theme="light"] .gateway-toolbar .module-menu summary,:root[data-theme="light"] .gateway-toolbar form button,:root[data-theme="light"] .gateway-toolbar .theme-menu summary{color:#10172F!important}
:root[data-theme="light"] .gateway-toolbar .module-menu nav a.locked{color:#4A5578!important}
:root[data-theme="light"] .app-portal .intro p,:root[data-theme="light"] .app-portal .module-copy p,:root[data-theme="light"] .app-portal .validity,:root[data-theme="light"] .profile-lead,:root[data-theme="light"] .profile-note,:root[data-theme="light"] .profile-tone-copy small,:root[data-theme="light"] .profile-tone-copy em{color:#4A5578!important}
:root[data-theme="light"] .app-portal .module-card .action:not(.secondary),:root[data-theme="light"] .profile-button:not(.secondary):not(.danger),:root[data-theme="light"] .action:not(.secondary){background:#A3E635!important;color:#10172F!important;border-color:#A3E635!important}
:root[data-theme="light"] .app-portal .module-card .action.secondary,:root[data-theme="light"] .profile-button.secondary,:root[data-theme="light"] .app-message .action.secondary{background:transparent!important;color:#0E7490!important;border-color:#0E7490!important}
:root[data-theme="light"] body[data-module-key] .panel,:root[data-theme="light"] body[data-module-key] .card,:root[data-theme="light"] body[data-module-key] .module-content,:root[data-theme="light"] body[data-module-key] .module-tabs,:root[data-theme="light"] body[data-module-key] .question-card,:root[data-theme="light"] body[data-module-key] .exercise-card,:root[data-theme="light"] body[data-module-key] .profile-section,:root[data-theme="light"] body[data-module-key] .result-block,:root[data-theme="light"] body[data-module-key] .lang,:root[data-theme="light"] body[data-module-key] .daily,:root[data-theme="light"] body[data-module-key] .today{background:#FFFFFF!important;color:#10172F!important;border-color:#D8DFEC!important}
:root[data-theme="light"] body[data-module-key] h1,:root[data-theme="light"] body[data-module-key] h2,:root[data-theme="light"] body[data-module-key] h3,:root[data-theme="light"] body[data-module-key] h4,:root[data-theme="light"] body[data-module-key] p,:root[data-theme="light"] body[data-module-key] label,:root[data-theme="light"] body[data-module-key] small,:root[data-theme="light"] body[data-module-key] li,:root[data-theme="light"] body[data-module-key] td,:root[data-theme="light"] body[data-module-key] th{color:#10172F}
:root[data-theme="light"] body[data-module-key] .muted,:root[data-theme="light"] body[data-module-key] .hint,:root[data-theme="light"] body[data-module-key] .subtitle,:root[data-theme="light"] body[data-module-key] .description,:root[data-theme="light"] body[data-module-key] .calc-hint,:root[data-theme="light"] body[data-module-key] .last-chip{color:#4A5578!important}
:root[data-theme="light"] body[data-module-key] input,:root[data-theme="light"] body[data-module-key] select,:root[data-theme="light"] body[data-module-key] textarea{background:#FFFFFF!important;color:#10172F!important;border-color:#9AA7BD!important}
:root[data-theme="light"] body[data-module-key] button:not(.primary):not(.btn):not(.action),:root[data-theme="light"] body[data-module-key] .ghost,:root[data-theme="light"] body[data-module-key] .secondary{background:#FFFFFF!important;color:#0E7490!important;border-color:#0E7490!important}
:root[data-theme="light"] body[data-module-key] .btn.primary,:root[data-theme="light"] body[data-module-key] .btn:not(.ghost):not(.secondary),:root[data-theme="light"] body[data-module-key] button.primary{background:#A3E635!important;color:#10172F!important;border-color:#A3E635!important}
:root[data-theme="light"] body[data-module-key] .correct,:root[data-theme="light"] body[data-module-key] .success{color:#166534!important}
:root[data-theme="light"] body[data-module-key] .wrong,:root[data-theme="light"] body[data-module-key] .error{color:#BE123C!important}
:root[data-theme="light"] body[data-module-key="cronofoco"] .stats .home-metric-precision .value,:root[data-theme="light"] body[data-module-key="cronofoco"] nav.tabs button[aria-current="true"]{color:#0E7490!important}
:root[data-theme="light"] body[data-module-key="cronofoco"] .home-next-copy .home-next-meta,:root[data-theme="light"] body[data-module-key="cronofoco"] .home-track-heading>b{color:#0E7490!important}
:root[data-theme="light"] .theme-menu{position:relative;flex:0 0 auto}
:root[data-theme="light"] .theme-menu summary{display:grid;place-items:center;min-width:42px;min-height:42px;padding:0;border:1px solid #D8DFEC;border-radius:10px;cursor:pointer;list-style:none;font-size:20px}
.theme-menu summary::-webkit-details-marker{display:none}
.theme-menu>div{position:absolute;z-index:1000;right:0;top:calc(100% + 8px);display:grid;min-width:180px;padding:6px;background:var(--card);border:1px solid var(--border);border-radius:12px;box-shadow:var(--sombra-card)}
.theme-menu>div button{min-height:42px;padding:8px 12px;text-align:left;background:transparent!important;color:var(--texto)!important;border:0!important;border-radius:8px;cursor:pointer}
.theme-menu>div button:hover,.theme-menu>div button:focus-visible,.theme-menu>div button[aria-pressed="true"]{background:var(--bg-elevado)!important;color:var(--accent)!important}
.gateway-toolbar .theme-menu summary{border-color:var(--borda);color:var(--texto-suave)}
@media(max-width:650px){.gateway-toolbar .theme-menu summary{min-width:38px;min-height:40px}.theme-menu>div{right:0;max-width:calc(100vw - 16px)}}
.theme-choice-list{display:flex;flex-wrap:wrap;gap:9px}.theme-choice-list .profile-button[aria-pressed="true"]{box-shadow:0 0 0 2px var(--accent);font-weight:800}
@media(max-width:650px){.gateway-toolbar{padding:6px 7px!important;gap:4px!important}.gateway-toolbar .gateway-brand{gap:4px!important;flex:0 1 auto!important}.gateway-toolbar .gateway-brand img{width:28px!important;height:28px!important}.gateway-toolbar .gateway-brand>span{font-size:12px!important}.gateway-toolbar .module-menu summary{padding:0 5px!important;font-size:11px!important}.gateway-toolbar .theme-menu summary{min-width:32px!important;width:32px!important;min-height:36px!important;font-size:17px}.gateway-toolbar form button{padding:0 7px!important;font-size:11px!important;min-width:34px}}
:root[data-theme="light"]{--soft:#4A5578;--muted:#4A5578;--cyan:#0E7490;--lime:#A3E635;--bg1:#10172F}
html[data-theme="light"] input,html[data-theme="light"] select,html[data-theme="light"] textarea{background:#FFFFFF!important;color:#10172F!important;border-color:#9AA7BD!important}
html[data-theme="light"] body[data-module-key] a.button{color:#10172F!important}
html[data-theme="light"][data-module-key="cronofoco"] .card.locked{opacity:1!important;background:#F4F6FB!important;color:#4A5578!important}
html[data-theme="light"][data-module-key="cronofoco"] .card.locked h3,html[data-theme="light"][data-module-key="cronofoco"] .card.locked p,html[data-theme="light"][data-module-key="cronofoco"] .card.locked .lock-req{color:#4A5578!important}
html[data-theme="light"][data-module-key="cronofoco"] .stats .home-metric-precision .value,html[data-theme="light"][data-module-key="cronofoco"] nav.tabs button[aria-current="true"],html[data-theme="light"][data-module-key="cronofoco"] .home-next-copy .home-next-meta,html[data-theme="light"][data-module-key="cronofoco"] .home-track-heading>b{color:#0E7490!important}
.theme-menu summary{list-style:none}.theme-menu summary::marker{content:""}
@media(max-width:650px){.gateway-toolbar .gateway-brand{flex:0 0 auto!important;margin-right:4px!important}.gateway-toolbar .gateway-brand>span{font-size:11px!important}.gateway-toolbar .module-menu summary{padding:0 3px!important;font-size:10px!important}.gateway-toolbar .theme-menu summary{min-width:30px!important;width:30px!important}.gateway-toolbar form button{min-width:32px;padding:0 6px!important}}
html[data-theme="light"] input::placeholder,html[data-theme="light"] textarea::placeholder{color:#4A5578!important;opacity:1}
html[data-theme="light"] button:disabled,html[data-theme="light"] [disabled]{background:#E9EEF6!important;color:#4A5578!important;border-color:#D8DFEC!important}
html[data-theme="light"] .app-portal .module-card.locked{opacity:1!important;background:#F4F6FB!important}
html[data-theme="light"] .app-portal .module-card.locked .module-copy h2,html[data-theme="light"] .app-portal .module-card.locked .module-copy p,html[data-theme="light"] .app-portal .module-card.locked .validity{color:#4A5578!important}
.gateway-toolbar .theme-menu summary{display:grid;place-items:center;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;border-radius:12px;cursor:pointer}
.theme-icon{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html[data-theme="dark"] .theme-icon.sun,html[data-theme="light"] .theme-icon.moon{display:none}
html[data-theme="dark"] .theme-icon.moon,html[data-theme="light"] .theme-icon.sun{display:block}
@media(max-width:650px){.gateway-toolbar .theme-menu summary{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important}}
body[data-module-key="cronofoco"] .gateway-toolbar{width:min(960px,100%)!important}
body[data-module-key="concursos"] .gateway-toolbar,body[data-module-key="vestibulares"] .gateway-toolbar{width:min(888px,calc(100% - 20px))!important}
body[data-module-key="idiomas"] .gateway-toolbar{width:min(780px,100%)!important}
body[data-module-key="passatempos"] .gateway-toolbar{width:min(528px,calc(100% - 32px))!important}
body[data-module-key="portal"] .gateway-toolbar{width:min(1120px,calc(100% - 32px))!important}
:where(.answer-label){display:block;font-size:.78rem;line-height:1.25;font-weight:700;margin-top:4px}

.idioma-scope-notice{width:min(1180px,calc(100% - 28px));margin:8px auto;padding:10px 14px;border:1px solid var(--borda);border-radius:12px;background:var(--card);color:var(--texto-suave);font:600 .9rem Montserrat,sans-serif}.idioma-scope-notice a{color:var(--primaria);white-space:nowrap}
body[data-module-key="passatempos"] .gateway-toolbar{width:min(560px,calc(100% - 32px));margin-inline:auto}
body[data-module-key="concursos"] .option-chip,body[data-module-key="vestibulares"] .option-chip{background:var(--card)!important;color:var(--texto)!important;border-color:var(--borda)!important}
body[data-module-key="vestibulares"] .btn:not(.secondary):not(.ghost){background:var(--primaria)!important;color:var(--primaria-texto)!important}

/* Contraste WCAG AA: paleta clara única para superfícies e textos do app. */
:root[data-theme="light"]{--bg:#F4F6FB;--bg-elevado:#E9EEF6;--card:#FFFFFF;--borda:#CBD5E1;--texto:#10172F;--texto-suave:#334155;--primaria:#A3E635;--primaria-texto:#10172F;--acento:#0E7490;--sucesso:#166534;--erro:#9F1239;--aviso:#92400E;--foco:#0E7490;--mod-concursos:#0E7490;--mod-vestibulares:#9A3412;--mod-passatempos:#9D174D;--mod-idiomas:#0F766E;--accent:#0E7490;--muted:#334155;--soft:#334155;--cyan:#0E7490;color-scheme:light}
html[data-theme="light"] body[data-module-key]{background:#F4F6FB!important;color:#10172F!important}
html[data-theme="light"] body[data-module-key] :is(h1,h2,h3,h4,p,small,label,li,td,th,strong,b,em,span,legend,summary){color:#10172F}
html[data-theme="light"] body[data-module-key] :is(.muted,.hint,.subtitle,.description,.calc-hint,.last-chip,.profile-note,.profile-status,.validity,.discover-card p,.home-next-meta){color:#334155!important}
html[data-theme="light"] body[data-module-key] :is(.panel,.card,.module-card,.module-content,.module-tabs,.question-card,.exercise-card,.profile-section,.result-block,.lang,.daily,.today,.item-card,.memory-card,.playing-card,.playing-card-back,.symbol-cell,.symbol-grid,.game-board,.game-panel,.feedback,.answer-feedback,.discover-card,.discover-item){background-color:#FFFFFF!important;color:#10172F!important;border-color:#CBD5E1!important}
html[data-theme="light"] body[data-module-key] :is(input,select,textarea){background:#FFFFFF!important;color:#10172F!important;border-color:#64748B!important}
html[data-theme="light"] body[data-module-key] :is(input,select,textarea)::placeholder{color:#475569!important;opacity:1}
html[data-theme="light"] body[data-module-key] :is(a,.link,.crumb,.tip-back,.btn.ghost,.btn.secondary,button.secondary,.action.secondary,.profile-button.secondary){color:#0E7490!important}
html[data-theme="light"] body[data-module-key] :is(.btn.primary,.btn:not(.ghost):not(.secondary):not(.warn),button.primary,.action:not(.secondary),.profile-button:not(.secondary):not(.danger)){background:#A3E635!important;color:#10172F!important;border-color:#A3E635!important}
html[data-theme="light"] body[data-module-key] :is(button:not(.primary):not(.btn):not(.action),.ghost,.secondary){background:#FFFFFF!important;color:#0E7490!important;border-color:#0E7490!important}
html[data-theme="light"] body[data-module-key] :is(.correct,.success,.right,.answer-correct){color:#166534!important}
html[data-theme="light"] body[data-module-key] :is(.wrong,.error,.incorrect,.answer-wrong){color:#9F1239!important}
html[data-theme="light"] body[data-module-key] .checkup-result-card{background:radial-gradient(ellipse at 20% 0%,#26356e 0,transparent 54%),radial-gradient(ellipse at 90% 100%,#322068 0,transparent 54%),#060A24!important;color:#FFFFFF!important;border-color:#28366D!important}
html[data-theme="light"] body[data-module-key] .checkup-result-card :is(small,strong,b,p,footer){color:#FFFFFF!important}
html[data-theme="light"] body[data-module-key] .checkup-result-card small{color:#67E8F9!important}
html[data-theme="light"] body[data-module-key] .checkup-result-card span{color:#A3E635!important}
html[data-theme="light"] body[data-module-key] .checkup-card-preview{background:linear-gradient(150deg,#060A24,#1E105C)!important;color:#FFFFFF!important}
html[data-theme="light"] body[data-module-key] .checkup-card-preview :is(small,footer){color:#FFFFFF!important}
html[data-theme="light"] body[data-module-key] .checkup-card-preview strong{color:#A3E635!important}
html[data-theme="light"] body[data-module-key] .checkup-card-preview-tag{background:#A3E635!important;color:#10172F!important}
html[data-theme="light"] body[data-module-key="concursos"] :is(.feedback,.answer-feedback,.result-feedback,.correct-answer,.wrong-answer){background:#FFFFFF!important;color:#10172F!important;border-color:#CBD5E1!important}
html[data-theme="light"] body[data-module-key="vestibulares"] :is(.feedback,.answer-feedback,.result-feedback,.correct-answer,.wrong-answer){background:#FFFFFF!important;color:#10172F!important;border-color:#CBD5E1!important}
html[data-theme="light"] body[data-module-key="cronofoco"] .card.locked,:root[data-theme="light"] .app-portal .module-card.locked{background:#F4F6FB!important;color:#334155!important}
html[data-theme="light"] body[data-module-key="cronofoco"] .card.locked :is(h2,h3,p,small,.lock-req),:root[data-theme="light"] .app-portal .module-card.locked :is(h2,h3,p,small,.validity){color:#334155!important}
html[data-theme="light"] body[data-module-key="cronofoco"] .stats .home-metric-precision .value,html[data-theme="light"] body[data-module-key="cronofoco"] nav.tabs button[aria-current="true"]{color:#0E7490!important}

/* O tema escuro mantém a data de acesso e a seção de descoberta legíveis. */
html[data-theme="dark"] .app-portal .module-card .validity{color:#C2CAE5!important}
html[data-theme="dark"] .app-portal #discover h2,html[data-theme="dark"] .app-portal #discover h3,html[data-theme="dark"] .app-portal #discover .module-copy,:root[data-theme="dark"] .app-portal #discover .module-copy h2,:root[data-theme="dark"] .app-portal #discover .module-copy p{color:#FFFFFF!important}

/* Cronofoco não usa data-module-key no body; suas telas também recebem a paleta clara. */
html[data-theme="light"] body :is(.panel,.card,.result-block,.question-card,.exercise-card,.profile-section,.result,.stats .stat,.home-greeting,.home-track,.home-next,.home-empty-note,.checkup-test-row,.checkup-score,.checkup-provisional,.checkup-history,.checkup-confidence-label,.numpad,.upcoming-box){background-color:#FFFFFF!important;color:#10172F!important;border-color:#CBD5E1!important}
html[data-theme="light"] body :is(h1,h2,h3,h4,p,small,label,li,td,th,strong,b,em,span,legend,summary,.lead,.calc-hint,.home-greeting-sub,.home-track-heading,.track-label,.metric-title,.label,.stats .stat .label){color:#10172F}
html[data-theme="light"] body :is(.muted,.hint,.subtitle,.description,.profile-note,.profile-status,.home-empty-note,.checkup-provisional,.calc-hint,.stats .stat .label){color:#334155!important}
html[data-theme="light"] body :is(.numpad button,.checkup-choice-grid button,.checkup-figure-grid button,.option-chip,.field,select,input,textarea){background:#FFFFFF!important;color:#10172F!important;border-color:#64748B!important}
html[data-theme="light"] body :is(.numpad button.numpad-confirm,.btn.lime,.btn.primary,button.primary){background:#A3E635!important;color:#10172F!important;border-color:#A3E635!important}
html[data-theme="light"] body .checkup-result-card{background:radial-gradient(ellipse at 20% 0%,#26356e 0,transparent 54%),radial-gradient(ellipse at 90% 100%,#322068 0,transparent 54%),#060A24!important;color:#FFFFFF!important;border-color:#28366D!important}
html[data-theme="light"] body .checkup-result-card :is(small,strong,b,p,footer){color:#FFFFFF!important}
html[data-theme="light"] body .checkup-result-card small{color:#67E8F9!important}
html[data-theme="light"] body .checkup-result-card span{color:#A3E635!important}
html[data-theme="light"] body .home-greeting .home-eyebrow,html[data-theme="light"] body .stats .stat .value,html[data-theme="light"] body .home-track-heading>b{color:#0E7490!important}
html[data-theme="light"] body[data-module-key="passatempos"] .game-card .ico{background:#E9EEF6!important;color:#0E7490!important}
html[data-theme="light"] body[data-module-key="passatempos"] .target{color:#10172F!important}
html[data-theme="light"] body[data-module-key="passatempos"] .ops button,html[data-theme="light"] body[data-module-key="passatempos"] .ops.wait button{background:#FFFFFF!important;color:#0E7490!important;border:1px solid #0E7490!important;opacity:1!important}
html[data-theme="light"] body[data-module-key="passatempos"] .sl-mini i{color:#FFFFFF}
html[data-theme="light"] body[data-module-key="passatempos"] .sl-mini i.e{background:transparent!important;color:#10172F!important}
html[data-theme="light"] body[data-module-key="passatempos"] :is(.ps-cell,.ps-legend,.ps-tema,.ps-pista,.memory-card,.playing-card,.card-back,.nonogram-cell,.sudoku-cell,.cw-cell,.ws-cell){color:#10172F}
html[data-theme="light"] body[data-module-key="passatempos"] :is(.ps-legend,.ps-tema,.ps-pista,.memory-card,.playing-card,.card-back,.nonogram-cell,.sudoku-cell){background-color:#FFFFFF!important;border-color:#CBD5E1!important}
/* Jogos legados mantêm as cores próprias de cada estado; não neutralizar casas nem seleção. */
html[data-theme="light"] body[data-module-key="passatempos"] .cw-cell:not(.cw-block):not(.on){background-color:#FFFFFF;border-color:#CBD5E1}
html[data-theme="light"] body[data-module-key="passatempos"] .cw-cell.cw-block{background-color:#060A24;border-color:#060A24}
html[data-theme="light"] body[data-module-key="passatempos"] .cw-cell.on{background-color:#CCFBF1;border-color:#0E7490}
html[data-theme="light"] body[data-module-key="passatempos"] .cw-cell.cur{box-shadow:inset 0 0 0 2px #0E7490}
html[data-theme="light"] body[data-module-key="passatempos"] .ws-cell:not(.sel):not(.found):not(.miss):not(.revealed){background-color:#FFFFFF;border-color:#CBD5E1}
html[data-theme="light"] body[data-module-key="passatempos"] .ws-cell.sel{background-color:#0E7490!important;color:#FFFFFF!important}
html[data-theme="light"] body[data-module-key="passatempos"] .ws-cell.miss{background-color:#FCE7F3;color:#881337}
html[data-theme="light"] body[data-module-key="passatempos"] .ws-cell.revealed{color:#BE123C;outline-color:#BE123C}
html[data-theme="light"] body[data-module-key="passatempos"] .ps-cell.c-x{background-color:#475569!important;color:#FFFFFF!important}
html[data-theme="light"] body[data-module-key="passatempos"] .ps-cell.c-g,html[data-theme="light"] body[data-module-key="passatempos"] .ps-cell.c-y{color:#10172F!important}
html[data-theme="light"] body[data-module-key="passatempos"] .sl-board button:not(.empty){color:#FFFFFF!important}
html[data-theme="light"] body[data-module-key="passatempos"] .sl-board button:not(.empty){background-color:#334155!important}
html[data-theme="light"] body[data-module-key="passatempos"] .sl-board button.empty{background:#FFFFFF!important;color:#10172F!important}
html[data-theme="light"] body[data-module-key="passatempos"] .nono{background:#FFFFFF!important}
html[data-theme="light"] body[data-module-key="passatempos"] .nono .cell{background:#E9EEF6!important;border-color:#64748B!important}
html[data-theme="light"] body[data-module-key="passatempos"] .nono .cell.on{background:#0E7490!important}
html[data-theme="light"] body[data-module-key="passatempos"] .nono .cell.x{background-color:#E9EEF6!important}
html[data-theme="light"] body[data-module-key="passatempos"] .card.down{background:repeating-linear-gradient(45deg,rgba(255,255,255,.16) 0 1px,transparent 1px 6px),linear-gradient(145deg,#4F46E5,#1E1B6B)!important;border:2px solid #263158!important;box-shadow:0 1px 1px rgba(0,0,0,.28),0 2px 5px rgba(0,0,0,.22)!important}
html[data-theme="light"] body[data-module-key="concursos"] .image-caption,html[data-theme="light"] body[data-module-key="vestibulares"] .image-caption,html[data-theme="dark"] body[data-module-key="concursos"] .image-caption,html[data-theme="dark"] body[data-module-key="vestibulares"] .image-caption{color:#10172F!important;background:#FFFFFF!important}
body.app-showcase a.buy{color:#10172F!important}
html[data-theme="light"] body[data-module-key="concursos"] .title-actions a.button{background:#A3E635!important;color:#10172F!important;border-color:#A3E635!important}

/* Rodada 2B: um mesmo quadro de conteúdo e cabeçalho nos cinco módulos. */
body[data-module-key="cronofoco"] .gateway-toolbar,body[data-module-key="idiomas"] .gateway-toolbar,body[data-module-key="concursos"] .gateway-toolbar,body[data-module-key="vestibulares"] .gateway-toolbar,body[data-module-key="passatempos"] .gateway-toolbar{width:min(1100px,calc(100% - 32px))!important;margin-inline:auto!important}
body[data-module-key="cronofoco"] .gateway-toolbar{width:100%!important}
body[data-module-key="cronofoco"] #mainWrap{width:min(1100px,calc(100% - 32px))!important;max-width:1100px!important;margin-inline:auto!important}
body[data-module-key="idiomas"] .wrap,body[data-module-key="concursos"] .shell,body[data-module-key="vestibulares"] .shell{width:min(1100px,calc(100% - 32px))!important;max-width:1100px!important;margin-inline:auto!important}
:root body[data-module-key="passatempos"] .module-content.module-content{width:min(1100px,calc(100% - 32px))!important;max-width:1100px!important;margin-inline:auto!important;padding:0!important}
body[data-module-key="passatempos"] .wrap{width:100%!important;max-width:none!important;padding-inline:0!important}

/* A grade de métricas do resultado continua legível e sem cortes em celulares. */
@media(max-width:600px){
  body[data-module-key="cronofoco"] .result-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px;margin:14px 0 20px}
  body[data-module-key="cronofoco"] .result-metrics .m{min-width:0;padding:10px 7px;overflow-wrap:anywhere}
  body[data-module-key="cronofoco"] .result-metrics .m .v{font-size:1.15rem;line-height:1.25;overflow-wrap:anywhere}
  body[data-module-key="cronofoco"] .result-metrics .m .l{font-size:.7rem;letter-spacing:.035em;overflow-wrap:anywhere}
  body[data-module-key="cronofoco"] .home-shortcut{min-width:0;gap:7px;padding-inline:9px}
  body[data-module-key="cronofoco"] .home-shortcut img{flex:0 0 30px;width:30px;height:30px}
  body[data-module-key="cronofoco"] .home-shortcut span{min-width:0;max-width:100%;font-size:.9rem;line-height:1.2;overflow-wrap:anywhere}
}

/* A Trilha aparece como terceiro card/atalho comum, sem sublinhado de link. */
body[data-module-key="concursos"] .title-actions .button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 14px;border:1px solid var(--borda);border-radius:12px;background:var(--card);color:var(--texto)!important;text-decoration:none;font-weight:700;white-space:normal}
@media(max-width:600px){body[data-module-key="concursos"] .title-actions .button{align-self:stretch;width:100%}}
@media(max-width:600px){body[data-module-key="concursos"] .module-tabs{display:flex;flex-wrap:nowrap;gap:4px;overflow-x:auto}body[data-module-key="concursos"] .module-tabs button{flex:0 0 auto;padding-inline:8px;font-size:12px;white-space:nowrap}}

/* Voltar usa o mesmo botão tátil em Dicas e nas telas de Idiomas. */
body[data-module-key="cronofoco"] .tip-back{min-height:44px;padding:8px 12px;border:1px solid var(--borda);border-radius:10px;background:var(--card);color:var(--texto)!important;font:600 .9rem Montserrat,Arial,sans-serif}
body[data-module-key="idiomas"] .crumb{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;border:1px solid var(--borda);border-radius:10px;background:var(--card)!important;color:var(--texto)!important;text-decoration:none}
body[data-module-key="cronofoco"] .voice-recorded-notice{margin:0 0 12px;padding:12px 14px;border:1px solid var(--sucesso);border-radius:12px;background:var(--card);color:var(--sucesso);font-weight:700}

/* Ajuste de largura G1/G2/G4/G5/G6 limitado a telas estreitas. */
@media(max-width:650px){
  body[data-module-key="cronofoco"] #mainWrap,
  body[data-module-key="idiomas"] .wrap,
  body[data-module-key="concursos"] .shell,
  body[data-module-key="vestibulares"] .shell{width:calc(100vw - 32px)!important;max-width:1100px!important;box-sizing:border-box!important;margin-left:auto!important;margin-right:auto!important}
  body[data-module-key="cronofoco"] #mainWrap,
  body[data-module-key="idiomas"] .wrap,
  body[data-module-key="concursos"] .shell,
  body[data-module-key="vestibulares"] .shell{position:relative!important;left:50%!important;transform:translateX(-50%)!important;margin-left:0!important;margin-right:0!important}
  body[data-module-key="concursos"] .shell,
  body[data-module-key="vestibulares"] .shell{padding-left:0!important;padding-right:0!important}
  body[data-module-key="idiomas"] .gateway-toolbar{width:calc(100vw - 32px)!important;max-width:1100px!important;box-sizing:border-box!important;position:relative!important;left:50%!important;transform:translateX(-50%)!important;margin-left:0!important;margin-right:0!important}
  body[data-module-key="passatempos"] .ws-grid{position:relative;left:50%;transform:translateX(-50%);width:calc(100vw - 32px)!important;max-width:calc(100vw - 32px)!important;gap:0!important;border:0!important}
  body[data-module-key="passatempos"] .ws-cell{box-shadow:inset 0 0 0 1px var(--border)}
  body[data-module-key="passatempos"] .cw-grid{position:relative;left:50%;transform:translateX(-50%);flex:0 0 calc(100vw - 32px)!important;width:calc(100vw - 32px)!important;max-width:calc(100vw - 32px)!important;gap:0!important;padding:0!important}
  body[data-module-key="passatempos"] .cw-cell{box-shadow:none!important;border:1px solid #0E7490!important}
  body[data-module-key="passatempos"] .cw-cell .cw-input{inset:1px!important;width:calc(100% - 2px)!important;height:calc(100% - 2px)!important}
  html[data-theme="dark"] body[data-module-key="passatempos"] .cw-cell.on{background-color:#CCFBF1!important;color:#10172F!important}
  html[data-theme="dark"] body[data-module-key="passatempos"] .cw-cell.on .cw-input{color:#10172F!important}
}

body[data-module-key="passatempos"] .cw-cell.cur{box-shadow:inset 0 0 0 3px #0E7490!important;border-color:#0E7490!important}

/* Seleções explicitamente marcadas nos grupos de opções auditados. */
:where(body[data-module-key="cronofoco"]) .followball-starts button[aria-pressed="true"],
:where(body[data-module-key="cronofoco"]) .duration-picker button[aria-pressed="true"],
:where(body[data-module-key="cronofoco"]) .mode-picker button[aria-pressed="true"],
:where(body[data-module-key="cronofoco"]) .option-list button[aria-pressed="true"],
:where(body[data-module-key="cronofoco"]) .checkup-choice-grid button[aria-pressed="true"],
:where(body[data-module-key="cronofoco"]) .checkup-figure-grid button[aria-pressed="true"],
:where(body[data-module-key="concursos"]) .module-tabs button[aria-pressed="true"],
:where(body[data-module-key="vestibulares"]) .module-tabs button[aria-pressed="true"],
:where(body[data-module-key="concursos"]) .rlm-count-picker button[aria-pressed="true"],
:where(body[data-module-key="concursos"]) .rlm-chip[aria-pressed="true"]{
  border:2px solid var(--accent)!important;box-shadow:inset 0 0 0 1px var(--accent)!important;font-weight:800!important;position:relative
}
:where(body[data-module-key="cronofoco"]) .followball-starts button[aria-pressed="true"]::before,
:where(body[data-module-key="cronofoco"]) .duration-picker button[aria-pressed="true"]::before,
:where(body[data-module-key="cronofoco"]) .mode-picker button[aria-pressed="true"]::before,
:where(body[data-module-key="cronofoco"]) .checkup-choice-grid button[aria-pressed="true"]::before,
:where(body[data-module-key="cronofoco"]) .checkup-figure-grid button[aria-pressed="true"]::before,
:where(body[data-module-key="concursos"]) .module-tabs button[aria-pressed="true"]::before,
:where(body[data-module-key="vestibulares"]) .module-tabs button[aria-pressed="true"]::before{content:"✓ ";font-weight:900}
:where(body[data-module-key="passatempos"]) .seg button[aria-pressed="true"],
:where(body[data-module-key="passatempos"]) .modebar button[aria-pressed="true"],
:where(body[data-module-key="passatempos"]) .legacy-choice button[aria-pressed="true"],
:where(body[data-module-key="passatempos"]) .mode-picker button[aria-pressed="true"],
:where(body[data-module-key="passatempos"]) .duration-picker button[aria-pressed="true"]{
  background:#A3E635!important;color:#10172F!important;border:2px solid #0E7490!important;box-shadow:inset 0 0 0 1px #0E7490!important;font-weight:800!important
}
:where(body[data-module-key="passatempos"]) .seg button[aria-pressed="true"]::before,
:where(body[data-module-key="passatempos"]) .modebar button[aria-pressed="true"]::before,
:where(body[data-module-key="passatempos"]) .legacy-choice button[aria-pressed="true"]::before,
:where(body[data-module-key="passatempos"]) .mode-picker button[aria-pressed="true"]::before,
:where(body[data-module-key="passatempos"]) .duration-picker button[aria-pressed="true"]::before{content:"✓ ";font-weight:900;color:#10172F}
:where(body[data-module-key="passatempos"]) .modebar button[data-m="x"][aria-pressed="true"]{background:#FB923C!important}
html[data-theme="light"] body[data-module-key="passatempos"] .seg button[aria-pressed="true"],
html[data-theme="light"] body[data-module-key="passatempos"] .modebar button[aria-pressed="true"],
html[data-theme="light"] body[data-module-key="passatempos"] .legacy-choice button[aria-pressed="true"],
html[data-theme="light"] body[data-module-key="passatempos"] .mode-picker button[aria-pressed="true"],
html[data-theme="light"] body[data-module-key="passatempos"] .duration-picker button[aria-pressed="true"]{background:#A3E635!important;color:#10172F!important;border-color:#0E7490!important}
html[data-theme="light"] body[data-module-key="passatempos"] .setup-actions button.lime:not(.primary):not(.btn):not(.action){background:#A3E635!important;color:#10172F!important;border-color:#A3E635!important}
html[data-theme="light"] body[data-module-key="passatempos"] .modebar button[data-m="x"][aria-pressed="true"]{background:#FB923C!important;color:#10172F!important}
html[data-theme="light"] body[data-module-key="cronofoco"] .followball-starts button[aria-pressed="true"]{background:#E0F2FE!important;color:#10172F!important;border-color:#0E7490!important}
html[data-theme="light"] body[data-module-key="concursos"] .module-tabs button[aria-pressed="true"]{color:#10172F!important;background:#E0F2FE!important;border-color:#0E7490!important}

html[data-theme="dark"] body[data-module-key="passatempos"] .cw-cell .cw-input.bad,
html[data-theme="light"] body[data-module-key="passatempos"] .cw-cell .cw-input.bad{color:#9F1239!important;text-decoration:underline wavy #9F1239!important;text-decoration-thickness:2px!important;text-underline-offset:3px!important;border-bottom:3px solid #9F1239!important}

/* A casa precisa continuar aparecendo atrás da letra nos dois temas. */
body[data-module-key="passatempos"] .cw-cell .cw-input{background:transparent!important}
body[data-module-key="passatempos"] .cw-cell .cw-input:not(.bad){color:#10172F!important}
html[data-theme="dark"] body[data-module-key="passatempos"] .cw-cell .cw-input:not(.bad){color:#10172F!important}
html[data-theme="dark"] body[data-module-key="passatempos"] .cw-cell .cw-input.bad{color:#9F1239!important}
html[data-theme="dark"] body[data-module-key="passatempos"] .cw-grid{background:#28366D!important}
html[data-theme="dark"] body[data-module-key="passatempos"] .cw-cell:not(.cw-block){background-color:#C2CAE5!important;border:1px solid #67E8F9!important}
html[data-theme="dark"] body[data-module-key="passatempos"] .cw-cell.on{background-color:#CCFBF1!important}
html[data-theme="dark"] body[data-module-key="passatempos"] .cw-cell.cw-block{background-color:#060A24!important;border:1px solid #64748B!important}
html[data-theme="dark"] body[data-module-key="passatempos"] .cw-cell .cw-num{color:#10172F!important}

/* Mantém no teclado as cores que identificam as três respostas. */
body[data-module-key="passatempos"] .kb button.c-g{background:#A3E635!important;border-color:#A3E635!important;color:#10172F!important}
body[data-module-key="passatempos"] .kb button.c-y{background:#FB923C!important;border-color:#FB923C!important;color:#10172F!important}
body[data-module-key="passatempos"] .kb button.c-x{background:#475569!important;border-color:#475569!important;color:#FFFFFF!important}
:root[data-theme="light"] body[data-module-key="passatempos"] .kb button[data-k].c-g:not(.primary):not(.btn):not(.action){background:#A3E635!important;border-color:#A3E635!important;color:#10172F!important}
:root[data-theme="light"] body[data-module-key="passatempos"] .kb button[data-k].c-y:not(.primary):not(.btn):not(.action){background:#FB923C!important;border-color:#FB923C!important;color:#10172F!important}
:root[data-theme="light"] body[data-module-key="passatempos"] .kb button[data-k].c-x:not(.primary):not(.btn):not(.action){background:#475569!important;border-color:#475569!important;color:#FFFFFF!important}
body[data-module-key="passatempos"] .ps-legend .sw.c-y{background:#FB923C!important;border-color:#FB923C!important}
body[data-module-key="passatempos"] .ps-legend .sw.c-x{background:#475569!important;border-color:#475569!important}

/* Em Siga a Bolinha, só o nível ativo recebe o destaque verde. */
body[data-module-key="cronofoco"] .followball-starts button[aria-pressed="false"]{background:var(--surface)!important;color:var(--ink)!important;border:1px solid var(--border)!important;box-shadow:none!important}
body[data-module-key="cronofoco"] .followball-starts button[aria-pressed="true"]{background:var(--accent-soft)!important;color:var(--ink)!important;border:2px solid var(--accent)!important;font-weight:800!important;box-shadow:inset 0 0 0 1px var(--accent)!important}
body[data-module-key="cronofoco"] .followball-starts button[aria-pressed="true"]::before{content:"✓ "}
body[data-module-key="cronofoco"] .followball-starts+.actions-row button:first-child{background:var(--primaria)!important;color:var(--primaria-texto)!important;border-color:var(--primaria)!important}
:root[data-theme] body[data-module-key="cronofoco"] .followball-starts button.btn[aria-pressed="false"]:not(.primary):not(.ghost):not(.secondary):not(.warn){background:var(--surface)!important;color:var(--ink)!important;border:1px solid var(--border)!important;box-shadow:none!important}
:root[data-theme] body[data-module-key="cronofoco"] .followball-starts button.btn[aria-pressed="true"]{background:var(--accent-soft)!important;color:var(--ink)!important;border:2px solid var(--accent)!important;font-weight:800!important;box-shadow:inset 0 0 0 1px var(--accent)!important}
:root[data-theme] body[data-module-key="cronofoco"] .followball-starts+.actions-row>button.btn:first-child{background:var(--primaria)!important;color:var(--primaria-texto)!important;border:1px solid var(--primaria)!important}

/* Navegação 3A: menu de conta e barra principal do Cronofoco. */
.gateway-toolbar .account-menu{position:relative;flex:0 0 auto}
.gateway-toolbar .account-menu>summary{display:flex;align-items:center;justify-content:center;gap:6px;min-width:92px;min-height:44px;padding:0 10px;border:1px solid var(--borda);border-radius:10px;color:var(--texto);font-weight:700;cursor:pointer;list-style:none}
.account-menu summary::-webkit-details-marker{display:none}.account-menu summary svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.account-menu>nav{display:none;position:absolute;z-index:300;right:0;top:calc(100% + 8px);width:min(280px,calc(100vw - 24px));max-height:75vh;overflow:auto;padding:10px;background:var(--bg-elevado);border:1px solid var(--borda);border-radius:14px;box-shadow:var(--sombra-card)}
.account-menu[open]>nav{display:grid;gap:6px}.account-menu nav>button,.account-menu nav>form button{width:100%;min-height:44px;padding:8px 12px;text-align:left;color:var(--texto)!important;background:var(--card)!important;border:1px solid var(--borda)!important;border-radius:9px;cursor:pointer}.account-menu nav>button:hover,.account-menu nav>form button:hover{border-color:var(--acento)!important}.account-email{padding:8px 10px;color:var(--texto-suave);font-size:13px}.account-theme{padding:8px 4px;border-top:1px solid var(--borda)}.account-theme>b{display:block;padding:0 6px 8px}.account-theme>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.account-theme button[aria-pressed="true"]{background:var(--acento)!important;color:#061126!important;border-color:var(--acento)!important;font-weight:800}.account-menu form{margin:0}.account-menu nav>form button{color:var(--erro)!important}
@media(max-width:650px){.gateway-toolbar{gap:8px!important;padding:3px 8px!important}.gateway-toolbar .module-menu{margin-left:auto!important}.gateway-toolbar .account-menu>summary{min-width:44px;width:44px;padding:0}.gateway-toolbar .account-menu>summary span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.gateway-toolbar .gateway-brand{flex:1 1 auto!important}.gateway-toolbar .gateway-brand>span{font-size:14px!important}}
body[data-module-key="cronofoco"] #mainWrap{padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))}
body[data-module-key="cronofoco"] #mainNav{display:flex;gap:6px;justify-content:space-between;overflow:visible}
body[data-module-key="cronofoco"] #mainNav button{flex:1 1 0;min-width:0;min-height:48px;padding:8px 5px;white-space:nowrap;font-size:clamp(11px,1.1vw,15px)}
body[data-module-key="cronofoco"] #mainNav button[aria-current="true"]{color:var(--acento);border-color:var(--acento);box-shadow:inset 0 -3px var(--acento)}
body[data-module-key="cronofoco"] #mainNav.mobile-tabs-hidden{display:none!important}
.training-groups{display:grid;gap:16px}.training-group h2{margin:0 0 8px}.training-rows,.reading-rows{display:grid;gap:7px}.training-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto 18px;align-items:center;gap:10px;width:100%;min-height:60px;padding:8px 12px;text-align:left;color:var(--texto)!important;background:var(--card)!important;border:1px solid var(--borda)!important;border-radius:12px;cursor:pointer}.training-row[aria-disabled="true"]{opacity:.72}.training-row-icon{display:grid;place-items:center;width:32px;height:32px}.training-row-main{display:grid;gap:3px;min-width:0}.training-row-main strong{font-size:14px}.training-row-main small,.training-row-status{color:var(--texto-suave)!important;font-size:12px}.training-row-status{white-space:nowrap}.training-row-arrow{font-size:19px;color:var(--acento)}.navigation-progress{padding:12px 14px;margin:0 0 16px;background:var(--bg-elevado);border:1px solid var(--borda);border-radius:12px;font-weight:700}.reading-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 16px}.reading-metric{min-height:74px;padding:10px;background:var(--bg-elevado);border:1px solid var(--borda);border-radius:12px}.reading-metric strong{display:block;font-size:20px}.reading-metric small{color:var(--texto-suave)}.home-dashboard{display:grid;gap:12px}.home-greeting{display:flex;align-items:center;gap:12px}.home-greeting .mascot-picture{width:96px;flex:none}.home-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.home-metrics .stat{min-width:0;padding:10px;text-align:center}.home-metrics .value{font-size:clamp(22px,6vw,34px);font-weight:800}.home-next-card{display:grid;grid-template-columns:54px minmax(0,1fr);gap:10px;align-items:center;padding:14px;background:var(--card);border:1px solid var(--borda);border-radius:14px}.home-next-card>.mascot-picture{width:50px}.home-next-copy h3{margin:3px 0}.home-next-copy>p{margin:3px 0;font-size:13px}.home-next-card .btn{grid-column:1/-1;width:100%;min-height:48px}.home-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:10px}.home-shortcut{display:grid;gap:5px;padding:13px;background:var(--bg-elevado);border:1px solid var(--borda);border-radius:12px;color:var(--texto)!important;text-decoration:none}.home-shortcut strong{color:var(--texto)}.home-shortcut small{color:var(--texto-suave)}.home-daily-tip{padding:12px;background:var(--card);border:1px solid var(--borda);border-radius:12px}.home-daily-tip a{display:inline-block;margin-top:6px;font-weight:700}
@media(max-width:650px){body[data-module-key="cronofoco"] #mainNav{position:fixed;z-index:90;left:0;right:0;bottom:0;top:auto;display:flex!important;gap:2px;width:100%;margin:0!important;padding:5px 4px calc(5px + env(safe-area-inset-bottom,0px));background:var(--bg-elevado)!important;border-top:1px solid var(--borda);box-shadow:0 -4px 16px rgba(0,0,0,.18)}body[data-module-key="cronofoco"] #mainNav button{min-height:48px;padding:4px 1px;font-size:10.5px;white-space:normal;line-height:1.15}body[data-module-key="cronofoco"] #mainNav.mobile-tabs-hidden{display:none!important}body[data-module-key="cronofoco"] #mainWrap{padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))}body[data-module-key="cronofoco"] #app{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px));box-sizing:border-box}body.bm-focus-active[data-module-key="cronofoco"] #app{padding-bottom:0!important}.training-row{grid-template-columns:30px minmax(0,1fr) auto 14px;gap:7px;padding:8px}.training-row-status{font-size:10px}.home-dashboard{gap:4px}.home-metrics .stat{padding:2px 4px}.home-next-card{padding:10px}.reading-metric{padding:8px}.reading-metric strong{font-size:17px}#app.reading-home-view .navigation-progress{padding:8px 10px;margin-bottom:8px}#app.reading-home-view .reading-metrics{gap:4px;margin-bottom:8px}#app.reading-home-view .reading-metric{min-height:50px;padding:5px}#app.reading-home-view .reading-metric strong{font-size:16px}#app.reading-home-view .reading-rows{gap:4px}#app.reading-home-view .reading-rows .training-row{min-height:48px;padding:4px 7px}}
@media(min-width:651px){body[data-module-key="cronofoco"] #mainNav{position:static}}

/* Correções da Rodada 3A: navegação fixa, estados e resumos. */
@media(max-width:650px){body[data-module-key="cronofoco"] #mainWrap{left:auto!important;transform:none!important;margin-left:auto!important;margin-right:auto!important}}
body[data-module-key="cronofoco"] #mainNav button[aria-current="true"]{font-weight:700}
body[data-module-key="cronofoco"] .training-row{grid-template-columns:34px minmax(0,1fr) 18px}
body[data-module-key="cronofoco"] .training-row-main strong{white-space:nowrap}
body[data-module-key="cronofoco"] .training-row-main small[aria-live="polite"]{display:block;min-height:1.25em}
body[data-module-key="cronofoco"] .training-row-arrow{display:grid;place-items:center;min-width:18px}
body[data-module-key="cronofoco"] .link-button{appearance:none;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:4px 0!important;color:var(--acento)!important;font:inherit;font-weight:700;text-align:left;text-decoration:underline;cursor:pointer}
body[data-module-key="cronofoco"] #app .home-daily-tip button.link-button{appearance:none!important;background-color:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;padding:4px 0!important;color:var(--acento)!important;text-align:left!important;text-decoration:underline!important}
html[data-theme] body[data-module-key] .gateway-toolbar .account-menu .account-theme button[aria-pressed="false"],html[data-theme] body[data-module-key="cronofoco"] #app .theme-choice-list .profile-button[aria-pressed="false"]{min-height:44px;background:var(--card)!important;color:var(--texto)!important;border:1px solid var(--borda)!important;border-radius:9px;font:inherit;font-weight:600;box-shadow:none!important}
html[data-theme] body[data-module-key] .gateway-toolbar .account-menu .account-theme button[aria-pressed="true"],html[data-theme] body[data-module-key="cronofoco"] #app .theme-choice-list .profile-button[aria-pressed="true"]{min-height:44px;background:var(--acento)!important;color:var(--primaria-texto)!important;border:1px solid var(--acento)!important;border-radius:9px;font:inherit;font-weight:800;box-shadow:none!important}
html[data-theme="light"] body[data-module-key] .gateway-toolbar .account-menu .account-theme button[aria-pressed="true"],html[data-theme="light"] body[data-module-key="cronofoco"] #app .theme-choice-list .profile-button[aria-pressed="true"]{color:#FFFFFF!important}
html[data-theme="light"] body[data-module-key] .gateway-toolbar .account-menu .account-theme button[aria-pressed="false"],html[data-theme="light"] body[data-module-key="cronofoco"] #app .theme-choice-list .profile-button[aria-pressed="false"]{color:var(--acento)!important;border-color:var(--acento)!important}
/* Opções do menu da conta também aparecem nas páginas 403/404 sem data-module-key. */
html[data-theme] body:not([data-module-key]) .gateway-toolbar .account-menu .account-theme button[aria-pressed="false"]{min-height:44px;background:var(--card,#10172F)!important;color:var(--texto,#FFFFFF)!important;border:1px solid var(--borda,#334155)!important;border-radius:9px;font:inherit;font-weight:600;box-shadow:none!important}
html[data-theme] body:not([data-module-key]) .gateway-toolbar .account-menu .account-theme button[aria-pressed="true"]{min-height:44px;background:var(--acento,#22D3EE)!important;color:var(--primaria-texto,#10172F)!important;border:1px solid var(--acento,#22D3EE)!important;border-radius:9px;font:inherit;font-weight:800;box-shadow:none!important}
html[data-theme="light"] body:not([data-module-key]) .gateway-toolbar .account-menu .account-theme button[aria-pressed="false"]{background:#FFFFFF!important;color:#0E7490!important;border-color:#0E7490!important}
html[data-theme="light"] body:not([data-module-key]) .gateway-toolbar .account-menu .account-theme button[aria-pressed="true"]{background:#0E7490!important;color:#FFFFFF!important;border-color:#0E7490!important}
.generated-card-result{display:grid;gap:12px;margin-top:12px;justify-items:center}.generated-card-image{display:block;width:min(100%,360px);height:auto;max-height:70vh;object-fit:contain;border:1px solid var(--borda);border-radius:12px}.generated-card-result .actions-row{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;width:100%}.generated-card-result .actions-row>*{min-height:44px}
.checkup-exit-dialog{position:fixed;z-index:1000;top:max(12px,env(safe-area-inset-top,0px));left:50%;transform:translateX(-50%);width:min(92vw,560px);box-sizing:border-box;padding:16px;background:#10172F;color:#FFFFFF;border:2px solid #22D3EE;border-radius:14px;box-shadow:0 12px 40px rgba(0,0,0,.48)}.checkup-exit-dialog p{margin:0 0 12px;color:#FFFFFF!important;font-weight:700;line-height:1.45}.checkup-exit-dialog .actions-row{display:flex;flex-wrap:wrap;gap:8px}.checkup-exit-dialog button{min-height:44px;flex:1 1 170px}.checkup-exit-dialog button:focus-visible{outline:3px solid #A3E635;outline-offset:2px}
html[data-theme="light"] .checkup-exit-dialog{background:#FFFFFF;color:#10172F;border-color:#0E7490}html[data-theme="light"] .checkup-exit-dialog p{color:#10172F!important}.checkup-exit-dialog .btn.lime{background:#A3E635!important;color:#10172F!important}.checkup-exit-dialog .btn.ghost{background:transparent!important;color:#FFFFFF!important;border:1px solid #FFFFFF!important}html[data-theme="light"] .checkup-exit-dialog .btn.ghost{color:#0E7490!important;border-color:#0E7490!important}
body[data-module-key="cronofoco"] .home-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch}
body[data-module-key="cronofoco"] .home-shortcut{display:grid!important;grid-template-columns:minmax(0,1fr);align-content:start;justify-items:start;min-width:0;min-height:100%;width:100%;box-sizing:border-box;text-align:left!important}
body[data-module-key="cronofoco"] .home-shortcut strong,body[data-module-key="cronofoco"] .home-shortcut small{justify-self:start;width:100%;margin-left:0!important;text-align:left!important}
@media(max-width:650px){body[data-module-key="cronofoco"] .home-shortcut:last-child{grid-column:auto!important}}
/* Shared activity focus mode and accessible app dialogs (Rodada 3B, N4/N5/E3/E8). */
.bm-focus-bar{position:fixed;z-index:10000;inset:0 0 auto;min-height:56px;display:grid;grid-template-columns:76px minmax(0,1fr) auto;align-items:center;gap:8px;padding:6px max(12px,env(safe-area-inset-left)) 6px max(12px,env(safe-area-inset-right));background:var(--surface,#10172f);color:var(--ink,#fff);border-bottom:1px solid var(--line,#445);box-shadow:0 3px 14px #0003;font:inherit}
.bm-focus-bar{height:56px;box-sizing:border-box}
@media(min-width:651px) and (hover:hover) and (pointer:fine){
  .bm-focus-title[data-shortcut-hint]::after{content:attr(data-shortcut-hint);display:block;font-size:.75rem;font-weight:400;line-height:1.2}
}
.bm-focus-bar button{min-width:44px;min-height:44px;border:1px solid var(--line,#667);border-radius:12px;background:transparent;color:inherit;font:inherit;font-weight:700;cursor:pointer}
.bm-focus-bar .bm-focus-exit{box-sizing:border-box;width:76px;min-width:76px;white-space:nowrap}
.bm-focus-bar .bm-focus-exit{justify-self:start;padding:0 12px}
.bm-focus-title{overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap;font-weight:700}
.bm-focus-timer{justify-self:end;font-variant-numeric:tabular-nums}
body.bm-focus-active .gateway-toolbar,body.bm-focus-active #module-tabs,body.bm-focus-active .module-tabs,body.bm-focus-active #mainNav{display:none!important}
body.bm-focus-active [data-focus-hidden]{display:none!important}
body.bm-focus-active .bm-focus-bar~*{scroll-margin-top:64px}
body.bm-focus-active{scroll-padding-top:68px}
.bm-samsung-dark-notice{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;max-width:var(--module-width,1200px);margin:8px auto;padding:8px 10px;border:1px solid var(--borda);border-radius:10px;background:var(--card);color:var(--texto);font:600 .7rem/1.3 Montserrat,Arial,sans-serif;box-sizing:border-box}
.bm-samsung-dark-notice .bm-samsung-dark-dismiss{min-width:58px;min-height:36px;padding:6px 8px;border:1px solid var(--borda);border-radius:8px;background:transparent;color:var(--texto);font:inherit;font-weight:700;cursor:pointer}
@media(max-width:650px){.bm-samsung-dark-notice{position:relative;left:50%;transform:translateX(-50%);width:100vw;max-width:none;margin:6px 0;padding:6px 12px;font-size:.62rem;line-height:1.2;gap:6px}.bm-samsung-dark-notice .bm-samsung-dark-dismiss{min-width:54px}}
.bm-dialog-shade{position:fixed;z-index:10001;inset:0;display:grid;place-items:center;padding:20px;background:#050817b8}
.bm-dialog{width:min(100%,460px);max-height:min(90vh,680px);overflow:auto;padding:22px;border:1px solid var(--line,#556);border-radius:18px;background:var(--surface,#10172f);color:var(--ink,#fff);box-shadow:0 18px 60px #0007;font:inherit}
.bm-dialog h2{margin:0 0 10px;font-size:1.2rem}.bm-dialog p{line-height:1.5;color:var(--muted,#cbd5e1)}
.bm-dialog-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:20px}
.bm-dialog-actions button{min-height:44px;padding:10px 15px;border:1px solid var(--line,#667);border-radius:12px;background:#a3e635;color:#10172f;font:inherit;font-weight:700;cursor:pointer}
.bm-dialog-actions button.secondary{background:transparent;color:inherit}
.bm-dialog-actions button.text-link{width:auto;min-height:36px;padding:4px 8px;border-color:transparent;background:transparent;color:var(--acento,#22d3ee);text-decoration:underline}
body.bm-focus-active[data-module-key="cronofoco"] .panel-head h2,body.bm-focus-active[data-module-key="cronofoco"] .panel-head .timer,body.bm-focus-active[data-module-key="cronofoco"] .game-title-row,body.bm-focus-active[data-module-key="passatempos"] .game-title-row{display:none!important}
body.bm-focus-active[data-module-key="concursos"] #app>h1,body.bm-focus-active[data-module-key="concursos"] #app>.title-actions,body.bm-focus-active[data-module-key="vestibulares"] #app>h1,body.bm-focus-active[data-module-key="vestibulares"] #app>.title-actions,body.bm-focus-active[data-module-key="concursos"] #rlm-app h2{display:none!important}
html[data-theme="light"] .bm-dialog,html[data-theme="light"] .bm-focus-bar{background:#fff;color:#10172f;border-color:#cbd5e1}
html[data-theme="light"] .bm-dialog p{color:#334155}
@media(max-width:480px){.bm-focus-bar{grid-template-columns:76px minmax(0,1fr) auto;gap:6px;padding-inline:8px}.bm-focus-title{font-size:.9rem}.bm-focus-timer{font-size:.88rem}.bm-dialog{padding:18px}.bm-dialog-actions{display:grid;grid-template-columns:1fr}.bm-dialog-actions button{width:100%}}
body[data-module-key="passatempos"] .bm-focus-bar{grid-template-columns:76px 44px minmax(0,1fr) auto}
@media(max-width:480px){body[data-module-key="passatempos"] .bm-focus-bar{grid-template-columns:76px 44px minmax(0,1fr) auto}}
body.bm-focus-active[data-module-key="cronofoco"] #app,body.bm-focus-active[data-module-key="passatempos"] #view,body.bm-focus-active[data-module-key="concursos"] #app,body.bm-focus-active[data-module-key="vestibulares"] #app,body.bm-focus-active[data-module-key="idiomas"] #app{padding-top:64px}
@media(max-width:650px){.bm-focus-stage-dock{position:fixed;z-index:9999;left:50%;bottom:max(12px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(420px,calc(100vw - 32px));max-width:calc(100vw - 32px);box-sizing:border-box;padding:6px;background:var(--surface,#10172f);border:1px solid var(--line,#445);border-radius:14px;box-shadow:0 4px 18px #0008}.bm-focus-stage-dock>*{display:block;width:100%;min-width:0;min-height:44px;max-width:none;box-sizing:border-box}body.bm-focus-active{padding-bottom:76px}body.bm-focus-active[data-module-key="cronofoco"] #app .numpad{position:fixed;z-index:9998;left:50%;bottom:max(10px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(300px,calc(100vw - 32px));max-height:calc(100dvh - 96px);overflow:auto;margin:0;padding:4px;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:0 4px 18px #0008}body.bm-focus-active[data-module-key="cronofoco"] #app .sudoku-pad{position:fixed;z-index:9998;left:50%;bottom:max(10px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(414px,calc(100vw - 24px));margin:0;padding:4px;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:0 4px 18px #0008}}
@media(max-width:650px){.bm-focus-stage-dock>.voice-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:8px;margin:0}.bm-focus-stage-dock>.voice-controls button{min-width:0;min-height:44px;margin:0}.bm-focus-stage-dock>.voice-controls audio,.bm-focus-stage-dock>.voice-controls .voice-choose-link{grid-column:1/-1}.bm-focus-stage-dock>.voice-controls audio{width:100%}body.bm-focus-active[data-module-key="cronofoco"] #app .reading-passage{max-height:calc(100dvh - 190px);overflow:auto;overscroll-behavior:contain}}
@media(max-width:650px){.bm-focus-stage-dock>.actions,.bm-focus-stage-dock>.rlm-actions{display:flex;gap:8px;margin:0}.bm-focus-stage-dock>.actions button,.bm-focus-stage-dock>.rlm-actions button{flex:1 1 0;min-width:0;min-height:44px;margin:0}body.bm-focus-active[data-module-key="concursos"] #app,body.bm-focus-active[data-module-key="vestibulares"] #app,body.bm-focus-active[data-module-key="concursos"] #rlm-app{height:calc(100dvh - 72px);max-height:calc(100dvh - 72px);overflow-y:auto;overscroll-behavior:contain;padding-bottom:120px!important}}

/* Navegação das áreas do aplicativo */
.bm-area-nav{position:fixed;z-index:95;inset:0 0 auto;box-sizing:border-box;min-height:52px;display:flex;justify-content:center;gap:4px;padding:4px 8px;background:var(--bg-elevado,#10172f);border-bottom:1px solid var(--borda,#44506f)}
.bm-area-nav a{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:0;width:min(18%,135px);border-radius:10px;text-decoration:none;font:600 14px/1.2 Montserrat,system-ui,sans-serif;color:var(--texto,#fff)}
.bm-area-nav a[aria-current="page"]{font-weight:700;color:var(--acento,#22d3ee);background:var(--accent-soft,#173548);box-shadow:inset 0 -3px currentColor}
.bm-area-nav a:focus-visible,.bm-part-nav a:focus-visible{outline:3px solid var(--foco,#0891b2);outline-offset:-3px}
.bm-area-nav svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
@media(min-width:651px){body:has(.bm-area-nav)::before{content:"";display:block;height:54px}}
@media(max-width:650px){
  .bm-area-nav{inset:auto 0 0;padding:3px 4px calc(3px + env(safe-area-inset-bottom));gap:1px;border-top:1px solid var(--borda,#44506f);border-bottom:0}
  .bm-area-nav a{flex:1;width:auto;flex-direction:column;gap:2px;font-size:11px}
  body:has(.bm-area-nav)::after{content:"";display:block;height:calc(60px + env(safe-area-inset-bottom))}
}
.bm-part-nav{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:8px auto 12px}
@media(max-width:650px){body:has(.bm-area-nav) .training-rows .training-row{min-height:54px;padding-block:5px}}
.bm-part-nav[hidden]{display:none!important}
.bm-part-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 12px;border-radius:12px;border:1px solid var(--borda);background:var(--bg-elevado);color:var(--texto);font:600 14px Montserrat,system-ui,sans-serif;text-decoration:none}
.bm-part-nav a[aria-current="page"]{border:2px solid var(--acento);background:var(--accent-soft);font-weight:750}
.plan-details{max-width:680px;margin:auto;padding:clamp(16px,4vw,32px);background:var(--bg-elevado);border:1px solid var(--borda);border-radius:16px}
.plan-details dl>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 20px;border-top:1px solid var(--borda);padding:14px 0}
.plan-details dt{font-weight:700}.plan-details dd{margin:0}
body.bm-focus-active .bm-area-nav,body.bm-focus-active .bm-part-nav{display:none!important}
body.bm-focus-active:has(.bm-area-nav)::before,body.bm-focus-active:has(.bm-area-nav)::after{display:none}

.start-home{max-width:820px;margin:auto}.start-home>h1{margin:0 0 16px}.start-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 14px}.start-metrics div,.start-home .home-daily-tip{background:var(--card);border:1px solid var(--borda);border-radius:14px;padding:14px}.start-metrics dt{font-size:.82rem}.start-metrics dd{margin:4px 0 0;font-size:1.5rem;font-weight:700}.start-home .start-continue{display:inline-flex;align-items:center;justify-content:center;min-height:44px;background:#a3e635;color:#10172f}.start-today,.start-home .home-daily-tip{margin-top:22px}.start-today h2,.start-home .home-daily-tip h2{font-size:1.15rem}.start-home #start-options,.start-home .home-shortcuts{display:flex;gap:8px;flex-wrap:wrap}.start-home .home-shortcuts{margin-top:16px}.start-home nav a,.start-home #start-options a,.start-home .home-daily-tip a{display:inline-flex;align-items:center;color:var(--acento);min-height:44px}.start-home #start-options a{padding:6px 12px;border:1px solid var(--borda);border-radius:10px}.start-home .home-shortcuts a{padding-inline:6px}
body[data-module-key="cronofoco"]:not(.bm-focus-active) #mainWrap:has(.bm-part-nav:not([hidden])){padding-top:0}
.plan-details dl>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:8px}.plan-details dd{white-space:nowrap}
@media(max-width:650px){.bm-part-nav[data-group="estudar"]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;width:min(100%,420px)}.bm-part-nav[data-group="estudar"] a{padding-inline:2px;white-space:nowrap;font-size:clamp(11px,3.3vw,14px)}}
@media(max-width:650px){
  body.bm-focus-active[data-module-key="passatempos"] .cw-grid {
    --cw-cell-size: max(30px, min(calc((100vw - 32px) / var(--cw-cols)), calc((100dvh - 300px - env(safe-area-inset-bottom)) / var(--cw-rows))));
    --cw-board-size: calc(var(--cw-cell-size) * var(--cw-cols));
    width:var(--cw-board-size)!important;max-width:var(--cw-board-size)!important;flex-basis:var(--cw-board-size)!important;
  }
}

.start-home .home-greeting{display:flex;align-items:center;gap:1rem}
.start-home .mascot-picture,.start-home .mascot-picture img{display:block;width:96px;height:96px}
.start-home .home-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.start-home .home-shortcut{display:flex;align-items:center;text-align:left;min-height:44px}
.start-metrics dt a{color:inherit}
@media(max-width:600px){.start-home .mascot-picture,.start-home .mascot-picture img{width:72px;height:72px}}

.start-metrics.without-checkup{grid-template-columns:repeat(2,minmax(0,1fr))}

.start-home #start-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:10px}
.start-home #start-options .today-card,.start-home .home-shortcut{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:5px;min-height:68px;padding:12px 14px;background:var(--card);border:1px solid var(--borda);border-radius:12px;color:var(--texto);text-decoration:none;line-height:1.35}
.start-home #start-options .today-card strong,.start-home .home-shortcut strong{color:var(--acento)}
.start-home #start-options .today-card small,.start-home .home-shortcut small{color:var(--texto-suave);font-size:.84rem}
.start-home #start-options .today-card:hover,.start-home .home-shortcut:hover{border-color:var(--acento)}
.evolution-page{display:grid;gap:14px}.evolution-page h2{margin:0 0 10px}.evolution-checkup{padding:14px}.evolution-checkup-summary{display:flex;gap:24px;margin-bottom:10px}.evolution-checkup-summary>div{display:grid;gap:2px}.evolution-checkup-summary small{color:var(--texto-suave)}.evolution-checkup-summary strong{font-size:1.55rem}.evolution-checkup>.btn{min-height:48px}.evolution-chart{display:flex;align-items:end;gap:8px;height:74px;margin-top:12px;overflow:auto}.evolution-chart-bar{display:grid;grid-template-rows:20px 1fr;justify-items:center;align-items:end;min-width:32px;height:100%;font-size:.7rem}.evolution-chart-bar i{display:block;width:22px;background:var(--acento);border-radius:5px 5px 0 0}.evolution-activities{display:grid;gap:10px}.evolution-cards{display:grid;gap:8px;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}.evolution-card{display:grid;gap:5px;min-width:0;padding:12px;background:var(--card);border:1px solid var(--borda);border-radius:12px}.evolution-card h3,.evolution-card p{margin:0}.evolution-card h3{font-size:1rem}.evolution-card time,.evolution-part{color:var(--texto-suave);font-size:.85rem}.evolution-card strong{overflow-wrap:anywhere}.evolution-history-links{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.evolution-history-links h2{flex-basis:100%}.evolution-history-links a{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;border:1px solid var(--borda);border-radius:10px;color:var(--acento);text-decoration:none}.evolution-more{min-height:44px}
@media(max-width:600px){.evolution-page{gap:10px}.evolution-checkup{padding:10px}.evolution-checkup-summary{margin-bottom:8px}.evolution-checkup-summary strong{font-size:1.35rem}.evolution-chart{height:58px}.evolution-cards{grid-template-columns:1fr}}

.bm-area-nav .bm-sidebar-brand{display:none}
@media(min-width:1024px){
  body:has(.bm-area-nav){padding-left:212px}
  body:has(.bm-area-nav)::before{height:64px!important}
  .bm-area-nav{inset:0 auto 0 0;width:212px;height:100vh;height:100dvh;min-height:100vh;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:7px;padding:22px 12px;overflow-y:auto;border:0;border-right:1px solid var(--borda,#44506f)}
  .bm-area-nav .bm-sidebar-brand{display:flex;align-items:center;gap:10px;min-height:54px;margin:0 0 10px;padding:0 9px;color:var(--texto);font-size:18px;font-weight:700;text-decoration:none;white-space:nowrap}
  .bm-area-nav .bm-sidebar-brand img{display:block;width:36px;height:36px;flex:none;border-radius:9px;object-fit:cover}
  .bm-area-nav>a[data-area]{display:flex;flex:0 0 50px;align-items:center;justify-content:flex-start;gap:12px;width:100%;max-width:none;min-height:50px;padding:0 12px;text-align:left}
  .bm-area-nav>a[data-area][aria-current="page"]{box-shadow:inset 3px 0 currentColor}
  .gateway-toolbar{position:fixed!important;z-index:120;top:10px;right:16px;width:auto!important;max-width:calc(100vw - 236px);margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;flex-wrap:nowrap!important}
  .gateway-toolbar>.gateway-brand{display:none!important}
  .gateway-toolbar .account-menu{margin-left:auto!important}
}

/* PC2: aproveita a largura restante em telas de computador. */
@media(min-width:1024px){
  .app-portal .page,body[data-module-key="cronofoco"] #mainWrap,
  body[data-module-key="concursos"] .shell,body[data-module-key="vestibulares"] .shell,
  body[data-module-key="idiomas"] .wrap,body[data-module-key="passatempos"] .module-content,
  body[data-module-key="passatempos"] .wrap{
    width:min(1000px,calc(100% - 32px))!important;max-width:1000px!important;margin-inline:auto!important
  }
  .start-home{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-areas:"greeting today" "metrics shortcuts" "continue tip" "discover discover";
    align-items:start;gap:12px 18px;width:min(1000px,calc(100% - 32px));max-width:1000px;margin:0 auto
  }
  .start-home .home-greeting{grid-area:greeting;min-width:0}
  .start-home .start-metrics{grid-area:metrics;align-self:start;margin:0}
  .start-home .start-continue{grid-area:continue;justify-self:start;align-self:start;width:auto;max-width:100%}
  .start-home .start-today{grid-area:today;min-width:0;margin-top:0}
  .start-home .home-shortcuts{grid-area:shortcuts;min-width:0;margin-top:0}
  .start-home .home-daily-tip{grid-area:tip;min-width:0;margin-top:0}
  .start-home #discover{grid-area:discover;min-width:0}
  .evolution-page{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;width:min(1000px,calc(100% - 32px));max-width:1000px;margin-inline:auto}
  .evolution-checkup{grid-column:1;grid-row:1}
  .evolution-activities{grid-column:2;grid-row:1}
  .evolution-history-links{grid-column:1/-1}
  body[data-module-key="cronofoco"] .training-groups{grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-module-key="cronofoco"] #app.reading-home-view .reading-rows{grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-module-key="passatempos"] #view>.grid2{grid-template-columns:repeat(5,minmax(0,1fr))}
}

/* PC3: o exercício ocupa uma faixa central, sem o espaço do menu lateral. */
@media(min-width:1024px){
  body.bm-focus-active:has(.bm-area-nav){padding-left:0!important}
  body.bm-focus-active:has(.bm-area-nav)::before{display:none!important;height:0!important}
  body.bm-focus-active[data-module-key="cronofoco"] #mainWrap,
  body.bm-focus-active[data-module-key="concursos"] .shell,
  body.bm-focus-active[data-module-key="vestibulares"] .shell,
  body.bm-focus-active[data-module-key="idiomas"] .wrap,
  :root body.bm-focus-active[data-module-key="passatempos"] .module-content.module-content{
    width:min(var(--bm-focus-content-width,560px),1000px,calc(100% - 32px))!important;max-width:min(var(--bm-focus-content-width,560px),1000px)!important;margin-inline:auto!important
  }
  body.bm-focus-active[data-module-key="passatempos"] .module-content>.wrap{width:100%!important;max-width:none!important;margin-inline:auto!important}
  body.bm-focus-active[data-module-key="cronofoco"] #app{padding-top:56px!important}
  body.bm-focus-active[data-module-key="cronofoco"] #app .numpad button{padding-block:14px}
}
@media(min-width:1024px) and (max-height:650px){
  body.bm-focus-active[data-module-key="cronofoco"] #app .calc-stage:has(.numpad){display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,300px);align-items:start;gap:8px}
  body.bm-focus-active[data-module-key="cronofoco"] #app .calc-stage:has(.numpad)>.calc-question-row{grid-column:1;grid-row:1}
  body.bm-focus-active[data-module-key="cronofoco"] #app .calc-stage:has(.numpad)>.upcoming-box{grid-column:1;grid-row:2}
  body.bm-focus-active[data-module-key="cronofoco"] #app .calc-stage:has(.numpad)>.numpad{grid-column:2;grid-row:1/span 2}
}
