/* Forja · área do aluno */
@font-face { font-family: "Inter Tight"; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-tight-latin.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-italic-latin.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight Fallback"; src: local("Arial"), local("Helvetica"), local("Roboto"); size-adjust: 95.7%; ascent-override: 101.2%; descent-override: 25.3%; line-gap-override: 0%; }
:root {
  color-scheme: only dark;
  --bg: #0d0b0a; --bg-2: #151210; --bg-3: #1c1815; --bg-4: #241f1b;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --text: #f6f1ea; --muted: #b0a79d; --muted-2: #8f867c;
  --accent: #f26b1d; --accent-2: #ff9536; --ok: #4fbf7a; --ink: #141110;
  --font: "Inter Tight", "Inter Tight Fallback", system-ui, sans-serif; --serif: "Instrument Serif", Georgia, serif;
  --side: 84px; --pad: clamp(16px, 3.4vw, 40px); --r: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; overflow-x: clip; }
body { background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a, button, [role="button"], input, select, textarea, label, summary { touch-action: manipulation; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
em.s { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent-2); letter-spacing: -.01em; }
.rot { display: block; font: 600 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin: 0 0 12px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.pular { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.pular:focus { top: 12px; }

/* botões */
.bt { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 650; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform .2s, background-color .2s, border-color .2s, opacity .2s; white-space: nowrap; }
.bt svg { width: 18px; height: 18px; }
.bt-1 { background: var(--accent); color: var(--ink); }
.bt-1 svg { fill: currentColor; stroke: none; }
.bt-2 { background: var(--bg-3); border-color: var(--line-2); }
.bt-ok { background: rgba(79,191,122,.12); border-color: rgba(79,191,122,.45); color: #8fe0ad; }
.bt-ok svg { stroke-width: 2.4; }
@media (hover: hover) { .bt-1:hover { background: var(--accent-2); } .bt-2:hover { border-color: var(--accent); } .bt:active { transform: scale(.98); } }
.bt:disabled { opacity: .6; cursor: default; }
.bt.largo { width: 100%; }
.bt.carregando span { opacity: .55; }
.link { background: none; border: 0; padding: 0; color: var(--accent-2); text-decoration: underline; cursor: pointer; }
.marca { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: .32em; font-size: 14px; text-decoration: none; }
.marca i { width: 14px; height: 14px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 18px rgba(242,107,29,.55); }

/* esqueleto enquanto carrega */
.esq { background: linear-gradient(100deg, var(--bg-2) 30%, var(--bg-3) 50%, var(--bg-2) 70%); background-size: 300% 100%; animation: esq 1.4s linear infinite; border-radius: var(--r); }
@keyframes esq { from { background-position: 100% 0; } to { background-position: 0 0; } }
.esq-banner { height: clamp(220px, 30vw, 340px); margin-bottom: 20px; }
.esq-linha { height: 18px; border-radius: 8px; margin: 14px 0; max-width: 520px; }
.esq-linha.curta { max-width: 260px; }
.esq-fila { display: flex; gap: 16px; overflow: hidden; }
.esq-cartaz { flex: 0 0 clamp(150px, 17vw, 210px); aspect-ratio: 3 / 4; }
html.leve .esq { animation: none; }

/* ============ ENTRAR ============ */
.pg-entrar { min-height: 100svh; }
.entrar { min-height: 100svh; display: grid; grid-template-columns: 1.1fr 1fr; }
.entrar-arte { position: relative; overflow: hidden; background: radial-gradient(circle at 55% 60%, rgba(242,107,29,.55), transparent 58%), var(--bg); }
.entrar-arte::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(circle at 50% 55%, #000 20%, transparent 72%); -webkit-mask-image: radial-gradient(circle at 50% 55%, #000 20%, transparent 72%); }
.entrar-arte img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 92%; width: auto; max-width: none; object-fit: contain; }
.entrar-caixa { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: clamp(28px, 6vw, 80px); max-width: 560px; width: 100%; margin-inline: auto; }
.entrar-caixa h1 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 14px; font-weight: 650; }
.entrar-caixa .sub { color: var(--muted); margin: 0 0 26px; font-size: 17px; }
.entrar-caixa .sub b { color: var(--text); word-break: break-all; }
.entrar-caixa form { display: grid; gap: 12px; }
.entrar-caixa label { font-weight: 600; font-size: 14px; }
.entrar-caixa input { height: 54px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: 500 17px var(--font); padding: 0 18px; }
.entrar-caixa input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242,107,29,.22); }
.entrar-caixa .bt + .bt { margin-top: 10px; }
.erro { color: #ff9b85; font-size: 14px; margin: 0; }
.ajuda { color: var(--muted-2); font-size: 14px; margin: 0; }
.ajuda a { color: var(--accent-2); }
@media (max-width: 860px) {
  .entrar { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .entrar-arte { height: 34svh; min-height: 220px; }
  .entrar-arte img { height: 100%; }
  .entrar-caixa { justify-content: flex-start; padding-top: 28px; }
}

/* ============ APP ============ */
.pg-app { padding-left: var(--side); }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--bg-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 0; z-index: 20; }
.side-marca { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 12px; background: var(--bg-3); }
.side-marca i { width: 18px; height: 18px; border-radius: 5px; background: var(--accent); box-shadow: 0 0 18px rgba(242,107,29,.6); }
.side-bt { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--muted); text-decoration: none; background: none; border: 0; cursor: pointer; transition: background-color .2s, color .2s; }
.side-bt span { display: none; }
.side-bt.ativo { background: var(--accent); color: var(--ink); }
@media (hover: hover) { .side-bt:not(.ativo):hover { background: var(--bg-3); color: var(--text); } }
.side-sair { margin-top: auto; }

.topo { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 16px; padding: 14px var(--pad); background: rgba(13,11,10,.94); border-bottom: 1px solid var(--line); }
.topo-onde { font-weight: 650; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.busca { position: relative; display: flex; align-items: center; width: min(340px, 40vw); }
.busca svg { position: absolute; left: 14px; color: var(--muted-2); width: 18px; height: 18px; pointer-events: none; }
.busca input { width: 100%; height: 42px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: 500 15px var(--font); padding: 0 16px 0 42px; }
.busca input:focus { outline: none; border-color: var(--accent); }
.eu { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); border: 1px solid var(--line-2); font-weight: 700; color: var(--accent-2); flex: 0 0 auto; }
.busca-res { position: absolute; top: calc(100% + 6px); right: var(--pad); width: min(440px, calc(100vw - 2 * var(--pad))); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 16px; padding: 8px; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.busca-res a { display: flex; gap: 12px; align-items: baseline; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 15px; }
.busca-res a span { color: var(--accent-2); font-weight: 700; font-size: 13px; min-width: 34px; }
.busca-res a:hover, .busca-res a:focus-visible { background: var(--bg-3); }
.busca-res p { margin: 8px 12px; color: var(--muted); }

.v { padding: clamp(18px, 2.6vw, 32px) var(--pad) 120px; max-width: 1440px; margin-inline: auto; outline: none; }
.v.entra { animation: entra .35s ease both; }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
html.leve .v.entra { animation: none; }
@media (prefers-reduced-motion: reduce) { .v.entra { animation: none; } }

/* banner */
.banner { position: relative; overflow: hidden; border-radius: 24px; min-height: clamp(240px, 30vw, 360px); display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; border: 1px solid var(--line);
  background: radial-gradient(circle at 70% 70%, rgba(242,107,29,.55), transparent 55%), radial-gradient(circle at 10% 0%, rgba(255,149,54,.12), transparent 40%), var(--bg-2); }
.banner::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(90deg, transparent, #000 50%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%); }
.banner-txt { position: relative; z-index: 1; padding: clamp(24px, 4vw, 56px); }
.banner-txt .marca { margin-bottom: 22px; }
.banner-txt h1 { font-size: clamp(1.9rem, 3.8vw, 3.2rem); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 14px; font-weight: 650; max-width: 14ch; }
.banner-txt p { color: var(--muted); margin: 0; max-width: 46ch; }
.banner-foto { position: relative; align-self: end; height: 100%; display: flex; justify-content: center; }
.banner-foto img { height: clamp(240px, 32vw, 380px); width: auto; object-fit: contain; object-position: bottom; margin-top: auto; }

/* painel de progresso */
.painel { margin: 16px 0 clamp(28px, 4vw, 44px); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.painel-prog { flex: 1 1 280px; min-width: 0; }
.painel-prog b { display: block; margin-bottom: 8px; }
.painel-linha { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; }
.painel-linha .barra { flex: 1; max-width: 360px; }
.painel-bts { display: flex; flex-wrap: wrap; gap: 10px; }
.barra { display: block; height: 4px; border-radius: 4px; background: var(--bg-4); overflow: hidden; }
.barra i { display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: inherit; transition: width .5s ease; }

/* filas por fase */
.fila { margin-bottom: clamp(30px, 4vw, 48px); }
.fila-cab { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.fila-cab h2 { font-size: clamp(1.05rem, 1.6vw, 1.25rem); margin: 0; font-weight: 650; }
.fila-cab h2 span { color: var(--muted); font-weight: 500; }
.fila-cab small { color: var(--muted-2); font-size: 13px; }
.fila-setas { display: flex; gap: 8px; }
.seta { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg-2); display: grid; place-items: center; cursor: pointer; }
.seta:disabled { opacity: .35; cursor: default; }
@media (hover: hover) { .seta:not(:disabled):hover { border-color: var(--accent); } }
.fila-trilho { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.fila-trilho::-webkit-scrollbar { display: none; }
.fila-trilho .cartaz { flex: 0 0 clamp(158px, 17vw, 220px); scroll-snap-align: start; }
@media (hover: none) { .fila-setas { display: none; } }

/* cartaz (capa vertical do módulo) */
.cartaz { display: block; text-decoration: none; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 8px 8px 12px; transition: border-color .25s, transform .25s; }
@media (hover: hover) { html:not(.leve) .cartaz:hover { transform: translateY(-4px); border-color: rgba(242,107,29,.55); } }
.cartaz-info { display: flex; justify-content: space-between; color: var(--muted-2); font-size: 12px; margin: 10px 4px 8px; }
.cartaz .barra { margin: 0 4px; }
.capa { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; isolation: isolate; background: var(--bg-3); }
.capa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.capa::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(13,11,10,.55) 60%, rgba(13,11,10,.96) 100%); }
.capa.sem-img { background: radial-gradient(circle at 70% 25%, rgba(242,107,29,.7), transparent 55%), radial-gradient(circle at 20% 80%, rgba(255,149,54,.18), transparent 50%), var(--bg-3); }
.capa.sem-img::before { content: attr(data-n); position: absolute; top: 4px; right: 10px; font: 800 clamp(64px, 8vw, 110px)/1 var(--font); letter-spacing: -.05em; color: rgba(255,255,255,.12); z-index: -1; }
.capa-n { font: 700 10px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 8px; }
.capa-t { font-size: clamp(15px, 1.35vw, 19px); line-height: 1.12; letter-spacing: -.01em; font-weight: 700; text-wrap: balance; }

/* telas de lista */
.cab-tela { margin-bottom: 26px; }
.cab-tela h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.03em; line-height: 1.05; margin: 0 0 8px; font-weight: 650; }
.cab-tela p { color: var(--muted); margin: 0; }
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.voltar { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 18px; min-height: 32px; }
.voltar svg { width: 16px; height: 16px; }
@media (hover: hover) { .voltar:hover { color: var(--text); } }

/* página do módulo */
.mod-cab { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: clamp(20px, 4vw, 48px); align-items: end; margin-bottom: clamp(30px, 4vw, 48px); }
.capa-g .capa-t { font-size: clamp(18px, 2vw, 24px); }
.mod-txt h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 14px; font-weight: 650; }
.mod-txt p { color: var(--muted); margin: 0 0 18px; max-width: 60ch; font-size: 17px; }
.mod-txt .painel-linha { margin-bottom: 22px; }
.aulas h2, .mats h2 { font-size: 1.1rem; margin: 0 0 14px; font-weight: 650; }
.aulas { margin-bottom: 36px; }
.aula-lin { display: flex; align-items: center; gap: 16px; padding: 10px; border-radius: 14px; text-decoration: none; border: 1px solid transparent; transition: background-color .2s, border-color .2s; }
.aula-lin + .aula-lin { margin-top: 4px; }
@media (hover: hover) { .aula-lin:hover { background: var(--bg-2); border-color: var(--line); } }
.aula-lin.atual { background: var(--bg-3); border-color: rgba(242,107,29,.5); }
.mini { position: relative; flex: 0 0 auto; width: 112px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 75% 30%, rgba(242,107,29,.55), transparent 60%), var(--bg-3); isolation: isolate; }
.mini::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--img, none) center 30% / cover; opacity: .55; }
.mini::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13,11,10,.85), rgba(13,11,10,.35)); }
.mini span { font: 800 22px/1 var(--font); letter-spacing: -.03em; }
.aula-lin-t { flex: 1; min-width: 0; }
.aula-lin-t b { display: block; font-weight: 600; line-height: 1.3; }
.aula-lin-t small { color: var(--muted-2); font-size: 13px; }
.ok { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: 0 0 auto; }
.feita .ok { background: var(--ok); border-color: var(--ok); color: var(--ink); }
.feita .ok svg { width: 16px; height: 16px; stroke-width: 3; }

/* materiais */
.mats { margin-bottom: 30px; }
.mat { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s; }
.mat + .mat { margin-top: 8px; }
.mat > svg { color: var(--accent-2); }
.mat span { flex: 1; min-width: 0; }
.mat b { display: block; font-weight: 600; }
.mat small { display: block; color: var(--muted-2); font-size: 13px; line-height: 1.4; }
.mat em { font-style: normal; color: var(--muted-2); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
@media (hover: hover) { .mat:hover { border-color: var(--accent); } }
.mats-mod { margin-bottom: 28px; }

/* aula */
.aula-grade { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 3vw, 44px); align-items: start; }
.aula { min-width: 0; max-width: 780px; }
.aula-cab h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.06; letter-spacing: -.03em; margin: 0 0 26px; font-weight: 650; text-wrap: balance; }
.txt { font-size: 17px; line-height: 1.75; color: #e6dfd6; }
.txt > :first-child { margin-top: 0; }
.txt p, .txt ul, .txt ol { margin: 0 0 18px; }
.txt ul, .txt ol { padding-left: 22px; }
.txt li { margin-bottom: 8px; }
.txt li::marker { color: var(--accent-2); }
.txt strong { color: var(--text); font-weight: 650; }
.txt h2, .txt h3 { color: var(--text); letter-spacing: -.02em; line-height: 1.2; margin: 34px 0 12px; }
.txt a { color: var(--accent-2); }
.txt code { font: 500 .88em/1.5 ui-monospace, "Cascadia Code", Consolas, monospace; background: var(--bg-3); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: #ffd2b0; word-break: break-word; }
.txt pre { position: relative; background: #0a0908; border: 1px solid var(--line-2); border-radius: 14px; padding: 46px 18px 18px; overflow-x: auto; margin: 0 0 22px; }
.txt pre code { background: none; border: 0; padding: 0; color: #f0e6da; white-space: pre-wrap; word-break: break-word; font-size: 14px; }
.copiar { position: absolute; top: 10px; right: 10px; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-3); font-size: 13px; font-weight: 600; cursor: pointer; }
@media (hover: hover) { .copiar:hover { border-color: var(--accent); } }
.txt blockquote { margin: 0 0 20px; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--bg-2); border-radius: 0 12px 12px 0; color: var(--text); }
.tabela { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--line-2); border-radius: 14px; }
.txt table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
.txt th, .txt td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 120px; }
.txt th { background: var(--bg-3); color: var(--text); font-weight: 650; }
.txt tr:last-child td { border-bottom: 0; }
.aula-pe { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.lado { position: sticky; top: 90px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; max-height: calc(100svh - 110px); overflow-y: auto; }
.lado-cab { padding: 4px 6px 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.lado-cab b { display: block; }
.lado-cab small { color: var(--muted-2); }
.lado .mini { width: 76px; }
.lado .mini span { font-size: 16px; }
.lado .aula-lin { gap: 12px; padding: 8px; }
.lado .aula-lin-t b { font-size: 14px; }
.lado .mats { margin: 16px 0 0; }
.lado .mats h2 { font-size: 14px; }
.lado .mat { padding: 12px; }

/* outros */
.vazio { text-align: center; padding: 80px 0; }
.vazio p { color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 40; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 16px; display: flex; gap: 16px; align-items: center; box-shadow: 0 18px 50px rgba(0,0,0,.5); max-width: calc(100vw - 32px); }
.toast button { background: none; border: 0; color: var(--accent-2); font-weight: 700; cursor: pointer; padding: 6px; }
.dica { position: fixed; z-index: 60; background: var(--text); color: var(--ink); font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 8px; pointer-events: none; transform: translate(-50%, -100%); white-space: nowrap; }
.dica.lado { transform: translate(0, -50%); }

/* tablet e celular */
@media (max-width: 1100px) {
  .aula-grade { grid-template-columns: 1fr; }
  .lado { position: static; max-height: none; }
}
@media (max-width: 900px) {
  .pg-app { padding-left: 0; padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .side { inset: auto 0 0 0; width: 100%; height: calc(66px + env(safe-area-inset-bottom)); flex-direction: row; justify-content: space-around; padding: 6px 6px env(safe-area-inset-bottom); border-right: 0; border-top: 1px solid var(--line); gap: 0; }
  .side-marca { display: none; }
  .side-bt { width: auto; flex: 1; height: 56px; border-radius: 12px; display: flex; flex-direction: column; gap: 3px; align-items: center; justify-content: center; }
  .side-bt span { display: block; font-size: 11px; font-weight: 600; }
  .side-bt.ativo { background: none; color: var(--accent-2); }
  .side-sair { margin-top: 0; }
  .banner { grid-template-columns: 1fr; min-height: 0; }
  .banner-foto { position: absolute; right: -30px; bottom: 0; height: 100%; opacity: .55; }
  .banner-foto img { height: 100%; }
  .banner-txt { padding-right: 34%; }
  .mod-cab { grid-template-columns: 1fr; }
  .capa-g { max-width: 220px; }
}
@media (max-width: 600px) {
  .busca { width: 44px; }
  .busca input { padding: 0; width: 44px; color: transparent; cursor: pointer; }
  .busca input::placeholder { color: transparent; }
  .busca input:focus { position: fixed; left: 12px; right: 12px; top: 12px; width: auto; padding: 0 16px 0 42px; color: var(--text); z-index: 30; background: var(--bg-2); }
  .busca:focus-within svg { position: fixed; left: 26px; top: 24px; z-index: 31; }
  .painel-bts .bt { flex: 1 1 auto; }
  .painel-bts .bt-1 { flex-basis: 100%; }
  .banner-txt { padding-right: 24px; }
  .banner-foto { opacity: .3; }
  .mini { width: 88px; }
  .aula-pe .bt-2 span { display: none; }
  .aula-pe #marcar { order: -1; flex-basis: 100%; }
  .txt { font-size: 16.5px; }
}
