/* ---------- estrutura ---------- */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100%; }
.side {
  position: sticky; top: 0; height: 100vh; height: 100dvh; background: var(--side); color: var(--side-ink);
  display: flex; flex-direction: column; padding: 22px 14px calc(16px + env(safe-area-inset-bottom, 0px)); gap: 18px; overflow-y: auto;
}
.side .brand { padding: 2px 10px 6px; }
.side .brand img { width: 100%; max-width: 168px; }
.side nav { display: grid; gap: 2px; }
.side .nav-label { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--side-muted); padding: 14px 12px 6px; font-weight: 600; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--side-ink);
  text-decoration: none; font-weight: 500; font-size: 14.5px; position: relative; opacity: .82;
}
.nav-item:hover { background: var(--side-2); opacity: 1; }
.nav-item.on { background: var(--side-2); opacity: 1; font-weight: 600; }
.nav-item.on::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold-grad); }
.nav-item .badge { margin-left: auto; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.nav-item .ico { width: 19px; height: 19px; }
.side .foot { margin-top: auto; display: grid; gap: 10px; }
.studio-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--side-2); }
.studio-card .av { width: 34px; height: 34px; border-radius: 50%; background: var(--gold-grad); display: grid; place-items: center; color: #171A1C; font-weight: 800; font-family: var(--font-display); }
.studio-card small { display: block; color: var(--side-muted); font-size: 12px; }
.app-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px dashed #394349; color: var(--side-ink); text-decoration: none; font-size: 13.5px; }
.app-link:hover { border-color: var(--gold); }

.main { min-width: 0; padding-inline: 28px; padding-block: 22px 60px; }
.topbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.topbar h1 { font-size: 28px; font-weight: 700; }
.topbar .sub { color: var(--muted); font-size: 14px; }
.topbar .spacer { flex: 1; }
.menu-btn { display: none; }

/* ---------- blocos ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-h h2 { font-size: 17px; font-weight: 700; }
.card-h .spacer { flex: 1; }
.grid { display: grid; gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 4px; min-width: 0; }
.kpi .v { font-family: var(--font-display); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi .l { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.kpi .s { font-size: 12px; color: var(--faint); }
.kpi.alert .v { color: var(--bad); }
.kpi.good .v { color: var(--ok); }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--gold-grad); background: linear-gradient(90deg, #3F7F71, #83BAAD); }
.bar.ok > i { background: var(--ok); }

/* ---------- início ---------- */
.home { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.home .left { display: grid; gap: 16px; }
.cal-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.cal-head h3 { font-size: 16px; flex: 1; text-transform: capitalize; }
/* "Hoje" entre as setas do calendário: volta para o dia de hoje; fica apagado quando já está em hoje */
.cal-hoje { height: 34px; padding: 0 10px; flex: none; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s, opacity .15s; }
.cal-hoje:hover { border-color: var(--gold); background: var(--gold-soft); }
.cal-hoje.atual { opacity: .45; }
.cal-head h3 { white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cal-head { gap: 4px; }
.cal-head h3 { font-size: 15px; }
.cal-head .icon-btn { flex: none; width: 32px; height: 32px; }
.cal-head .cal-hoje { height: 32px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.cal .dw { font-size: 11px; font-weight: 600; color: var(--faint); padding: 4px 0; }
.cal button {
  aspect-ratio: 1; border: 0; background: transparent; border-radius: 10px; font-size: 13.5px; font-weight: 500; position: relative;
  display: grid; place-items: center; font-variant-numeric: tabular-nums; max-width: 100%;
}
.cal button:hover { background: var(--surface-2); }
.cal button.out { color: var(--faint); opacity: .5; }
.cal button.today { color: var(--gold-ink); font-weight: 800; }
.cal button.sel { background: var(--ink); color: var(--surface); }
.cal button .load { position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); width: 14px; height: 3px; border-radius: 2px; background: var(--gold); opacity: .25; }
.cal button.sel .load { background: var(--gold); opacity: 1; }
.cal button.closed { color: var(--faint); }
.mini-list { display: grid; gap: 2px; }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; font-size: 14px; min-width: 0; }
.mini-row:hover { background: var(--surface-2); }
.mini-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-row button { border: 0; background: none; padding: 0; text-align: left; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12.5px; color: #fff; flex: none; font-family: var(--font-display); }

.day-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.day-head h2 { font-size: 20px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.timeline { display: grid; margin-top: 12px; }
.timeline { gap: 8px; }
.slot { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; min-height: 64px; }
/* Um professor só no horário: o 3/9 da linha repete o "3/9 lugares" do horário */
.slot .lanes > .lane:only-child .cnt { display: none; }
.slot.now { background: linear-gradient(90deg, var(--gold-soft), var(--surface-2) 70%); border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 14%, transparent); }
.slot.past { opacity: .62; }
/* Aula acontecendo agora (ou, no intervalo, a próxima): pulso leve no contorno dourado.
   O pulso fica numa camada própria (::after) para nenhuma outra animação da tela apagá-lo. */
.slot.now, .slot.prox { position: relative; }
.slot.prox { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.slot.now::after, .slot.prox::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; animation: slotAgora 2.4s ease-in-out infinite; }
@keyframes slotAgora {
  0%, 100% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 12%, transparent); }
  50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--gold) 30%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .slot.now::after, .slot.prox::after { animation: none; } }
.slot .h { font-family: var(--font-display); font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.slot .h small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.slot .h .nowtag { color: var(--gold-ink); }
.lanes { display: grid; gap: 8px; min-width: 0; }
.lane { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.lane .pname { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; min-width: 92px; }
.lane .pname i { width: 9px; height: 9px; border-radius: 50%; }
.lane .cnt { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.lane .empty-seat { width: 28px; height: 28px; border-radius: 999px; border: 1.5px dashed var(--line); }
/* turma grande (Solum): 3 lugares vazios desenhados e o resto em texto */
.lane .empty-mais { font-size: 12px; color: var(--faint); padding: 0 2px; white-space: nowrap; }
.st {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 6px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--line); background: var(--surface); max-width: 100%;
}
.st .ini { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; background: var(--surface-2); color: var(--muted); flex: none; }
.st.confirmado { border-color: var(--ok); }
.st.confirmado .ini { background: var(--ok); color: #fff; }
.st.presente { background: var(--ok-soft); border-color: var(--ok-soft); color: var(--ok); }
.st.presente .ini { background: var(--ok); color: #fff; }
.st.falta { background: var(--bad-soft); border-color: var(--bad-soft); color: var(--bad); }
.st.falta .ini { background: var(--bad); color: #fff; }
.st.ausente { color: var(--faint); text-decoration: line-through; border-style: dashed; }
.st .tag { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; padding: 1px 6px; border-radius: 99px; background: var(--info-soft); color: var(--info); text-decoration: none; }
.occ { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
.slot-empty { color: var(--faint); font-size: 13.5px; padding: 4px 0; }

/* popover */
.pop { position: fixed; z-index: 70; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 200px; display: grid; }
.pop .ph { padding: 8px 10px 6px; font-size: 12.5px; color: var(--muted); }
.pop .ph b { display: block; color: var(--ink); font-size: 14px; }
.pop button { border: 0; background: none; text-align: left; padding: 10px; border-radius: 8px; display: flex; gap: 10px; align-items: center; font-weight: 500; }
.pop button:hover { background: var(--surface-2); }

/* ---------- tabelas ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .search { flex: 1 1 240px; position: relative; }
.toolbar .search .ico { position: absolute; left: 13px; top: 13px; color: var(--faint); }
.toolbar .search input { padding-left: 40px; }
.toolbar select.input { width: auto; min-width: 170px; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--ink); color: var(--surface); }
/* filtros de situação dos alunos: cor por situação */
.seg [class*="sg-"] { --sg: var(--gold); --sg-soft: var(--gold-soft); display: inline-flex; align-items: center; gap: 6px; }
.seg .sg-pago { --sg: var(--ok); --sg-soft: var(--ok-soft); }
.seg .sg-vence { --sg: var(--warn); --sg-soft: var(--warn-soft); }
.seg .sg-atraso { --sg: var(--bad); --sg-soft: var(--bad-soft); }
.seg .sg-inativo { --sg: var(--muted); --sg-soft: color-mix(in srgb, var(--muted) 14%, transparent); }
.seg .sg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sg); flex: none; }
.seg [class*="sg-"]:hover { color: var(--sg); }
.seg [class*="sg-"].on { background: var(--sg-soft); color: var(--sg); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sg) 45%, transparent); }
.seg [class*="sg-"].on .faint { color: inherit; opacity: .75; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); position: sticky; top: 0; }
.t td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; font-variant-numeric: tabular-nums; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr.click { cursor: pointer; }
.t tbody tr.click:hover td { background: var(--surface-2); }
.t .who { display: flex; align-items: center; gap: 10px; }
.t .who b { font-weight: 600; display: block; }
.t .who small { color: var(--muted); font-size: 12.5px; }
.t td.r, .t th.r { text-align: right; }
.hrs { display: flex; gap: 4px; flex-wrap: wrap; }
.hrs span { font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.wa { color: #1FA855; }
.count-note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ---------- agenda ---------- */
.week-nav { display: flex; align-items: center; gap: 8px; }
.week { display: grid; grid-template-columns: 56px repeat(var(--n, 5), minmax(92px, 1fr)); gap: 4px; min-width: 560px; }
.week .wh { font-size: 12.5px; font-weight: 700; text-align: center; padding: 8px 4px; border-radius: 10px; }
.week .wh small { display: block; font-weight: 500; color: var(--muted); }
.week .wh.today { background: var(--ink); color: var(--surface); }
.week .wh.today small { color: var(--surface); opacity: .7; }
.week .hl { font-size: 12.5px; font-weight: 700; color: var(--muted); display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.cell {
  border: 1px solid var(--line); border-radius: 10px; padding: 7px 8px; min-height: 52px; background: var(--surface); text-align: left;
  display: grid; gap: 4px; align-content: start; position: relative;
}
.cell:hover { border-color: var(--faint); }
.cell.closed { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--surface-2) 6px 7px); border-style: dashed; cursor: default; }
.cell .o { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cell .o small { font-weight: 500; color: var(--muted); }
.cell .dots { display: flex; gap: 3px; }
.cell .dots i { width: 7px; height: 7px; border-radius: 50%; }
.cell .fill { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 0 0 9px 9px; }
.cell.full { background: var(--gold-soft); border-color: transparent; }
.cell .rep { position: absolute; top: 6px; right: 7px; font-size: 10px; font-weight: 800; color: var(--info); }
.cell.past { opacity: .55; }
.sala-tabs { display: flex; gap: 6px; margin: 0 0 12px; padding: 4px; background: var(--surface-2); border-radius: 999px; width: max-content; max-width: 100%; overflow-x: auto; }
.sala-tabs button { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); padding: 8px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; min-height: 36px; }
.sala-tabs button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.cell.sala-c { align-content: center; }
.cell .sala-n { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cell .sala-n i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.cell .sala-l { font-size: 12px; color: var(--muted); }
.feed { display: grid; gap: 0; }
.feed-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.feed-row:first-child { border-top: 0; }
.feed-row .fi { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.feed-row .fi.aus { background: var(--warn-soft); color: var(--warn); }
.feed-row .fi.rep { background: var(--info-soft); color: var(--info); }
.feed-row .fi.chk { background: var(--ok-soft); color: var(--ok); }

/* ---------- professores ---------- */
.profs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 16px; }
.prof-card { display: grid; gap: 14px; }
.prof-top { display: flex; gap: 12px; align-items: center; }
.prof-top .avatar { width: 48px; height: 48px; font-size: 16px; }
.prof-top h3 { font-size: 18px; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats3 div { background: var(--surface-2); border-radius: 10px; padding: 10px; }
.stats3 b { display: block; font-family: var(--font-display); font-size: 20px; font-variant-numeric: tabular-nums; }
.stats3 small { color: var(--muted); font-size: 12px; }
.stars { color: var(--gold); letter-spacing: 1px; }
.turnos { display: grid; gap: 4px; font-size: 13px; }
.turnos div { display: flex; gap: 8px; }
.turnos b { min-width: 84px; flex: none; }
.review { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }

/* ---------- financeiro ---------- */
.fin-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.occ-card { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; align-items: center; }
.fin-top.wide { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.fin-top.fin-res-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); }
.ring { position: relative; width: 160px; height: 160px; max-width: 100%; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .c b { font-family: var(--font-display); font-size: 40px; font-weight: 800; letter-spacing: -.03em; display: block; line-height: 1; }
.ring .c small { color: var(--muted); font-size: 12.5px; }
.grow-box { display: grid; gap: 10px; }
.grow-line { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 4px 22px; align-items: baseline; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.grow-line .lbl { grid-column: 1 / -1; }
.grow-line.meta { background: var(--gold-soft); }
.grow-line b { font-family: var(--font-display); font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.grow-line .lbl { font-size: 13px; font-weight: 600; }
.grow-line .lbl small { display: block; font-weight: 500; color: var(--muted); }
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: 110px minmax(0, 1fr) 118px; gap: 10px; align-items: center; font-size: 13.5px; }
.hbar .val { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12.5px; }
.hbar .val b { color: var(--ink); font-weight: 800; font-size: 13.5px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--muted); font-size: 10.5px; font-family: var(--font-body); }
.dre { display: grid; gap: 0; font-size: 14px; }
.dre div { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.dre div:first-child { border-top: 0; }
.dre .tot { font-weight: 800; font-size: 16px; border-top: 2px solid var(--ink); }
.dre .sub { color: var(--muted); padding-left: 12px; }

/* ---------- avisos ---------- */
.notice-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.notice-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.notice-row:first-of-type { border-top: 0; }
.notice-row b { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-row small { color: var(--muted); font-size: 12.5px; }
.notice-row .acts { display: flex; gap: 6px; }

/* ---------- relatórios ---------- */
.heat { display: grid; grid-template-columns: 48px repeat(var(--cols), minmax(30px, 1fr)); gap: 3px; min-width: 560px; }
.heat .hh { font-size: 11.5px; color: var(--muted); font-weight: 600; text-align: center; padding: 4px 0; font-variant-numeric: tabular-nums; }
.heat .hd { font-size: 12.5px; font-weight: 700; display: flex; align-items: center; }
.heat .hc { height: 34px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.heat .hc.off { background: transparent; border: 1px dashed var(--line); }

/* ---------- config ---------- */
.cfg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.cfg-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.cfg-row:first-of-type { border-top: 0; }
.cfg-row b { font-weight: 600; display: block; }
.cfg-row small { color: var(--muted); font-size: 12.5px; }
.copy-box { display: flex; gap: 8px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 8px 8px 12px; font-size: 13.5px; }
.copy-box code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- modal / drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(8, 11, 13, .42); z-index: 60; display: flex; justify-content: center; align-items: flex-start; padding: 40px 16px; overflow-y: auto; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: 18px; width: min(720px, 100%); box-shadow: var(--shadow); padding: 22px; display: grid; gap: 16px; animation: up .2s ease-out; }
.modal.sm { width: min(460px, 100%); }
@keyframes up { from { transform: translateY(10px); opacity: 0; } }
.modal-h { display: flex; gap: 12px; align-items: center; }
.modal-h h2 { font-size: 20px; flex: 1; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.form-grid > .field, .custo-grid > .field { min-width: 0; }
/* Adicionar custo */
.custo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.custo-grid .money { width: 100%; height: 44px; border-radius: var(--r-sm); justify-content: flex-start; }
.custo-grid .money input { flex: 1; width: auto; min-width: 0; text-align: left; }
.custo-sug { max-height: 120px; overflow-y: auto; }
@media (max-width: 560px) { .custo-grid { grid-template-columns: minmax(0, 1fr); } }
.form-grid .full { grid-column: 1 / -1; }
.modal-f { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.pick-grid { display: grid; gap: 6px; }
.pick-day { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; align-items: center; }
.pick-day b { font-size: 13px; }
/* blocos de horário todos do mesmo tamanho: hora em cima, vagas embaixo */
.pick-hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.pick-hours button { display: grid; justify-items: center; align-content: center; gap: 1px; min-height: 46px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 5px 4px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; }
.pick-hours button small { color: var(--muted); font-weight: 500; font-size: 11px; }
.valor-dif { justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; border: 1px dashed var(--line); background: none; border-radius: 999px; padding: 6px 12px 6px 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.valor-dif .tg { width: 28px; height: 16px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; flex: none; }
.valor-dif .tg::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); transition: transform .2s; }
.valor-dif.on { border-style: solid; border-color: var(--gold); color: var(--ink); background: var(--gold-soft); }
.valor-dif.on .tg { background: var(--gold); }
.valor-dif.on .tg::after { transform: translateX(12px); }
.pick-hours button.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.pick-hours button.on small { color: var(--surface); opacity: .7; }
.pick-hours button.lot { opacity: .35; text-decoration: line-through; pointer-events: none; }
.drawer-scrim { justify-content: flex-end; padding: 0; align-items: stretch; }
.drawer { background: var(--surface); width: min(520px, 100%); height: 100%; overflow-y: auto; padding: 24px 24px calc(24px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 18px; align-content: start; animation: slide .22s ease-out; }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.dl { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 12px; font-size: 14px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 600; min-width: 0; }
.sec h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-family: var(--font-body); }
.pay-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.pay-row:first-child { border-top: 0; }
.pay-row .grow { flex: 1; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.confirm-box { background: var(--bad-soft); border-radius: 12px; padding: 14px; display: grid; gap: 10px; }

/* ---------- responsivo (iPad retrato e celular) ---------- */
@media (max-width: 1100px) {
  .home { grid-template-columns: 270px minmax(0, 1fr); }
  .notice-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 80; transform: translateX(-100%); transition: transform .22s; }
  .app.menu-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(8, 11, 13, .4); }
  .menu-btn { display: inline-grid; }
  .home { grid-template-columns: minmax(0, 1fr); }
  .home .left { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
  .fin-top, .fin-top.wide, .cfg { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .main { padding-inline: 16px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home .left, .notice-cols, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .occ-card { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .topbar h1 { font-size: 23px; }
  .hbar { grid-template-columns: 84px minmax(0, 1fr) 104px; }
  .dl { grid-template-columns: 110px minmax(0, 1fr); }
}

/* ---------- v2: fotos, pizza e legendas ---------- */
img.avatar { display: block; }
.st .ini img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.lane .pname { min-width: 104px; }
.kpi-pie { display: flex; gap: 14px; align-items: center; grid-column: span 2; }
.kpi-pie > div:last-child { display: grid; gap: 2px; min-width: 0; }
.kpi-pie svg { display: block; }
.pie-leg { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 2px; }
.pie-leg span { display: inline-flex; align-items: center; gap: 5px; }
.pie-leg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend-foot { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.legend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px 18px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.legend-grid > span { display: flex; align-items: center; gap: 10px; min-width: 0; }
.legend-grid .st, .legend-grid .chip, .legend-grid .cell, .legend-grid .empty-seat, .legend-grid .icon-btn { flex: none; }
.cell.demo { min-height: 34px; width: 58px; padding: 5px 7px; cursor: default; display: grid; align-content: center; }
.card-foot { font-size: 12.5px; color: var(--faint); margin: 12px 0 0; }
.photo-field { display: flex; gap: 16px; align-items: center; }
.photo-pick { width: 88px; height: 88px; border-radius: 50%; flex: none; border: 1.5px dashed var(--faint); display: grid; place-items: center; color: var(--muted); cursor: pointer; overflow: hidden; background: var(--surface-2); }
.photo-pick img { width: 100%; height: 100%; object-fit: cover; }
.photo-pick .ico { width: 28px; height: 28px; }
label.btn { cursor: pointer; }
.prof-card { padding-top: 0; overflow: hidden; }
.prof-cover { height: 132px; margin: 0 -18px; background-size: cover; background-position: center 45%; }
.prof-card .prof-top { margin-top: -30px; align-items: flex-end; }
.prof-card .prof-top img.avatar { border: 3px solid var(--surface); box-sizing: content-box; }
@media (max-width: 640px) { .kpi-pie { grid-column: 1 / -1; } }
/* Celular: o horário fica em cima e os alunos embaixo */
@media (max-width: 640px) { .slot { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px 14px; } .slot .h { display: flex; align-items: baseline; gap: 8px; } .slot .h small { margin-top: 0; } }

/* v3: pedidos de remarcação e ficha de saúde */
.nav-item .badge.gold { background: var(--gold); color: #171A1C; }
.st .tag.gold { background: var(--gold-soft); color: var(--gold-ink); }
.st.remarcando, .st.solicitada { border-style: dashed; border-color: var(--gold); }
.pedidos { border-color: var(--gold); }
.pedido-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.pedido-row .troca { grid-column: 1 / -1; grid-row: 2; background: var(--surface-2); border-radius: 10px; padding: 8px 12px; }
.card-h + .pedido-row { border-top: 0; }
.pedido-row .who { display: flex; gap: 10px; align-items: center; border: 0; background: none; padding: 0; text-align: left; min-width: 0; }
.pedido-row .who b { display: block; font-weight: 600; }
.pedido-row .troca { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; font-size: 13.5px; }
.pedido-row .troca small { display: block; font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.pedido-row .troca .ico { color: var(--gold-ink); }
.sec.health { display: grid; gap: 12px; background: var(--gold-soft); border-radius: 14px; padding: 14px; }
.sec.health small { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--gold-ink); }
.sec.health p { margin: 3px 0 0; font-weight: 600; }


/* v4: grade semanal do professor e horário de funcionamento */
.pgrid { display: grid; grid-template-columns: 34px repeat(var(--cols), minmax(0, 1fr)); gap: 3px; }
.pg-h { font-size: 10.5px; font-weight: 600; color: var(--faint); text-align: center; font-variant-numeric: tabular-nums; }
.pg-d { font-size: 12px; font-weight: 700; display: flex; align-items: center; }
.pg-c { height: 26px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; padding: 0; }
.pg-c:hover { border-color: var(--faint); }
.pg-c.off { border-style: dashed; background: repeating-linear-gradient(135deg, transparent 0 4px, var(--surface-2) 4px 5px); }
.pg-c.cheio { background: var(--gold-soft); border-color: var(--gold); }
.pg-c.vazio { border-color: var(--warn); }
.pg-c .seats { display: flex; gap: 2px; }
.pg-c .seats i { width: 5px; height: 11px; border-radius: 2px; background: var(--line); }
.pg-c .seats i.on { background: var(--gold); }
.pg-c.demo { width: 40px; flex: none; }
.func { display: grid; gap: 4px; }
.func-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 170px; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.func-row:first-child { border-top: 0; }
.func-day { display: flex; gap: 8px; align-items: center; font-weight: 600; cursor: pointer; }
.func-day input { width: 18px; height: 18px; accent-color: var(--gold); }
.func-hours { display: flex; gap: 4px; flex-wrap: wrap; }
.func-hours button { border: 1px solid var(--line); background: var(--surface); border-radius: 7px; padding: 4px 7px; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--faint); }
.func-hours button.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.func-sum { font-size: 12.5px; color: var(--muted); text-align: right; }
@media (max-width: 760px) { .func-row { grid-template-columns: minmax(0, 1fr); } .func-sum { text-align: left; } }
.func-hours button small { font-weight: 500; opacity: .75; }

/* v9: botão de pedidos no topo, da altura dos outros botões */
.btn.pedidos-btn { gap: 8px; padding: 0 8px 0 14px; }
.btn.pedidos-btn .ico { color: var(--gold-ink); }
.btn.pedidos-btn.pulse { position: relative; border-color: var(--gold); background: var(--gold-soft); color: var(--gold-ink); }
/* sonar: duas ondas saem do botão, uma atrás da outra */
.btn.pedidos-btn.pulse::before, .btn.pedidos-btn.pulse::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; border: 2px solid var(--gold); pointer-events: none; animation: sonar 2.4s cubic-bezier(.15, .55, .35, 1) infinite; }
.btn.pedidos-btn.pulse::after { animation-delay: 1.2s; }
.btn.pedidos-btn.pulse:hover::before, .btn.pedidos-btn.pulse:hover::after { animation-play-state: paused; }
@keyframes sonar { 0% { inset: -1px; opacity: .9; border-width: 2.5px; } 70% { opacity: .25; } 100% { inset: -16px; opacity: 0; border-width: 1px; } }
.btn.pedidos-btn[disabled] { opacity: .55; }
@keyframes pulso { 0%, 100% { box-shadow: 0 0 0 0 rgba(95, 163, 148, .38); } 60% { box-shadow: 0 0 0 8px rgba(95, 163, 148, 0); } }
.pb-n { background: var(--gold); color: #171A1C; font-weight: 800; border-radius: 999px; min-width: 24px; height: 24px; display: grid; place-items: center; font-size: 12.5px; padding: 0 7px; }
.btn.pedidos-btn[disabled] .pb-n { background: var(--surface-2); color: var(--muted); }

/* v9: barra lateral mais próxima do logo */
.side { gap: 4px; padding-top: 18px; }
.side .brand { padding: 0 10px 2px; }
.side nav .nav-label:first-child { padding-top: 6px; }

/* v9: cards do Início uniformes, sem quebra de linha */
.kpis-home { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi { align-content: start; }
.kpi .l, .kpi .s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .v { font-size: 24px; font-weight: 900; line-height: 1.15; white-space: nowrap; }
.kpi.kpi-pie { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-column: auto; column-gap: 10px; }
.kpi.kpi-pie > span { grid-column: 1 / -1; }
.kpi.kpi-pie .v { grid-column: 1; grid-row: 2; }
.kpi.kpi-pie .pie { grid-column: 2; grid-row: 2; align-self: center; margin: -6px 0; }
.kpi.kpi-pie .pie svg { display: block; }
.card-h, .day-head { flex-wrap: nowrap; }
.card-h h2, .day-head h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* os 5 cards sempre lado a lado (iPad em pé e deitado); só empilha em celular */
@media (max-width: 1100px) {
  .kpis-home { gap: 8px; }
  .kpis-home .kpi { padding: 11px 12px; gap: 2px; }
  .kpis-home .kpi .v { font-size: 20px; }
  .kpis-home .kpi .l { font-size: 11.5px; }
  .kpis-home .kpi .s { font-size: 11px; }
  .kpis-home .kpi-pie .pie svg { width: 34px; height: 34px; }
}
@media (max-width: 640px) {
  .kpis-home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis-home .kpi-pie { grid-column: 1 / -1; }
  .kpi .v { font-size: 21px; }
}

/* v9: navegação de semanas na Agenda */
.week-nav { display: inline-flex; align-items: center; gap: 2px; height: 40px; padding: 0 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.week-nav > button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; }
.week-nav > button:hover { background: var(--surface-2); }
.wk-lbl { display: grid; text-align: center; min-width: 118px; line-height: 1.1; padding: 0 4px; }
.wk-lbl b { font-size: 13px; }
.wk-lbl small { font-size: 11.5px; color: var(--muted); }

/* v9: números clicáveis do professor e listas em popup */
.stats3 > * { background: var(--surface-2); border-radius: 10px; padding: 10px; min-width: 0; }
.stat-btn { border: 1px solid transparent; text-align: left; display: block; }
.stat-btn:hover { border-color: var(--gold); background: var(--gold-soft); }
.stat-btn small { display: inline-flex; align-items: center; gap: 2px; }
.stat-btn small .ico { width: 13px; height: 13px; }
.pick-list, .info-list { display: grid; gap: 2px; max-height: 56vh; overflow-y: auto; }
.pick-row { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; text-align: left; padding: 9px 8px; border-radius: 10px; }
.pick-row:hover { background: var(--surface-2); }
.pick-row .grow { flex: 1; min-width: 0; }
.pick-row .grow b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-row .grow small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-row > .ico { color: var(--faint); }

/* v9: relatórios com popups de informação */
.card.click, .kpi.click { cursor: pointer; transition: border-color .15s; }
.card.click:hover, .kpi.click:hover { border-color: var(--gold); }
.kpi.click { position: relative; }
.kpi-i { position: absolute; top: 12px; right: 12px; width: 16px; height: 16px; color: var(--faint); }
.kpi.click:hover .kpi-i { color: var(--gold-ink); }
.kpis-rel .kpi .l { padding-right: 18px; }
.info-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--muted); flex: none; }
.info-btn:hover { border-color: var(--gold); color: var(--gold-ink); }
.heat button.hc { border: 0; padding: 0; cursor: pointer; }
.heat button.hc:hover { outline: 2px solid var(--ink); outline-offset: -2px; }
.row-btn { width: 100%; border: 0; background: none; text-align: left; border-top: 1px solid var(--line); border-radius: 0; }
.row-btn:hover { background: var(--surface-2); }
.info-modal { gap: 14px; }
.info-badge { width: 36px; height: 36px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-ink); display: grid; place-items: center; flex: none; }
.info-val { font-family: var(--font-display); font-size: 30px; line-height: 1.1; padding: 12px 14px; background: var(--surface-2); border-radius: 12px; }
.info-val small { display: block; font-family: var(--font-body); font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.info-sec small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 4px; }
.info-sec p { margin: 0; font-size: 14.5px; }

/* v9: Configurações em grade de 3, títulos em pílula */
.cfg { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.cfg .cfg-wide { grid-column: 1 / -1; }
.cfg .card { display: flex; flex-direction: column; }
.cfg-stack { gap: 12px; }
.cfg-stack .card-h { margin-bottom: 2px; }
.cfg-p { margin: 0; font-size: 13.5px; }
h2.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; padding: 6px 14px 6px 11px; border: 1.5px solid var(--gold); border-radius: 999px; color: var(--ink); }
h2.pill .ico { width: 16px; height: 16px; color: var(--gold-ink); }
.cfg-row { grid-template-columns: minmax(0, 1fr) auto; padding: 11px 0; }
.cfg-row b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfg-row small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper, .money { display: inline-flex; align-items: center; height: 38px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.stepper button { width: 30px; height: 36px; border: 0; background: none; font-size: 18px; font-weight: 600; color: var(--muted); border-radius: 999px; }
.stepper button:hover { color: var(--ink); background: var(--surface-2); }
.stepper input, .money input { border: 0; background: none; outline: none; text-align: center; font-weight: 700; font-size: 15px; width: 32px; padding: 0; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .money input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper .un { font-size: 12px; color: var(--muted); padding-right: 12px; margin-left: -4px; }
.money { padding: 0 14px; gap: 4px; }
.money span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.money input { width: 64px; text-align: right; }
.stepper:focus-within, .money:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.cap-sum { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin: 4px 0; border-radius: 12px; background: var(--gold-soft); }
.cap-sum b { font-family: var(--font-display); font-size: 17px; }
.cap-sum small { display: block; font-size: 12.5px; color: var(--muted); }
.cap-viz { display: flex; gap: 6px; flex: none; }
.cap-g { display: grid; gap: 2px; justify-items: center; }
.cap-g i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); display: block; }
.cap-g i.t { width: 11px; height: 11px; background: var(--ink); margin-bottom: 2px; }
/* turma (Solum): a professora em cima e os alunos em fileiras de 5 */
.cap-g.turma { grid-template-columns: repeat(5, 7px); gap: 3px; }
.cap-g.turma i.t { grid-column: 1 / -1; }
@media (max-width: 1100px) { .cfg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cfg { grid-template-columns: minmax(0, 1fr); } }
.kpis-rel { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 760px) { .kpis-rel { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpis-rel .kpi:last-child { grid-column: 1 / -1; } }

/* v10: pedidos de remarcação em cards, com recusa + sugestão */
.pedidos-list { display: grid; gap: 12px; }
.pedido-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 12px; background: var(--surface); }
.pedido-card.recusando { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.pc-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.pedido-card .who { display: flex; gap: 10px; align-items: center; border: 0; background: none; padding: 0; text-align: left; min-width: 0; }
.pedido-card .who b { display: block; font-weight: 700; }
.pedido-card .troca { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; font-size: 13.5px; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.pedido-card .troca small { display: block; font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.pedido-card .troca .ico { color: var(--gold-ink); }
.recusa { display: grid; gap: 10px; border-top: 1px dashed var(--line); padding-top: 12px; }
.recusa > small { font-size: 12.5px; }
.sug-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 6px; }
.sug { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 10px; text-align: left; display: grid; }
.sug b { font-size: 13px; }
.sug small { font-size: 12px; color: var(--muted); }
.sug:hover { border-color: var(--faint); }
.sug.on { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.sug.on small { color: var(--surface); opacity: .75; }
/* Pedido de remarcação: com um horário escolhido, "Recusar e sugerir" fica cheio e pulsando, para mostrar o próximo passo */
.btn.danger.chama { background: var(--bad); border-color: var(--bad); color: #fff; animation: chama 1.4s ease-in-out infinite; }
.btn.danger.chama:hover { animation-play-state: paused; }
@keyframes chama { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--bad) 45%, transparent); opacity: 1; } 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--bad) 0%, transparent); opacity: .78; } }
@media (prefers-reduced-motion: reduce) { .btn.danger.chama { animation: none; } }

/* v10: feriados */
.cal button.hol { color: var(--bad); font-weight: 700; }
.cal button.hol::after { content: ""; position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--bad); }
.cal button.sel.hol { color: var(--surface); }
.cal-leg { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.cal-leg span { display: inline-flex; align-items: center; gap: 6px; }
.hol-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bad); display: inline-block; }
.hol-box { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding: 16px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); }
.hol-box b { display: block; font-family: var(--font-display); font-size: 16px; }
.hol-box small { color: var(--ink); opacity: .75; font-size: 13px; }
.week .wh.hol { color: var(--bad); }
.week .wh.hol small { color: var(--bad); font-weight: 700; }
.cell.hol { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--bad-soft) 6px 8px); border-color: var(--bad-soft); position: relative; }
.hol-tag { font-size: 10.5px; font-weight: 700; color: var(--bad); line-height: 1.15; }
.fer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.fer-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); cursor: pointer; }
.fer-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--bad); flex: none; }
.fer-row .grow { flex: 1; min-width: 0; }
.fer-row b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fer-row small { color: var(--muted); font-size: 12.5px; }
.fer-row .icon-btn { width: 30px; height: 30px; }
.fer-add { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 8px; margin-top: 10px; align-items: center; }
.fer-add .input { min-height: 38px; padding: 6px 10px; font-size: 14px; }
@media (max-width: 760px) { .fer-cols { grid-template-columns: minmax(0, 1fr); } .fer-add { grid-template-columns: minmax(0, 1fr); } }

/* v11: Marketing */
.mk-today { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.mk-list { display: grid; max-height: 268px; overflow-y: auto; }
.mk-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.mk-row:first-child { border-top: 0; }
.mk-row .grow { flex: 1; min-width: 0; border: 0; background: none; padding: 0; text-align: left; }
.mk-row .grow b { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-row .grow small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ok-t { color: var(--ok); font-weight: 600; }
.mk-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.mk-head h2 { font-size: 20px; flex: 1; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.mk-card { text-align: left; display: flex; flex-direction: column; gap: 8px; cursor: pointer; transition: border-color .15s, transform .15s; }
.mk-card:hover { border-color: var(--gold); transform: translateY(-1px); }
.mk-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.mk-t { font-family: var(--font-display); font-size: 16px; line-height: 1.25; }
.mk-r { color: var(--muted); font-size: 13.5px; flex: 1; }
.mk-more { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--gold-ink); }
.mk-more .ico { width: 14px; height: 14px; }
.mk-steps { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; }
.mk-steps li::marker { color: var(--gold-ink); font-weight: 800; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 860px) { .mk-today { grid-template-columns: minmax(0, 1fr); } }
.mk-row > .btn, .mk-row > a { flex: none; }

/* v12: Início com as aulas do dia à esquerda e calendário/listas à direita */
.home { grid-template-columns: minmax(0, 1fr) 300px; }
.home .left { order: 2; }
@media (max-width: 1100px) { .home { grid-template-columns: minmax(0, 1fr) 270px; } }
@media (max-width: 980px) { .home { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1100px) { .hide-md { display: none; } }

/* v13: Financeiro sem estourar (fonte Arial Black é mais larga) */
.grow-box { min-width: 0; }
.grow-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 18px; }
.grow-line .lbl { flex-basis: 100%; }
.grow-line b { font-size: 17px; }
.card-h:has(.legend) { flex-wrap: wrap; }
.card-h:has(.legend) h2 { overflow: visible; }
.fin-top .card-h .chip { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fin-top > .card { min-width: 0; overflow: hidden; }
@media (max-width: 1280px) {
  .occ-card { grid-template-columns: 130px minmax(0, 1fr); gap: 16px; }
  .ring { width: 130px; height: 130px; }
  .ring .c b { font-size: 32px; }
}
@media (max-width: 1100px) { .fin-top, .fin-top.wide, .fin-top.fin-res-row { grid-template-columns: minmax(0, 1fr); } }
/* todos os grupos de 5 números lado a lado e compactos no iPad */
.kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .kpis { gap: 8px; }
  .kpis .kpi { padding: 11px 12px; gap: 2px; }
  .kpis .kpi .v { font-size: 19px; }
  .kpis .kpi .l { font-size: 11.5px; }
  .kpis .kpi .s { font-size: 11px; }
}
@media (max-width: 860px) { .kpis .kpi .v { font-size: 17px; } .kpis .kpi { padding: 10px; } }
@media (max-width: 640px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpis .kpi:last-child { grid-column: 1 / -1; } .kpis .kpi .v { font-size: 21px; } }
.notice-cols .card-h { flex-wrap: wrap; }
.notice-cols .card-h h2 { overflow: visible; }
@media (max-width: 1366px) { .hide-md { display: none; } }
@media (max-width: 1100px) { .mk-today { grid-template-columns: minmax(0, 1fr); } }

/* v14: aulas experimentais */
.st.exp { border-color: #7B5BB5; background: #F3EEFB; color: #5A3E8C; }
.st.exp .ini { background: #7B5BB5; color: #fff; }
.st.exp.faltou { opacity: .55; text-decoration: line-through; }
.st .tag.exp, .tag.exp { background: #7B5BB5; color: #fff; }
.exp-t { color: #7B5BB5; font-weight: 800; }
.info-badge.exp-b { background: #F3EEFB; color: #7B5BB5; }
.funil { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.fun-col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; display: grid; gap: 8px; min-width: 0; }
.fun-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 4px; }
.fun-h b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fun-card { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px; display: grid; gap: 2px; min-width: 0; }
.fun-card:hover { border-color: #7B5BB5; }
.fun-card > b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fun-card > small { color: var(--muted); font-size: 12.5px; }
.fun-foot { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; min-width: 0; }
.fun-foot .chip { font-size: 11px; padding: 1px 7px; min-width: 0; overflow: hidden; text-overflow: ellipsis; margin-left: auto; }
.fun-vazio { font-size: 12.5px; padding: 8px 4px; }
.exp-acoes { margin-bottom: 16px; }
.fi-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--gold); }
.fi-dot.bad { background: var(--bad); }
.fi-dot.warn { background: var(--warn); }
.exp-when { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: #F3EEFB; }
.exp-when b { display: block; font-family: var(--font-display); font-size: 16px; }
.exp-when small { color: var(--muted); font-size: 13px; }
.exp-acts { display: grid; gap: 10px; border-top: 1px dashed var(--line); padding-top: 14px; }
.exp-act { display: flex; gap: 8px; flex-wrap: wrap; }
.opts-row { display: flex; gap: 6px; flex-wrap: wrap; }
.follow { display: grid; gap: 6px; }
.fw { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; }
.day-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.day-chips .sug { flex: none; text-align: center; min-width: 62px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .st.exp, :root:not([data-theme="light"]) .exp-when, :root:not([data-theme="light"]) .info-badge.exp-b { background: #2A2238; color: #C9B3F0; } }
@media (max-width: 1100px) { .funil { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .funil { grid-template-columns: minmax(0, 1fr); } }

/* v14: alerta de aniversário chegando */
.aniv-alert { display: flex; align-items: center; gap: 8px; width: 100%; border: 1px solid var(--gold); background: var(--gold-soft); border-radius: var(--r); padding: 6px 8px 6px 6px; margin: -6px 0 16px; color: var(--ink); }
.aa-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border: 0; background: none; text-align: left; padding: 4px 8px; border-radius: 10px; color: inherit; }
.aa-main:hover { background: rgba(255, 255, 255, .35); }
.aa-x { flex: none; color: var(--gold-ink); }
.center-row { display: flex; justify-content: center; padding-top: 4px; }
.aa-ico { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #171A1C; display: grid; place-items: center; flex: none; }
.aniv-alert .grow { flex: 1; min-width: 0; }
.aniv-alert b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aniv-alert small { color: var(--muted); font-size: 12.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aniv-alert > .ico { color: var(--gold-ink); }
.mk-today { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1366px) { .mk-today { grid-template-columns: minmax(0, 1fr); } }
.saida-box { background: var(--surface-2); border-left: 3px solid var(--bad); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; display: grid; gap: 2px; }
.saida-box small { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.saida-box p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.confirm-box .opts-row .sug { font-size: 13px; }
.pick-row { min-width: 0; } .pick-row > .chip { flex: none; } .pick-list, .info-list { overflow-x: hidden; }

/* v15: tela de boas-vindas com efeitos (poeira dourada, brilho no logo, linha e frase em sequência) */
.splash { position: fixed; inset: 0; z-index: 100; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; overflow: hidden; }
.sp-dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sp-glow { position: absolute; left: 50%; top: 50%; width: 70vmin; height: 70vmin; transform: translate(-50%, -58%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(131, 186, 173, .22) 0%, rgba(63, 127, 113, .10) 38%, transparent 68%); animation: spGlowIn 2.2s .2s ease-out both, spBreathe 5s 2.4s ease-in-out infinite; }
.splash-in { position: relative; border: 0; background: none; padding: 8px; cursor: pointer; color: #DBE2E6; -webkit-tap-highlight-color: transparent; }
.sp-logo { position: relative; display: block; animation: spLogo 1.6s cubic-bezier(.2, .8, .2, 1) both; }
.sp-logo img { width: min(400px, 76vw); height: auto; display: block; }
/* reflexo de luz passando pelo logo, recortado no formato da marca */
.sp-logo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(225, 248, 242, .95) 50%, transparent 65%); background-size: 260% 100%; background-position: 130% 0;
  -webkit-mask: url(assets/logo-full-neg.png) center / contain no-repeat; mask: url(assets/logo-full-neg.png) center / contain no-repeat;
  animation: spShine 1.4s 1.3s ease-in-out both, spShine 1.4s 6.5s ease-in-out infinite; mix-blend-mode: screen; }
.sp-line { width: min(220px, 40vw); height: 1px; background: linear-gradient(90deg, transparent, #83BAAD, transparent); transform: scaleX(0); animation: spLine 1.2s 1.15s cubic-bezier(.2, .8, .2, 1) forwards; }
.splash-msg { font-family: var(--font-body); font-size: clamp(17px, 2.4vw, 22px); font-weight: 500; letter-spacing: .01em; text-align: center; line-height: 1.55; }
.sp-w { display: inline-block; opacity: 0; filter: blur(6px); transform: translateY(10px); animation: spWord .7s cubic-bezier(.2, .8, .2, 1) forwards; }
.splash-in:hover .sp-logo img { filter: drop-shadow(0 0 18px rgba(131, 186, 173, .45)); }
/* saída: o logo cresce e desfoca enquanto o painel aparece */
.splash.out { animation: spOut .85s cubic-bezier(.6, 0, .2, 1) forwards; pointer-events: none; }
.splash.out .sp-logo { animation: spLogoOut .85s cubic-bezier(.6, 0, .2, 1) forwards; }
.splash.out .splash-msg, .splash.out .sp-line { transition: opacity .35s; opacity: 0; }
@keyframes spLogo { from { opacity: 0; transform: scale(.86); filter: blur(14px); } 60% { opacity: 1; filter: blur(0); } to { transform: scale(1); } }
@keyframes spShine { from { background-position: 130% 0; } to { background-position: -30% 0; } }
@keyframes spLine { to { transform: scaleX(1); } }
@keyframes spWord { to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes spGlowIn { from { opacity: 0; transform: translate(-50%, -58%) scale(.6); } }
@keyframes spBreathe { 0%, 100% { opacity: 1; transform: translate(-50%, -58%) scale(1); } 50% { opacity: .65; transform: translate(-50%, -58%) scale(1.08); } }
@keyframes spOut { 0% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes spLogoOut { to { transform: scale(1.35); filter: blur(10px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sp-w { opacity: 1; filter: none; transform: none; } .sp-line { transform: none; } }

html:has(.splash:not(.out)), body:has(.splash:not(.out)) { overflow: hidden; }

/* v16: Financeiro — cards do topo reorganizam a tela */
.fin-kpis .kpi.click { text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.fin-kpis .kpi.click:hover { border-color: var(--gold); }
.fin-kpis .kpi.on { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); transform: translateY(-2px); }
.fin-kpis .kpi.on .l { color: var(--gold-ink); font-weight: 700; }
.fin-foco { display: flex; align-items: center; gap: 10px; margin: -6px 0 14px; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-ink); font-size: 14px; animation: fade .25s; }
.fin-foco span { flex: 1; min-width: 0; }
.fin-foco .btn { color: var(--gold-ink); }
.fin-hl { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.fin-pulse { animation: finIn .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes finIn { from { opacity: 0; transform: translateY(14px); } }
.fin-mens .card-h { flex-wrap: wrap; } .fin-mens .card-h h2 { overflow: visible; }

/* v16: cards de ação do Marketing recolhidos; abrem e fecham ao toque */
.mk-tog { cursor: pointer; margin-bottom: 0; user-select: none; }
.mk-col.open .mk-tog { margin-bottom: 14px; }
.mk-col:not(.open) > :not(.card-h) { display: none; }
.mk-chev { width: 20px; height: 20px; color: var(--muted); transition: transform .2s; flex: none; }
.mk-col.open .mk-chev { transform: rotate(180deg); }
.mk-col { transition: border-color .15s; align-self: start; }
.mk-col:hover { border-color: var(--gold); }
.mk-today { align-items: start; }

/* botão discreto "Aluno" no rodapé da tela de boas-vindas */
.sp-aluno { position: absolute; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(229, 236, 236, .18); color: rgba(229, 236, 236, .55); text-decoration: none; font-size: 13px; letter-spacing: .06em;
  animation: spAluno 1s 2.6s ease-out both; transition: color .2s, border-color .2s; }
.sp-aluno svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sp-aluno:hover, .sp-aluno:focus-visible { color: #83BAAD; border-color: rgba(131, 186, 173, .5); }
.splash.out .sp-aluno { opacity: 0; transition: opacity .3s; }
@keyframes spAluno { from { opacity: 0; } }

/* v18: esconder e mostrar a barra lateral (telas acima de 980px) */
.side .brand { display: flex; align-items: center; gap: 8px; }
.side .brand img { min-width: 0; flex: 1; }
.side-hide { flex: none; width: 34px; height: 34px; border-radius: 9px; border: 1px solid #2C3439; background: transparent; color: var(--side-muted); display: grid; place-items: center; }
.side-hide:hover { color: var(--side-ink); border-color: var(--gold); }
/* v19: recolhida, a barra vira uma faixa estreita só com os ícones (dá para navegar sem abrir) */
@media (min-width: 981px) {
  .app { transition: grid-template-columns .28s cubic-bezier(.2, .8, .2, 1); }
  .app.side-off { grid-template-columns: 56px minmax(0, 1fr); }
  .app.side-off .side { padding-inline: 5px; overflow-x: hidden; }
  .app.side-off .side .brand { justify-content: center; padding: 0 0 8px; }
  .app.side-off .side .brand img { display: none; }
  .app.side-off .side-hide { transform: scaleX(-1); }
  .app.side-off .nl { display: none; }
  .app.side-off .side .nav-label { font-size: 0; padding: 8px 0 6px; margin: 0 6px; border-top: 1px solid #242A2D; }
  .app.side-off .side nav .nav-label:first-child { border-top: 0; padding-top: 2px; }
  .app.side-off .nav-item { justify-content: center; padding: 11px 0; gap: 0; }
  .app.side-off .nav-item.on::before { left: -5px; }
  .app.side-off .nav-item .badge { position: absolute; top: 4px; right: 3px; margin: 0; min-width: 16px; height: 16px; padding: 0 4px; font-size: 9.5px; line-height: 16px; display: grid; place-items: center; }
  .app.side-off .app-link { justify-content: center; padding: 10px 0; }
  .app.side-off .studio-card { justify-content: center; padding: 8px 0; background: transparent; }
  .app.side-off .menu-btn { display: none; }
}
@media (max-width: 980px) { .side-hide { display: none; } }

@media (min-width: 981px) { .app.side-off .studio-card .av { width: 32px; height: 32px; font-size: 12px; } .app.side-off .side-hide { width: 34px; } }

/* v21: Marketing — três botões lado a lado; o conteúdo abre abaixo */
.mk-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.mk-btn { display: flex; align-items: center; gap: 10px; min-width: 0; text-align: left; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.mk-btn:hover { border-color: var(--gold); }
.mk-btn.on { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.mk-bi { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); flex: none; }
.mk-bi .ico { width: 17px; height: 17px; }
.mk-bt { flex: 1; min-width: 0; display: grid; }
.mk-bt b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-bt small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-btn .chip { flex: none; }
.mk-panel { margin-bottom: 22px; animation: finIn .3s cubic-bezier(.2, .8, .2, 1); }
.mk-ph { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mk-ph p { flex: 1; margin: 0; }
.mk-btns + .mk-head { margin-top: 10px; }
@media (max-width: 640px) { .mk-btns { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* v22: seletor de tema. Claro = barra escura e painel claro; Escuro = barra clara e painel escuro */
:root[data-theme="dark"] { --line: #384349; --faint: #7C868C; --side: #EBEFF1; --side-2: #D8E0E4; --side-ink: #171A1C; --side-muted: #697379; --side-line: #CDD6DB; }
:root { --side-line: #242A2D; }
.logo-side-claro { display: none; }
:root[data-theme="dark"] .logo-side-neg { display: none; }
:root[data-theme="dark"] .logo-side-claro { display: block; }
:root[data-theme="dark"] .side { border-right: 1px solid var(--side-line); }
:root[data-theme="dark"] .side-hide { border-color: var(--side-line); }
:root[data-theme="dark"] .app-link { border-color: #B4C0C7; }
:root[data-theme="dark"] .nav-item.on { background: #FFFFFF; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
:root[data-theme="dark"] .nav-item:hover { background: var(--side-2); }
:root[data-theme="dark"] .st.exp, :root[data-theme="dark"] .exp-when, :root[data-theme="dark"] .info-badge.exp-b { background: #2A2238; color: #C9B3F0; }
@media (min-width: 981px) { .app.side-off .side .nav-label { border-top-color: var(--side-line); } }

.tema { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 12px; border: 0; background: var(--side-2); color: var(--side-ink); cursor: pointer; text-align: left; font: inherit; }
.tema:hover { filter: brightness(1.08); }
.tema-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: #171A1C; flex: none; }
.tema-ico .ico { width: 16px; height: 16px; }
.tema .lua { display: none; }
:root[data-theme="dark"] .tema .sol { display: none; }
:root[data-theme="dark"] .tema .lua { display: block; }
.tema-txt { flex: 1; font-size: 13.5px; font-weight: 600; }
.chave { width: 38px; height: 22px; border-radius: 999px; background: var(--side-muted); position: relative; flex: none; transition: background .2s; }
.chave i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #FFFFFF; transition: transform .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.tema[aria-checked="true"] .chave { background: var(--gold); }
.tema[aria-checked="true"] .chave i { transform: translateX(16px); }
@media (min-width: 981px) { .app.side-off .tema { justify-content: center; padding: 8px 0; background: transparent; } }

/* filetes do modo escuro mais visíveis: contorno dos cards um pouco mais firme */
:root[data-theme="dark"] .card, :root[data-theme="dark"] .kpi, :root[data-theme="dark"] .table-wrap { border-width: 1.5px; }
:root[data-theme="dark"] .lane .empty-seat { border-color: #546168; }

/* v23: no popup do horário, a situação das vagas pulsa; e quem já pode fazer check-in e não fez também */
.chip.status-vaga { font-size: 13.5px; padding: 5px 13px; font-weight: 800; animation: vagaPulso 1.6s ease-in-out infinite; }
.chip.status-vaga.ok { --pc: 46, 133, 88; }
.chip.status-vaga.gold { --pc: 227, 154, 16; }
@keyframes vagaPulso { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--pc), .45); transform: scale(1); } 50% { box-shadow: 0 0 0 8px rgba(var(--pc), 0); transform: scale(1.05); } }
.st.aguarda { border-color: var(--gold); animation: aguardaPulso 1.3s ease-in-out infinite; }
@keyframes aguardaPulso { 0%, 100% { box-shadow: 0 0 0 0 rgba(95, 163, 148, .5); background: var(--surface); } 50% { box-shadow: 0 0 0 6px rgba(95, 163, 148, 0); background: var(--gold-soft); } }
.aguarda-nota { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; color: var(--gold-ink); }
.aguarda-nota .demo { width: 26px; height: 18px; padding: 0; flex: none; }
.exp-foco { margin-bottom: 16px; }

/* v25: grade semanal do professor recolhida; cada card expande e recolhe a sua */
.pg-box { border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 12px; }
.pg-box.open { padding-bottom: 12px; padding-right: 12px; }
.pg-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pg-top .eyebrow { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-tog { flex: none; gap: 4px; }
.pg-tog .ico { width: 16px; height: 16px; transition: transform .2s; }
.pg-box.open .pg-tog .ico { transform: rotate(180deg); }
.pg-box.open .pgrid { margin-top: 8px; animation: finIn .25s ease-out; }
.profs { align-items: start; }
.prof-card { grid-template-columns: minmax(0, 1fr); }
.prof-card > * { min-width: 0; }
.prof-cover { height: 104px; }
.stats3 > * { min-width: 0; }
.stats3 small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* v26: colunas secundárias da lista de alunos recolhidas (abre e fecha tocando no título) */
.t th.col-off, .t td.col-off { width: 1%; padding-inline: 6px; background-color: color-mix(in srgb, var(--surface-2) 70%, var(--line)); cursor: pointer; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.t tbody tr.click:hover td.col-off { background-color: var(--gold-soft); }
.col-btn { display: inline-flex; align-items: center; gap: 3px; border: 0; background: none; padding: 3px 6px; border-radius: 999px; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; white-space: nowrap; }
.col-btn .ico { width: 13px; height: 13px; flex: none; }
.col-off .col-btn { background: var(--surface); border: 1px solid var(--line); font-size: 10.5px; color: var(--gold-ink); padding: 3px 5px 3px 7px; }
.col-btn:hover { color: var(--gold-ink); }

/* v27: o card do professor recolhe agenda, receita e botões; botão Expandir/Recolher de verdade */
.pg-box { padding: 8px 8px 8px 14px; }
.pg-box.open { padding: 8px 14px 14px; }
.pg-tog { border: 1px solid var(--line); background: var(--surface); gap: 5px; padding: 0 10px 0 12px; }
.pg-tog:hover { border-color: var(--gold); color: var(--gold-ink); }
.pg-box.open .pg-tog .ico { transform: none; }
.pg-body { display: grid; gap: 14px; margin-top: 10px; animation: finIn .25s ease-out; }
.pg-body .pgrid { margin-top: 0; }

/* v28: colunas recolhidas só com o ícone (metade da largura) e vencimento só com o dia */
.t th.col-off, .t td.col-off { padding-inline: 2px; width: 30px; min-width: 30px; text-align: center; }
.col-off .col-btn.ico-only { padding: 4px; border-radius: 50%; width: 24px; height: 24px; justify-content: center; }
.col-off .col-btn.ico-only .ico { width: 13px; height: 13px; }
.t th.venc-th, .t td.venc-td { text-align: center; padding-inline: 8px; }
.t td.venc-td { font-weight: 700; }

/* ===== Financeiro (17/11): Todos / Entradas / Saídas ===== */
.fin-tabs { display: flex; justify-content: center; gap: 4px; width: fit-content; max-width: 100%; margin: 0 auto 20px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 1px 2px rgba(20, 26, 30, .04); }
.fin-tab { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 104px; border: 0; background: none; padding: 6px 18px; border-radius: 999px; font: inherit; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.fin-tab:hover { background: var(--surface-2); color: var(--ink); }
.fin-tab .ft-l { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; }
.fin-tab .ft-v { font-family: var(--font-display); font-size: 16px; letter-spacing: -.02em; }
.fin-tab.on { background: var(--ink); color: var(--surface); box-shadow: 0 2px 6px rgba(20, 26, 30, .18); }
.fin-tab.in.on { background: var(--ok); }
.fin-tab.out.on { background: var(--bad); }
.fin-tab.on .ft-dot { background: var(--surface); }
.ft-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.ft-dot.in { background: var(--ok); } .ft-dot.out { background: var(--bad); }
/* cores das partes */
.s-ok { background: var(--ok); } .s-ok2 { background: color-mix(in srgb, var(--ok) 38%, var(--surface)); } .s-bad { background: var(--bad); }
.s-rep { background: var(--info); } .s-fix { background: var(--bad); } .s-var { background: var(--warn); }
/* resumo do mês */
.fin-hero { display: flex; flex-direction: column; gap: 14px; }
.fh-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fh-res { font-family: var(--font-display); font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin-top: 4px; }
.fh-res.pos { color: var(--ok); } .fh-res.neg { color: var(--bad); }
.fh-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.fh-rows { display: grid; gap: 10px; }
.fh-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; text-align: left; font: inherit; color: inherit; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.fh-row:hover { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.fh-lbl { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.fh-row > b { font-family: var(--font-display); font-size: 19px; letter-spacing: -.02em; }
.fh-bar { grid-column: 1 / -1; display: flex; height: 12px; width: var(--w); min-width: 12px; border-radius: 99px; overflow: hidden; background: var(--surface-2); }
.fh-bar i { display: block; height: 100%; }
.fh-leg { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
.fh-leg span { display: inline-flex; align-items: center; gap: 6px; }
.fh-leg i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.kpi.res { border-style: dashed; }
.fin-top.fin-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.prox-sub { display: block; color: var(--muted); font-size: 11.5px; font-weight: 500; }
/* para onde vai o dinheiro */
.out-list { display: grid; }
.out-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(60px, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.out-row:first-child { border-top: 0; }
.or-n b { display: block; font-size: 14px; font-weight: 600; }
.or-n small { color: var(--muted); font-size: 12px; }
.or-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.or-bar i { display: block; height: 100%; border-radius: 99px; }
.or-v { text-align: right; font-weight: 700; font-size: 14px; min-width: 84px; }
.or-v small { display: block; color: var(--muted); font-weight: 500; font-size: 11.5px; }
.out-tot { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; margin-top: 4px; border-top: 2px solid var(--ink); font-weight: 700; }
.out-tot b { font-size: 17px; }
.rcv { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); display: grid; gap: 8px; }
.rcv-bar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.rcv-bar i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.rcv-t { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
@media (max-width: 1100px) { .fin-top.fin-even { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .fin-tabs { width: 100%; }
  .fin-tab { flex: 1; min-width: 0; padding: 7px 10px; }
  .fin-tab .ft-v { font-size: 14px; }
  .fh-res { font-size: 32px; }
  .out-row { grid-template-columns: minmax(0, 1fr) auto; }
  .or-bar { grid-column: 1 / -1; order: 3; }
}

/* ===== Despesas fixas: liga/desliga, impostos, incluir ===== */
.desp-list { display: grid; }
.desp-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 30px; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.desp-row:first-child { border-top: 0; }
.desp-n b { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; }
.desp-n small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
.desp-row .money { height: 36px; padding: 0 12px; }
.desp-row .money input { width: 56px; }
.money.pct input { width: 40px; }
.desp-row.off .desp-n b { color: var(--faint); text-decoration: line-through; }
.desp-row.off .money { opacity: .45; }
.desp-x { width: 30px; height: 30px; }
.sw { width: 36px; height: 21px; flex: none; border: 0; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; padding: 0; transition: background .2s; }
.sw i { position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s; }
.sw.on { background: var(--ok); }
.sw.on i { transform: translateX(15px); }
.desp-add { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding-top: 10px; border-top: 1px dashed var(--line); }
.desp-add .input { min-height: 36px; height: 36px; padding: 6px 12px; font-size: 13.5px; border-radius: 999px; }
.desp-add .money { height: 36px; padding: 0 12px; }
.desp-add .money input { width: 52px; }
.desp-tot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); font-size: 13.5px; }
.desp-tot b { font-size: 16px; } .desp-tot small { font-size: 12px; color: var(--muted); font-weight: 500; }
@media (max-width: 1400px) { .desp-add { grid-template-columns: minmax(0, 1fr) auto; } .desp-add .btn { grid-column: 1 / -1; justify-self: start; } }

/* ===== Outros custos: fixos e variáveis ===== */
.cst { display: grid; gap: 16px; }
.cst-g { display: grid; }
.cst-gh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 6px; border-bottom: 1.5px solid var(--ink); margin-bottom: 2px; }
.cst-gt { font-size: 13px; font-weight: 700; }
.cst-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 28px; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.cst-gh + .cst-row { border-top: 0; }
.cst-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); }
.cst-ic .ico { width: 17px; height: 17px; }
.cst-main { min-width: 0; display: grid; gap: 3px; }
.cst-main b { font-size: 14px; font-weight: 600; line-height: 1.25; }
.cst-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 12px; color: var(--muted); }
.cst-cat { padding: 1px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; font-size: 11px; }
.cst-prog { display: flex; gap: 3px; margin-top: 2px; }
.cst-prog i { flex: 1; max-width: 26px; height: 5px; border-radius: 99px; background: var(--line); }
.cst-prog i.ok { background: var(--warn); }
.cst-val { text-align: right; white-space: nowrap; }
.cst-val b { display: block; font-size: 14.5px; }
.cst-val small { color: var(--muted); font-size: 11.5px; }
.cst-x { width: 28px; height: 28px; }
.cst-row.fim { opacity: .55; }
.cst-row.fut .cst-ic { background: var(--info-soft); color: var(--info); }
.cst-empty { font-size: 13.5px; color: var(--muted); padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; }
.cfg-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 980px) { .cfg-pair { grid-template-columns: minmax(0, 1fr); } }
.cfg .cfg-span2 { grid-column: span 2; }
@media (max-width: 1100px) { .cfg .cfg-span2 { grid-column: span 1; } }

/* Cards do Início: botões que abrem o detalhe */
.kpis-home .kpi.click { text-align: left; font: inherit; color: inherit; width: 100%; }
.kpis-home .kpi.click:active { transform: scale(.985); }
.kd { width: min(560px, calc(100vw - 32px)); max-height: min(86vh, 760px); overflow-y: auto; }
.kd-lead { margin: -4px 0 0; font-size: 14px; }
.kd-g { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: var(--surface); }
.kd-gh { display: flex; align-items: center; gap: 10px; padding: 6px 8px 8px; font-size: 13.5px; }
.kd-gh .muted { font-size: 12.5px; }
.kd-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; min-width: 40px; }
.kd-bar i { display: block; height: 100%; background: var(--gold); border-radius: inherit; }
.kd-p { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; text-align: left; font: inherit; color: inherit; width: 100%; background: none; border: 0; }
button.kd-p, .kd-pb { cursor: pointer; }
button.kd-p:hover, .kd-pb:hover { background: var(--surface-2); }
.kd-pb { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; font: inherit; color: inherit; text-align: left; background: none; border: 0; padding: 0; border-radius: 9px; }
.kd-p .grow, .kd-pb .grow { flex: 1; min-width: 0; display: grid; }
.kd-p small { color: var(--muted); font-size: 12.5px; }
.kd-p b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.kd-v { flex: none; font-size: 14px; }
.kd-p .icon-btn { width: 32px; height: 32px; flex: none; }
.kd-vazio { padding: 8px 10px 10px; color: var(--muted); font-size: 13.5px; }
.kd > .btn { justify-self: start; }

/* Curtidas do professor (coração no app do aluno) */
.prof-likes { margin-left: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 700; flex: none; }
.prof-likes svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.prof-likes.on { color: #E0245E; border-color: rgba(224, 36, 94, .3); background: rgba(224, 36, 94, .07); }
.prof-likes.on svg { fill: currentColor; }
/* Pedido de remarcação esperando resposta */
.pc-wait { display: block; margin-top: 4px; color: var(--gold-ink); font-size: 12px; }

/* Formas de pagamento em ícones */
.pg-opts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.pg-opts button { display: grid; justify-items: center; gap: 4px; padding: 9px 2px 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s, border-color .2s, box-shadow .2s; min-width: 0; }
.pg-opts button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pg-opts button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pg-opts button:hover { border-color: var(--faint); color: var(--ink); }
.pg-opts button.on { background: var(--ink); border-color: var(--ink); color: var(--surface); box-shadow: 0 3px 10px rgba(20, 26, 30, .16); }
.pg-opts button.on svg { stroke: var(--gold); }

/* Valor diferenciado: o campo abre ao lado do botão, sem redesenhar a janela */
.vd { display: grid; margin-top: 4px; }
.vd-linha { display: flex; align-items: center; gap: 8px; min-width: 0; }
.vd .valor-dif { margin-top: 0; flex: none; }
.vd-val { display: flex; align-items: center; gap: 4px; height: 34px; padding: 0 10px; border: 1px solid var(--gold); border-radius: 999px; background: var(--surface); min-width: 0;
  max-width: 0; opacity: 0; padding-inline: 0; border-width: 0; overflow: hidden; transform: translateX(-8px);
  transition: max-width .4s cubic-bezier(.3, 1.2, .4, 1), opacity .2s, transform .4s cubic-bezier(.3, 1.3, .4, 1), padding .3s, border-width .1s; }
.vd.on .vd-val { max-width: 170px; opacity: 1; padding-inline: 12px; border-width: 1px; transform: none; }
.vd-val span, .vd-val small { color: var(--muted); font-size: 13px; font-weight: 600; flex: none; }
.vd-val input { border: 0; background: none; font: inherit; font-weight: 800; font-size: 15px; color: var(--ink); width: 72px; min-width: 0; padding: 0; outline: none; -moz-appearance: textfield; }
.vd-val input::-webkit-outer-spin-button, .vd-val input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.vd-val:focus-within { box-shadow: 0 0 0 3px var(--gold-soft); }
.vd-mais { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.3, .9, .25, 1); }
.vd-mais > div { min-height: 0; overflow: hidden; display: grid; gap: 4px; opacity: 0; transition: opacity .25s; }
.vd.on .vd-mais { grid-template-rows: 1fr; }
.vd.on .vd-mais > div { opacity: 1; transition-delay: .08s; padding-top: 8px; }
.vd-mais .input { height: 38px; font-size: 13.5px; }

/* Redesenhar a mesma janela não repete a entrada */
.layer-fixa .scrim, .layer-fixa .modal, .layer-fixa .drawer, .layer-fixa .drawer-scrim { animation: none !important; }

/* Novo aluno: janela compacta */
.modal.fa { width: min(940px, 100%); gap: 14px; padding: 20px 22px 0; position: relative; max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; }
.scrim:has(> .modal.fa) { padding-block: 24px; }
.fa .input { height: 40px; }
.fa textarea.input { height: auto; min-height: 58px; }
.fa .field { gap: 5px; }
.fa-top { display: grid; grid-template-columns: auto minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; }
.fa-foto { display: grid; justify-items: center; gap: 3px; grid-row: span 1; }
.fa-foto .muted { font-size: 11.5px; }
.fa .photo-pick { width: 64px; height: 64px; position: relative; overflow: visible; }
.fa .photo-pick img { border-radius: 50%; }
.fa .photo-pick.tem { border: 0; }
.fa .photo-pick .ico { width: 22px; height: 22px; }
.pp-badge { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--surface); box-shadow: 0 0 0 2px var(--surface); transition: transform .2s; }
.pp-badge .ico { width: 12px !important; height: 12px !important; }
.photo-pick:hover .pp-badge { transform: scale(1.12); }
.pp-acts { display: flex; gap: 8px; }
.lnk { border: 0; background: none; padding: 0; font: inherit; font-size: 11.5px; font-weight: 700; color: var(--gold-ink); cursor: pointer; }
.lnk.muted { color: var(--muted); font-weight: 600; }
.lnk:hover { text-decoration: underline; }
.fa-g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.fa-g3 .fa-vd { grid-column: 2 / -1; margin-top: -4px; }
.fa-g2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 12px; align-items: start; }
.fa .pg-opts button { grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 5px; padding: 0 4px; height: 40px; }
.fa .pg-opts button svg { width: 17px; height: 17px; }
.fa-g4 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.fa-falta { color: var(--gold-ink); font-weight: 700; }
.fa-ok { color: var(--ok); font-weight: 700; }
/* horários: um dia por coluna */
.pick-grid.cols { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; }
.pick-grid.cols .pick-day { grid-template-columns: minmax(0, 1fr); gap: 5px; align-content: start; }
.pick-grid.cols .pick-day b { text-align: center; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pick-grid.cols .pick-hours { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.pick-grid.cols .pick-hours button { grid-template-columns: auto auto; justify-content: space-between; align-items: baseline; min-height: 32px; padding: 4px 9px; font-size: 13px; border-radius: 8px; }
.pick-grid.cols .pick-hours button small { font-size: 10.5px; }
.fa-f { position: sticky; bottom: 0; z-index: 2; margin: 0 -22px; padding: 12px 22px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(6px); border-top: 1px solid var(--line); border-radius: 0 0 18px 18px; }
@media (max-width: 860px) {
  .fa-top { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); }
  .fa-top .fa-nome { grid-column: 2 / -1; }
  .fa-top .fa-foto { grid-row: span 2; align-self: center; }
  .pick-grid.cols .pick-hours button { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 4px 2px; }
}
@media (max-width: 640px) {
  .modal.fa { padding: 18px 16px 0; }
  .fa-f { margin: 0 -16px; padding: 12px 16px; }
  .fa-top { grid-template-columns: 76px minmax(0, 1fr) minmax(0, 2fr); grid-template-areas: "foto nome nome" "nasc nasc wa"; }
  .fa-top .fa-foto { grid-area: foto; align-self: end; } .fa-top .fa-nome { grid-area: nome; }
  .fa-top > .field:nth-child(3) { grid-area: nasc; } .fa-top > .field:nth-child(4) { grid-area: wa; }
  .fa-g3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fa-g3 > .field:nth-child(3), .fa-g3 .fa-vd { grid-column: 1 / -1; margin-top: 0; }
  .fa-g2 { grid-template-columns: minmax(0, 1fr); }
  .fa-g4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fa-g4 .fa-obj { grid-column: 1 / -1; }
  .fa .input { font-size: 15px; padding-inline: 11px; }
  .pick-grid.cols { gap: 4px; }
  .pick-grid.cols .pick-hours button { font-size: 12px; min-height: 38px; }
  .pick-grid.cols .pick-hours button small { font-size: 9px; }
  .fa .pg-opts button { grid-template-columns: 1fr; justify-items: center; height: 50px; gap: 2px; }
}
/* enquadrar foto */
.crop-ov { position: fixed; inset: 0; z-index: 80; background: rgba(8, 11, 13, .45); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .18s; }
.crop-box { display: grid; justify-items: center; gap: 10px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); animation: up .22s ease-out; }
.crop-box > b { font-size: 16px; }
.crop-box > small { max-width: 260px; font-size: 12px; }
.crop-stage { width: var(--s); height: var(--s); position: relative; overflow: hidden; border-radius: 14px; background: #111; cursor: grab; touch-action: none; user-select: none; }
.crop-stage.arr { cursor: grabbing; }
.crop-stage img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.crop-mask { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(0, 0, 0, .5); border: 2px solid rgba(255, 255, 255, .85); pointer-events: none; }
.crop-zoom { display: flex; align-items: center; gap: 8px; width: 248px; color: var(--muted); }
.crop-zoom .ico { width: 16px; height: 16px; flex: none; }
.crop-zoom input { flex: 1; accent-color: var(--gold); }

/* Financeiro: seletor na linha do título, alinhado à base do subtítulo */
.topbar.fin-bar { align-items: flex-end; }
.topbar.fin-bar .fin-tabs { margin: 0; }
/* pares de cards com a mesma altura */
.fin-top.fin-pair { align-items: stretch; }
.fin-top.fin-pair > .card { display: flex; flex-direction: column; }
.fin-top.fin-pair > .card > .count-note:last-child, .fin-top.fin-pair > .card > .out-tot:last-child, .fin-top.fin-pair > .card > .rcv:last-child { margin-top: auto; }
.fin-top.fin-pair > .fin-hero > .count-note:last-child { padding-top: 4px; }
@media (max-width: 640px) {
  .topbar.fin-bar .fin-tabs { width: 100%; }
}
/* números do topo do Financeiro ocupam a linha toda (4 ou 5) */
.kpis.fin-kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
/* Saídas: lista longa à esquerda, cards menores empilhados à direita */
.fin-top.fin-cols { align-items: start; }
.fin-stack { display: grid; gap: 16px; min-width: 0; }
.fin-stack > .card { min-width: 0; overflow: hidden; }
@media (max-width: 640px) { .kpis.fin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 640px) {
  .fin-kpis .kpi:last-child:nth-child(even) { grid-column: auto; }
  .fin-graf .card-h { flex-wrap: wrap; gap: 8px; }
  .fin-graf .card-h h2 { overflow: visible; white-space: normal; }
}

/* Financeiro: navegador de meses (no lugar do subtítulo) */
.mes-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.mes-nav .mn-seta { width: 34px; height: 34px; border: 1px solid var(--line); background: var(--surface); }
.mes-nav .mn-seta:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-ink); }
.mes-nav .mn-seta:disabled { opacity: .35; cursor: default; }
.mes-nav .mn-nome { min-width: 168px; text-align: center; font-family: var(--font-display); font-size: 19px; letter-spacing: -.02em; color: var(--ink); }
.mes-nav .chip { margin-left: 6px; }
.mes-nav .lnk { font-size: 13px; margin-left: 6px; }
.topbar.fin-bar .sub { color: inherit; }
/* gráfico: largo e baixo; a coluna do mês escolhido fica destacada */
.fin-graf { margin-bottom: 16px; padding-bottom: 12px; }
.fin-graf .card-h { margin-bottom: 4px; }
.leg-meta { width: 14px !important; height: 0 !important; border-top: 2px dashed var(--ok); border-radius: 0 !important; }
.graf-rec { max-height: 300px; }
.graf-rec text { font-size: 11px; }
.graf-rec .meta-t { fill: var(--ok); font-weight: 700; }
.graf-rec .gbar { cursor: pointer; outline: none; }
.graf-rec .gbar .hit { fill: transparent; transition: fill .18s ease; }
.graf-rec .gbar:hover .hit, .graf-rec .gbar:focus-visible .hit { fill: color-mix(in srgb, var(--gold) 8%, transparent); }
.graf-rec .gbar.sel .hit { fill: color-mix(in srgb, var(--gold) 13%, transparent); stroke: var(--gold); stroke-width: 1.2; }
.graf-rec .gbar.t-passado .b { opacity: .78; }
.graf-rec .gbar.sel .b, .graf-rec .gbar:hover .b { opacity: 1; }
.graf-rec .gbar .v { font-size: 10.5px; font-weight: 700; fill: var(--muted); }
.graf-rec .gbar.sel .v { fill: var(--ink); font-size: 12px; }
.graf-rec .gbar .m { font-size: 11.5px; }
.graf-rec .gbar.sel .m { fill: var(--ink); font-weight: 800; }
.fg-dica { margin: 2px 0 0; text-align: right; }
@media (max-width: 640px) {
  .mes-nav .mn-nome { min-width: 0; flex: 1; font-size: 17px; }
  .mes-nav .chip { margin-left: 0; }
  .fg-dica { text-align: left; }
}
@media (min-width: 521px) and (max-width: 820px) {
  .graf-rec text.v { display: none; }
  .graf-rec .gbar.sel text.v { display: block; }
  .fin-graf .card-h { flex-wrap: wrap; }
}

/* Cantos 100% arredondados: busca, filtros, campos de uma linha e botões de opção */
input.input, select.input, .toolbar .input { border-radius: 999px; padding-inline: 18px; }
.toolbar .search input { padding-left: 44px; }
.toolbar .search .ico { left: 16px; }
select.input { padding-right: 38px; background-position: right 14px center; }
.pick-hours button, .pick-grid.cols .pick-hours button, .pg-opts button, .fa .pg-opts button { border-radius: 999px; }
.vd-mais .input { border-radius: 999px; }
select.input, .toolbar select.input { padding-right: 42px; }

/* logo Pilatech (bem mais larga que alta: ganha mais respiro em cima e embaixo) */
.side .brand { padding-block: 10px 12px; }
.side .brand img { max-width: 176px; }


/* Popups no centro, com o fundo levemente desfocado (todas as janelas, ficha e menus) */
.scrim { background: rgba(8, 11, 13, .32); backdrop-filter: blur(6px) saturate(.9); -webkit-backdrop-filter: blur(6px) saturate(.9); }
.scrim > .modal { margin-block: auto; }
.pop-bg { position: fixed; inset: 0; z-index: 69; background: rgba(8, 11, 13, .18); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .15s; }
.fb-overlay { backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
/* Enviar no app */
.env-para { margin: -6px 0 0; font-size: 14px; }
.env-ops { display: grid; gap: 8px; }
.env-op { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .2s, background .2s; }
.env-op:hover, .env-op:focus-visible { border-color: var(--gold); background: var(--gold-soft); }
.env-op b { display: block; font-weight: 600; }
.env-op small { color: var(--muted); font-size: 13px; }
.env-op > svg { width: 18px; height: 18px; color: var(--faint); flex: none; }
.env-ic { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink, var(--ink)); flex: none; }
.env-ic svg { width: 19px; height: 19px; }
.env-prev { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.env-prev small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.env-prev p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.5; }
.env .opts-row { display: flex; flex-wrap: wrap; gap: 6px; }
.env .opts-row .sug { display: grid; text-align: left; }
.env-aviso { display: block; margin-top: 6px; color: var(--gold-ink, var(--muted)); font-size: 12.5px; }

/* v20: janelas de detalhe dos cards do topo */
.kd-l { display: grid; grid-template-columns: minmax(0, 1fr) minmax(60px, 110px) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; width: 100%; border: 0; background: none; text-align: left; color: inherit; font: inherit; }
button.kd-l:hover { background: var(--surface-2); }
.kd-l .grow { min-width: 0; }
.kd-l .grow b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kd-l .grow small { display: block; color: var(--muted); font-size: 12.5px; }
.kd-l > .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.kd-lb { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.kd-lb i { display: block; height: 100%; border-radius: 99px; background: var(--bad); }
.kd-lb i.rep { background: var(--info); } .kd-lb i.ok { background: var(--ok); } .kd-lb i.var { background: var(--gold); }
.kd-tot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-weight: 600; }
.kd-tot b { font-size: 17px; } .kd-tot.pos b { color: var(--ok); } .kd-tot.neg b { color: var(--bad); }
.kpi.click.res { cursor: pointer; }
.stat-btn.on { border-color: var(--gold); background: var(--gold-soft); }
.reg-list { margin-top: 10px; display: grid; gap: 2px; }
@media (max-width: 520px) { .kd-l { grid-template-columns: minmax(0, 1fr) auto; } .kd-lb { display: none; } }

/* v21: tabela de contratos (Configurações) */
.tab-ct { display: grid; grid-template-columns: minmax(0, 1fr) minmax(110px, 150px) minmax(110px, 150px); gap: 8px 12px; align-items: center; }
.tab-ct > b { font-size: 12.5px; color: var(--muted); font-weight: 600; text-align: right; }
.tab-ct-l b { display: block; font-weight: 600; } .tab-ct-l small { color: var(--muted); font-size: 12.5px; }
.tab-ct .money { justify-self: end; }
@media (max-width: 520px) { .tab-ct { grid-template-columns: minmax(0, 1fr) 96px 96px; gap: 8px; } .tab-ct-l small { display: none; } }
.fa-g3 .fa-vd { grid-column: 3 / -1; margin-top: 0; align-self: end; }
.fa-g3 .fa-vd .vd-linha { flex-wrap: wrap; }
@media (max-width: 640px) { .fa-g3 > .field:nth-child(3) { grid-column: auto; } .fa-g3 > .field:nth-child(1), .fa-g3 .fa-vd { grid-column: 1 / -1; } }

/* v22: cadastro do aluno em cascata (1 dados · 2 pagamento · 3 aulas) */
.fa-cascata { gap: 10px; }
.fa-sec { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: border-color .3s, box-shadow .3s; }
.fa-sec.on { border-color: var(--gold); box-shadow: 0 6px 22px rgba(20, 26, 30, .07); }
.fa-sh { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; background: none; text-align: left; color: inherit; font: inherit; cursor: pointer; border-radius: 18px; }
.fa-sh:hover { background: var(--surface-2); }
.fa-sec.on .fa-sh:hover { background: none; }
.fa-sh .grow { min-width: 0; }
.fa-sh b { display: block; font-weight: 700; font-size: 15px; }
.fa-res { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .25s; }
.fa-sec.on .fa-res { opacity: 0; height: 0; }
.fa-num { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--surface-2); color: var(--muted); transition: background .3s, color .3s; }
.fa-sec.on .fa-num { background: var(--ink); color: var(--surface); }
.fa-num.ok { background: var(--ok); color: #fff; }
.fa-num .ico { width: 16px; height: 16px; }
.fa-chev { flex: none; color: var(--muted); display: grid; transition: transform .45s cubic-bezier(.215, .61, .355, 1); }
.fa-sec.on .fa-chev { transform: rotate(180deg); }
.fa-sb { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.215, .61, .355, 1); }
.fa-sec.on .fa-sb { grid-template-rows: 1fr; }
.fa-sbi { min-height: 0; overflow: hidden; display: grid; gap: 12px; padding: 0 14px; opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .5s cubic-bezier(.215, .61, .355, 1), padding .5s; }
.fa-sec.on .fa-sbi { opacity: 1; transform: none; padding: 2px 14px 16px; transition-delay: .08s; overflow: visible; }
.fa-g4b { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
.fa-pag { align-items: end; }
.fa-pag .fa-vd { grid-column: auto; }
.fa-profs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.fa-prof { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .2s, background .2s; }
.fa-prof:hover { border-color: var(--faint); }
.fa-prof.on { border-color: var(--gold); background: var(--gold-soft); }
.fa-prof .grow { min-width: 0; } .fa-prof b { display: block; } .fa-prof small { color: var(--muted); font-size: 12px; }
@media (max-width: 640px) { .fa-g4b { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .fa-g4b .fa-obj { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { .fa-sb, .fa-sbi, .fa-chev { transition: none; } }

/* v22: Configurações por assunto, com o seletor deslizante do Financeiro */
.cfg2 { display: grid; gap: 16px; }
.cfg-navw { display: flex; justify-content: center; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 2px 4px 4px; }
.cfg-navw::-webkit-scrollbar { display: none; }
.cfg-tabs { margin: 0; flex: none; position: relative; }
.cfg-tabs .fin-tab { min-width: 0; padding: 7px 16px; }
.cfg-tabs .ft-l { font-size: 14px; }
.cfg-tabs .ico { width: 16px; height: 16px; }
.cfg-main { display: grid; gap: 16px; min-width: 0; }
.cfg-pane { display: grid; gap: 14px; }
.cfg-pane[hidden] { display: none; }
/* Assuntos da mesma aba (ex.: Sala › Horários › Feriados): um embaixo do outro, com uma linha separando */
.cfg-pane:not([hidden]) ~ .cfg-pane:not([hidden]) { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.cfg-ph h2 { margin: 0; font-size: 20px; }
.cfg-ph p { margin: 2px 0 0; font-size: 13.5px; max-width: 70ch; }
.cfg-b { display: grid; gap: 4px; align-content: start; }
.cfg-bh { display: grid; gap: 1px; padding-bottom: 6px; margin-bottom: 2px; border-bottom: 1px solid var(--line); }
.cfg-bh b { font-size: 15px; } .cfg-bh small { color: var(--muted); font-size: 12.5px; }
.cfg-dupla { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.cfg-b .cap-sum { margin: 8px 0 4px; }
.cfg-lista { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; color: var(--ink); }
.cfg-save { display: flex; align-items: center; justify-content: flex-end; gap: 14px; position: sticky; bottom: 12px; z-index: 5; padding: 10px 10px 10px 18px; margin-left: auto; width: fit-content; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 8px 26px rgba(20, 26, 30, .12); }
.cfg-save .muted { font-size: 13px; }
.cfg-b .cfg-row:last-child { border-bottom: 0; }
@media (max-width: 900px) { .cfg-dupla { grid-template-columns: minmax(0, 1fr); } .cfg-navw { justify-content: flex-start; } }
@media (max-width: 640px) { .cfg-tabs .fin-tab { flex: none; padding: 7px 12px; } .cfg-save .muted { display: none; } .cfg-save { left: 0; right: 0; width: auto; justify-content: stretch; } .cfg-save .btn { flex: 1; } }
.cfg-bh + .cfg-row, .cfg-bh + input + .cfg-row { border-top: 0; }
.cfg-dupla { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.cfg-b { min-width: 0; }
.cfg-b .copy-box { min-width: 0; }
.cfg-b .copy-box code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1280px) { .cfg-tabs .fin-tab { padding: 7px 11px; } .cfg-tabs .ft-l { gap: 6px; font-size: 13.5px; } }
@media (max-width: 1100px) { .cfg-tabs .ft-l .ico { display: none; } }
.fa-sh .grow { flex: 1; }

/* v23: card de professora sem capa, só a foto */
.prof-card { padding-top: 18px; }
.prof-card .prof-top { margin-top: 0; align-items: center; gap: 14px; }
.prof-card .prof-top .avatar { width: 72px; height: 72px; font-size: 22px; border: 0; }

/* Grade de professores que se ajusta à quantidade: 12 colunas, cada card ocupa 12 ÷ colunas (--sp, calculado no erp.js).
   1 → meia largura · 2 → 2 · 3 → 3 · 4 → 2×2 · 5 ou mais → 3 por linha; os da última linha incompleta se esticam para fechá-la.
   Entre 701 e 860 px: 2 por linha (--sp-m). Até 700 px: um embaixo do outro. */
.profs { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.profs > .prof-card { grid-column: span var(--sp, 12); }
@media (max-width: 860px) { .profs > .prof-card { grid-column: span var(--sp-m, 12); } }
@media (max-width: 700px) { .profs > .prof-card { grid-column: span 12; } }
.prof-card .stats3 small { white-space: normal; overflow: visible; line-height: 1.3; }
.prof-card .stat-btn { align-content: start; text-align: left; }

/* v23: novo aluno com seletor de 3 etapas no topo (mesmo seletor do Financeiro) */
.fa-tabs { margin: 0 auto 4px; flex: none; }
.fa-tab { min-width: 0; padding: 7px 18px 7px 8px; gap: 8px; }
.fa-tn { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12.5px; background: var(--surface-2); color: var(--muted); transition: background .25s, color .25s; }
.fa-tn .ico { width: 14px; height: 14px; }
.fa-tab.ok .fa-tn { background: var(--ok); color: #fff; }
.fa-tab.on .fa-tn { background: var(--surface); color: var(--ink); }
.fa-cascata .fa-sh { display: none; }
.fa-cascata .fa-sec { border: 0; box-shadow: none; background: none; }
.fa-cascata .fa-sec:not(.on) { display: none; }
.fa-cascata .fa-sec.on .fa-sbi { padding: 2px 2px 4px; transform: none; }
.fa-cascata .fa-sb { transition: none; }
.fa-sec.fa-in .fa-sbi { animation: faIn .45s cubic-bezier(.215, .61, .355, 1); }
@keyframes faIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .fa-tabs { width: 100%; } .fa-tab { flex: 1; padding: 6px 8px 6px 6px; } .fa-tab .ft-l { font-size: 13px; } }
@media (max-width: 420px) { .fa-tab .ft-l { font-size: 12px; } .fa-tn { width: 20px; height: 20px; font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .fa-sec.fa-in .fa-sbi { animation: none; } }
.ja-aluno { margin-top: 0; min-height: 44px; padding: 8px 14px 8px 10px; font-size: 14px; justify-self: stretch; width: 100%; }
.fa-ts { display: none; }
@media (max-width: 640px) { .fa-tl { display: none; } .fa-ts { display: inline; } }
.ja-aluno { white-space: nowrap; }
@media (max-width: 640px) { .fa-tab { flex: 1 1 auto; padding: 6px 10px 6px 6px; } }

/* v23: as 3 etapas ocupam o mesmo espaço → a janela não muda de tamanho ao trocar de etapa */
.fa-corpo { display: grid; }
.fa-corpo > .fa-sec { grid-area: 1 / 1; min-width: 0; }
.fa-cascata .fa-corpo > .fa-sec:not(.on) { display: block; visibility: hidden; pointer-events: none; }
.fa-cascata .fa-corpo > .fa-sec:not(.on) .fa-sb { grid-template-rows: 1fr; }
.fa-cascata .fa-corpo > .fa-sec:not(.on) .fa-sbi { opacity: 0; padding: 2px 2px 4px; }
@media (max-width: 640px) {
  .fa-f { flex-wrap: nowrap; gap: 8px; }
  .fa-f .btn { white-space: nowrap; padding-inline: 14px; }
  .fa-bl { display: none; }
}

/* v23: janela do horário — professora em destaque */
.lane-m { display: grid; gap: 12px; }
.lane-prof { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: 18px; background: color-mix(in srgb, var(--pc) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--pc) 30%, transparent); }
.lane-prof .avatar { width: 52px; height: 52px; font-size: 18px; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--pc); }
.lane-prof .grow { flex: 1; min-width: 0; display: grid; gap: 1px; }
.lane-prof small { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pc); }
.lane-prof b { font-family: var(--font-display); font-size: 21px; letter-spacing: -.02em; line-height: 1.15; }
.lane-prof span { font-size: 13px; color: var(--muted); }
.lane-cnt { flex: none; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lane-cnt b { font-family: var(--font-display); font-size: 24px; color: var(--ink); }
.lane-al { gap: 8px; }
.aguarda-nota { font-weight: 700; }
.fa-orig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; }
@media (max-width: 640px) { .fa-orig { grid-template-columns: minmax(0, 1fr); } }

/* v23: forma de pagamento ocupa a linha toda, 5 botões iguais; valor diferenciado embaixo */
.fa .fa-pag { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.fa .fa-pag .pg-opts { gap: 8px; }
.fa .fa-pag .pg-opts button { height: 44px; gap: 7px; font-size: 13px; padding: 0 8px; }
.fa .fa-pag .pg-opts button svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .fa .fa-pag .pg-opts { gap: 5px; } .fa .fa-pag .pg-opts button { height: 54px; gap: 3px; font-size: 11.5px; padding: 0 2px; } }

/* v23: revisão da tela Professores */
.prof-card .prof-top .avatar, .prof-card .prof-top img.avatar { width: 72px !important; height: 72px !important; border: 0; box-sizing: border-box; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--pc, currentColor) !important; flex: none; }
.prof-card .prof-top span.avatar { font-size: 26px !important; }
.prof-card .prof-top { min-height: 82px; padding-left: 5px; }
.prof-card .prof-top h3 { font-size: 20px; }
.prof-card .stats3 { gap: 8px; }
.prof-card .stat-btn { position: relative; padding: 12px 22px 12px 12px; min-height: 76px; display: grid; align-content: space-between; gap: 6px; }
.prof-card .stat-btn b { font-size: 22px; line-height: 1; }
.prof-card .stat-btn small { display: block; font-size: 12px; line-height: 1.3; white-space: normal; }
.prof-card .stat-btn small .ico { position: absolute; top: 12px; right: 8px; width: 14px; height: 14px; color: var(--faint); }
.prof-card .stat-btn:hover small .ico { color: var(--gold-ink); }
.prof-card .pg-top .eyebrow { overflow: visible; }
/* legenda "Como ler": as barrinhas não passam por cima do texto */
.legend-grid .pg-c.demo { width: auto; min-width: 40px; padding: 0 6px; }
.legend-grid > span { line-height: 1.35; }

/* v23: Configurações — número digitável no stepper (ex.: repasse 42%) */
.stepper input { width: 44px; cursor: text; }
.stepper:hover input { background: var(--surface-2); border-radius: 6px; }

/* v23: janela "Adicionar custo" */
.custo-sug { display: flex; flex-wrap: wrap; gap: 6px; max-height: none; overflow: visible; }
.custo-sug button { flex: none; height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s; }
.custo-sug button:hover { border-color: var(--gold); background: var(--gold-soft); }
.custo-sug button.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.custo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 14px; }
.custo-grid.var .ct-nome { grid-column: 1 / -1; }
.custo-grid .money { display: flex; width: 100%; height: 44px; padding: 0 14px; gap: 6px; }
.custo-grid .money span { color: var(--muted); font-weight: 600; }
.custo-grid .money input { flex: 1; width: auto; text-align: left; font-size: 15px; }
@media (max-width: 640px) { .custo-grid { grid-template-columns: minmax(0, 1fr); } .custo-sug button { height: 32px; padding: 0 12px; font-size: 12.5px; } }
.lane-g { display: grid; gap: 7px; }
.lane-gh { display: flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lane-gh b { font-weight: 700; }
.lane-gh span { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 800; letter-spacing: 0; background: var(--surface-2); color: var(--ink); }
.lane-g.ok .lane-gh { color: var(--ok); }
.lane-g.ok .lane-gh span { background: var(--ok); color: #fff; }
.lane-g.pend .lane-gh { color: var(--gold-ink); }
.lane-g.pend .lane-gh span { background: var(--gold-soft); color: var(--gold-ink); }
.lane-g.fora .lane-gh { color: var(--bad); }
.lane-g .lane-al { animation: faIn .35s cubic-bezier(.215, .61, .355, 1); }

/* v23: ficha do aluno como janela flutuante no centro (antes: gaveta na lateral direita) */
.drawer-scrim { justify-content: center; align-items: center; padding: 24px 16px; }
.drawer { width: min(680px, 100%); height: auto; max-height: min(88vh, 900px); border-radius: 22px; box-shadow: var(--shadow); padding: 24px 24px 26px; animation: fichaIn .32s cubic-bezier(.215, .61, .355, 1); overscroll-behavior: contain; }
@keyframes fichaIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@media (max-width: 640px) { .drawer-scrim { padding: 12px; } .drawer { max-height: calc(100dvh - 24px); padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0px)); border-radius: 20px; } }
@media (prefers-reduced-motion: reduce) { .drawer { animation: none; } }

/* v23: Novos alunos (captação) */
:root { --c-exp: #C8963E; --c-ind: #5F8A6A; --c-anu: #4F7CAC; --c-out: #A3978A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --c-exp: #D9A94F; --c-ind: #7DAA88; --c-anu: #77A0CC; --c-out: #8F857A; } }
:root[data-theme="dark"] { --c-exp: #D9A94F; --c-ind: #7DAA88; --c-anu: #77A0CC; --c-out: #8F857A; }
.cp { display: grid; gap: 16px; }
.cp-per { margin: 0 auto 0 0; }
.cp-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.cp-ins { display: flex; gap: 14px; align-items: flex-start; background: var(--gold-soft); border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.cp-ins-i { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #171A1C; }
.cp-ins-i .ico { width: 18px; height: 18px; }
.cp-ins ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; line-height: 1.45; }
.cp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.cp-pie { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.rosca { position: relative; width: var(--s); height: var(--s); flex: none; }
.rosca svg { width: 100%; height: 100%; transform: none; }
.rosca circle { transition: stroke-dasharray .6s cubic-bezier(.215, .61, .355, 1); }
.rosca-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.rosca-c b { font-family: var(--font-display); font-size: 34px; line-height: 1; }
.rosca-c small { font-size: 12px; color: var(--muted); }
.cp-leg { flex: 1; min-width: 190px; display: grid; gap: 8px; }
.cp-li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.cp-li i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.cp-li b { font-variant-numeric: tabular-nums; font-size: 15px; }
.cp-li small { width: 28px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.cp-sub { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.cp-sub > div, .cp-ind { display: grid; gap: 7px; }
.cp-ind { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.cp-bar { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13.5px; }
.cp-bar .val { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cp-bar .bar, .cp-prof .bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; display: block; }
.cp-bar .bar i, .cp-prof .bar i { display: block; height: 100%; border-radius: 999px; transition: width .6s cubic-bezier(.215, .61, .355, 1); }
.cp-profs { display: grid; gap: 8px; }
.cp-prof { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.cp-prof:hover { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 7%, var(--surface)); }
.cp-prof .avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--pc) !important; flex: none; }
.cp-prof .grow { flex: 1; min-width: 0; display: grid; gap: 3px; }
.cp-prof small { color: var(--muted); font-size: 12.5px; }
.cp-prof .bar { margin-top: 3px; }
.cp-prof .bar i { background: var(--pc); }
.cp-pct { font-family: var(--font-display); font-size: 24px; min-width: 58px; text-align: right; font-variant-numeric: tabular-nums; }
.cp-cols { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; height: 190px; align-items: end; }
.cp-col { display: grid; grid-template-rows: auto 1fr auto; height: 100%; justify-items: center; gap: 4px; min-width: 0; }
.cp-col > .cp-stack { align-self: end; }
.cp-cv { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cp-stack { width: min(34px, 100%); display: flex; flex-direction: column-reverse; border-radius: 8px; overflow: hidden; min-height: 2px; background: var(--surface-2); transition: height .6s cubic-bezier(.215, .61, .355, 1); }
.cp-stack i { display: block; min-height: 2px; }
.cp-col small { font-size: 11.5px; color: var(--muted); text-transform: capitalize; }
.cp-leg-h { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.cp-leg-h span { display: inline-flex; align-items: center; gap: 6px; }
.cp-leg-h i { width: 10px; height: 10px; border-radius: 3px; }
.cp-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.cp-tag::before { content: ''; width: 9px; height: 9px; border-radius: 3px; background: var(--oc); flex: none; }
@media (max-width: 1180px) { .cp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .cp-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .cp-per { width: 100%; } .cp-pie { justify-content: center; } .rosca { --s: 150px !important; } .cp-cols { height: 150px; gap: 4px; } .cp-pct { font-size: 20px; min-width: 48px; } }
.cp-exl { display: grid; gap: 10px; }
.cp-exr { display: flex; align-items: center; gap: 12px; }
.cp-exr .grow { flex: 1; min-width: 0; display: grid; gap: 3px; }
.cp-exr small { color: var(--muted); font-size: 12.5px; }
.cp-exr .bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; display: block; margin-top: 3px; }
.cp-exr .bar i { display: block; height: 100%; border-radius: 999px; background: var(--gold); }
.cp-pct.sm { font-size: 20px; }

/* v23: Alunos — filtro por preço (tabela / já é aluno / valor diferenciado) */
.al-preco { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: -4px 0 14px; }
.al-preco .eyebrow { margin-right: 4px; }
.al-pb { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.al-pb b { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--surface-2); color: var(--ink); font-size: 12px; }
.al-pb:hover { color: var(--ink); border-color: var(--faint); }
.al-pb.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.al-pb.on b { background: var(--surface); color: var(--ink); }
.al-pb.az.on { background: var(--c-ind); border-color: var(--c-ind); }
.al-pb.dif.on { background: var(--gold); border-color: var(--gold); color: #171A1C; }
.al-preco small { margin-left: 4px; font-size: 12px; }
.tag-az, .tag-dif { display: inline-block; padding: 1px 6px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; vertical-align: 1px; }
.tag-az { background: color-mix(in srgb, var(--c-ind) 16%, transparent); color: var(--c-ind); }
.tag-dif { background: var(--gold-soft); color: var(--gold-ink); }
@media (max-width: 640px) { .al-preco small { display: none; } .al-pb { height: 32px; font-size: 12.5px; } }

/* v23: ficha do aluno redesenhada (blocos com ícones, 2 colunas) */
.drawer.ficha { width: min(940px, 100%); gap: 16px; padding: 0 0 22px; background: var(--bg, var(--surface-2)); }
.fi-h { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 22px 24px 16px; background: var(--surface); border-bottom: 1px solid var(--line); border-radius: 22px 22px 0 0; }
.fi-h::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: 22px 22px 0 0; background: var(--pc); }
.fi-h .avatar { width: 64px; height: 64px; font-size: 22px; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--pc); }
.fi-hn h2 { font-size: 24px; letter-spacing: -.02em; line-height: 1.15; }
.fi-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.fi-chips .tag-az, .fi-chips .tag-dif { font-size: 11.5px; padding: 3px 9px; }
.fi-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.fi-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0 24px; }
.fi-t { display: flex; gap: 10px; align-items: flex-start; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.fi-i { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); }
.fi-i .ico { width: 18px; height: 18px; }
.fi-t.wa .fi-i { background: rgba(37, 211, 102, .14); color: #1F9E52; }
.fi-b { display: grid; gap: 1px; min-width: 0; }
.fi-b small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fi-b b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fi-b em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.fi-b em a { color: #1F9E52; font-weight: 600; text-decoration: none; }
.fi-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px; padding: 0 24px; align-items: start; }
.fi-col { display: grid; gap: 12px; min-width: 0; }
.fi-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: grid; gap: 9px; min-width: 0; }
.fi-ch { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-bottom: 2px; }
.fi-ch .ico { width: 16px; height: 16px; color: var(--gold-ink); }
.fi-ch h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-family: var(--font-body); color: var(--muted); margin: 0; }
.fi-valor { display: flex; align-items: baseline; gap: 4px; }
.fi-valor b { font-family: var(--font-display); font-size: 28px; letter-spacing: -.02em; }
.fi-valor small { color: var(--muted); }
.fi-kv { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; font-size: 13.5px; align-items: baseline; }
.fi-kv > span { color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.fi-kv > b { font-weight: 600; min-width: 0; }
.fi-kv.col { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.fi-kv.col > span { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.fi-kv.alerta { background: var(--gold-soft); border-radius: 12px; padding: 9px 11px; }
.fi-kv.alerta > span { color: var(--gold-ink); }
.fi-kv.alerta .ico { width: 14px; height: 14px; }
.fi-fp { display: inline-flex; align-items: center; gap: 6px; }
.fi-fp svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--gold-ink); }
.fi-prof { display: flex; align-items: center; gap: 10px; }
.fi-prof .avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--pc) !important; }
.fi-prof span { display: grid; }
.fi-prof small { color: var(--muted); font-size: 12px; }
.fi-hrs { display: flex; flex-wrap: wrap; gap: 6px; }
.fi-hrs > span { display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: 13.5px; font-weight: 700; }
.fi-hrs > span b { font-weight: 600; color: var(--muted); font-size: 12.5px; }
.fi-card .pay-row { padding: 8px 0; }
.fi-card .stats3 { margin: 0; }
.fi-fim { padding: 0 24px; }
@media (max-width: 860px) { .fi-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fi-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .drawer.ficha { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .fi-h { padding: 18px 16px 14px; gap: 6px 12px; }
  .fi-h .avatar { width: 52px; height: 52px; font-size: 18px; }
  .fi-hn h2 { font-size: 20px; }
  .fi-tiles, .fi-cols, .fi-fim { padding: 0 14px; }
  .fi-t { padding: 10px; gap: 8px; } .fi-i { width: 30px; height: 30px; }
}
.cp-kpis > * { grid-column: auto !important; }
@media (max-width: 640px) { .fi-b b { white-space: normal; overflow-wrap: anywhere; font-size: 14px; } }
.cp .card-h h2 { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }

/* v24 — ficha: topo com ações à direita, Plano e Aulas sem espaço vazio */
.fi-h { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.fi-h .fi-acts { grid-column: 3; grid-row: 1; justify-content: flex-end; flex-wrap: wrap; max-width: 420px; }
.fi-h .fi-x { grid-column: 4; grid-row: 1; align-self: start; }
.fi-pg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 14px; align-items: stretch; }
.fi-vbox { display: grid; align-content: center; gap: 6px; padding: 14px 16px; border-radius: 16px; background: var(--gold-soft); }
.fi-vbox .fi-valor b { font-size: 30px; }
.fi-vbox .fi-fp { font-size: 13.5px; font-weight: 600; }
.fi-vbox em { font-style: normal; font-size: 12px; color: var(--muted); text-decoration: line-through; }
.fi-kvs { display: grid; gap: 10px; align-content: center; }
.fi-kvs .fi-kv.col > span { font-size: 11px; }
.fi-kvs .fi-kv > b { font-size: 14px; }
.fi-aula { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; }
.fi-aula .fi-hrs { justify-content: flex-end; }
@media (max-width: 760px) {
  .fi-h { grid-template-columns: auto minmax(0, 1fr) auto; }
  .fi-h .fi-acts { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; max-width: none; }
  .fi-h .fi-x { grid-column: 3; }
}
@media (max-width: 480px) {
  .fi-pg { grid-template-columns: minmax(0, 1fr); }
  .fi-aula .fi-hrs { justify-content: flex-start; }
}
.fi-h .fi-acts { max-width: none; flex-wrap: nowrap; }
.fi-pg { grid-template-columns: auto minmax(0, 1fr); }
.fi-vbox { min-width: 170px; }
.fi-vbox .fi-valor { white-space: nowrap; }
.fi-vbox .fi-valor b { font-size: 27px; }
@media (max-width: 760px) { .fi-h .fi-acts { flex-wrap: wrap; } }
@media (max-width: 480px) { .fi-pg { grid-template-columns: minmax(0, 1fr); } }
.cfg-formato .seg { flex-wrap: nowrap; }
.cfg-formato .seg button { white-space: nowrap; }
@media (max-width: 420px) { .cfg-row.cfg-formato { grid-template-columns: minmax(0, 1fr); } }
.rep-ex { display: grid; gap: 2px; }
.rep-l { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.rep-l:first-child { border-top: 0; }
.rep-l .grow { display: grid; min-width: 0; }
.rep-l small { color: var(--muted); font-size: 12.5px; }
.rep-l > .num { font-size: 15px; white-space: nowrap; }

/* v25 — Preços: um cartão por contrato */
.pr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pr-card { border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px 12px; background: var(--surface); display: grid; gap: 12px; min-width: 0; }
.pr-card.mensal { background: var(--surface-2); }
.pr-h { display: flex; align-items: center; gap: 12px; }
.pr-h .grow { display: grid; min-width: 0; }
.pr-h b { font-size: 16px; }
.pr-h .grow small { color: var(--muted); font-size: 12.5px; }
.pr-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-content: center; text-align: center; background: var(--gold-soft); color: var(--gold-ink); font-family: var(--font-display); font-size: 18px; line-height: 1; }
.pr-ic small { font-family: var(--font-body); font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }
.pr-t { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 6px 12px; align-items: start; }
.pr-t > small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-left: 4px; }
.pr-f { display: grid; padding-top: 7px; min-width: 64px; }
.pr-f b { font-size: 15px; }
.pr-f small { color: var(--muted); font-size: 11.5px; }
.pr-cel { display: grid; gap: 3px; min-width: 0; }
.pr-cel .money { width: 100%; }
.pr-cel .money input { width: 100%; min-width: 0; }
.pr-eco { font-size: 11.5px; color: var(--ok); padding-left: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-card.mensal .pr-eco { display: none; }
@media (max-width: 900px) { .pr-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .pr-f { min-width: 44px; } .pr-f small { display: none; } .pr-card { padding: 12px; } }
.rep-l > .grow { flex: 1; }
@media (max-width: 520px) { .pr-el { display: none; } }

/* iPad: mantém as professoras lado a lado, com o card mais compacto */
@media (min-width: 861px) and (max-width: 1180px) {
  .profs { gap: 12px; }
  .prof-card { padding: 14px; }
  .prof-card .prof-top { gap: 10px; }
  .prof-card .prof-top .avatar { width: 56px; height: 56px; font-size: 18px; }
  .prof-card h3 { font-size: 18px; }
  .prof-card .stats3 { gap: 6px; }
  .prof-card .stat-btn { padding: 10px 9px; }
  .prof-card .stat-btn b { font-size: 19px; }
  .prof-card .stats3 small { font-size: 11px; }
}
@media (min-width: 861px) and (max-width: 1180px) {
  .prof-card { position: relative; }
  .prof-card .prof-top { align-items: center; padding-right: 44px; }
  .prof-card .prof-top .avatar { width: 52px !important; height: 52px !important; flex: none; }
  .prof-card .prof-top h3 { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .prof-card .prof-top small { display: block; font-size: 12px; line-height: 1.3; }
  .prof-card .prof-likes { position: absolute; top: 12px; right: 12px; }
  .prof-card .stat-btn { min-width: 0; }
  .prof-card .stat-btn b { font-size: 18px; }
  .prof-card .pg-top { gap: 6px; }
  .prof-card .pg-top .eyebrow { font-size: 10px; letter-spacing: .06em; min-width: 0; white-space: normal; line-height: 1.25; }
  .prof-card .pg-top .pg-tog { flex: none; }
}
@media (min-width: 861px) and (max-width: 1180px) {
  .prof-card .prof-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; padding-right: 0; align-items: start; }
  .prof-card .prof-top .avatar { grid-row: 1; grid-column: 1; width: 60px !important; height: 60px !important; }
  .prof-card .prof-top > div { grid-row: 2; grid-column: 1 / -1; }
  .prof-card .prof-likes { position: static; grid-row: 1; grid-column: 2; justify-self: end; }
  .prof-card .prof-top h3 { font-size: 19px; }
  .prof-card .prof-top small { display: inline; }
}
@media (min-width: 861px) and (max-width: 1180px) {
  .profs > .prof-card:has(.pg-tog[aria-expanded="true"]) { grid-column: 1 / -1; }
  .profs > .prof-card:has(.pg-tog[aria-expanded="true"]) .prof-top { grid-template-columns: auto minmax(0, 1fr) auto; }
  .profs > .prof-card:has(.pg-tog[aria-expanded="true"]) .prof-top > div { grid-row: 1; grid-column: 2; align-self: center; }
  .profs > .prof-card:has(.pg-tog[aria-expanded="true"]) .prof-likes { grid-column: 3; }
}
@media (min-width: 861px) and (max-width: 1180px) { .profs { grid-auto-flow: row dense; } }
.pr-h .sw { flex: none; align-self: flex-start; margin-top: 4px; }
.pr-h b .chip { font-size: 11px; padding: 2px 8px; vertical-align: 2px; margin-left: 4px; }
.pr-card.off { background: var(--surface-2); }
.pr-card.off .pr-t, .pr-card.off .pr-ic { opacity: .4; filter: grayscale(1); }
.pr-card.off .pr-h b { color: var(--muted); }

/* v26 — janelas de detalhe dos Relatórios: mais largas, explicações com ícone e resumo visual */
.modal.info-modal.iv { width: min(880px, calc(100vw - 32px)); max-width: none; }
.iv-top { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.iv-hero { display: grid; align-content: center; margin: 0 !important; background: var(--gold-soft) !important; }
.iv-exp { display: grid; gap: 8px; }
.iv-e { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; }
.iv-i { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--gold-ink); }
.iv-i .ico { width: 15px; height: 15px; }
.iv-e small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.iv-e p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.45; }
.iv-res { display: grid; gap: 12px; margin-top: 14px; }
.iv-ks { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.iv-k { display: grid; gap: 1px; padding: 11px 13px; border-radius: 14px; background: var(--surface-2); min-width: 0; }
.iv-k small, .iv-mix > small { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.iv-k > b { font-family: var(--font-display); font-size: 21px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iv-k > span { font-size: 12px; color: var(--muted); }
.iv-gauge { grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; }
.iv-gauge > div { display: grid; }
.iv-gauge > div b { font-size: 14px; }
.iv-gauge > div span { font-size: 12px; color: var(--muted); }
.iv-ring { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--line) 0); position: relative; }
.iv-ring::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface-2); }
.iv-ring b { position: relative; font-size: 13px; }
.iv-mix { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.iv-stack { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 2px; background: var(--line); }
.iv-stack.big { height: 14px; }
.iv-stack i { display: block; min-width: 4px; }
.iv-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.iv-leg span { display: inline-flex; align-items: center; gap: 6px; }
.iv-leg i { width: 9px; height: 9px; border-radius: 3px; }
.iv-leg b { color: var(--ink); }
.iv-op { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--ok) 12%, transparent); }
.iv-op > .ico { flex: none; width: 20px; height: 20px; color: var(--ok); margin-top: 2px; }
.iv-op div { display: grid; gap: 2px; } .iv-op span { font-size: 13px; color: var(--muted); }
.iv-bars { display: grid; gap: 4px; }
.iv-b { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(60px, 1fr) auto; gap: 12px; align-items: center; padding: 5px 0; }
.iv-bl { display: grid; min-width: 0; } .iv-bl b { font-size: 13.5px; font-weight: 600; } .iv-bl small { font-size: 12px; color: var(--muted); }
.iv-bt { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.iv-bt i { display: block; height: 100%; border-radius: 999px; background: var(--gold); }
.iv-bv { display: grid; justify-items: end; min-width: 70px; } .iv-bv b { font-size: 13.5px; white-space: nowrap; } .iv-bv small { font-size: 11.5px; color: var(--muted); }
.iv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.iv-chip { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: 13px; } .iv-chip b { color: var(--warn); margin-left: 4px; }
.iv-dupla { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; }
.iv-pr { display: grid; grid-template-columns: auto minmax(0, 1fr) 70px 42px; gap: 10px; align-items: center; padding: 6px 4px; border: 0; background: none; text-align: left; border-radius: 12px; color: inherit; cursor: pointer; }
.iv-pr:hover { background: var(--surface-2); }
.iv-pr .grow { display: grid; min-width: 0; } .iv-pr .grow b { font-size: 13.5px; } .iv-pr .grow small { font-size: 12px; color: var(--muted); }
.iv-pr > .num { text-align: right; font-size: 13.5px; }
.iv-dias { display: flex; gap: 8px; align-items: flex-end; height: 120px; }
.iv-dias span { flex: 1; display: grid; grid-template-rows: 1fr auto auto; justify-items: center; height: 100%; gap: 3px; }
.iv-dias i { align-self: end; width: 70%; max-width: 34px; border-radius: 8px 8px 4px 4px; }
.iv-dias b { font-size: 12px; } .iv-dias small { font-size: 11px; color: var(--muted); }
.info-modal.iv .info-sec { margin-top: 14px; }
@media (min-width: 900px) { .info-modal.iv .info-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; } }
@media (max-width: 720px) {
  .iv-top, .iv-dupla { grid-template-columns: minmax(0, 1fr); }
  .iv-ks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iv-b { grid-template-columns: minmax(0, 1fr) 70px; } .iv-b .iv-bv { grid-column: 1 / -1; justify-items: start; grid-auto-flow: column; gap: 8px; justify-content: start; }
}
.info-modal.iv .iv-bl small, .info-modal.iv .iv-bv small, .info-modal.iv .iv-pr small, .info-modal.iv .iv-dias small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.iv-mix .iv-b { grid-template-columns: minmax(120px, 220px) minmax(60px, 1fr) auto; }
@media (max-width: 720px) { .iv-gauge { grid-column: 1 / -1; } }

/* v27 — Novos alunos mais compacto: período no topo, números + conclusões lado a lado, 3 quadros por linha */
.cp2 { display: grid; gap: 14px; }
.cp2 .cp-per { margin: 0; }
.cp-topo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 14px; align-items: stretch; }
.cp-ks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cp-k { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; min-width: 0; }
.cp-ki { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); }
.cp-ki .ico { width: 17px; height: 17px; }
.cp-kb { display: grid; min-width: 0; }
.cp-kb small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-kb b { font-family: var(--font-display); font-size: 24px; line-height: 1.15; letter-spacing: -.01em; }
.cp-kb em { font-style: normal; font-size: 12px; color: var(--muted); }
.cp2 .cp-ins { margin: 0; padding: 14px 16px; align-items: flex-start; }
.cp2 .cp-ins ul { font-size: 13.5px; gap: 3px; }
.cp-grid3 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.cp-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.cp2 .card { margin: 0; padding: 16px 18px; }
.cp2 .card-h { margin-bottom: 10px; }
.cp2 .card-h h2 { font-size: 16px; }
.cp2 .cp-pie { gap: 14px; flex-wrap: nowrap; }
.cp2 .cp-leg { min-width: 0; gap: 6px; }
.cp2 .cp-li { font-size: 13px; gap: 8px; }
.cp2 .cp-li b { font-size: 13.5px; }
.cp2 .cp-sub { margin-top: 12px; padding-top: 10px; }
.cp2 .cp-profs { gap: 8px; }
.cp2 .cp-prof { padding: 8px 10px; gap: 10px; }
.cp2 .cp-pct { font-size: 20px; }
.cp2 .cp-cols { height: 150px; gap: 6px; }
.cp2 .card-foot { margin-top: 8px; }
.cp-ll { display: grid; gap: 2px; max-height: 330px; overflow: auto; margin: 0 -6px; padding: 0 6px; }
.cp-lr { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 0; background: none; border-radius: 12px; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.cp-lr:hover { background: var(--surface-2); }
.cp-lr .grow { display: grid; min-width: 0; }
.cp-lr .grow b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-lr .grow small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-lr .cp-tag { flex: none; max-width: 45%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-exo-in { display: grid; gap: 12px; }
@media (max-width: 1280px) {
  .cp-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-grid3 .cp-mes { grid-column: 1 / -1; }
  .cp2 .cp-cols { height: 120px; }
}
@media (max-width: 1000px) { .cp-topo { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .cp-grid3, .cp-grid2 { grid-template-columns: minmax(0, 1fr); }
  .cp2 .cp-pie { flex-wrap: wrap; justify-content: center; }
  .cp-kb b { font-size: 21px; }
  .cp-ll { max-height: none; }
}
.cp-lr > .grow { flex: 1; } .cp2 .cp-pct.sm { font-size: 17px; }
@media (max-width: 1280px) {
  .cp-topo { grid-template-columns: minmax(0, 1fr); }
  .cp-ks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cp-kb small { white-space: normal; line-height: 1.25; }
  .cp2 .cp-ins ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
}
@media (max-width: 760px) {
  .cp-ks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp2 .cp-ins ul { grid-template-columns: minmax(0, 1fr); }
  .cp-k { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ---------- Cadastro de professor ---------- */
.pf-nome { display: flex; align-items: center; gap: 6px; max-width: 100%; text-align: left; border-radius: 8px; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; }
.pf-nome { position: relative; }
.pf-nome h3 { min-width: 0; }
/* PC estreito / iPad deitado (3 professores por linha): foto e nome menores para o nome caber inteiro */
@media (min-width: 1181px) and (max-width: 1400px) { .prof-card .prof-top .avatar, .prof-card .prof-top img.avatar { width: 58px !important; height: 58px !important; } .prof-card .prof-top { gap: 10px; } .prof-card .prof-top h3 { font-size: 18px; } }
.pf-nome .ico { position: absolute; left: calc(100% + 6px); top: 50%; translate: 0 -50%; width: 15px; height: 15px; color: var(--faint); opacity: 0; transition: opacity .15s; pointer-events: none; }
.pf-nome:hover .ico, .pf-nome:focus-visible .ico { opacity: 1; color: var(--gold-ink); }
@media (hover: none) { .pf-nome .ico { display: none; } }
.pf-vazio { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pf-vazio > .ico { width: 30px; height: 30px; color: var(--gold-ink); flex: none; }
.pf-vazio > div { flex: 1; display: grid; gap: 2px; }
.modal.pf { width: min(1080px, 100%); max-height: calc(100dvh - 48px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; gap: 14px; padding-bottom: 0; position: relative; }
.pf-sec { display: grid; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.pf-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
.pf-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.pf-col { display: grid; gap: 14px; min-width: 0; }
.modal.pf .pf-g { align-items: start; }
.modal.pf .input { height: 44px; }
.pf-dica { margin: 0; font-size: 13px; }
.pf-sec .func-row.pf-dia { grid-template-columns: 64px minmax(0, 1fr); gap: 8px; padding: 7px 0; }
.pf-dia b { font-size: 13.5px; }
.pf-dia .func-hours { gap: 3px; }
.pf-dia .func-hours button { padding: 4px 5px; font-size: 12px; }
.pf-dia .func-hours button small { font-size: 10.5px; }
@media (max-width: 980px) { .pf-cols { grid-template-columns: minmax(0, 1fr); } }
.pf-top .photo-pick { box-shadow: 0 0 0 3px var(--surface-2), 0 0 0 5px var(--pc); }
.pf-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pf-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pf-w2 { grid-column: 1 / -1; }
.pf-w3 { grid-column: 1 / -1; }
.pf-cores { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-cor { width: 34px; height: 34px; border-radius: 50%; background: var(--c); border: 0; display: grid; place-items: center; color: #fff; font-size: 10.5px; font-weight: 800; box-shadow: 0 0 0 2px var(--surface-2); transition: transform .15s, box-shadow .15s; }
.pf-cor i { font-style: normal; opacity: .9; }
.pf-cor:hover { transform: scale(1.08); }
.pf-cor.on { box-shadow: 0 0 0 3px var(--surface-2), 0 0 0 5px var(--c); transform: scale(1.06); }
.pf-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-left: 4px; vertical-align: middle; }
.pf-f { position: sticky; bottom: 0; background: var(--surface); padding: 12px 0 18px; margin-top: -2px; border-top: 1px solid var(--line); z-index: 2; }
@media (max-width: 760px) {
  .pf-g3 { grid-template-columns: minmax(0, 1fr); }
  .pf-top { grid-template-columns: minmax(0, 1fr); }
  .pf-top .fa-foto { justify-self: start; }
  .pf-sec { padding: 12px; }
  .pf-sec .func-row { grid-template-columns: minmax(0, 1fr) !important; gap: 6px; }
}
@media (max-width: 520px) { .pf-g { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Perfis (Dono / Recepção) ---------- */
.perfil-btn { width: 100%; background: none; font: inherit; text-align: left; cursor: pointer; margin-bottom: 8px; border-style: solid; border-color: color-mix(in srgb, var(--gold) 55%, #394349); }
.perfil-btn .ico { color: var(--gold); flex: none; }
.perfil-btn .nl { display: grid; line-height: 1.2; font-weight: 700; }
.perfil-btn .nl small { font-size: 10.5px; font-weight: 600; opacity: .65; text-transform: uppercase; letter-spacing: .06em; }
.perfil-btn.rec { border-color: #394349; }
.perfil-btn.rec .ico { color: var(--side-ink); }
.perfis { display: grid; gap: 10px; }
.perfil-op { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; text-align: left; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); }
.perfil-op .ico { grid-row: 1 / 3; width: 24px; height: 24px; color: var(--muted); margin-top: 2px; }
.perfil-op small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.perfil-op:hover { border-color: var(--faint); }
.perfil-op.on { border-color: var(--gold); background: var(--gold-soft); }
.perfil-op.on .ico { color: var(--gold-ink); }
.input.pin { font-size: 22px; letter-spacing: .4em; text-align: center; }

/* ---------- Pesquisa dos alunos: faixa em Professores e janela de avaliações ---------- */
.pesq-faixa { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr); gap: 18px; align-items: center; margin-bottom: 16px; }
.pesq-faixa .eyebrow { display: inline-flex; align-items: center; gap: 6px; }
.pesq-faixa .eyebrow .ico { width: 13px; height: 13px; }
.pf-bloco { display: grid; gap: 6px; min-width: 0; }
.pf-num { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pf-num b { font-family: var(--font-display); font-size: 28px; line-height: 1; }
.pf-num span { font-size: 13px; color: var(--muted); }
.pf-crits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pf-crit { display: grid; grid-template-columns: 24px auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.pf-e { font-size: 20px; line-height: 1; }
.pf-crit b { font-size: 15px; font-variant-numeric: tabular-nums; }
.pf-crit small { font-size: 11.5px; color: var(--muted); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nps-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 2px; }
.nps-bar i.g { background: var(--ok); } .nps-bar i.y { background: var(--warn); } .nps-bar i.r { background: var(--bad); }
@media (max-width: 1100px) { .pesq-faixa { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .pesq-faixa { grid-template-columns: minmax(0, 1fr); } .pf-crits { grid-row: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pesq-faixa { padding: 14px 18px; gap: 14px 18px; }
.pf-num b { font-size: 24px; }
.stat-btn .emo { font-size: .8em; margin-right: 2px; }
.stat-btn b { white-space: nowrap; }
.modal.av-m { width: min(820px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 48px); overflow-y: auto; }
.av-m .modal-h .chip { display: inline-flex; align-items: center; gap: 5px; }
.av-m .modal-h .chip .ico { width: 13px; height: 13px; }
.av-top { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: center; }
.av-geral { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 16px 10px; border-radius: 18px; background: var(--gold-soft); }
.av-emo { font-size: 48px; line-height: 1; }
.av-geral b { font-family: var(--font-display); font-size: 36px; line-height: 1.1; }
.av-geral small { font-size: 12.5px; }
.av-crits { display: grid; gap: 10px; }
.av-crit { display: grid; grid-template-columns: 28px 160px minmax(0, 1fr) 36px; gap: 10px; align-items: center; font-size: 14px; }
.av-ce { font-size: 22px; line-height: 1; }
.av-crit b { text-align: right; }
.av-meses { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.av-mes { display: grid; justify-items: center; gap: 4px; font-size: 12px; }
.av-me { font-size: 20px; height: 22px; line-height: 1; }
.av-col { width: 26px; height: 70px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); display: flex; align-items: flex-end; overflow: hidden; }
.av-col i { display: block; width: 100%; background: var(--gold); border-radius: 99px; }
.av-mes small { color: var(--muted); text-transform: capitalize; }
.av-coms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.av-com { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: grid; gap: 4px; background: var(--surface); }
.av-com p { margin: 0; font-size: 14px; }
.av-ch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.av-ch b { font-size: 13.5px; }
.av-ch .av-ce { font-size: 20px; }
.av-mini { margin-left: auto; font-size: 14px; letter-spacing: 1px; }
@media (max-width: 700px) { .av-top { grid-template-columns: minmax(0, 1fr); } .av-crit { grid-template-columns: 26px minmax(0, 1fr) 70px 32px; } .av-coms { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pacote de aulas avulsas ---------- */
.fa-tipo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 4px; }
.fa-tipo button { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font: inherit; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.fa-tipo button .ico { width: 24px; height: 24px; flex: none; color: var(--muted); }
.fa-tipo button span { display: grid; gap: 2px; }
.fa-tipo button small { color: var(--muted); font-size: 12.5px; }
.fa-tipo button.on { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent); }
.fa-tipo button.on .ico { color: var(--gold-ink); }
.fa-pacs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.fa-pac { display: grid; gap: 3px; text-align: left; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font: inherit; color: var(--ink); cursor: pointer; }
.fa-pac b { font-size: 15px; }
.fa-pac .num { font-family: var(--font-display); font-size: 24px; font-weight: 800; }
.fa-pac small { color: var(--muted); font-size: 12px; }
.fa-pac.on { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.fa-pac.on small { color: var(--surface); opacity: .75; }
.fa-ro { display: flex; align-items: center; background: var(--surface-2); color: var(--ink); font-weight: 600; }
.av-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.av-nav { display: flex; align-items: center; gap: 6px; }
.av-nav b { font-size: 13.5px; min-width: 110px; text-align: center; font-variant-numeric: tabular-nums; }
.av-nav .icon-btn[disabled] { opacity: .35; pointer-events: none; }
.av-pick .pick-day.fora { opacity: .5; }
.av-pick .pick-hours button[disabled] { cursor: default; }
.av-pick .pick-hours small { display: flex; align-items: center; justify-content: center; }
.av-sel { display: flex; flex-wrap: wrap; gap: 6px; }
.av-sel .chip { display: inline-flex; align-items: center; gap: 6px; padding-right: 4px; }
.av-sel .chip button { border: 0; background: none; padding: 2px; display: grid; place-items: center; color: var(--muted); cursor: pointer; }
.av-sel .chip .ico { width: 13px; height: 13px; }
.modal.av-modal { padding-bottom: 0; }
.tag.av { background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--gold-ink); }
.fi-pac .fi-ch { display: flex; align-items: center; gap: 8px; }
.fi-pac .fi-ch .chip { margin-left: auto; }
.pac-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.pac-saldo { display: grid; justify-items: center; text-align: center; padding: 10px 16px; border-radius: 16px; background: var(--gold-soft); }
.pac-saldo b { font-family: var(--font-display); font-size: 34px; line-height: 1; }
.pac-saldo small { font-size: 11.5px; line-height: 1.25; }
.pac-info { display: grid; gap: 5px; }
.pac-bar { display: flex; height: 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.pac-bar i.d { background: var(--ok); }
.pac-bar i.m { background: var(--gold); }
.pac-bar i.p { background: repeating-linear-gradient(45deg, var(--gold) 0 3px, var(--gold-soft) 3px 6px); }
/* aulas dadas de presente para amigos */
.pac-pres { display: grid; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.pac-pres > small { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.pac-pres > small svg { width: 14px; height: 14px; }
.pac-cv { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; font-size: 13.5px; }
.pac-cv small { font-size: 12.5px; }
.pac-cv .pac-cv-n { font-size: 13.5px; }
.exp-pr small svg, .dl .chip svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; }
.pac-info small { font-size: 12.5px; }
.pac-prox { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pac-pror { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; }
.pac-pror svg { width: 14px; height: 14px; flex: none; }
.fi-pac .btn-row { margin-top: 10px; align-items: center; }
@media (max-width: 640px) { .fa-tipo { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Acessos: tela "Quem está usando?" e senha ---------- */
body[data-papel="professor"] .sv { display: none !important; }
.login-scrim { z-index: 90; }
.login-m { max-width: 560px; display: grid; gap: 16px; }
.login-gs { display: grid; gap: 12px; }
.login-g { --lg: var(--gold); --lg-soft: var(--gold-soft); display: grid; gap: 8px; padding: 10px 12px 12px; border-radius: 20px; background: color-mix(in srgb, var(--lg-soft) 55%, transparent); border: 1px solid color-mix(in srgb, var(--lg) 18%, transparent); }
.login-g.lg-recepcao { --lg: var(--info, #3F6FB5); --lg-soft: var(--info-soft, #E6EEF9); }
.login-g.lg-professor { --lg: var(--ok); --lg-soft: var(--ok-soft); }
.login-g h3 { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lg); }
.login-g h3 svg { width: 14px; height: 14px; }
.login-us { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.login-us > .login-u { flex: 0 0 150px; }
@media (max-width: 420px) { .login-us > .login-u { flex-basis: calc(50% - 5px); } }
.login-u { display: grid; justify-items: center; gap: 6px; padding: 16px 10px 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); font: inherit; color: var(--ink); cursor: pointer; text-align: center; transition: transform .15s, border-color .15s; }
.login-u:hover { border-color: var(--lg, var(--gold)); transform: translateY(-2px); }
.login-u.on { border-color: var(--lg, var(--gold)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lg, var(--gold)) 22%, transparent); }
.login-u b { font-size: 15px; line-height: 1.2; }
.login-u small { color: var(--muted); font-size: 12px; }
.ac-ico { display: inline-grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--ink); flex: none; }
.ac-ico.dono { background: var(--gold); color: #171A1C; }
.ac-ico .ico { width: 46%; height: 46%; }
.login-quem { display: grid; justify-items: center; gap: 4px; text-align: center; }
.login-quem b { font-size: 18px; } .login-quem small { color: var(--muted); }
.pin-dots { display: flex; justify-content: center; gap: 14px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); transition: background .15s, border-color .15s, transform .15s; }
.pin-dots i.on { background: var(--ink); border-color: var(--ink); transform: scale(1.1); }
.pin-dots.erro { animation: mShake .42s; } .pin-dots.erro i { border-color: var(--bad); }
.pin-msg { text-align: center; color: var(--muted); font-size: 12.5px; } .pin-msg.erro { color: var(--bad); font-weight: 700; }
.pin-pad { display: grid; grid-template-columns: repeat(3, 72px); justify-content: center; gap: 12px; }
.pin-pad button { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); font: inherit; font-size: 24px; font-weight: 700; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background .12s, transform .12s; }
.pin-pad button:active { background: var(--gold); transform: scale(.94); }
.pin-pad .pin-apaga { background: none; border-color: transparent; }
/* Configurações › Acessos */
.ac-list { display: grid; gap: 8px; }
.ac-dupla { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.ac-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr) 96px 36px; grid-template-areas: "i n n p x" "i a b . ."; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.ac-row > :first-child { grid-area: i; align-self: start; }
.ac-row .ac-nome { grid-area: n; } .ac-row .ac-papel { grid-area: a; } .ac-row .ac-prof { grid-area: b; } .ac-row .ac-pin { grid-area: p; } .ac-row > .icon-btn { grid-area: x; }
.ac-row .input { min-height: 40px; }
.ac-row .ac-pin { text-align: center; letter-spacing: .3em; font-variant-numeric: tabular-nums; font-weight: 700; }
.ac-row .ac-prof[hidden] { display: block; visibility: hidden; }
.ac-papeis { display: grid; gap: 10px; }
.ac-papel-i { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: start; }
.ac-papel-i small { color: var(--muted); font-size: 12.5px; line-height: 1.35; display: block; }
@media (max-width: 980px) { .ac-dupla { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .ac-row { grid-template-columns: 40px minmax(0, 1fr) 84px 36px; grid-template-areas: "i n p x" "i a a ." "i b b ."; } .ac-row .ac-prof[hidden] { display: none; } }

/* Configurações › Importar dados */
.imp-passos { margin: 0 0 12px; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; line-height: 1.45; }
.imp-drop { display: grid; justify-items: center; gap: 6px; padding: 30px 16px; border: 2px dashed var(--line); border-radius: 18px; background: var(--surface-2); cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.imp-drop:hover, .imp-drop.on { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, var(--surface)); }
.imp-drop .ico { width: 30px; height: 30px; color: var(--gold); }
.imp-drop small { color: var(--muted); font-size: 12.5px; }
.imp-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 14px 18px; }
.imp-top .grow { display: grid; gap: 2px; min-width: 0; }
.imp-dupla { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: start; }
.imp-map-g { display: grid; gap: 8px; }
.imp-mr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 10px; font-size: 13.5px; }
.imp-mr em { font-style: normal; color: var(--bad); font-size: 11px; font-weight: 700; margin-left: 4px; }
.imp-mr .input { min-height: 38px; }
.imp-res { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.imp-n { display: grid; gap: 2px; padding: 8px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.25; }
.imp-n b { font-size: 22px; color: var(--ink); font-family: var(--font-display); }
.imp-n.ok { background: var(--ok-soft, #E6F4EC); } .imp-n.warn { background: var(--warn-soft); }
.imp-prev { margin-bottom: 8px; max-height: 300px; overflow: auto; }
.imp-prev .t td, .imp-prev .t th { font-size: 12.5px; padding: 8px 10px; white-space: nowrap; }
.imp-hist { display: grid; gap: 8px; }
.imp-h { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; }
.imp-h .grow { display: grid; gap: 2px; } .imp-h small { color: var(--muted); font-size: 12px; }
@media (max-width: 980px) { .imp-dupla { grid-template-columns: minmax(0, 1fr); } }
.ac-row select.input { width: 100%; }

/* ---------- Questionário do primeiro acesso ---------- */
.wz-scrim { z-index: 95; background: color-mix(in srgb, var(--ink) 55%, transparent); }
.modal.wz { width: min(640px, calc(100vw - 32px)); max-height: min(860px, calc(100dvh - 32px)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 14px; padding: 22px 24px; overflow: hidden; }
.wz-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; }
.wz-top img { height: 22px; }
.wz-top small { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.wz-prog { display: flex; gap: 5px; }
.wz-prog i { flex: 1; height: 6px; border-radius: 99px; background: var(--line); transition: background .3s; }
.wz-prog i.ok { background: var(--gold); } .wz-prog i.on { background: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.wz-body { overflow-y: auto; display: grid; gap: 14px; align-content: start; padding: 2px 2px 6px; margin: 0 -2px; }
.wz-body.in { animation: wzIn .34s cubic-bezier(.2, .9, .3, 1); }
@keyframes wzIn { from { opacity: 0; transform: translateX(22px); } }
.wz-body h2 { font-size: 26px; line-height: 1.15; margin: 4px 0 0; }
.wz-lead { margin: -6px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.wz-f { display: grid; gap: 7px; }
.wz-f > span { font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.wz-f > span .ico { width: 15px; height: 15px; color: var(--gold); }
.wz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-op { min-height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.chip-op.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.wz-ops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wz-ops.col { grid-template-columns: minmax(0, 1fr); }
.wz-op { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; align-items: center; text-align: left; padding: 14px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--surface); font: inherit; color: var(--ink); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.wz-op:hover { transform: translateY(-1px); }
.wz-op .wz-oi { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); }
.wz-op .wz-oi .ico { width: 20px; height: 20px; }
.wz-op b { font-size: 15px; line-height: 1.25; } .wz-op small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.wz-op.on { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 20%, transparent); }
.wz-op.on .wz-oi { background: var(--gold); color: #171A1C; }
.wz-l { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.wz-l > div:first-child { display: grid; gap: 2px; min-width: 0; } .wz-l b { font-size: 14.5px; } .wz-l small { color: var(--muted); font-size: 12.5px; }
.wz-l .money { flex: none; width: 150px; }
.wz-nota { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: 13.5px; line-height: 1.45; }
.wz-nota .ico { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--gold); }
.wz-nota.warn { background: var(--warn-soft); } .wz-nota.warn .ico { color: var(--warn); }
.wz-profs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wz-turnos { display: grid; gap: 8px; }
.wz-turno { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; }
.wz-turno.on { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.wz-turno > span { color: var(--muted); font-size: 13px; } .wz-turno small { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.wz-tg { display: inline-flex; align-items: center; gap: 10px; min-width: 104px; border: 0; background: none; font: inherit; font-weight: 700; font-size: 14.5px; color: var(--ink); cursor: pointer; padding: 0; }
.wz-tg i { width: 38px; height: 22px; border-radius: 99px; background: var(--line); position: relative; transition: background .2s; flex: none; }
.wz-tg i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.wz-turno.on .wz-tg i { background: var(--ok); } .wz-turno.on .wz-tg i::after { transform: translateX(16px); }
.wz-h { width: auto; min-height: 38px; padding-right: 30px; }
.wz-tri { display: flex; align-items: center; gap: 10px; }
.wz .tgl { width: 46px; height: 28px; border-radius: 99px; border: 0; background: var(--line); position: relative; cursor: pointer; flex: none; transition: background .2s; }
.wz .tgl i { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.wz .tgl.on { background: var(--ok); } .wz .tgl.on i { transform: translateX(18px); }
.wz-pin { max-width: 200px; text-align: center; font-size: 22px; letter-spacing: .5em; font-weight: 700; }
.wz-erro { display: flex; gap: 8px; align-items: center; color: var(--bad); font-size: 13.5px; font-weight: 700; }
.wz-erro .ico { width: 16px; height: 16px; }
.wz-f2 { display: flex; justify-content: space-between; gap: 10px; padding-top: 4px; }
.wz-f2 .btn { min-height: 46px; padding: 0 22px; }
@media (max-width: 560px) { .modal.wz { padding: 18px 16px; } .wz-ops, .wz-profs { grid-template-columns: minmax(0, 1fr); } .wz-top { grid-template-columns: minmax(0, 1fr) auto; } .wz-top img, .wz-top small { display: none; } .wz-body h2 { font-size: 22px; } .wz-l .money { width: 120px; } }
@media (prefers-reduced-motion: reduce) { .wz-body.in { animation: none; } }
.wz-turno select.wz-h { width: 92px; flex: none; min-height: 38px; padding-right: 26px; }

/* Configurações › Histórico */
.hist { display: grid; gap: 4px; }
.hist-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.hist-f .input { width: auto; min-width: 190px; min-height: 38px; }
.hist-dia { margin: 12px 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hist-r { display: grid; grid-template-columns: 44px 30px minmax(110px, 150px) auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 6px; border-top: 1px solid var(--line); font-size: 13.5px; }
.hist-t { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.hist-q { display: grid; min-width: 0; } .hist-q b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hist-q small { color: var(--muted); font-size: 11.5px; }
.hist-a { justify-self: start; font-size: 11.5px; }
.hist-x { min-width: 0; line-height: 1.35; }
.hist-vazio { display: grid; justify-items: center; gap: 6px; padding: 34px 16px; text-align: center; } .hist-vazio .ico { width: 26px; height: 26px; color: var(--gold); } .hist-vazio small { color: var(--muted); max-width: 440px; }
@media (max-width: 760px) { .hist-r { grid-template-columns: 40px 30px minmax(0, 1fr); } .hist-a { grid-column: 3; } .hist-x { grid-column: 1 / -1; padding-left: 80px; } }
.cfg-save[hidden] { display: none !important; }

/* Professores: Expandir/Recolher chamam atenção (dourado cheio pulsando) */
.btn.pg-tog { background: var(--gold); border-color: var(--gold); color: #fff; font-weight: 800; animation: pulso 1.8s ease-in-out infinite, pgBrilho 1.8s ease-in-out infinite; }
.btn.pg-tog .ico { color: #fff; }
.btn.pg-tog:hover { filter: brightness(1.06); }
@keyframes pgBrilho { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.14); } }
@media (prefers-reduced-motion: reduce) { .btn.pg-tog { animation: none; } }

/* Professores: painel "Agenda e receita" v2 — anel de ocupação, blocos de números e mapa de calor */
.ag { display: grid; gap: 14px; }
.ag-topo { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; align-items: center; }
.ag-anel { --p: 0; width: 84px; height: 84px; border-radius: 50%; background: conic-gradient(var(--gold) calc(var(--p) * 1%), var(--surface-2) 0); display: grid; place-items: center; animation: agGira .8s cubic-bezier(.2, .8, .2, 1); }
.ag-anel > div { width: 64px; height: 64px; border-radius: 50%; background: var(--surface); display: grid; place-content: center; text-align: center; box-shadow: inset 0 0 0 1px var(--line); }
.ag-anel b { font-size: 20px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.ag-anel small { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-top: 2px; }
@keyframes agGira { from { transform: rotate(-90deg) scale(.85); opacity: 0; } }
.ag-resumo { display: grid; gap: 3px; min-width: 0; }
.ag-resumo b { font-size: 17px; font-weight: 800; }
.ag-resumo span { font-size: 13px; color: var(--muted); }
.ag-resumo em { font-style: normal; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.ag-resumo em.livre { background: var(--ok-soft, #E4F2EA); color: var(--ok); }
.ag-resumo em.ok { background: var(--gold-soft); color: var(--gold-ink); }
.ag-ks { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.ag-k { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.ag-k small { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ag-k small .ico { width: 15px; height: 15px; }
.ag-k b { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-k b em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--muted); }
.ag-k > span { font-size: 12px; }
.ag-k.ouro { background: linear-gradient(135deg, #1D2529, #171A1C); border-color: #171A1C; }
.ag-k.ouro small { color: rgba(255, 255, 255, .62); }
.ag-k.ouro small .ico { color: var(--gold); }
.ag-k.ouro b { color: #B5DDD3; }
.ag-mapa { overflow-x: auto; margin: 0 -2px; padding: 2px; }
.ag-grid { display: grid; grid-template-columns: 50px repeat(var(--cols), minmax(46px, 1fr)) 54px; gap: 5px; align-items: center; }
.ag-h { font-size: 11px; font-weight: 700; color: var(--faint); text-align: center; font-variant-numeric: tabular-nums; }
.ag-d { font-size: 13px; font-weight: 800; display: grid; line-height: 1.1; }
.ag-d i { font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); }
.ag-c { height: 44px; border-radius: 10px; border: 0; padding: 0; font: inherit; cursor: pointer; display: grid; place-content: center; text-align: center; line-height: 1;
  background: color-mix(in srgb, var(--gold) calc(14% + var(--o, 0) * 70%), var(--surface)); color: var(--ink); transition: transform .15s, box-shadow .15s; }
.ag-c b { font-size: 15px; font-weight: 800; display: grid; place-items: center; }
.ag-c b .ico { width: 17px; height: 17px; stroke-width: 2.6; }
.ag-c small { font-size: 9.5px; font-weight: 700; opacity: .7; margin-top: 2px; }
.ag-c:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(20, 26, 30, .14); }
.ag-c.cheio { background: #171A1C; color: #B5DDD3; }
.ag-c.cheio small { opacity: .85; }
.ag-c.vazio { background: var(--surface); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ok) 55%, transparent); color: var(--ok); }
.ag-c.off { cursor: default; background: transparent; position: relative; }
.ag-c.off::after { content: ''; position: absolute; inset: 50% auto auto 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--line); transform: translate(-50%, -50%); }
.ag-t { --p: 0%; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 12px; background: linear-gradient(to top, var(--gold-soft) var(--p), transparent var(--p)); border: 1px solid var(--line); color: var(--muted); }
.ag-t b { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.ag-c.off:hover { transform: none; box-shadow: none; }
.ag-d.hoje { color: var(--gold-ink); }
.ag-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12px; font-weight: 600; color: var(--muted); }
.ag-leg i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -3px; margin-right: 5px; }
.ag-leg .l0 { background: var(--surface); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ok) 55%, transparent); }
.ag-leg .l1 { background: color-mix(in srgb, var(--gold) 37%, var(--surface)); }
.ag-leg .l2 { background: color-mix(in srgb, var(--gold) 61%, var(--surface)); }
.ag-leg .l3 { background: #171A1C; }
.ag-leg .muted { margin-left: auto; }
.ag-c, .ag-t { animation: agIn .35s ease-out backwards; }
@keyframes agIn { from { opacity: 0; transform: scale(.85); } }
@media (max-width: 640px) { .ag-anel { width: 72px; height: 72px; } .ag-anel > div { width: 54px; height: 54px; } .ag-anel b { font-size: 17px; } .ag-leg .muted { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .ag-anel, .ag-c, .ag-t { animation: none; } }

.legend-grid .ag-c.demo { width: 34px; height: 30px; flex: none; border-radius: 8px; cursor: default; animation: none; }
.legend-grid .ag-c.demo:hover { transform: none; box-shadow: none; }
.legend-grid .ag-c.demo b { font-size: 13px; }
.legend-grid > span { display: inline-flex; align-items: center; gap: 8px; }

/* Professores: pizza "Divisão entre professores" ao lado do Como ler */
.pf-baixo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 16px; margin-top: 16px; align-items: stretch; }
.pf-baixo.so-legenda { grid-template-columns: minmax(0, 1fr); }
.pf-baixo .legend-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.pfz-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pfz-b { display: flex; align-items: center; gap: 18px; }
.pf-pizza .rosca-c b { font-size: 24px; }
.pfz-l { display: grid; gap: 8px; flex: 1; min-width: 0; }
.pfz-i { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.pfz-i i { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.pfz-i small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.pfz-i b { font-family: var(--font-display); font-size: 18px; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .pf-baixo { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .pfz-b { flex-direction: column; align-items: stretch; } .pfz-b .rosca { align-self: center; } }

/* popup do aluno na aula (Início/Agenda): centralizado, com botões grandes */
.pop.pop-al { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(380px, calc(100vw - 32px)); padding: 18px; gap: 14px; border-radius: 22px; animation: paIn .2s cubic-bezier(.2,.9,.3,1.2); }
@keyframes paIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } }
.pa-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.pa-x svg { width: 16px; height: 16px; }
.pa-h { display: flex; gap: 12px; align-items: center; padding-right: 30px; }
.pa-h > div { display: grid; gap: 3px; min-width: 0; }
.pa-h b { font-size: 17px; line-height: 1.2; }
.pa-q { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.pa-q svg { width: 13px; height: 13px; }
.pa-q em { font-style: normal; color: var(--gold-ink); font-weight: 600; }
.pa-cor { width: 9px; height: 9px; border-radius: 50%; margin: 0 2px; }
.pa-st { --c: var(--info); --cs: var(--info-soft); display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 14px; background: var(--cs); }
.pa-st.ok { --c: var(--ok); --cs: var(--ok-soft); } .pa-st.bad { --c: var(--bad); --cs: var(--bad-soft); } .pa-st.gold { --c: var(--gold-ink); --cs: var(--gold-soft); }
.pa-st > i { width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; flex: none; }
.pa-st > i svg { width: 15px; height: 15px; }
.pa-st b { display: block; color: var(--c); font-size: 13.5px; }
.pa-st small { display: block; color: var(--ink-2, var(--muted)); font-size: 12px; line-height: 1.35; margin-top: 2px; }
.pa-acoes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pa-acoes.n1 { grid-template-columns: 1fr; } .pa-acoes.n3 > :last-child { grid-column: 1 / -1; }
.pop .pa-b { --c: var(--ink); --cs: var(--surface-2); display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 10px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); background: var(--cs); color: var(--c); font-weight: 650; font-size: 14px; text-align: center; transition: transform .12s, filter .12s; }
.pop .pa-b:hover { background: var(--cs); filter: brightness(.97); transform: translateY(-1px); }
.pop .pa-b:active { transform: scale(.97); }
.pa-b > i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff; }
.pa-b > i svg { width: 14px; height: 14px; }
.pa-b.ok { --c: var(--ok); --cs: var(--ok-soft); } .pa-b.bad { --c: var(--bad); --cs: var(--bad-soft); }
.pa-b.gold { --c: var(--gold-ink); --cs: var(--gold-soft); } .pa-b.info { --c: var(--info); --cs: var(--info-soft); }
.pa-b.neutro { --c: var(--muted); --cs: var(--surface-2); }

/* ficha do aluno: 3 colunas, cores por bloco, sem rolar em telas largas */
.drawer.ficha { width: min(1160px, 100%); gap: 12px; padding-bottom: 16px; }
.fi-h { padding: 16px 22px 12px; }
.fi-h .avatar { width: 56px; height: 56px; }
.fi-hn h2 { font-size: 22px; }
.fi-t { padding: 10px 12px; }
.fi-tiles, .fi-cols, .fi-fim { padding-left: 22px; padding-right: 22px; }
.fi-cols.tres { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr) minmax(0, 1.3fr); gap: 12px; }
.fi-card { --c: var(--gold-ink); --cs: var(--gold-soft); padding: 12px 14px; gap: 8px; position: relative; overflow: hidden; }
.fi-card::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); opacity: .75; }
.fi-card.c-ok { --c: var(--ok); --cs: var(--ok-soft); }
.fi-card.c-bad { --c: var(--bad); --cs: var(--bad-soft); }
.fi-card.c-info { --c: var(--info); --cs: var(--info-soft); }
.fi-card.c-roxo { --c: #7A5BC0; --cs: color-mix(in srgb, #7A5BC0 13%, transparent); }
.fi-card.c-prof { --c: var(--pc); --cs: color-mix(in srgb, var(--pc) 15%, transparent); }
.fi-ch { gap: 9px; }
.fi-ch .ico { width: 26px; height: 26px; padding: 5px; border-radius: 9px; background: var(--cs); color: var(--c); box-sizing: border-box; }
.fi-ch h4 { color: var(--c); }
.fi-card .pay-row { padding: 6px 0; }
.fi-card.c-ok .stat-btn b { color: var(--ok); }
.fi-card.c-ok .stat-btn:nth-child(2) b { color: var(--bad); }
.fi-card.c-ok .stat-btn:nth-child(3) b { color: var(--warn); }
.fi-cols.tres .fi-pg { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.fi-cols.tres .fi-kvs { grid-template-columns: 1fr 1fr; }
.fi-cols.tres .stats3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .fi-cols.tres { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .fi-cols.tres > .fi-col:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
@media (max-width: 860px) { .fi-cols.tres > .fi-col:last-child { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .fi-cols.tres { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .fi-tiles, .fi-cols, .fi-fim { padding-left: 14px; padding-right: 14px; } }
.fi-col > .fi-fim { padding: 4px 2px 0; }
.fi-card .stat-btn small { white-space: normal; line-height: 1.25; }

/* professor: um só botão de edição, com abas Informações / Horários */
.modal.pf { width: min(720px, 100%); }
.modal.pf .pf-cols { grid-template-columns: minmax(0, 1fr); }
.modal.pf[data-aba="info"] .pf-hor, .modal.pf[data-aba="horarios"] .pf-info { display: none; }
.pf-abas { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.pf-abas button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; background: none; padding: 10px 12px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.pf-abas button .ico { width: 16px; height: 16px; }
.pf-abas button.on { background: var(--surface); color: var(--gold-ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.modal.pf { gap: 10px; }
.modal.pf .pf-sec { padding-top: 10px; padding-bottom: 10px; }
.modal.pf .field { gap: 4px; }
.modal.pf .input { height: 40px; }
.modal.pf .pf-g { row-gap: 8px; }

/* Novos alunos: cada número leva ao seu bloco */
button.cp-k { font: inherit; color: inherit; text-align: left; cursor: pointer; position: relative; transition: transform .15s, border-color .15s, box-shadow .15s; }
button.cp-k:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.cp-kgo { margin-left: auto; align-self: center; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); flex: none; }
.cp-kgo .ico { width: 14px; height: 14px; }
button.cp-k:hover .cp-kgo { background: var(--gold-soft); color: var(--gold-ink); }
.cp-foco { animation: cpFoco 1.6s ease-out; }
@keyframes cpFoco { 0%, 30% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 55%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (max-width: 1100px) { .cp-kgo { position: absolute; top: 10px; right: 10px; } }
/* pílula deslizante dos filtros de situação acompanha a cor */
.seg:has([class*="sg-"]) .m-pill { background: var(--gold-soft); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--gold) 45%, transparent); transition-property: transform, width, height, background-color; }
.seg:has(.sg-pago.on) .m-pill { background: var(--ok-soft); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ok) 45%, transparent); }
.seg:has(.sg-vence.on) .m-pill { background: var(--warn-soft); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--warn) 45%, transparent); }
.seg:has(.sg-atraso.on) .m-pill { background: var(--bad-soft); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--bad) 45%, transparent); }
.seg:has(.sg-inativo.on) .m-pill { background: color-mix(in srgb, var(--muted) 16%, var(--surface)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--muted) 40%, transparent); }
.seg.m-seg [class*="sg-"].on { background: transparent; box-shadow: none; }
.seg [class*="sg-"].on { color: var(--sg); }
.seg .sg-todos { --sg: var(--gold-ink); }

/* primeiro acesso em fases (Você › Studio › Equipe › Valores › Financeiro › Alunos) */
.modal.wz { grid-template-rows: auto auto minmax(0, 1fr) auto auto; gap: 12px; }
.wz-top { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.wz-fases { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.wz-fase { display: grid; gap: 5px; min-width: 0; }
.wz-fase i { display: block; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.wz-fase i em { display: block; height: 100%; border-radius: inherit; background: var(--gold); transition: width .4s cubic-bezier(.3, 1, .4, 1); }
.wz-fase span { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint, var(--muted)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-fase.on span { color: var(--gold-ink); } .wz-fase.ok span { color: var(--ink); }
.wz-passo { color: var(--muted); font-size: 12.5px; margin-top: -4px; }
.wz-hero { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--gold-grad); color: #fff; box-shadow: 0 8px 22px color-mix(in srgb, var(--gold) 35%, transparent); }
.wz-hero .ico { width: 28px; height: 28px; }
.wz-nota.ok { background: var(--ok-soft); } .wz-nota.ok .ico { color: var(--ok); }
.wz-nota > span { min-width: 0; }
.wz-eu { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--gold-soft); }
.wz-eu > .ico { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--gold); color: #171A1C; box-sizing: border-box; flex: none; }
.wz-eu span { display: grid; } .wz-eu small { color: var(--muted); font-size: 12.5px; }
.wz-desp { display: grid; gap: 6px; }
.wz-dr { display: grid; grid-template-columns: auto minmax(0, 1fr) 150px; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 14px; min-height: 54px; }
.wz-dr.on { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.wz-dr b { font-size: 14.5px; font-weight: 600; } .wz-dr:not(.on) b { color: var(--muted); }
.wz-dr .money { width: 150px; } .wz-dr > small { justify-self: end; }
.wz-dr .wz-dn { min-height: 38px; }
.wz-add { justify-self: start; }
.wz-resumo { display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); }
.wz-resumo .eyebrow { margin-bottom: 4px; }
.wz-resumo > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 5px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.wz-resumo > div > span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.wz-resumo > div > span .ico { width: 15px; height: 15px; color: var(--gold-ink); }
.wz-resumo > div > b { font-weight: 600; }
@media (max-width: 560px) {
  .wz-fase span { font-size: 9px; letter-spacing: 0; }
  .wz-top { grid-template-columns: minmax(0, 1fr) auto auto; } .wz-top .info-badge { display: none; }
  .wz-dr { grid-template-columns: auto minmax(0, 1fr); } .wz-dr .money, .wz-dr > small { grid-column: 2; width: auto; justify-self: stretch; }
  .wz-resumo > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
.wz-desp { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.wz-dr { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto; padding: 8px 10px; min-height: 0; gap: 4px 10px; }
.wz-dr .money, .wz-dr > small { grid-column: 2; width: auto; justify-self: stretch; }
.wz-dr > small { text-align: left; }
.wz-dr .money { height: 36px; } .wz-dr .money input { height: 34px; }
.wz-dr b { font-size: 13.5px; line-height: 1.2; }
.wz-dr .tgl { grid-row: 1 / 3; align-self: center; }
.wz-add { grid-column: 1 / -1; }
@media (max-width: 560px) { .wz-desp { grid-template-columns: minmax(0, 1fr); } }
.wz-dr:not(.on) { padding-top: 6px; padding-bottom: 6px; } .wz-add { min-height: 32px; }
.wz-ops.tres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wz-ops.tres .wz-op { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 12px 10px; row-gap: 4px; }
.wz-ops.tres .wz-op .wz-oi { grid-row: auto; width: 36px; height: 36px; }
@media (max-width: 560px) { .wz-ops.tres { grid-template-columns: minmax(0, 1fr); } .wz-ops.tres .wz-op { grid-template-columns: 40px minmax(0, 1fr); justify-items: start; text-align: left; } .wz-ops.tres .wz-op .wz-oi { grid-row: 1 / 3; } }
.wz .wz-l { padding: 9px 0; }

/* substituição de professor */
.lane button.pname { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: inherit; cursor: pointer; padding: 3px 8px 3px 3px; margin-left: -3px; border-radius: 999px; transition: background .15s; }
.lane button.pname:hover { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.tag.sub { background: var(--info-soft); color: var(--info); }
.lane-prof .sub-btn { flex: none; }
.modal.sub-m { width: min(620px, 100%); display: grid; gap: 14px; }
.sub-quem { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--pc) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--pc) 30%, var(--line)); }
.sub-quem > span { display: grid; flex: 1; min-width: 150px; } .sub-quem small { color: var(--muted); }
.sub-esc { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.sub-esc button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; color: var(--muted); cursor: pointer; }
.sub-esc button.on { background: var(--ink); color: var(--surface); }
.sub-ops { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.sub-op { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font: inherit; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .15s, transform .15s; }
.sub-op span { display: grid; min-width: 0; } .sub-op b { font-size: 14px; } .sub-op small { font-size: 11.5px; color: var(--ok); }
.sub-op:hover:not([disabled]) { transform: translateY(-1px); border-color: var(--pc, var(--gold)); }
.sub-op.on { border-color: var(--pc, var(--gold)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc, var(--gold)) 22%, transparent); }
.sub-op > i { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--pc); color: #fff; flex: none; }
.sub-op > i .ico { width: 13px; height: 13px; }
.sub-op[disabled] { opacity: .5; cursor: not-allowed; } .sub-op[disabled] small { color: var(--muted); }
.sub-op.novo { border-style: dashed; color: var(--gold-ink); } .sub-op.novo > .ico { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--gold-soft); box-sizing: border-box; flex: none; } .sub-op.novo small { color: var(--muted); }
.sub-av { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.sub-av input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ok); }
.sub-av small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.pf-ev { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; border: 1px dashed var(--line); cursor: pointer; margin-bottom: 8px; }
.pf-ev.on, .pf-ev:has(input:checked) { border-color: var(--info); background: var(--info-soft); }
.pf-ev input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--info); }
.pf-ev span { display: grid; } .pf-ev small { color: var(--muted); font-size: 12.5px; }
.sub-card { margin-top: 14px; display: grid; gap: 10px; }
.sub-card .card-h h2 { display: inline-flex; align-items: center; gap: 8px; }
.sub-lista { display: grid; gap: 4px; }
.sub-li { display: grid; grid-template-columns: 130px auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.sub-li span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; } .sub-li span .ico { width: 14px; height: 14px; color: var(--muted); }
.sub-li span i { width: 9px; height: 9px; border-radius: 50%; } .sub-li small { color: var(--muted); }
.sub-evs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sub-ev { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 640px) { .sub-li { grid-template-columns: minmax(0, 1fr) auto; } .sub-li small { display: none; } }

/* Experimentais: o que importa primeiro (próximas + ações lado a lado), funil compacto embaixo */
.exp-topo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 14px; }
.exp-topo > .card { margin: 0; display: grid; gap: 4px; }
.exp-topo .card-h h2 { display: inline-flex; align-items: center; gap: 8px; }
.exp-prox .card-h h2 .ico { color: #7B5BB5; }
.exp-pl { display: grid; gap: 2px; }
.exp-pr { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 6px; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: 10px; }
.exp-pr:first-child { border-top: 0; }
.exp-pr:hover { background: var(--surface-2); }
.exp-pr > .ico { width: 16px; height: 16px; color: var(--faint, var(--muted)); flex: none; }
.exp-q { display: grid; justify-items: center; min-width: 64px; padding: 5px 8px; border-radius: 12px; background: color-mix(in srgb, #7B5BB5 10%, var(--surface)); }
.exp-q b { font-size: 16px; line-height: 1.1; } .exp-q small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.exp-pr.hoje .exp-q { background: #7B5BB5; } .exp-pr.hoje .exp-q b, .exp-pr.hoje .exp-q small { color: #fff; }
.exp-pr .grow { display: grid; min-width: 0; } .exp-pr .grow b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .exp-pr .grow small { color: var(--muted); font-size: 12.5px; }
.exp-pp { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; flex: none; }
.exp-mais { justify-self: center; margin-top: 4px; }
.exp-vazio { display: flex; gap: 10px; align-items: center; padding: 10px 4px; color: var(--muted); } .exp-vazio span { display: grid; } .exp-vazio b { color: var(--ink); }
.exp-acoes.ok .card-h h2 { color: var(--ok); }
.exp-topo .exp-acoes .mk-row { padding-top: 8px; padding-bottom: 8px; }
.exp-funil { margin-top: 14px; display: grid; gap: 10px; }
.exp-funil .card-h { align-items: baseline; gap: 10px; justify-content: flex-start; }
.funil.tres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fun-mais { border: 1px dashed var(--line); background: none; border-radius: 10px; padding: 8px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.fun-mais:hover { color: var(--ink); border-color: var(--muted); }
@media (max-width: 980px) { .exp-topo { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .funil.tres { grid-template-columns: minmax(0, 1fr); } .exp-pp { display: none; } }
.exp-topo > .card { min-width: 0; }
.exp-acoes .mk-row { min-width: 0; width: 100%; }
.exp-acoes .mk-row .grow { min-width: 0; display: grid; }
.exp-acoes .mk-row .grow small { white-space: normal; overflow-wrap: anywhere; }

/* jornada do primeiro acesso: fase recém-concluída brilha uma vez (acompanha o som de fase) */
.wz-fase.feita i { animation: wzFaseBrilho 1.1s ease-out; }
.wz-fase.feita span { animation: wzFasePop .6s cubic-bezier(.3, 1.6, .5, 1); color: var(--gold-ink); }
@keyframes wzFaseBrilho { 0% { box-shadow: 0 0 0 0 rgba(131, 186, 173, .7); } 60% { box-shadow: 0 0 0 6px rgba(131, 186, 173, 0); } 100% { box-shadow: none; } }
@keyframes wzFasePop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .wz-fase.feita i, .wz-fase.feita span { animation: none; } }

/* ---------- Pedir remarcação: resumo de → para, seções numeradas, horários por dia ---------- */
.modal.env.rm { width: min(560px, calc(100vw - 24px)); }
/* iPad deitado e computador: duas colunas para caber tudo sem rolar (resumo, aula e motivo | horários) */
.rm-grid { display: grid; gap: 0; }
.rm-col { min-width: 0; }
.rm-col > .rm-sec:first-child, .rm-col > .rm-resumo:first-child { margin-top: 0; }
@media (min-width: 900px) {
  .modal.env.rm { width: min(980px, calc(100vw - 48px)); padding: 20px 22px; gap: 12px; }
  .modal.env.rm .env-para { margin: -6px 0 0; }
  .rm-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 22px; align-items: start; }
  .rm-grid > .rm-col + .rm-col { border-left: 1px solid var(--line); padding-left: 22px; }
  .rm-col .rm-sec { margin: 14px 0 8px; }
  .rm-col .rm-nota { margin-top: 12px; }
  .rm-dias { max-height: min(52vh, 440px); overflow: auto; }
}
.rm-resumo { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 12px 0 4px; }
.rm-resumo > div { border-radius: 12px; padding: 10px 12px; display: grid; gap: 1px; min-width: 0; border: 1px solid transparent; }
.rm-resumo small { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.rm-resumo b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-resumo span { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; min-height: 16px; }
.rm-resumo i, .rm-aula i, .rm-h small i { width: 8px; height: 8px; border-radius: 50%; background: var(--pc, var(--faint)); flex: none; display: inline-block; }
.rm-de { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 25%, transparent) !important; }
.rm-de small, .rm-de b { color: var(--bad); }
.rm-de b { text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: color-mix(in srgb, var(--bad) 55%, transparent); }
.rm-para { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent) !important; transition: background .25s, border-color .25s; }
.rm-para small, .rm-para b { color: var(--ok); }
.rm-para.vazio { background: var(--surface-2); border: 1px dashed var(--line) !important; }
.rm-para.vazio small, .rm-para.vazio b { color: var(--faint); }
.rm-seta { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); }
.rm-seta svg { width: 16px; height: 16px; }

.rm-sec { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; font-size: 13px; font-weight: 800; }
.rm-n { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: 11px; display: grid; place-items: center; flex: none; }
.rm-leg, .rm-opc { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.rm-leg i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; }
.rm-leg i.pouca { background: var(--warn); margin-left: 6px; }

.rm-aulas { display: flex; gap: 6px; flex-wrap: wrap; }
.rm-aula { border: 1px solid var(--line); background: var(--surface); border-radius: 11px; padding: 7px 12px 8px; text-align: left; display: grid; gap: 1px; min-width: 104px; transition: border-color .2s, background .2s; }
.rm-aula small { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.rm-aula b { font-size: 13.5px; }
.rm-aula span { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.rm-aula:hover { border-color: var(--faint); }
.rm-aula.on { border-color: var(--bad); background: var(--bad-soft); box-shadow: 0 0 0 1px var(--bad) inset; }
.rm-aula.on small, .rm-aula.on b { color: var(--bad); }

.rm-dias { display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: var(--surface-2); }
.rm-dia { display: grid; grid-template-columns: 74px 1fr; gap: 8px; align-items: center; }
.rm-dia + .rm-dia { border-top: 1px solid var(--line); padding-top: 6px; }
.rm-dn { display: grid; font-size: 11.5px; color: var(--muted); padding-left: 6px; }
.rm-dn b { font-size: 13px; color: var(--ink); }
.rm-hs { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.rm-h { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 6px 10px 6px 9px; display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center; text-align: left; border-left: 3px solid var(--pc, var(--line)); transition: transform .15s, border-color .2s, background .2s; }
.rm-h b { font-size: 14px; grid-row: span 2; }
.rm-h small { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.rm-h em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--ok); }
.rm-h em.pouca { color: var(--warn); }
.rm-h:hover { transform: translateY(-1px); border-color: var(--faint); border-left-color: var(--pc); }
.rm-h.on { background: var(--ok-soft); border-color: var(--ok); border-left-color: var(--pc); box-shadow: 0 0 0 1px var(--ok) inset; }
.rm-h.on b { color: var(--ok); }

.rm-mots { display: flex; gap: 6px; flex-wrap: wrap; }
.rm-mot { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 7px 12px; font-size: 13px; transition: background .2s, border-color .2s; }
.rm-mot svg { width: 14px; height: 14px; color: var(--muted); }
.rm-mot:hover { border-color: var(--faint); }
.rm-mot.on { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-ink); font-weight: 700; }
.rm-mot.on svg { color: var(--gold-ink); }

.rm-nota { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--info-soft); color: var(--info); font-size: 12.5px; line-height: 1.4; }
.rm-nota svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.rm-nota b { color: inherit; }
.modal.env.rm .env-aviso { display: flex; gap: 6px; align-items: center; }
.modal.env.rm .env-aviso svg { width: 14px; height: 14px; }

@media (max-width: 520px) {
  .rm-resumo { gap: 5px; }
  .rm-resumo > div { padding: 8px 9px; }
  .rm-resumo b { font-size: 13px; white-space: normal; }
  .rm-seta { width: 22px; height: 22px; }
  .rm-seta svg { width: 13px; height: 13px; }
  .rm-dia { grid-template-columns: 1fr; gap: 4px; }
  .rm-dn { display: flex; gap: 6px; align-items: baseline; }
  .rm-leg { display: none; }
}

/* Assistente: estilos no base.css (usados também pelo app do aluno) */

/* Alunos: cada filtro de situação com a cor do seu estágio (em dia verde, vencendo âmbar, atraso vermelho, inativo cinza).
   A bolinha (.sg-dot) também casava com [class*="sg-"] e voltava para a cor de destaque; agora herda a do botão. */
.seg .sg-dot { --sg: inherit; --sg-soft: inherit; }
.seg .sg-pago .faint, .seg .sg-vence .faint, .seg .sg-atraso .faint { color: var(--sg); opacity: .8; font-weight: 700; }

/* ---------- Financeiro: editar custos no próprio card ---------- */
.out-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.fin-edit .oe-lead { margin: -4px 0 12px; font-size: 13px; }
.fin-edit .oe-g { display: grid; gap: 8px; margin-bottom: 16px; }
.fin-edit .oe-g > .eyebrow { margin-bottom: 2px; }
.oe-row { display: grid; grid-template-columns: minmax(0, 1fr) 124px 34px; gap: 10px; align-items: center; }
.oe-nw { display: grid; gap: 2px; min-width: 0; }
.oe-row .oe-n { min-width: 0; width: 100%; height: 38px; }
.oe-row .money { width: 100%; justify-content: flex-start; padding-left: 12px; }
.oe-row .money input { flex: 1; min-width: 0; width: auto; }
.oe-row .oe-n[readonly] { background: transparent; border-color: transparent; font-weight: 700; padding-left: 0; }
.oe-sub { color: var(--muted); font-size: 11.5px; padding-left: 14px; }
.oe-x { width: 34px; height: 34px; }

.cfg-flash { animation: cfgFlash 1.6s ease-out; }
@keyframes cfgFlash { 0%, 35% { box-shadow: 0 0 0 3px var(--gold), var(--shadow, none); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- iPad deitado e computador: janelas que cabem na tela (25/11) ---------- */
@media (min-width: 900px) {
  /* nenhuma janela passa da altura da tela: o título fica fixo e o conteúdo rola por dentro */
  .scrim { padding-block: 20px; }
  .scrim > .modal { max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; }
  .scrim > .modal > .modal-h:first-child { position: sticky; top: -22px; z-index: 3; background: var(--surface); margin: -22px -22px 0; padding: 18px 22px 10px; }
  /* Início › números do dia: janela larga e alunos em várias colunas */
  .modal.kd-home { width: min(1040px, calc(100vw - 48px)); max-width: none; }
  .modal.kd-home .kd-g { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); column-gap: 6px; }
  .modal.kd-home .kd-g > .kd-gh, .modal.kd-home .kd-g > .kd-vazio { grid-column: 1 / -1; }
  .modal.kd-home.k-dia { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; column-gap: 12px; }
  .modal.kd-home.k-dia > .modal-h, .modal.kd-home.k-dia > .kd-lead { grid-column: 1 / -1; }
  .modal.kd-home.k-dia .kd-g { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .modal.kd-home .kd-p .chip { white-space: nowrap; font-size: 11px; padding-inline: 8px; flex: none; }
  .modal.kd-home .kd-p small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* Relatórios com resumo + números + lista: resumo e números à esquerda, lista à direita */
  .modal.info-modal.iv:has(> .iv-res) { width: min(1140px, calc(100vw - 40px)); grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); column-gap: 20px; align-items: start; }
  .modal.info-modal.iv:has(> .iv-res) > .modal-h { grid-column: 1 / -1; }
  .modal.info-modal.iv:has(> .iv-res) > .iv-top, .modal.info-modal.iv:has(> .iv-res) > .iv-res { grid-column: 1; }
  .modal.info-modal.iv:has(> .iv-res) > .iv-res { margin-top: 0; }
  .modal.info-modal.iv:has(> .iv-res) > :not(.modal-h):not(.iv-top):not(.iv-res) { grid-column: 2; grid-row: 2 / span 2; margin-top: 0; max-height: calc(100dvh - 140px); overflow-y: auto; align-self: stretch; }
  .modal.info-modal.iv:has(> .iv-res) .info-list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Financeiro: margem em destaque ao lado do resultado (25/11) ---------- */
.fh-mg { --mc: var(--ok); --ms: var(--ok-soft); display: grid; gap: 4px; align-content: start; padding: 10px 14px; border-radius: 14px; background: var(--ms); min-width: 190px; max-width: 260px; margin-left: auto; }
.fh-mg.warn { --mc: var(--warn); --ms: var(--warn-soft); } .fh-mg.bad { --mc: var(--bad); --ms: var(--bad-soft); }
.fh-mg .eyebrow { color: var(--mc); }
.fh-mg-v { font-size: 30px; font-weight: 800; line-height: 1; color: var(--mc); letter-spacing: -.02em; }
.fh-mg-bar { position: relative; height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--mc) 18%, transparent); margin: 4px 0 2px; }
.fh-mg-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--mc); }
.fh-mg-bar em { position: absolute; top: -3px; bottom: -3px; width: 2px; border-radius: 2px; background: var(--ink); opacity: .35; }
.fh-mg small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.fh-mg small b { color: var(--mc); }
.fh-top:has(.fh-mg) > .btn { align-self: flex-start; }
@media (max-width: 640px) { .fh-mg { margin-left: 0; max-width: none; width: 100%; order: 3; } }
.kd-mg { margin: 2px 0 0; font-size: 13px; } .kd-mg b { color: var(--ink); }

/* barra lateral: logo com o subtítulo inteiro (25/11) */
.side .brand { padding: 0 2px 4px; gap: 6px; }
.side .brand img { max-width: none; height: auto; }
.side .brand .side-hide { width: 28px; height: 28px; flex: none; align-self: flex-start; }

/* remarcação: faixa de dias + outra data */
.rm-faixa { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.rm-dch { flex: none; width: 74px; scroll-snap-align: start; display: grid; gap: 1px; text-align: center; padding: 7px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); transition: border-color .2s, background .2s; }
.rm-dch small { font-size: 11px; color: var(--muted); }
.rm-dch b { font-size: 14px; }
.rm-dch em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--ok); }
.rm-dch.cheio em { color: var(--faint); }
.rm-dch.cheio b { color: var(--muted); }
.rm-dch.atual em { color: var(--gold-ink); }
.rm-dch.on { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 1px var(--gold) inset; }
.rm-outra { display: flex; align-items: center; gap: 8px; margin: 2px 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.rm-outra .ico { width: 16px; height: 16px; }
.rm-outra .input { width: auto; min-height: 34px; padding: 0 10px; font-size: 13px; }
.rm-sem { font-size: 13px; padding: 6px 0; }

/* Relatórios mensais: botão com uma pasta que flutua; ao passar o mouse a pasta abre e as folhas sobem */
.rel-btn { gap: 10px; }
.rel-btn .rel-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); font-size: 11.5px; font-weight: 800; display: inline-grid; place-items: center; }
.pasta { position: relative; width: 24px; height: 18px; flex: none; animation: pasta-flutua 3s ease-in-out infinite; }
.pasta i { position: absolute; display: block; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.pasta .pb { inset: 2px 0 0 0; border-radius: 2px 4px 4px 4px; background: var(--gold-ink); }
.pasta .pb::before { content: ''; position: absolute; top: -3px; left: 0; width: 10px; height: 4px; border-radius: 2px 3px 0 0; background: var(--gold-ink); }
.pasta .pp { left: 4px; right: 4px; height: 12px; top: 4px; border-radius: 2px; background: #fff; border: 1px solid var(--line); }
.pasta .p1 { transform: translateY(1px); } .pasta .p2 { transform: translateY(2px); } .pasta .p3 { transform: translateY(3px); }
.pasta .pf { left: 0; right: 0; bottom: 0; height: 13px; border-radius: 3px 3px 4px 4px; background: var(--gold); transform-origin: bottom center; }
.rel-btn:hover .pasta .pf, .rel-btn:focus-visible .pasta .pf { transform: skewX(14deg) scaleY(.62); }
.rel-btn:hover .pasta .p1, .rel-btn:focus-visible .pasta .p1 { transform: translate(-7px, -9px) rotate(-16deg); }
.rel-btn:hover .pasta .p2, .rel-btn:focus-visible .pasta .p2 { transform: translate(6px, -10px) rotate(14deg); }
.rel-btn:hover .pasta .p3, .rel-btn:focus-visible .pasta .p3 { transform: translate(0, -12px) rotate(4deg); }
@keyframes pasta-flutua { 0%, 100% { translate: 0 0; } 50% { translate: 0 -2px; } }
@media (prefers-reduced-motion: reduce) { .pasta { animation: none; } .pasta i { transition: none; } }

/* Início: a lista de aulas do dia rola dentro do cartão e abre na aula de agora (ver tlAjustar em erp.js) */
.tl-rola { position: relative; max-height: max(380px, calc(100dvh - 300px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  margin-inline: -12px; padding: 10px 12px; }   /* folga para o brilho pulsante da aula de agora não ser cortado pela rolagem */

/* Alunos no iPad e telas médias: a tabela cabe inteira (o botão do WhatsApp não fica cortado) */
@media (max-width: 1280px) {
  .t-alunos td, .t-alunos th { padding-inline: 9px; }
  .t-alunos td:first-child { white-space: normal; min-width: 150px; }
  .t-alunos td:first-child b { display: block; line-height: 1.25; }
  .t-alunos td:nth-child(4) { white-space: normal; min-width: 92px; }
  .t-alunos th.r, .t-alunos td.r { padding-right: 12px; }
}

/* iPad/iPhone: o logotipo do menu lateral desce para fora da faixa da barra de status (desfocada no topo).
   30/11: no app instalado do iPad (iPadOS 26) a faixa desfocada vai até uns 90 px do topo e ainda pegava o logo
   com 44 px; agora o menu começa abaixo dela. Para compensar, os itens do menu ficam um pouco mais juntos. */
.side { padding-top: max(18px, calc(env(safe-area-inset-top, 0px) + 14px)); }
@media (display-mode: standalone), (display-mode: fullscreen) {
  .side { padding-top: max(92px, calc(env(safe-area-inset-top, 0px) + 68px)); gap: 12px; }
  .side .nav-label { padding-top: 10px; }
}

/* ---------- Aluno Wellhub (antigo Gympass): selo discreto com o ícone, filtro na lista, chave no cadastro ---------- */
:root { --wh: #FF486D; --wh-ink: #C8264A; --wh-soft: color-mix(in srgb, #FF486D 11%, transparent); }
.wh-ico { width: 16px; height: 16px; border-radius: 4px; flex: none; vertical-align: -3px; }
.wh-ico.solo { width: 15px; height: 15px; margin-right: 6px; }
.tag-wh { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px 1px 2px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; background: var(--wh-soft); color: var(--wh-ink); }
.tag-wh .wh-ico { width: 14px; height: 14px; border-radius: 50%; }
.fi-chips .tag-wh { font-size: 11.5px; padding: 3px 10px 3px 3px; }
.fi-chips .tag-wh .wh-ico { width: 17px; height: 17px; }
.al-pb.wh { padding-left: 8px; }
.al-pb.wh .wh-ico { margin-right: -2px; border-radius: 50%; width: 18px; height: 18px; }
.al-pb.wh.on { background: var(--wh-ink); border-color: var(--wh-ink); color: #fff; }
.fa-wh { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; margin-bottom: 4px; border: 1px dashed var(--line); border-radius: 16px; background: var(--surface); font: inherit; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.fa-wh .wh-ico { width: 34px; height: 34px; border-radius: 9px; filter: grayscale(1); opacity: .55; transition: filter .2s, opacity .2s; }
.fa-wh span { display: grid; gap: 2px; }
.fa-wh small { color: var(--muted); font-size: 12.5px; }
.fa-wh .tg { width: 34px; height: 20px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; flex: none; }
.fa-wh .tg::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); transition: transform .2s; }
.fa-wh:hover { border-color: var(--faint); }
.fa-wh.on { border-style: solid; border-color: var(--wh); background: var(--wh-soft); }
.fa-wh.on .wh-ico { filter: none; opacity: 1; }
.fa-wh.on .tg { background: var(--wh); }
.fa-wh.on .tg::after { transform: translateX(14px); }
.fi-vbox.fi-wh { background: var(--wh-soft); justify-items: start; }
.fi-vbox.fi-wh .wh-ico { width: 36px; height: 36px; border-radius: 10px; }
.fi-vbox.fi-wh b { font-family: var(--font-display); font-size: 22px; letter-spacing: -.01em; }
.fi-vbox.fi-wh small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }

/* luz na borda que segue o mouse e onda no clique (cartões do painel; o script fica no fim do erp.js) */
.mb::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; pointer-events: none; z-index: 1;
  background: radial-gradient(280px circle at var(--mb-x, -999px) var(--mb-y, -999px), var(--gold) 0%, color-mix(in srgb, var(--gold) 55%, transparent) 35%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: var(--mb-o, 0); transition: opacity .25s ease; }

.fi-card.mb::after { inset: 0; }
.card.mb::before, .kpi.mb::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(360px circle at var(--mb-x, -999px) var(--mb-y, -999px), color-mix(in srgb, var(--gold) 13%, transparent), transparent 70%);
  opacity: var(--mb-o, 0); transition: opacity .25s ease; }
.mb-ondas { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 1; }
.mb-ondas i { position: absolute; border-radius: 50%; transform: translate(-50%, -50%) scale(0); background: radial-gradient(circle, transparent 40%, color-mix(in srgb, var(--gold) 28%, transparent) 62%, transparent 72%); animation: mb-onda .7s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes mb-onda { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

/* ---------- Avisos fora do prazo (01/12): o studio decide se repõe ---------- */
.ped-sec { margin: 14px 0 4px; font-size: 15px; font-weight: 700; }
.ped-sub { margin: 0 0 8px; font-size: 12.5px; color: var(--muted); }
.fi-card.c-warn { --c: var(--warn); --cs: var(--warn-soft); }
.pedido-card.fp-card { border-left: 3px solid var(--warn); }
.pedido-card.fp-card.decidido { border-left-color: var(--line); background: var(--surface-2); }
.pedido-card.fp-card .pc-top { flex-wrap: wrap; gap: 8px; }
.fi-fora .pedidos-list { gap: 8px; }
.fi-fora .pedido-card { padding: 10px 12px; gap: 8px; }
.fi-fora .fi-ch .chip { margin-left: auto; }

/* ---------- Multi: seletor de modalidade (Solum · Gravity · Pilates) acima do Início, com efeito gooey ---------- */
.mods { position: relative; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); padding: 3px; margin: 8px 0 0; border-radius: 999px; background: var(--side-2); isolation: isolate; }
.mods[hidden] { display: none; }
.mods-svg { position: absolute; width: 0; height: 0; overflow: hidden; }
.mods-camada { position: absolute; inset: -44px; pointer-events: none; filter: url(#mods-goo); z-index: 0; }
.goo-pil, .goo-gota { position: absolute; left: 0; top: 0; border-radius: 999px; will-change: transform; }
.mod-op { position: relative; z-index: 1; height: 32px; border: 0; border-radius: 999px; background: none; color: var(--side-muted); font: inherit; font-size: 12.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; white-space: nowrap; transition: color .3s; }
.mod-op:hover { color: var(--side-ink); }
.mod-op.on { color: #171A1C; }
.mod-op i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c); font-size: 0; font-style: normal; opacity: .6; transition: background .3s, opacity .3s; }
.mod-op.on i { background: #171A1C; opacity: .55; }
.mod-op:focus-visible { outline: 2px solid var(--c); outline-offset: 1px; }
/* quatro modalidades: sem o ponto colorido, letra um pouco menor, para caber na barra */
.mods.mods-4 .mod-op { font-size: 12px; gap: 0; letter-spacing: -.01em; }
.mods.mods-4 .mod-op i { display: none; }
@media (min-width: 981px) { .app.side-off .mods.mods-4 .mod-op i { display: grid; } }
/* barra recolhida: as três em coluna, só a inicial */
@media (min-width: 981px) {
  .app.side-off .mods { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 34px; border-radius: 14px; margin-inline: 3px; }
  .app.side-off .mod-op { height: 34px; }
  .app.side-off .mod-op i { width: auto; height: auto; background: none; opacity: 1; font-size: 12px; font-weight: 800; color: inherit; }
}
/* celular e iPad em pé: a barra fica escondida, então o nome da modalidade aparece no topo (toque abre o menu) */
.mod-chip { display: none; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; flex: none; }
.mod-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
@media (max-width: 980px) { .mod-chip { display: inline-flex; } }
body.mod-saindo .main { opacity: 0; transform: translateY(6px); transition: opacity .24s, transform .24s; }
@media (prefers-reduced-motion: reduce) { body.mod-saindo .main { transform: none; } }

/* ---------- Multi: Início da modalidade em montagem ---------- */
.mont { display: grid; gap: 16px; max-width: 980px; }
.mont-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.mont-av { width: 56px; height: 56px; border-radius: 50%; background: var(--c); color: #171A1C; font-family: var(--font-display); font-size: 24px; display: grid; place-items: center; box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 22%, transparent); }
.mont-tx b { font-size: 17px; }
.mont-tx p { margin: 4px 0 0; max-width: 58ch; }
.mont-cta { display: grid; gap: 6px; justify-items: end; text-align: right; }
.mont-cta small { font-size: 12px; }
.mont-lista .card-h { margin-bottom: 4px; }
.mont-it { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.mont-it small { display: block; color: var(--muted); font-size: 13px; margin-top: 1px; }
.mont-n { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--muted); }
.mont-n .ico { width: 15px; height: 15px; }
.mont-it.ok .mont-n { background: var(--ok); border-color: var(--ok); color: #fff; }
.mont-b { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) {
  .mont-hero { grid-template-columns: auto minmax(0, 1fr); }
  .mont-cta { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .mont-it { grid-template-columns: 30px minmax(0, 1fr); align-items: start; }
  .mont-b { grid-column: 2; justify-content: flex-start; }
}
.mont-aviso { grid-column: 1 / -1; grid-row: 2; margin: 0; }

/* ---------- Cards dos professores: foco de luz que segue o mouse (Spotlight Card, do React Bits) ----------
   Um círculo de luz na cor do professor, por dentro do card, que acende ao passar o mouse (0,5 s).
   Substitui o brilho dourado interno nesses cards; a luz na borda continua. O script fica no fim do erp.js. */
.prof-card { position: relative; }
.prof-card > * { position: relative; z-index: 1; }
.prof-card::before, .prof-card.mb::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at var(--sx, 50%) var(--sy, 50%), color-mix(in srgb, var(--pc, var(--gold)) 34%, transparent), transparent 80%);
  opacity: 0; transition: opacity .5s ease; }
.prof-card:hover::before, .prof-card:focus-within::before { opacity: .6; }
:root[data-theme="dark"] .prof-card:hover::before, :root[data-theme="dark"] .prof-card:focus-within::before { opacity: .75; }
@media (hover: none) { .prof-card:focus-within::before { opacity: 0; } }
.al-preco[hidden] { display: none; }
