/* Red Shield · Sistema de gestão (v2: acabamento sóbrio, Inter em tudo) */
:root {
  --fundo: #f6f6f7;
  --cartao: #ffffff;
  --linha: #e8e8eb;
  --linha-2: #d9d9de;
  --texto: #18181b;
  --texto-2: #52525b;
  --texto-3: #8a8a93;
  --lateral: #17171a;
  --lateral-2: #1f1f23;
  --verm: #c8161d;
  --verm-escuro: #a01218;
  --verm-claro: #fbeeee;
  --verde: #2f7a52;
  --verde-claro: #ecf5ef;
  --amarelo: #8a6414;
  --amarelo-claro: #faf3e3;
  --azul: #3b5a96;
  --azul-claro: #eef2f9;
  --raio: 12px;
  --raio-p: 8px;
  --sombra: 0 1px 2px rgba(16, 16, 20, .04);
  --sombra-alta: 0 12px 40px rgba(16, 16, 20, .16), 0 2px 6px rgba(16, 16, 20, .06);
  --lat-larg: 240px;
  --rs-fonte-titulo: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html, body { background: var(--fundo); }
body { color: var(--texto); font-size: 14px; overflow-x: hidden; font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid rgba(200, 22, 29, .5); outline-offset: 2px; border-radius: 6px; }
.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico-p { width: 14px; height: 14px; }
.num, .kpi-val, .aula-hora, .aula-cont b, .chamada-cont b, .grau-num, .total-linha b, .sh-val, .fl-val, .prof-num b, .grad-meta b { font-variant-numeric: tabular-nums; }
.titulo-cond { font-family: var(--rs-fonte); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; text-transform: none; font-variant-numeric: tabular-nums; }
.muted { color: var(--texto-3); }
.fraco { color: var(--texto-2); }
.verde { color: var(--verde); }
.vermelho { color: var(--verm); }

/* ---------- casca ---------- */
.app { display: flex; min-height: 100vh; }
.lateral { position: fixed; inset: 0 auto 0 0; width: var(--lat-larg); background: var(--lateral); color: #e4e4e7; display: flex; flex-direction: column; z-index: 30; border-right: 1px solid #000; }
.lateral-marca { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; text-decoration: none; }
.lateral-marca img { width: 32px; height: 32px; border-radius: 50%; background: #fff; }
.lateral-marca b { display: block; font-weight: 600; font-size: 14px; letter-spacing: -.01em; line-height: 1.2; color: #fafafa; }
.lateral-marca small { display: block; font-size: 12px; color: #8a8a93; }
.lateral-nav { flex: 1; overflow-y: auto; padding: 4px 10px 12px; scrollbar-width: thin; scrollbar-color: #2c2c33 transparent; }
.nav-grupo { display: flex; align-items: center; gap: 6px; width: 100%; background: none; border: 0; cursor: pointer; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: #8a8a93; padding: 16px 10px 6px; text-align: left; }
.nav-grupo span:first-child { flex: 1; }
.nav-grupo:hover { color: #d4d4d8; }
.nav-grupo .ico { width: 13px; height: 13px; transition: transform .15s; }
.nav-grupo.fechado .ico { transform: rotate(-90deg); }
.nav-grupo .nav-cont { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 6px; background: #2a2a30; color: #d4d4d8; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.nav-item { position: relative; display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px; margin: 1px 0; border-radius: 7px; color: #a1a1aa; text-decoration: none; font-weight: 500; font-size: 13.5px; transition: background .12s, color .12s; }
.nav-item:hover { background: rgba(255, 255, 255, .04); color: #f4f4f5; }
.nav-item.ativo { background: rgba(255, 255, 255, .07); color: #fafafa; }
.nav-item.ativo::before { content: ""; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: var(--verm); }
.nav-item .nav-cont { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 6px; background: #2a2a30; color: #d4d4d8; font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.nav-item .nav-cont.alerta { background: var(--verm); color: #fff; }
.lateral-usuario { border-top: 1px solid #26262b; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.lateral-usuario .av { width: 32px; height: 32px; }
.lateral-usuario .u-nome { font-weight: 500; font-size: 13px; color: #fafafa; line-height: 1.25; }
.lateral-usuario .u-perfil { font-size: 12px; color: #8a8a93; }
.lateral-usuario button { margin-left: auto; background: transparent; border: 0; color: #8a8a93; width: 36px; height: 36px; border-radius: 7px; display: grid; place-items: center; }
.lateral-usuario button:hover { background: rgba(255, 255, 255, .06); color: #fff; }

.principal { flex: 1; min-width: 0; margin-left: var(--lat-larg); display: flex; flex-direction: column; }
.topo { position: sticky; top: 0; z-index: 20; height: 56px; display: flex; align-items: center; gap: 14px; padding: 0 32px; background: rgba(246, 246, 247, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.topo.rolou { border-bottom-color: var(--linha); }
.topo-logo { display: none; }
.topo-titulo { display: none; font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.topo-busca { flex: 1; max-width: 380px; position: relative; }
.topo-asaas { margin-left: auto; }
.topo-perfil { display: none; }
.busca-global { position: relative; }
.busca-global input { width: 100%; height: 36px; border-radius: 8px; border: 1px solid var(--linha-2); background: #fff; padding: 0 12px 0 34px; font-size: 13.5px; }
.busca-global input:focus { outline: none; border-color: #b4b4bb; box-shadow: 0 0 0 3px rgba(24, 24, 27, .06); }
.busca-global .ico { position: absolute; left: 11px; top: 9px; color: var(--texto-3); width: 16px; height: 16px; }
.busca-res { position: absolute; top: 42px; left: 0; right: 0; background: #fff; border-radius: 10px; box-shadow: var(--sombra-alta); border: 1px solid var(--linha); padding: 4px; z-index: 50; max-height: 380px; overflow: auto; }
.busca-res a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 7px; text-decoration: none; min-height: 44px; }
.busca-res a:hover, .busca-res a.foco { background: var(--fundo); }
.busca-res .vazio-p { padding: 12px; color: var(--texto-3); font-size: 13px; }
.selo-asaas { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px 0 9px; border-radius: 7px; background: #fff; border: 1px solid var(--linha); font-size: 12.5px; font-weight: 500; color: var(--texto-2); white-space: nowrap; }
.selo-asaas i { width: 6px; height: 6px; border-radius: 50%; background: #3f9b68; }
.selo-asaas b { color: #1f45b8; font-weight: 700; letter-spacing: -.01em; }

.conteudo { padding: 8px 32px 64px; outline: none; }
.pagina { max-width: 1280px; margin: 0 auto; animation: entra .2s ease both; }
@keyframes entra { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.pag-topo { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 12px 0 24px; }
.pag-titulo { font-weight: 600; font-size: 24px; line-height: 1.2; margin: 0; letter-spacing: -.025em; }
.pag-sobre { font-size: 13px; color: var(--texto-3); font-weight: 500; margin-bottom: 4px; }
.pag-acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.voltar { display: inline-flex; align-items: center; gap: 4px; color: var(--texto-3); text-decoration: none; font-weight: 500; font-size: 13px; min-height: 36px; margin: 0 0 -4px -6px; padding: 0 6px; border-radius: 6px; }
.voltar:hover { color: var(--texto); background: rgba(0, 0, 0, .04); }

/* ---------- grade ---------- */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { display: grid; gap: 16px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-8-4 { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); }
.g-4-8 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.85fr); }
.g-6-6 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pilha { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.linha-flex { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mt { margin-top: 16px; }

/* ---------- cartões ---------- */
.cartao { background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio); box-shadow: var(--sombra); padding: 20px; min-width: 0; }
.cartao.sem-pad { padding: 0; overflow: hidden; }
.cartao-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.cartao-topo.pad { padding: 16px 20px 0; }
.cartao-tit { font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; margin: 0; display: flex; align-items: center; gap: 8px; color: var(--texto); }
.cartao-tit .ico { color: var(--texto-3); width: 16px; height: 16px; }
.cartao-tit .cont { font-size: 12px; font-weight: 500; background: #f1f1f3; color: var(--texto-2); border-radius: 6px; padding: 1px 7px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.cartao-escuro { position: relative; }
.cartao-escuro::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--verm); }
.kpi { position: relative; overflow: hidden; padding: 16px 18px; }
.kpi-rot { font-size: 12.5px; font-weight: 500; color: var(--texto-3); display: flex; align-items: center; gap: 6px; }
.kpi-val { font-weight: 600; font-size: 24px; line-height: 1.15; margin-top: 8px; letter-spacing: -.025em; }
.kpi-val small { font-size: 15px; font-weight: 500; margin-left: 1px; color: var(--texto-2); }
.kpi-det { font-size: 12.5px; color: var(--texto-3); margin-top: 6px; line-height: 1.5; }
.kpi-det .delta { display: inline-block; margin-right: 4px; }
.kpi-det b { color: var(--texto-2); font-weight: 600; }
.kpi .ico-kpi { position: absolute; right: 14px; top: 14px; width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: transparent; color: var(--texto-3); border: 1px solid var(--linha); }
.kpi .ico-kpi .ico { width: 15px; height: 15px; }
.kpi .ico-kpi.verm, .kpi .ico-kpi.verde, .kpi .ico-kpi.amar { color: var(--texto-3); }
.delta { font-weight: 600; font-size: 12px; padding: 1px 6px; border-radius: 5px; }
.delta.sobe { background: var(--verde-claro); color: var(--verde); }
.delta.desce { background: var(--verm-claro); color: #a63a3a; }

/* ---------- botões ---------- */
.rs-btn { white-space: nowrap; border-radius: 8px; min-height: 38px; padding: 0 14px; font-weight: 500; font-size: 13.5px; gap: 7px; box-shadow: none; letter-spacing: -.005em; }
.rs-btn .ico { width: 16px; height: 16px; }
.rs-btn-primario { background: var(--verm); box-shadow: 0 1px 1px rgba(0, 0, 0, .08), inset 0 1px 0 rgba(255, 255, 255, .12); }
.rs-btn-primario:hover { background: var(--verm-escuro); }
.rs-btn-escuro { background: #18181b; }
.rs-btn-escuro:hover { background: #27272a; }
.rs-btn-claro { background: #fff; color: var(--texto); border: 1px solid var(--linha-2); box-shadow: 0 1px 1px rgba(0, 0, 0, .03); }
.rs-btn-claro:hover { background: #fafafa; border-color: #c7c7cd; }
.rs-btn-whats { background: #23964f; }
.rs-btn-whats:hover { background: #1d8044; }
.rs-btn-fantasma { background: transparent; color: var(--texto-2); }
.rs-btn-fantasma:hover { background: rgba(0, 0, 0, .05); color: var(--texto); }
.rs-btn-verde { background: #2f7a52; color: #fff; }
.rs-btn-verde:hover { background: #276845; }
.rs-btn-p { min-height: 32px; padding: 0 11px; font-size: 13px; }
.rs-btn-g { min-height: 46px; padding: 0 20px; font-size: 15px; font-weight: 600; }
.rs-btn-larg { width: 100%; }
.rs-btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-ico { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--linha-2); background: #fff; display: inline-grid; place-items: center; color: var(--texto-2); flex: none; }
.btn-ico:hover { color: var(--texto); background: #fafafa; }
.btn-ico.sem-borda { border-color: transparent; background: transparent; }
.link { background: none; border: 0; padding: 0; color: var(--texto-2); font-weight: 500; text-decoration: none; cursor: pointer; min-height: 28px; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.link:hover { color: var(--texto); text-decoration: underline; text-underline-offset: 3px; }

/* chips */
.rs-chip { white-space: nowrap; border-radius: 6px; font-size: 12px; font-weight: 500; padding: 2px 7px; background: #f1f1f3; color: var(--texto-2); gap: 5px; }
.rs-chip-ok { background: var(--verde-claro); color: var(--verde); }
.rs-chip-alerta { background: var(--amarelo-claro); color: var(--amarelo); }
.rs-chip-erro { background: var(--verm-claro); color: #a63a3a; }
.chip-azul { background: var(--azul-claro); color: var(--azul); }
.chip-escuro { background: #18181b; color: #fff; }
.chip-borda { background: #fff; border: 1px solid var(--linha); }
.chip-turma { background: #fff; border: 1px solid var(--linha); color: var(--texto-2); }
.chip-turma::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c, #888); }
.chips { display: flex; gap: 5px; flex-wrap: wrap; }
.selo-app { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--azul); background: var(--azul-claro); border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.selo-asaas-p { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 700; color: #1f45b8; background: #eef2fd; border-radius: 4px; padding: 1px 5px; letter-spacing: .02em; }

/* ---------- formulários ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .larga { grid-column: 1 / -1; }
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo > span, .rot { font-size: 12.5px; font-weight: 500; color: var(--texto-2); }
.campo input, .campo select, .campo textarea, .entrada { width: 100%; min-height: 38px; border-radius: var(--raio-p); border: 1px solid var(--linha-2); background: #fff; padding: 8px 11px; font-size: 14px; color: var(--texto); transition: border-color .12s, box-shadow .12s; box-shadow: 0 1px 1px rgba(0, 0, 0, .02); }
.campo textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.campo select, select.entrada { appearance: none; -webkit-appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2371717a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.campo input:focus, .campo select:focus, .campo textarea:focus, .entrada:focus { outline: none; border-color: #a1a1aa; box-shadow: 0 0 0 3px rgba(24, 24, 27, .07); }
.campo.erro input, .campo.erro select { border-color: var(--verm); }
.campo .msg-erro { color: var(--verm); font-size: 12px; font-weight: 500; }
.campo-dinheiro { position: relative; }
.campo-dinheiro::before { content: "R$"; position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-weight: 500; color: var(--texto-3); font-size: 14px; }
.campo-dinheiro input { padding-left: 36px; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }

.seg { display: inline-flex; background: #efeff1; border-radius: 8px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { white-space: nowrap; min-height: 30px; border: 0; background: transparent; border-radius: 6px; padding: 0 11px; font-weight: 500; font-size: 13px; color: var(--texto-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg button:hover { color: var(--texto); }
.seg button.sel { background: #fff; color: var(--texto); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .03); }
.seg.larga { display: flex; }
.seg.larga button { flex: 1; padding: 0 8px; }

.opcoes { display: flex; flex-wrap: wrap; gap: 8px; }
.opcao { position: relative; min-height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--linha-2); background: #fff; font-weight: 500; font-size: 13.5px; cursor: pointer; transition: border-color .12s, background .12s, box-shadow .12s; }
.opcao:hover { border-color: #b4b4bb; }
.opcao.sel { border-color: #18181b; box-shadow: inset 0 0 0 1px #18181b; background: #fff; color: var(--texto); }
.opcao .bola { width: 8px; height: 8px; border-radius: 50%; background: var(--c, #999); }
.opcao-plano { flex-direction: column; align-items: flex-start; justify-content: center; padding: 9px 12px; min-width: 128px; gap: 1px; }
.opcao-plano b { font-size: 13.5px; font-weight: 600; }
.opcao-plano span { font-size: 12.5px; color: var(--texto-3); font-weight: 400; font-variant-numeric: tabular-nums; }
.opcao.sel span { color: var(--texto-2); }

.alternar { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 44px; cursor: pointer; }
.alternar input { position: absolute; opacity: 0; pointer-events: none; }
.alternar .trilho { flex: none; width: 36px; height: 20px; border-radius: 999px; background: #d4d4d8; position: relative; transition: background .15s; }
.alternar .trilho::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s; }
.alternar input:checked + .trilho { background: #18181b; }
.alternar input:checked + .trilho::after { transform: translateX(16px); }
.alternar input:focus-visible + .trilho { outline: 2px solid rgba(200, 22, 29, .5); outline-offset: 2px; }
.alternar .alt-txt b { display: block; font-size: 13.5px; font-weight: 500; }
.alternar .alt-txt small { color: var(--texto-3); font-size: 12.5px; }
.btn-arquivo { display: inline-flex; }
.btn-arquivo input { display: none; }
.passos { display: flex; align-items: center; height: 36px; border: 1px solid var(--linha-2); border-radius: 8px; overflow: hidden; background: #fff; }
.passos button { width: 36px; height: 100%; border: 0; background: transparent; font-size: 17px; color: var(--texto-2); }
.passos button:hover { background: var(--fundo); }
.passos span { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

/* filtros */
.filtros { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filtros .busca { position: relative; flex: 1 1 240px; max-width: 360px; }
.filtros .busca .ico { position: absolute; left: 11px; top: 11px; color: var(--texto-3); width: 16px; height: 16px; }
.filtros .busca input { padding-left: 34px; }
.filtros select.entrada { width: auto; min-width: 140px; }
.filtro-chip { min-height: 38px; border-radius: 8px; border: 1px solid var(--linha-2); background: #fff; padding: 0 12px; font-weight: 500; font-size: 13.5px; color: var(--texto-2); display: inline-flex; align-items: center; gap: 6px; }
.filtro-chip.sel { background: #18181b; color: #fff; border-color: #18181b; }
.resultado-cont { font-size: 12.5px; color: var(--texto-3); font-weight: 500; margin: -2px 0 10px; }

/* ---------- tabela ---------- */
table.tab { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
table.tab th { text-align: left; font-size: 12px; font-weight: 500; color: var(--texto-3); padding: 9px 12px; border-bottom: 1px solid var(--linha); background: #fafafa; white-space: nowrap; }
table.tab th:first-child, table.tab td:first-child { padding-left: 20px; }
table.tab th:last-child, table.tab td:last-child { padding-right: 20px; }
table.tab td { padding: 10px 12px; border-bottom: 1px solid #f0f0f2; vertical-align: middle; }
table.tab tr:last-child td { border-bottom: 0; }
table.tab tbody tr { transition: background .1s; }
table.tab tbody tr.clicavel { cursor: pointer; }
table.tab tbody tr.clicavel:hover { background: #fafafa; }
table.tab .dir { text-align: right; }
table.tab td.num, table.tab td .num, .l-val { white-space: nowrap; }
table.tab tr.novo td { animation: brilho 2.4s ease; }
@keyframes brilho { 0%, 40% { background: #fdf8e8; } 100% { background: transparent; } }
.pessoa { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pessoa .p-nome { font-weight: 500; line-height: 1.3; }
.pessoa .p-sub { font-size: 12.5px; color: var(--texto-3); line-height: 1.3; }
.mais-linhas { display: flex; justify-content: center; padding: 12px; border-top: 1px solid var(--linha); }

/* avatar */
.av { flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: #f1f0ee; display: inline-block; position: relative; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.av svg { width: 100%; height: auto; display: block; margin-top: 1px; }
.av.g { width: 44px; height: 44px; }
.av.iniciais { display: grid; place-items: center; font-weight: 600; color: #fff; background: var(--c, #3f3f46); font-size: 12.5px; letter-spacing: -.01em; }
.av-moldura { width: 128px; height: 148px; border-radius: 12px; background: #f4f3f1; display: grid; place-items: end center; overflow: hidden; flex: none; border: 1px solid var(--linha); }
.av-moldura svg { width: 118px; height: auto; }

/* barras */
.barra { height: 6px; border-radius: 999px; background: #ededf0; overflow: hidden; position: relative; }
.barra > i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--c, #3f3f46); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.barra.fina { height: 4px; }
.barra-rot { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--texto-3); margin-bottom: 6px; gap: 8px; }
.barra-rot b { color: var(--texto); font-weight: 500; }

/* listas */
.lista { display: flex; flex-direction: column; }
.item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0f0f2; min-width: 0; }
.item:last-child { border-bottom: 0; }
.item-corpo { flex: 1; min-width: 0; }
.item-tit { font-weight: 500; line-height: 1.35; }
.item-sub { font-size: 12.5px; color: var(--texto-3); line-height: 1.4; margin-top: 1px; }
.item-fim { display: flex; align-items: center; gap: 6px; flex: none; }
a.item { text-decoration: none; }
a.item:hover .item-tit { text-decoration: underline; text-underline-offset: 3px; }

/* vazio */
.vazio { text-align: center; padding: 28px 16px; color: var(--texto-2); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.vazio img { width: 88px; height: 88px; object-fit: cover; object-position: top; border-radius: 50%; border: 1px solid var(--linha); }
.vazio b { font-size: 14px; font-weight: 600; color: var(--texto); }
.vazio span { font-size: 13px; color: var(--texto-3); }
.vazio.p { padding: 14px 8px; }
.vazio.p img { width: 56px; height: 56px; }

/* ---------- janelas ---------- */
.camada { position: fixed; inset: 0; z-index: 100; background: rgba(16, 16, 20, .4); display: flex; align-items: center; justify-content: center; padding: 24px; animation: fundo .15s ease both; }
@keyframes fundo { from { opacity: 0; } }
.janela { position: relative; width: 100%; max-width: 540px; max-height: calc(100vh - 48px); overflow: auto; background: #fff; border-radius: 14px; box-shadow: var(--sombra-alta); border: 1px solid var(--linha); animation: sobe .2s cubic-bezier(.2, .9, .3, 1) both; display: flex; flex-direction: column; }
.janela.larga { max-width: 760px; }
.janela.estreita { max-width: 440px; }
@keyframes sobe { from { opacity: 0; transform: translateY(8px) scale(.99); } }
.jan-topo { display: flex; align-items: center; gap: 10px; padding: 18px 20px 4px; }
.jan-tit { font-weight: 600; font-size: 17px; letter-spacing: -.015em; margin: 0; flex: 1; line-height: 1.3; }
.jan-corpo { padding: 12px 20px 18px; }
.jan-rodape { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 20px 16px; border-top: 1px solid var(--linha); flex-wrap: wrap; position: sticky; bottom: 0; background: #fff; }
.jan-fechar { margin-left: auto; }

/* WhatsApp */
.whats-para { display: flex; align-items: center; gap: 10px; padding: 6px 0 12px; }
.whats-para .w-ico { width: 36px; height: 36px; border-radius: 50%; background: #23964f; color: #fff; display: grid; place-items: center; flex: none; }
.whats-tela { border-radius: 10px; background: #efeae2; padding: 16px 12px 12px; position: relative; overflow: hidden; border: 1px solid #e6e0d6; }
.whats-balao { position: relative; margin-left: auto; max-width: 92%; background: #d9fdd3; border-radius: 8px 0 8px 8px; padding: 8px 10px 18px; font-size: 14px; line-height: 1.45; color: #111b21; white-space: pre-wrap; word-wrap: break-word; box-shadow: 0 1px .5px rgba(0, 0, 0, .13); }
.whats-balao::after { content: ""; position: absolute; right: -7px; top: 0; border-left: 8px solid #d9fdd3; border-bottom: 9px solid transparent; }
.whats-balao .w-hora { position: absolute; right: 8px; bottom: 3px; font-size: 11px; color: #667781; display: flex; gap: 3px; align-items: center; }
.whats-balao a { color: #027eb5; }
.whats-edit { width: 100%; min-height: 150px; border-radius: 8px; border: 1px solid var(--linha-2); padding: 10px; font-size: 14px; line-height: 1.45; }
.whats-fila { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.whats-fila .barra { flex: 1; }
.enviado { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--verde); background: var(--verde-claro); padding: 3px 8px; border-radius: 6px; white-space: nowrap; }

/* toast */
.avisos-toast { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; background: #18181b; color: #fafafa; border-radius: 10px; padding: 10px 14px 10px 10px; display: flex; align-items: center; gap: 10px; box-shadow: var(--sombra-alta); font-size: 13.5px; font-weight: 400; max-width: 400px; animation: toast .22s ease both; }
.toast .t-ico { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: #2f7a52; flex: none; }
.toast.doapp .t-ico { background: var(--azul); }
.toast.erro .t-ico { background: var(--verm); }
.toast .av { width: 28px; height: 28px; }
.toast b { font-weight: 600; }
.toast.sai { animation: toastSai .2s ease both; }
@keyframes toast { from { opacity: 0; transform: translateY(8px); } }
@keyframes toastSai { to { opacity: 0; transform: translateY(6px); } }

/* menu inferior */
.inferior { display: none; }
.folha-mais .mais-grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.folha-mais a, .folha-mais button.mais-it { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; border-radius: 10px; background: #fff; border: 1px solid var(--linha); text-decoration: none; font-weight: 500; font-size: 12.5px; text-align: center; padding: 8px 6px; color: var(--texto); }
.folha-mais a .ico, .folha-mais button.mais-it .ico { width: 20px; height: 20px; color: var(--texto-2); }
.folha-mais a.ativo { border-color: #18181b; }

/* ---------- entrar ---------- */
.entrar { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.entrar-foto { position: relative; overflow: hidden; background: #000 url("comum/img/tatame.jpg") center/cover; }
.entrar-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 12, .1), rgba(10, 10, 12, .82)); }
.entrar-foto .ef-texto { position: absolute; left: 44px; bottom: 44px; right: 44px; z-index: 1; color: #fff; }
.ef-texto .titulo-cond { font-size: 30px; line-height: 1.15; }
.ef-texto .titulo-cond em { font-style: normal; color: rgba(255, 255, 255, .7); font-weight: 400; }
.ef-texto p { margin: 10px 0 0; color: rgba(255, 255, 255, .7); font-size: 14px; }
.entrar-lado { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; }
.entrar-caixa { width: 100%; max-width: 380px; color: var(--texto); }
.entrar-caixa .ec-logo { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--linha); }
.entrar-caixa h1 { font-weight: 600; font-size: 22px; letter-spacing: -.02em; margin: 20px 0 18px; }
.perfis { display: grid; gap: 8px; }
.perfil-op { display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 60px; border-radius: 10px; border: 1px solid var(--linha-2); background: #fff; color: var(--texto); text-align: left; transition: border-color .12s, box-shadow .12s; }
.perfil-op:hover { border-color: #a1a1aa; }
.perfil-op.sel { border-color: #18181b; box-shadow: inset 0 0 0 1px #18181b; }
.perfil-op .av { width: 38px; height: 38px; }
.perfil-op b { display: block; font-size: 14px; font-weight: 500; }
.perfil-op small { color: var(--texto-3); font-size: 12.5px; }
.perfil-op .marca-sel { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #c7c7cd; display: grid; place-items: center; color: transparent; }
.perfil-op.sel .marca-sel { background: #18181b; border-color: #18181b; color: #fff; }
.perfil-op .marca-sel .ico { width: 11px; height: 11px; stroke-width: 2.4; }
.entrar-campos { display: grid; gap: 12px; margin: 18px 0 12px; }
.entrar-erro { color: var(--verm); font-size: 13px; font-weight: 500; min-height: 18px; }
.entrar-rodape { margin-top: 24px; font-size: 12px; color: var(--texto-3); }

/* ---------- específicos ---------- */
.aulas-dia { display: flex; flex-direction: column; }
.aula-linha { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 6px 12px 14px; border-bottom: 1px solid #f0f0f2; text-decoration: none; position: relative; transition: background .1s; border-radius: 0; }
.aula-linha:last-child { border-bottom: 0; }
a.aula-linha:hover { background: #fafafa; }
.aula-linha::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--c, #999); opacity: .75; }
.aula-hora { font-weight: 600; font-size: 15px; line-height: 1.2; letter-spacing: -.01em; }
.aula-hora small { display: block; font-size: 12px; font-weight: 400; color: var(--texto-3); margin-top: 1px; letter-spacing: 0; }
.aula-nome { font-weight: 500; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.aula-sub { font-size: 12.5px; color: var(--texto-3); margin-top: 1px; }
.aula-cont { text-align: right; min-width: 84px; }
.aula-cont b { font-size: 15px; font-weight: 600; }
.aula-cont span { font-size: 12.5px; color: var(--texto-3); }
.aula-cont .barra { margin-top: 6px; width: 84px; margin-left: auto; }
.aula-linha.agora { background: #fcfcfc; }
.aula-linha.agora .aula-hora { color: var(--verm); }
.aula-linha.passou { opacity: .7; }
.aula-linha.sel { background: #f6f6f7; }
.tag-agora { display: inline-flex; align-items: center; gap: 5px; background: var(--verm-claro); color: #a63a3a; font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 5px; }
.tag-agora i { width: 6px; height: 6px; border-radius: 50%; background: var(--verm); animation: pulsa 1.4s infinite; }
@keyframes pulsa { 50% { opacity: .3; } }
.pulso { animation: pulsoNum .9s ease; }
@keyframes pulsoNum { 0% { color: inherit; } 30% { color: var(--verm); } 100% { color: inherit; } }
.selo-pend { display: inline-flex; align-items: center; gap: 5px; background: var(--verm); color: #fff; border-radius: 6px; font-size: 12px; font-weight: 600; padding: 2px 8px; white-space: nowrap; }
.selo-pend .ico { width: 13px; height: 13px; }

.hoje-faixa { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.mini-kpi { background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); padding: 14px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--sombra); text-decoration: none; min-width: 0; }
a.mini-kpi:hover { border-color: #d0d0d5; }
.mini-kpi .mk-ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none; border: 1px solid var(--linha); color: var(--texto-3); background: #fff !important; }
.mini-kpi .mk-ico .ico { width: 16px; height: 16px; }
.mini-kpi b { color: var(--texto); font-size: 20px; font-weight: 600; line-height: 1.1; display: block; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mini-kpi span { font-size: 12.5px; color: var(--texto-3); line-height: 1.3; display: block; }

/* aula em destaque (professor) */
.aula-hero { --c: var(--verm); position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 28px; align-items: center; padding: 26px 28px 26px 32px; background: linear-gradient(135deg, #18181b 0%, #232327 100%); border: 0; color: #fff; box-shadow: 0 10px 30px rgba(16, 16, 20, .14); }
.aula-hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.aula-hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 28%, transparent) 0%, transparent 70%); pointer-events: none; }
.aula-hero .ah-hora { text-align: left; padding-right: 28px; border-right: 1px solid rgba(255, 255, 255, .1); }
.aula-hero .ah-hora b { display: block; font-size: 34px; font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.aula-hero .ah-hora span { display: block; margin-top: 6px; font-size: 12.5px; color: rgba(255, 255, 255, .55); }
.aula-hero .ah-rot { margin-bottom: 8px; }
.aula-hero .ah-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .01em; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .78); }
.aula-hero .ah-tag.agora { background: color-mix(in srgb, var(--verm) 22%, transparent); color: #ffb3b5; }
.aula-hero .ah-tag.agora i { width: 6px; height: 6px; border-radius: 50%; background: #ff5a60; animation: pulsa 1.4s infinite; }
.aula-hero .ah-tag.alerta { background: rgba(212, 162, 76, .18); color: #f0c97e; }
.aula-hero .ah-tit { font-size: 24px; font-weight: 650; letter-spacing: -.03em; margin: 0; color: #fff; }
.aula-hero .ah-sub { color: rgba(255, 255, 255, .6); margin-top: 4px; font-size: 13.5px; }
.aula-hero .ah-rostos { display: flex; align-items: center; margin-top: 14px; padding-left: 6px; }
.aula-hero .ah-rostos .av { width: 30px; height: 30px; margin-left: -6px; box-shadow: 0 0 0 2px #1d1d20; }
.aula-hero .ah-mais { margin-left: 8px; font-size: 12.5px; color: rgba(255, 255, 255, .6); font-weight: 500; }
.aula-hero .ah-num { display: flex; gap: 8px; }
.aula-hero .ah-num div { min-width: 82px; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .06); }
.aula-hero .ah-num div.tem { background: color-mix(in srgb, var(--verm) 26%, transparent); border-color: color-mix(in srgb, var(--verm) 45%, transparent); }
.aula-hero .ah-num b { display: block; font-size: 22px; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; color: #fff; }
.aula-hero .ah-num span { font-size: 12px; color: rgba(255, 255, 255, .55); }
.aula-hero .ah-acao { position: relative; z-index: 1; }
.aula-hero .ah-acao .rs-btn { min-height: 50px; padding: 0 24px; font-size: 15px; font-weight: 600; border-radius: 10px; }

/* anotação da aula na chamada */
.ch-wrap { position: relative; }
.ch-wrap .aluno-ch { padding-right: 84px; }
.ch-nota { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--linha); background: #fff; color: var(--texto-3); display: grid; place-items: center; cursor: pointer; }
.ch-nota:hover { border-color: var(--linha-2); color: var(--texto); }
.ch-ficha { position: absolute; right: 46px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--linha); background: #fff; color: var(--texto-3); display: grid; place-items: center; }
.ch-ficha:hover { border-color: var(--linha-2); color: var(--texto); }
.ch-ficha .ico { width: 15px; height: 15px; }
.ch-nota .ico { width: 15px; height: 15px; }
.ch-nota.tem { background: var(--azul-claro); border-color: transparent; color: var(--azul); }
.ch-nota b { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--azul); color: #fff; font-size: 10.5px; font-weight: 600; line-height: 16px; text-align: center; }
.nota .n-aula { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--texto-3); margin-left: 6px; }

/* busca da chamada (um campo só, procura em todos os alunos) */
.busca-ch { position: relative; margin-bottom: 12px; }
.busca-ch .ico { position: absolute; left: 14px; top: 15px; color: var(--texto-3); width: 17px; height: 17px; }
.busca-ch .entrada { width: 100%; min-height: 48px; font-size: 15px; padding-left: 40px; }
.ch-wrap .aluno-ch { height: 100%; }
.ch-outros { margin: -2px 0 14px; padding: 10px; border-radius: 10px; background: var(--fundo); }
.ch-outros .rot { margin: 0 0 6px 2px; }
.ch-outro { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 8px; border: 0; background: #fff; text-align: left; cursor: pointer; margin-top: 6px; box-shadow: var(--sombra); }
.ch-outro > span:nth-child(2) { flex: 1; min-width: 0; }
.ch-outro b { display: block; font-weight: 500; font-size: 13.5px; }
.ch-outro small { display: block; font-size: 12px; color: var(--texto-3); }
.ch-outro .rs-btn { pointer-events: none; }
.ch-outro:first-child { margin-top: 0; }
.ch-outro.sel { box-shadow: inset 0 0 0 2px var(--verm); }
.ch-outro > .ico { color: var(--verm); width: 18px; height: 18px; flex: none; }

/* página da aula: fotos do treino e aulas anteriores */
.aula-fotos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.aula-fotos button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; }
.aula-fotos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aulas-ant { display: flex; flex-direction: column; padding: 4px 8px 8px; }
.aula-ant { display: flex; align-items: center; gap: 14px; padding: 10px 10px; border-radius: 10px; text-decoration: none; color: inherit; }
.aula-ant:hover { background: var(--fundo); }
.aula-ant .aa-dia { width: 46px; flex: none; text-align: center; border-radius: 9px; padding: 5px 0; background: color-mix(in srgb, var(--c) 10%, #fff); border: 1px solid color-mix(in srgb, var(--c) 22%, #fff); }
.aula-ant .aa-dia b { display: block; font-size: 17px; font-weight: 650; line-height: 1.1; }
.aula-ant .aa-dia span { display: block; font-size: 11px; color: var(--texto-3); }
.aula-ant .aa-corpo { flex: 1; min-width: 0; }
.aula-ant .aa-corpo b { display: block; font-weight: 600; font-size: 14px; }
.aula-ant .aa-corpo small { display: block; font-size: 12.5px; color: var(--texto-3); margin-top: 1px; }
.aula-ant .aa-chips { display: flex; gap: 6px; }
.aula-ant > .ico { color: var(--texto-3); width: 16px; height: 16px; flex: none; }

/* ficha */
.ficha-topo { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.ficha-nome { font-weight: 600; font-size: 24px; letter-spacing: -.025em; line-height: 1.2; margin: 0 0 8px; }
.ficha-info { flex: 1; min-width: 240px; }
.ficha-acoes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.dados { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 0; }
.dados div { min-width: 0; }
.dados dt { font-size: 12px; font-weight: 500; color: var(--texto-3); }
.dados dd { margin: 2px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.grau-grande { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.grau-num { font-weight: 600; font-size: 30px; line-height: 1; letter-spacing: -.03em; }
.grau-num small { font-size: 16px; color: var(--texto-3); font-weight: 500; }
.calendario { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 3px; }
.calendario i { width: 100%; aspect-ratio: 1; border-radius: 3px; background: #efeff1; display: block; min-width: 0; }
.calendario i.f1, .calendario i.f2 { background: #b4545a; }
.calendario i.fut { background: transparent; border: 1px dashed #e4e4e7; }
.calendario i.hj { box-shadow: 0 0 0 1.5px var(--texto); }
.cal-envolve { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 6px; }
.cal-dias { display: grid; grid-template-rows: repeat(7, 1fr); gap: 3px; font-size: 10.5px; color: var(--texto-3); }
.cal-dias span { display: flex; align-items: center; }
.cal-meses { display: flex; justify-content: space-between; font-size: 11px; color: var(--texto-3); margin: 0 0 6px 34px; }
.legenda { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--texto-3); }
.legenda span { display: inline-flex; align-items: center; gap: 5px; }
.legenda i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); display: inline-block; }
.tempo { list-style: none; margin: 0; padding: 0 0 0 2px; }
.tempo li { position: relative; padding: 0 0 16px 22px; }
.tempo li::before { content: ""; position: absolute; left: 4px; top: 14px; bottom: -2px; width: 1px; background: var(--linha-2); }
.tempo li:last-child::before { display: none; }
.tempo li::after { content: ""; position: absolute; left: 0; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 1.5px solid #a1a1aa; }
.tempo li:first-child::after { border-color: var(--verm); background: var(--verm); }
.tempo .t-data { font-size: 12px; color: var(--texto-3); }
.tempo .t-tit { font-weight: 500; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 3px; }
.tempo .t-obs { font-size: 13px; color: var(--texto-2); margin-top: 3px; }
.nota { border-radius: 8px; padding: 10px 12px; background: #fafafa; border: 1px solid var(--linha); border-left: 2px solid var(--c, #999); font-size: 13.5px; }
.nota + .nota { margin-top: 8px; }
.nota .n-topo { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--texto-3); margin-bottom: 3px; flex-wrap: wrap; }
.nota .n-tipo { color: var(--c); font-weight: 600; }

/* chamada */
.chamada-topo { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.chamada-hora { width: 52px; height: 52px; border-radius: 10px; border: 1px solid var(--linha); display: grid; place-items: center; font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; position: relative; overflow: hidden; }
.chamada-hora::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.chamada-cont { margin-left: auto; display: flex; gap: 22px; }
.chamada-cont div { text-align: right; }
.chamada-cont b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.chamada-cont span { display: block; font-size: 12px; color: var(--texto-3); }
.secao-ch { margin-top: 16px; }
.secao-ch.pedidos { border-color: #c9d6ee; box-shadow: 0 0 0 3px rgba(59, 90, 150, .06); }
.pedido { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f0f2; transition: background .2s, opacity .3s, transform .3s; }
.pedido:last-child { border-bottom: 0; }
.pedido .pd-nome { font-weight: 500; }
.pedido .pd-sub { font-size: 12.5px; color: var(--texto-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.pedido .pd-acoes { display: flex; gap: 6px; }
.pedido.chegou { animation: chegou 1.6s ease; }
@keyframes chegou { 0% { background: #eef2f9; } 100% { background: transparent; } }
.pedido.aceito { background: var(--verde-claro); }
.pedido.recusado { opacity: .4; }
.pedido.saindo { opacity: 0; transform: translateX(12px); }
.recusados { margin-top: 10px; font-size: 13px; color: var(--texto-3); }
.recusados summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.chamada-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.aluno-ch { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 8px 12px 8px 8px; border-radius: 10px; border: 1px solid var(--linha); background: #fff; text-align: left; transition: border-color .12s, background .12s; position: relative; }
.aluno-ch:hover { border-color: #c7c7cd; }
.aluno-ch .ch-nome { font-weight: 500; line-height: 1.3; font-size: 13.5px; }
.aluno-ch .ch-sub { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 3px; font-size: 12px; color: var(--texto-3); }
.aluno-ch .ch-marca { margin-left: auto; flex: none; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #c7c7cd; display: grid; place-items: center; color: transparent; transition: all .15s; }
.aluno-ch .ch-marca .ico { width: 13px; height: 13px; stroke-width: 2.4; }
.aluno-ch.presente { border-color: #b9d8c5; background: #f6fbf8; }
.aluno-ch.presente .ch-marca { background: #2f7a52; border-color: #2f7a52; color: #fff; }
.aluno-ch .rs-faixa { width: 46px; height: 9px; }
.aluno-ch .rs-faixa::after { width: 14px; right: 4px; }
.barra-fixa { position: sticky; bottom: 16px; z-index: 5; margin-top: 16px; background: #18181b; color: #fff; border-radius: 12px; padding: 10px 10px 10px 18px; display: flex; align-items: center; gap: 12px; box-shadow: var(--sombra-alta); flex-wrap: wrap; }
.barra-fixa .bf-txt { flex: 1; min-width: 150px; font-size: 13px; color: #a1a1aa; }
.barra-fixa .bf-txt b { color: #fff; font-size: 15px; font-weight: 600; }
.encerrada { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.encerrada .enc-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--verde-claro); color: var(--verde); display: grid; place-items: center; flex: none; }
.resumo-ch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 4px 0 12px; }
.resumo-ch div { border: 1px solid var(--linha); border-radius: 10px; padding: 10px 12px; }
.resumo-ch b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.resumo-ch span { font-size: 12.5px; color: var(--texto-3); }

/* graduação */
.grad-card { display: flex; flex-direction: column; gap: 14px; }
.grad-topo { display: flex; gap: 12px; align-items: center; }
.grad-de-para { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--texto-3); }
.grad-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grad-meta div { border: 1px solid var(--linha); border-radius: 8px; padding: 9px 11px; }
.grad-meta b { display: block; font-size: 17px; font-weight: 600; line-height: 1.2; letter-spacing: -.015em; }
.grad-meta span { font-size: 12px; color: var(--texto-3); }
.comemora { text-align: center; padding: 22px 20px 6px; position: relative; overflow: hidden; }
.comemora .cm-fundo { position: absolute; inset: 0 0 auto 0; height: 200px; background: linear-gradient(180deg, #f7f7f8, #fff); }
.comemora .cm-cena { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 6px; height: 190px; }
.comemora .cm-masc { width: 140px; height: 176px; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid var(--linha); animation: pula .7s ease .15s both; }
.comemora .cm-av { animation: pula .7s ease both; }
@keyframes pula { 0% { transform: translateY(16px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.comemora h3 { font-weight: 600; font-size: 22px; letter-spacing: -.025em; margin: 16px 0 6px; }
.comemora p { margin: 0; color: var(--texto-2); }
.confete { position: fixed; inset: 0; pointer-events: none; z-index: 150; }

/* experimentais */
.quadro { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.coluna { background: #efeff1; border-radius: 12px; padding: 10px; min-width: 0; }
.coluna-topo { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; font-weight: 600; font-size: 13px; }
.coluna-topo i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.coluna-topo .cont { margin-left: auto; background: #fff; border-radius: 6px; padding: 1px 7px; font-size: 12px; font-weight: 500; color: var(--texto-2); }
.cart-exp { background: #fff; border-radius: 10px; padding: 12px; border: 1px solid var(--linha); }
.cart-exp + .cart-exp { margin-top: 8px; }
.cart-exp .ce-nome { font-weight: 600; font-size: 14px; line-height: 1.3; }
.cart-exp .ce-sub { font-size: 12.5px; color: var(--texto-2); margin-top: 5px; display: flex; align-items: center; gap: 6px; }
.cart-exp .ce-sub .ico { color: var(--texto-3); }
.cart-exp .ce-acoes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.cart-exp .ce-acoes .rs-btn { flex: 1 1 auto; }
.cart-exp.hoje { border-color: #c7c7cd; }

/* vendas */
.produtos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.produto { border: 1px solid var(--linha); border-radius: 12px; background: #fff; padding: 14px; text-align: left; display: flex; flex-direction: column; gap: 6px; transition: border-color .12s; min-height: 140px; }
.produto:hover { border-color: #c7c7cd; }
.produto.no-carrinho { border-color: #18181b; box-shadow: inset 0 0 0 1px #18181b; }
.produto .pr-ico { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--linha); color: var(--texto-2); background: #fafafa; }
.produto .pr-ico.verm { color: var(--verm); }
.produto b { font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.produto .pr-preco { font-weight: 600; font-size: 16px; margin-top: auto; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.produto .pr-est { font-size: 12px; color: var(--texto-3); }
.produto .pr-est.baixo { color: var(--amarelo); }
.carrinho-it { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0f0f2; }
.total-linha { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 6px; }
.total-linha b { font-weight: 600; font-size: 22px; letter-spacing: -.02em; }

/* treino */
.fotos-env { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.foto-slot { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #fafafa; border: 1px dashed #d4d4d8; display: grid; place-items: center; color: var(--texto-3); }
.foto-slot img { width: 100%; height: 100%; object-fit: cover; }
.foto-slot .tirar { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 8px; border: 0; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; }
.foto-slot label { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font-size: 12.5px; font-weight: 500; }
.foto-slot label input { display: none; }
.treino-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid #f0f0f2; }
.treino-card:last-child { border-bottom: 0; }
.treino-card img { width: 112px; height: 84px; object-fit: cover; border-radius: 8px; }
.treino-card .tc-tit { font-weight: 500; }
.treino-card .tc-desc { font-size: 13px; color: var(--texto-2); margin-top: 2px; }

/* caixa */
.dia-grupo { padding: 8px 20px; background: #fafafa; border-bottom: 1px solid var(--linha); display: flex; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 500; color: var(--texto-3); }
.lanc { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 20px; border-bottom: 1px solid #f0f0f2; }
.lanc:hover { background: #fafafa; }
.lanc .l-ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--linha); background: #fff; }
.lanc .l-ico .ico { width: 15px; height: 15px; }
.lanc .l-ico.ent { color: var(--verde); }
.lanc .l-ico.sai { color: #a63a3a; }
.lanc .l-desc { font-weight: 500; line-height: 1.3; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.lanc .l-sub { font-size: 12.5px; color: var(--texto-3); margin-top: 1px; display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.lanc .l-val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.lanc .l-val small { display: block; font-weight: 400; font-size: 12px; color: var(--texto-3); }
.lanc.novo { animation: brilho 2.6s ease; }
.lanc .comp-mini { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; border: 1px solid var(--linha); }
.cat-barra { display: grid; grid-template-columns: minmax(0, 140px) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 0; font-size: 13px; color: var(--texto-2); }
.cat-barra .cb-nome { overflow-wrap: anywhere; }
.cat-barra .cb-val { font-weight: 500; color: var(--texto); font-variant-numeric: tabular-nums; text-align: right; min-width: 88px; }
.saldo-hero { display: flex; flex-direction: column; gap: 6px; }
.saldo-hero .sh-val { font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -.03em; }
.resumo-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; border-top: 1px solid var(--linha); padding-top: 14px; }
.resumo-3 div + div { border-left: 1px solid var(--linha); padding-left: 12px; }
.resumo-3 span { font-size: 12px; color: var(--texto-3); }
.resumo-3 b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; margin-top: 3px; letter-spacing: -.01em; }
.comprovante-prev { display: flex; align-items: center; gap: 12px; }
.comprovante-prev img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; border: 1px solid var(--linha); }

/* gráficos */
.graf { width: 100%; display: block; overflow: visible; }
.graf text { font-family: var(--rs-fonte); fill: #8a8a93; font-size: 11px; font-variant-numeric: tabular-nums; }
.graf .eixo { stroke: #efeff1; stroke-width: 1; }
.graf .base { stroke: #d4d4d8; stroke-width: 1; }
.graf-env { position: relative; }
.dica { position: absolute; z-index: 10; pointer-events: none; background: #fff; color: var(--texto); border: 1px solid var(--linha); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; line-height: 1.5; box-shadow: var(--sombra-alta); white-space: nowrap; transform: translate(-50%, calc(-100% - 8px)); opacity: 0; transition: opacity .1s; }
.dica.vis { opacity: 1; }
.dica b { font-weight: 600; }
.dica i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.calor-grade { display: grid; gap: 3px; }
.calor-grade .cg-cel { border-radius: 5px; min-height: 30px; display: grid; place-items: center; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; position: relative; cursor: default; }
.calor-grade .cg-cab { font-size: 12px; color: var(--texto-3); display: grid; place-items: center; min-height: 22px; }
.calor-grade .cg-hora { font-size: 12px; color: var(--texto-3); display: flex; align-items: center; font-variant-numeric: tabular-nums; }
.calor-grade .cg-cel.vazia { background: repeating-linear-gradient(135deg, #f4f4f5 0 3px, #fafafa 3px 6px); }
.escala { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--texto-3); }
.escala i { width: 16px; height: 8px; border-radius: 2px; background: var(--c); display: inline-block; }
.rosca-env { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.funil { display: flex; flex-direction: column; gap: 10px; }
.funil-it { display: grid; grid-template-columns: 100px minmax(0, 1fr) 32px; align-items: center; gap: 10px; font-size: 13px; color: var(--texto-2); }
.funil-it .barra { height: 8px; }
.funil-it b { text-align: right; font-weight: 600; color: var(--texto); font-variant-numeric: tabular-nums; }
.previsao { display: flex; height: 8px; border-radius: 999px; overflow: hidden; gap: 2px; background: #fff; }
.previsao i { display: block; height: 100%; }

/* grade semanal */
.semana { display: grid; grid-template-columns: 56px repeat(5, minmax(0, 1fr)); gap: 4px; }
.semana .sm-cab { font-weight: 500; font-size: 12.5px; color: var(--texto-3); text-align: center; padding: 4px 0; }
.semana .sm-hora { font-size: 12.5px; color: var(--texto-3); padding-top: 8px; font-variant-numeric: tabular-nums; }
.semana .sm-cel { display: flex; flex-direction: column; gap: 4px; min-height: 44px; }
.bloco-aula { border: 1px solid var(--linha); border-left: 3px solid var(--c); text-align: left; border-radius: 6px; padding: 5px 8px; color: var(--texto); background: #fff; font-size: 12px; line-height: 1.3; min-height: 40px; width: 100%; }
.bloco-aula b { display: block; font-size: 12.5px; font-weight: 500; }
.bloco-aula span { color: var(--texto-3); }
.bloco-aula:hover { background: #fafafa; }
.sm-vazio { border-radius: 6px; min-height: 40px; background: repeating-linear-gradient(135deg, #f4f4f5 0 3px, transparent 3px 6px); }

/* cursos */
.trilha-card { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 18px; align-items: start; }
.trilha-card .tr-capa { width: 168px; aspect-ratio: 16/10; border-radius: 8px; object-fit: cover; }
.aula-video { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0f0f2; }
.aula-video:last-child { border-bottom: 0; }
.aula-video .av-capa { width: 88px; aspect-ratio: 16/9; border-radius: 6px; background: #18181b center/cover; display: grid; place-items: center; color: #fff; position: relative; }
.aula-video .av-capa span { position: absolute; right: 4px; bottom: 4px; background: rgba(0, 0, 0, .75); font-size: 10.5px; border-radius: 3px; padding: 0 4px; }
.yt-prev { display: flex; gap: 12px; align-items: center; background: #fafafa; border: 1px solid var(--linha); border-radius: 10px; padding: 8px; margin-top: 4px; }
.yt-prev img { width: 112px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }

/* configurações */
.regra-grau { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.regra-grau label { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--linha); border-radius: 10px; background: #fff; }
.regra-grau input { min-height: 38px; border-radius: 8px; border: 1px solid var(--linha-2); padding: 0 10px; font-weight: 600; font-size: 14px; width: 100%; }

/* professores */
.prof-card { display: flex; flex-direction: column; gap: 14px; }
.prof-topo { display: flex; gap: 12px; align-items: center; }
.prof-num { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.prof-num div { border: 1px solid var(--linha); border-radius: 8px; padding: 9px 11px; }
.prof-num b { display: block; font-size: 16px; font-weight: 600; line-height: 1.2; letter-spacing: -.015em; }
.prof-num span { font-size: 12px; color: var(--texto-3); }
.folha-linha { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--linha); padding-top: 14px; flex-wrap: wrap; }
.folha-linha .fl-val { font-weight: 600; font-size: 20px; letter-spacing: -.02em; }

/* faixa do marca.css mais discreta */
.rs-faixa { height: 12px; width: 78px; border-radius: 2px; }

/* ---------- responsivo ---------- */
@media (max-width: 1180px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quadro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hoje-faixa { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aula-hero { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 18px; }
  .aula-hero .ah-num { grid-column: 2 / 3; grid-row: 2; }
  .aula-hero .ah-acao { grid-column: 3; grid-row: 1 / 3; }
}
@media (max-width: 1080px) {
  .g-8-4, .g-4-8 { grid-template-columns: minmax(0, 1fr); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --lat-larg: 0px; }
  .lateral { display: none; }
  .principal { margin-left: 0; }
  .topo { height: 54px; padding: 0 16px; gap: 10px; background: #17171a; color: #fafafa; }
  .topo.rolou { border-bottom-color: transparent; }
  .topo-logo { display: block; flex: none; }
  .topo-logo img { width: 30px; height: 30px; border-radius: 50%; background: #fff; }
  .topo-titulo { display: block; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; font-size: 15px; }
  .topo-busca, .topo-asaas { display: none; }
  .topo-perfil { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; padding: 0; }
  .topo-perfil .av { width: 30px; height: 30px; }
  .conteudo { padding: 12px 16px calc(92px + env(safe-area-inset-bottom)); }
  .pag-titulo { font-size: 21px; }
  .pag-topo { margin: 6px 0 16px; }
  .rs-btn { min-height: 44px; }
  .rs-btn-p { min-height: 40px; }
  .btn-ico { width: 44px; height: 44px; }
  .seg button { min-height: 38px; }
  .campo input, .campo select, .campo textarea, .entrada { min-height: 44px; font-size: 16px; }
  .filtro-chip, .opcao { min-height: 44px; }
  .inferior { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #17171a; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); border-top: 1px solid #26262b; }
  .inferior a, .inferior button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; border-radius: 8px; color: #8a8a93; text-decoration: none; font-size: 11px; font-weight: 500; background: transparent; border: 0; position: relative; padding: 0 2px; text-align: center; line-height: 1.1; }
  .inferior .ico { width: 21px; height: 21px; }
  .inferior .ativo { color: #fafafa; }
  .inferior .ativo::before { content: ""; position: absolute; top: -4px; left: 35%; right: 35%; height: 2px; border-radius: 0 0 2px 2px; background: var(--verm); }
  .inferior .bolinha { position: absolute; top: 4px; left: calc(50% + 5px); min-width: 17px; height: 17px; border-radius: 6px; background: #3f3f46; color: #fff; font-size: 10px; font-weight: 600; display: grid; place-items: center; padding: 0 4px; }
  .inferior .bolinha.alerta { background: var(--verm); }
  .camada { align-items: flex-end; padding: 0; }
  .janela, .janela.larga, .janela.estreita { max-width: none; border-radius: 16px 16px 0 0; max-height: 92vh; animation: folha .25s cubic-bezier(.2, .9, .3, 1) both; border: 0; }
  @keyframes folha { from { transform: translateY(100%); } }
  .jan-rodape { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .jan-rodape .rs-btn { flex: 1 1 auto; }
  .avisos-toast { left: 16px; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); align-items: stretch; }
  .toast { max-width: none; }
  .quadro { grid-template-columns: minmax(0, 1fr); }
  .g-6-6 { grid-template-columns: minmax(0, 1fr); }
  .entrar { grid-template-columns: 1fr; }
  .entrar-foto { display: none; }
  .barra-fixa { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .aula-hero { grid-template-columns: auto minmax(0, 1fr); gap: 16px 18px; padding: 20px 18px 20px 22px; }
  .aula-hero .ah-hora { padding-right: 16px; }
  .aula-hero .ah-hora b { font-size: 26px; }
  .aula-hero .ah-num, .aula-hero .ah-acao { grid-column: 1 / -1; grid-row: auto; }
  .aula-hero .ah-num div { flex: 1; min-width: 0; }
  .aula-hero .ah-acao .rs-btn { width: 100%; justify-content: center; }
}
@media (max-width: 760px) {
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hoje-faixa { gap: 10px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .grid { gap: 12px; }
  .pilha { gap: 12px; }
  .cartao { padding: 16px; }
  .cartao-topo.pad { padding: 14px 16px 0; }
  .kpi { padding: 14px; }
  .kpi-val { font-size: 19px; white-space: nowrap; }
  .kpi .ico-kpi { display: none; }
  .mini-kpi { padding: 12px; gap: 10px; }
  .mini-kpi b { font-size: 18px; }
  .filtros select.entrada { flex: 1 1 140px; min-width: 0; }
  .filtros .busca { max-width: none; flex-basis: 100%; }
  table.tab, table.tab tbody, table.tab tr, table.tab td { display: block; width: 100%; }
  table.tab thead { display: none; }
  table.tab tr { padding: 12px 16px; border-bottom: 1px solid var(--linha); }
  table.tab tr:last-child { border-bottom: 0; }
  table.tab td { border: 0; padding: 3px 0 !important; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: right; }
  table.tab td::before { content: attr(data-rotulo); font-size: 12px; color: var(--texto-3); text-align: left; flex: none; }
  table.tab td.td-princ { display: block; text-align: left; padding-bottom: 8px !important; }
  table.tab td.td-princ::before, table.tab td.sem-rot::before { display: none; }
  table.tab td.sem-rot { justify-content: flex-start; }
  table.tab td.td-acao { justify-content: stretch; padding-top: 10px !important; }
  table.tab td.td-acao > * { flex: 1; }
  table.tab td:empty { display: none; }
  .ficha-nome { font-size: 21px; }
  .ficha-topo { gap: 14px; }
  .av-moldura { width: 96px; height: 112px; }
  .av-moldura svg { width: 88px; }
  .chamada-lista { grid-template-columns: minmax(0, 1fr); }
  .chamada-cont { margin-left: 0; width: 100%; justify-content: space-between; border-top: 1px solid var(--linha); padding-top: 12px; }
  .chamada-cont div { text-align: left; }
  .pedido { grid-template-columns: auto minmax(0, 1fr); }
  .pedido .pd-acoes { grid-column: 1 / -1; }
  .pedido .pd-acoes .rs-btn { flex: 1; }
  .aula-linha { grid-template-columns: 50px minmax(0, 1fr) auto; gap: 10px; padding: 12px 4px 12px 12px; }
  .aula-cont { min-width: 56px; }
  .aula-cont .barra { width: 56px; }
  .lanc { padding: 10px 16px; gap: 10px; }
  .dia-grupo { padding: 8px 16px; }
  .saldo-hero .sh-val { font-size: 26px; }
  .cat-barra { grid-template-columns: minmax(0, 1fr) auto; }
  .cat-barra .barra { grid-column: 1 / -1; grid-row: 2; }
  .trilha-card { grid-template-columns: minmax(0, 1fr); }
  .trilha-card .tr-capa { width: 100%; }
  .treino-card { grid-template-columns: 88px minmax(0, 1fr); }
  .treino-card img { width: 88px; height: 70px; }
  .semana { grid-template-columns: 42px repeat(5, minmax(0, 1fr)); gap: 3px; }
  .bloco-aula { padding: 4px; font-size: 10.5px; border-left-width: 2px; }
  .bloco-aula b { font-size: 10.5px; }
  .bloco-aula span { display: none; }
  .funil-it { grid-template-columns: 88px minmax(0, 1fr) 30px; }
  .pag-acoes { width: 100%; }
  .pag-acoes .rs-btn { flex: 1 1 auto; }
  .seg { width: 100%; }
  .seg button { flex: 1 1 auto; padding: 0 8px; }
}
@media (max-width: 380px) {
  .kpi-val { font-size: 17px; }
  .dados { grid-template-columns: minmax(0, 1fr); }
  .folha-mais .mais-grade { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .pagina, .janela, .camada, .toast, .pedido { animation: none !important; transition: none !important; }
}

/* ---------- sistema ligado ao banco: o que o protótipo não tinha ---------- */
.lateral-usuario { flex-direction: column; align-items: stretch; gap: 10px; }
.lateral-usuario .lu-linha { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lateral-usuario .bt-avisos { margin: 0; width: 100%; height: 34px; display: flex; align-items: center; justify-content: flex-start; gap: 8px; padding: 0 10px; border: 1px solid #2c2c32; border-radius: 8px; color: #c4c4cc; font-size: 12.5px; font-weight: 500; }
.lateral-usuario .bt-avisos:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.selo-asaas.desligado i { background: #c9a23a; }
.av img.av-foto { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.av-moldura.com-foto { place-items: stretch; }
.av-moldura.com-foto img { width: 100%; height: 100%; object-fit: cover; }
.aviso-falta { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; border-radius: 8px; padding: 10px 12px; background: var(--amarelo-claro); color: var(--amarelo); font-size: 13.5px; border: 1px solid #efe1bd; }
.aviso-falta b { font-weight: 600; }
.cad-foto { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cad-foto-prev { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: #f1f0ee; display: grid; place-items: end center; border: 1px solid var(--linha); flex: none; }
.cad-foto-prev img { width: 100%; height: 100%; object-fit: cover; }
.cad-foto-prev svg { width: 70px; height: auto; }
.carregando { opacity: .5; pointer-events: none; }
.fam-linha { display: grid; grid-template-columns: minmax(0, 1fr) 140px 38px; gap: 10px; align-items: end; margin-bottom: 10px; }
.fam-linha .btn-ico { height: 38px; width: 38px; }
.hor-linha { display: grid; grid-template-columns: 110px minmax(0, 1fr) 38px; gap: 8px; margin-bottom: 8px; }
.hor-linha .btn-ico { height: 38px; width: 38px; }
.grupo-ed { border: 1px solid var(--linha); border-radius: 10px; padding: 12px; margin-bottom: 10px; background: #fcfcfc; }
.fotos-ed { display: flex; flex-wrap: wrap; gap: 10px; }
.foto-ed { position: relative; width: 96px; height: 96px; border-radius: 10px; overflow: hidden; border: 1px solid var(--linha); }
.foto-ed img { width: 100%; height: 100%; object-fit: contain; }
.foto-ed .btn-ico { position: absolute; top: 4px; width: 28px; height: 28px; background: rgba(255, 255, 255, .92); }
.foto-ed .fe-tira { right: 4px; }
.foto-ed .fe-antes { left: 4px; }
.foto-nova { width: 96px; height: 96px; border-radius: 10px; border: 1px dashed var(--linha-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; color: var(--texto-2); font-size: 12.5px; font-weight: 500; }
.foto-nova input { display: none; }
.produto-card .pc-foto { height: 180px; border-radius: 10px; display: grid; place-items: center; overflow: hidden; color: var(--texto-3); }
.produto-card .pc-foto img { width: 100%; height: 100%; object-fit: contain; }
.plano-card.fora, .produto-card.fora { opacity: .72; }
.ordem-bts { display: inline-flex; gap: 2px; }
.ordem-bts .btn-ico { width: 32px; height: 32px; }
.btn-ico[disabled] { opacity: .35; cursor: default; }
@media (max-width: 600px) {
  .fam-linha { grid-template-columns: minmax(0, 1fr) 90px 38px; }
  .hor-linha { grid-template-columns: 80px minmax(0, 1fr) 38px; }
  .cad-foto { justify-content: center; }
}

/* ===== mensalidade no Asaas, grupos de pagamento e painel financeiro ===== */
.pg-resumo { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--linha); border-radius: 8px; background: #fafafa; }
.pg-resumo .av { width: 34px; height: 34px; font-size: 12px; flex: none; }
.pg-ciclo { font-size: 12px; color: var(--texto-3); }
.pg-ciclo:empty { display: none; }
.seg.pg-formas button { min-width: 0; }
.aviso-erro { border-radius: 8px; padding: 10px 12px; background: var(--verm-claro); color: #8f2f2f; font-size: 13.5px; border: 1px solid #f1cfcf; line-height: 1.45; }
.aviso-erro b { font-weight: 600; }
.mens-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.membros-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 34px; align-items: center; }
.membro-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 3px; border: 1px solid var(--linha); border-radius: 999px; background: #fff; font-size: 13px; max-width: 100%; }
.membro-chip .av { width: 24px; height: 24px; }
.membro-chip > span:not(.av) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.membro-chip button { border: 0; background: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--texto-3); cursor: pointer; }
.membro-chip button:hover { background: #f1f1f3; color: var(--texto); }
.item-botao { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--linha); text-align: left; cursor: pointer; font: inherit; color: inherit; }
.item-botao:hover { background: #fafafa; }
.grupo-escolhido { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--linha); border-radius: 8px; }
.avs-grupo { display: flex; }
.avs-grupo .av { width: 28px; height: 28px; border: 2px solid #fff; margin-right: -8px; }
.semanas { display: flex; flex-direction: column; }
.semana { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f0f2; }
.semana:last-child { border-bottom: 0; }
.sem-quando b { display: block; font-size: 13.5px; font-weight: 600; }
.sem-quando span { font-size: 12px; color: var(--texto-3); }
.sem-det { font-size: 12px; color: var(--texto-3); margin-top: 5px; }
.sem-tot { font-weight: 600; text-align: right; min-width: 96px; }
.conta-lista { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.cl-linha { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cl-linha span { color: var(--texto-2); display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cl-linha i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.cl-linha small { display: block; width: 100%; font-size: 11.5px; color: var(--texto-3); }
.cl-linha b { font-weight: 600; white-space: nowrap; }
.cl-total { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--linha); padding-top: 8px; margin-top: 2px; font-weight: 600; }
.cl-total b { font-size: 17px; }
.desp-grupo { border-bottom: 1px solid #f0f0f2; }
.desp-grupo summary { list-style: none; display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; cursor: pointer; font-size: 13.5px; }
.desp-grupo summary::-webkit-details-marker { display: none; }
.dg-nome { overflow-wrap: anywhere; font-weight: 500; }
.dg-val { font-weight: 600; text-align: right; min-width: 86px; }
.dg-itens { padding: 0 0 10px 12px; border-left: 2px solid var(--linha); margin-left: 4px; }
.dg-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; font-size: 12.5px; padding: 4px 0; color: var(--texto-2); align-items: baseline; }
.dg-item b { font-weight: 500; color: var(--texto); }
.inad-lista { padding: 0 20px 8px; }
.inad-item { flex-wrap: wrap; }
.inad-item .item-corpo { flex: 1 1 220px; }
.inad-dir { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.inad-acoes { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 600px) {
  .seg.pg-formas button { flex: 1 1 calc(50% - 2px); }
  .semana { grid-template-columns: minmax(0, 1fr) auto; }
  .semana .sem-barra { grid-column: 1 / -1; grid-row: 2; }
  .desp-grupo summary { grid-template-columns: minmax(0, 1fr) auto; }
  .desp-grupo summary .barra { grid-column: 1 / -1; grid-row: 2; }
  .inad-acoes { width: 100%; }
  .inad-acoes .rs-btn { flex: 1; justify-content: center; }
}

/* passar a aula para outro professor */
.aula-hero .ah-acao { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.aula-hero .ah-passar { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: none; border: 0; color: rgba(255, 255, 255, .62); font-size: 12.5px; font-weight: 500; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.aula-hero .ah-passar:hover { color: #fff; background: rgba(255, 255, 255, .06); }

/* aniversários */
.aniv-faixa { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: 0 0 16px; border-radius: var(--raio); background: linear-gradient(90deg, #fff6ea, #fff); border: 1px solid #f3dfc0; box-shadow: var(--sombra); flex-wrap: wrap; }
.aniv-faixa .af-ico { width: 40px; height: 40px; border-radius: 10px; background: #fde9cf; color: #a8661b; display: grid; place-items: center; flex: none; }
.aniv-faixa .af-ico .ico { width: 20px; height: 20px; }
.aniv-faixa .af-txt { flex: 1; min-width: 200px; }
.aniv-faixa .af-txt b { display: block; font-weight: 600; font-size: 14.5px; }
.aniv-faixa .af-txt span { display: block; font-size: 13px; color: var(--texto-2); margin-top: 1px; }
.aniv-item.hoje { background: #fffaf2; border-radius: 10px; padding-left: 8px; padding-right: 8px; }
.aniv-item .enviado { font-size: 12.5px; padding: 5px 10px; }

/* freezer (vendas no balcão) */
.produtos-freezer { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.produto.com-foto { padding: 10px; min-height: 0; }
.produto .pr-foto { display: block; aspect-ratio: 1; border-radius: 9px; overflow: hidden; background: #fff; margin-bottom: 2px; }
.produto .pr-foto img { width: 100%; height: 100%; object-fit: contain; display: block; }
.produto.com-foto b { font-size: 13px; }
.produto.com-foto .pr-preco { font-size: 15px; }
.fz-cab, .fz-linha { display: grid; grid-template-columns: 40px minmax(0, 1fr) 116px 132px 96px; gap: 8px; align-items: center; }
.fz-cab { font-size: 12px; color: var(--texto-3); font-weight: 500; padding: 0 0 6px; }
.fz-linha { padding: 6px 0; border-top: 1px solid var(--linha); }
.fz-foto { position: relative; cursor: pointer; display: block; width: 40px; height: 40px; }
.fz-foto img, .fz-sem { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; background: #fff; border: 1px solid var(--linha); display: grid; place-items: center; color: var(--texto-3); }
.fz-foto:hover img, .fz-foto:hover .fz-sem { border-color: var(--verm); }
.fz-foto.enviando { opacity: .45; pointer-events: none; }
.fz-sem .ico { width: 16px; height: 16px; }
.fz-linha .entrada { min-height: 38px; }
.fz-linha .entrada.erro { border-color: var(--verm); }
.fz-ativo { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--texto-2); white-space: nowrap; }
@media (max-width: 600px) {
  .fz-cab { display: none; }
  .fz-linha { grid-template-columns: 40px minmax(0, 1fr) 100px; }
  .fz-linha > :nth-child(4), .fz-linha > :nth-child(5) { grid-column: 2 / -1; }
}

/* professores (gestão) */
.prof-link { display: inline; color: inherit; text-decoration: none; }
.prof-link:hover { text-decoration: underline; }

/* posição da semana */
.posicao .pos-topo { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.posicao .pos-tit { font-size: 18px; font-weight: 650; letter-spacing: -.02em; margin: 0; }
.posicao.grande .pos-tit { font-size: 22px; }
.posicao .pos-desc { margin-top: 6px; color: var(--texto-2); font-size: 14px; white-space: pre-line; line-height: 1.55; }
.pos-video { position: relative; display: block; margin-top: 14px; border-radius: 10px; overflow: hidden; max-width: 520px; aspect-ratio: 16/9; background: #000; }
.pos-video img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; }
.pos-video span { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; background: var(--verm); color: #fff; font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: 8px; }
.pos-video span .ico { width: 15px; height: 15px; }

@media (max-width: 1180px) { .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .g5 > :first-child { grid-column: 1 / -1; } }

/* despesas por categoria (abre a janela) e resumo dos atrasos */
.desp-linha { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto 16px; gap: 12px; align-items: center; width: 100%; padding: 10px 6px; border: 0; border-bottom: 1px solid var(--linha); background: none; text-align: left; cursor: pointer; border-radius: 6px; }
.desp-linha:hover { background: var(--fundo); }
.desp-linha .dg-nome { font-size: 13.5px; font-weight: 500; }
.desp-linha .dg-val { font-weight: 600; font-size: 13.5px; }
.desp-linha > .ico { color: var(--texto-3); }
.cat-rec { border: 1px solid var(--linha); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.cat-rec-topo { display: flex; align-items: center; gap: 12px; }
.cat-rec-topo > div { flex: 1; }
.cat-rec-itens { margin-top: 8px; border-top: 1px solid var(--linha); padding-top: 4px; }
.atraso-resumo { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 10px; text-decoration: none; color: inherit; border: 1px solid var(--linha); margin-top: 8px; }
.atraso-resumo:hover { background: var(--fundo); }
.atraso-resumo .ar-ico { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.atraso-resumo .ar-ico.amar { background: var(--amarelo-claro); color: var(--amarelo); }
.atraso-resumo .ar-ico.verm { background: var(--verm-claro); color: var(--verm); }
.atraso-resumo .ar-txt { flex: 1; min-width: 0; }
.atraso-resumo .ar-txt b { display: block; font-weight: 600; }
.atraso-resumo .ar-txt small { display: block; font-size: 12.5px; color: var(--texto-3); }
.atraso-resumo > .ico { color: var(--texto-3); }
.tab-atraso .chips { gap: 4px; }
.tab-atraso .rs-chip { font-size: 11.5px; }
.seg a { white-space: nowrap; min-height: 30px; border-radius: 6px; padding: 0 11px; font-weight: 500; font-size: 13px; color: var(--texto-2); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.seg a:hover { color: var(--texto); }
.seg a.sel { background: #fff; color: var(--texto); box-shadow: 0 1px 2px rgba(16, 16, 20, .08); }
.cat-rec-itens .dg-item { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 12px; }

/* valores definidos pelo plano (só leitura) */
.campo-dinheiro input.so-leitura, input.so-leitura { background: var(--fundo); color: var(--texto); cursor: default; }
