/* App do aluno: tela única de celular. Topo escuro com o logo, cartões claros, ações em dourado */
body { background: var(--bg); }
.shell { max-width: 480px; margin: 0 auto; min-height: 100%; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 700px) { body { background: var(--side); } .shell { background: var(--bg); box-shadow: 0 0 60px rgba(0, 0, 0, .35); min-height: 100vh; } }

/* login */
.login { min-height: 100vh; min-height: 100dvh; background: var(--side); color: var(--side-ink); display: grid; align-content: center; gap: 28px; padding: 32px 22px calc(32px + env(safe-area-inset-bottom, 0px)); max-width: 480px; margin: 0 auto; }
.login img { width: 240px; max-width: 80%; margin: 0 auto; }
.login form { display: grid; gap: 14px; }
.login .field label { color: var(--side-muted); }
.login .input { background: var(--side-2); border-color: #2C3439; color: var(--side-ink); min-height: 52px; font-size: 16px; }
.login .input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(131, 186, 173, .2); }
.login .btn { min-height: 52px; font-size: 16px; }
.login .hint { text-align: center; color: var(--side-muted); font-size: 13.5px; }
.login .hint b { color: var(--side-ink); }
.login .err { background: rgba(226, 103, 92, .15); color: #F09A91; padding: 10px 14px; border-radius: 10px; font-size: 14px; }

/* topo */
.top { background: var(--side); display: flex; align-items: center; justify-content: space-between; padding: calc(14px + env(safe-area-inset-top, 0px)) 18px 54px; border-radius: 0 0 26px 26px; }
.top img { height: 40px; width: auto; }
.icon-out { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #2C3439; background: transparent; color: var(--side-ink); display: grid; place-items: center; }
.hello { display: flex; align-items: center; gap: 14px; margin: -34px 16px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; box-shadow: var(--shadow); position: relative; }
.hello h1 { font-size: 22px; }
.hello p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.me-photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.me-photo.ini { display: grid; place-items: center; background: var(--gold-grad); color: #171A1C; font-weight: 800; font-family: var(--font-display); font-size: 18px; }
.stack { display: grid; gap: 14px; padding: 14px 16px 0; }

/* cartões */
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; min-width: 0; }
.box h2 { font-size: 17px; margin-bottom: 12px; }
.next { display: grid; gap: 16px; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold-soft); }
.next .when { display: flex; gap: 16px; align-items: center; }
.next .date { width: 66px; height: 74px; border-radius: 16px; background: var(--gold-soft); color: var(--gold-ink); display: grid; place-items: center; text-align: center; line-height: 1.05; flex: none; }
.next .date b { font-family: var(--font-display); font-size: 28px; display: block; }
.next .date small { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.next .info { min-width: 0; display: grid; justify-items: start; }
.next .info .big { font-family: var(--font-display); font-size: 23px; font-weight: 800; }
.next .info .prof { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.next .acts { display: grid; gap: 8px; }
.next .acts:empty { display: none; }
.next .acts .btn { min-height: 52px; font-size: 16px; width: 100%; }
.done { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.done .ico { width: 22px; height: 22px; }
.pf { border-radius: 50%; object-fit: cover; flex: none; display: inline-block; }
.pedido { background: var(--gold-soft); border-color: transparent; display: grid; gap: 12px; }
.pedido .eyebrow { display: flex; gap: 6px; align-items: center; }
.pedido .eyebrow .ico { width: 15px; height: 15px; }
.troca { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; }
.troca small { display: block; color: var(--muted); font-size: 12px; }
.troca b { display: block; font-size: 14.5px; }
.troca > span { color: var(--gold-ink); }
.pedido .btn { justify-self: start; }
.teacher { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.teacher b { display: block; font-size: 17px; font-family: var(--font-display); }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.teacher + .kv { border-top: 0; }
.kv span { color: var(--muted); }
.kv b { text-align: right; }
.hrs-list { display: grid; gap: 4px; justify-items: end; }
.hrs-list span { color: var(--ink); background: var(--surface-2); border-radius: 8px; padding: 3px 9px; font-variant-numeric: tabular-nums; }
.info-row { display: flex; gap: 12px; padding: 4px 0 10px; }
.info-row + .info-row { border-top: 1px solid var(--line); padding-top: 12px; }
.info-row .ico { width: 22px; height: 22px; color: var(--gold-ink); flex: none; margin-top: 2px; }
.info-row small { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.info-row p { margin: 3px 0 0; font-size: 15.5px; font-weight: 500; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.box h2 + .list-row { border-top: 0; }
.list-row .dd { width: 42px; text-align: center; flex: none; line-height: 1.1; }
.list-row .dd b { display: block; font-family: var(--font-display); font-size: 20px; }
.list-row .dd small { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.list-row .mid { flex: 1; min-width: 0; display: grid; gap: 4px; justify-items: start; }
.list-row .mid .chip { font-size: 11.5px; padding: 1px 8px; white-space: normal; }
.row-acts { display: grid; gap: 6px; }
.notif { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); }
.box h2 + .notif { border-top: 0; padding-top: 0; }
.notif.new b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: middle; }
.notif small { color: var(--faint); }
.notif p { margin: 0; color: var(--muted); font-size: 14.5px; }
.legend-box .leg { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px 0; font-size: 13.5px; color: var(--muted); }
.legend-box .leg .chip { justify-self: start; white-space: normal; }
.install { display: flex; gap: 12px; align-items: center; font-size: 13.5px; color: var(--muted); }
.install .ico { color: var(--gold); width: 22px; height: 22px; }
.rate { display: flex; gap: 6px; justify-content: center; margin: 6px 0 12px; }
.rate button { border: 0; background: none; font-size: 38px; line-height: 1; color: var(--line); padding: 2px; }
.rate button.on { color: var(--gold); }

/* folha inferior */
.sheet-bg { position: fixed; inset: 0; background: rgba(8, 11, 13, .5); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg.anim { animation: fade .15s; }
.sheet-bg.anim .sheet { animation: rise .22s ease-out; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(30px); opacity: .4; } }
.sheet { background: var(--surface); width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; border-radius: 24px 24px 0 0; padding: 10px 18px calc(20px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 16px; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 2px; }
.sheet h2 { font-size: 21px; }
.sheet .btn.block { width: 100%; min-height: 52px; font-size: 16px; }
.sheet-foot { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom, 0px)); background: var(--surface); padding: 10px 0 4px; display: grid; gap: 8px; border-top: 1px solid var(--line); }
.opts { display: flex; gap: 8px; flex-wrap: wrap; }
.opts button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 10px 16px; font-weight: 600; }
.opts button.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.callout { background: var(--surface-2); border-radius: 14px; padding: 12px 14px; font-size: 14px; color: var(--muted); }
.callout.warn { background: var(--warn-soft); color: var(--warn); }
.day-group h3 { font-size: 14px; font-family: var(--font-body); font-weight: 700; color: var(--muted); margin: 2px 0 8px; }
/* remarcação: horários em grade compacta (hora grande + vagas, ou o nome de outro professor) */
.hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 8px; }
.hchip { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 58px; padding: 8px 4px 7px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; min-width: 0; }
.hchip .t { font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hchip small { font-size: 11.5px; font-weight: 700; color: var(--ok); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hchip.outro small { color: var(--muted); }
.hchip.on { border-color: var(--gold); background: var(--gold-soft); }
.hchip.on small { color: var(--ink); }
.rm-prof { display: flex; align-items: center; gap: 8px; }
.rm-prof img, .rm-prof .av { flex: none; }
.push { position: fixed; top: calc(10px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); width: min(460px, calc(100% - 24px)); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 18px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; z-index: 95; animation: drop .3s ease-out; cursor: pointer; }
@keyframes drop { from { transform: translate(-50%, -20px); opacity: 0; } }
.push img { width: 38px; height: 38px; border-radius: 9px; }
.push b { display: block; font-size: 14px; }
.push small { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* v6: tela compacta — topo de uma linha, próxima aula em destaque, resto em acordeão */
.top { padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 12px; border-radius: 0 0 22px 22px; gap: 10px; }
.top > img { height: 30px; }
.who-top { display: flex; align-items: center; gap: 9px; margin-left: auto; color: var(--side-ink); min-width: 0; }
.who-top b { display: block; font-size: 14.5px; line-height: 1.15; }
.who-top small { color: var(--side-muted); font-size: 12px; }
.who-top .me-photo { width: 36px; height: 36px; font-size: 13px; }
.stack { gap: 10px; padding-top: 12px; }
.next { gap: 12px; padding: 16px; }
.next .date { width: 58px; height: 64px; }
.next .date b { font-size: 25px; }
.next .info .big { font-size: 21px; }
.next .acts { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.next .acts .btn { min-height: 48px; font-size: 15px; white-space: normal; line-height: 1.2; text-align: center; padding: 6px 12px; }
.done { padding: 10px 12px; }
.pedido { padding: 14px; gap: 8px; }
.accs { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.acc + .acc { border-top: 1px solid var(--line); }
.acc-h { display: flex; align-items: center; gap: 11px; width: 100%; border: 0; background: none; padding: 14px 16px; text-align: left; min-height: 52px; }
.acc-h > .ico:first-child { color: var(--gold-ink); width: 20px; height: 20px; }
.acc-h b { font-size: 15px; flex: none; }
.acc-sum { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; display: flex; align-items: center; gap: 6px; }
.acc-sum .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); display: inline-block; flex: none; }
.acc-sum .dot.ok { background: var(--ok); } .acc-sum .dot.warn { background: var(--warn); } .acc-sum .dot.bad { background: var(--bad); }
.chev { width: 18px; height: 18px; color: var(--faint); transition: transform .2s; flex: none; }
.acc.open .chev { transform: rotate(180deg); }
.acc.open { background: var(--surface); }
.acc-b { padding: 0 16px 16px; display: grid; gap: 2px; animation: fade .18s; }
.acc-b .btn { justify-self: start; margin-top: 8px; }
.badge-n { background: var(--gold); color: #171A1C; font-weight: 800; font-size: 11.5px; border-radius: 999px; padding: 2px 8px; }
.acc-b .install { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.acc-b .list-row:first-child, .acc-b .notif:first-child { border-top: 0; padding-top: 4px; }
.acc-b .hrs-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }

/* v7: cabeçalho com logo centralizado e saudação abaixo */
.top { position: relative; display: grid; grid-template-columns: 1fr; justify-content: stretch; justify-items: center; gap: 14px; padding: calc(18px + env(safe-area-inset-top, 0px)) 18px 18px; border-radius: 0 0 26px 26px; }
.top .top-logo { height: 46px; width: auto; display: block; }
.top .icon-out { position: absolute; right: 14px; top: calc(14px + env(safe-area-inset-top, 0px)); width: 36px; height: 36px; }
.greet { display: flex; align-items: center; justify-content: center; text-align: left; gap: 12px; width: 100%; padding-top: 14px; border-top: 1px solid #242A2D; color: var(--side-ink); }
.greet b { display: block; font-family: var(--font-display); font-size: 20px; line-height: 1.15; }
.greet small { color: var(--side-muted); font-size: 13px; }
.greet .me-photo { width: 44px; height: 44px; font-size: 15px; }
.stack { padding-top: 14px; }

/* v8: check-in verde com celebração */
.btn.checkin { background: var(--ok); border-color: var(--ok); color: #fff; box-shadow: 0 6px 18px -8px var(--ok); }
.btn.checkin:hover { filter: brightness(1.05); }
.btn.checkin[disabled] { background: var(--surface-2); border-color: var(--line); color: var(--muted); box-shadow: none; opacity: 1; }
/* check-in liberado: pulso leve (o anel verde cresce e some) para chamar o toque */
.btn.checkin:not([disabled]) { animation: ck-pulsa 2.2s ease-in-out infinite; }
@keyframes ck-pulsa {
  0% { box-shadow: 0 6px 18px -8px var(--ok), 0 0 0 0 color-mix(in srgb, var(--ok) 45%, transparent); transform: scale(1); }
  45% { transform: scale(1.025); }
  70% { box-shadow: 0 6px 18px -8px var(--ok), 0 0 0 10px color-mix(in srgb, var(--ok) 0%, transparent); }
  100% { box-shadow: 0 6px 18px -8px var(--ok), 0 0 0 0 color-mix(in srgb, var(--ok) 0%, transparent); transform: scale(1); }
}
.btn.checkin.pop { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1); }
/* estrela de avaliar sempre amarelinha */
.ico-star { fill: #F6C33B; stroke: #E0A417; }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(.9); } 100% { transform: scale(1.04); } }
.ok-overlay { position: fixed; inset: 0; z-index: 120; display: grid; place-content: center; justify-items: center; gap: 6px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .18s; text-align: center; }
.ok-overlay.out { opacity: 0; transition: opacity .28s; }
.ok-overlay b { font-family: var(--font-display); font-size: 24px; margin-top: 10px; color: var(--ok); }
.ok-overlay small { color: var(--muted); font-size: 15px; }
.ok-burst { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.ok-burst svg { width: 104px; height: 104px; position: relative; z-index: 1; }
.ok-burst circle { fill: var(--ok); stroke: none; transform-origin: center; animation: grow .42s cubic-bezier(.3, 1.5, .5, 1) both; }
.ok-burst path { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .35s .3s ease-out forwards; }
.ok-burst .ring { position: absolute; inset: 8px; border-radius: 50%; border: 3px solid var(--ok); opacity: 0; animation: ring 1s .2s ease-out; }
.ok-burst .ring.r2 { animation-delay: .4s; }
@keyframes grow { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ring { 0% { transform: scale(.8); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ok-burst path { stroke-dashoffset: 0; } }

/* v10: sugestão do estúdio após recusa */
.box.pedido.sugestao { background: var(--surface); border: 1.5px solid var(--bad); }
.sug-txt { margin: 2px 0 8px; font-size: 14px; color: var(--muted); }
.acts2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.acts2 .btn { justify-self: stretch; min-height: 44px; white-space: normal; line-height: 1.2; }

/* v17: fundo todo preto, sino de notificações, botão "não vou" com contorno vermelho */
html, body { background: var(--side); }
.shell { background: var(--side) !important; box-shadow: none !important; }
.top { background: var(--side); }
.top .bell { position: absolute; right: 14px; top: calc(14px + env(safe-area-inset-top, 0px)); width: 40px; height: 40px; border-radius: 50%; border: 1px solid #2C3439; background: transparent; color: var(--side-ink); display: grid; place-items: center; }
.top .bell .ico { width: 20px; height: 20px; }
.top .bell.tem { border-color: rgba(131, 186, 173, .55); color: #B5DDD3; animation: sinoBalanca 3.2s ease-in-out infinite; transform-origin: 50% 10%; }
.bell .led { position: absolute; top: 5px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: #FF3B30; box-shadow: 0 0 0 2px var(--side), 0 0 8px 2px rgba(255, 59, 48, .8); animation: led 1.1s ease-in-out infinite; }
@keyframes led { 0%, 100% { opacity: 1; box-shadow: 0 0 0 2px var(--side), 0 0 10px 3px rgba(255, 59, 48, .9); } 50% { opacity: .25; box-shadow: 0 0 0 2px var(--side), 0 0 0 0 rgba(255, 59, 48, 0); } }
@keyframes sinoBalanca { 0%, 82%, 100% { transform: rotate(0); } 86% { transform: rotate(14deg); } 90% { transform: rotate(-12deg); } 94% { transform: rotate(7deg); } 97% { transform: rotate(-4deg); } }
.btn.nao-vou { background: transparent; border: 1.5px solid var(--bad); color: var(--bad); }
.btn.nao-vou:hover { background: var(--bad-soft); }
.plano-acts { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.nt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.icon-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--muted); flex: none; }
.icon-x.sm { width: 30px; height: 30px; }
.icon-x .ico { width: 16px; height: 16px; }
.nt-list { display: grid; gap: 8px; }
.nt-list .notif { display: flex; gap: 10px; align-items: flex-start; }
.nt-body { flex: 1; min-width: 0; }
.nt-vazio { display: grid; justify-items: center; gap: 8px; padding: 28px 0; color: var(--muted); }
.nt-vazio .ico { width: 30px; height: 30px; }
.nt-limpar { color: var(--bad); }
.push-x { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); display: grid; place-items: center; color: var(--muted); padding: 0; }
.push-x .ico { width: 15px; height: 15px; }
.push.out { opacity: 0; transform: translate(-50%, -10px); transition: opacity .2s, transform .2s; }

/* botão discreto para voltar ao painel do estúdio (só quando o app foi aberto a partir dele) */
.voltar { position: absolute; left: 14px; top: calc(16px + env(safe-area-inset-top, 0px)); z-index: 3; display: inline-flex; align-items: center; gap: 2px; padding: 6px 12px 6px 7px; border-radius: 999px; border: 1px solid #2C3439; color: var(--side-muted); text-decoration: none; font-size: 12.5px; font-weight: 600; }
.voltar .ico { width: 16px; height: 16px; }
.voltar:hover { color: var(--side-ink); border-color: var(--gold); }
.login { position: relative; }

/* v20: sino sem círculo, logo maior, "Próximas aulas" dentro do card da próxima aula */
.top .bell { border: 0 !important; background: transparent; width: 42px; height: 42px; }
.top .bell .ico { width: 23px; height: 23px; }
.bell .led { top: 7px; right: 8px; }
.top .top-logo { height: 60px; }
.prox-btn { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 4px; padding: 11px 2px 2px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; color: var(--ink); cursor: pointer; }
.prox-btn .ico { width: 18px; height: 18px; color: var(--gold-ink); flex: none; }
.prox-btn b { font-size: 15px; flex: 1; }
.prox-btn span { font-size: 13px; color: var(--muted); }
.prox-btn .chev { color: var(--muted); transition: transform .2s; }
.prox-btn.open .chev { transform: rotate(180deg); }
.prox-list { display: grid; }

/* v24: notificações num popup centralizado (não ocupa a tela) e lembrete fixo da aula em até 2h */
.sheet-bg.centro { align-items: center; padding: 20px; }
.sheet-bg.centro .sheet { max-width: 360px; max-height: 72vh; border-radius: 22px; padding: 16px 16px 14px; gap: 12px; }
.sheet-bg.centro.anim .sheet { animation: popC .24s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes popC { from { transform: scale(.9); opacity: 0; } }
.sheet-bg.centro .sheet h2 { font-size: 18px; }
.sheet-bg.centro .sheet-foot { position: static; padding-top: 8px; }
.sheet-bg.centro .nt-limpar { min-height: 42px; font-size: 14px; }
.nt-urg { display: grid; gap: 6px; padding: 12px; border-radius: 14px; background: var(--gold-soft); border: 1.5px solid var(--gold); animation: urgPulso 1.6s ease-in-out infinite; }
.nt-urg b { display: flex; align-items: center; gap: 7px; color: var(--gold-ink); font-size: 15px; }
.nt-urg b .ico { width: 17px; height: 17px; }
.nt-urg p { margin: 0; font-size: 13.5px; }
.nt-urg small { font-size: 11.5px; color: var(--muted); }
.nt-urg .acts2 { margin-top: 4px; }
.nt-urg .btn { min-height: 42px; font-size: 14px; }
@keyframes urgPulso { 0%, 100% { box-shadow: 0 0 0 0 rgba(95, 163, 148, .45); } 50% { box-shadow: 0 0 0 7px rgba(95, 163, 148, 0); } }
/* sino com aula chegando: balança mais vezes e o LED pisca mais rápido */
.top .bell.urgente { animation: sinoBalanca 1.6s ease-in-out infinite; }
.bell.urgente .led { animation-duration: .7s; }
.teacher .m-heart { margin-left: auto; }
.pedido .eyebrow .m-lat { font-weight: 700; letter-spacing: inherit; }
.pedido .eyebrow .m-lat time { text-transform: none; }

/* logo Pilatech: só o nome no topo; com "seu studio na palma da mão" no login */
.top .top-logo { height: auto; width: min(160px, 44vw); }
.login img { width: min(280px, 78vw); }

/* fundo levemente desfocado atrás das janelas */
.sheet-bg { background: rgba(8, 11, 13, .36); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* ---------- Pesquisa mensal com emojis ---------- */
/* Faixa da avaliação com metade da largura da tela, centralizada; tocar em qualquer parte abre a pesquisa */
.pesq-card { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 12px; text-align: left; width: 50%; min-width: 190px; justify-self: center;
  background: linear-gradient(110deg, var(--gold-soft, #E2F1EC), var(--surface) 75%); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); animation: pqBrilho 3s ease-in-out infinite; }
@keyframes pqBrilho { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 0%, transparent); } 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent); } }
.pq-emo-gira { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; background: color-mix(in srgb, var(--gold) 22%, var(--surface)); cursor: pointer; }
.pq-emo-gira span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; opacity: 0; animation: pqTroca 6s infinite; animation-delay: calc(var(--i) * 1.2s); }
@keyframes pqTroca { 0% { opacity: 0; transform: scale(.5) rotate(-12deg); } 4% { opacity: 1; transform: scale(1.15); } 8%, 18% { opacity: 1; transform: none; } 22%, 100% { opacity: 0; transform: scale(.7); } }
.pq-txt { display: grid; gap: 3px; min-width: 0; border: 0; padding: 0; background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; padding-right: 8px; }
.pq-txt b { font-size: 14px; line-height: 1.2; }
.pq-txt small { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 11.5px; line-height: 1.3; white-space: nowrap; }
.pq-txt small .ico { width: 12px; height: 12px; flex: none; }
.pq-ir { min-height: 38px; padding: 0 16px; }
.pq-pular { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); display: grid; place-items: center; padding: 0; cursor: pointer; }
.pq-pular .ico { width: 12px; height: 12px; }
@media (prefers-reduced-motion: reduce) { .pesq-card { animation: none; } .pq-emo-gira span { animation: none; opacity: 0; } .pq-emo-gira span:last-child { opacity: 1; } }
.pq-priv { display: inline-flex; align-items: center; justify-content: center; gap: 5px; color: var(--muted); font-size: 12px; }
.pq-priv .ico, .callout .ico { width: 14px; height: 14px; vertical-align: -2px; }
.pq-top { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-bottom: 6px; }
.pq-top small { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pq-prog { display: flex; gap: 5px; }
.pq-prog i { flex: 1; height: 6px; border-radius: 99px; background: var(--line); transition: background .3s; }
.pq-prog i.ok { background: var(--gold); }
.pq-prog i.on { background: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.pq-q { display: grid; gap: 12px; text-align: center; padding: 8px 0 4px; }
.pq-q.in { animation: pqEntra .32s cubic-bezier(.2, .9, .3, 1); }
.pq-q.in.volta { animation-name: pqVolta; }
@keyframes pqVolta { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes pqEntra { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.pq-q h2 { font-size: 20px; line-height: 1.25; margin: 0; text-wrap: balance; }
.pq-priv { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 2px 0 4px; font-size: 12.5px; color: var(--muted); text-align: center; }
.pq-priv .ico { width: 13px; height: 13px; flex: none; }
.pq-crit { color: var(--gold-ink, var(--gold)); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.pq-prof { display: flex; justify-content: center; }
.pq-emos-g { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.pq-e { border: 0; background: none; display: grid; justify-items: center; gap: 6px; padding: 10px 2px; border-radius: 18px; cursor: pointer; transition: background .2s, opacity .2s, transform .2s; -webkit-tap-highlight-color: transparent; }
.pq-e span { font-size: 44px; line-height: 1; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), filter .2s; filter: grayscale(.15); }
.pq-e small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.pq-e:hover span { transform: scale(1.12); }
.pq-e.on { background: var(--gold-soft, #E2F1EC); }
.pq-e.on span { transform: scale(1.28); filter: none; animation: pqPop .4s cubic-bezier(.3, 1.7, .5, 1); }
.pq-e.on small { color: var(--ink); }
.pq-e.off { opacity: .4; }
@keyframes pqPop { 0% { transform: scale(1); } 50% { transform: scale(1.45) rotate(-8deg); } 100% { transform: scale(1.28); } }
.pq-emo-big { font-size: 56px; line-height: 1; animation: pqPop .4s cubic-bezier(.3, 1.7, .5, 1); }
.pq-nps { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; }
.pq-nps button { aspect-ratio: 1; min-width: 0; min-height: 0; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 800; font-size: 15px; color: var(--ink); padding: 0; transition: transform .2s, background .2s; }
.pq-nps button.r { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.pq-nps button.y { border-color: color-mix(in srgb, var(--warn, #E0A732) 45%, var(--line)); }
.pq-nps button.g { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.pq-nps button.on.r { background: var(--bad); color: #fff; transform: scale(1.12); }
.pq-nps button.on.y { background: var(--warn, #E0A732); color: #171A1C; transform: scale(1.12); }
.pq-nps button.on.g { background: var(--ok); color: #fff; transform: scale(1.12); }
.pq-escala { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.pq-resumo { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pq-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 99px; padding: 5px 12px 5px 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.pq-chip span { font-size: 20px; line-height: 1; }
.pq-q .field { text-align: left; }
.pq-obg { display: grid; gap: 10px; text-align: center; padding: 18px 0 6px; }
.pq-obg h2 { margin: 0; }
.pq-big { font-size: 72px; line-height: 1; animation: pqPop .5s cubic-bezier(.3, 1.7, .5, 1); }
@media (max-width: 460px) { .pq-nps { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; } .pq-nps button { aspect-ratio: auto; height: 44px; } }
@media (max-width: 360px) { .pq-e span { font-size: 36px; } }
@media (prefers-reduced-motion: reduce) { .pq-emos span, .pq-q, .pq-e.on span, .pq-emo-big, .pq-big { animation: none; } }

/* Botões de confirmação (o efeito vem do motion.js/motion.css): cor da onda do clique no app do aluno */
.btn.checkin:not(.danger):not(.primary):not(.ok)[data-confirma] .m-onda { background: rgba(255, 255, 255, .32); }
.btn:not(.checkin):not(.danger):not(.primary):not(.ok)[data-confirma] .m-onda { background: color-mix(in srgb, var(--gold) 32%, transparent); }
.btn.nao-vou[data-confirma] .m-onda { background: color-mix(in srgb, var(--bad) 22%, transparent); }

/* ---------- Assistente do aluno (estilos comuns no base.css) ---------- */
.shell { padding-bottom: 84px; }
/* "ilha": janela flutuante — cartão com margem dos lados, cantos redondos em volta, centrado na tela.
   Vale para todas as janelas do app do aluno (assistente, remarcação, não vou, avaliação); os avisos usam o .centro */
.sheet-bg.ilha { align-items: center; padding: calc(16px + env(safe-area-inset-top, 0px)) 18px calc(16px + env(safe-area-inset-bottom, 0px)); }
.ilha .sheet { width: 100%; max-width: 440px; max-height: 100%; border-radius: 28px; padding: 22px 20px 22px; box-shadow: 0 24px 60px rgba(8, 11, 13, .28); grid-template-columns: minmax(0, 1fr); }
.ilha .sheet .grab { display: none; }
.ilha .sheet-foot { bottom: -22px; padding-bottom: 0; }
.sheet-bg.ilha.anim .sheet { animation: popC .26s cubic-bezier(.2, 1.3, .4, 1); }
.ast-sh .ast-ra .btn { flex: 1 1 auto; }
.ast-sh .ast-ir { width: 40px; height: 40px; flex: none; }
/* sugestões em grade de 2 colunas, botões do mesmo tamanho; o último ocupa a linha inteira quando sobra sozinho */
.ast-sh .ast-sug > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ast-sh .ast-ex { font-size: 13.5px; line-height: 1.25; text-align: center; border-radius: 16px; padding: 10px 10px; min-height: 52px; display: flex; align-items: center; justify-content: center; }
.ast-sh .ast-ex:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 44px; }
.ast-fab { z-index: 30; }

/* ---------- Meu plano, Objetivo e saúde e Como funciona como 3 botões separados (25/11) ---------- */
.accs.accs-sep { gap: 10px; background: none; border: 0; border-radius: 0; overflow: visible; }
.accs-sep .acc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.accs-sep .acc + .acc { border-top: 1px solid var(--line); }
.accs-sep .acc.open { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.accs-sep .acc-h { min-height: 42px; padding: 9px 14px; gap: 10px; }
.accs-sep .acc-h > .ico:first-child { width: 18px; height: 18px; }
.accs-sep .acc-h b { font-size: 14.5px; }
.accs-sep .acc { border-radius: 14px; }
/* esfera do assistente no centro, embaixo */
.ast-fab { left: 0; right: 0; margin: 0 auto; width: max-content; }

/* ---------- iPhone: distribuição da tela inicial (25/11) ----------
   Topo abaixo da Dynamic Island (safe-area), sino alinhado ao logo, tela ocupando a altura toda:
   o cartão da próxima aula em cima e os 3 botões embaixo, perto do polegar, logo acima do assistente. */
.shell { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
.shell > main.stack { flex: 1 0 auto; display: flex; flex-direction: column; gap: 12px; padding-top: 16px; }
.shell > main.stack > .accs-sep { margin-top: auto; padding-top: 6px; }
.top { padding-top: calc(12px + env(safe-area-inset-top, 0px)); gap: 12px; }
/* no iPhone instalado, o iOS desfoca uma faixa logo abaixo da barra de status: o topo desce para sair dela */
@media (display-mode: standalone) { .top { padding-top: calc(40px + env(safe-area-inset-top, 0px)); } }
.top .icon-out.bell { top: max(4px, calc(env(safe-area-inset-top, 0px) + 8px)); right: 10px; }
@media (display-mode: standalone) { .top .icon-out.bell { top: calc(env(safe-area-inset-top, 0px) + 35px); } }
/* logo com o subtítulo "seu studio na palma da mão" inteiro */
.top .top-logo { width: min(172px, 46vw); height: auto; }
.top .greet { padding-top: 12px; }
.ast-fab { bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important; }

/* data de início no studio: discreta, no fim de Meu plano */
.desde { margin: 10px 2px 0; font-size: 12px; color: var(--muted); opacity: .85; }
.ast-ex .nobr { white-space: nowrap; }

/* faixa "Avalie suas aulas": centrada (na vertical e na horizontal) no espaço entre o cartão da aula e Meu plano */
.shell > main.stack > .pesq-card { margin: auto; }
.shell > main.stack > .pesq-card + .accs-sep { margin-top: 0; }

/* Aluno Wellhub: em "Meu plano", o pagamento é pelo Wellhub (sem mensalidade) */
.wh-pag { display: inline-flex; align-items: center; gap: 7px; }
.wh-pag img { width: 18px; height: 18px; border-radius: 50%; flex: none; }

/* Aula de presente (pacote de 5 ou 10 aulas → amigo): cartão no Início e janela do convite */
.presente-linha .acc-h b { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.presente-linha .acc-sum { flex: none; }
.cv-list { display: grid; gap: 0; }
.cv-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.cv-row:first-child { border-top: 0; padding-top: 2px; }
.cv-row .grow { flex: 1; min-width: 0; display: grid; gap: 1px; }
.cv-row small { color: var(--muted); font-size: 12.5px; }
.cv-acts { display: flex; gap: 6px; width: 100%; justify-content: flex-end; }
.cv-acts .btn { text-decoration: none; }
.pr-ok { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 6px 4px 2px; }
.pr-ok > .ico { width: 46px; height: 46px; color: var(--gold-ink, var(--gold)); animation: popC .4s cubic-bezier(.2, 1.4, .4, 1); }
.sheet a.btn.block { display: flex; align-items: center; justify-content: center; text-decoration: none; }

/* tela inicial da demonstração: escolher o aluno */
.dp-lista { display: grid; gap: 10px; }
.dp-t { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--side-muted); text-align: center; margin-bottom: 2px; }
.dp { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: 18px; border: 1px solid #2C3439; background: var(--side-2); color: var(--side-ink); text-align: left; cursor: pointer; transition: border-color .2s, transform .15s; }
.dp:hover { border-color: var(--gold); }
.dp:active { transform: scale(.98); }
.dp:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.dp-av { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--side); font-weight: 800; font-size: 16px; }
.dp-tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.dp-tx b { font-size: 16.5px; }
.dp-tx small { font-size: 13px; color: var(--side-muted); line-height: 1.3; }
.dp-tag { flex: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); border: 1px solid currentColor; border-radius: 99px; padding: 3px 8px; }
.dp > .ico { width: 18px; height: 18px; flex: none; color: var(--side-muted); }
.dp-outro { color: var(--side-muted); }
.dp-outro summary { cursor: pointer; text-align: center; font-size: 14px; font-weight: 600; padding: 6px; list-style: none; }
.dp-outro summary::-webkit-details-marker { display: none; }
.dp-outro[open] summary { margin-bottom: 12px; }
@media (max-width: 360px) { .dp-tag { display: none; } }

/* demonstração: botão para voltar à tela "Entrar como" */
.troca-al { display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; padding: 6px 11px 6px 9px; border-radius: 999px; border: 1px solid #2C3439; background: transparent; color: var(--side-muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.troca-al:hover, .troca-al:focus-visible { border-color: var(--gold); color: var(--side-ink); }
.troca-al .ico { width: 15px; height: 15px; }
/* janela do presente: palavras-chave em negrito, na cor do texto */
.sheet .muted b, .sheet .callout b, .pr-ok .muted b { color: var(--ink); font-weight: 700; }
/* 01/12: tela inicial do aluno — botões em pílula, presente com meia largura, card principal sem filete verde, Remarcar com filete laranja */
.accs-sep .acc { border-radius: 999px; }
.accs-sep .acc.open { border-radius: 22px; }
.accs-sep .acc-h { padding-left: 18px; padding-right: 16px; }
.accs-sep .acc.presente-linha { justify-self: center; width: auto; min-width: 50%; }
.presente-linha .acc-h { justify-content: center; padding: 9px 18px; }
.presente-linha .acc-h b { flex: none; font-size: 14px; }
.presente-linha .pr-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); flex: none; }
.next { border-color: var(--line); box-shadow: none; }
.btn[data-a="remarcar"]:not(.gold) { border-color: #F08A24; }
/* 01/12 (2): espaço igual entre o card da aula, o presente e as 3 pílulas — a sobra da tela se divide por igual entre eles */
.shell > main.stack > .accs-sep { margin-top: 0; padding-top: 0; flex: 1 0 auto; display: flex; flex-direction: column; gap: 12px; }
.shell > main.stack > .accs-sep > .acc { margin-top: var(--acc-m, auto); flex: none; }
.shell > main.stack > .accs-sep > .acc.presente-linha { align-self: center; }
/* janela do presente: o botão principal pulsa como o do check-in, em dourado */
.sheet .btn.gold[data-a="presenteEnviar"], .sheet a.btn.gold.pr-pulso { animation: pr-pulsa 2.2s ease-in-out infinite; }
@keyframes pr-pulsa {
  0% { box-shadow: 0 6px 18px -8px var(--gold), 0 0 0 0 color-mix(in srgb, var(--gold) 45%, transparent); transform: scale(1); }
  45% { transform: scale(1.025); }
  70% { box-shadow: 0 6px 18px -8px var(--gold), 0 0 0 10px color-mix(in srgb, var(--gold) 0%, transparent); }
  100% { box-shadow: 0 6px 18px -8px var(--gold), 0 0 0 0 color-mix(in srgb, var(--gold) 0%, transparent); transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { .sheet .btn.gold[data-a="presenteEnviar"], .sheet a.btn.gold.pr-pulso { animation: none; } }
