/* Painel da recepção + login — Acesso 4Beach */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --border: #e4e7ec;
  --border-strong: #d0d5dd;
  --text: #101828;
  --text-2: #344054;
  --muted: #667085;
  /* identidade 4Beach Club: verde-limão #B2D33F + preto */
  --brand: #b2d33f;
  --brand-ink: #111214;            /* texto sobre o verde */
  --accent: #b2d33f;
  --accent-soft: #f2f8dc;
  --accent-text: #4b6400;          /* verde legível sobre branco */
  --lateral: #0e0f11; --lateral-2: #17191d; --lateral-borda: #23262c; --lateral-texto: #a9aeb8;
  --ok: #12b76a; --ok-soft: #ecfdf3; --ok-text: #027a48;
  --warn: #f79009; --warn-soft: #fffaeb; --warn-text: #b54708;
  --danger: #f04438; --danger-soft: #fef3f2; --danger-text: #b42318;
  --wellhub: #e0245e; --wellhub-soft: #fdecf2;
  --totalpass: #7a3cf0; --totalpass-soft: #f2ebfe;
  --aluno: #1570ef; --aluno-soft: #eaf2fe;
  --exp: #475467; --exp-soft: #f2f4f7;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --avatar-bg: #e9ecf1; --avatar-texto: #5b6578;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12;
    --surface: #12151c;
    --surface-2: #181c25;
    --border: #232836;
    --border-strong: #2f3546;
    --text: #eceef3;
    --text-2: #c4c9d4;
    --muted: #8a93a6;
    --accent: #b2d33f;
    --accent-soft: rgba(178, 211, 63, .13);
    --accent-text: #cde66a;
    --lateral: #08090b; --lateral-2: #121418; --lateral-borda: #1c1f25;
    --ok: #32d583; --ok-soft: rgba(50, 213, 131, .12); --ok-text: #6ce9a6;
    --warn: #fdb022; --warn-soft: rgba(253, 176, 34, .12); --warn-text: #fec84b;
    --danger: #f97066; --danger-soft: rgba(249, 112, 102, .12); --danger-text: #fda29b;
    --wellhub: #ff6b97; --wellhub-soft: rgba(255, 107, 151, .14);
    --totalpass: #b28cff; --totalpass-soft: rgba(178, 140, 255, .14);
    --aluno: #6aa8ff; --aluno-soft: rgba(106, 168, 255, .14);
    --exp: #a3acbd; --exp-soft: rgba(163, 172, 189, .12);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --avatar-bg: #1f232b; --avatar-texto: #9aa3b5;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px; line-height: 1.45;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1, "cv11" 1;
}
button, input { font: inherit; color: inherit; }
.oculto { display: none !important; }
.muted { color: var(--muted); }
.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- botões e campos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2);
  font-weight: 600; font-size: 13px; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--surface-2); }
.btn.primario { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); height: 42px; font-size: 14px; }
.btn.primario:hover { filter: brightness(1.05); background: var(--brand); }
.btn.icone { width: 36px; padding: 0; }
.btn.perigo { color: var(--danger-text); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.campo { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13px; color: var(--text-2); }
.campo input, .input {
  height: 40px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--surface); font-weight: 400; font-size: 14px;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.campo input:focus, .input:focus { border-color: var(--accent-text); box-shadow: 0 0 0 4px var(--accent-soft); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); cursor: pointer; }
.checkbox input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--accent-text); }

/* ---------- login ---------- */
.tela-login { min-height: 100%; display: grid; place-items: center; padding: 24px; }
.cartao-login {
  width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px;
}
.cartao-login h1 { font-size: 22px; margin: 4px 0 0; letter-spacing: -.02em; }
.cartao-login p { margin: 0; color: var(--muted); }
.marca { display: flex; align-items: center; gap: 10px; }
.marca-logo {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: #0e0f11; padding: 6px;
}
.marca-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.marca-nome { font-weight: 700; letter-spacing: -.01em; }
.marca-nome small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.alerta { border-radius: 10px; padding: 10px 12px; font-size: 13px; font-weight: 500; }
.alerta.erro { background: var(--danger-soft); color: var(--danger-text); }
.alerta.ok { background: var(--ok-soft); color: var(--ok-text); }
.alerta.aviso { background: var(--warn-soft); color: var(--warn-text); }

/* ---------- casca do app ---------- */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100%; }
.lateral {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 24px;
  padding: 20px 14px; background: var(--lateral); border-right: 1px solid var(--lateral-borda); color: #fff;
}
.lateral .marca-nome { color: #fff; }
.lateral .marca-nome small { color: var(--brand); font-weight: 600; letter-spacing: .02em; }
.lateral .marca-logo { background: var(--lateral-2); }
.lateral .marca { padding: 0 6px; }
.menu { display: flex; flex-direction: column; gap: 2px; }
.menu button {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 10px;
  border: 0; background: none; cursor: pointer; font-weight: 600; color: var(--muted); text-align: left;
}
.menu button { color: var(--lateral-texto); }
.menu button:hover { background: var(--lateral-2); color: #fff; }
.menu button.ativa { background: var(--brand); color: var(--brand-ink); }
.lateral .rodape { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.status-tablet {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  background: var(--lateral-2); font-size: 12px; color: var(--lateral-texto);
}
.status-tablet strong { display: block; color: #fff; font-size: 13px; }
.ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); flex: none; }
.ponto.on { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.usuario { display: flex; align-items: center; gap: 10px; padding: 4px 6px; }
.usuario .avatar-mini { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--lateral-2); font-weight: 700; font-size: 12px; color: var(--brand); }
.lateral .btn { background: var(--lateral-2); border-color: var(--lateral-borda); color: var(--lateral-texto); }
.lateral .btn:hover { color: #fff; }
.usuario #usuario-nome { flex: 1; font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usuario .avatar-mini { flex: none; }

.principal { padding: 24px 28px 40px; min-width: 0; }
.titulo-pagina { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.titulo-pagina h1 { font-size: 22px; margin: 0; letter-spacing: -.02em; }
.titulo-pagina .muted { font-size: 13px; }
.espaco { flex: 1; }
.cartao { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- turmas ---------- */
.turmas { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.lista-aulas { padding: 8px; position: sticky; top: 24px; max-height: calc(100vh - 110px); overflow: auto; }
.lista-aulas .cab { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 10px; }
.lista-aulas .cab strong { font-size: 13px; }
.aula {
  width: 100%; display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center;
  padding: 10px; border-radius: 10px; border: 0; background: none; cursor: pointer; text-align: left;
  position: relative;
}
.aula:hover { background: var(--surface-2); }
.aula.ativa { background: var(--accent-soft); }
.aula.ativa::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--accent-text); }
.aula.passada { opacity: .55; }
.aula .h { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.aula .h small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); }
.aula .n { min-width: 0; }
.aula .n b { display: block; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aula .n span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aula .o { text-align: right; font-size: 12px; color: var(--muted); font-weight: 600; }
.barra { height: 4px; width: 44px; border-radius: 4px; background: var(--border); overflow: hidden; margin-top: 4px; }
.barra i { display: block; height: 100%; background: var(--accent-text); border-radius: 4px; }
.selo-agora {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand-ink); background: var(--brand); padding: 0 6px; border-radius: 999px; line-height: 16px; margin-top: 2px;
}

.detalhe { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.vazio { padding: 48px 24px; text-align: center; color: var(--muted); }
.cab-turma { padding: 20px 22px; display: flex; gap: 16px; align-items: flex-start; }
.cab-turma .sobre { flex: 1; min-width: 0; }
.cab-turma .olho { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.cab-turma h2 { margin: 2px 0 4px; font-size: 22px; letter-spacing: -.02em; }
.cab-turma .meta { color: var(--muted); font-size: 13px; }
.cab-turma .atualizado { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; }

.numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 22px 18px; }
.numero { border-radius: 12px; padding: 12px 14px; background: var(--surface-2); }
.numero b { display: block; font-size: 26px; line-height: 1.1; letter-spacing: -.02em; }
.numero span { font-size: 12px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.numero span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.numero.falta b { color: var(--warn-text); } .numero.falta span { color: var(--warn-text); }
.numero.atencao b { color: var(--danger-text); } .numero.atencao span { color: var(--danger-text); }
.numero.ok b { color: var(--ok-text); } .numero.ok span { color: var(--ok-text); }
.progresso { margin: 0 22px; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; display: flex; }
.progresso i { display: block; height: 100%; }
.progresso .p-ok { background: var(--ok); }
.progresso .p-atencao { background: var(--danger); }
.progresso .p-falta { background: var(--warn); }
.nota { padding: 12px 22px 18px; font-size: 12px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.nota span { display: inline-flex; align-items: center; gap: 6px; }

.grupo { padding: 18px 20px 20px; }
.grupo-cab { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.grupo-cab h3 { margin: 0; font-size: 14px; font-weight: 700; }
.grupo-cab .cont { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.grupo-cab .marcador { width: 10px; height: 10px; border-radius: 3px; }
.grupo.falta .marcador { background: var(--warn); }
.grupo.atencao .marcador { background: var(--danger); }
.grupo.ok .marcador { background: var(--ok); }
.grupo-vazio { font-size: 13px; color: var(--muted); }

.rostos { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 18px 14px; }
.rosto { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rosto .foto {
  position: relative; aspect-ratio: 1; border-radius: 14px; overflow: visible;
}
.rosto .foto .img, .rosto .foto .iniciais {
  width: 100%; height: 100%; border-radius: 14px; overflow: hidden; display: grid; place-items: center;
}
.rosto .foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.iniciais { background: var(--avatar-bg); color: var(--avatar-texto); }
.rosto .iniciais { font-weight: 700; font-size: 30px; letter-spacing: -.02em; padding-bottom: 28px; }
.rosto:not(.sem-rosto) .iniciais, .rosto .iniciais:only-child { padding-bottom: 0; }
.rosto.falta .img { filter: grayscale(1); opacity: .5; }
.rosto.falta .iniciais { opacity: .7; }
.rosto .status {
  position: absolute; right: -6px; bottom: -6px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; border: 3px solid var(--surface);
}
.rosto .status .ico { width: 14px; height: 14px; stroke-width: 3; }
.rosto.ok .status { background: var(--ok); }
.rosto.falta .status { background: var(--warn); }
.rosto.atencao .status { background: var(--danger); }
.rosto .facial {
  position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; color: #fff; background: rgba(16, 24, 40, .72); padding: 3px 7px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.rosto .facial .ico { width: 12px; height: 12px; }
.rosto { gap: 6px; }
.rosto .foto { margin-bottom: 4px; }
.rosto .nome { font-weight: 600; font-size: 13px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rosto .linha { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--muted); }
.rosto .linha .id { font-size: 11px; font-variant-numeric: tabular-nums; opacity: .8; }
.rosto .motivo {
  font-size: 11px; font-weight: 600; line-height: 1.3; padding: 3px 7px; border-radius: 6px; align-self: flex-start; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rosto.falta .motivo { background: var(--warn-soft); color: var(--warn-text); }
.rosto.atencao .motivo { background: var(--danger-soft); color: var(--danger-text); }
.tag { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; }
.tag.Wellhub { color: var(--wellhub); background: var(--wellhub-soft); }
.tag.Totalpass { color: var(--totalpass); background: var(--totalpass-soft); }
.tag.Aluno { color: var(--aluno); background: var(--aluno-soft); }
.tag.Experimental { color: var(--exp); background: var(--exp-soft); }

/* ---------- cadastros ---------- */
.cadastros { display: grid; grid-template-columns: 360px 1fr; gap: 20px; align-items: start; }
.form-cadastro { padding: 22px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; }
.form-cadastro h2, .lista-cadastros h2 { margin: 0; font-size: 16px; letter-spacing: -.01em; }
.form-cadastro p { margin: -8px 0 0; font-size: 13px; color: var(--muted); }
.passos { display: flex; flex-direction: column; gap: 10px; border-radius: 12px; padding: 14px; font-size: 13px; }
.passos.aviso { background: var(--warn-soft); color: var(--warn-text); }
.passos.ok { background: var(--ok-soft); color: var(--ok-text); }
.passos.erro { background: var(--danger-soft); color: var(--danger-text); }
.passos strong { font-size: 14px; }
.passos .acoes { display: flex; gap: 8px; }
.giro { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: giro .8s linear infinite; display: inline-block; vertical-align: -3px; margin-right: 6px; }
@keyframes giro { to { transform: rotate(360deg); } }

.lista-cadastros { padding: 18px 20px; }
.lista-cadastros .cab { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.busca { position: relative; }
.busca .ico { position: absolute; left: 10px; top: 11px; width: 16px; height: 16px; color: var(--muted); }
.busca input { padding-left: 34px; width: 240px; }
.pessoas { list-style: none; margin: 0; padding: 0; }
.pessoas li { display: grid; grid-template-columns: 44px 1fr 130px 36px; gap: 14px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--border); }
.pessoas li:first-child { border-top: 0; }
.pessoas .av { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; font-weight: 700; }
.pessoas .av img { width: 100%; height: 100%; object-fit: cover; }
.pessoas .quem b { display: block; font-weight: 600; }
.pessoas .quem small { color: var(--muted); font-size: 12px; }
.pessoas .id-evo { display: flex; flex-direction: column; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); }
.pessoas .id-evo input { height: 32px; width: 100%; }
.pessoas .vazio { grid-column: 1 / -1; padding: 32px; }

@media (max-width: 1100px) {
  .turmas, .cadastros { grid-template-columns: 1fr; }
  .lista-aulas, .form-cadastro { position: static; max-height: none; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .lateral { position: static; height: auto; flex-direction: row; align-items: center; padding: 12px; gap: 12px; }
  .lateral .menu { flex-direction: row; }
  .lateral .rodape { margin: 0 0 0 auto; flex-direction: row; }
  .lateral .usuario span, .status-tablet div { display: none; }
  .principal { padding: 16px; }
  .numeros { grid-template-columns: repeat(3, 1fr); padding: 0 16px 14px; }
  .pessoas li { grid-template-columns: 44px 1fr 36px; }
  .pessoas .id-evo { grid-column: 2; }
}

/* sem rosto: o quadrado inteiro é o botão de cadastrar */
.rosto .foto-cadastrar {
  width: 100%; height: 100%; border-radius: 14px; cursor: pointer;
  border: 2px dashed var(--border-strong); background: var(--surface-2); color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 12px; line-height: 1.25; text-align: center;
  transition: border-color .15s, background .15s, color .15s;
}
.rosto .foto-cadastrar .cam {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.rosto .foto-cadastrar .cam .ico { width: 18px; height: 18px; }
.rosto .foto-cadastrar:hover, .rosto .foto-cadastrar:focus-visible {
  border-color: var(--brand); border-style: solid; background: var(--accent-soft); color: var(--accent-text); outline: none;
}
.rosto .foto-cadastrar:hover .cam, .rosto .foto-cadastrar:focus-visible .cam {
  background: var(--brand); border-color: var(--brand); color: var(--brand-ink); transform: scale(1.06);
}
.rosto.falta .foto-cadastrar { opacity: .85; }

/* diálogo */
.dialogo {
  width: min(440px, calc(100vw - 32px)); border: 1px solid var(--border); border-radius: 18px; padding: 0;
  background: var(--surface); color: var(--text); box-shadow: 0 24px 48px rgba(16, 24, 40, .28);
}
.dialogo::backdrop { background: rgba(8, 9, 11, .55); backdrop-filter: blur(2px); }
.dlg-corpo { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.dlg-etapa { display: flex; flex-direction: column; gap: 16px; }
.dialogo.largo { width: min(620px, calc(100vw - 32px)); }
.dialogo p { margin: 0; font-size: 13px; }
.dlg-topo { display: flex; gap: 14px; align-items: center; }
.dlg-topo h2 { margin: 2px 0; font-size: 18px; letter-spacing: -.01em; }
.dlg-topo .olho { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-text); }
#dlg-avatar .av { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; font-weight: 700; font-size: 22px; }
#dlg-avatar .av img { width: 100%; height: 100%; object-fit: cover; }
.dlg-acoes { display: flex; justify-content: flex-end; gap: 10px; }
.dlg-acoes .btn.primario { height: 36px; font-size: 13px; }

/* skeleton (carregando) */
.sk {
  display: block; border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
  background-size: 200% 100%; animation: brilho 1.3s ease-in-out infinite;
}
@keyframes brilho { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
.sk-aula { display: grid; grid-template-columns: 52px 1fr 44px; gap: 10px; align-items: center; padding: 12px 10px; }
.sk-aula .col { display: flex; flex-direction: column; gap: 6px; }
.sk-rosto { display: flex; flex-direction: column; gap: 8px; }
.sk-rosto .sk:first-child { aspect-ratio: 1; border-radius: 14px; }
.numero b .sk { height: 29px; width: 34px; margin-bottom: 1px; }
.cont .sk { display: inline-block; width: 10px; height: 10px; vertical-align: -1px; }
/* skeleton sobre fundos que já são --surface-2 (cartões dos números) precisa de mais contraste */
.numero .sk {
  background-image: linear-gradient(90deg, var(--border) 25%, var(--border-strong) 50%, var(--border) 75%);
  background-size: 200% 100%;
}

/* prévia ao vivo e fotos do cadastro */
.previa { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #0b0c0f; }
.previa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.previa img:not([src]) { visibility: hidden; }
.previa-vazia { position: absolute; inset: 0; display: grid; place-items: center; color: #a9aeb8; font-size: 13px; grid-auto-flow: column; gap: 8px; align-content: center; justify-content: center; }
.dica-previa {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); white-space: nowrap;
  background: rgba(14, 15, 17, .75); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
}
.dica-previa:empty { display: none; }
.dica-previa.ok { background: var(--brand); color: var(--brand-ink); }
.ao-vivo { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #fff; background: rgba(14, 15, 17, .6); padding: 4px 8px; border-radius: 999px; }
.ao-vivo i { width: 7px; height: 7px; border-radius: 50%; background: #f04438; animation: pisca 1.2s infinite; }
@keyframes pisca { 50% { opacity: .3; } }
.btn.grande { height: 48px; font-size: 15px; }
.fotos-cab { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: -6px; }
.fotos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.miniatura { position: relative; aspect-ratio: 5 / 6; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 2px solid transparent; }
.miniatura img { width: 100%; height: 100%; object-fit: cover; display: block; }
.miniatura.vazia { border: 2px dashed var(--border-strong); display: grid; place-items: center; color: var(--muted); font-weight: 700; font-size: 13px; }
.miniatura.principal { border-color: var(--brand); }
.miniatura .apagar {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(14, 15, 17, .75); color: #fff; opacity: 0; transition: opacity .15s;
}
.miniatura .apagar .ico { width: 12px; height: 12px; stroke-width: 3; }
.miniatura .estrela {
  position: absolute; left: 4px; right: 4px; bottom: 4px; border: 0; border-radius: 6px; cursor: pointer;
  font-size: 10px; font-weight: 700; padding: 3px 0; background: rgba(14, 15, 17, .75); color: #fff; opacity: 0; transition: opacity .15s;
}
.miniatura.principal .estrela { opacity: 1; background: var(--brand); color: var(--brand-ink); }
.miniatura:hover .apagar, .miniatura:hover .estrela, .miniatura:focus-within .apagar, .miniatura:focus-within .estrela { opacity: 1; }
@media (hover: none) { .miniatura .apagar, .miniatura .estrela { opacity: 1; } }
.dica-fotos { font-size: 12px !important; }
.pronto { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 0 8px; text-align: center; }
.pronto strong { font-size: 18px; }
.pronto-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); }
.pronto-ico .ico { width: 28px; height: 28px; stroke-width: 3; }
@media (max-width: 560px) { .fotos { grid-template-columns: repeat(3, 1fr); } }
/* a janela de cadastro cabe em telas de notebook */
.dialogo { max-height: calc(100vh - 32px); overflow: auto; }
.previa { aspect-ratio: auto; height: min(42vh, 380px); }

/* etapas guiadas do cadastro */
.etapas-pose { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.etapa-pose img { width: 22px; height: 22px; flex: none; }
.etapa-pose:not(.atual):not(.feita) img { opacity: .5; filter: grayscale(.6); }
.miniatura.vazia .icone-pose { width: 56%; height: auto; object-fit: contain; opacity: .75; }
.etapa-pose { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 8px; border-radius: 8px; background: var(--surface-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etapa-pose b { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--border); color: var(--text-2); }
.etapa-pose b .ico { width: 11px; height: 11px; stroke-width: 3.5; }
.etapa-pose.feita { color: var(--ok-text); }
.etapa-pose.feita b { background: var(--ok); color: #fff; }
.etapa-pose.atual { background: var(--accent-soft); color: var(--accent-text); box-shadow: 0 0 0 1px var(--accent-text) inset; }
.etapa-pose.atual b { background: var(--brand); color: var(--brand-ink); }
.instrucao-previa {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%); max-width: calc(100% - 140px); text-align: center;
  background: rgba(14, 15, 17, .75); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 10px;
}
.btn.primario.esperando:disabled { opacity: 1; background: var(--surface-2); border-color: var(--border-strong); color: var(--muted); }
.miniatura .rotulo { position: absolute; left: 4px; top: 4px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #fff; background: rgba(14, 15, 17, .65); padding: 2px 5px; border-radius: 5px; }
.miniatura.vazia { flex-direction: column; gap: 2px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4px; }
.miniatura.vazia small { font-size: 10px; font-weight: 600; line-height: 1.2; }
.btn.primario.opcional:disabled { opacity: 1; background: transparent; border: 1px dashed var(--border-strong); color: var(--muted); font-weight: 500; }

/* estado da pose (sem vídeo) */
.status-pose {
  display: grid; grid-template-columns: 96px 1fr; grid-template-rows: auto auto; gap: 14px 18px; align-items: center;
  padding: 18px; border-radius: 14px; background: var(--surface-2); border: 2px solid transparent; transition: border-color .2s, background .2s;
}
.status-pose img { width: 96px; height: 96px; object-fit: contain; grid-row: span 1; }
.status-pose-texto { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.status-pose-texto strong { font-size: 20px; letter-spacing: -.01em; }
.status-pose .olho { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-text); }
.aluno-agora { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--border); }
.rotulo-agora { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.rotulo-agora i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pisca 1.2s infinite; }
.status-pose.sem-sinal .rotulo-agora i { background: var(--muted); animation: none; }
.dica-status { font-size: 15px; font-weight: 700; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.dica-status.ok { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.status-pose.pronto { border-color: var(--brand); background: var(--accent-soft); }
