/* =====================================================================
   Café com Dados — sistema visual (v3)
   Identidade: azul-marinho profundo + brasa (laranja de ação) + camadas
   isométricas de dados nas ilustrações (web/assets, geradas por
   tools/gerar_assets.py). Marinho e brasa têm presença nas áreas de
   destaque (navegação, heróis, capas); leitura e estudo ficam calmos.
   Espaço: 4 · 8 · 12 · 16 · 24 · 32 · 48 · 64   Raio: 6 · 10 · 14 · 20
   ===================================================================== */
:root {
  --marinho-0: #070d1a;
  --marinho-1: #0b1426;
  --marinho-2: #12203d;
  --marinho-3: #1b2d55;
  --marinho-ink: #eef2fa;
  --marinho-muted: #9fb0cf;
  --marinho-linha: rgba(143, 176, 255, .14);
  --brasa: #ff6a3d;
  --azul-marca: #4f7cff;

  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #eef1f6;
  --surface-3: #e0e5ee;
  --ink: #0d1526;
  --ink-2: #364058;
  --muted: #5d6880;
  --line: #e1e6ee;
  --line-strong: #c9d1df;

  --acao: #c4401a;
  --acao-hover: #a93613;
  --acao-ink: #ffffff;
  --accent: #2f56d6;
  --accent-hover: #2445b3;
  --accent-ink: #ffffff;
  --accent-soft: #eaf0ff;

  --ok: #13784b;
  --ok-soft: #e4f4ec;
  --bad: #b4322a;
  --bad-soft: #fbeceb;
  --warn: #965500;
  --warn-soft: #fbf0dc;

  --code-bg: #0b1324;
  --code-ink: #e2e8f5;
  --shadow-1: 0 1px 2px rgba(13, 21, 38, .06);
  --shadow-2: 0 1px 2px rgba(13, 21, 38, .05), 0 10px 30px -14px rgba(13, 21, 38, .25);
  --shadow-acao: 0 8px 22px -10px rgba(196, 64, 26, .7);
  --r: 10px;
  --r-s: 6px;
  --r-l: 14px;
  --r-xl: 20px;
  --leitura: 720px;
  --fonte: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fonte-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --fonte-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --ico-acento: var(--brasa);
  color-scheme: light;
  interpolate-size: allow-keywords;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080e1b; --surface: #0f182c; --surface-2: #15213a; --surface-3: #1f2d4b;
    --ink: #e9eef8; --ink-2: #c3cde0; --muted: #8e9bb6; --line: #1c2943; --line-strong: #2c3c60;
    --acao: #ff6a3d; --acao-hover: #ff8459; --acao-ink: #1a0904;
    --accent: #87a5ff; --accent-hover: #a5bcff; --accent-ink: #081022; --accent-soft: #18264a;
    --ok: #5cc994; --ok-soft: #10291e; --bad: #ff8a80; --bad-soft: #34171a; --warn: #f0b153; --warn-soft: #2f240f;
    --code-bg: #060b16;
    --shadow-1: 0 1px 2px rgba(0,0,0,.4); --shadow-2: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -16px rgba(0,0,0,.8);
    --shadow-acao: 0 8px 24px -10px rgba(255, 106, 61, .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #080e1b; --surface: #0f182c; --surface-2: #15213a; --surface-3: #1f2d4b;
  --ink: #e9eef8; --ink-2: #c3cde0; --muted: #8e9bb6; --line: #1c2943; --line-strong: #2c3c60;
  --acao: #ff6a3d; --acao-hover: #ff8459; --acao-ink: #1a0904;
  --accent: #87a5ff; --accent-hover: #a5bcff; --accent-ink: #081022; --accent-soft: #18264a;
  --ok: #5cc994; --ok-soft: #10291e; --bad: #ff8a80; --bad-soft: #34171a; --warn: #f0b153; --warn-soft: #2f240f;
  --code-bg: #060b16;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4); --shadow-2: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -16px rgba(0,0,0,.8);
  --shadow-acao: 0 8px 24px -10px rgba(255, 106, 61, .55);
  color-scheme: dark;
}

/* ===== Base e tipografia ===== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--fonte); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; color: var(--ink); }
h1 { font-family: var(--fonte-display); font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -.02em; }
h2 { font-family: var(--fonte-display); font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 16px; font-weight: 650; }
h4 { font-size: 15px; font-weight: 650; }
p { margin: 0 0 .8em; }
a { color: var(--accent); text-underline-offset: 2px; }
code { font-family: var(--fonte-mono); font-size: .87em; background: var(--surface-2); padding: .12em .38em; border-radius: 4px; }
pre code { background: none; padding: 0; border-radius: 0; font-size: inherit; }
/* palavras longas (códigos de erro, nomes de configuração) quebram em vez de alargar a página */
.enun, .alt, .exp, .bloco p, .bloco li, .destaque, .lead, .porque, .corpo-texto, .linhas .t { overflow-wrap: anywhere; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-s); }
svg { flex: none; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pular { position: absolute; left: -999px; top: 8px; background: var(--acao); color: var(--acao-ink); padding: 8px 12px; border-radius: var(--r-s); z-index: 50; }
.pular:focus { left: 8px; }
.muted { color: var(--muted); }
.pequeno { font-size: 13px; }
.sobrelinha { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Carregamento: esqueleto em vez de texto */
.carregando { display: grid; gap: 16px; padding: 8px 0; color: transparent; }
.carregando::before, .carregando::after { content: ""; display: block; border-radius: var(--r-l); background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: brilho 1.3s linear infinite; }
.carregando::before { height: 180px; }
.carregando::after { height: 320px; }
@keyframes brilho { to { background-position: -200% 0; } }

/* ===== Estrutura e navegação (marinho em qualquer tema) ===== */
.app { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.lateral { position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; padding: 22px 16px 16px; background: var(--marinho-1); background-image: radial-gradient(120% 50% at 0% 0%, rgba(79, 124, 255, .16), transparent 60%); color: var(--marinho-ink); display: flex; flex-direction: column; gap: 22px; }
.marca { display: flex; gap: 12px; align-items: center; padding: 0 6px; color: inherit; text-decoration: none; }
.marca img { width: 38px; height: 38px; display: block; }
.marca strong { display: block; font-family: var(--fonte-display); font-size: 17px; font-weight: 700; line-height: 1.15; color: #fff; }
.marca small { color: var(--marinho-muted); font-size: 12px; }
.rotulo-nav { display: block; padding: 0 12px 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #7486ab; }
.lateral nav { display: flex; flex-direction: column; gap: 2px; }
.lateral nav a, .tema { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; color: #b9c5de; text-decoration: none; font-weight: 500; border: 0; background: none; cursor: pointer; text-align: left; transition: background .15s, color .15s; }
.lateral nav a svg, .tema svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lateral nav a:hover, .tema:hover { background: rgba(143, 176, 255, .08); color: #fff; }
.lateral nav a.ativo { background: linear-gradient(90deg, rgba(255, 106, 61, .18), rgba(255, 106, 61, .04)); color: #fff; font-weight: 600; }
.lateral nav a.ativo::before { content: ""; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brasa); }
.lateral nav a.ativo svg { color: var(--brasa); }
.lateral :focus-visible { outline-color: var(--brasa); }
.nav-secundaria { margin-top: auto; }
.nav-secundaria a, .tema { font-size: 14px; }
.so-celular { display: none !important; }
main { padding: 36px clamp(16px, 3.4vw, 48px) 96px; max-width: 1280px; width: 100%; min-width: 0; outline: none; }

/* Curso atual na barra lateral (leva ao catálogo) */
.curso-atual { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-l); background: rgba(143, 176, 255, .06); border: 1px solid var(--marinho-linha); color: inherit; text-decoration: none; transition: background .15s, border-color .15s; }
.curso-atual:hover { background: rgba(143, 176, 255, .1); border-color: rgba(143, 176, 255, .28); }
.curso-atual img { width: 56px; height: 36px; object-fit: cover; border-radius: 6px; display: block; }
.curso-atual .n { font-weight: 600; font-size: 13.5px; color: #fff; line-height: 1.25; display: block; }
.curso-atual .t { font-size: 12px; color: var(--marinho-muted); }

@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .lateral { position: fixed; inset: auto 0 0 0; height: auto; overflow: visible; flex-direction: row; padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); z-index: 20; gap: 0; background-image: none; }
  .marca, .lateral-curso, .lateral .nav-secundaria, .tema, .so-desktop { display: none !important; }
  .so-celular { display: flex !important; }
  .lateral .nav-principal { flex-direction: row; flex: 1; justify-content: space-around; }
  .lateral .nav-principal a { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 3px; font-size: 11px; padding: 7px 2px; }
  .nav-principal a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .lateral nav a.ativo { background: none; }
  .lateral nav a.ativo::before { left: 30%; right: 30%; top: -4px; bottom: auto; width: auto; height: 3px; border-radius: 0 0 3px 3px; }
  main { padding: 20px 16px 112px; }
}

/* ===== Botões ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; min-height: 42px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14.5px; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--surface-2); border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primario { background: var(--acao); border-color: var(--acao); color: var(--acao-ink); }
.btn.primario:hover { background: var(--acao-hover); border-color: var(--acao-hover); transform: translateY(-1px); box-shadow: var(--shadow-acao); }
.btn.primario[disabled]:hover { background: var(--acao); transform: none; box-shadow: none; }
.btn.fantasma { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.fantasma:hover { background: var(--surface-2); color: var(--ink); }
.btn.pequeno { padding: 6px 12px; min-height: 34px; font-size: 13.5px; }
.btn .ic { width: 16px; height: 16px; transition: transform .15s; }
.btn:hover .ic { transform: translateX(2px); }
.btn.vidro { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); color: #fff; }
.btn.vidro:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }
.link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; font-size: 14px; }
.link:hover { text-decoration: underline; }
.link .ic { width: 15px; height: 15px; }
.acoes { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ===== Elementos comuns ===== */
.cabeca { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 32px; }
.cabeca p { color: var(--muted); margin: 8px 0 0; max-width: 64ch; }
.cabeca-ico { display: flex; gap: 16px; align-items: center; }
.migalha { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.migalha a { color: var(--muted); text-decoration: none; }
.migalha a:hover { color: var(--ink); text-decoration: underline; }
.migalha .sep { opacity: .5; }
.secao { margin-top: 48px; }
.secao-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.secao-cab > div:first-child { flex: 1 1 240px; min-width: 0; }
.secao-cab p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.caixa { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 24px; box-shadow: var(--shadow-1); }
.grade { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grade > * { min-width: 0; }
@media (max-width: 760px) { .g2 { grid-template-columns: 1fr; } .caixa { padding: 18px; } }

.etq { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.etq .ic { width: 15px; height: 15px; }
.etq.ok { color: var(--ok); } .etq.warn { color: var(--warn); } .etq.bad { color: var(--bad); } .etq.acc { color: var(--accent); }
.selo { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 99px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.2); color: #dbe4f7; background: rgba(255,255,255,.06); }
.selo .ponto { width: 6px; height: 6px; border-radius: 50%; background: var(--brasa); box-shadow: 0 0 10px var(--brasa); }

.aviso { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); margin-bottom: 16px; font-size: 14.5px; }
.aviso > .ic { margin-top: 2px; color: var(--muted); }
.aviso.warn { background: var(--warn-soft); } .aviso.warn > .ic { color: var(--warn); }
.aviso.bad { background: var(--bad-soft); } .aviso.bad > .ic { color: var(--bad); }
.aviso.acc { background: var(--accent-soft); } .aviso.acc > .ic { color: var(--accent); }
.aviso strong { display: block; }
.aviso p { margin: 2px 0 0; }
.vazio { color: var(--muted); padding: 96px 20px 20px; border: 1px dashed var(--line-strong); border-radius: var(--r); font-size: 14.5px; text-align: center; background: url("assets/illustrations/vazio.svg") center 12px / 150px auto no-repeat; }

/* Progresso */
.barra { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.barra > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #6b8fff); transform-origin: left; animation: crescer .8s cubic-bezier(.2, .8, .2, 1) both; }
.barra.ok > i { background: var(--ok); }
.barra.fina { height: 4px; }
@keyframes crescer { from { transform: scaleX(0); } }
.progresso-linha { display: flex; align-items: center; gap: 14px; }
.progresso-linha .barra { flex: 1; }
.progresso-linha .num { font-size: 13.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.anel { display: block; }
.anel .trilho { stroke: var(--surface-3); }
.anel .valor { animation: anel 1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes anel { from { stroke-dashoffset: var(--anel-c); } }
.rotulo-anel { position: relative; }
.rotulo-anel b { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; font: 700 24px/1 var(--fonte-display); }
.rotulo-anel small { display: block; font: 500 11.5px var(--fonte); color: var(--muted); text-align: center; margin-top: 4px; }

/* Ícone de módulo (sprite em assets/illustrations/modulos.svg) */
.ico-mod { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #cfdcff; background: linear-gradient(145deg, var(--marinho-3), var(--marinho-1)); box-shadow: inset 0 0 0 1px rgba(143, 176, 255, .22), 0 6px 16px -10px rgba(11, 20, 38, .8); }
.ico-mod svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico-mod .a { stroke: var(--ico-acento); }
.ico-mod.p { width: 34px; height: 34px; border-radius: 9px; } .ico-mod.p svg { width: 19px; height: 19px; }
.ico-mod.g { width: 56px; height: 56px; border-radius: 14px; } .ico-mod.g svg { width: 30px; height: 30px; }
.ico-mod.feito { --ico-acento: #5cc994; }

/* ===== Início ===== */
.inicio-grade { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
@media (max-width: 1180px) { .inicio-grade { grid-template-columns: minmax(0, 1fr); } }
.heroi { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 40px; color: var(--marinho-ink); background-color: var(--marinho-1); background-image: radial-gradient(60% 90% at 85% 40%, rgba(79, 124, 255, .22), transparent 70%), radial-gradient(40% 60% at 70% 10%, rgba(255, 106, 61, .14), transparent 70%), linear-gradient(135deg, #0f1b36, var(--marinho-0)); border: 1px solid var(--marinho-linha); min-height: 300px; display: flex; align-items: center; }
.heroi-arte { position: absolute; right: -24px; top: 50%; transform: translateY(-50%); width: min(44%, 440px); height: auto; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%); mask-image: linear-gradient(90deg, transparent, #000 28%); }
.heroi-corpo { position: relative; z-index: 1; max-width: min(540px, 62%); }
.heroi h1 { color: #fff; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.12; margin: 16px 0 12px; }
.heroi p { color: var(--marinho-muted); font-size: 16px; margin: 0 0 24px; max-width: 46ch; }
.heroi p strong { color: #fff; font-weight: 600; }
.heroi .btn.primario, .curso-banner .btn.primario, .opcao.destacada .btn.primario { background: var(--brasa); border-color: var(--brasa); color: #1a0904; }
.heroi .btn.primario:hover, .curso-banner .btn.primario:hover, .opcao.destacada .btn.primario:hover { background: #ff845b; border-color: #ff845b; box-shadow: 0 10px 28px -10px rgba(255, 106, 61, .8); }
@media (max-width: 760px) {
  .heroi { padding: 28px 22px; min-height: 0; display: block; }
  .heroi-corpo { max-width: none; }
  .heroi-arte { width: 300px; right: -100px; top: -10px; transform: none; opacity: .4; }
}

.curso-card { display: grid; grid-template-columns: 220px minmax(0, 1fr) 210px; gap: 24px; align-items: center; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-1); }
.curso-card .capa { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); display: block; background: var(--marinho-1); }
.curso-card h3 { font-family: var(--fonte-display); font-size: 19px; font-weight: 700; margin: 6px 0 6px; }
.curso-card p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.estatisticas { list-style: none; margin: 0; padding: 0 0 0 24px; border-left: 1px solid var(--line); display: grid; gap: 14px; }
.estatisticas li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; }
.estatisticas .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.estatisticas .ico .ic { width: 17px; height: 17px; }
.estatisticas .r { font-size: 12.5px; color: var(--muted); display: block; line-height: 1.3; }
.estatisticas .v { font-weight: 650; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.pilula-cert { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--acao); }
@media (max-width: 980px) { .curso-card { grid-template-columns: 180px minmax(0, 1fr); } .estatisticas { grid-column: 1 / -1; border-left: 0; padding: 16px 0 0; border-top: 1px solid var(--line); grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .curso-card { grid-template-columns: 1fr; } .estatisticas { grid-template-columns: 1fr; } }

.mosaico { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s; min-height: 172px; box-shadow: var(--shadow-1); }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.tile .topo { display: flex; justify-content: space-between; align-items: flex-start; }
.tile .n { font: 600 12px var(--fonte-mono); color: var(--muted); letter-spacing: .04em; }
.tile .nome { font-weight: 650; font-size: 14.5px; line-height: 1.3; }
.tile .det { font-size: 12.5px; color: var(--muted); margin-top: auto; }
.tile.atual { border-color: var(--acao); box-shadow: inset 0 0 0 1px var(--acao); }
.tile.atual .n { color: var(--acao); }
.tile.concluido .ico-mod { --ico-acento: #5cc994; }
.tile .estado-ico { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; }
.tile .estado-ico svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.lado { display: grid; gap: 20px; }
.painel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px; box-shadow: var(--shadow-1); }
.painel > h2 { font-size: 16px; font-family: var(--fonte); font-weight: 650; margin-bottom: 14px; }
.progresso-geral { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; }
.progresso-geral .t { font-weight: 600; font-size: 14px; }
.progresso-geral .s { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.atalhos { list-style: none; margin: 0; padding: 0; }
.atalhos a { display: grid; grid-template-columns: 38px 1fr 16px; gap: 12px; align-items: center; padding: 10px 6px; margin: 0 -6px; border-radius: 9px; color: inherit; text-decoration: none; }
.atalhos a:hover { background: var(--surface-2); }
.atalhos a:hover .seta { transform: translateX(2px); color: var(--ink); }
.atalhos .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.atalhos .t { font-weight: 600; font-size: 14px; display: block; }
.atalhos .s { font-size: 12.5px; color: var(--muted); display: block; }
.atalhos .seta { color: var(--muted); transition: transform .15s; width: 16px; height: 16px; }
.atalhos .badge { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 99px; background: var(--acao); color: var(--acao-ink); font-size: 11.5px; font-weight: 700; text-align: center; vertical-align: 1px; }
.nota-plano { background: linear-gradient(135deg, var(--marinho-2), var(--marinho-1)); color: var(--marinho-ink); border-color: var(--marinho-linha); }
.nota-plano > h2 { color: #fff; display: flex; gap: 8px; align-items: center; }
.nota-plano > h2 .ic { color: var(--brasa); }
.nota-plano p { color: var(--marinho-muted); font-size: 13.5px; margin-bottom: 14px; }

/* ===== Catálogo ===== */
.catalogo { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); max-width: 1120px; gap: 24px; }
.curso-capa { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-1); transition: transform .2s, box-shadow .2s; }
.curso-capa:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.curso-capa .img { position: relative; aspect-ratio: 16 / 9; background: var(--marinho-1); }
.curso-capa .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.curso-capa .img .selo { position: absolute; left: 16px; top: 16px; backdrop-filter: blur(6px); }
.curso-capa .img .atual { position: absolute; left: auto; right: 16px; top: 16px; background: var(--brasa); color: #1a0904; border-color: transparent; }
.curso-capa .corpo { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.curso-capa h2 { font-size: 22px; }
.curso-capa .resumo { color: var(--ink-2); margin: 0; }
.curso-capa .fatos { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted); }
.curso-capa .fatos span { display: inline-flex; gap: 6px; align-items: center; }
.curso-capa .fatos .ic { width: 15px; height: 15px; }
.curso-capa .acoes { margin-top: auto; padding-top: 8px; }

/* ===== Curso ===== */
.curso-banner { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 32px; align-items: center; padding: 36px; border-radius: var(--r-xl); background: linear-gradient(135deg, #0f1b36, var(--marinho-0)); color: var(--marinho-ink); border: 1px solid var(--marinho-linha); margin-bottom: 36px; }
.curso-banner h1 { color: #fff; margin: 14px 0 10px; }
.curso-banner .resumo { color: var(--marinho-muted); font-size: 15.5px; max-width: 60ch; margin: 0; }
.curso-banner .fatos { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: 13.5px; color: #c4d0ea; }
.curso-banner .fatos span { display: inline-flex; gap: 6px; align-items: center; }
.curso-banner .fatos .ic { width: 16px; height: 16px; color: var(--brasa); }
.curso-banner .capa { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-l); display: block; box-shadow: 0 20px 50px -24px rgba(0,0,0,.9); border: 1px solid var(--marinho-linha); }
.curso-banner .progresso { margin-top: 24px; max-width: 520px; }
.curso-banner .barra { background: rgba(255,255,255,.12); }
.curso-banner .barra > i { background: linear-gradient(90deg, var(--brasa), #ffa47f); }
.curso-banner .num { color: var(--marinho-muted); }
.curso-banner .acoes { margin-top: 22px; }
@media (max-width: 900px) { .curso-banner { grid-template-columns: 1fr; padding: 24px; } .curso-banner .capa { display: none; } }

/* Ciclo de estudo do curso (HTML, não imagem) */
.ciclo { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ciclo li { position: relative; padding: 0 16px 0 0; }
.ciclo li:not(:last-child)::after { content: ""; position: absolute; top: 19px; left: 46px; right: 8px; height: 1px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 4px, transparent 4px 8px); }
.ciclo .ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-strong); color: var(--accent); position: relative; z-index: 1; }
.ciclo li:last-child .ico { color: var(--acao); border-color: var(--acao); }
.ciclo .t { display: block; font-weight: 650; font-size: 14px; margin-top: 10px; }
.ciclo .s { display: block; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .ciclo { grid-template-columns: 1fr; gap: 14px; } .ciclo li { display: grid; grid-template-columns: 38px 1fr; gap: 0 12px; padding: 0; } .ciclo li::after { display: none; } .ciclo .t { margin-top: 0; } .ciclo .s { grid-column: 2; } }

.modulos { border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-1); }
.modulo + .modulo { border-top: 1px solid var(--line); }
.modulo > summary { list-style: none; display: grid; grid-template-columns: 44px minmax(0, 1fr) 190px 20px; gap: 18px; align-items: center; padding: 18px 24px; cursor: pointer; transition: background .15s; }
.modulo > summary::-webkit-details-marker { display: none; }
.modulo > summary:hover { background: var(--surface-2); }
.modulo > summary:focus-visible { outline-offset: -2px; border-radius: 0; }
.modulo.atual > summary { box-shadow: inset 3px 0 0 var(--acao); }
.modulo .n { font: 600 12px var(--fonte-mono); color: var(--muted); letter-spacing: .04em; display: block; margin-bottom: 2px; }
.modulo.atual .n { color: var(--acao); }
.modulo .titulo { font-size: 16.5px; font-weight: 650; display: block; }
.modulo .det { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.modulo .estado { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.modulo .estado .etq { justify-content: flex-end; }
.modulo .seta { color: var(--muted); transition: transform .25s; }
.modulo[open] .seta { transform: rotate(180deg); }
.modulo::details-content { block-size: 0; overflow: clip; transition: block-size .28s ease, content-visibility .28s allow-discrete; }
.modulo[open]::details-content { block-size: auto; }
.modulo .corpo { padding: 0 24px 20px 86px; }
.modulo .objetivos { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }
.modulo .objetivos summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: 13.5px; width: fit-content; }
.modulo .objetivos ul { margin: 8px 0 0; padding-left: 18px; }
.modulo .objetivos li { margin-bottom: 4px; }
@media (max-width: 760px) {
  .modulo > summary { grid-template-columns: 34px minmax(0, 1fr) 18px; padding: 16px; gap: 12px; }
  .modulo > summary .ico-mod { width: 34px; height: 34px; border-radius: 9px; } .modulo > summary .ico-mod svg { width: 19px; height: 19px; }
  .modulo .estado { grid-column: 2; grid-row: 2; }
  .modulo .estado .etq { justify-content: flex-start; }
  .modulo .seta { grid-column: 3; grid-row: 1; }
  .modulo .corpo { padding: 0 16px 16px; }
}

.aulas { list-style: none; margin: 0; padding: 0; }
.aula-item { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px 12px; margin: 0 -12px; border-radius: 8px; color: inherit; text-decoration: none; transition: background .12s; }
a.aula-item:hover { background: var(--surface-2); }
a.aula-item:hover .t { color: var(--accent); }
.aula-item .t { font-weight: 500; }
.aula-item .meta { font-size: 13px; color: var(--muted); white-space: nowrap; display: flex; gap: 14px; align-items: center; }
.aula-item.breve { color: var(--muted); }
.aula-item.breve .t { font-weight: 400; }
.aula-item.atual { background: var(--accent-soft); }
.aula-item.atual .t { color: var(--accent); font-weight: 600; }
@media (max-width: 600px) { .aula-item { grid-template-columns: 22px minmax(0, 1fr); } .aula-item .meta { grid-column: 2; } }

.marc { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; border: 1.6px solid var(--line-strong); color: #fff; }
.marc svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.marc.feita { background: var(--ok); border-color: var(--ok); }
.marc.rever { border-color: var(--warn); color: var(--warn); }
.marc.rever svg { stroke-width: 2.6; }
.marc.prox { border-color: var(--acao); }
.marc.prox::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acao); }
.marc.breve { border-style: dashed; }

/* ===== Aula: leitura editorial ===== */
.aula-grade { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
@media (min-width: 1200px) { .aula-grade { grid-template-columns: 250px minmax(0, var(--leitura)); } }
.aula-nav { display: none; }
@media (min-width: 1200px) { .aula-nav { display: block; position: sticky; top: 28px; align-self: start; max-height: calc(100vh - 56px); overflow-y: auto; padding-right: 4px; } }
.aula-nav .mod { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.aula-nav .rot { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0; }
.aula-nav .modtit { font-weight: 650; font-size: 14px; margin: 0; line-height: 1.3; }
.aula-nav .aula-item { margin: 0; padding: 8px 10px; grid-template-columns: 20px minmax(0, 1fr); font-size: 13.5px; gap: 10px; }
.aula-nav .aula-item .meta { display: none; }
.aula-nav .marc { width: 18px; height: 18px; }
.aula-nav .indice { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.aula-nav .indice a { display: block; padding: 5px 10px; font-size: 13.5px; color: var(--muted); text-decoration: none; border-radius: 6px; }
.aula-nav .indice a:hover { color: var(--ink); background: var(--surface-2); }

.artigo { max-width: var(--leitura); min-width: 0; }
.artigo-cab .topo-ico { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.artigo-cab .topo-ico .migalha { margin: 0; }
.artigo-cab h1 { font-size: clamp(27px, 3.3vw, 38px); line-height: 1.15; margin-bottom: 16px; }
.artigo-cab .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--muted); align-items: center; }
.artigo-cab .meta > span { display: inline-flex; gap: 6px; align-items: center; }
.artigo-cab .meta .ic { width: 15px; height: 15px; }
.painel-objetivo { margin-top: 28px; padding: 24px 26px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); position: relative; overflow: hidden; }
.painel-objetivo::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--brasa), var(--azul-marca)); }
.painel-objetivo .lead { font-size: 18px; line-height: 1.6; color: var(--ink); margin: 0 0 10px; font-weight: 500; }
.painel-objetivo .porque { color: var(--muted); font-size: 15px; margin: 0; }
.objetivos-aula { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }
@media (max-width: 640px) { .objetivos-aula { grid-template-columns: 1fr; } .painel-objetivo { padding: 20px; } }
.objetivos-aula h3 { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.objetivos-aula ul.pontos li::marker { color: var(--acao); }
.artigo h2 { margin: 64px 0 18px; scroll-margin-top: 24px; font-size: 25px; display: flex; align-items: baseline; gap: 14px; }
.artigo h2 .n { font: 600 13px var(--fonte-mono); color: var(--acao); letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; background: color-mix(in srgb, var(--acao) 10%, transparent); }
.artigo .corpo-texto, .artigo .bloco > p, .artigo .bloco li { font-size: 16px; line-height: 1.72; }

.bloco { margin-bottom: 26px; }
.bloco > h3 { font-size: 17.5px; margin-bottom: 8px; }
.bloco:last-child { margin-bottom: 0; }
ul.pontos, ol.pontos { padding-left: 22px; margin: 0; }
ul.pontos li, ol.pontos li { margin-bottom: 6px; }
ul.pontos li::marker { color: var(--muted); }
ol.pontos li::marker { color: var(--acao); font-weight: 700; font-family: var(--fonte-mono); }

.destaque { padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--r) var(--r) 0; box-shadow: var(--shadow-1); }
.destaque .tipo { display: flex; gap: 7px; align-items: center; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.destaque .tipo .ic { width: 15px; height: 15px; }
.destaque h3 { font-size: 16px; margin-bottom: 4px; }
.destaque p:last-child { margin-bottom: 0; }
.destaque.dica { border-left-color: var(--ok); } .destaque.dica .tipo { color: var(--ok); }
.destaque.alerta { border-left-color: var(--warn); background: var(--warn-soft); box-shadow: none; } .destaque.alerta .tipo { color: var(--warn); }
.destaque.pegadinha { border-left-color: var(--bad); } .destaque.pegadinha .tipo { color: var(--bad); }
.destaque.prova { border-left-color: var(--brasa); background: linear-gradient(135deg, var(--marinho-2), var(--marinho-1)); color: var(--marinho-ink); box-shadow: none; }
.destaque.prova .tipo { color: var(--brasa); } .destaque.prova h3, .destaque.prova strong { color: #fff; }
.destaque.prova code { background: rgba(255,255,255,.1); color: #fff; }
.analogia { font-family: var(--fonte-display); font-size: 19px; line-height: 1.45; padding: 4px 0 4px 20px; border-left: 3px solid var(--line-strong); color: var(--ink-2); }

.tabela-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-1); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; }
.fluxo { display: flex; align-items: stretch; overflow-x: auto; padding-bottom: 4px; counter-reset: no; }
.fluxo .no { flex: 1 0 140px; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; font-size: 13.5px; background: var(--surface); box-shadow: var(--shadow-1); }
.fluxo .no::before { counter-increment: no; content: counter(no, decimal-leading-zero); font: 600 11px var(--fonte-mono); color: var(--acao); display: block; margin-bottom: 4px; }
.fluxo .no b { display: block; margin-bottom: 2px; font-size: 14px; }
.fluxo .seta { flex: 0 0 26px; display: grid; place-items: center; color: var(--acao); font-weight: 700; }
@media (max-width: 640px) { .fluxo { flex-direction: column; } .fluxo .seta { transform: rotate(90deg); height: 22px; } .fluxo .no { flex: none; } }
.figura { margin: 0 0 26px; border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px; background: var(--surface); box-shadow: var(--shadow-1); }
.figura svg { width: 100%; height: auto; display: block; }
.figura figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.revelar { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.revelar > button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: none; border: 0; cursor: pointer; font-weight: 600; text-align: left; border-radius: var(--r); }
.revelar > button:hover { background: var(--surface-2); }
.revelar > button::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s; flex: none; }
.revelar.aberto > button::after { transform: rotate(-135deg) translateY(-1px); }
.revelar .corpo { padding: 4px 16px 16px; animation: surgir .25s ease both; }
@keyframes surgir { from { opacity: 0; transform: translateY(-4px); } }
.lista-check { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.lista-check label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.lista-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ok); flex: none; }
.duas-listas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 640px) { .duas-listas { grid-template-columns: 1fr; } }
.nota-exec { font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }

.video-aula { margin: 32px 0 0; }
.video-aula video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r-l); box-shadow: var(--shadow-2); }
.video-aula figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.video-aula figcaption .ic { width: 15px; height: 15px; color: var(--acao); }

.codigo { border-radius: var(--r-l); overflow: hidden; background: var(--code-bg); color: var(--code-ink); box-shadow: var(--shadow-2); border: 1px solid #1a2744; }
.codigo .barra-cod { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 14px; font: 500 12px var(--fonte-mono); color: #8d9bb8; background: linear-gradient(180deg, #111c33, #0d172b); border-bottom: 1px solid #1a2744; }
.codigo .barra-cod .tit { display: flex; gap: 10px; align-items: center; min-width: 0; }
.codigo .barra-cod .tit > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.codigo .pontos-jan { display: flex; gap: 5px; flex: none; }
.codigo .pontos-jan i { width: 9px; height: 9px; border-radius: 50%; background: #26355a; }
.codigo .pontos-jan i:first-child { background: var(--brasa); opacity: .85; }
.codigo .barra-cod button { background: none; border: 1px solid rgba(255,255,255,.14); color: #c9d2e6; border-radius: 6px; padding: 3px 10px; cursor: pointer; font: 500 12px var(--fonte); flex: none; transition: background .15s; }
.codigo .barra-cod button:hover { background: rgba(255,255,255,.08); }
.codigo pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: 13.5px/1.7 var(--fonte-mono); font-variant-ligatures: none; }
.tk-kw { color: #c9a4ff; } .tk-str { color: #a8e29b; } .tk-com { color: #6f7f9f; font-style: italic; } .tk-num { color: #ffbb7a; } .tk-fn { color: #82c8ff; } .tk-deco { color: #ffd479; }
.abas { display: flex; gap: 4px; margin-bottom: 10px; flex-wrap: wrap; }
.abas button { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px 12px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); transition: background .15s; }
.abas button:hover { background: var(--surface-2); }
.abas button[aria-selected="true"] { background: var(--marinho-1); color: #fff; border-color: var(--marinho-1); }

.conclusao { margin-top: 56px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); display: flex; gap: 16px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: var(--shadow-1); }
.conclusao .t { font-weight: 650; font-size: 16px; display: flex; gap: 8px; align-items: center; }
.conclusao .sub { color: var(--muted); font-size: 14px; margin: 2px 0 0; }
.conclusao.feita { border-color: transparent; background: linear-gradient(135deg, var(--marinho-2), var(--marinho-1)); color: var(--marinho-ink); justify-content: flex-start; animation: pop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.conclusao.feita .t { color: #fff; } .conclusao.feita .sub { color: var(--marinho-muted); }
.conclusao .selo-ok { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #5cc994; color: #062014; flex: none; }
.conclusao .selo-ok .ic { width: 22px; height: 22px; stroke-width: 2.6; }
@keyframes pop { from { transform: scale(.97); opacity: .4; } }
.navegacao-aula { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.navegacao-aula a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: inherit; background: var(--surface); transition: border-color .15s, transform .15s; }
.navegacao-aula a:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.navegacao-aula a .rot { font-size: 12.5px; color: var(--muted); }
.navegacao-aula a .t { font-weight: 600; color: var(--accent); }
.navegacao-aula .prox { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .navegacao-aula { grid-template-columns: 1fr; } .navegacao-aula .prox { grid-column: 1; } }
.rodape-fontes { margin-top: 32px; font-size: 13px; color: var(--muted); }
.rodape-fontes a { color: inherit; }

.passos { display: flex; gap: 6px; margin: 0 0 32px; flex-wrap: wrap; }
.passo { flex: 1 1 100px; border: 0; background: none; padding: 0; cursor: pointer; text-align: left; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.passo i { display: block; height: 4px; border-radius: 99px; background: var(--surface-3); margin-bottom: 7px; transition: background .3s; }
.passo.feito i { background: var(--ok); }
.passo.atual { color: var(--ink); }
.passo.atual i { background: var(--acao); }
.passo:disabled { cursor: default; }
.conteudo-aula { max-width: var(--leitura); }
.conteudo-aula > h2 { margin-bottom: 16px; }

/* ===== Questões ===== */
.questao { padding: 24px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-1); }
.qsim .questao { margin-bottom: 0; }
.questao .topo { display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.questao .topo .num { font: 700 12px var(--fonte-mono); color: var(--acao); letter-spacing: .04em; text-transform: uppercase; }
.questao .enun { font-size: 16.5px; line-height: 1.6; margin-bottom: 16px; color: var(--ink); font-weight: 500; }
.questao .codigo { margin-bottom: 16px; }
.questao fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.questao legend { font-size: 13px; color: var(--muted); margin-bottom: 10px; padding: 0; }
.alts { display: flex; flex-direction: column; gap: 8px; }
.alt { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: var(--r); cursor: pointer; background: var(--surface); transition: border-color .12s, background .12s, box-shadow .12s; line-height: 1.55; }
.alt:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.alt input { position: absolute; opacity: 0; pointer-events: none; }
.alt .letra { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12.5px; border: 1.5px solid var(--line-strong); text-transform: uppercase; color: var(--ink-2); margin-top: -1px; transition: background .12s, border-color .12s, color .12s; }
.alt.marcada { border-color: var(--accent); background: var(--accent-soft); }
.alt.marcada .letra { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.alt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.alt.travada { cursor: default; }
.alt.travada:hover { border-color: var(--line-strong); box-shadow: none; }
.alt.certa, .alt.certa:hover { border-color: var(--ok); background: var(--ok-soft); }
.alt.certa .letra { background: var(--ok); border-color: var(--ok); color: #fff; }
.alt.errada, .alt.errada:hover { border-color: var(--bad); background: var(--bad-soft); }
.alt.errada .letra { background: var(--bad); border-color: var(--bad); color: #fff; }
.alt .exp { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.alt .exp strong { color: var(--ink); }
.veredito { margin-top: 16px; padding: 14px 16px; border-radius: var(--r); display: flex; gap: 12px; animation: surgir .3s ease both; }
.veredito .ic { margin-top: 2px; width: 20px; height: 20px; }
.veredito.ok { background: var(--ok-soft); } .veredito.ok .ic { color: var(--ok); }
.veredito.bad { background: var(--bad-soft); } .veredito.bad .ic { color: var(--bad); }
.veredito h4 { margin-bottom: 2px; }
.veredito p { margin: 0 0 4px; }
.questao .rodape { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.fontes-mini { font-size: 12.5px; color: var(--muted); }
.fontes-mini a { color: inherit; }
.selo-ia { display: inline-flex; gap: 5px; align-items: center; }
.selo-ia .ic { width: 14px; height: 14px; }
@media (max-width: 600px) { .questao { padding: 18px 16px; } }

.sim-barra { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--r-l); position: sticky; top: 12px; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(8px); z-index: 5; box-shadow: var(--shadow-2); }
.sim-barra .info { font-size: 14px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.cron { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.cron.warn { color: var(--warn); } .cron.bad { color: var(--bad); }
.navq { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.navq button { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; transition: border-color .12s, color .12s; }
.navq button:hover { border-color: var(--line-strong); color: var(--ink); }
.navq button.resp { color: var(--ink); border-color: var(--line-strong); background: var(--surface-2); }
.navq button.atual { border-color: var(--acao); color: var(--acao); box-shadow: inset 0 0 0 1px var(--acao); }
.navq button.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.navq button.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.qsim { max-width: var(--leitura); }
.resultado { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 36px; align-items: center; margin-bottom: 24px; padding: 28px; border-radius: var(--r-xl); background: linear-gradient(135deg, #0f1b36, var(--marinho-0)); color: var(--marinho-ink); border: 1px solid var(--marinho-linha); }
.resultado .dom .nome { color: #e6ecf9; } .resultado .dom .meta, .resultado .dom .num { color: var(--marinho-muted); }
.resultado .barra { background: rgba(255,255,255,.12); }
.resultado .anel .trilho { stroke: rgba(255,255,255,.12); }
.resultado .rotulo-anel b { color: #fff; } .resultado .rotulo-anel small { color: var(--marinho-muted); }
@media (max-width: 640px) { .resultado { grid-template-columns: 1fr; gap: 20px; padding: 22px; } }

.dominios { display: flex; flex-direction: column; gap: 14px; }
.dom { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.dom .num { font: 600 12px var(--fonte-mono); color: var(--muted); grid-row: span 2; }
.dom .nome { font-weight: 500; font-size: 14.5px; line-height: 1.35; }
.dom .meta { font-size: 13px; color: var(--muted); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dom .barra { grid-column: 2 / 4; }
.grafico svg { width: 100%; height: auto; display: block; }

.lado-a-lado { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .lado-a-lado { grid-template-columns: 1fr; } }
.lado-a-lado > .painel { padding: 24px; }
.linhas { list-style: none; margin: 0; padding: 0; }
.linhas li { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.linhas li:last-child { border-bottom: 0; }
.linhas .t { font-weight: 500; }
.linhas .sub { display: block; font-size: 13px; color: var(--muted); }

.opcoes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.opcao { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.opcao .t { font-weight: 650; font-size: 16px; }
.opcao .sub { color: var(--muted); font-size: 14px; margin: 0; flex: 1; }
.opcao.destacada { background: linear-gradient(135deg, #0f1b36, var(--marinho-0)); border-color: var(--marinho-linha); color: var(--marinho-ink); }
.opcao.destacada .t { color: #fff; } .opcao.destacada .sub { color: var(--marinho-muted); }
@media (max-width: 900px) { .opcoes { grid-template-columns: 1fr; } }

.resumo-plano { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-1); }
.resumo-plano > div { padding: 18px 20px; }
.resumo-plano > div + div { border-left: 1px solid var(--line); }
.resumo-plano .v { font-family: var(--fonte-display); font-size: 22px; font-weight: 700; line-height: 1.2; }
.resumo-plano .r { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .resumo-plano { grid-template-columns: 1fr 1fr; } .resumo-plano > div:nth-child(3) { border-left: 0; } .resumo-plano > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.calendario summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
.semana { margin-top: 20px; }
.semana h3 { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.dia { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: inherit; text-decoration: none; }
.dia .d { color: var(--muted); font-variant-numeric: tabular-nums; }
.dia.hoje .d { color: var(--acao); font-weight: 700; }
.dia.breve { color: var(--muted); }
a.dia:hover .t { color: var(--accent); }
@media (max-width: 600px) { .dia { grid-template-columns: 84px minmax(0, 1fr); } .dia .etq { grid-column: 2; } }

.form { display: grid; gap: 20px; }
.form h2 { font-size: 18px; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label, .campo .rot { font-weight: 600; font-size: 14px; }
.campo small { color: var(--muted); font-size: 13px; }
.campo input[type="time"], .campo input[type="number"], .campo input[type="date"], .campo input[type="text"], .campo select { font: inherit; padding: 9px 12px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); min-height: 42px; max-width: 320px; transition: border-color .15s, box-shadow .15s; }
.campo input:focus-visible, .campo select:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.campos-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 600px) { .campos-2 { grid-template-columns: 1fr; } }
.dias { display: flex; gap: 6px; flex-wrap: wrap; }
.dias label { display: inline-flex; position: relative; }
.dias input { position: absolute; opacity: 0; }
.dias span { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line-strong); cursor: pointer; font-weight: 600; font-size: 13px; text-transform: capitalize; min-width: 48px; text-align: center; transition: background .12s, color .12s; }
.dias input:checked + span { background: var(--marinho-1); border-color: var(--marinho-1); color: #fff; box-shadow: inset 0 -2px 0 var(--brasa); }
.dias input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.interruptor { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 500; }
.interruptor input { width: 40px; height: 22px; appearance: none; background: var(--surface-3); border-radius: 99px; position: relative; cursor: pointer; transition: background .2s; flex: none; margin: 0; }
.interruptor input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.interruptor input:checked { background: var(--acao); }
.interruptor input:checked::after { transform: translateX(18px); }
.caixa pre, .painel pre { white-space: pre-wrap; word-break: break-all; background: var(--surface-2); padding: 10px 12px; border-radius: 8px; font: 12.5px/1.5 var(--fonte-mono); }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); background: var(--marinho-1); color: #fff; padding: 12px 18px; border-radius: var(--r); font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; max-width: calc(100vw - 32px); box-shadow: var(--shadow-2); border-left: 3px solid var(--brasa); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 900px) { #toast { bottom: 88px; } }
.demo { background: repeating-linear-gradient(45deg, var(--warn-soft), var(--warn-soft) 10px, transparent 10px, transparent 20px); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- conta (modo online): entrar, criar conta, recuperar senha ---------- */
.conta { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: radial-gradient(1200px 600px at 10% -10%, rgba(255, 106, 61, .14), transparent 60%), var(--bg); }
.conta-cartao { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 32px 28px; box-shadow: var(--shadow-1); }
.conta-cartao h1 { font-size: 26px; margin: 24px 0 6px; outline: none; }
.conta-cartao > p { margin: 0 0 20px; }
.conta-marca { display: flex; gap: 12px; align-items: center; }
.conta-marca span { display: flex; flex-direction: column; line-height: 1.2; }
.conta-marca small { color: var(--muted); font-size: 12.5px; }
.conta .form { gap: 16px; }
.conta .campo input[type="email"], .conta .campo input[type="password"] { font: inherit; padding: 9px 12px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); min-height: 44px; width: 100%; transition: border-color .15s, box-shadow .15s; }
.conta .campo input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.conta .btn.primario { width: 100%; }
.conta .aviso { margin: 0; }
.conta .aviso p { margin: 0; }
.conta-aceite { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.conta-aceite input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--acao); flex: none; }
.conta-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; }
.conta-rodape { margin: 24px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.app[hidden], .conta[hidden], .tema[hidden] { display: none; }
.btn.perigo { color: var(--bad); border-color: var(--bad); }
.btn.perigo:hover { background: var(--bad-soft); border-color: var(--bad); }
#f-excluir input[type="password"] { font: inherit; padding: 9px 12px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); min-height: 44px; width: 100%; max-width: 320px; }
