@import url('/qg-logo-standard-2026.css?v=horizontal-lockup-20261008b');
/* HOMOLOG Android 1 dedo — correção isolada; sem diagnóstico; 2026-09-25 */
/* deploy-trigger-p0-30 */
/* QG Standard Global 2026-09-17 — normalization layer, no structural redesign */
:root{
 --qg-bg:#f4f0e5;--qg-surface:#fffdf8;--qg-ink:#151715;--qg-muted:#727873;
 --qg-dark:#080b09;--qg-dark-2:#0d120f;--qg-gold:#d9b448;--qg-line:rgba(187,145,36,.28);
 --qg-green:#39d8aa;--qg-radius:22px;--qg-dock-h:82px;
}
html{background:var(--qg-bg);-webkit-text-size-adjust:100%}
body{min-height:100dvh;margin:0;background:var(--qg-bg);color:var(--qg-ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif;-webkit-font-smoothing:antialiased;padding-bottom:calc(var(--qg-dock-h) + env(safe-area-inset-bottom,0px))}
*,*::before,*::after{box-sizing:border-box}
img,svg,video,canvas{max-width:100%}
button,a,input,select,textarea{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--qg-gold);outline-offset:2px}
/* Preserve intentionally dark operational modules while enforcing readable contrast. */
.sinapse-signature,.qg-dark,.mission-room,.free-room,[data-qg-theme="dark"]{--qg-bg:#050806;--qg-surface:#0b100d;--qg-ink:#f5f6f3;--qg-muted:#a0a7a2;background:var(--qg-bg);color:var(--qg-ink)}
/* Never allow inherited opacity to make primary text unreadable inside dark cards. */
.qg-card,.card,.panel,.free-panel,.question-card,.mission-card,.profile-card,.sinapse-card{overflow-wrap:anywhere}
.qg-card h1,.qg-card h2,.qg-card h3,.card h1,.card h2,.card h3,.panel h1,.panel h2,.panel h3{opacity:1}
/* Official global dock: same geometry on every screen. */
nav.dock.qg-dock-unified,nav.dock.qg-dock-5-official{
 position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:10000!important;
 min-height:var(--qg-dock-h)!important;height:auto!important;margin:0!important;padding:8px 10px max(8px,env(safe-area-inset-bottom,0px))!important;
 display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:start!important;
 background:rgba(4,7,5,.97)!important;border:0!important;border-top:1px solid rgba(217,180,72,.22)!important;
 border-radius:0!important;box-shadow:0 -10px 30px rgba(0,0,0,.12)!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)
}
nav.dock.qg-dock-unified a,nav.dock.qg-dock-5-official a{position:relative!important;min-width:0!important;min-height:62px!important;padding:4px 1px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:4px!important;color:#858d88!important;text-decoration:none!important;background:none!important;border:0!important}
nav.dock.qg-dock-unified a.active,nav.dock.qg-dock-5-official a.active{color:#f5f5f1!important}
nav.dock.qg-dock-unified a.active::before,nav.dock.qg-dock-5-official a.active::before{content:"";position:absolute;top:-9px;left:50%;width:46px;height:4px;transform:translateX(-50%);border-radius:0 0 6px 6px;background:var(--qg-gold);box-shadow:0 0 16px rgba(217,180,72,.35)}
nav.dock .icon{width:32px!important;height:32px!important;display:grid!important;place-items:center!important;font-size:29px!important;line-height:1!important;color:inherit!important}
nav.dock .sinapse-tab .icon{width:38px!important;height:34px!important}
nav.dock .sinapse-tab .icon img{width:36px!important;height:36px!important;object-fit:contain!important;filter:none!important}
nav.dock label{display:block!important;max-width:100%!important;font-size:11px!important;line-height:1.1!important;font-weight:800!important;white-space:nowrap!important;color:inherit!important}
nav.dock .sinapse-tab,nav.dock .sinapse-tab label{color:var(--qg-gold)!important}
/* iPhone: avoid dock covering the last action and normalize side gutters. */
main{scroll-margin-bottom:calc(var(--qg-dock-h) + 20px)}
@media(max-width:430px){:root{--qg-dock-h:78px}body{padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))}nav.dock.qg-dock-unified,nav.dock.qg-dock-5-official{padding-left:6px!important;padding-right:6px!important}nav.dock label{font-size:10.5px!important}.qg-shell,.app,.command-shell,.profile-shell{max-width:100%!important}}
/* Loading is contextual, not a recurring splash. */
body:where(:not(.qg-boot-active)) .qg-home-boot{display:none!important}
.qg-home-boot{z-index:20000!important}
/* Respect accessibility without changing brand. */
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
/* Contrast normalization for the approved black operational cards in light mode. */
.profile-kpi,.profile-status-panel,.profile-action,.recommended,.training-arsenal,.training-module,.qg-ecosystem-entry-card,
.sinapse-decision,.pelotao-hero,.community-hero{color:#f3f4f1}
.profile-kpi strong,.profile-kpi b,.profile-status-panel strong,.profile-status-panel b,.profile-action strong,.profile-action b,
.recommended h1,.recommended h2,.recommended h3,.recommended strong,.training-arsenal h1,.training-arsenal h2,.training-arsenal h3,
.training-module h1,.training-module h2,.training-module h3,.training-module strong,.qg-ecosystem-entry-card h1,.qg-ecosystem-entry-card h2,.qg-ecosystem-entry-card h3{color:#f3f4f1!important;opacity:1!important}
.profile-kpi p,.profile-kpi span,.profile-status-panel p,.profile-status-panel span,.profile-action p,.profile-action span,
.recommended p,.recommended span,.training-arsenal p,.training-arsenal span,.training-module p,.training-module span,.qg-ecosystem-entry-card p,.qg-ecosystem-entry-card span{color:#aeb5b0;opacity:1}
.profile-action .pa-icon,.training-module .module-icon{color:var(--qg-gold)}
/* Light surfaces stay light and readable. */
.profile-hero,.operation-card,.account-row{color:#171917}
.profile-hero h1,.profile-hero h2,.profile-hero h3,.operation-card h1,.operation-card h2,.operation-card h3,.account-row strong{color:#171917!important;opacity:1!important}
/* PRE-PUBLICACAO 2026-09-17 — dock canonical flush; legacy docks never float */

body.qg-boot-active .qg-dock-official{display:none!important}
/* ferramentas premium de questão: secundárias, somente ícone */
.qg-icon-tools{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;margin-top:10px!important}.qg-icon-tool{width:36px!important;height:36px!important;min-width:36px!important;padding:0!important;display:grid!important;place-items:center!important;border:1px solid rgba(216,181,90,.18)!important;border-radius:10px!important;background:transparent!important;color:#8d928f!important;box-shadow:none!important;font-size:0!important}.qg-icon-tool svg{width:19px!important;height:19px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.65!important;stroke-linecap:round!important;stroke-linejoin:round!important}.qg-icon-tool:active,.qg-icon-tool:focus-visible{color:#d8b55a!important;border-color:rgba(216,181,90,.5)!important;background:rgba(216,181,90,.06)!important;outline:none!important}
/* QG Fechamento Final — Princípio de Tranquilidade + tema institucional único */
:root{color-scheme:dark!important}
html,body{background:#080a09!important;color:#f4f4f1!important}
body{overscroll-behavior-y:auto}
/* P0 Android: preserve native one-finger page pan. */
button,a,[role="button"]{-webkit-tap-highlight-color:transparent}
@media (hover:none) and (pointer:coarse){html,body{touch-action:pan-x pan-y pinch-zoom!important;overscroll-behavior-y:auto!important}body>main,.command-shell{touch-action:pan-y pinch-zoom!important}}
button:disabled{cursor:not-allowed;opacity:.42}
.free{max-width:760px!important;margin:0 auto!important;padding:calc(22px + env(safe-area-inset-top)) 18px calc(104px + env(safe-area-inset-bottom))!important}
.free>.free-k{font-size:10px!important;letter-spacing:.16em!important;color:#c7a64e!important;margin-bottom:8px!important}
.free>h1{font-size:clamp(26px,7vw,38px)!important;line-height:1.05!important;margin:0 0 10px!important}
.free>p{max-width:620px!important;color:#a8afaa!important;line-height:1.55!important;margin:0 0 22px!important}
.free-panel{background:#0d100f!important;border:1px solid rgba(216,181,90,.18)!important;box-shadow:none!important;border-radius:16px!important;padding:18px!important}
.free-filters{display:grid!important;gap:10px!important}.free-filters select{min-height:48px!important;background:#111513!important;color:#f3f3ef!important;border:1px solid #2a2f2c!important;border-radius:12px!important;padding:0 12px!important}
.free-meta{display:flex!important;justify-content:space-between!important;gap:12px!important;color:#9ca39f!important;font-size:11px!important;letter-spacing:.08em!important}.free-q{font-size:clamp(17px,4.6vw,20px)!important;line-height:1.6!important;margin:20px 0!important;color:#f7f7f3!important}
.free-choice{display:grid!important;gap:10px!important}.free-choice button{min-height:54px!important;text-align:left!important;background:#111513!important;color:#f5f5f1!important;border:1px solid #2b302d!important;border-radius:12px!important;padding:13px 15px!important;transition:border-color .12s ease,background .12s ease,transform .08s ease!important}.free-choice button:active{transform:scale(.995)}.free-choice button.on{border-color:#d8b55a!important;background:#17170f!important;box-shadow:inset 0 0 0 1px rgba(216,181,90,.18)!important}
.qg-icon-tools{justify-content:flex-end!important;margin-top:12px!important}.qg-icon-tool{width:38px!important;height:38px!important;min-height:38px!important;padding:8px!important;border-radius:10px!important;background:#101311!important;border:1px solid #252a27!important}.qg-icon-tool svg{width:19px!important;height:19px!important;stroke:#aeb4b0!important;fill:none!important;stroke-width:1.7!important}.qg-icon-tool:active svg{stroke:#d8b55a!important}
.free-actions{display:flex!important;gap:10px!important;align-items:center!important;margin-top:14px!important}.free-actions>button{min-height:48px!important;border-radius:12px!important}.free-actions .go,#nextFree{margin-left:auto!important}#stopFree{background:transparent!important;border:1px solid #303532!important;color:#9da49f!important}#nextFree{background:#d8b55a!important;color:#0a0b0a!important;font-weight:850!important;border:0!important}
@media(max-width:520px){.free{padding-left:14px!important;padding-right:14px!important}.free-panel{padding:15px!important}.free-actions{flex-wrap:wrap!important}#stopFree{order:2!important;width:100%!important}#nextFree{order:1!important;flex:1!important}}

/* QG FINAL — tema institucional único. O SO/navegador não redefine o ambiente. */
:root{color-scheme:dark!important;--qg-bg:#050706;--qg-surface:#0b0e0c;--qg-text:#f2f3ef;--qg-muted:#929a95;--qg-gold:#d8b55a}
html{background:#050706!important;color-scheme:dark!important}
input,select,textarea,button{color-scheme:dark}
/* QG 2026-09-17 — institutional theme lock: one visual environment only. */
:root,html{color-scheme:dark!important;--qg-bg:#050706!important;--qg-surface:#0b0e0c!important;--qg-text:#f2f3ef!important;--qg-muted:#929a95!important;--qg-gold:#d8b55a!important}
html,body{background:#050706!important;color:#f2f3ef!important}
input,select,textarea,button{color-scheme:dark!important}

/* QG P0 2026-09-18 — contraste funcional final
   Regra: nenhum texto funcional pode desaparecer por heranca/opacidade. */
:root{
 --qg-text-primary:#f4f4f1;
 --qg-text-secondary:#a9b0ab;
 --qg-text-tertiary:#858d88;
 --qg-text-institutional:#ddb94f;
}
/* Dock: legibilidade minima global; ativo branco + linha dourada. */
nav.dock.qg-dock-unified a,nav.dock.qg-dock-5-official a,
.qg-dock-official a{opacity:1!important;color:#8f9792!important}
nav.dock.qg-dock-unified a label,nav.dock.qg-dock-5-official a label,
.qg-dock-official a label{opacity:1!important;color:inherit!important;text-shadow:none!important}
nav.dock.qg-dock-unified a.active,nav.dock.qg-dock-5-official a.active,
.qg-dock-official a.active{opacity:1!important;color:#f6f6f2!important}
nav.dock.qg-dock-unified a.active label,nav.dock.qg-dock-5-official a.active label,
.qg-dock-official a.active label{color:#f6f6f2!important}
nav.dock.qg-dock-unified a:where(:not(.active)) .icon,nav.dock.qg-dock-5-official a:where(:not(.active)) .icon,
.qg-dock-official a:where(:not(.active)) .icon{opacity:1!important;color:#8f9792!important}
/* SINAPSE inativo nao deve parecer selecionado; ativo segue regra global. */
nav.dock.qg-dock-unified .sinapse-tab:where(:not(.active)),nav.dock.qg-dock-5-official .sinapse-tab:where(:not(.active)),
.qg-dock-official .sinapse-tab:where(:not(.active)){color:#8f9792!important}
nav.dock.qg-dock-unified .sinapse-tab.active,nav.dock.qg-dock-5-official .sinapse-tab.active,
.qg-dock-official .sinapse-tab.active{color:var(--qg-text-institutional)!important}
/* Perfil: a camada antiga de light surface nao pode pintar texto escuro sobre cards escuros. */
.profile-v62 .profile-hero,.profile-v62 .operation-card,.profile-v62 .account-row{color:var(--qg-text-primary)!important}
.profile-v62 .profile-hero h1,.profile-v62 .profile-hero h2,.profile-v62 .profile-hero h3,
.profile-v62 .operation-card h1,.profile-v62 .operation-card h2,.profile-v62 .operation-card h3,
.profile-v62 .account-row strong,.profile-v62 .account-row b{color:var(--qg-text-primary)!important;opacity:1!important}
.profile-v62 .operation-card [data-profile-operation]{color:var(--qg-text-primary)!important;opacity:1!important}
.profile-v62 .operation-card .op-label{color:var(--qg-text-institutional)!important;opacity:1!important}
.profile-v62 .operation-card p,.profile-v62 .profile-meta,.profile-v62 .profile-action span,
.profile-v62 .account-row span{color:var(--qg-text-secondary)!important;opacity:1!important}
.profile-v62 .section-head span,.profile-v62 .operation-card .op-date small{color:var(--qg-text-tertiary)!important;opacity:1!important}
/* Classes textuais comuns: remover transparencias acidentais sem clarear decoracao. */
.qg-kicker,.section-head h2,.free-k,[class*="eyebrow"],[class*="kicker"]{opacity:1!important}
button:not(:disabled),a:not([aria-disabled="true"]){opacity:1}
/* QG 2026-09-18 — acesso destacado Campo de Provas */
.qg-campo-featured{border-color:rgba(216,181,90,.72)!important;background:linear-gradient(135deg,rgba(216,181,90,.10),rgba(8,12,9,.96))!important;box-shadow:0 12px 32px rgba(0,0,0,.22)}
.qg-campo-featured strong em{display:inline-block;margin-left:7px;color:#d8b55a;font:800 9px system-ui;letter-spacing:.12em;font-style:normal}
.qg-campo-command-shortcut{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:14px 20px 22px;padding:14px 16px;border:1px solid rgba(216,181,90,.58);border-radius:14px;background:linear-gradient(100deg,rgba(216,181,90,.09),rgba(6,10,8,.96));color:#f3f4f3;text-decoration:none;font:800 11px system-ui;letter-spacing:.08em}.qg-campo-command-shortcut b{color:#d8b55a;white-space:nowrap}

/* Foco global: mantém a tarefa, remove navegação/ruído periférico. */
.qg-global-focus-toggle{position:fixed;right:14px;top:calc(12px + env(safe-area-inset-top));z-index:2147482000;min-width:58px;height:38px;padding:0 12px;border-radius:13px;border:1px solid var(--qg-line,rgba(255,255,255,.15));background:color-mix(in srgb,var(--qg-panel,#0b0f0c) 92%,transparent);color:var(--qg-text-primary,#fff);font:800 11px/1 Inter,-apple-system,sans-serif;letter-spacing:.06em;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
html.qg-global-focus .qg-global-focus-toggle{border-color:#d9ad36;color:#d9ad36}
html.qg-global-focus :where(.qg-dock-official,.dock,.bottom-nav,.bottom-navigation,[data-qg-dock],.ticker,.feed,.radar,.banner,.qg-secondary-nav,.free-top-tools){display:none!important}
html.qg-global-focus body{padding-bottom:max(18px,env(safe-area-inset-bottom))!important}
html.qg-global-focus :where(.decorative,[data-qg-decorative]){display:none!important}
@media(max-width:640px){.qg-global-focus-toggle{right:10px;height:36px;min-width:52px;padding:0 10px}}
/* Campo de Provas — resposta > confiança > resultado > resolução opcional */
.free-result-line{margin-top:14px;padding:12px 14px;border-radius:12px;border:1px solid var(--qg-line);font-size:12px}.free-result-line.ok{border-color:rgba(25,205,142,.55);color:#23d99e}.free-result-line.no{border-color:rgba(239,75,75,.55);color:#ef6666}.free-resolution-toggle{width:100%;margin-top:8px;min-height:44px;border-radius:12px;border:1px solid var(--qg-line);background:transparent;color:var(--qg-text-primary);font-weight:850;text-align:left;padding:0 14px}.free-choice button.correct{border-color:#18d590!important;background:rgba(11,111,76,.34)!important;color:#42e7ad!important;box-shadow:0 0 18px rgba(24,213,144,.16)}.free-choice button.incorrect{border-color:#ef4e4e!important;background:rgba(126,25,25,.30)!important;color:#ff7777!important}.free-confidence button:disabled{opacity:.38}.free-confidence button.on{border-color:#dcb13d!important;color:#e8bf4b!important}
/* Foco contextual: permanece global, mas evita disputar o cabeçalho em telas compactas. */
body.qg-order-briefing .qg-global-focus-toggle,body.qg-command .qg-global-focus-toggle{top:calc(58px + env(safe-area-inset-top))}
@media(max-width:640px){body.qg-order-briefing .qg-global-focus-toggle,body.qg-command .qg-global-focus-toggle{top:calc(54px + env(safe-area-inset-top));right:10px}}
body:where(:not(.mission-resolution)):where(:not(.war-room))>.qg-global-focus-toggle{display:none!important}

/* QG global — textura topográfica aprovada, aplicada às páginas fora do Comando. */
body:not(.qg-command),.phone{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 480'%3E%3Cg fill='none' stroke='%23c6a64a' stroke-width='1.1' opacity='.09'%3E%3Cpath d='M-30 92C45 42 77 134 145 105S226 19 301 57s111 70 208 14M-28 119c73-51 109 41 175 13S233 45 305 82s113 72 207 17M-24 146c71-51 113 41 176 13S239 72 309 108s110 73 204 20M-20 173c70-51 116 41 177 14s89-87 157-52 109 76 202 22M-16 200c68-50 119 41 178 14s90-87 155-53 109 78 199 25M-12 227c67-50 122 41 179 14s91-87 153-54 108 80 196 28M282-28c-47 73 45 100 19 164s-82 101-43 163 77 102 23 211M309-27c-47 70 45 103 18 164s-81 104-43 164 79 101 26 207M336-25c-46 68 45 106 18 164s-80 106-44 165 81 98 30 202M363-23c-45 65 45 109 18 164s-79 108-44 166 83 96 33 197M390-20c-44 62 45 112 18 164s-78 110-45 166 85 94 36 192M417-17c-43 59 46 115 18 164s-77 112-45 167 87 91 39 187'/%3E%3C/g%3E%3C/svg%3E")!important;background-size:520px 520px!important;background-repeat:repeat!important}
