/* Academia Solavista — estilos
   Conceito: app de estudo mobile-first; cartões de aula sobre fundo neutro esverdeado,
   barra inferior de navegação no celular, coluna central de leitura (~720px) no desktop.
   Tokens derivados do design system Solavista v1.0 (verde = marca/ação, laranja = destaque). */
:root {
  --verde-marca: #12A655; --verde-acao: #0D8744; --verde-profundo: #0B5A30; --verde-claro: #E1F3E9;
  --laranja-sol: #E98437; --laranja-texto: #B85A1A; --laranja-claro: #FCE4D0;
  --tinta: #1B2A22; --cinza-texto: #5C6B62; --cinza-apoio: #8A958F; --borda: #D0D7D3;
  --fundo: #F5F7F6; --superficie: #FFFFFF; --superficie-2: #EEF2F0;
  --erro: #B3261E; --erro-claro: #FBE3E1; --sucesso: #0D8744;
  --cc: #E98437; --ca: #12A655; /* cores dos diagramas: corrente contínua / alternada */
  --sombra-1: 0 1px 2px rgba(27,42,34,.08); --sombra-2: 0 4px 12px rgba(27,42,34,.10); --sombra-3: 0 12px 32px rgba(11,90,48,.16);
  --foco: 0 0 0 3px rgba(18,166,85,.40);
  --fonte: "Manrope", "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r-sm: 4px; --r-md: 8px; --r-lg: 16px; --r-pill: 999px;
  --dur: 160ms;
  --nav-h: 64px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --verde-marca: #2BC06E; --verde-acao: #3DCB7D; --verde-profundo: #9BE3B9; --verde-claro: #143A26;
  --laranja-sol: #F09A55; --laranja-texto: #F4AE73; --laranja-claro: #3B2614;
  --tinta: #E7EFEA; --cinza-texto: #A8B6AE; --cinza-apoio: #75837B; --borda: #2C3B33;
  --fundo: #0F1713; --superficie: #17221C; --superficie-2: #1E2B24;
  --erro: #F2867E; --erro-claro: #3A1A18; --sucesso: #3DCB7D;
  --cc: #F09A55; --ca: #2BC06E;
  --sombra-1: 0 1px 2px rgba(0,0,0,.4); --sombra-2: 0 4px 12px rgba(0,0,0,.4); --sombra-3: 0 12px 32px rgba(0,0,0,.5);
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --verde-marca: #2BC06E; --verde-acao: #3DCB7D; --verde-profundo: #9BE3B9; --verde-claro: #143A26;
  --laranja-sol: #F09A55; --laranja-texto: #F4AE73; --laranja-claro: #3B2614;
  --tinta: #E7EFEA; --cinza-texto: #A8B6AE; --cinza-apoio: #75837B; --borda: #2C3B33;
  --fundo: #0F1713; --superficie: #17221C; --superficie-2: #1E2B24;
  --erro: #F2867E; --erro-claro: #3A1A18; --sucesso: #3DCB7D;
  --cc: #F09A55; --ca: #2BC06E;
  --sombra-1: 0 1px 2px rgba(0,0,0,.4); --sombra-2: 0 4px 12px rgba(0,0,0,.4); --sombra-3: 0 12px 32px rgba(0,0,0,.5);
  color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--fonte); font-size: 16px; line-height: 1.6; color: var(--tinta); background: var(--fundo); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--superficie); }
a { color: var(--verde-acao); text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; color: var(--verde-profundo); font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
small { color: var(--cinza-texto); }
button { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--foco); border-radius: var(--r-sm); }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Topo ---------- */
.topo { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--superficie); border-bottom: 1px solid var(--borda); }
.topo-in { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 12px; min-height: 58px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.marca img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: var(--r-md); padding: 2px; }
.marca b { display: block; font-size: 15px; font-weight: 800; color: var(--verde-profundo); line-height: 1.1; }
.marca span { display: block; font-size: 12px; color: var(--cinza-texto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marca > div { min-width: 0; }
.topo-pts { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--cinza-texto); white-space: nowrap; }
.topo-pts .pill { background: var(--laranja-claro); color: var(--laranja-texto); padding: 4px 10px; border-radius: var(--r-pill); font-variant-numeric: tabular-nums; }
.nav-desk { display: none; gap: 4px; margin-left: 16px; }
.nav-desk a { text-decoration: none; color: var(--cinza-texto); font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: var(--r-md); }
.nav-desk a[aria-current="page"], .nav-desk a:hover { color: var(--verde-profundo); background: var(--verde-claro); }

/* ---------- Navegação inferior ---------- */
.nav-mob { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--superficie); border-top: 1px solid var(--borda);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 4px max(4px, env(safe-area-inset-right, 0px)) calc(4px + env(safe-area-inset-bottom, 0px)) max(4px, env(safe-area-inset-left, 0px)); }
.nav-mob a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; text-decoration: none; color: var(--cinza-texto); font-size: 11px; font-weight: 700; border-radius: var(--r-md); min-height: 52px; justify-content: center; }
.nav-mob a[aria-current="page"] { color: var(--verde-acao); background: var(--verde-claro); }
@media (min-width: 900px) { .nav-mob { display: none; } .nav-desk { display: flex; } }

/* ---------- Página ---------- */
main { max-width: 760px; margin: 0 auto; padding-block: 20px calc(var(--nav-h) + 40px + env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 900px) { main { padding-bottom: 64px; } main.largo { max-width: 1040px; } }
.pilha { display: flex; flex-direction: column; gap: 16px; }
.pilha > * { min-width: 0; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--laranja-texto); }
.lead { color: var(--cinza-texto); font-size: 17px; }
.raio { height: 3px; width: 48px; background: var(--laranja-sol); transform: skewX(-45deg); }
.secao-tit { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 8px; }
.secao-tit h2 { font-size: 20px; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--r-md);
  font-weight: 700; font-size: 16px; cursor: pointer; border: 1.5px solid transparent; text-decoration: none; text-align: center; line-height: 1.2;
  transition: background var(--dur), border-color var(--dur), color var(--dur); }
.btn-primario { background: var(--verde-acao); color: #fff; }
.btn-primario:hover { background: var(--verde-profundo); }
:root[data-theme="dark"] .btn-primario { color: #0F1713; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primario { color: #0F1713; } :root:not([data-theme="light"]) .btn-primario:hover { background: var(--verde-marca); } }
.btn-sol { background: var(--laranja-sol); color: #1B2A22; }
.btn-sol:hover { filter: brightness(.94); }
.btn-sec { background: var(--superficie); color: var(--verde-acao); border-color: var(--verde-acao); }
.btn-sec:hover { background: var(--verde-claro); }
.btn-fant { background: transparent; color: var(--verde-acao); }
.btn-fant:hover { background: var(--verde-claro); }
.btn[disabled] { background: var(--superficie-2); color: var(--cinza-apoio); border-color: transparent; cursor: not-allowed; filter: none; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-bloco { width: 100%; }
.linha-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Cartões e superfícies ---------- */
.card { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sombra-1); }
.card-dest { border: 2px solid var(--verde-marca); box-shadow: var(--sombra-3); }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-verde { background: var(--verde-claro); color: var(--verde-profundo); }
.tag-sol { background: var(--laranja-claro); color: var(--laranja-texto); }
.tag-neutra { background: var(--superficie-2); color: var(--cinza-texto); }
.tag-erro { background: var(--erro-claro); color: var(--erro); }

/* ---------- Início ---------- */
.hero { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 24px 20px; color: #fff;
  background: linear-gradient(135deg, #0B5A30 0%, #0D8744 70%, #12A655 100%); }
.hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; opacity: .14;
  background-image: linear-gradient(#fff 1.5px, transparent 1.5px), linear-gradient(90deg, #fff 1.5px, transparent 1.5px); background-size: 22px 22px; transform: rotate(-12deg); border-radius: 12px; }
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { color: #FCE4D0; }
.hero h1 { color: #fff; font-size: clamp(26px, 6vw, 36px); margin: 8px 0 10px; }
.hero p { color: #E1F3E9; max-width: 52ch; }
.hero .frase { margin-top: 14px; font-weight: 700; color: #fff; border-left: 3px solid var(--laranja-sol); padding-left: 12px; font-size: 15px; }
.hero .linha-btns { margin-top: 18px; }
.hero .btn-sec { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.hero .btn-sec:hover { background: rgba(255,255,255,.12); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--r-lg); padding: 14px 16px; }
.stat b { display: block; font-size: 24px; font-weight: 800; color: var(--verde-profundo); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--cinza-texto); }
.nivel { display: flex; gap: 14px; align-items: center; }
.anel { --p: 0; width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--verde-marca) calc(var(--p) * 1%), var(--superficie-2) 0); }
.anel span { width: 50px; height: 50px; border-radius: 50%; background: var(--superficie); display: grid; place-items: center; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--verde-profundo); }
.niveis { display: flex; gap: 4px; margin-top: 8px; }
.niveis i { flex: 1; height: 6px; border-radius: 3px; background: var(--superficie-2); }
.niveis i.on { background: var(--laranja-sol); }
.motiv-card { background: var(--laranja-claro); border-radius: var(--r-lg); padding: 16px 18px; }
.motiv-card p { font-weight: 700; color: var(--tinta); font-size: 16px; }
.motiv-card small { display: block; margin-top: 6px; color: var(--laranja-texto); font-weight: 700; }
.conquistas { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.conq { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: var(--r-md); border: 1px dashed var(--borda); color: var(--cinza-apoio); font-size: 13px; font-weight: 700; }
.conq.on { border-style: solid; border-color: var(--laranja-sol); background: var(--laranja-claro); color: var(--laranja-texto); }

/* ---------- Trilhas e módulos ---------- */
.trilha { display: flex; flex-direction: column; gap: 10px; }
.trilha-cab { display: flex; gap: 12px; align-items: center; }
.trilha-cab .num { width: 40px; height: 40px; border-radius: var(--r-md); background: var(--verde-profundo); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
:root[data-theme="dark"] .trilha-cab .num { color: #0F1713; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .trilha-cab .num { color: #0F1713; } }
.trilha-cab h2 { font-size: 18px; }
.trilha-cab p { font-size: 14px; color: var(--cinza-texto); }
.mod-item { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 14px; background: var(--superficie);
  border: 1px solid var(--borda); border-radius: var(--r-lg); text-decoration: none; color: inherit; transition: border-color var(--dur), box-shadow var(--dur); }
.mod-item:hover { border-color: var(--verde-marca); box-shadow: var(--sombra-2); }
.mod-item .ic { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--verde-claro); color: var(--verde-acao); display: grid; place-items: center; }
.mod-item.feito .ic { background: var(--verde-acao); color: #fff; }
.mod-item h3 { font-size: 15px; color: var(--tinta); }
.mod-item small { font-size: 12.5px; }
.mod-item > div { min-width: 0; }
.barra { height: 6px; border-radius: 3px; background: var(--superficie-2); overflow: hidden; margin-top: 6px; }
.barra i { display: block; height: 100%; background: var(--verde-marca); border-radius: 3px; transition: width .3s; }
.mod-item .ic svg { width: 22px; height: 22px; }

/* ---------- Visualizador de módulo ---------- */
.mod-topo { display: flex; flex-direction: column; gap: 10px; }
.mod-topo .voltar { align-self: flex-start; }
.segs { display: flex; gap: 3px; }
.segs i { flex: 1; height: 5px; border-radius: 3px; background: var(--superficie-2); }
.segs i.ok { background: var(--verde-marca); }
.segs i.atual { background: var(--laranja-sol); }
.tela { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--r-lg); padding: 22px 20px; box-shadow: var(--sombra-1); display: flex; flex-direction: column; gap: 16px; }
.tela > * { min-width: 0; }
.tela h2 { font-size: 22px; }
.tela h3 { font-size: 17px; color: var(--tinta); margin-top: 4px; }
.tela ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.rodape-mod { position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px)); z-index: 5; display: flex; gap: 10px; padding: 10px 0; background: linear-gradient(transparent, var(--fundo) 30%); }
@media (min-width: 900px) { .rodape-mod { bottom: 0; } }
.rodape-mod .btn { flex: 1; }
.abertura { background: linear-gradient(135deg, var(--verde-profundo), var(--verde-acao)); color: #fff; border: 0; }
:root[data-theme="dark"] .abertura { background: linear-gradient(135deg, #0B5A30, #0D8744); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .abertura { background: linear-gradient(135deg, #0B5A30, #0D8744); } }
.abertura h2, .abertura .eyebrow { color: #fff; }
.abertura .eyebrow { color: #FCE4D0; }
.abertura p { color: #E1F3E9; }
.abertura .gancho { font-size: 18px; font-weight: 700; color: #fff; border-left: 3px solid #E98437; padding-left: 12px; }
.abertura .objetivo { background: rgba(255,255,255,.1); border-radius: var(--r-md); padding: 12px 14px; font-size: 15px; }
.abertura .ico-grande { width: 56px; height: 56px; border-radius: var(--r-lg); background: rgba(255,255,255,.14); display: grid; place-items: center; }
.abertura .ico-grande .ico { width: 30px; height: 30px; color: #fff; }

/* ---------- Blocos de conteúdo ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .cards.c2, .cards.c4, .cards.c6, .cards.c8 { grid-template-columns: repeat(2, 1fr); } .cards.c3 { grid-template-columns: repeat(3, 1fr); } }
.mini { background: var(--superficie-2); border-radius: var(--r-md); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.mini .t { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--verde-profundo); font-size: 15px; }
.mini .t .ico { color: var(--verde-acao); width: 20px; height: 20px; }
.mini p { font-size: 14.5px; color: var(--tinta); }
.destaque { display: flex; gap: 10px; padding: 14px; border-radius: var(--r-md); font-size: 15px; }
.destaque .ico { margin-top: 2px; }
.destaque.tip { background: var(--verde-claro); color: var(--tinta); }
.destaque.tip .ico { color: var(--verde-acao); }
.destaque.warn { background: var(--laranja-claro); color: var(--tinta); }
.destaque.warn .ico { color: var(--laranja-texto); }
.motiv { font-weight: 800; color: var(--verde-profundo); font-size: 17px; padding: 6px 0 6px 14px; border-left: 4px solid var(--laranja-sol); }
.citacao { background: var(--superficie-2); border-radius: var(--r-md); padding: 16px; }
.citacao p { font-size: 19px; font-weight: 800; color: var(--verde-profundo); }
.citacao small { display: block; margin-top: 8px; font-size: 13px; }
.tab-wrap { overflow-x: auto; border: 1px solid var(--borda); border-radius: var(--r-md); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--borda); vertical-align: top; }
th { background: var(--verde-profundo); color: #fff; font-weight: 700; white-space: nowrap; }
:root[data-theme="dark"] th { background: #0B5A30; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) th { background: #0B5A30; } }
tbody tr:nth-child(even) td { background: var(--superficie-2); }
tr:last-child td { border-bottom: 0; }
.passos { list-style: none; margin: 0; padding: 0 !important; display: flex; flex-direction: column; gap: 10px !important; counter-reset: p; }
.passos li { counter-increment: p; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.passos li::before { content: counter(p); width: 32px; height: 32px; border-radius: 50%; background: var(--laranja-claro); color: var(--laranja-texto); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.passos b { display: block; color: var(--tinta); }
.passos span { font-size: 14.5px; color: var(--cinza-texto); }
.dialogo { display: flex; flex-direction: column; gap: 8px; }
.fala { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 15px; }
.fala b { display: block; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2px; }
.fala.rep { align-self: flex-end; background: var(--verde-claro); border-bottom-right-radius: 4px; }
.fala.rep b { color: var(--verde-acao); }
.fala.cli { align-self: flex-start; background: var(--superficie-2); border-bottom-left-radius: 4px; }
.fala.cli b { color: var(--laranja-texto); }

/* ---------- Escolhas, quiz ---------- */
.situacao { background: var(--superficie-2); border-radius: var(--r-md); padding: 14px; font-size: 15.5px; }
.situacao b { color: var(--laranja-texto); display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.opcoes { display: flex; flex-direction: column; gap: 10px; }
.opcao { text-align: left; background: var(--superficie); border: 1.5px solid var(--borda); border-radius: var(--r-md); padding: 14px; cursor: pointer; font-size: 15px; line-height: 1.45; display: flex; gap: 10px; align-items: flex-start; transition: border-color var(--dur), background var(--dur); min-height: 48px; }
.opcao:hover:not([disabled]) { border-color: var(--verde-marca); }
.opcao .letra { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--borda); display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--cinza-texto); }
.opcao.certa { border-color: var(--sucesso); background: var(--verde-claro); }
.opcao.certa .letra { background: var(--sucesso); border-color: var(--sucesso); color: #fff; }
.opcao.errada { border-color: var(--erro); background: var(--erro-claro); }
.opcao.errada .letra { background: var(--erro); border-color: var(--erro); color: #fff; }
.opcao[disabled] { cursor: default; }
.opcao.sel { border-color: var(--verde-acao); background: var(--verde-claro); }
.feedback { border-radius: var(--r-md); padding: 12px 14px; font-size: 15px; }
.feedback.bom { background: var(--verde-claro); }
.feedback.mau { background: var(--erro-claro); }
.feedback b { display: block; margin-bottom: 2px; }
.feedback.bom b { color: var(--sucesso); }
.feedback.mau b { color: var(--erro); }
.quiz-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--cinza-texto); }
.placar { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.placar .big { font-size: 48px; font-weight: 800; color: var(--verde-profundo); font-variant-numeric: tabular-nums; line-height: 1; }
.lembrar { list-style: none; padding: 0 !important; }
.lembrar li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--borda); }
.lembrar li:last-child { border-bottom: 0; }
.lembrar .ico { color: var(--verde-acao); width: 22px; height: 22px; }

/* ---------- Widgets ---------- */
.wg { border: 1px solid var(--borda); border-radius: var(--r-lg); padding: 16px; background: var(--superficie); display: flex; flex-direction: column; gap: 14px; }
.wg > * { min-width: 0; }
.wg-tit { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--laranja-texto); display: flex; align-items: center; gap: 6px; }
.seg-ctl { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-ctl button { flex: 1 1 auto; min-height: 42px; padding: 0 12px; border-radius: var(--r-md); border: 1.5px solid var(--borda); background: var(--superficie); font-weight: 700; font-size: 14px; cursor: pointer; color: var(--cinza-texto); }
.seg-ctl button[aria-pressed="true"] { border-color: var(--verde-acao); background: var(--verde-claro); color: var(--verde-profundo); }
.svg-box { width: 100%; overflow-x: auto; }
.svg-box svg { display: block; width: 100%; height: auto; min-width: 300px; }
.svg-box text { font-family: var(--fonte); }
.leg { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--cinza-texto); }
.leg i { display: inline-block; width: 18px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.explica { background: var(--superficie-2); border-radius: var(--r-md); padding: 12px 14px; font-size: 15px; }
.campos { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .campos { grid-template-columns: repeat(2, 1fr); } }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label { font-weight: 700; font-size: 14px; }
.campo input, .campo select, .campo textarea { font: inherit; font-size: 16px; min-height: 46px; padding: 0 12px; border: 1.5px solid var(--borda); border-radius: var(--r-md); background: var(--superficie); color: var(--tinta); width: 100%; }
.campo textarea { padding: 10px 12px; min-height: 110px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--verde-marca); box-shadow: var(--foco); }
.campo .ajuda { font-size: 12.5px; color: var(--cinza-texto); }
.campo input[type="range"] { padding: 0; min-height: 32px; border: 0; accent-color: var(--verde-acao); }
.resultados { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .resultados.r3 { grid-template-columns: repeat(3, 1fr); } .resultados.r4 { grid-template-columns: repeat(4, 1fr); } }
.res { background: var(--verde-claro); border-radius: var(--r-md); padding: 12px; }
.res b { display: block; font-size: 22px; font-weight: 800; color: var(--verde-profundo); font-variant-numeric: tabular-nums; line-height: 1.15; }
.res span { font-size: 12.5px; color: var(--cinza-texto); }
.aviso-edu { font-size: 13px; font-weight: 700; color: var(--laranja-texto); background: var(--laranja-claro); border-radius: var(--r-md); padding: 8px 12px; }
.fatura { border: 1px solid var(--borda); border-radius: var(--r-md); overflow: hidden; font-size: 13px; background: var(--superficie); }
.fat-cab { background: var(--superficie-2); padding: 10px 12px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.hot { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px dashed var(--borda); background: transparent; padding: 10px 12px; cursor: pointer; position: relative; }
.hot:hover, .hot.ativo { background: var(--laranja-claro); }
.hot .pin { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--laranja-sol); color: #1B2A22; font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.hot .row { display: flex; justify-content: space-between; gap: 12px; padding-right: 30px; }
.hot .row span:last-child { font-variant-numeric: tabular-nums; font-weight: 700; }
.hot.visto .pin { background: var(--verde-acao); color: #fff; }
.grade-mod { display: grid; gap: 6px; }
.modbtn { aspect-ratio: 3 / 4; border-radius: 4px; border: 2px solid #0B5A30; background: linear-gradient(160deg, #234a7a, #10304f); cursor: pointer; position: relative; padding: 0; color: #fff; font-size: 11px; font-weight: 800; max-width: 100%; }
.modbtn::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px); background-size: 33.3% 25%; }
.modbtn.s1::after { content: ""; position: absolute; inset: 0; background: rgba(40,40,40,.45); }
.modbtn.s2::after { content: ""; position: absolute; inset: 0; background: rgba(20,20,20,.78); }
.modbtn span { position: relative; z-index: 1; }
.barras-ctx { display: flex; flex-direction: column; gap: 8px; }
.barra-l { display: grid; grid-template-columns: 130px 1fr 54px; align-items: center; gap: 10px; font-size: 13.5px; }
.barra-l .trilho { height: 14px; border-radius: 7px; background: var(--superficie-2); overflow: hidden; }
.barra-l .trilho i { display: block; height: 100%; border-radius: 7px; transition: width .35s; }
.barra-l b { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .barra-l { grid-template-columns: 96px 1fr 48px; font-size: 12.5px; } }
.monitor-grade { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mon { border-radius: 6px; padding: 10px 4px; text-align: center; cursor: pointer; border: 2px solid transparent; font-size: 12px; font-weight: 700; color: #fff; min-height: 56px; display: flex; flex-direction: column; justify-content: center; }
.mon b { font-size: 15px; font-variant-numeric: tabular-nums; }
.mon.alvo-ok { border-color: var(--tinta); }
.casa-sim { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.carga { display: flex; gap: 8px; align-items: center; padding: 10px; border-radius: var(--r-md); font-size: 14px; font-weight: 700; background: var(--superficie-2); color: var(--cinza-apoio); }
.carga.on { background: var(--verde-claro); color: var(--verde-profundo); }
.carga .luz { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.linha-tempo { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.linha-tempo button { flex: none; min-width: 74px; min-height: 64px; border-radius: var(--r-md); border: 1.5px solid var(--borda); background: var(--superficie); cursor: pointer; padding: 6px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.linha-tempo button b { font-size: 15px; color: var(--tinta); }
.linha-tempo button span { font-size: 12px; font-weight: 800; color: var(--laranja-texto); font-variant-numeric: tabular-nums; }
.linha-tempo button[aria-pressed="true"] { border-color: var(--laranja-sol); background: var(--laranja-claro); }
.acordeao { display: flex; flex-direction: column; gap: 8px; }
.acordeao details { border: 1px solid var(--borda); border-radius: var(--r-md); background: var(--superficie); }
.acordeao summary { cursor: pointer; padding: 14px; font-weight: 800; display: flex; gap: 10px; align-items: center; list-style: none; min-height: 48px; }
.acordeao summary::-webkit-details-marker { display: none; }
.acordeao summary .n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--laranja-claro); color: var(--laranja-texto); display: grid; place-items: center; font-size: 12px; }
.acordeao summary::after { content: "+"; margin-left: auto; font-size: 20px; color: var(--cinza-texto); }
.acordeao details[open] summary::after { content: "–"; }
.acordeao .corpo { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.acordeao .corpo h4 { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--laranja-texto); margin-bottom: 2px; }
.case-grade { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .case-grade { grid-template-columns: repeat(2, 1fr); } }
.case { border: 1px solid var(--borda); border-radius: var(--r-lg); overflow: hidden; background: var(--superficie); display: flex; flex-direction: column; }
.case .foto { aspect-ratio: 16 / 10; max-width: 100%; background: linear-gradient(135deg, #0B5A30, #12A655); position: relative; display: grid; place-items: center; color: rgba(255,255,255,.8); }
.case .foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case .foto .ico { width: 40px; height: 40px; }
.case .corpo { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.case h3 { font-size: 17px; color: var(--tinta); }
.case .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.case .nums div { background: var(--superficie-2); border-radius: var(--r-sm); padding: 6px 8px; }
.case .nums b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--verde-profundo); }
.case .nums span { font-size: 11px; color: var(--cinza-texto); }
.case .uso { font-size: 13.5px; color: var(--cinza-texto); }
.case .btn { margin-top: auto; }
.filtros { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { min-height: 38px; padding: 0 14px; border-radius: var(--r-pill); border: 1.5px solid var(--borda); background: var(--superficie); font-weight: 700; font-size: 13.5px; cursor: pointer; color: var(--cinza-texto); }
.chip[aria-pressed="true"] { background: var(--verde-acao); color: #fff; border-color: var(--verde-acao); }
.check-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--borda); border-radius: var(--r-md); cursor: pointer; background: var(--superficie); text-align: left; width: 100%; }
.check-item .cx { flex: none; width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--verde-marca); display: grid; place-items: center; }
.check-item[aria-pressed="true"] { border-color: var(--verde-acao); background: var(--verde-claro); }
.check-item[aria-pressed="true"] .cx { background: var(--verde-acao); color: #fff; }
.check-item .cx .ico { width: 16px; height: 16px; }
.check-item b { display: block; font-size: 15px; }
.check-item span { font-size: 13.5px; color: var(--cinza-texto); }

/* ---------- Ferramentas ---------- */
.ferr-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.ferr-tabs a { flex: none; text-decoration: none; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1.5px solid var(--borda); display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--cinza-texto); background: var(--superficie); }
.ferr-tabs a[aria-current="page"] { background: var(--verde-acao); border-color: var(--verde-acao); color: #fff; }
.ferr-tabs a .ico { width: 18px; height: 18px; }
.glos { display: flex; flex-direction: column; }
.glos div { padding: 12px 0; border-bottom: 1px solid var(--borda); }
.glos b { color: var(--verde-profundo); }
.glos p { font-size: 14.5px; color: var(--tinta); }
.script { border: 1px solid var(--borda); border-radius: var(--r-md); padding: 14px; background: var(--superficie); display: flex; flex-direction: column; gap: 10px; }
.script pre { margin: 0; white-space: pre-wrap; font-family: var(--fonte); font-size: 14.5px; background: var(--superficie-2); padding: 12px; border-radius: var(--r-md); }
.script .cab { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.lib { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--borda); border-radius: var(--r-md); text-decoration: none; color: inherit; background: var(--superficie); }
.lib:hover { border-color: var(--verde-marca); }
.lib .ico { color: var(--verde-acao); margin-top: 2px; }
.lib b { color: var(--tinta); }
.lib p { font-size: 13.5px; color: var(--cinza-texto); }
.lib small { font-size: 12px; word-break: break-all; }

/* ---------- Laboratório ---------- */
.persona-grade { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .persona-grade { grid-template-columns: repeat(2, 1fr); } }
.persona { text-align: left; display: flex; gap: 12px; padding: 16px; border: 1.5px solid var(--borda); border-radius: var(--r-lg); background: var(--superficie); cursor: pointer; }
.persona:hover { border-color: var(--verde-marca); }
.persona .av { font-size: 28px; width: 52px; height: 52px; border-radius: 50%; background: var(--laranja-claro); display: grid; place-items: center; flex: none; }
.persona b { display: block; font-size: 16px; }
.persona span { font-size: 13.5px; color: var(--cinza-texto); }
.chat { display: flex; flex-direction: column; gap: 8px; }
.crit { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Certificado ---------- */
.cert { background: #fff; color: #1B2A22; border: 2px solid #0B5A30; border-radius: 8px; padding: 28px 22px; position: relative; overflow: hidden; text-align: center; }
.cert::before { content: ""; position: absolute; inset: 8px; border: 1px solid #E98437; border-radius: 4px; pointer-events: none; }
.cert img { width: 90px; margin: 0 auto 8px; display: block; }
.cert .t1 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: #B85A1A; }
.cert h2 { color: #0B5A30; font-size: 24px; margin: 8px 0; }
.cert .nome { font-size: 26px; font-weight: 800; color: #1B2A22; border-bottom: 2px solid #12A655; display: inline-block; padding: 4px 12px; margin: 10px 0; }
.cert p { font-size: 14px; color: #5C6B62; max-width: 52ch; margin: 0 auto; }
.cert .dados { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 18px; font-size: 12.5px; color: #1B2A22; text-align: left; }
.cert .dados div { background: #F5F7F6; border-radius: 4px; padding: 8px 10px; }
.cert .dados b { display: block; font-size: 11px; color: #5C6B62; text-transform: uppercase; letter-spacing: .06em; }
.cert .nota { margin-top: 14px; font-size: 11px; color: #8A958F; }
@media print {
  body { background: #fff; } body::before { display: none; }
  .topo, .nav-mob, .nao-imprimir, .rodape-mod { display: none !important; }
  main { padding: 0; max-width: none; }
  .cert { border-width: 2px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { size: A4 landscape; margin: 12mm; }
}

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  background: var(--tinta); color: var(--fundo); padding: 12px 18px; border-radius: var(--r-md); font-weight: 700; font-size: 14px; box-shadow: var(--sombra-3); max-width: calc(100% - 32px); }
@media (min-width: 900px) { .toast { bottom: 24px; } }
.fade-in { animation: entra .22s ease-out; }
@keyframes entra { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
