/* =====================================================================
   Eduardo Ghislandi Gava · Aulas de acordeon — Design System (v6)
   Linguagem visual GG Musicalità: Marfim & Ouro champanhe, Fraunces + Manrope.
   Mobile primeiro. Fontes e ícones auto-hospedados (rápido, sem CDN, compatível com o CSP).

   Índice
     1. Fontes e tokens            9. Avisos e etiquetas
     2. Base e atmosfera          10. Tabelas, listas, pessoas, vazio
     3. Marca                     11. Gráfico de barras e números
     4. Casca do painel           12. Agenda
     5. Menu da conta             13. Área do aluno e aula
     6. Conteúdo e cabeçalhos     14. Login e primeiro acesso (arte)
     7. Cartões (caixas)          15. Janelas e páginas de erro
     8. Botões e formulários      16. Animações, utilitários, impressão
                                  17. Pix (mensalidades)
   ===================================================================== */

/* ================================================================
   1. Fontes e tokens
   ================================================================ */
@font-face {
  font-family: "Fraunces"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/fonts/fraunces.woff2") format("woff2-variations"), url("/fonts/fraunces.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-display: swap; font-weight: 100 900;
  src: url("/fonts/fraunces-italic.woff2") format("woff2-variations"), url("/fonts/fraunces-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("/fonts/manrope.woff2") format("woff2-variations"), url("/fonts/manrope.woff2") format("woff2");
}

:root {
  color-scheme: light;

  --bg: #faf7f1;
  --bg-2: #f4efe5;
  --surface: #ffffff;
  --surface-2: #fbf8f2;
  --surface-3: #f3ede2;
  --line: rgba(60, 45, 20, .09);
  --line-2: rgba(60, 45, 20, .16);

  --text: #1d1912;
  --text-2: #4b4438;
  --muted: #7b7262;

  --gold-1: #8a6526;
  --gold-2: #a87a32;
  --gold-3: #c69a45;
  --gold-4: #6b4c1a;
  --gold-grad: linear-gradient(135deg, #fbecc0 0%, #e7c57c 28%, #c69a45 62%, #f0d38f 100%);
  --gold-grad-texto: linear-gradient(135deg, #b58631 0%, #8a6526 45%, #c0913c 100%);
  --gold-soft: rgba(198, 154, 69, .12);
  --gold-glow: rgba(198, 154, 69, .30);

  --ebano: #14110c;
  --ebano-2: #221d14;
  --ebano-grad: radial-gradient(120% 120% at 20% 0%, #2c2518 0%, #15120d 55%, #0d0b08 100%);

  --ok: #1d9461;
  --ok-bg: rgba(29, 148, 97, .10);
  --warn: #b0731a;
  --warn-bg: rgba(214, 150, 40, .13);
  --bad: #cf3f31;
  --bad-bg: rgba(207, 63, 49, .09);
  --info: #3a6a8c;
  --info-bg: rgba(58, 106, 140, .09);
  --zap: #25d366;
  --zap-2: #1aa851;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --shadow-1: 0 1px 2px rgba(60, 45, 20, .06);
  --shadow-2: 0 1px 2px rgba(60, 45, 20, .05), 0 12px 32px -16px rgba(60, 45, 20, .22);
  --shadow-3: 0 30px 80px -30px rgba(60, 45, 20, .45);
  --shadow-gold: 0 10px 30px -12px rgba(198, 154, 69, .55);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --side: 272px;
  --topo: 68px;
}

/* ================================================================
   2. Base e atmosfera
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

/* Barra de rolagem sempre visivel (painel e demais telas): dourada, larga o bastante para
   pegar com o mouse e arrastar para baixo. No Mac/celular a barra do sistema some sozinha;
   esta fica fixa. */
html { scrollbar-gutter: stable; }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: auto; scrollbar-color: #c69a45 rgba(60,45,20,.07); }
}
html::-webkit-scrollbar { width: 14px; height: 14px; }
html::-webkit-scrollbar-track { background: rgba(60,45,20,.06); border-left: 1px solid rgba(60,45,20,.08); }
html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #e3c075, #c69a45 55%, #a87a32); border-radius: 999px;
  border: 3px solid transparent; background-clip: padding-box; min-height: 56px;
}
html::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #d8b062, #b58836 55%, #8c6526); border: 3px solid transparent; background-clip: padding-box; }
html::-webkit-scrollbar-thumb:active { background: #8c6526; border: 2px solid transparent; background-clip: padding-box; }
/* menu lateral do computador: mesma barra, mais fina */
.menu { scrollbar-width: thin; scrollbar-color: rgba(198,154,69,.55) transparent; }
.menu::-webkit-scrollbar { width: 8px; }
.menu::-webkit-scrollbar-thumb { background: rgba(198,154,69,.5); border-radius: 999px; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--text);
  font: 500 15.5px/1.55 var(--font-ui);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* brilho dourado + grão de filme */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(227,192,117,.16), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(140,101,38,.10), transparent 60%),
    radial-gradient(800px 800px at 50% 120%, rgba(227,192,117,.05), transparent 60%);
}
body::after {
  content: ""; position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: .03;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
::selection { background: var(--gold-3); color: #1a1408; }
img, video, iframe, svg { max-width: 100%; }
a { color: var(--gold-1); text-decoration-color: rgba(138,101,38,.35); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--gold-4); text-decoration-color: currentColor; }

h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -.015em;
  font-variation-settings: "opsz" 72; margin: 0; color: var(--text);
}
h1 { font-size: clamp(1.85rem, 1.3rem + 2.2vw, 2.65rem); margin: 0 0 .35rem; }
h2 { font-size: 1.24rem; margin: 0 0 .8rem; }
h3 { font-size: 1.06rem; margin: 0 0 .35rem; font-variation-settings: "opsz" 36; }
h4 { font-size: .98rem; }
p { margin: .35rem 0 .7rem; }
small { font-size: .84rem; }
strong, b { font-weight: 700; }
code { font-size: .88em; background: var(--surface-3); padding: .1em .4em; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.4rem 0; }
:focus-visible { outline: 2px solid var(--gold-1); outline-offset: 3px; }
.ouro-texto {
  background: var(--gold-grad-texto); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic; padding-right: .04em;
}

/* ================================================================
   3. Marca (selo de ébano com o acordeon em ouro)
   ================================================================ */
.marca {
  display: inline-flex; align-items: center; gap: .72rem; text-decoration: none; color: var(--text); line-height: 1;
}
.marca:hover, a.marca:hover { color: var(--text); }
.marca-selo {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--ebano-grad);
  border: 1px solid rgba(227,192,117,.35);
  box-shadow: 0 0 0 1px rgba(60,45,20,.12), 0 8px 22px -10px rgba(198,154,69,.6), inset 0 1px 0 rgba(255,255,255,.08);
}
.marca-selo svg { width: 26px; height: 26px; }
.marca-texto { display: grid; gap: .24rem; }
.marca-nome {
  font-family: var(--font-display); font-size: 1.16rem; font-weight: 500; letter-spacing: -.01em;
  font-variation-settings: "opsz" 48; white-space: nowrap;
}
.marca-nome i { font-style: italic; color: var(--gold-1); font-weight: 400; }
.marca-texto { min-width: 0; }
@media (max-width: 420px) {
  .marca { gap: .55rem; }
  .marca-nome { font-size: 1.02rem; letter-spacing: -.02em; }
  .marca-sub { font-size: .56rem; letter-spacing: .16em; }
  .marca-selo { width: 36px; height: 36px; flex-basis: 36px; }
}
@media (max-width: 350px) {
  .marca-nome { font-size: .92rem; }
}
.marca-sub { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 700; white-space: nowrap; }

/* ================================================================
   4. Casca do painel do professor (lateral + topo)
   ================================================================ */
.pular-conteudo {
  position: absolute; left: 1rem; top: -60px; z-index: 200; padding: .6rem 1rem; border-radius: 10px;
  background: var(--ebano); color: #fbecc0; font-weight: 700; text-decoration: none; transition: top .2s;
}
.pular-conteudo:focus { top: 1rem; color: #fbecc0; }

.app { min-height: 100vh; }
.lateral { display: none; }
.principal { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }

.topo {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,247,241,.84);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
  transition: background .3s, box-shadow .3s;
}
.topo.rolou { background: rgba(250,247,241,.95); box-shadow: 0 10px 30px -20px rgba(60,45,20,.35); }
.topo-linha {
  display: flex; align-items: center; gap: .75rem; min-height: var(--topo);
  padding: .65rem 1.1rem;
}
.topo .marca { margin-right: auto; }
.topo .trilha { display: none; }
.topo-acoes { display: flex; align-items: center; gap: .3rem; }
.topo-acoes .atalho-topo { display: none; }

/* menu em "pílulas" que rola de lado (celular e tablet) */
.nav-movel {
  display: flex; gap: .4rem; overflow-x: auto; padding: 0 1rem .75rem; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%);
  scroll-snap-type: x proximity;
}
.nav-movel::-webkit-scrollbar { display: none; }
.nav-movel a {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: .45rem; scroll-snap-align: start;
  text-decoration: none; color: var(--text-2); font-weight: 650; font-size: .87rem;
  background: #fff; border: 1px solid var(--line);
  padding: .48rem .85rem; border-radius: 999px; transition: all .25s var(--ease);
}
.nav-movel a i { font-size: .95rem; opacity: .8; }
.nav-movel a:hover { color: var(--text); border-color: var(--line-2); }
.nav-movel a.ativo { color: #1b1408; background: var(--gold-grad); border-color: transparent; box-shadow: var(--shadow-gold); }
.nav-movel a.ativo i { opacity: 1; }
.nav-movel .contador { background: var(--bad); color: #fff; font-size: .68rem; font-weight: 800; border-radius: 99px; padding: .1em .5em; }
.nav-movel a.ativo .contador { background: var(--ebano); color: #fbecc0; }

@media (min-width: 1024px) {
  .app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); }
  .lateral {
    position: sticky; top: 0; height: 100vh; z-index: 60;
    display: flex; flex-direction: column;
    background: #fff; border-right: 1px solid var(--line); box-shadow: 8px 0 30px -24px rgba(60,45,20,.25);
  }
  .lateral::after { /* pauta musical sutil */
    content: ""; position: absolute; left: 22px; right: 22px; bottom: 150px; height: 46px; pointer-events: none; opacity: .5;
    background: repeating-linear-gradient(180deg, rgba(198,154,69,.16) 0 1px, transparent 1px 11px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  }
  .lateral > .marca { padding: 1.5rem 1.4rem 1.1rem; }
  .menu { position: relative; z-index: 1; padding: .3rem .9rem; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: .15rem; }
  .menu-grupo {
    font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
    font-weight: 800; padding: 1rem .8rem .45rem;
  }
  .menu a, .menu button {
    position: relative; display: flex; gap: .75rem; align-items: center; width: 100%;
    padding: .64rem .8rem; border-radius: 12px; min-height: 0;
    color: var(--text-2); text-decoration: none; font: 650 .92rem/1.2 var(--font-ui);
    background: transparent; border: 1px solid transparent; box-shadow: none; cursor: pointer; text-align: left;
    transition: background .2s, color .2s, border-color .2s;
  }
  .menu a i, .menu button i { font-size: 1.04rem; width: 1.2rem; text-align: center; color: var(--muted); transition: color .2s; }
  .menu a:hover, .menu button:hover { background: rgba(60,45,20,.04); color: var(--text); }
  .menu a:hover i { color: var(--gold-2); }
  .menu a.ativo {
    color: var(--text); background: linear-gradient(90deg, rgba(198,154,69,.18), rgba(198,154,69,.04));
    border-color: rgba(198,154,69,.25);
  }
  .menu a.ativo::before {
    content: ""; position: absolute; left: -.9rem; top: 22%; bottom: 22%; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold-grad);
  }
  .menu a.ativo i { color: var(--gold-2); }
  .menu .contador {
    margin-left: auto; background: var(--bad); color: #fff; font-size: .68rem; font-weight: 800;
    border-radius: 99px; padding: .15em .55em; box-shadow: 0 4px 12px -4px rgba(207,63,49,.6);
  }
  .lateral-rodape { position: relative; z-index: 1; padding: 1rem; border-top: 1px solid var(--line); }
  .lateral-rodape form { margin: 0; }
  .perfil-mini {
    display: flex; align-items: center; gap: .7rem; padding: .6rem; border-radius: 14px; margin-bottom: .6rem;
    background: var(--surface-2); border: 1px solid var(--line); text-decoration: none; color: var(--text);
    transition: border-color .2s, background .2s;
  }
  .perfil-mini:hover { color: var(--text); border-color: rgba(168,122,50,.4); background: #fff; }
  .perfil-mini .avatar { width: 36px; height: 36px; font-size: .95rem; }
  .perfil-mini b { display: block; font-size: .88rem; line-height: 1.2; }
  .perfil-mini small { font-size: .74rem; color: var(--muted); }
  .sair {
    display: inline-flex; width: 100%; justify-content: center; align-items: center; gap: .45rem;
    background: transparent; border: 1px solid var(--line); color: var(--text-2); box-shadow: none;
    min-height: 40px; padding: .4rem .85rem; border-radius: 999px; font: 650 .86rem var(--font-ui); cursor: pointer;
  }
  .sair:hover { color: var(--text); border-color: var(--line-2); background: rgba(60,45,20,.04); }

  .principal .topo .marca, .nav-movel { display: none; }
  .principal .topo-linha { padding: .7rem clamp(1.5rem, 3.4vw, 3rem); }
  .topo .trilha { display: flex; align-items: center; gap: .5rem; font-size: .86rem; color: var(--muted); min-width: 0; margin-right: auto; }
  .topo .trilha a { color: var(--muted); text-decoration: none; display: inline-flex; }
  .topo .trilha a:hover { color: var(--gold-1); }
  .topo .trilha i { font-size: .66rem; opacity: .6; }
  .topo .trilha span:last-child { color: var(--text); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topo-acoes .atalho-topo { display: inline-flex; }
}

/* ================================================================
   5. Menu da conta (avatar no canto superior direito)
   ================================================================ */
.conta-menu { position: relative; z-index: 70; }
.conta-menu > summary { list-style: none; }
.conta-menu > summary::-webkit-details-marker { display: none; }
.conta-botao {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; user-select: none;
  padding: 3px; padding-right: .6rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-1);
  transition: border-color .2s, box-shadow .25s;
}
.conta-botao:hover { border-color: rgba(168,122,50,.45); box-shadow: 0 6px 18px -10px rgba(60,45,20,.35); }
.conta-menu[open] > .conta-botao { border-color: rgba(168,122,50,.6); box-shadow: 0 0 0 4px rgba(198,154,69,.14); }
.conta-botao .avatar { width: 34px; height: 34px; font-size: .9rem; }
.conta-nome { display: none; font-weight: 700; font-size: .88rem; color: var(--text); max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 760px) { .conta-nome { display: inline; } }
.conta-seta { font-size: .8rem; color: var(--muted); transition: transform .25s var(--ease); }
.conta-menu[open] .conta-seta { transform: rotate(180deg); }
.conta-painel {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 24px));
  background: #fff; border: 1px solid var(--line-2); border-radius: 18px; padding: .45rem;
  box-shadow: 0 24px 60px -20px rgba(60,45,20,.35), 0 2px 6px rgba(60,45,20,.06);
  animation: surgir .22s var(--ease) both; transform-origin: top right;
}
.conta-cabeca { display: flex; align-items: center; gap: .75rem; padding: .75rem .7rem .85rem; margin-bottom: .3rem; border-bottom: 1px solid var(--line); }
.conta-cabeca > div { min-width: 0; }
.conta-cabeca b { display: block; font-size: .95rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conta-cabeca small { display: block; font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conta-papel {
  display: inline-block; margin-top: .35rem; font: 800 .58rem/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-4); background: var(--gold-soft); border: 1px solid rgba(198,154,69,.28); border-radius: 999px; padding: .28rem .5rem;
}
.conta-cabeca .avatar { width: 46px; height: 46px; font-size: 1.2rem; }
.conta-painel a, .conta-painel button {
  display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 42px; padding: .55rem .7rem;
  border-radius: 11px; border: 0; background: transparent; box-shadow: none;
  color: var(--text); font: 600 .9rem/1.2 var(--font-ui); text-decoration: none; justify-content: flex-start; cursor: pointer;
}
.conta-painel a i, .conta-painel button i { font-size: 1.02rem; color: var(--muted); width: 1.1rem; text-align: center; }
.conta-painel a:hover, .conta-painel a:focus-visible { background: var(--surface-3); color: var(--text); }
.conta-painel a:hover i { color: var(--gold-2); }
.conta-painel a.whats i { color: var(--zap-2); }
.conta-painel form { margin: .3rem 0 0; padding-top: .3rem; border-top: 1px solid var(--line); }
.conta-painel .conta-sair, .conta-painel .conta-sair i { color: var(--bad); }
.conta-painel .conta-sair:hover { background: var(--bad-bg); color: #a8281c; }

/* ================================================================
   6. Conteúdo e cabeçalhos
   ================================================================ */
.conteudo { width: 100%; max-width: 1180px; margin: 0 auto; padding: 1.5rem 1.1rem 4.5rem; position: relative; }
.conteudo.largo { max-width: 1560px; }
.conteudo.estreito { max-width: 960px; }
.conteudo.muito-estreito { max-width: 780px; }
@media (min-width: 1024px) { .conteudo { padding: 2.3rem clamp(1.5rem, 3.4vw, 3rem) 5rem; } }

.cabecalho { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; justify-content: space-between; align-items: flex-end; margin: .2rem 0 1.6rem; }
.cabecalho > div:first-child { min-width: 0; }
.cabecalho h1 { margin: 0; }
.cabecalho p { margin: .5rem 0 0; color: var(--muted); max-width: 64ch; }
.cabecalho .acoes { margin: 0; }
.sobretitulo {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 800; color: var(--gold-2);
  margin-bottom: .65rem;
}
.sobretitulo::before { content: ""; width: 22px; height: 1px; background: var(--gold-grad); flex: none; }
.voltar {
  display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1rem;
  font-weight: 700; font-size: .86rem; color: var(--text-2); text-decoration: none;
}
.voltar i { transition: transform .25s var(--ease); }
.voltar:hover { color: var(--gold-1); }
.voltar:hover i { transform: translateX(-3px); }

.titulo-secao { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; margin: 2.2rem 0 .9rem; }
.titulo-secao h2 { margin: 0; display: flex; align-items: center; gap: .65rem; flex: 1; font-size: 1.3rem; }
.titulo-secao h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.titulo-secao p { margin: 0; color: var(--muted); font-weight: 700; font-size: .84rem; }

/* ================================================================
   7. Cartões (caixas)
   ================================================================ */
.caixa {
  position: relative; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.2rem;
  margin-bottom: 1.1rem; box-shadow: var(--shadow-2);
}
@media (min-width: 640px) { .caixa { padding: 1.4rem 1.5rem; } }
.caixa.sem-padding { padding: 0; overflow: hidden; }
.caixa.sem-padding > .caixa-topo { padding: 1.15rem 1.2rem 1rem; margin: 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .caixa.sem-padding > .caixa-topo { padding: 1.25rem 1.5rem 1.05rem; } }
.caixa > h2:first-child, .caixa > h3:first-child { margin-top: 0; }
.caixa-topo { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.caixa-topo h2, .caixa-topo h3 { margin: 0; font-size: 1.14rem; }
.caixa-topo > div { min-width: 0; flex: 1; }
.caixa-topo > div > p { margin: .3rem 0 0; }
.caixa-topo .link {
  display: inline-flex; align-items: center; gap: .15rem; font-weight: 700; font-size: .84rem; text-decoration: none; color: var(--gold-1);
}
.caixa-topo .link i { font-size: 1.1rem; transition: transform .25s var(--ease); }
.caixa-topo .link:hover i { transform: translateX(3px); }
.caixa.destaque, .caixa-destaque {
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(140deg, rgba(198,154,69,.75), rgba(198,154,69,.15) 40%, rgba(60,45,20,.06) 70%, rgba(198,154,69,.55)) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow-2), 0 0 60px -30px var(--gold-glow);
}
.caixa-perigo { border-color: rgba(207,63,49,.22); background: linear-gradient(180deg, rgba(207,63,49,.04), transparent), var(--surface); }
.caixa-perigo h2 { color: var(--bad) !important; }
.form-corpo { padding: 1.3rem 1.2rem .4rem; }
@media (min-width: 640px) { .form-corpo { padding: 1.45rem 1.5rem .5rem; } }

.grade { display: grid; gap: 1rem; }
.grade-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.grade-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; }
@media (max-width: 760px) {
  .grade-2, .grade-3, .grade[style*="grid-template-columns"] { grid-template-columns: 1fr !important; gap: 0 !important; }
}

/* ================================================================
   8. Botões e formulários
   ================================================================ */
.btn, button {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .6rem 1.15rem; border-radius: 12px;
  border: 1px solid transparent; color: #1c1409;
  background: var(--gold-grad); background-size: 160% 160%; background-position: 0% 50%;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 -1px 0 rgba(0,0,0,.15) inset, var(--shadow-gold);
  font: 750 .92rem/1 var(--font-ui); letter-spacing: .005em; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-position .4s var(--ease), border-color .25s, box-shadow .3s, color .2s, background-color .25s;
  -webkit-tap-highlight-color: transparent; user-select: none; white-space: nowrap;
}
.btn i, button i { font-size: 1.02rem; line-height: 1; }
.btn:hover { color: #120d05; background-position: 100% 50%; box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 14px 34px -12px rgba(198,154,69,.7); }
.btn:active, button:active { transform: translateY(1px) scale(.99); }
/* latão = destaque principal (mesmo ouro) */
.btn-latao { }
/* claro = secundário branco */
.btn-claro {
  background: #fff; color: var(--text); border-color: var(--line-2); box-shadow: var(--shadow-1);
}
.btn-claro:hover { background: var(--surface-3); color: var(--text); border-color: rgba(60,45,20,.24); box-shadow: var(--shadow-1); }
.btn-fantasma { background: transparent; border-color: transparent; color: var(--text-2); box-shadow: none; }
.btn-fantasma:hover, .btn-fantasma.ativo { background: rgba(60,45,20,.05); color: var(--text); box-shadow: none; }
.btn-perigo { background: #fff; border-color: rgba(207,63,49,.4); color: var(--bad); box-shadow: none; }
.btn-perigo:hover { background: var(--bad-bg); border-color: var(--bad); color: #a8281c; box-shadow: none; }
.btn-perigo-cheio { background: linear-gradient(135deg, #e0574a, var(--bad)); color: #fff; box-shadow: 0 10px 26px -12px rgba(207,63,49,.7); }
.btn-perigo-cheio:hover { color: #fff; background: linear-gradient(135deg, #e86154, #b8352a); box-shadow: 0 14px 30px -12px rgba(207,63,49,.8); }
.btn-zap { color: #04210f; background: linear-gradient(135deg, #5af08f, var(--zap) 45%, var(--zap-2)); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 10px 30px -12px rgba(37,211,102,.55); }
.btn-zap:hover { color: #021a0b; box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 14px 38px -10px rgba(37,211,102,.65); }
.btn-p { min-height: 38px; padding: .42rem .85rem; font-size: .84rem; border-radius: 10px; }
.btn-p i { font-size: .95rem; }
.btn-g { min-height: 54px; padding: .8rem 1.5rem; font-size: 1rem; border-radius: 14px; }
.btn-icone { width: 38px; padding: 0 !important; }
.btn-g.btn-icone { width: 54px; }
.btn-bloco { width: 100%; }
.btn[disabled], button[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn.carregando { color: transparent !important; pointer-events: none; }
.btn.carregando > * { visibility: hidden; }
.btn.carregando::before {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(28,20,9,.25); border-top-color: #1c1409; animation: girar .7s linear infinite;
}
.btn-claro.carregando::before, .btn-fantasma.carregando::before { border-color: var(--line-2); border-top-color: var(--gold-1); }
@keyframes girar { to { transform: rotate(360deg); } }
.acoes { display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; }
.acoes form { margin: 0; }
.acoes-fim { justify-content: flex-end; }

/* formulários */
form { margin: 0; }
label, .rotulo { display: block; font-size: .8rem; font-weight: 750; letter-spacing: .02em; color: var(--text-2); margin-bottom: .45rem; }
label .opcional, .rotulo .opcional { font-weight: 600; color: var(--muted); letter-spacing: 0; }
.campo { margin-bottom: 1.05rem; min-width: 0; }
.campo > small, .ajuda { display: block; margin-top: .42rem; color: var(--muted); font-size: .8rem; font-weight: 600; line-height: 1.45; }
fieldset { border: 0; margin: 0 0 1.05rem; padding: 0; min-width: 0; }
legend { padding: 0; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time],
input[type=datetime-local], input[type=month], input[type=tel], input[type=url], input[type=search], select, textarea {
  width: 100%; min-height: 50px; padding: .75rem .95rem; border-radius: 13px;
  font: 600 .97rem var(--font-ui); letter-spacing: normal;
  background: #fff; color: var(--text); border: 1px solid var(--line-2);
  transition: border-color .2s, box-shadow .25s, background .2s;
  -webkit-appearance: none; appearance: none;
}
input::placeholder, textarea::placeholder { color: #aaa192; font-weight: 500; }
input:hover, select:hover, textarea:hover { border-color: rgba(60,45,20,.28); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: rgba(168,122,50,.7); background: #fff;
  box-shadow: 0 0 0 4px rgba(198,154,69,.16), 0 8px 24px -14px rgba(198,154,69,.45);
}
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: rgba(207,63,49,.55); }
input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
select {
  padding-right: 2.6rem; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a87a32' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 16px;
}
select option { background: #fff; color: var(--text); }
input[type="date"], input[type="time"], input[type="month"] { color-scheme: light; }
input::-webkit-calendar-picker-indicator { opacity: .6; cursor: pointer; }
textarea { min-height: 116px; resize: vertical; line-height: 1.55; }
input[type=file] { font: 600 .86rem var(--font-ui); }
input[type=file]::file-selector-button {
  font: 750 .84rem var(--font-ui); color: #1c1409; background: var(--gold-grad); border: 0; border-radius: 9px;
  padding: .55rem .95rem; margin-right: .8rem; cursor: pointer;
}
.campo-icone { position: relative; }
.campo-icone > i { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--gold-2); pointer-events: none; font-size: 1rem; }
.campo-icone input { padding-left: 2.6rem; }
.campo-senha { position: relative; }
.campo-senha input { padding-right: 3rem; }
.ver-senha {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; min-height: 0; padding: 0; border-radius: 10px;
  background: transparent; border: 0; box-shadow: none; color: var(--muted);
}
.ver-senha:hover { color: var(--gold-1); background: var(--gold-soft); box-shadow: none; }
.ver-senha:active { transform: translateY(-50%); }
.prefixo { display: flex; align-items: stretch; }
.prefixo span {
  display: grid; place-items: center; padding: 0 .95rem; border: 1px solid var(--line-2); border-right: 0;
  border-radius: 13px 0 0 13px; background: var(--surface-2); color: var(--gold-1); font-weight: 800; font-size: .92rem;
}
.prefixo input { border-radius: 0 13px 13px 0; }
.check {
  display: flex; gap: .7rem; align-items: center; color: var(--text-2); font-size: .9rem; font-weight: 650; letter-spacing: 0;
  cursor: pointer; margin: 0;
}
.check input {
  -webkit-appearance: none; appearance: none; margin: 0;
  width: 22px; height: 22px; flex: 0 0 22px; border-radius: 7px; cursor: pointer;
  display: grid; place-items: center; background: #fff; border: 1px solid var(--line-2);
  transition: background .2s, border-color .2s;
}
.check input:checked { background: var(--gold-grad); border-color: transparent; }
.check input:checked::after {
  content: ""; width: 10px; height: 6px; border: 2.4px solid #1c1409; border-top: 0; border-right: 0;
  transform: translateY(-1px) rotate(-45deg);
}
.check small { display: block; color: var(--muted); font-weight: 500; }

.interruptor {
  display: flex; align-items: flex-start; gap: .9rem; padding: .95rem 1.05rem; margin: 0;
  border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; cursor: pointer;
  font-weight: 600; letter-spacing: 0; transition: border-color .2s, background .2s, box-shadow .2s;
}
.interruptor:has(input:checked) { border-color: rgba(198,154,69,.5); background: linear-gradient(180deg, rgba(198,154,69,.08), rgba(198,154,69,.02)); }
.interruptor input {
  appearance: none; -webkit-appearance: none; flex: none; width: 42px; height: 24px; border-radius: 99px;
  background: rgba(60,45,20,.16); position: relative; margin: .1rem 0 0; cursor: pointer; transition: background .25s;
}
.interruptor input::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--ease);
}
.interruptor input:checked { background: var(--gold-grad); }
.interruptor input:checked::after { transform: translateX(18px); }
.interruptor strong { display: block; color: var(--text); font-size: .95rem; }
.interruptor small { display: block; color: var(--muted); font-weight: 500; margin-top: .15rem; }

/* seções do formulário (título à esquerda, campos à direita no computador) */
.secao-form { display: grid; gap: 1rem 2.4rem; padding: 1.4rem 1.2rem .4rem; border-bottom: 1px solid var(--line); }
.secao-form:last-of-type { border-bottom: 0; }
.secao-form > header h2 { font-size: 1.08rem; margin: 0 0 .3rem; }
.secao-form > header p { margin: 0; color: var(--muted); font-size: .86rem; }
@media (min-width: 900px) {
  .secao-form { grid-template-columns: 230px minmax(0, 1fr); padding: 1.7rem 1.6rem .7rem; }
  .secao-form > header { position: sticky; top: calc(var(--topo) + 1rem); align-self: start; }
}
.rodape-form {
  display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; padding: 1.05rem 1.2rem;
  border-top: 1px solid var(--line); background: var(--surface-2);
}
@media (min-width: 640px) { .rodape-form { padding: 1.1rem 1.5rem; } }
.rodape-form .muted { margin-left: auto; }

/* dias da semana (agenda) */
.dias-opcoes { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .45rem; }
.dia-opcao { position: relative; margin: 0; cursor: pointer; }
.dia-opcao input { position: absolute; opacity: 0; pointer-events: none; }
.dia-opcao span {
  display: grid; justify-items: center; gap: .15rem; padding: .7rem .2rem; border-radius: 13px;
  border: 1px solid var(--line-2); background: #fff; transition: all .2s var(--ease); text-align: center;
}
.dia-opcao strong { font: 500 1.02rem/1 var(--font-display); color: var(--text); }
.dia-opcao small { font-size: .62rem; color: var(--muted); font-weight: 700; letter-spacing: .02em; }
.dia-opcao:hover span { border-color: rgba(198,154,69,.5); }
.dia-opcao input:checked + span { background: var(--gold-grad); border-color: transparent; box-shadow: var(--shadow-gold); }
.dia-opcao input:checked + span strong, .dia-opcao input:checked + span small { color: #1c1409; }
.dia-opcao input:focus-visible + span { outline: 2px solid var(--gold-1); outline-offset: 2px; }
@media (max-width: 560px) {
  .dias-opcoes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dia-opcao small { display: none; }
}

/* força da senha */
.forca { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: .5rem; }
.forca span { height: 4px; border-radius: 4px; background: rgba(60,45,20,.1); transition: background .3s; }
.forca[data-nivel="1"] span:nth-child(-n+1) { background: var(--bad); }
.forca[data-nivel="2"] span:nth-child(-n+2) { background: var(--warn); }
.forca[data-nivel="3"] span:nth-child(-n+3) { background: var(--gold-3); }
.forca[data-nivel="4"] span { background: var(--ok); }

/* área de soltar arquivos */
.soltar {
  position: relative; display: grid; justify-items: center; gap: .4rem; text-align: center;
  padding: 2rem 1.2rem; border-radius: var(--r); border: 1.5px dashed rgba(198,154,69,.5);
  background: radial-gradient(400px 140px at 50% 0%, rgba(198,154,69,.10), transparent 70%), var(--surface-2);
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.soltar:hover, .soltar.arrastando { border-color: var(--gold-2); background-color: #fff; }
.soltar.arrastando { transform: scale(1.01); box-shadow: 0 0 0 6px rgba(198,154,69,.12); }
.soltar i {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; font-size: 1.4rem;
  color: var(--gold-1); background: linear-gradient(145deg, rgba(198,154,69,.2), rgba(198,154,69,.05)); border: 1px solid rgba(198,154,69,.28);
  margin-bottom: .3rem;
}
.soltar strong { font-size: .95rem; }
.soltar .small { color: var(--muted); }
.soltar input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.soltar.pequeno { padding: 1.1rem; }
.soltar.pequeno i { width: 40px; height: 40px; font-size: 1.1rem; }
.lista-pdfs { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .45rem; }
.lista-pdfs.novos { margin: .8rem 0 0; }
.lista-pdfs:empty { display: none; }
.lista-pdfs li {
  display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; border-radius: 13px;
  background: #fff; border: 1px solid var(--line); min-width: 0; flex-wrap: wrap;
}
.lista-pdfs li > i {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px;
  color: var(--bad); background: var(--bad-bg);
}
.lista-pdfs li > i.bi-camera-video { color: var(--gold-1); background: var(--gold-soft); }
.lista-pdfs li > a, .lista-pdfs li > span { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); text-decoration: none; }
.lista-pdfs li > a:hover { color: var(--gold-1); }
.lista-pdfs li small { color: var(--muted); font-weight: 650; white-space: nowrap; }
.lista-pdfs li .check { margin-left: auto; font-size: .82rem; }
.lista-pdfs li.invalido { border-color: rgba(207,63,49,.4); background: var(--bad-bg); }
.lista-pdfs .midia-status { flex-basis: 100%; margin: .1rem 0 0 calc(34px + .7rem); }

.upload-progresso { display: none; padding: 1.1rem 1.2rem; border-top: 1px solid var(--line); background: var(--surface-2); }
.upload-progresso.ativo { display: grid; gap: .6rem; }
.upload-progresso .linha { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; }
.upload-progresso.erro [data-texto] { color: var(--bad); }
.upload-progresso.erro .fole { display: none; }

/* fole: barra de progresso com as pregas do acordeon */
.fole { --p: 0%; position: relative; height: 10px; border-radius: 999px; overflow: hidden; background: rgba(60,45,20,.06); border: 1px solid var(--line); }
.fole::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: inherit;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.0) 0 7px, rgba(255,255,255,.45) 7px 8px), var(--gold-grad);
  box-shadow: 0 0 20px rgba(227,192,117,.5);
  transition: width .6s var(--ease);
}
.fole.fino { height: 7px; }
.fole.grosso { height: 14px; }

/* ================================================================
   9. Avisos e etiquetas
   ================================================================ */
.aviso {
  display: flex; align-items: flex-start; gap: .75rem;
  border-radius: 14px; padding: .9rem 1rem; margin-bottom: 1.1rem; font-weight: 600; font-size: .93rem;
  border: 1px solid; animation: surgir .5s var(--ease) both;
}
.aviso > i { font-size: 1.15rem; line-height: 1.25; flex: none; }
.aviso > div { flex: 1; min-width: 0; }
.aviso a { font-weight: 800; color: inherit; }
.aviso-ok { background: #ecf8f1; border-color: rgba(29,148,97,.3); color: #145c3c; }
.aviso-ok > i { color: var(--ok); }
.aviso-erro { background: #fdf0ee; border-color: rgba(207,63,49,.3); color: #8f2419; }
.aviso-erro > i { color: var(--bad); }
.aviso-info { background: linear-gradient(180deg, #fffaf0, #fbf3e2); border-color: rgba(198,154,69,.35); color: var(--gold-4); }
.aviso-info > i { color: var(--gold-2); }
.aviso ul { margin: 0; padding-left: 1.1rem; }
.aviso .fechar {
  width: 30px; height: 30px; min-height: 0; padding: 0; margin: -.25rem -.35rem 0 0; border-radius: 8px;
  background: transparent; border: 0; box-shadow: none; color: inherit; opacity: .6;
}
.aviso .fechar:hover { opacity: 1; background: rgba(0,0,0,.05); box-shadow: none; }
.aviso.saindo { opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s; }

.tag {
  display: inline-flex; align-items: center; gap: .38rem; vertical-align: middle;
  padding: .3rem .62rem .3rem .55rem; border-radius: 999px; white-space: nowrap;
  font: 800 .62rem/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase;
  background: rgba(60,45,20,.05); color: var(--text-2); border: 1px solid var(--line);
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; flex: none; }
.tag.sem-ponto::before { display: none; }
.tag-ATIVO, .tag-PAGA, .tag-sim, .tag-PRONTO { background: var(--ok-bg); color: var(--ok); border-color: rgba(29,148,97,.22); }
.tag-PENDENTE, .tag-PAUSADO, .tag-OTIMIZANDO { background: var(--warn-bg); color: var(--warn); border-color: rgba(214,150,40,.25); }
.tag-INATIVO, .tag-atrasada { background: var(--bad-bg); color: var(--bad); border-color: rgba(207,63,49,.22); }
.tag-atrasada::before, .tag-OTIMIZANDO::before { animation: pulsar 1.8s ease-in-out infinite; }
.tag-gratis { color: #1c1409; background: var(--gold-grad); border-color: transparent; box-shadow: 0 6px 16px -8px rgba(198,154,69,.8); }

/* selo de tratamento de áudio (vídeos) */
.midia-status {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; font-weight: 700; color: var(--muted);
}
.midia-status i { color: var(--gold-2); }
.midia-status.andamento { color: var(--warn); }
.midia-status.andamento i { animation: pulsar 1.6s ease-in-out infinite; color: var(--warn); }
.midia-status.pronto i { color: var(--ok); }
.audio-onda {
  display: inline-flex; align-items: flex-end; gap: 2px; height: 12px;
}
.audio-onda i { width: 2px; border-radius: 1px; background: currentColor; animation: equalizar 1.2s ease-in-out infinite; transform-origin: bottom; }
.audio-onda i:nth-child(1) { height: 60%; animation-delay: -.2s; }
.audio-onda i:nth-child(2) { height: 100%; animation-delay: -.5s; }
.audio-onda i:nth-child(3) { height: 45%; animation-delay: -.8s; }
.audio-onda i:nth-child(4) { height: 80%; animation-delay: -.1s; }

/* ================================================================
   10. Tabelas, listas, pessoas, vazio
   ================================================================ */
.tabela-rolagem { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .91rem; }
th {
  text-align: left; color: var(--muted); font-weight: 800; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase;
  padding: .85rem .8rem; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2);
}
td { padding: .85rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th:first-child, td:first-child { padding-left: 1.5rem; }
th:last-child, td:last-child { padding-right: 1.5rem; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: rgba(198,154,69,.045); }
tr:last-child td { border-bottom: 0; }
td .acoes { flex-wrap: nowrap; justify-content: flex-end; }
td.valor { font-variant-numeric: tabular-nums; font-weight: 750; white-space: nowrap; }
td.num { font-variant-numeric: tabular-nums; }
.caixa:not(.sem-padding) table th:first-child, .caixa:not(.sem-padding) table td:first-child { padding-left: 0; }
.caixa:not(.sem-padding) table th:last-child, .caixa:not(.sem-padding) table td:last-child { padding-right: 0; }
.caixa:not(.sem-padding) table th { background: transparent; }
.titulo-link { font-weight: 750; color: var(--text); text-decoration: none; display: block; }
.titulo-link:hover { color: var(--gold-1); }
.trecho { display: block; color: var(--muted); font-size: .8rem; max-width: 52ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
  table.responsiva thead { display: none; }
  table.responsiva, table.responsiva tbody, table.responsiva tr, table.responsiva td { display: block; width: 100%; }
  table.responsiva tr { border-bottom: 1px solid var(--line); padding: .9rem 1.1rem; }
  table.responsiva tr:last-child { border-bottom: 0; }
  table.responsiva td, table.responsiva td:first-child, table.responsiva td:last-child {
    border: 0; padding: .3rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: right;
  }
  table.responsiva td::before { content: attr(data-rotulo); font-weight: 800; color: var(--muted); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; text-align: left; flex: none; }
  table.responsiva td[data-rotulo=""]::before { display: none; }
  table.responsiva td .acoes { flex-wrap: wrap; justify-content: flex-end; width: 100%; }
  table.responsiva td .pessoa, table.responsiva td .titulo-link, table.responsiva td .trecho { text-align: left; }
  table.responsiva td[data-rotulo="Aula"] { display: block; text-align: left; }
  table.responsiva td[data-rotulo="Aula"]::before { display: none; }
  .trecho { white-space: normal; }
}

.pessoa { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.pessoa > span { min-width: 0; }
.pessoa a { font-weight: 750; color: var(--text); text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pessoa a:hover { color: var(--gold-1); }
.pessoa small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }

.avatar {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center;
  font: 500 .98rem/1 var(--font-display); font-style: italic; color: var(--gold-1); text-transform: uppercase; letter-spacing: .02em;
  background: radial-gradient(120% 120% at 30% 10%, #fffaf0, #f2e4c4 75%);
  border: 1px solid rgba(198,154,69,.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  overflow: hidden;
}
.avatar.g { width: 72px; height: 72px; font-size: 1.7rem; }
.moldura-avatar {
  display: inline-grid; padding: 3px; border-radius: 50%; flex: none;
  background: conic-gradient(from 210deg, #fbecc0, #c69a45, #8a6526, #e7c57c, #fbecc0);
  box-shadow: 0 16px 40px -18px rgba(198,154,69,.7);
}
.moldura-avatar .avatar { border: 3px solid #fff; }

.vazio { text-align: center; color: var(--muted); padding: 2.4rem 1.2rem; }
.vazio .vazio-icone {
  width: 54px; height: 54px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem;
  color: var(--gold-1); background: var(--gold-soft); border: 1px solid rgba(198,154,69,.25);
  box-shadow: 0 0 0 8px rgba(198,154,69,.05);
}
.vazio h3 { color: var(--text); font-size: 1.12rem; margin-bottom: .35rem; }
.vazio p { margin: 0 auto 1.1rem; max-width: 46ch; font-size: .92rem; font-weight: 600; }
.caixa.vazio { padding: 2.6rem 1.2rem; }

.paginacao { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: center; padding: 1rem; border-top: 1px solid var(--line); }
.paginacao a {
  min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 .6rem; border-radius: 10px;
  font-weight: 750; font-size: .86rem; text-decoration: none; color: var(--text-2); border: 1px solid var(--line); background: #fff;
}
.paginacao a:hover { border-color: rgba(198,154,69,.5); color: var(--gold-1); }
.paginacao a.ativo { background: var(--gold-grad); color: #1c1409; border-color: transparent; box-shadow: var(--shadow-gold); }

.filtros { display: flex; flex-wrap: wrap; gap: .7rem; align-items: flex-end; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
@media (min-width: 640px) { .filtros { padding: 1.05rem 1.5rem; } }
.filtros .campo { margin: 0; flex: 1 1 240px; }
.filtros .campo.estreito { flex: 0 1 220px; }
.filtros label { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.filtros input, .filtros select { min-height: 46px; }
.filtros .btn { min-height: 46px; }

.abas { display: flex; gap: .3rem; overflow-x: auto; padding: .7rem 1.2rem 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
@media (min-width: 640px) { .abas { padding: .8rem 1.5rem 0; } }
.abas::-webkit-scrollbar { display: none; }
.abas a {
  position: relative; padding: .6rem .9rem .8rem; white-space: nowrap; text-decoration: none;
  font-weight: 750; font-size: .88rem; color: var(--muted); border-radius: 10px 10px 0 0;
}
.abas a:hover { color: var(--text); background: rgba(60,45,20,.03); }
.abas a.ativo { color: var(--text); }
.abas a.ativo::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: -1px; height: 2px; border-radius: 2px; background: var(--gold-grad); }
.abas .contagem { margin-left: .35rem; font-size: .72rem; padding: .1em .45em; border-radius: 99px; background: rgba(60,45,20,.07); }
.abas a.ativo .contagem { background: var(--gold-soft); color: var(--gold-1); }

/* dados (rótulo + valor) */
.dados { display: grid; gap: .6rem; margin: 0; }
.dados > div {
  display: flex; align-items: flex-start; gap: .85rem; padding: .85rem .95rem; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line); min-width: 0;
}
.dados > div > div { min-width: 0; }
.dados i {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; font-size: 1rem;
  color: var(--gold-1); background: var(--gold-soft); border: 1px solid rgba(198,154,69,.2);
}
.dados dt { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.dados dd { margin: .25rem 0 0; font-weight: 750; overflow-wrap: anywhere; }
.dados dd a { color: var(--text); }
.dados dd a:hover { color: var(--gold-1); }
.pre { white-space: pre-line; }

/* ================================================================
   11. Números (KPIs) e gráfico de barras
   ================================================================ */
.numeros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1.3rem; }
@media (min-width: 1100px) { .numeros { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.numeros:has(> :nth-child(3):last-child) { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.numero {
  position: relative; overflow: hidden; display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); text-decoration: none; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.05rem 1.1rem 1.1rem;
  box-shadow: var(--shadow-2); transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.numero::after { content: ""; position: absolute; left: 1rem; right: 1rem; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(198,154,69,.55), transparent); }
a.numero:hover { transform: translateY(-3px); border-color: rgba(198,154,69,.35); color: var(--text); box-shadow: var(--shadow-2), 0 20px 40px -24px rgba(198,154,69,.55); }
.numero .numero-rotulo { display: flex; align-items: center; gap: .6rem; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.numero .numero-rotulo i {
  width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 1rem;
  background: var(--gold-soft); color: var(--gold-1); border: 1px solid rgba(198,154,69,.2);
}
.numero strong {
  display: block; font-family: var(--font-display); font-weight: 500; font-variation-settings: "opsz" 96;
  font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem); line-height: 1.05; letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums;
}
.numero .numero-extra { display: block; margin-top: .4rem; font-size: .8rem; font-weight: 650; color: var(--muted); }
.numero.alerta strong { color: var(--bad); }
.numero.alerta .numero-rotulo i { background: var(--bad-bg); color: var(--bad); border-color: rgba(207,63,49,.2); }
.numero.destaque {
  border-color: transparent;
  background:
    radial-gradient(400px 140px at 100% 0%, rgba(227,192,117,.18), transparent 70%),
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(140deg, rgba(198,154,69,.8), rgba(198,154,69,.12) 45%, rgba(198,154,69,.5)) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow-2), 0 0 60px -30px var(--gold-glow);
}
.numero.destaque strong { background: var(--gold-grad-texto); -webkit-background-clip: text; background-clip: text; color: transparent; }
.numero.destaque .numero-rotulo i { background: var(--gold-grad); color: #1c1409; border-color: transparent; }

.barras {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .8rem; align-items: end;
  height: 220px; padding-top: 1.8rem;
  background: repeating-linear-gradient(0deg, transparent 0 43px, var(--line) 43px 44px);
}
.barra { display: flex; flex-direction: column; align-items: center; gap: .5rem; height: 100%; justify-content: flex-end; min-width: 0; }
.barra .coluna {
  --h: 0%; position: relative; width: 100%; max-width: 46px; height: var(--h); min-height: 4px;
  border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, rgba(198,154,69,.32), rgba(198,154,69,.12));
  border: 1px solid rgba(198,154,69,.25);
  animation: subir 1.1s var(--ease) both; transform-origin: bottom;
}
.barra.atual .coluna { background: var(--gold-grad); border-color: transparent; box-shadow: 0 10px 30px -10px rgba(198,154,69,.8); }
.barra .coluna span {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  font: 750 .72rem var(--font-ui); color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums;
  opacity: 0; transition: opacity .2s;
}
.barra:hover .coluna span, .barra.atual .coluna span { opacity: 1; }
.barra.atual .coluna span { color: var(--gold-1); }
.barra small { font-size: .72rem; color: var(--muted); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.barra.atual small { color: var(--gold-1); }

/* ================================================================
   12. Agenda
   ================================================================ */
.agenda-mini { list-style: none; margin: 0; padding: 0; }
.agenda-mini li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .8rem 0; border-top: 1px solid var(--line); }
.agenda-mini li:first-child { border-top: 0; padding-top: .1rem; }
.agenda-mini .data {
  display: grid; justify-items: center; min-width: 54px; padding: .45rem .35rem; border-radius: 12px;
  background: var(--gold-soft); border: 1px solid rgba(198,154,69,.25);
}
.agenda-mini .data strong { font: 500 1rem/1.1 var(--font-display); color: var(--gold-1); }
.agenda-mini .data small { font-size: .7rem; color: var(--muted); font-weight: 750; font-variant-numeric: tabular-nums; }
.agenda-mini .info { min-width: 0; }
.agenda-mini .info strong { display: block; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda-mini .info small { display: block; color: var(--muted); font-weight: 600; font-size: .8rem; }
.agenda-mini .info small i { color: var(--gold-2); }

.resumo-agenda { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.3rem; }
.resumo-agenda > div {
  flex: 1 1 160px; display: flex; align-items: baseline; gap: .55rem; padding: .95rem 1.1rem; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.resumo-agenda strong { font: 500 1.7rem/1 var(--font-display); letter-spacing: -.02em; background: var(--gold-grad-texto); -webkit-background-clip: text; background-clip: text; color: transparent; }
.resumo-agenda span { color: var(--muted); font-weight: 700; font-size: .84rem; }

.quadro-semana { display: grid; gap: .9rem; }
@media (min-width: 900px) { .quadro-semana { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); align-items: start; } }
@media (min-width: 1760px) { .quadro-semana { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .7rem; } }
.dia-coluna { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); overflow: hidden; min-width: 0; }
.dia-cabeca { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .95rem 1.1rem .8rem; border-bottom: 1px dashed var(--line-2); }
.dia-cabeca > div { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.dia-cabeca strong { font: 500 1.08rem/1.15 var(--font-display); }
.dia-total { font-size: .72rem; font-weight: 800; color: var(--muted); white-space: nowrap; }
.hoje-selo { font: 800 .58rem/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: #1c1409; background: var(--gold-grad); padding: .32rem .5rem; border-radius: 999px; }
.dia-coluna.hoje {
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(140deg, rgba(198,154,69,.8), rgba(198,154,69,.12) 45%, rgba(198,154,69,.5)) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow-2), 0 0 60px -30px var(--gold-glow);
}
.dia-coluna.hoje .dia-cabeca { background: linear-gradient(180deg, rgba(198,154,69,.08), transparent); }
.dia-lista { display: grid; gap: .5rem; padding: .7rem; }
.horario {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem; align-items: start;
  padding: .75rem; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .25s, transform .25s var(--ease);
}
.horario:hover { border-color: rgba(198,154,69,.35); box-shadow: 0 10px 24px -18px rgba(60,45,20,.4); }
.horario-hora span {
  display: inline-grid; place-items: center; min-width: 3.5rem; padding: .3rem .45rem;
  font: 600 .95rem/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--gold-1);
  background: var(--gold-soft); border: 1px solid rgba(198,154,69,.22); border-radius: 9px;
}
.horario-hora small { display: block; margin-top: .3rem; font-size: .68rem; color: var(--muted); font-weight: 700; text-align: center; }
.horario-corpo { min-width: 0; }
.horario-aluno { display: block; font-weight: 750; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.horario-aluno:hover { color: var(--gold-1); }
.horario-info { display: flex; flex-wrap: wrap; gap: .25rem .7rem; margin-top: .2rem; font-size: .76rem; color: var(--muted); font-weight: 650; align-items: center; }
.horario-info > span { display: inline-flex; align-items: center; gap: .3rem; }
.horario-info i { color: var(--gold-2); }
.horario-obs { margin: .35rem 0 0; font-size: .78rem; color: var(--text-2); font-style: italic; }
.horario-acoes { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.horario-acoes form { margin: 0; }
.horario-acoes .btn-p { min-height: 32px; width: 32px; border-radius: 9px; }
.horario.PAUSADO { opacity: .7; }
.horario.PAUSADO .horario-hora span { color: var(--muted); background: rgba(60,45,20,.05); border-color: var(--line); }
.horario.PAUSADO .horario-aluno { text-decoration: line-through; text-decoration-color: rgba(60,45,20,.3); }
.dia-adicionar {
  display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .6rem; border-radius: 12px;
  border: 1.5px dashed var(--line-2); color: var(--muted); font-weight: 750; font-size: .82rem; text-decoration: none;
  transition: all .2s var(--ease);
}
.dia-adicionar:hover { border-color: var(--gold-2); color: var(--gold-1); background: var(--gold-soft); }
@media (min-width: 1760px) {
  .dia-cabeca { flex-direction: column; align-items: flex-start; padding: .85rem .8rem .7rem; }
  .dia-lista { padding: .5rem; }
  .horario { grid-template-columns: 1fr; gap: .45rem; padding: .65rem; }
  .horario-hora { display: flex; align-items: center; gap: .45rem; }
  .horario-hora small { margin: 0; }
  .horario-acoes { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .horario { grid-template-columns: auto minmax(0, 1fr); }
  .horario-acoes { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ================================================================
   13. Área do aluno e tela da aula
   ================================================================ */
.barra-aluno {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,247,241,.84);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
  transition: background .3s, box-shadow .3s;
}
.barra-aluno.rolou { background: rgba(250,247,241,.95); box-shadow: 0 10px 30px -20px rgba(60,45,20,.35); }
.barra-aluno .dentro { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; padding: .7rem 1.1rem; min-height: var(--topo); }
.barra-aluno .dentro > .marca { margin-right: auto; }
.barra-aluno .nav-aluno { display: none; }
.barra-aluno .nav-movel { padding-top: 0; }
@media (min-width: 900px) {
  .barra-aluno .nav-aluno { display: flex; gap: .3rem; align-items: center; }
  .barra-aluno .nav-movel { display: none; }
  .nav-aluno a {
    display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 999px;
    color: var(--text-2); text-decoration: none; font-weight: 700; font-size: .9rem; border: 1px solid transparent;
    transition: all .2s var(--ease);
  }
  .nav-aluno a i { color: var(--muted); }
  .nav-aluno a:hover { color: var(--text); background: rgba(60,45,20,.04); }
  .nav-aluno a.ativo { color: var(--text); background: #fff; border-color: rgba(198,154,69,.35); box-shadow: var(--shadow-1); }
  .nav-aluno a.ativo i { color: var(--gold-2); }
}
.faixa-previa {
  display: flex; align-items: center; justify-content: center; gap: .55rem; flex-wrap: wrap;
  padding: .55rem 1rem; text-align: center; font-size: .84rem; font-weight: 700;
  background: var(--ebano-grad); color: #e9dcc0;
}
.faixa-previa i { color: #e7c57c; }
.faixa-previa a { color: #fbecc0; font-weight: 800; }

.pagina { max-width: 1120px; margin: 0 auto; padding: 1.6rem 1.1rem 4.5rem; }
.pagina.estreita { max-width: 840px; }
@media (min-width: 900px) { .pagina { padding-top: 2.4rem; } }

.boas-vindas { display: grid; gap: 1.1rem; margin-bottom: .5rem; }
@media (min-width: 900px) { .boas-vindas { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: stretch; } }
.continuar {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl);
  padding: clamp(1.5rem, 1rem + 2vw, 2.4rem); display: flex; flex-direction: column; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2);
}
.continuar.escuro {
  background: var(--ebano-grad); color: #e9e1d2; border-color: rgba(227,192,117,.28);
  box-shadow: 0 40px 80px -40px rgba(20,17,12,.7), inset 0 1px 0 rgba(255,255,255,.06);
}
.continuar.escuro::before { /* pauta dourada */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: 18%; height: 58px; z-index: -1; opacity: .5;
  background: repeating-linear-gradient(180deg, rgba(227,192,117,.22) 0 1px, transparent 1px 13px);
  transform: rotate(-4deg);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}
.continuar.escuro::after { /* brilho */
  content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(227,192,117,.26), transparent 65%); filter: blur(10px);
  animation: flutuar 12s ease-in-out infinite;
}
.continuar .chamada {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem;
  font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 800; color: #e7c57c;
}
.continuar .chamada i { font-size: .9rem; }
.continuar h2 { color: #fff; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); font-weight: 400; letter-spacing: -.025em; line-height: 1.05; margin: 0 0 .5rem; font-variation-settings: "opsz" 144; }
.continuar:not(.escuro) h2 { color: var(--text); }
.continuar p { color: rgba(233,225,210,.82); max-width: 52ch; margin: .6rem 0 1.4rem; }
.continuar .modulo-nome { font-size: .84rem; font-weight: 700; color: rgba(233,225,210,.65); }
.continuar .btn { margin-top: auto; }
.resumo { display: flex; flex-direction: column; gap: 1rem; }
.resumo h3 { font-size: 1.02rem; }
.atalhos-aluno { display: grid; gap: .6rem; }
.atalho {
  display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border-radius: var(--r);
  background: linear-gradient(180deg, #fffaf0, #fbf3e2); border: 1px solid rgba(198,154,69,.3);
  text-decoration: none; color: var(--text); transition: transform .3s var(--ease), box-shadow .3s;
}
.atalho:hover { color: var(--text); transform: translateY(-2px); box-shadow: 0 16px 30px -20px rgba(198,154,69,.8); }
.atalho > i {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 13px; font-size: 1.2rem;
  background: var(--gold-grad); color: #1c1409; box-shadow: var(--shadow-gold);
}
.atalho strong { display: block; font-weight: 800; }
.atalho small { display: block; color: var(--muted); font-weight: 600; }

.aulas-aluno { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.aulas-aluno a {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center;
  padding: 1rem 1.1rem; border-radius: var(--r-lg); text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.aulas-aluno a:hover { color: var(--text); transform: translateY(-2px); border-color: rgba(198,154,69,.35); box-shadow: var(--shadow-2), 0 20px 40px -26px rgba(198,154,69,.6); }
.aulas-aluno .nova a {
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(140deg, rgba(198,154,69,.8), rgba(198,154,69,.12) 45%, rgba(198,154,69,.5)) border-box;
  border: 1px solid transparent;
}
.aulas-aluno .data-aula {
  display: grid; justify-items: center; align-content: center; width: 62px; height: 62px; border-radius: 16px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.aulas-aluno .nova .data-aula { background: var(--ebano-grad); border-color: rgba(227,192,117,.3); }
.aulas-aluno .data-aula strong { font: 500 1.5rem/1 var(--font-display); color: var(--text); }
.aulas-aluno .nova .data-aula strong { color: #fbecc0; }
.aulas-aluno .data-aula small { font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--muted); margin-top: .2rem; }
.aulas-aluno .nova .data-aula small { color: #c9b48a; }
.aulas-aluno .corpo { min-width: 0; display: grid; gap: .2rem; }
.aulas-aluno .titulo-aula { font: 500 1.08rem/1.25 var(--font-display); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.aulas-aluno .trecho { max-width: none; }
.aulas-aluno .meta-aula { color: var(--gold-1); font-weight: 700; font-size: .78rem; }
.aulas-aluno .seta { color: var(--muted); font-size: 1.1rem; transition: transform .25s var(--ease), color .2s; }
.aulas-aluno a:hover .seta { transform: translateX(3px); color: var(--gold-1); }

.aula-cabecalho { margin: .2rem 0 1.6rem; }
.aula-cabecalho h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); font-weight: 400; letter-spacing: -.03em; font-variation-settings: "opsz" 144; margin: 0 0 .9rem; }
.aula-meta { display: flex; flex-wrap: wrap; gap: .5rem; }
.aula-meta > span {
  display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .75rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: .8rem; font-weight: 700; color: var(--text-2);
}
.aula-meta i { color: var(--gold-2); }
.bloco-aula h2 { display: flex; align-items: center; gap: .65rem; font-size: 1.22rem; margin-bottom: 1rem; }
.bloco-aula h2 i {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; font-size: 1.05rem;
  color: var(--gold-1); background: linear-gradient(145deg, rgba(198,154,69,.2), rgba(198,154,69,.04)); border: 1px solid rgba(198,154,69,.25);
}
.texto-aula { white-space: pre-line; font-size: 1.02rem; line-height: 1.75; color: var(--text-2); overflow-wrap: anywhere; }
.destaque-casa {
  border-color: transparent;
  background:
    radial-gradient(500px 160px at 100% 0%, rgba(227,192,117,.14), transparent 70%),
    linear-gradient(180deg, #fffcf5, #fff) padding-box,
    linear-gradient(140deg, rgba(198,154,69,.8), rgba(198,154,69,.15) 45%, rgba(198,154,69,.55)) border-box;
  border: 1px solid transparent;
}
.destaque-casa h2 i { background: var(--gold-grad); color: #1c1409; border-color: transparent; }
.destaque-casa .texto-aula { color: var(--text); }
.materiais { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; }
.material {
  display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; padding: .8rem .9rem; border-radius: var(--r);
  background: var(--surface-2); border: 1px solid var(--line); transition: border-color .2s;
}
.material:hover { border-color: rgba(198,154,69,.35); }
.material .pdf {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; font-size: 1.2rem;
  color: var(--bad); background: var(--bad-bg); border: 1px solid rgba(207,63,49,.15);
}
.material strong { display: block; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.material small { color: var(--muted); font-weight: 650; }
/* Celular: nome do PDF ocupa a linha toda e os botoes descem (antes o nome virava "Proj...") */
@media (max-width: 520px) {
  .material .material-nome { flex: 1 1 calc(100% - 60px) !important; }
  .material .btn-claro { margin-left: auto; }
}
.material-video {
  border-radius: var(--r-lg); overflow: hidden; background: var(--ebano);
  border: 1px solid rgba(227,192,117,.25); box-shadow: 0 30px 60px -36px rgba(20,17,12,.7);
}
.material-video video { display: block; width: 100%; max-height: 72vh; background: #000; }
.material-video-info { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; color: #e9e1d2; background: linear-gradient(180deg, #1a160f, #110e0a); }
.material-video-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-weight: 750; }
.material-video-info small { color: #b8a98a; font-weight: 650; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.material-video-info .btn-fantasma { color: #e9e1d2; }
.material-video-info .btn-fantasma:hover { background: rgba(255,255,255,.08); color: #fff; }
.material-video-info .midia-status { color: #e7c57c; }
.material-video-info .midia-status.pronto, .material-video-info .midia-status.pronto i { color: #6fdca8; }
/* Botao "Salvar" do video (baixa para o celular / galeria) */
.material-video-info .btn-salvar-video { flex: none; background: rgba(255,255,255,.08); color: #f3e9d4; border-color: rgba(227,192,117,.35); }
.material-video-info .btn-salvar-video:hover { background: rgba(227,192,117,.18); color: #fff; }
.material-video-info .btn-salvar-video.carregando { pointer-events: none; opacity: .8; }
.video-aviso, .video-dica { display: flex; gap: .55rem; align-items: flex-start; margin: 0; padding: .7rem 1rem; font-size: .84rem; line-height: 1.45; color: #e9e1d2; background: #15110c; border-top: 1px solid rgba(227,192,117,.15); }
.video-aviso[hidden], .video-dica[hidden] { display: none; }
.video-aviso i, .video-dica i { color: #e7c57c; }
.video-aviso strong, .video-dica strong { color: #fff; }
/* Janela "salvar na galeria": barra de progresso do download */
.salvar-progresso { height: 8px; border-radius: 99px; background: var(--gold-soft); overflow: hidden; margin: .2rem 0 .6rem; }
.salvar-progresso > span { display: block; height: 100%; width: 0; background: var(--gold-grad); transition: width .25s; }
.salvar-progresso.indeterminado > span { width: 35%; animation: salvar-vai-e-vem 1.2s ease-in-out infinite alternate; }
@keyframes salvar-vai-e-vem { from { transform: translateX(-10%); } to { transform: translateX(200%); } }
.toast-video { position: fixed; left: 50%; bottom: calc(1.2rem + env(safe-area-inset-bottom)); transform: translate(-50%, 12px); z-index: 60;
  max-width: min(92vw, 460px); padding: .75rem 1rem; border-radius: 14px; background: #1a160f; color: #f3e9d4; font-size: .88rem; font-weight: 650;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast-video.visivel { opacity: 1; transform: translate(-50%, 0); }
.duvida-aula { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; background: linear-gradient(180deg, #fffaf0, #fbf3e2); border-color: rgba(198,154,69,.3); }
.duvida-aula h2 { margin: 0 0 .25rem; }
.duvida-aula p { margin: 0; color: var(--muted); }

/* ================================================================
   14. Login e primeiro acesso (painel artístico com o acordeon)
   ================================================================ */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; }
@media (min-width: 980px) { .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.auth-arte {
  display: none; position: relative; overflow: hidden; isolation: isolate;
  padding: 3rem clamp(2rem, 4vw, 3.6rem); border-right: 1px solid var(--line);
  background: radial-gradient(800px 500px at 20% 10%, rgba(227,192,117,.24), transparent 60%), linear-gradient(180deg, #fbf5e8, #f4ecdb);
}
@media (min-width: 980px) { .auth-arte { display: flex; flex-direction: column; justify-content: space-between; gap: 1.6rem; position: sticky; top: 0; height: 100vh; } }
.auth-arte h2 {
  font: 300 clamp(2.1rem, 1.5rem + 1.9vw, 3.2rem)/1.05 var(--font-display); letter-spacing: -.03em; margin: 0; max-width: 15ch;
  font-variation-settings: "opsz" 144;
}
.auth-arte h2 em { font-style: italic; background: var(--gold-grad-texto); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-arte .pauta { opacity: .7; top: 46%; }
.auth-arte .acordeon { width: 100%; max-width: 380px; margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(60,45,20,.28)); }
.auth-lista { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .75rem; color: var(--text-2); font-weight: 650; }
.auth-lista li { display: flex; gap: .75rem; align-items: center; }
.auth-lista i {
  width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px;
  color: var(--gold-1); background: rgba(255,255,255,.7); border: 1px solid rgba(198,154,69,.3);
}
.rodape-frase { font-family: var(--font-display); font-style: italic; color: var(--text-2); font-size: 1rem; margin: 0; }
.auth-form { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem 1.15rem 4rem; }
.auth-topo-movel { width: 100%; max-width: 460px; margin-bottom: 2rem; }
@media (min-width: 980px) { .auth-topo-movel { display: none; } .auth-form { padding: 3rem 2rem; } }
.auth-caixa { width: 100%; max-width: 460px; }
.auth-caixa h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.7rem); font-weight: 400; letter-spacing: -.025em; font-variation-settings: "opsz" 144; }
.auth-caixa > p.muted { margin: 0 0 1.6rem; color: var(--muted); }
.auth-caixa > form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem;
  box-shadow: var(--shadow-2);
}
.auth-caixa > form .campo:last-of-type { margin-bottom: 1.2rem; }
.auth-caixa .btn[type=submit] { width: 100%; min-height: 54px; font-size: 1rem; border-radius: 14px; }
.auth-icone {
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; font-size: 1.4rem; margin-bottom: 1.2rem;
  color: #fbecc0; background: var(--ebano-grad); border: 1px solid rgba(227,192,117,.35); box-shadow: 0 14px 30px -14px rgba(198,154,69,.7);
}
.auth-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 1rem; }
.auth-links form { margin: 0; background: none; border: 0; padding: 0; box-shadow: none; }
.auth-rodape { margin-top: 1.4rem; text-align: center; color: var(--muted); font-weight: 600; }
.auth-rodape a { font-weight: 800; }

/* pauta musical animada (fundo) */
.pauta {
  position: absolute; left: -5%; right: -5%; top: 50%; height: 220px; transform: translateY(-50%) rotate(-6deg); z-index: -1;
  opacity: .5; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.pauta svg { width: 100%; height: 100%; }
.pauta .linhas path { stroke: rgba(168,122,50,.22); stroke-width: 1; }
.pauta .notas { animation: deslizar 38s linear infinite; }
.pauta .notas * { fill: rgba(168,122,50,.3); }

/* ilustração do acordeon: o fole abre uma vez ao carregar */
.acordeon { position: relative; width: 100%; height: auto; display: block; overflow: visible; }
.acordeon > ellipse:first-of-type { opacity: .25; }
.acordeon .fole-pregas { transform-box: fill-box; transform-origin: left center; animation: abrir-fole 1.8s var(--ease) .3s both; }
.acordeon .lado-baixos { animation: mover-baixos 1.8s var(--ease) .3s both; }
@keyframes abrir-fole { from { transform: scaleX(.42); } to { transform: scaleX(1); } }
@keyframes mover-baixos { from { transform: translateX(-150px); } to { transform: translateX(0); } }

/* ================================================================
   15. Janelas e páginas de erro
   ================================================================ */
dialog {
  width: min(460px, calc(100vw - 2rem)); padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-xl);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-3);
}
dialog[open] { animation: surgir-janela .35s var(--ease) both; }
dialog::backdrop { background: rgba(29,25,18,.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog form, dialog .dialog-corpo { padding: 1.7rem 1.6rem 1.4rem; }
dialog h2 { font-size: 1.45rem; margin: 0 0 .4rem; }
dialog p { margin: 0 0 1.2rem; color: var(--muted); }
dialog .acoes { justify-content: flex-end; margin-top: 1.3rem; }
dialog .dialog-icone {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; font-size: 1.35rem; margin-bottom: 1.1rem;
  color: #1c1409; background: var(--gold-grad); box-shadow: var(--shadow-gold);
}
dialog .dialog-icone.perigo { background: var(--bad-bg); color: var(--bad); box-shadow: none; border: 1px solid rgba(207,63,49,.2); }

.pagina-erro { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 3rem 1.2rem; }
.pagina-erro > div { max-width: 560px; }
.pagina-erro .codigo {
  font: 200 italic clamp(6rem, 4rem + 10vw, 11rem)/.9 var(--font-display); letter-spacing: -.05em; margin-bottom: 1rem;
  background: var(--gold-grad-texto); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variation-settings: "opsz" 144; padding-right: .06em;
}
.pagina-erro h1 { margin-bottom: .6rem; }
.pagina-erro p { margin: 0 auto 1.8rem; max-width: 44ch; color: var(--muted); }
.pagina-erro .acoes { justify-content: center; }
.pagina-erro .caixa { text-align: left; margin: 0 auto 1.6rem; }
.pagina-erro .marca { margin-bottom: 2.4rem; }

/* ================================================================
   16. Minha conta: passo a passo, qualidade do áudio
   ================================================================ */
.passo-a-passo { padding: 1rem 1.1rem; border-radius: var(--r); background: linear-gradient(180deg, #fffaf0, #fbf3e2); border: 1px solid rgba(198,154,69,.3); margin-bottom: 1.2rem; }
.passo-a-passo p { margin: 0 0 .5rem; font-weight: 700; }
.passo-a-passo ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; color: var(--text-2); }
.perfil-cabecalho { display: flex; align-items: center; gap: 1.1rem; }
.perfil-cabecalho h1 { margin: 0; }
.perfil-cabecalho p { margin: .4rem 0 0; display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; color: var(--muted); }

.audio-cartao { display: grid; gap: 1.1rem; }
.audio-cadeia { display: grid; gap: .55rem; counter-reset: etapa; margin: 0; padding: 0; list-style: none; }
.audio-cadeia li {
  counter-increment: etapa; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8rem; align-items: start;
  padding: .75rem .9rem; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line);
}
.audio-cadeia li::before {
  content: counter(etapa, upper-roman); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px;
  font: 400 italic 1rem/1 var(--font-display); color: var(--gold-1); background: var(--gold-soft); border: 1px solid rgba(198,154,69,.25);
}
.audio-cadeia strong { display: block; font-size: .92rem; }
.audio-cadeia small { display: block; color: var(--muted); font-weight: 600; font-size: .8rem; margin-top: .1rem; }
.audio-numeros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.audio-numeros div { padding: .8rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-align: center; }
.audio-numeros b { display: block; font: 500 1.6rem/1 var(--font-display); letter-spacing: -.02em; }
.audio-numeros span { display: block; margin-top: .3rem; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.audio-numeros .ouro b { background: var(--gold-grad-texto); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ================================================================
   17. Animações, utilitários e impressão
   ================================================================ */
@keyframes surgir { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes surgir-janela { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pulsar { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes subir { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes deslizar { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes flutuar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes equalizar { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* entrada suave do conteúdo */
.conteudo > *, .pagina > *, .auth-caixa > * { animation: surgir .6s var(--ease) both; }
.conteudo > *:nth-child(2), .pagina > *:nth-child(2), .auth-caixa > *:nth-child(2) { animation-delay: .04s; }
.conteudo > *:nth-child(3), .pagina > *:nth-child(3), .auth-caixa > *:nth-child(3) { animation-delay: .08s; }
.conteudo > *:nth-child(4), .pagina > *:nth-child(4), .auth-caixa > *:nth-child(4) { animation-delay: .12s; }
.conteudo > *:nth-child(5), .pagina > *:nth-child(5), .auth-caixa > *:nth-child(5) { animation-delay: .16s; }
.conteudo > *:nth-child(n+6), .pagina > *:nth-child(n+6), .auth-caixa > *:nth-child(n+6) { animation-delay: .2s; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.num { font-variant-numeric: tabular-nums; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.small.alerta, span.alerta { color: var(--bad); font-weight: 700; }
.so-desktop { display: none !important; }
@media (min-width: 760px) { .so-desktop { display: inline-flex !important; } .so-mobile { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

@media print {
  body, html { background: #fff !important; }
  body::before, body::after { display: none; }
  .lateral, .topo, .barra-aluno, .acoes, .filtros, .paginacao, .rodape-form, .nav-movel, .faixa-previa, .duvida-aula { display: none !important; }
  .app { display: block; }
  .caixa { box-shadow: none; border-color: #ddd; break-inside: avoid; }
  .conteudo > *, .pagina > * { animation: none !important; }
}

/* links de nomes dentro das tabelas: sem sublinhado, cor do texto */
td a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 700; }
td a:not(.btn):hover { color: var(--gold-1); }


/* ================================================================
   17. Pix (mensalidades): janela "Pagar com Pix" do aluno e chave do professor
   ================================================================ */
.btn-pix { background: linear-gradient(135deg, #3ad1bd, #32bcad 50%, #279b8e); color: #04211d;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 10px 26px -12px rgba(50,188,173,.65); }
.btn-pix:hover { color: #021613; box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 14px 32px -12px rgba(50,188,173,.8); }
.btn-pix i { color: inherit; }

.mensalidades-aberto { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.mensalidades-aberto li { display: flex; align-items: center; justify-content: space-between; gap: .5rem .8rem; flex-wrap: wrap; }
.mensalidades-aberto li + li { padding-top: .6rem; border-top: 1px solid rgba(198,154,69,.25); }

dialog.dialog-pix { width: min(480px, calc(100vw - 1.25rem)); max-height: calc(100dvh - 1.25rem); overflow-y: auto; overscroll-behavior: contain; }
dialog.dialog-pix .dialog-corpo { position: relative; padding: 1.5rem 1.3rem 1.3rem; }
@media (min-width: 520px) { dialog.dialog-pix .dialog-corpo { padding: 1.8rem 1.7rem 1.5rem; } }
.dialog-fechar { position: absolute; top: .8rem; right: .8rem; }
.pix-cabeca { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; padding-right: 2.4rem; }
.pix-cabeca .dialog-icone { margin: 0 !important; flex: none; background: linear-gradient(135deg, #3ad1bd, #279b8e) !important; color: #fff !important; box-shadow: 0 10px 24px -12px rgba(50,188,173,.7) !important; }
.pix-cabeca h2 { margin: 0 0 .15rem !important; }
.pix-cabeca p { margin: 0; }
.pix-valor { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap;
  padding: .85rem 1rem; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 1rem; }
.pix-valor strong { font: 600 1.7rem/1 var(--font-display); letter-spacing: -.02em; }
.pix-bloco { margin-bottom: 1rem; }
.pix-rotulo { display: block; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 800; margin-bottom: .4rem; }
.pix-rotulo small { text-transform: none; letter-spacing: 0; font-size: .74rem; font-weight: 650; }
.pix-codigo { font: 600 .74rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text-2);
  background: #fff; border: 1px dashed var(--line-2); border-radius: 12px; padding: .6rem .75rem; margin-bottom: .6rem;
  overflow-wrap: anywhere; word-break: break-all; max-height: 4.6em; overflow: hidden; user-select: all; }
.pix-passos { margin: .8rem 0 0; padding-left: 1.2rem; font-size: .86rem; color: var(--text-2); display: grid; gap: .25rem; }
.pix-passos strong { color: var(--text); }
.pix-chave { display: flex; align-items: center; justify-content: space-between; gap: .6rem .9rem; flex-wrap: wrap;
  padding: .85rem 1rem; border-radius: var(--r); border: 1px solid var(--line); margin-bottom: 1rem; }
.pix-chave > div { min-width: 0; flex: 1 1 200px; }
.pix-chave strong { display: block; overflow-wrap: break-word; font-weight: 750; font-size: .98rem; }
.pix-chave .pix-rotulo { margin-bottom: .2rem; }
.pix-qr-caixa { border: 1px solid var(--line); border-radius: var(--r); padding: .2rem 1rem; margin-bottom: 1rem; }
.pix-qr-caixa summary { cursor: pointer; padding: .6rem 0; font-weight: 750; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.pix-qr-caixa summary small { color: var(--muted); font-weight: 600; }
.pix-qr-caixa[open] { padding-bottom: .9rem; }
.pix-qr { width: min(220px, 70vw); margin: .3rem auto .7rem; padding: .5rem; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.pix-qr svg { display: block; width: 100%; height: auto; }
.pix-rodape { display: flex; justify-content: flex-end; align-items: center; gap: .6rem; flex-wrap: wrap; }
.pix-feedback { position: absolute; left: 50%; bottom: 1rem; transform: translate(-50%, 10px); opacity: 0; pointer-events: none;
  background: var(--ebano); color: #fbecc0; font-weight: 750; font-size: .86rem; padding: .55rem .95rem; border-radius: 99px;
  box-shadow: var(--shadow-3); transition: opacity .25s, transform .25s; white-space: nowrap; max-width: calc(100% - 2rem); overflow: hidden; text-overflow: ellipsis; }
.pix-feedback.visivel { opacity: 1; transform: translate(-50%, 0); }
.copiado { background: var(--ok-bg) !important; color: var(--ok) !important; border-color: rgba(29,148,97,.35) !important; }

/* Minha conta (professor): chave cadastrada + QR de teste */
.pix-atual { display: flex; gap: 1rem 1.4rem; align-items: center; flex-wrap: wrap; padding: 1rem; margin-bottom: 1.2rem;
  border-radius: var(--r); background: linear-gradient(180deg, #f2fbf9, #fff); border: 1px solid rgba(50,188,173,.35); }
.pix-atual-dados { flex: 1 1 220px; min-width: 0; display: grid; gap: .3rem; justify-items: start; }
.pix-atual-dados strong { font-size: 1rem; overflow-wrap: break-word; max-width: 100%; }
.pix-atual-dados small { color: var(--muted); font-weight: 650; }
.pix-atual-qr { flex: 0 1 200px; text-align: center; margin: 0 auto; }
.pix-atual-qr .pix-qr { width: 150px; }
.pix-atual-qr small { display: block; color: var(--muted); font-size: .74rem; font-weight: 600; line-height: 1.4; }
.rodape-form form { margin: 0; }

/* Pix automatico (Mercado Pago): carregando, aguardando e confirmado */
.pix-estado[hidden] { display: none !important; }
.pix-estado[data-estado="carregando"] { display: grid; justify-items: center; gap: .8rem; padding: 1.6rem 0 1.2rem; color: var(--muted); font-weight: 650; }
.pix-girando { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(50,188,173,.2); border-top-color: #32bcad; animation: pix-girar .8s linear infinite; }
@keyframes pix-girar { to { transform: rotate(360deg); } }
.pix-aguardando { display: flex; align-items: flex-start; gap: .75rem; padding: .85rem 1rem; border-radius: var(--r);
  background: linear-gradient(180deg, #f2fbf9, #fff); border: 1px solid rgba(50,188,173,.35); margin-bottom: .4rem; }
.pix-aguardando strong { display: block; font-weight: 750; }
.pix-aguardando small { display: block; color: var(--text-2); font-size: .84rem; line-height: 1.45; }
.pix-pulso { flex: none; width: 12px; height: 12px; margin-top: .35rem; border-radius: 50%; background: #32bcad; box-shadow: 0 0 0 0 rgba(50,188,173,.55); animation: pix-pulsar 1.6s ease-out infinite; }
@keyframes pix-pulsar { 0% { box-shadow: 0 0 0 0 rgba(50,188,173,.55); } 100% { box-shadow: 0 0 0 12px rgba(50,188,173,0); } }
.pix-erro { color: var(--bad); font-weight: 650; margin: .2rem 0 .8rem; }
.pix-pago { text-align: center; padding: .6rem 0 .2rem; }
.pix-pago-icone { width: 72px; height: 72px; margin: 0 auto .9rem; border-radius: 50%; display: grid; place-items: center;
  font-size: 2.3rem; color: #fff; background: linear-gradient(135deg, #2fbf7f, #1d9461); box-shadow: 0 14px 30px -14px rgba(29,148,97,.8);
  animation: pix-aparecer .45s var(--ease); }
.pix-pago h3 { margin: 0 0 .3rem; font: 600 1.45rem/1.2 var(--font-display); }
.pix-pago p { color: var(--text-2); margin: 0 0 1.1rem; }
@keyframes pix-aparecer { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pix-girando, .pix-pulso, .pix-pago-icone { animation: none; } }
.pix-auto-info { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem; margin-bottom: 1.2rem; border-radius: var(--r);
  border: 1px solid rgba(50,188,173,.35); background: linear-gradient(180deg, #f2fbf9, #fff); }
.pix-auto-info > i { font-size: 1.4rem; color: #279b8e; }
.pix-auto-info p { margin: .2rem 0 0; font-size: .88rem; color: var(--text-2); }
.pix-auto-info code { font-size: .8rem; overflow-wrap: anywhere; }

/* ================================================================
   18. Ajustes de responsividade (celular)
   ================================================================ */
/* Ações no topo de um cartão (ex.: "Planejamentos de aula" no painel): ocupam só o necessário
   e descem para a linha de baixo quando não cabem, em vez de vazar para fora do cartão */
.caixa-topo > .acoes { flex: 0 1 auto; max-width: 100%; }
/* Tabela simples direto no cartão (ex.: "Aguardando o primeiro acesso" no painel):
   a coluna do aluno encolhe (nome/e-mail com reticências) e a etiqueta "Senha provisória" fica visível */
.caixa > table td:first-child { width: 100%; max-width: 0; }
.caixa > table td.right { white-space: nowrap; }
/* Textos longos (planejamentos, sem espaços, links) não estouram a largura */
.pre, .agenda-mini .info small { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  /* Título + etiqueta no topo do cartão: no celular a etiqueta desce para baixo do texto */
  .caixa-topo > div:first-child:not(.pessoa):not(.acoes) { flex-basis: 100%; }
  .caixa > table td.right .tag { letter-spacing: .06em; }
}
