/* Visual no estilo do NutriPlan (claro, bordas finas, rótulos em caixa alta, menu lateral escuro),
   com a cor da academia em --cor (e derivadas calculadas no app.js). */
:root {
  --cor: #4b5563; --cor-escura: #374151; --cor-clara: #eceef1; --cor-clarinha: #f6f7f8; --lateral: #1f2329;
  --fundo: #f3f5f4; --cartao: #fff; --linha: #e4e9e6; --linha-2: #eef1ef;
  --txt: #17231e; --suave: #6b7a73; --apagado: #9aa7a1; --lateral-txt: #c9d3df;
  --ok: #2f6b55; --ok-claro: #e8f2ec; --atencao: #c27a3a; --atencao-claro: #fcefe4; --ruim: #c2483d; --ruim-claro: #fbeae8;
  --agua: #3b8fc4; --agua-claro: #e6f0f6; --lilas-claro: #efeaf4;
  --raio: 16px; --sombra: 0 1px 2px rgba(16, 32, 26, .04), 0 4px 16px rgba(16, 32, 26, .04);
  --fonte: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--fonte); font-size: 14px; background: var(--fundo); color: var(--txt); -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--cor); }
.carregando { padding: 40px; text-align: center; color: var(--suave); }
h1 { font-size: 26px; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 16px; margin: 0; }
.rot { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--suave); font-weight: 600; margin-bottom: 8px; }
.olho { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--suave); font-weight: 600; margin: 0 0 6px; }
.sub { color: var(--suave); margin: 6px 0 0; font-size: 15px; }
.muted { color: var(--suave); font-size: 13px; }
.mt { margin-top: 12px; }

/* ---------------- moldura ---------------- */
.corpo { display: flex; min-height: 100vh; }
.lateral { width: 248px; flex: none; background: var(--lateral); color: var(--lateral-txt); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; padding: 18px 12px; }
.lateral .marca { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.lateral .marca img { width: 42px; height: 42px; border-radius: 50%; object-fit: contain; background: #ffffff14; }
.lateral .marca b { color: #fff; font-size: 16px; line-height: 1.2; }
.lateral .secao { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #8796ab; padding: 12px 10px 6px; }
.lateral a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--lateral-txt);
  text-decoration: none; font-size: 14.5px; border-left: 3px solid transparent; }
.lateral a svg { width: 19px; height: 19px; }
.lateral a:hover { background: #ffffff0d; }
.lateral a.ativo { background: #ffffff17; color: #fff; border-left-color: var(--cor-viva, #7fa6ff); }
.lateral .lema-lateral { margin: auto 6px 12px; padding: 14px; border-radius: 12px; background: #ffffff0d; font-size: 13px; line-height: 1.45;
  color: #e6ecf5; font-style: italic; }
.lateral .lema-lateral small { display: block; font-style: normal; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #8796ab; margin-bottom: 4px; }
.lateral .quem { display: flex; align-items: center; gap: 10px; padding: 12px 8px 2px; border-top: 1px solid #ffffff14; }
.lateral .quem .av { width: 36px; height: 36px; border-radius: 50%; background: var(--cor-clara); color: var(--cor); display: grid; place-items: center; font-weight: 700; }
.lateral .quem b { color: #fff; display: block; font-size: 13.5px; }
.lateral .quem span { font-size: 12px; color: #8796ab; }
.lateral .quem button { margin-left: auto; background: none; border: 0; color: #8796ab; cursor: pointer; padding: 6px; }
.lateral .quem button svg { width: 18px; height: 18px; }
.principal { flex: 1; min-width: 0; }
.topo { display: none; }
main { max-width: 1120px; margin: 0 auto; padding: 36px 32px 60px; }
.cabeca { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.sino { position: fixed; right: 26px; bottom: 26px; width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--cor);
  color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px #0003; cursor: pointer; z-index: 8; }
.sino svg { width: 22px; height: 22px; }
.bolinha { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--ruim);
  font-size: 11px; display: grid; place-items: center; padding: 0 5px; font-weight: 700; border: 2px solid #fff; color: #fff; }
.bolinha[hidden] { display: none; }
.abas-baixo { display: none; }

@media (max-width: 899px) {
  .lateral { display: none; }
  .topo { display: flex; position: sticky; top: 0; z-index: 7; align-items: center; gap: 12px; padding: 10px 16px;
    padding-top: max(10px, env(safe-area-inset-top)); background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--linha); backdrop-filter: blur(6px); }
  .topo img { width: 36px; height: 36px; border-radius: 50%; object-fit: contain; }
  .topo .quem { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
  .topo .quem b, .topo .quem span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topo .quem span { color: var(--suave); font-size: 12.5px; }
  .topo .icone { position: relative; width: 40px; height: 40px; border: 1px solid var(--linha); border-radius: 12px; background: #fff;
    display: grid; place-items: center; cursor: pointer; }
  .topo .icone svg { width: 19px; height: 19px; }
  .sino { display: none; }
  main { padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); }
  h1 { font-size: 24px; }
  .abas-baixo { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 7; background: #fff; border-top: 1px solid var(--linha);
    padding-bottom: env(safe-area-inset-bottom); }
  .abas-baixo a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 2px 8px; font-size: 11.5px;
    color: var(--suave); text-decoration: none; }
  .abas-baixo a svg { width: 23px; height: 23px; }
  .abas-baixo a.ativo { color: var(--cor); font-weight: 600; }
}

/* ---------------- componentes ---------------- */
.cartao { background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio); box-shadow: var(--sombra); padding: 20px; margin-bottom: 14px; }
.grade-cartoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 14px; align-items: start; }
.grade-cartoes > .cartao { margin: 0; }
.linha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.entre { justify-content: space-between; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 10px;
  border: 1px solid var(--linha); background: #fff; font-weight: 600; cursor: pointer; text-decoration: none; color: var(--txt); white-space: nowrap; }
.btn:hover { border-color: #cfd8d3; }
.btn.prim { background: var(--cor); border-color: var(--cor); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--cor) 30%, transparent); }
.btn.prim:hover { background: var(--cor-escura); }
.btn.fino { height: 34px; padding: 0 13px; font-size: 13px; }
.btn.perigo { color: var(--ruim); }
.btn.bloco { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.link { background: none; border: 0; color: var(--cor); font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.etiqueta { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--cor-clara); color: var(--cor); white-space: nowrap; }
.etiqueta.ok { background: var(--ok-claro); color: var(--ok); }
.etiqueta.atencao { background: var(--atencao-claro); color: var(--atencao); }
.etiqueta.ruim { background: var(--ruim-claro); color: var(--ruim); }
.etiqueta i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
label.campo { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 600; }
label.campo input:not([type=checkbox]), label.campo select, label.campo textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px;
  border: 1px solid var(--linha); border-radius: 10px; background: #fff; font-size: 15px; font-weight: 400; }
label.campo input:focus, label.campo select:focus { outline: 2px solid var(--cor-clara); border-color: var(--cor); }
.vazio { color: var(--suave); text-align: center; padding: 22px; }
.lista-simples { list-style: none; padding: 0; margin: 0; }
.lista-simples li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--linha-2); }
.lista-simples li:first-child { border-top: 0; }
.lista-simples li label { display: flex; align-items: center; gap: 10px; }
.lista-simples li .esp { flex: 1; }
.av { width: 36px; height: 36px; border-radius: 50%; background: var(--cor-clara); color: var(--cor); display: grid; place-items: center;
  font-weight: 700; font-size: 13px; flex: none; }

/* cartões de número (como no Início do NutriPlan) */
.numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 14px; }
.numero { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--linha); border-radius: var(--raio);
  box-shadow: var(--sombra); padding: 18px; }
.numero .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--cor-clara); color: var(--cor); }
.numero .ico svg { width: 21px; height: 21px; }
.numero .ico.ok { background: var(--ok-claro); color: var(--ok); }
.numero .ico.atencao { background: var(--atencao-claro); color: var(--atencao); }
.numero .ico.ruim { background: var(--ruim-claro); color: var(--ruim); }
.numero .ico.agua { background: var(--agua-claro); color: var(--agua); }
.numero .tit { color: var(--suave); font-size: 13.5px; }
.numero b { display: block; font-size: 28px; line-height: 1.15; margin: 2px 0; }
.numero b small { font-size: 14px; color: var(--suave); font-weight: 500; }
.numero .rodape { color: var(--suave); font-size: 12.5px; }
.grande { font-size: 34px; font-weight: 700; line-height: 1.1; }
.grande small { font-size: 15px; font-weight: 500; color: var(--suave); }

/* ---------------- lema da academia ---------------- */
.lema { position: relative; overflow: hidden; border-radius: var(--raio); padding: 22px 24px 22px 74px; margin-bottom: 16px;
  background: linear-gradient(120deg, var(--cor) 0%, var(--cor-escura) 100%); color: #fff; box-shadow: var(--sombra); }
.lema::before { content: "\201C"; position: absolute; left: 20px; top: 4px; font-size: 82px; line-height: 1; font-family: Georgia, serif; opacity: .45; }
.lema small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; margin-bottom: 4px; }
.lema p { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.35; }
.lema img { position: absolute; right: -18px; bottom: -26px; width: 130px; height: 130px; object-fit: contain; opacity: .16; }

/* ---------------- check-in ---------------- */
.checkin { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; background: var(--cor-clarinha);
  border-color: color-mix(in srgb, var(--cor) 18%, #fff); }
.checkin h2 { font-size: 19px; margin-bottom: 4px; }
.checkin p { margin: 0; color: var(--suave); line-height: 1.5; }
.btn-checkin { border: 0; border-radius: 14px; height: 58px; padding: 0 30px; font-size: 18px; font-weight: 700; background: var(--cor); color: #fff;
  cursor: pointer; box-shadow: 0 8px 20px color-mix(in srgb, var(--cor) 35%, transparent); transition: transform .1s; display: inline-flex; align-items: center; gap: 10px; }
.btn-checkin svg { width: 22px; height: 22px; }
.btn-checkin:active { transform: scale(.97); }
.checkin.feito { background: #fff; border-color: var(--linha); }
.selo { width: 58px; height: 58px; border-radius: 50%; background: var(--ok-claro); color: var(--ok); display: grid; place-items: center; flex: none; }
.selo svg { width: 30px; height: 30px; }
.feito-linha { display: flex; gap: 14px; align-items: center; }
.animar .selo { animation: pulo .5s ease-out; }
@keyframes pulo { 0% { transform: scale(.3); opacity: 0 } 70% { transform: scale(1.12) } 100% { transform: scale(1); opacity: 1 } }
.treinos-hoje { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 599px) { .checkin { grid-template-columns: 1fr; } .btn-checkin { width: 100%; justify-content: center; } }

/* semana e sequência */
.semana-pontos { display: flex; gap: 6px; margin: 12px 0 8px; }
.semana-pontos span { flex: 1; height: 10px; border-radius: 5px; background: var(--linha); }
.semana-pontos span.cheio { background: var(--cor); }
.barrinhas { display: flex; align-items: flex-end; gap: 5px; height: 40px; margin-top: 10px; }
.barrinhas i { flex: 1; max-width: 16px; background: var(--linha); border-radius: 4px 4px 0 0; min-height: 4px; }
.barrinhas i.ok { background: var(--cor); }

/* calendário */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 10px; }
.cal .cab { font-size: 11px; color: var(--apagado); text-align: center; font-weight: 600; }
.cal .d { aspect-ratio: 1; border-radius: 9px; background: var(--fundo); display: grid; place-items: center; font-size: 12px; color: var(--suave); }
.cal .d.sim { background: var(--cor); color: #fff; font-weight: 700; }
.cal .d.hoje { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--cor); }
.cal .d.futuro { background: transparent; color: var(--apagado); }

/* faixa */
.faixa { position: relative; height: 56px; border-radius: 9px; display: flex; overflow: hidden; box-shadow: inset 0 -7px 0 #0000001a, 0 2px 6px #0002; }
.faixa .pano { flex: 1; }
.faixa .ponta { width: 28%; display: flex; align-items: center; gap: 7px; padding-left: 12px; }
.faixa .grau { width: 7px; height: 70%; background: #fff; border-radius: 2px; }
.faixa.mini { height: 18px; width: 86px; border-radius: 4px; display: inline-flex; vertical-align: middle; flex: none; }
.faixa.mini .ponta { gap: 3px; padding-left: 4px; }
.faixa.mini .grau { width: 3px; }

/* água */
.barra { height: 12px; border-radius: 6px; background: var(--agua-claro); overflow: hidden; margin: 10px 0 12px; }
.barra > i { display: block; height: 100%; background: var(--agua); border-radius: 6px; transition: width .3s; }
.colunas { display: flex; align-items: flex-end; gap: 5px; height: 100px; margin-top: 12px; }
.colunas span { flex: 1; background: #cfe3f0; border-radius: 5px 5px 0 0; min-height: 4px; }
.colunas span.bateu { background: var(--agua); }

/* grade de horários (logo ao fundo) */
.grade-horarios { position: relative; background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); box-shadow: var(--sombra); overflow: hidden; }
.grade-horarios .marca-fundo { position: absolute; inset: 44px 0 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.grade-horarios .marca-fundo img { width: min(55%, 420px); max-height: 85%; object-fit: contain; opacity: .07; }
.tabela-grade { position: relative; width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.tabela-grade th { padding: 13px 4px; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--suave);
  border-bottom: 1px solid var(--linha); background: #fafbfa; }
.tabela-grade td { border-top: 1px solid var(--linha-2); padding: 6px; vertical-align: top; }
.tabela-grade td.h { font-weight: 700; color: var(--suave); width: 66px; text-align: center; vertical-align: middle; }
.aula { display: block; width: 100%; text-align: left; border: 1px solid transparent; border-radius: 10px; padding: 8px 10px; margin-bottom: 4px;
  background: color-mix(in srgb, var(--cor) 9%, #ffffffcc); border-left: 4px solid var(--cor); cursor: pointer; }
.aula:hover { border-color: color-mix(in srgb, var(--cor) 30%, transparent); }
.aula b { display: block; font-size: 13px; }
.aula small { color: var(--suave); }
.aula.nogi { background: #fdf0e6cc; border-left-color: #d07a3a; }
.aula.kids { background: #e9f4ecdd; border-left-color: #3f8a5f; }
.aula.competicao { background: #f1ecf7dd; border-left-color: #7d5bb0; }
.aula.feminino { background: #fbebf2dd; border-left-color: #c0567f; }
.aula.minha { box-shadow: 0 0 0 2px var(--cor); }
.aula.feito::after { content: "✓ treino marcado"; display: block; font-size: 11.5px; color: var(--ok); font-weight: 700; margin-top: 2px; }
.grade-lista { display: none; position: relative; padding: 4px 14px 14px; }
.grade-lista .dia { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin: 16px 0 8px; color: var(--suave); }
.legenda { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--suave); margin-top: 12px; }
.legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; background: var(--cor); }
.legenda i.nogi { background: #d07a3a; } .legenda i.kids { background: #3f8a5f; } .legenda i.competicao { background: #7d5bb0; } .legenda i.feminino { background: #c0567f; }
@media (max-width: 699px) { .tabela-grade { display: none; } .grade-lista { display: block; } .grade-horarios .marca-fundo { inset: 0; } }

/* competições */
.comp.oficial { border: 1px solid color-mix(in srgb, var(--cor) 30%, #fff); background: linear-gradient(150deg, var(--cor-clara), #fff 55%);
  box-shadow: 0 6px 22px color-mix(in srgb, var(--cor) 14%, transparent); }
.comp h2 { font-size: 18px; margin: 10px 0 4px; }
.selo-oficial img { width: 20px; height: 20px; border-radius: 50%; object-fit: contain; }
.placar { list-style: none; margin: 14px 0 0; padding: 0; }
.placar li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--linha-2); }
.placar .pos { width: 28px; height: 28px; border-radius: 50%; background: var(--fundo); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.placar li.primeiro .pos { background: #f6d77a; color: #5a3d00; }
.placar li.eu { font-weight: 700; }
.placar .n { margin-left: auto; font-weight: 700; font-size: 15px; }
.placar .barrinha { flex: 0 0 90px; height: 6px; border-radius: 3px; background: var(--linha-2); overflow: hidden; }
.placar .barrinha i { display: block; height: 100%; background: var(--cor); }

/* chamada e painel */
.chamada li { cursor: pointer; }
.chk { width: 30px; height: 30px; border-radius: 9px; border: 2px solid #d6ddd9; display: grid; place-items: center; flex: none; background: #fff; }
.chk.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.chk.trava { background: var(--fundo); border-color: var(--linha); color: var(--suave); }
.chk svg { width: 18px; height: 18px; }
.separador { font-size: 11.5px; font-weight: 700; color: var(--suave); text-transform: uppercase; letter-spacing: .06em; padding: 14px 0 6px; }
table.tab { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tab th { text-align: left; color: var(--suave); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; padding: 8px 8px 10px; border-bottom: 1px solid var(--linha); }
table.tab td { padding: 11px 8px; border-bottom: 1px solid var(--linha-2); }
table.tab tr:last-child td { border-bottom: 0; }
table.tab a { color: var(--txt); font-weight: 600; text-decoration: none; }
.nome-av { display: flex; align-items: center; gap: 10px; }
@media (max-width: 699px) { table.tab .some-cel { display: none; } }

/* ---------------- entrar ---------------- */
.entrar { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.entrar .vitrine { background: linear-gradient(150deg, var(--cor), var(--lateral)); color: #fff; display: flex; flex-direction: column;
  justify-content: center; padding: 56px; position: relative; overflow: hidden; }
.entrar .vitrine img.logo-g { width: 110px; height: 110px; object-fit: contain; margin-bottom: 26px; }
.entrar .vitrine h1 { font-size: 34px; color: #fff; }
.entrar .vitrine .lema-grande { margin-top: 26px; font-size: 26px; font-weight: 600; line-height: 1.3; max-width: 460px; position: relative; padding-left: 22px; border-left: 4px solid #ffffff66; }
.entrar .vitrine .marca-agua { position: absolute; right: -80px; bottom: -80px; width: 380px; height: 380px; object-fit: contain; opacity: .08; }
.entrar .lado { display: grid; place-items: center; padding: 32px 20px; background: var(--fundo); }
.entrar .caixa { width: min(400px, 100%); background: #fff; border: 1px solid var(--linha); border-radius: 18px; padding: 30px 26px; box-shadow: 0 10px 40px rgba(0, 0, 0, .06); }
.entrar .caixa h2 { font-size: 22px; margin-bottom: 6px; }
.entrar .caixa .btn { width: 100%; height: 48px; margin-top: 6px; }
.entrar .so-cel { display: none; }
.erro { color: var(--ruim); font-size: 13.5px; font-weight: 600; margin: 10px 0; }
.erro:empty { display: none; }
@media (max-width: 899px) {
  .entrar { grid-template-columns: 1fr; align-content: start; }
  .entrar .vitrine { padding: 40px 24px 70px; text-align: center; align-items: center; }
  .entrar .vitrine img.logo-g { width: 84px; height: 84px; margin-bottom: 14px; }
  .entrar .vitrine h1 { font-size: 26px; }
  .entrar .vitrine .lema-grande { font-size: 19px; border-left: 0; padding: 0; margin-top: 12px; }
  .entrar .lado { padding: 0 16px 32px; margin-top: -44px; background: transparent; }
}
.entrar.simples { grid-template-columns: 1fr; background: var(--fundo); }

/* ---------------- modal e aviso ---------------- */
.modal { position: fixed; inset: 0; background: #0f1a1566; z-index: 20; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-caixa { background: #fff; border-radius: 18px; width: 100%; max-width: 480px; max-height: 90vh; overflow: auto; padding: 24px; box-shadow: 0 20px 60px #0003; }
.modal-caixa h2 { font-size: 19px; margin-bottom: 6px; }
@media (max-width: 599px) { .modal { place-items: end stretch; padding: 0; } .modal-caixa { border-radius: 20px 20px 0 0; max-width: none; } }
.aviso { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: #17231e; color: #fff; padding: 11px 18px;
  border-radius: 12px; z-index: 30; font-size: 14px; max-width: 90vw; box-shadow: 0 8px 24px #0003; }
.qr-grande { width: min(80vw, 340px); display: block; margin: 0 auto; image-rendering: pixelated; }
.codigo-qr { text-align: center; font-size: 28px; font-weight: 800; letter-spacing: .22em; margin-top: 10px; }
.cor-amostra { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--linha); flex: none; }
.previa-logo { width: 76px; height: 76px; object-fit: contain; border-radius: 14px; background: var(--fundo); border: 1px solid var(--linha); }
video.camera { width: 100%; border-radius: 12px; background: #000; margin-bottom: 12px; }
.link-copia { width: 100%; padding: 9px 11px; border: 1px solid var(--linha); border-radius: 10px; font-size: 13px; }
.voltar { display: inline-block; margin-bottom: 10px; color: var(--suave); text-decoration: none; font-weight: 600; }

/* ajustes de proporção */
.cal { max-width: 420px; }
.cal .d { aspect-ratio: auto; height: 38px; }
@media (max-width: 599px) {
  .numeros { grid-template-columns: 1fr 1fr; gap: 10px; }
  .numero { flex-direction: column; gap: 8px; padding: 14px; }
  .numero .ico { width: 36px; height: 36px; border-radius: 10px; }
  .numero b { font-size: 24px; }
  .cal .d { height: auto; aspect-ratio: 1; }
  .lema { padding: 18px 18px 18px 58px; }
  .lema::before { left: 14px; font-size: 64px; }
  .lema p { font-size: 17px; }
}
.entrar .caixa { position: relative; z-index: 1; }

/* menu lateral também no celular (gaveta) */
.topo .icone[data-faz="abrirMenu"] { border: 0; background: transparent; width: 34px; }
.veu { display: none; }
@media (max-width: 899px) {
  .lateral { display: flex; position: fixed; left: 0; top: 0; bottom: 0; height: 100%; z-index: 16; width: min(300px, 84vw);
    transform: translateX(-102%); transition: transform .22s ease; box-shadow: 8px 0 30px #0004; overflow-y: auto; }
  body.menu-aberto .lateral { transform: none; }
  body.menu-aberto .veu { display: block; position: fixed; inset: 0; background: #0f1a1566; z-index: 15; }
}
.selo-dia { width: 40px; height: 40px; border-radius: 12px; background: var(--cor-clara); color: var(--cor); display: grid; place-items: center;
  font-weight: 700; flex: none; }

/* sugestão de cores pela logo */
.sugestao { background: var(--cor-clarinha); border: 1px dashed var(--cor-viva); border-radius: 14px; padding: 12px 14px; margin: 10px 0; }
.sugestao p { margin: 6px 0; }
.paleta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.chip-cor { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--linha); cursor: pointer; padding: 0; }
.chip-cor:hover, .chip-cor:focus-visible { box-shadow: 0 0 0 2px var(--cor); }
.check { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--texto-2, #5b6472); }
input[type="color"] { width: 64px; height: 44px; padding: 3px; border-radius: 12px; cursor: pointer; background: #fff; }
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: none; border-radius: 9px; }
.push-dica { background: var(--cor-clarinha); border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; gap: 10px; }

/* lembretes e pedidos ao sensei */
.lateral a .cont { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--cor-viva); color: #fff;
  font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.lateral a .cont[hidden] { display: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { border: 1px solid var(--linha); background: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; cursor: pointer; color: inherit; }
.chip.ativo { background: var(--cor); border-color: var(--cor); color: #fff; }
.numeros.dois { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pedido-novo { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; cursor: pointer; font: inherit; color: inherit; margin: 0; }
.pedido-novo svg { width: 30px; height: 30px; color: var(--cor); background: var(--cor-clarinha); border-radius: 10px; padding: 6px; box-sizing: content-box; }
.pedido-novo:hover { border-color: var(--cor-viva); }
.pedidos li { display: block; }
.pedido { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.pedido p { margin: 2px 0; }
.resposta { background: var(--cor-clarinha); border-left: 3px solid var(--cor); border-radius: 8px; padding: 8px 12px; }
.resposta small { display: block; color: var(--cor-escura); font-weight: 600; margin-bottom: 2px; }
.campo.inline { flex-direction: row; align-items: center; gap: 8px; margin: 0; font-weight: 400; }
.campo.inline select { width: auto; }
textarea { font: inherit; }
.pedido .link { align-self: flex-start; }

/* verificação em duas etapas */
.passos-2fa { padding-left: 20px; margin: 0 0 12px; display: grid; gap: 10px; }
.passos-2fa li span { display: block; margin-top: 6px; }
.qr-2fa { display: block; width: 190px; height: 190px; margin: 10px 0 4px; border: 1px solid var(--linha); border-radius: 12px; background: #fff; }
.passos-2fa code, .codigos code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; letter-spacing: .5px; }
.codigos { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.codigos li { background: var(--fundo); border: 1px solid var(--linha); border-radius: 10px; padding: 8px; text-align: center; }

/* formulários da academia */
.prontos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.pronto { display: flex; flex-direction: column; gap: 4px; text-align: left; border: 1px dashed var(--cor-viva); background: var(--cor-clarinha);
  border-radius: 14px; padding: 12px 14px; font: inherit; color: inherit; cursor: pointer; }
.pronto:hover { border-style: solid; }
.lista-simples .av svg { width: 18px; height: 18px; }
.pergunta-ed .linha { flex-wrap: wrap; }
.pergunta-ed .campo { flex: 1 1 160px; }
.opcao { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 4px 0; cursor: pointer; }
.opcao input { width: auto; margin: 0; }
fieldset.campo { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
fieldset.campo legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.obrig { color: var(--ruim); }
.form-secao { border-top: 1px solid var(--linha); padding-top: 12px; margin-top: 6px; }
.form-secao h3 { margin: 0 0 4px; font-size: 17px; }
.escala { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.escala label { position: relative; }
.escala input { position: absolute; opacity: 0; inset: 0; }
.escala label span { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--linha); align-items: center; justify-content: center; cursor: pointer; }
.escala input:checked + span { background: var(--cor); border-color: var(--cor); color: #fff; }
.escala input:focus-visible + span { outline: 2px solid var(--cor); outline-offset: 2px; }
.termo { background: var(--fundo); border: 1px solid var(--linha); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.termo p { margin: 0 0 10px; font-size: 14px; white-space: pre-line; }
.respostas dt { font-weight: 600; margin-top: 12px; }
.respostas dd { margin: 2px 0 0; white-space: pre-line; }
.respostas h3 { margin: 18px 0 0; font-size: 16px; color: var(--cor-escura); }
.escolha-alunos { max-height: 40vh; overflow: auto; }
.faixa-aviso { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--cor-viva); border-radius: 16px; padding: 12px 14px;
  margin-bottom: 14px; color: inherit; text-decoration: none; }
.faixa-aviso > svg { width: 28px; height: 28px; color: var(--cor); flex: none; }
button.voltar { padding: 0; margin-bottom: 8px; }

/* faixa atual do aluno em miniatura (estética) */
.faixa-tira { display: inline-flex; vertical-align: -1px; width: 34px; height: 10px; border-radius: 2px; overflow: hidden;
  margin-right: 6px; box-shadow: 0 0 0 1px #0000002e; flex: none; }
.faixa-tira > span:first-child { flex: 1; }
.faixa-tira > span:last-child { width: 13px; display: flex; align-items: center; justify-content: center; gap: 1px; }
.faixa-tira i { width: 1px; height: 6px; background: #fff; }
