/* Turma — visual inspirado em escolas de idiomas: claro, acolhedor, colorido sem exagero. */
:root {
  --bg: #f6f5f1;
  --bg-soft: #efeee8;
  --card: #ffffff;
  --text: #15183a;
  --muted: #6a6f8c;
  --line: #e7e5ee;
  --brand: #4f5bff;
  --brand-2: #8b5cf6;
  --brand-deep: #1f2672;
  --brand-ink: #ffffff;
  --brand-soft: #eceeff;
  --coral: #ff6b4a;
  --coral-soft: #ffece6;
  --sun: #f5b83d;
  --sun-soft: #fff4dc;
  --mint: #12a67f;
  --mint-soft: #e2f6ef;
  --danger: #e0435c;
  --danger-soft: #fde8ec;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(21, 24, 58, .05), 0 8px 24px rgba(21, 24, 58, .06);
  --shadow-lg: 0 24px 60px rgba(21, 24, 58, .18);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1024;
    --bg-soft: #151834;
    --card: #181b36;
    --text: #eef0fb;
    --muted: #9ba1c2;
    --line: #2a2e52;
    --brand: #7d87ff;
    --brand-2: #a78bfa;
    --brand-deep: #0b0e2a;
    --brand-ink: #0e1024;
    --brand-soft: #23275a;
    --coral: #ff8a6e;
    --coral-soft: #3a2224;
    --sun: #f7c35c;
    --sun-soft: #352c17;
    --mint: #3fd0a6;
    --mint-soft: #133a32;
    --danger: #ff6b81;
    --danger-soft: #3d1c26;
    --shadow: none;
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 15.5px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
.boot { text-align: center; color: var(--muted); margin-top: 40vh; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.02em; }
p { margin: 0; }
.ico { width: 18px; height: 18px; flex: none; }

/* ---------- marca ---------- */
.brandline { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.logo { width: 34px; height: 34px; flex: none; }

/* ---------- topo ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.spacer { flex: 1; }
.who-chip { cursor: pointer; font: inherit; color: inherit; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); }
.who-role { font-size: 13px; font-weight: 700; color: var(--muted); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 800; font-size: 12px;
}
.avatar.lg { width: 44px; height: 44px; font-size: 15px; border-radius: 14px; }
.avatar.alt { background: linear-gradient(135deg, #12a67f, #3fc6d8); }
.avatar.coral { background: linear-gradient(135deg, #ff6b4a, #ff9f5a); }
.avatar.sun { background: linear-gradient(135deg, #f5b83d, #ff8a3d); }
.iconbtn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--text); flex: none;
}
.iconbtn:hover { border-color: var(--brand); color: var(--brand); }
.iconbtn.small { width: 32px; height: 32px; border-radius: 10px; }
.iconbtn.small .ico { width: 15px; height: 15px; }

/* ---------- ver como ---------- */
.viewas {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 8px 16px; background: var(--brand-soft); border-bottom: 1px solid var(--line); font-size: 14px;
}
.viewas label { font-weight: 700; color: var(--brand); display: inline-flex; gap: 6px; align-items: center; }
.viewas select { width: auto; padding: 6px 10px; border-radius: 10px; min-width: 0; max-width: 100%; font-size: 14px; }
.banner {
  padding: 8px 16px; font-size: 13px; text-align: center;
  background: var(--sun-soft); color: color-mix(in srgb, var(--sun) 40%, var(--text)); border-bottom: 1px solid var(--line);
}

/* ---------- navegação ---------- */
.shell { max-width: 1040px; margin: 0 auto; }
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9;
  display: flex; justify-content: space-around; gap: 4px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tab {
  flex: 1; max-width: 120px; border: 0; background: transparent; cursor: pointer;
  display: grid; justify-items: center; gap: 2px; padding: 6px 4px; border-radius: 14px;
  color: var(--muted); font-size: 11.5px; font-weight: 700;
}
.tab .ico { width: 22px; height: 22px; }
.tab[aria-selected="true"] { color: var(--brand); background: var(--brand-soft); }
.has-tabs main { padding-bottom: 96px; }

@media (min-width: 900px) {
  .shell.has-tabs { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 0 24px; }
  .tabs {
    position: sticky; top: 76px; align-self: start; flex-direction: column; justify-content: flex-start;
    background: transparent; border: 0; backdrop-filter: none; padding: 24px 0;
  }
  .tab { max-width: none; display: flex; gap: 12px; font-size: 15px; padding: 11px 14px; justify-content: flex-start; }
  .has-tabs main { padding-bottom: 48px; }
}

/* ---------- conteúdo ---------- */
main { padding: 20px 16px; max-width: 760px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head > div:first-child { flex: 1; min-width: 160px; }
.page-head h1 { font-size: 26px; font-weight: 800; }
.page-head p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
h2.section { font-size: 17px; font-weight: 800; margin: 28px 0 12px; display: flex; align-items: center; gap: 8px; }
h2.section .ico { color: var(--brand); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px; padding: 11px 18px; font-weight: 700; cursor: pointer;
  background: var(--brand); color: var(--brand-ink);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 28%, transparent);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn.small { padding: 8px 14px; font-size: 14px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: .5; cursor: default; box-shadow: none; }
.linkbtn { border: 0; background: none; color: var(--brand); font-weight: 700; cursor: pointer; padding: 6px 0; }

input[type="search"], input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"], input[type="time"], input[type="date"], select, textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--card); transition: border-color .15s;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
button:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.search { margin-bottom: 14px; }

.pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px;
  background: var(--brand-soft); color: var(--brand); white-space: nowrap;
}
.pill.off { background: var(--danger-soft); color: var(--danger); }
.pill.mint { background: var(--mint-soft); color: var(--mint); }
.pill.sun { background: var(--sun-soft); color: color-mix(in srgb, var(--sun) 55%, var(--text)); }
.pill.coral { background: var(--coral-soft); color: var(--coral); }

.list { display: grid; gap: 10px; }
.item {
  display: flex; gap: 14px; align-items: center; text-align: left; width: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow); cursor: pointer; transition: border-color .15s, transform .12s;
}
button.item:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.item.static { cursor: default; }
.item-body { display: grid; gap: 3px; flex: 1; min-width: 0; }
.item .row, .row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.item .name, .name { font-weight: 700; }
.sub { color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.when { color: var(--brand); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.sub.when .ico, p.when .ico { width: 15px; height: 15px; }
p.when { display: block; line-height: 1.8; }
p.when .ico { vertical-align: -2px; margin-right: 6px; }
.empty, .hint {
  text-align: center; color: var(--muted); padding: 28px 16px;
  border: 1.5px dashed var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--card) 50%, transparent);
}
.empty.small { padding: 18px 12px; font-size: 14px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); display: grid; gap: 10px; margin-bottom: 14px;
}
.card h3 { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.card h3 .ico { color: var(--brand); }
.note { color: var(--muted); font-size: 14px; }
.note.small { font-size: 13px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- login ---------- */
.auth { min-height: 100svh; display: grid; place-items: center; padding: 24px 16px; position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 60%),
              radial-gradient(900px 500px at 110% 110%, color-mix(in srgb, var(--coral) 26%, transparent), transparent 60%), var(--bg); }
.auth-hero { position: absolute; inset: 0; pointer-events: none; }
.bubble {
  position: absolute; padding: 8px 14px; border-radius: 16px 16px 16px 4px; font-weight: 800; font-size: 15px;
  background: var(--card); box-shadow: var(--shadow); color: var(--text); animation: float 6s ease-in-out infinite;
}
.bubble.b1 { top: 9%; left: 8%; color: var(--brand); }
.bubble.b2 { top: 16%; right: 9%; color: var(--coral); animation-delay: -2s; border-radius: 16px 16px 4px 16px; }
.bubble.b3 { bottom: 14%; left: 10%; color: var(--mint); animation-delay: -4s; }
.bubble.b4 { bottom: 8%; right: 12%; color: color-mix(in srgb, var(--sun) 60%, var(--text)); animation-delay: -1s; border-radius: 16px 16px 4px 16px; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .bubble { animation: none; } }
.auth-card {
  position: relative; width: min(420px, 100%); background: var(--card); border: 1px solid var(--line);
  border-radius: 28px; padding: 32px 26px; box-shadow: var(--shadow-lg); display: grid; gap: 16px;
}
.auth-card h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.auth-card .lead { color: var(--muted); }
.google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: #1f1f1f; border: 1.5px solid #dadce0; border-radius: 14px;
  padding: 13px 16px; font-weight: 700; cursor: pointer; transition: box-shadow .15s;
}
.google:hover { box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.google svg { width: 20px; height: 20px; }
.perks { list-style: none; margin: 4px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.perks li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; font-weight: 600; }
.perks .ico { color: var(--brand); width: 20px; height: 20px; padding: 6px; box-sizing: content-box; background: var(--brand-soft); border-radius: 10px; }
.err { color: var(--danger); font-size: 14px; }
code { background: var(--brand-soft); padding: 1px 6px; border-radius: 6px; font-size: .9em; }

/* ---------- início do aluno ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 26px; padding: 24px 22px; margin-bottom: 16px; color: #fff;
  background: linear-gradient(135deg, #3d47e6 0%, #7c4dff 60%, #b04dff 100%);
  display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; box-shadow: 0 18px 40px rgba(79, 91, 255, .28);
}
.hero::after {
  content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.22), transparent 70%);
}
.hero-text { flex: 1; min-width: 180px; position: relative; z-index: 1; }
.hero .eyebrow { color: rgba(255,255,255,.75); }
.hero h1 { font-size: 30px; font-weight: 800; margin: 4px 0 6px; }
.hero p { color: rgba(255,255,255,.85); }
.hero-stats { display: flex; gap: 10px; position: relative; z-index: 1; }
.hero-stats span {
  display: grid; padding: 10px 14px; border-radius: 16px; background: rgba(255,255,255,.16);
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.85); backdrop-filter: blur(6px);
}
.hero-stats b { font-size: 22px; color: #fff; line-height: 1.1; }
.home-grid { display: grid; gap: 0; }
@media (min-width: 720px) {
  .home-grid { grid-template-columns: 1fr 1fr; gap: 0 14px; align-items: start; }
  .home-grid > .next-card, .home-grid > .freed { grid-column: 1 / -1; }
}
.next-card { gap: 14px; }
.next-top { display: flex; justify-content: space-between; align-items: center; }
.next-main { display: flex; gap: 16px; align-items: center; }
.next-main h2 { font-size: 24px; font-weight: 800; }
.cal {
  width: 64px; height: 68px; border-radius: 18px; display: grid; place-items: center; align-content: center; flex: none;
  background: var(--coral-soft); color: var(--coral);
}
.cal span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.cal b { font-size: 26px; line-height: 1; }
.empty-next h2 { font-size: 20px; }
.credits { border-color: color-mix(in srgb, var(--coral) 35%, var(--line)); }
.credits h3 .ico { color: var(--coral); }
.credit { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.credit:first-of-type { border-top: 0; }
.credit > div { display: grid; }
.freed { background: linear-gradient(135deg, var(--coral-soft), var(--sun-soft)); border-color: transparent; }
.freed h3 .ico { color: var(--coral); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.study { background: linear-gradient(135deg, var(--mint-soft), var(--brand-soft)); border-color: transparent; }
.study h3 .ico { color: var(--mint); }
.study p { color: var(--muted); }
.next-list { display: grid; }
.nextrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.nextrow:first-child { border-top: 0; }
.nextrow .d { font-weight: 800; display: grid; line-height: 1.15; min-width: 76px; }
.nextrow .d small { font-weight: 600; color: var(--muted); font-size: 12px; }
.nextrow .t { flex: 1; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ---------- agenda ---------- */
.weeknav { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.weeknav .range { font-weight: 800; min-width: 120px; text-align: center; }
.days { display: grid; gap: 10px; }
.day {
  display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow);
}
.day-head { display: grid; justify-items: center; padding-top: 2px; }
.day-num { font-size: 22px; font-weight: 800; line-height: 1; }
.day-name { font-size: 11.5px; font-weight: 700; color: var(--muted); text-align: center; display: grid; justify-items: center; gap: 4px; }
.day-body { display: grid; gap: 8px; min-width: 0; }
.day.today { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.day.today .day-num { color: var(--brand); }
.day.past { opacity: .55; }
.day .none { margin: 0; font-size: 13px; color: var(--muted); padding: 10px 0; }
.lesson {
  display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: center;
  width: 100%; text-align: left; padding: 10px 12px; border-radius: 14px; cursor: pointer;
  background: var(--bg-soft); border: 1px solid transparent; border-left: 4px solid var(--brand);
}
.lesson:hover { border-color: var(--line); border-left-color: var(--brand); }
.lesson.k-single { border-left-color: var(--sun); }
.lesson.k-makeup { border-left-color: var(--mint); }
.lesson.cancelled { border-left-color: var(--danger); opacity: .8; }
.lesson .time { font-weight: 800; display: grid; line-height: 1.15; }
.lesson .time small { font-weight: 600; color: var(--muted); font-size: 12px; }
.lesson .who { display: grid; gap: 1px; min-width: 0; }
.lesson .who .name { overflow-wrap: anywhere; }
.lesson .who .sub { font-size: 12.5px; }
.lesson.cancelled .time, .lesson.cancelled .name { text-decoration: line-through; color: var(--muted); }

/* ---------- horários do professor ---------- */
.hours { display: grid; gap: 6px; }
.hrow { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.hrow:first-child { border-top: 0; }
.hday { font-weight: 800; }
.hwins { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.hwin { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-soft); padding: 4px; border-radius: 12px; }
.hwin input[type="time"] { width: 116px; padding: 6px 8px; border-radius: 9px; font-size: 14px; }
.hwins .none { color: var(--muted); font-size: 14px; }
.grid3 { display: grid; gap: 12px; }
@media (min-width: 640px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.savebar { position: sticky; bottom: 84px; display: flex; justify-content: flex-end; padding: 8px 0; }
@media (min-width: 900px) { .savebar { bottom: 16px; } }

/* ---------- modais ---------- */
dialog {
  border: 0; border-radius: 26px; padding: 0; width: min(520px, calc(100vw - 20px));
  background: var(--card); color: var(--text); box-shadow: var(--shadow-lg);
}
dialog::backdrop { background: rgba(12, 14, 36, .5); backdrop-filter: blur(3px); }
@media (max-width: 560px) {
  dialog { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 26px 26px 0 0; padding-bottom: env(safe-area-inset-bottom); }
}
.form, .sheet { padding: 22px; display: grid; gap: 14px; max-height: 88svh; overflow: auto; }
.form h3, .sheet h3 { font-size: 20px; font-weight: 800; }
.sheet-head { display: flex; gap: 12px; align-items: center; }
.sheet-head > div { flex: 1; min-width: 0; }
.sheet-head p { color: var(--muted); font-size: 14px; }
.stack { display: grid; gap: 8px; }
.callout { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--coral-soft); font-size: 14.5px; }
.callout .ico { color: var(--coral); margin-top: 2px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two .field { min-width: 0; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }
.actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; }
.actions .spacer { flex: 1; }

/* seletor de horários */
.daychips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.daychips::-webkit-scrollbar { display: none; }
.daychip {
  position: relative; flex: none; width: 58px; padding: 8px 0; border-radius: 16px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--card); display: grid; justify-items: center; gap: 1px;
}
.daychip span { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.daychip b { font-size: 19px; }
.daychip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.daychip.on span { color: color-mix(in srgb, var(--brand-ink) 80%, transparent); }
.daychip .dot { position: absolute; top: 6px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slot {
  display: grid; justify-items: center; gap: 1px; padding: 10px 6px; border-radius: 14px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--card); font-weight: 800;
}
.slot small { font-size: 10.5px; font-weight: 700; color: var(--coral); }
.slot.freed { border-color: color-mix(in srgb, var(--coral) 55%, var(--line)); background: var(--coral-soft); }
.slot.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.slot.on small { color: inherit; }
.chips .slot { padding: 10px 14px; justify-items: start; }
.chips .slot span { font-size: 13px; font-weight: 600; color: var(--muted); }
.custom { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.custom summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.custom .two { margin-top: 10px; }

#toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: #15183a; color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: .2s; max-width: calc(100vw - 32px); z-index: 30; box-shadow: var(--shadow-lg);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.error { background: var(--danger); }

/* ---- Presença, Meet e avisos ---- */
a.btn { text-decoration: none; }
.btn.join { background: linear-gradient(135deg, var(--mint), #3fc6d8); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--mint) 35%, transparent); font-size: 16px; padding: 13px 20px; }
.note .ico, .pill .ico { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
.note.ok { color: var(--mint); font-weight: 700; }
.iconbtn.bell { position: relative; }
.badge {
  position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px;
  background: var(--coral); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center;
  border: 2px solid var(--bg);
}
.attend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px; border-radius: 16px; background: var(--bg-soft); }
.attend > span { font-weight: 700; margin-right: auto; }
.seg {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-weight: 700; font-size: 14px;
}
.seg .ico { width: 15px; height: 15px; }
.seg.on { background: var(--mint-soft); border-color: var(--mint); color: var(--mint); }
.seg.on.no { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.notifs { display: flex; flex-direction: column; gap: 4px; max-height: 60vh; overflow: auto; }
.notif { display: flex; gap: 12px; padding: 12px; border-radius: 14px; }
.notif.new { background: var(--brand-soft); }
.notif .ndot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; background: transparent; }
.notif.new .ndot { background: var(--brand); }
.notif b { display: block; }
.notif p { margin: 2px 0; color: var(--text); font-size: 14.5px; }
.notif small { color: var(--muted); font-size: 12.5px; }
.mini { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 8px 0 0; }
.toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--card); cursor: pointer;
}
.toggle > span { display: flex; gap: 12px; align-items: center; }
.toggle > span > .ico { color: var(--brand); flex: none; }
.toggle b { display: block; }
.toggle small { color: var(--muted); font-size: 13px; }
.toggle input {
  appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 99px; flex: none; cursor: pointer;
  background: var(--line); position: relative; transition: background .15s ease; margin: 0;
}
.toggle input::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .15s ease;
}
.toggle input:checked { background: var(--brand); }
.toggle input:checked::after { transform: translateX(18px); }
.toggle input:disabled { opacity: .5; }
.form.flat { max-height: none; overflow: visible; }
.stack.row-actions { display: flex; flex-wrap: wrap; }
.card h3 .pill { margin-left: auto; }
code { font-size: 12.5px; background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
@media (max-width: 420px) {
  .who-role { display: none; }
  .who-chip { padding: 4px; }
  header.top { gap: 8px; }
}

/* ---- Estudar ---- */
.muted { color: var(--muted); font-weight: 600; font-size: 14px; }
.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 12px; }
.tile { display: grid; justify-items: center; gap: 2px; padding: 12px 6px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.tile .ico { width: 22px; height: 22px; }
.tile b { font-size: 22px; font-weight: 800; line-height: 1.1; }
.tile small { font-size: 12px; color: var(--muted); font-weight: 600; }
.tile.xp .ico { color: var(--sun); }
.tile.fire .ico { color: var(--muted); }
.tile.fire.on .ico { color: var(--coral); }
.tile.week .ico { color: var(--brand); }
.study .stat-tiles .tile { background: color-mix(in srgb, var(--card) 80%, transparent); }
.study .linkbtn { justify-self: start; }
.rank { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.rank li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; }
.rank li.me { background: var(--brand-soft); }
.rank .pos { width: 30px; text-align: center; font-weight: 800; }
.rank .nm { flex: 1; font-weight: 700; }
.rank .pts { text-align: right; font-weight: 800; display: grid; }
.rank .pts small { font-weight: 600; color: var(--muted); font-size: 12px; }
.callout.soft { background: var(--brand-soft); }
.callout.soft .ico { color: var(--brand); }
.lesson-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.lcard {
  display: grid; gap: 6px; text-align: left; padding: 16px; border-radius: var(--radius); cursor: pointer; font: inherit; color: inherit;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.lcard:hover { border-color: var(--brand); }
.lcard .lc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lcard .sub { color: var(--muted); font-size: 13.5px; }
.lc-bar { height: 6px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.lc-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), #3fc6d8); border-radius: 99px; }
.player { min-height: min(560px, 80svh); align-content: start; }
.player-top { display: flex; align-items: center; gap: 10px; }
.pbar { flex: 1; height: 10px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.pbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .3s ease; }
.pcount { font-weight: 800; color: var(--muted); font-size: 14px; }
.player .q { font-size: 21px; font-weight: 800; line-height: 1.35; }
.player .gap { color: var(--brand); }
.opts { display: grid; gap: 8px; }
.opt {
  text-align: left; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--line); background: var(--card);
  color: var(--text); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
}
.opt.on { border-color: var(--brand); background: var(--brand-soft); }
.opt.right { border-color: var(--mint); background: var(--mint-soft); }
.opt.wrong { border-color: var(--danger); background: var(--danger-soft); }
input.answer {
  width: 100%; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--line); background: var(--card);
  color: var(--text); font: inherit; font-size: 18px;
}
input.answer:focus { outline: none; border-color: var(--brand); }
.listen-btns { display: flex; gap: 8px; }
.big-listen { font-size: 17px; padding: 14px 22px; }
.order-line { min-height: 56px; display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; border-bottom: 2px dashed var(--line); align-items: center; }
.order-pool { display: flex; flex-wrap: wrap; gap: 8px; }
.word {
  padding: 10px 14px; border-radius: 12px; border: 2px solid var(--line); border-bottom-width: 4px; background: var(--card);
  color: var(--text); font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
}
.word.used { visibility: hidden; }
.feedback { display: grid; gap: 8px; padding: 14px; border-radius: 16px; }
.feedback.ok { background: var(--mint-soft); color: var(--mint); }
.feedback.bad { background: var(--danger-soft); color: var(--danger); }
.feedback span { color: var(--text); }
.done-screen { justify-items: center; text-align: center; }
.done-screen .stack { width: 100%; }
.big-emoji { font-size: 64px; line-height: 1; }
.score { font-size: 18px; font-weight: 700; }
.xp-gain { display: inline-flex; align-items: center; gap: 6px; font-size: 24px; font-weight: 800; color: color-mix(in srgb, var(--sun) 70%, var(--text)); }
.xp-gain .ico { width: 26px; height: 26px; color: var(--sun); }
.item-preview { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; max-height: 40vh; overflow: auto; }
.ed-item { display: grid; gap: 10px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-soft); }
.ed-head { display: flex; align-items: center; gap: 6px; }
.opts-edit { display: grid; gap: 6px; }
.opt-edit { display: flex; align-items: center; gap: 8px; }
.opt-edit input[type=text] { flex: 1; min-width: 0; }
.opt-edit input[type=radio] { width: 20px; height: 20px; accent-color: var(--mint); flex: none; }
.add-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.two-btn { display: flex; align-items: flex-end; gap: 8px; }
.two-btn .field { flex: 1; }
.pick-studs { display: grid; gap: 6px; padding: 8px 0 0 28px; }
.field > .check { font-weight: 600; }

/* ---- Animações das lições ---- */
.player-top .iconbtn.small { margin-left: 2px; }
.combo { justify-self: start; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px;
  background: var(--coral-soft); color: var(--coral); font-weight: 800; font-size: 13px; animation: pop-in .35s ease; }
.combo .ico { width: 15px; height: 15px; }
.player.slide > :not(.player-top) { animation: slide-in .32s cubic-bezier(.2, .8, .3, 1) both; }
.player.shake .opts, .player.shake input.answer, .player.shake .order-line { animation: shake .45s ease; }
.player.pop .opt.right, .player.pop .order-line, .player.pop input.answer { animation: pop .4s ease; }
.player .opt.right, .player.pop input.answer:disabled { border-color: var(--mint); }
.player .opt { transition: transform .12s ease, border-color .12s ease, background .12s ease; }
.player .opt:active:not(:disabled), .word:active:not(:disabled) { transform: scale(.96); }
.word { transition: transform .12s ease; animation: pop-in .2s ease; }
.feedback.enter { animation: rise .3s cubic-bezier(.2, .8, .3, 1) both; }
.feedback.ok.enter b { display: inline-block; animation: pop .45s ease .05s both; }
.done-screen { position: relative; overflow: hidden; }
.done-screen.enter .big-emoji { animation: bounce-in .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.done-screen.enter h3, .done-screen.enter .score { animation: rise .4s ease .15s both; }
.done-screen.enter .xp-gain { animation: pop-in .5s cubic-bezier(.2, 1.4, .4, 1) .3s both; }
.done-screen.enter .stack { animation: rise .4s ease .45s both; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; opacity: 0;
  animation-name: fall; animation-timing-function: cubic-bezier(.3, .5, .6, 1); animation-fill-mode: forwards; }
@keyframes fall {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: 0; transform: translate(var(--dx), 620px) rotate(var(--rot)); }
}
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes pop-in { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes bounce-in { 0% { transform: scale(.2) rotate(-20deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes rise { 0% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes slide-in { 0% { transform: translateX(28px); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .player *, .player, .combo, .word { animation: none !important; transition: none !important; }
}

/* ---- Página de entrada ---- */
.landing { min-height: 100svh; overflow-x: hidden; background:
  radial-gradient(900px 500px at 85% -10%, color-mix(in srgb, var(--brand-2) 22%, transparent), transparent 70%),
  radial-gradient(700px 420px at -10% 30%, color-mix(in srgb, var(--coral) 14%, transparent), transparent 70%), var(--bg); }
.landing > * { max-width: 1120px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.land-top { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 8px; }
.land-hero { position: relative; display: grid; gap: 40px; align-items: center; padding-top: 28px; padding-bottom: 48px; }
.land-hero .auth-hero { z-index: 0; }
.hero-copy { position: relative; z-index: 1; display: grid; gap: 16px; justify-items: start; }
.hero-copy .eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); }
.hero-copy .eyebrow .ico { width: 15px; height: 15px; }
.hero-copy h1 { font-size: clamp(36px, 9vw, 60px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; margin: 0; }
.grad { background: linear-gradient(120deg, var(--brand), var(--brand-2) 55%, var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy .lead { font-size: 17.5px; color: var(--muted); max-width: 520px; margin: 0; }
.hero-copy .google { width: auto; padding: 14px 26px; font-size: 16.5px; }
.google.light { background: #fff; color: #15183a; border-color: transparent; }
.phone { position: relative; z-index: 1; justify-self: center; width: min(290px, 78vw); }
.phone-screen {
  display: grid; gap: 10px; padding: 22px 16px 18px; border-radius: 38px; background: var(--card);
  border: 8px solid #15183a; box-shadow: var(--shadow-lg); transform: rotate(-3deg);
}
.ph-top { display: flex; align-items: center; gap: 10px; }
.ph-bar { flex: 1; height: 9px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.ph-bar i { display: block; height: 100%; width: 35%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); animation: ph-grow 6s ease-in-out infinite; }
.ph-streak { display: inline-flex; align-items: center; gap: 2px; color: var(--coral); font-weight: 800; font-size: 14px; }
.ph-streak .ico { width: 16px; height: 16px; }
.ph-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ph-q { font-size: 18px; font-weight: 800; margin: 0 0 2px; }
.ph-opt { padding: 11px 13px; border-radius: 14px; border: 2px solid var(--line); font-weight: 700; font-size: 14.5px; }
.ph-opt.ok { animation: ph-ok 6s ease-in-out infinite; }
.ph-feedback { display: flex; align-items: center; justify-content: space-between; padding: 11px 13px; border-radius: 14px;
  background: var(--mint-soft); color: var(--mint); animation: ph-fb 6s ease-in-out infinite; }
.ph-xp { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: color-mix(in srgb, var(--sun) 70%, var(--text)); }
.ph-xp .ico { width: 15px; height: 15px; color: var(--sun); }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; animation: float 6s ease-in-out infinite; }
.float-card b { display: block; font-size: 14px; }
.float-card small { color: var(--muted); }
.float-card .ico { width: 30px; height: 30px; padding: 7px; box-sizing: border-box; border-radius: 10px; flex: none; }
.fc1 { left: -34px; top: 16%; }
.fc1 .ico { background: var(--mint-soft); color: var(--mint); }
.fc2 { right: -30px; bottom: 12%; animation-delay: -3s; }
.fc2 .ico { background: var(--sun-soft); color: color-mix(in srgb, var(--sun) 70%, var(--text)); }
@keyframes ph-grow { 0%, 20% { width: 35%; } 45%, 100% { width: 50%; } }
@keyframes ph-ok { 0%, 22% { border-color: var(--line); background: transparent; } 30%, 92% { border-color: var(--mint); background: var(--mint-soft); transform: scale(1.02); } 100% { border-color: var(--line); } }
@keyframes ph-fb { 0%, 30% { opacity: 0; transform: translateY(10px); } 38%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.land-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding-bottom: 40px; }
.land-strip span { display: grid; gap: 2px; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 14px; }
.land-strip b { font-size: 28px; color: var(--text); letter-spacing: -.02em; }
.land-section { padding-bottom: 48px; }
.land-section h2, .land-cta h2 { font-size: clamp(24px, 6vw, 34px); letter-spacing: -.03em; font-weight: 800; margin: 0 0 18px; }
.feats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.feat { padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 8px; align-content: start; }
.feat h3 { margin: 0; font-size: 17px; font-weight: 800; }
.feat p { margin: 0; color: var(--muted); font-size: 14.5px; }
.feat-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; }
.feat-ico .ico { width: 22px; height: 22px; }
.feat-ico.mint { background: var(--mint-soft); color: var(--mint); }
.feat-ico.brand { background: var(--brand-soft); color: var(--brand); }
.feat-ico.coral { background: var(--coral-soft); color: var(--coral); }
.feat-ico.sun { background: var(--sun-soft); color: color-mix(in srgb, var(--sun) 70%, var(--text)); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.steps .num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.steps b { display: block; font-size: 16px; }
.steps p { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }
.land-cta { margin-bottom: 32px; padding: 34px 22px; border-radius: 28px; text-align: center; color: #fff; display: grid; justify-items: center; gap: 6px;
  background: linear-gradient(135deg, #4f5bff, #8b5cf6 60%, #ff6b4a); box-shadow: var(--shadow-lg);
  max-width: calc(1120px - 40px); margin-left: 20px; margin-right: 20px; }
.land-cta p { margin: 0 0 12px; opacity: .9; }
.land-foot { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding-bottom: 32px; color: var(--muted); font-size: 13.5px; }
.land-foot .logo { width: 24px; height: 24px; }
.land-foot a { color: var(--muted); }
@media (min-width: 900px) {
  .land-hero { grid-template-columns: 1.15fr .85fr; padding-top: 56px; padding-bottom: 72px; }
  .land-strip { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .land-cta { margin-left: auto; margin-right: auto; }
}
@media (max-width: 420px) { .fc1 { left: -14px; } .fc2 { right: -10px; } }
@media (prefers-reduced-motion: reduce) { .ph-bar i, .ph-opt.ok, .ph-feedback, .float-card { animation: none; } .ph-feedback { opacity: 1; } }
.fc1 { left: -22px; top: -22px; }
.fc2 { right: -18px; bottom: -22px; }
.hello { position: absolute; padding: 8px 14px; border-radius: 16px 16px 16px 4px; background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow); font-weight: 800; font-size: 14px; animation: float 7s ease-in-out infinite; }
.hello.h1 { right: -12px; top: 30%; color: var(--brand); animation-delay: -2s; }
.hello.h2 { left: -16px; bottom: 26%; color: var(--coral); border-radius: 16px 16px 4px 16px; animation-delay: -4s; }
.phone { margin: 24px 0; }
@media (max-width: 420px) { .fc1 { left: -8px; } .fc2 { right: -6px; } .hello.h1 { right: -4px; } .hello.h2 { left: -6px; } }
@media (prefers-reduced-motion: reduce) { .hello { animation: none; } }
.hello.h2, .hello.h2 { left: 6px; bottom: -18px; top: auto; }
@media (max-width: 420px) { .hello.h2 { left: 6px; } }

/* ---- Horários livres (aula avulsa e fixa) ---- */
.chip { padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--text);
  font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.chip.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.slotpick { display: grid; gap: 8px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-soft); }
.slotpick-body { display: grid; gap: 8px; min-width: 0; }
.slotpick .note { margin: 0; }
.sp-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.sp-label small { font-weight: 600; }
.slotpick .daychip, .slotpick .slot { color: var(--text); font: inherit; }
.slotpick .daychip b { font-weight: 800; }
.slotpick .daychip.on, .slotpick .slot.on { color: var(--brand-ink); }
.daychip.wk { width: 54px; padding: 12px 0; }
.daychip.wk b { font-size: 15px; }
.slotpick .slot { font-size: 16px; font-variant-numeric: tabular-nums; }
.sp-chosen { margin: 2px 0 0; font-size: 14px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.sp-chosen.on { color: var(--brand); font-weight: 700; }
.sp-chosen svg { width: 16px; height: 16px; flex: none; }
.hrow { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 8px; }
.hwins { display: grid; gap: 6px; }
.hwin { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 4px; width: 100%; box-sizing: border-box; }
.hrow:has(.hwin) .hwins { grid-column: 1 / -1; grid-row: 2; }
.hrow:has(.hwin) .hday { grid-column: 1 / 3; }
.hwin .hsel { min-width: 0; width: 100%; padding: 8px 2px; font-size: 15px; font-variant-numeric: tabular-nums;
  appearance: none; -webkit-appearance: none; background-image: none; text-align: center; text-align-last: center; }
@media (min-width: 700px) { .hrow:has(.hwin) .hwins { grid-column: 2; grid-row: 1; } .hrow:has(.hwin) .hday { grid-column: 1; } .hwin { max-width: 380px; } }
.gcal-box { display: grid; gap: 10px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); }
.gcal-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.gcal-link .ico { width: 16px; height: 16px; }
.gcal-invite { display: flex; align-items: flex-start; gap: 6px; font-size: 14px; }
.gcal-invite .ico { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.hint.error { color: var(--danger, #c0392b); border-color: currentColor; padding: 12px; text-align: left; }
details.more summary { cursor: pointer; color: var(--muted); font-size: 14px; }
details.more .row-actions { margin-top: 8px; }
.gcard .row-actions { flex-wrap: wrap; }

/* ---- Aula extra (pedido do aluno) ---- */
.card.extra { display: grid; gap: 10px; align-content: start; }
.card.extra h3, .card.extra .note { margin: 0; }
.req-list { display: grid; gap: 6px; }
.req { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; border-radius: 12px; background: var(--bg-soft); }
.req .d { font-weight: 700; font-size: 14px; }
.req .linkbtn { margin-left: auto; }
.req .note.small { flex-basis: 100%; }
.item.request { flex-wrap: wrap; }
.req-actions { display: flex; gap: 6px; margin-left: auto; }
@media (max-width: 480px) { .item.request .req-actions { flex-basis: 100%; justify-content: flex-end; } }
.fixed-list { display: grid; gap: 8px; margin-bottom: 6px; }
.fixed-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.fixed-row .when { margin: 0; flex: 1; min-width: 0; }
.fixed-row .req { flex-basis: 100%; }

/* ---- Marca Fluent Speaker ---- */
.brand-name { display: grid; line-height: 1.05; }
.brand-name small { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero-brand { display: flex; align-items: center; gap: 12px; }
.logo-full { width: 128px; height: 56px; flex: none; }
.hero-brand span { display: grid; line-height: 1.15; }
.hero-brand b { font-size: 19px; letter-spacing: .02em; color: color-mix(in srgb, #2a1b5e 85%, var(--text)); }
.hero-brand small { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
@media (prefers-color-scheme: dark) { .hero-brand b { color: var(--text); } }
.land-sub { margin: -8px 0 20px; color: var(--muted); font-size: 16px; }
.plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: stretch; }
.plan { position: relative; display: grid; gap: 6px; align-content: start; justify-items: center; text-align: center;
  padding: 26px 18px 22px; border-radius: 24px; background: var(--card); border: 1.5px solid var(--line); box-shadow: var(--shadow); }
.plan.hot { border: 2px solid var(--brand-2); background: linear-gradient(180deg, color-mix(in srgb, var(--brand-2) 10%, var(--card)), var(--card) 60%); }
.plan-tag { position: absolute; top: -12px; padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #8B5CF6, #5B21B6); }
.plan-n { font-size: 16px; color: var(--muted); font-weight: 600; }
.plan-n b { font-size: 20px; color: var(--text); }
.plan-price { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-top: 6px; }
.plan-price small { font-size: 18px; font-weight: 700; color: var(--muted); }
.plan-price small:first-child { margin-right: 4px; vertical-align: 16px; }
.plan-per { font-size: 14px; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 7px; justify-items: start; font-size: 14px; }
.plan li { display: flex; align-items: center; gap: 8px; }
.plan li .ico { width: 16px; height: 16px; color: var(--mint); flex: none; }
.plans-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 20px 0 4px; font-weight: 700; text-align: center; color: var(--brand-2); }
.plans-note .ico { width: 18px; height: 18px; flex: none; }
.plans-contact { text-align: center; margin: 0; }
.plan .btn.wa { margin-top: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.plan .btn.wa .ico { width: 18px; height: 18px; }
.plan .btn.wa:not(.ghost) { background: #25D366; border-color: #25D366; color: #fff; }
.plan .btn.wa.ghost { color: #128C7E; border-color: color-mix(in srgb, #25D366 50%, var(--line)); }
.plans-contact a { color: #128C7E; font-weight: 700; }
.google.top { width: auto; padding: 9px 14px; font-size: 14px; gap: 8px; }
.google.top svg { width: 18px; height: 18px; }
.hero-cta { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; font-size: 16px; text-decoration: none; }
.hero-cta .ico { width: 18px; height: 18px; }
.cta-wa { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; text-decoration: none; background: #fff; color: #128C7E; border-color: transparent; font-weight: 800; }
.cta-wa .ico { width: 20px; height: 20px; }
html { scroll-behavior: smooth; }
#planos { scroll-margin-top: 16px; }
.google.top span { white-space: nowrap; }
@media (max-width: 440px) { .land-top .brand-name { display: none; } }
.member { display: flex; align-items: center; gap: 10px; padding: 5px 5px 5px 14px; border-radius: 99px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.member-txt { display: grid; line-height: 1.15; text-align: right; }
.member-txt b { font-size: 13.5px; }
.member-txt small { font-size: 11.5px; color: var(--muted); }
.member .google.top { border-radius: 99px; background: var(--brand); color: #fff; border-color: transparent; box-shadow: none; }
.member .google.top svg { background: #fff; border-radius: 50%; padding: 3px; box-sizing: content-box; width: 14px; height: 14px; }
.g-short { display: none; }
@media (max-width: 440px) {
  .member { padding-left: 12px; gap: 8px; }
  .member-txt small { display: none; }
  .g-long { display: none; }
  .g-short { display: inline; }
}
.cred-box { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.cred-box .mini { margin: 0; }
.cred-list { display: grid; gap: 6px; }
.cred-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.cred-row small { display: block; color: var(--muted); font-size: 12.5px; }
.linkbtn.danger { color: var(--danger); }
.cred-box .btn { justify-self: start; }
.say-big { font-size: 24px; font-weight: 800; line-height: 1.3; margin: 2px 0 0; }
.said { margin: 0; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--brand, #4f5bff) 10%, transparent); font-weight: 600; }
.big-listen.on { animation: micpulse 1.1s ease-in-out infinite; }
@keyframes micpulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--coral) 55%, transparent); } 50% { box-shadow: 0 0 0 10px transparent; } }
.skip-speak { justify-self: start; font-size: 14px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .big-listen.on { animation: none; } }
