/* Área da professora e do aluno · mesma paleta da home (lilás/roxo + amarelo, tons leves) */
:root {
  --bg: #faf8fe;
  --tint: #f3edfc;
  --surface: #ffffff;
  --lilac-100: #efe7fc;
  --lilac-200: #e2d5f8;
  --lilac-300: #cbb6f1;
  --lilac-400: #a98ae3;
  --purple: #6c4fc0;
  --purple-2: #5a3fab;
  --plum: #34265a;
  --ink: #2a2340;
  --ink-2: #4c4466;
  --muted: #7a7393;
  --line: #ece5f6;
  --yellow: #ffe48a;
  --yellow-soft: #fff4cc;
  --yellow-ink: #7a5d00;
  --green: #2f9e6e;
  --green-soft: #e1f5ea;
  --red: #b42318;
  --red-soft: #fdecea;
  --shadow-sm: 0 1px 2px rgba(52, 38, 90, .05);
  --shadow: 0 1px 2px rgba(52, 38, 90, .04), 0 10px 28px -14px rgba(52, 38, 90, .2);
  --shadow-lg: 0 30px 60px -24px rgba(52, 38, 90, .3);
  --r: 20px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 15.5px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: var(--purple); }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--serif); font-variation-settings: 'SOFT' 100; font-weight: 600; color: var(--plum); letter-spacing: -.015em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(26px, 3.4vw, 34px); }
h2 { font-size: 19px; }
p { margin: 0; }
.muted { color: var(--muted); }
.tiny { font-size: 13px; }
.small-p { font-size: 14.5px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); margin-bottom: 6px; }
.wave { display: inline-block; animation: wave 2.4s ease-in-out 1; transform-origin: 70% 70%; }
@keyframes wave { 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-8deg); } 50% { transform: none; } }

/* Marca */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--plum); }
.mark { width: 38px; height: 38px; display: grid; place-items: center; flex-shrink: 0; font-family: var(--serif); font-variation-settings: 'SOFT' 100; font-style: italic; font-weight: 600; font-size: 22px; color: var(--plum); background: var(--yellow); border-radius: 50% 50% 50% 11px; }
.brand-t { display: flex; flex-direction: column; line-height: 1.1; }
.brand-t strong { font-family: var(--serif); font-variation-settings: 'SOFT' 100; font-size: 18px; font-weight: 600; }
.brand-t small { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 3px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 20px; font-weight: 600; font-size: 15px; text-decoration: none; background: var(--purple); color: #fff; cursor: pointer; white-space: nowrap; box-shadow: 0 8px 20px -12px rgba(108, 79, 192, .8); transition: background .2s, transform .15s var(--ease), box-shadow .2s; }
.btn:hover { background: var(--purple-2); }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-ghost { background: var(--surface); color: var(--plum); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--lilac-300); }
.btn-text { background: transparent; color: var(--ink-2); box-shadow: none; }
.btn-text:hover { background: var(--tint); }
.btn-text.danger, .danger { color: var(--red); }
.btn-danger { background: var(--red); box-shadow: none; }
.btn-danger:hover { background: #8f1c13; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--lilac-400); outline-offset: 2px; }
.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(108, 79, 192, .5); } 70% { box-shadow: 0 0 0 14px rgba(108, 79, 192, 0); } 100% { box-shadow: 0 0 0 0 rgba(108, 79, 192, 0); } }
.linkish { background: none; border: 0; padding: 0; color: var(--purple); font-weight: 600; cursor: pointer; text-decoration: none; font-size: 14px; }
.linkish:hover { text-decoration: underline; }
.linkish.small { font-size: 13px; color: var(--muted); font-weight: 500; }
.icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--purple); background: var(--lilac-100); text-decoration: none; flex-shrink: 0; transition: background .2s, transform .2s; }
.icon-btn:hover { background: var(--yellow); color: var(--yellow-ink); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.lg { width: 42px; height: 42px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }

/* Formulários */
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
input[type=text], input[type=tel], input[type=email], input[type=url], input[type=password], input[type=date], input[type=time], select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); font-size: 16px; transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea { resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a7393' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
select.inline { width: auto; display: inline-block; padding: 4px 32px 4px 10px; font-size: 14.5px; background-position: right 8px center; margin: 0 2px; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--lilac-400); background: #fff; box-shadow: 0 0 0 4px var(--lilac-100); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.span-2 { grid-column: span 2; }
.checks { display: grid; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: var(--purple); margin: 1px 0 0; flex-shrink: 0; }
.check small { color: var(--muted); }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding-top: 6px; }
.form-actions .danger { margin-right: auto; }
.stack { display: grid; gap: 16px; }
.alert { padding: 12px 14px; border-radius: 12px; font-size: 14.5px; margin-bottom: 18px; }
.stack .alert { margin: 0; }
.alert.err { background: var(--red-soft); color: var(--red); }
.alert.warn { background: var(--yellow-soft); color: var(--yellow-ink); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-side { position: relative; background: linear-gradient(150deg, var(--lilac-100), var(--lilac-200) 60%, #ead9f7); display: grid; place-items: center; overflow: hidden; }
.ls-blob { position: absolute; width: 70%; aspect-ratio: 1; background: var(--yellow-soft); border-radius: 58% 42% 46% 54% / 52% 48% 52% 48%; animation: morph 14s ease-in-out infinite; }
@keyframes morph { 0%, 100% { border-radius: 58% 42% 46% 54% / 52% 48% 52% 48%; } 50% { border-radius: 46% 54% 58% 42% / 44% 56% 44% 56%; } }
.login-side img { position: relative; width: 52%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow-lg); }
.ls-bubble { position: absolute; top: 24%; right: 14%; background: #fff; padding: 10px 16px; border-radius: 16px; font-weight: 600; color: var(--plum); box-shadow: var(--shadow); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.login-card { align-self: center; justify-self: center; width: 100%; max-width: 420px; padding: 40px 24px; }
.login-card .brand { margin-bottom: 48px; }
.login-card h1 { font-size: 34px; margin-bottom: 8px; }
.login-card > .muted { margin-bottom: 28px; font-size: 16px; }
.code-in { font-size: 30px !important; letter-spacing: .4em; text-align: center; font-weight: 600; }
.resend { display: flex; justify-content: space-between; margin-top: 18px; }
.alt { margin-top: 26px; font-size: 14.5px; color: var(--muted); }
.alt a { font-weight: 600; text-decoration: none; }
@media (max-width: 820px) { .login-wrap { grid-template-columns: 1fr; } .login-side { display: none; } .login-card .brand { margin-bottom: 36px; } }

/* ---------- Professora: estrutura ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 16px; background: var(--surface); border-right: 1px solid var(--line); }
.side .brand { padding: 0 8px 28px; }
.side-nav { display: grid; gap: 4px; }
.side-nav a, .side-foot a, .nav-out button { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; transition: background .2s, color .2s; background: none; border: 0; width: 100%; cursor: pointer; text-align: left; }
.side-nav a:hover, .side-foot a:hover, .nav-out button:hover { background: var(--tint); color: var(--plum); }
.side-nav a.on { background: var(--lilac-100); color: var(--purple-2); font-weight: 600; }
.side-nav a.on svg { color: var(--purple); }
.dot-n { margin-left: auto; font-style: normal; background: var(--yellow); color: var(--yellow-ink); font-size: 12px; font-weight: 700; min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; padding: 0 6px; }
.side-foot { margin-top: auto; display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 12px; }
.main { padding: 32px clamp(16px, 3vw, 44px) 80px; max-width: 1180px; width: 100%; min-width: 0; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 30; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(52, 38, 90, .25); }
  .side > .brand, .side-foot { display: none; }
  .side-nav { grid-template-columns: repeat(6, 1fr); width: 100%; gap: 0; }
  .side-nav a { flex-direction: column; gap: 3px; padding: 7px 2px; font-size: 11px; position: relative; justify-content: center; text-align: center; }
  .side-nav a.on { background: transparent; }
  .side-nav a.on svg { background: var(--lilac-100); border-radius: 999px; padding: 2px 12px; width: 44px; box-sizing: content-box; height: 20px; margin: 0 -12px; }
  .dot-n { position: absolute; top: 2px; right: 50%; margin-right: -22px; min-width: 18px; height: 18px; font-size: 10.5px; }
  .main { padding: 20px 16px 110px; }
}

/* Cabeçalho das páginas */
.page-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-h .muted { margin-top: 6px; }
.h-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.back { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.back svg { width: 16px; height: 16px; }
.back:hover { color: var(--purple); }
@media (max-width: 900px) { .mobile-brand { display: flex; } }

/* Painéis */
.panel { background: var(--surface); border-radius: var(--r); padding: 22px; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); margin-bottom: 18px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.panel-h.sub { margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--line); }
.grid-2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; align-items: start; }
.grid-2.wide-left { grid-template-columns: 1.1fr 1fr; }
.grid-2 > .panel, .col > .panel { margin-bottom: 0; }
.col { display: grid; gap: 18px; }
.grid-2 + .panel { margin-top: 18px; }
@media (max-width: 1000px) { .grid-2, .grid-2.wide-left { grid-template-columns: 1fr; } }
.empty-s { text-align: center; padding: 34px 20px; color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.empty-s span { font-size: 32px; }

/* Avatares, selos */
.av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13.5px; color: var(--plum); flex-shrink: 0; }
.av.lg { width: 48px; height: 48px; font-size: 16px; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.b-lilac { background: var(--lilac-100); color: var(--purple-2); }
.b-green { background: var(--green-soft); color: var(--green); }
.b-gray { background: #f1eff5; color: var(--muted); }
.b-yellow { background: var(--yellow-soft); color: var(--yellow-ink); }
.lvl { display: inline-block; background: var(--yellow); color: var(--yellow-ink); font-weight: 700; font-size: 12.5px; padding: 3px 10px; border-radius: 8px; }
.lvl.draft { background: var(--lilac-100); color: var(--purple-2); }
.lvl.big { font-size: 22px; padding: 6px 14px; border-radius: 12px; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--tint); color: var(--ink-2); padding: 5px 12px; border-radius: 999px; font-size: 13.5px; text-decoration: none; }

/* Linhas de aula */
.lessons { display: grid; gap: 8px; }
.lr { display: flex; align-items: center; gap: 8px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s var(--ease); }
.lr:hover { box-shadow: inset 0 0 0 1.5px var(--lilac-300); }
.lr-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-decoration: none; color: inherit; }
.lr-time { display: flex; flex-direction: column; width: 46px; flex-shrink: 0; line-height: 1.15; }
.lr-time b { font-size: 15.5px; color: var(--plum); }
.lr-time small { font-size: 12px; color: var(--muted); }
.lr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.lr-main b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-main small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-go { margin-right: 10px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--purple); color: #fff; flex-shrink: 0; }
.lr-go svg { width: 18px; height: 18px; }
.lr.now { background: var(--lilac-100); box-shadow: inset 0 0 0 1.5px var(--lilac-300); }
.lr.now .lr-time b::after { content: ' agora'; font-size: 11px; color: var(--purple); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; display: block; }
.lr.st-canceled { opacity: .6; }
.lr.st-canceled .lr-main b { text-decoration: line-through; }

/* Hoje */
.stats-p { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 10px; }
.stats-p a { text-decoration: none; color: inherit; padding: 12px; border-radius: 14px; transition: background .2s; }
.stats-p a:hover { background: var(--tint); }
.stats-p strong, .stat strong { display: block; font-family: var(--serif); font-variation-settings: 'SOFT' 100; font-size: 32px; color: var(--purple); line-height: 1.1; font-weight: 600; }
.stats-p span, .stat span { font-size: 13px; color: var(--muted); }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mini-list li { display: flex; align-items: center; gap: 12px; padding: 8px 4px; }
.mini-list li + li { border-top: 1px solid var(--line); }
.mini-list li > :is(span, a):not(.av):not(.lvl):not(.icon-btn) { flex: 1; min-width: 0; display: flex; flex-direction: column; text-decoration: none; color: inherit; line-height: 1.3; }
.mini-list small { color: var(--muted); font-size: 13px; }
.wa-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; text-decoration: none; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); justify-self: start; }
.wa-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.wa-pill.ok i { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.wa-pill.warn i { background: #e0a800; box-shadow: 0 0 0 3px var(--yellow-soft); }
.wa-pill.err i { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }

/* Agenda */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: start; }
.day { background: var(--surface); border-radius: 18px; padding: 12px; box-shadow: inset 0 0 0 1px var(--line); min-height: 170px; }
.day.today { box-shadow: inset 0 0 0 2px var(--lilac-300), var(--shadow); }
.day.past { opacity: .72; }
.day-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.day-n { display: flex; flex-direction: column; align-items: center; line-height: 1; width: 38px; padding: 6px 0; border-radius: 12px; background: var(--tint); }
.day-n b { font-size: 18px; color: var(--plum); }
.day-n small { font-size: 11px; color: var(--muted); text-transform: uppercase; font-weight: 600; margin-top: 2px; }
.today .day-n { background: var(--purple); }
.today .day-n b, .today .day-n small { color: #fff; }
.day-t { display: none; font-weight: 600; color: var(--plum); }
.day-h .icon-btn { margin-left: auto; width: 28px; height: 28px; opacity: 0; transition: opacity .2s; }
.day:hover .icon-btn, .day.free .icon-btn { opacity: 1; }
.free-t { color: #c4bcd6; font-size: 13px; text-align: center; padding: 18px 0; }
.week .lr { flex-direction: column; align-items: stretch; gap: 0; }
.week .lr-link { flex-direction: column; align-items: stretch; gap: 4px; padding: 10px; }
.week .lr-main small { white-space: normal; }
.week .lr .av { display: none; }
.week .lr-time { flex-direction: row; gap: 4px; width: auto; align-items: baseline; }
.week .lr-time small::before { content: '– '; }
.week .lr-main b { white-space: normal; font-size: 14px; }
.week .lr-go { width: auto; height: 30px; border-radius: 0 0 14px 14px; margin: 0; }
.week .badge { font-size: 11px; padding: 2px 8px; align-self: flex-start; }
@media (max-width: 1100px) {
  .week { grid-template-columns: 1fr; gap: 8px; }
  .day { min-height: 0; display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: center; padding: 10px 12px; }
  .day-h { margin: 0; }
  .day-t { display: block; }
  .day-h .icon-btn { opacity: 1; }
  .free-t { text-align: left; padding: 0; }
  .week .lr { flex-direction: row; align-items: center; }
  .week .lr-link { flex-direction: row; align-items: center; gap: 12px; }
  .week .lr .av { display: grid; }
  .week .lr-time { flex-direction: column; width: 46px; gap: 0; }
  .week .lr-time small::before { content: ''; }
  .week .lr-go { width: 36px; height: 36px; border-radius: 50%; margin-right: 10px; }
}
@media (max-width: 640px) {
  .day { grid-template-columns: 1fr; gap: 8px; }
  .day.free { grid-template-columns: 1fr auto; }
  .day.free .day-h { grid-column: 1 / -1; }
  .day.free .free-t { display: none; }
}
.sync { margin-top: 20px; }
.sync summary { cursor: pointer; font-weight: 600; color: var(--plum); display: flex; align-items: center; gap: 10px; list-style: none; }
.sync summary::-webkit-details-marker { display: none; }
.sync > p { margin: 12px 0; font-size: 14.5px; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { font-size: 13.5px; }

/* Alunos */
.tabs { display: flex; gap: 6px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 8px 16px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14.5px; white-space: nowrap; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tabs a.on { background: var(--plum); color: #fff; box-shadow: none; }
.tabs i { font-style: normal; opacity: .7; margin-left: 2px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.s-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: inherit; transition: transform .25s var(--ease), box-shadow .25s; }
.s-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--lilac-200), var(--shadow); }
.s-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.s-main b { font-size: 16px; }
.s-main small { color: var(--muted); font-size: 13px; }
.s-next { text-align: right; display: flex; flex-direction: column; line-height: 1.3; }
.s-next small { font-size: 12px; color: var(--muted); }
.s-next b { font-size: 13.5px; color: var(--plum); white-space: nowrap; }
@media (max-width: 400px) { .cards { grid-template-columns: 1fr; } }

/* Contatos */
.leads { display: grid; gap: 12px; }
.lead { margin: 0; }
.lead-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lead-main { flex: 1; min-width: 180px; display: flex; flex-direction: column; }
.lead-main b { font-size: 16.5px; }
.lead-main small { color: var(--muted); font-size: 13px; }
.lead-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0 62px; }
.lead-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0 62px; }
@media (max-width: 600px) { .lead-tags, .lead-actions { margin-left: 0; } }

/* WhatsApp */
.wa-ok { display: flex; align-items: center; gap: 8px; color: var(--green); font-weight: 600; margin-bottom: 16px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.qr { display: grid; place-items: center; min-height: 140px; margin: 18px 0 8px; }
.qr img { width: 260px; height: 260px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); padding: 10px; background: #fff; image-rendering: pixelated; }
.tpl-box { border-top: 1px dashed var(--line); padding-top: 14px; }
.tpl-box summary { cursor: pointer; font-weight: 600; color: var(--purple); }
.tpl-box .field { margin-top: 12px; }
.msg-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.msg-log li { padding: 10px 14px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.msg-log li.fail { background: var(--red-soft); box-shadow: none; }
.msg-log small { color: var(--muted); font-size: 12.5px; }
.msg-log p { font-size: 14px; margin-top: 4px; color: var(--ink-2); }
.msg-log.compact p { font-size: 13.5px; }

/* Testes */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 8px; }
.stat { margin: 0; }
.sec-t { margin: 28px 0 12px; font-size: 18px; }
.list { padding: 6px; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; text-decoration: none; color: inherit; }
.row:hover { background: var(--tint); }
.row + .row { border-top: 1px solid var(--line); }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-main small { color: var(--muted); font-size: 13px; }
.row-score { font-size: 14px; color: var(--muted); }
.row-score b { font-size: 18px; color: var(--plum); }
.t-hero { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.t-hero .muted { margin-top: 6px; }
.t-score { display: flex; align-items: center; gap: 18px; }
.ring { --p: 0; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--purple) calc(var(--p) * 1%), var(--lilac-100) 0); }
.ring span { width: 76px; height: 76px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--plum); line-height: 1; }
.ring small { font-size: 13px; color: var(--muted); display: block; }
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 180px 1fr 50px; gap: 14px; align-items: center; font-size: 14.5px; }
.bar { height: 10px; border-radius: 6px; background: var(--tint); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; }
.bar i.hi { background: var(--purple); }
.bar i.mid { background: var(--lilac-400); }
.bar i.lo { background: var(--yellow); }
.bar-val { text-align: right; font-weight: 600; }
@media (max-width: 560px) { .bar-row { grid-template-columns: 1fr 50px; } .bar { grid-column: 1 / -1; grid-row: 2; } }
.written { margin-bottom: 12px; }
.w-q { font-weight: 600; color: var(--plum); margin-bottom: 10px; }
.w-a { background: var(--bg); padding: 14px; border-radius: 12px; margin-bottom: 8px; white-space: pre-wrap; }
.ans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.ans { background: var(--surface); border-radius: 14px; padding: 14px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; border-left: 4px solid var(--line); }
.ans.ok { border-left-color: var(--green); }
.ans.bad { border-left-color: var(--red); }
.ans-head { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 6px; }
.ans.ok .ans-mark { color: var(--green); }
.ans.bad .ans-mark { color: var(--red); }
.ans-q { color: var(--ink-2); margin-bottom: 8px; }
.ans-line { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.ans-line .right { color: var(--green); }
.print-head { display: none; }
@media print {
  .side, .no-print, .toast { display: none !important; }
  .shell { display: block; }
  .main { padding: 0; }
  body { background: #fff; }
  .panel, .ans { box-shadow: 0 0 0 1px #ddd; break-inside: avoid; }
  .print-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 13px; }
}

/* ---------- Aluno ---------- */
.wrap-s { max-width: 640px; margin: 0 auto; padding: 0 18px; }
.s-top { position: sticky; top: 0; z-index: 10; background: rgba(250, 248, 254, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.s-top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.s-out button { display: flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; padding: 8px; }
.s-out button:hover { color: var(--purple); }
.s-out svg { width: 18px; height: 18px; }
.s-main { padding-top: 28px; padding-bottom: 60px; }
.hello { font-size: 32px; margin-bottom: 20px; }
.next-card { position: relative; overflow: hidden; border-radius: 26px; padding: 26px; background: linear-gradient(140deg, var(--lilac-100), #f6efff 50%, var(--yellow-soft)); box-shadow: inset 0 0 0 1px var(--lilac-200), var(--shadow); }
.next-card::after { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -60px; top: -70px; background: rgba(255, 228, 138, .55); }
.next-card > * { position: relative; z-index: 1; }
.next-card h2 { font-size: 30px; margin: 4px 0 6px; }
.next-card.live { background: linear-gradient(140deg, #e9defc, #efe5ff 60%, var(--lilac-100)); }
.next-card.empty h2 { font-size: 24px; }
.next-card.empty .btn { margin-top: 18px; }
.countdown { margin-top: 14px; font-weight: 600; color: var(--purple-2); font-size: 14.5px; }
.next-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 16px 0 8px; }
.quick a { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: var(--plum); font-weight: 600; font-size: 14.5px; transition: transform .2s var(--ease), box-shadow .2s; }
.quick a:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--lilac-200), var(--shadow); }
.q-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--lilac-100); color: var(--purple); flex-shrink: 0; }
.block { margin-top: 26px; }
.block-t { display: flex; align-items: center; gap: 8px; font-size: 19px; margin-bottom: 12px; }
.block-t svg { color: var(--purple); }
.hw { background: var(--yellow-soft); border-radius: 18px; padding: 18px; box-shadow: inset 0 0 0 1px rgba(122, 93, 0, .08); }
.hw-text { margin-top: 6px; font-size: 16px; color: var(--ink); }
.lesson-list, .history { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lesson-list li { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.ll-date { display: flex; flex-direction: column; align-items: center; width: 42px; padding: 6px 0; border-radius: 12px; background: var(--tint); line-height: 1; }
.ll-date b { font-size: 18px; color: var(--plum); }
.ll-date small { font-size: 11px; color: var(--muted); text-transform: uppercase; font-weight: 600; margin-top: 3px; }
.ll-main { flex: 1; display: flex; flex-direction: column; }
.ll-main small { color: var(--muted); font-size: 13px; }
.history li { padding: 12px 14px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.h-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.h-head span:not(.badge) { color: var(--muted); font-size: 14px; }
.h-hw { margin-top: 6px; font-size: 14px; color: var(--ink-2); padding-left: 10px; border-left: 3px solid var(--yellow); }
.s-foot { text-align: center; margin-top: 40px; color: var(--muted); font-size: 14px; }

/* Modal */
.modal { border: 0; border-radius: 24px; padding: 0; max-width: 440px; width: calc(100% - 32px); box-shadow: var(--shadow-lg); color: var(--ink); }
.modal::backdrop { background: rgba(42, 35, 64, .4); backdrop-filter: blur(3px); }
.modal-in { padding: 26px; display: grid; gap: 14px; }
.modal-in h3 { font-size: 22px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* Aviso flutuante */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; z-index: 60; background: var(--plum); color: #fff; padding: 12px 20px; border-radius: 14px; font-weight: 500; font-size: 14.5px; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); transition: opacity .35s, transform .35s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.warn { background: #6b5200; }
.toast.err { background: var(--red); }
@media (max-width: 900px) { .teacher .toast { bottom: 92px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
