@import url("fonts.css");

:root {
  --cream: #F6F2EC;
  --card: #FFFDF9;
  --green: #1A472A;
  --green-2: #2E6B43;
  --green-soft: #E3EDE5;
  --lilac: #9B87C4;
  --lilac-deep: #6E5A9E;
  --lilac-soft: #EEE8F7;
  --ink: #1F2A22;
  --muted: #5E665F;
  --line: #E4DDD2;
  --warn: #A3472F;
  --warn-soft: #F7E6DF;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(31, 42, 34, .05), 0 6px 18px rgba(31, 42, 34, .06);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; line-height: 1.15; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0; }
a { color: var(--green); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 2px; }

.pt { color: var(--muted); font-size: .88rem; font-weight: 400; font-family: var(--sans); }
.en { font-style: italic; color: var(--lilac-deep); }

/* ---------- Demo banner ---------- */
.demo-banner {
  background: var(--lilac-soft);
  color: var(--lilac-deep);
  text-align: center;
  font-size: .82rem;
  padding: 6px 16px;
  font-weight: 600;
}

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  display: none;
  width: 248px;
  flex-shrink: 0;
  background: var(--card);
  border-right: 1px solid var(--line);
  padding: 24px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar .logo { height: 40px; margin: 0 10px 4px; display: block; }
.sidebar .who { margin: 0 10px 22px; color: var(--muted); font-size: .85rem; }
.nav-label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 18px 10px 6px; font-weight: 600; }
.nav-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  border: 0; background: transparent; color: var(--ink);
  padding: 10px 12px; border-radius: 12px; font-size: .98rem;
}
.nav-btn small { display: block; color: var(--muted); font-size: .78rem; }
.nav-btn:hover { background: var(--green-soft); }
.nav-btn[aria-current="page"] { background: var(--green); color: #fff; }
.nav-btn[aria-current="page"] small { color: #CFE0D3; }
.nav-ico { width: 22px; text-align: center; flex-shrink: 0; }

.main { flex: 1; min-width: 0; padding: 18px 16px 110px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.topbar .logo { height: 34px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--lilac-soft); color: var(--lilac-deep);
  display: grid; place-items: center; font-weight: 700;
}

.bottom-nav {
  position: fixed; left: 12px; right: 12px; bottom: 12px;
  background: var(--green); border-radius: 22px;
  display: flex; justify-content: space-around;
  padding: 6px; box-shadow: 0 8px 24px rgba(26, 71, 42, .3);
  z-index: 20;
}
.bottom-nav button {
  flex: 1; border: 0; background: transparent; color: #D6E6DA;
  padding: 8px 2px; border-radius: 16px; font-size: .74rem;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.bottom-nav button span { font-size: 1.15rem; line-height: 1; }
.bottom-nav button[aria-current="page"] { background: #fff; color: var(--green); font-weight: 600; }

@media (min-width: 900px) {
  .sidebar { display: block; }
  .topbar { display: none; }
  .bottom-nav { display: none; }
  .main { padding: 32px 40px 48px; }
  h1 { font-size: 2.3rem; }
}

.view { display: none; max-width: 1080px; }
.view.active { display: block; }
.view > * + * { margin-top: 18px; }

/* ---------- Header ---------- */
.date { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--muted); font-weight: 600; }
.hello { margin-top: 4px; }
.hello .name { color: var(--green); }
.sub { color: var(--muted); margin-top: 4px; }

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head .pt { display: block; margin-top: 2px; }
.grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat .k { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.stat .v { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--green); line-height: 1.1; margin-top: 4px; }
.stat .v small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.stat .d { font-size: .82rem; color: var(--muted); }
.stat.hl { background: var(--green); border-color: var(--green); }
.stat.hl .k, .stat.hl .d { color: #CFE0D3; }
.stat.hl .v { color: #fff; }
.stat.hl .v small { color: #CFE0D3; }
.stat.lilac { background: var(--lilac-soft); border-color: #DCD2EE; }
.stat.lilac .v { color: var(--lilac-deep); }

/* Next class */
.next {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-2) 100%);
  color: #fff; border: 0;
}
.next .label { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: #CFE0D3; font-weight: 600; }
.next h2 { font-size: 1.7rem; margin-top: 4px; }
.next .meta { color: #DCEADF; margin-top: 4px; }
.next .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.next .notice { margin-top: 14px; background: rgba(255,255,255,.12); padding: 10px 12px; border-radius: 12px; font-size: .92rem; }

/* Buttons */
.btn {
  border: 1px solid transparent; border-radius: 999px;
  padding: 10px 18px; font-weight: 600; font-size: .95rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-2); }
.btn-light { background: #fff; color: var(--green); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn-lilac { background: var(--lilac-soft); color: var(--lilac-deep); }
.btn[disabled] { opacity: .55; cursor: default; }

/* Lists */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; padding-top: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 600; }
.list .meta { font-size: .85rem; color: var(--muted); }
.tag {
  display: inline-block; font-size: .74rem; font-weight: 600;
  padding: 2px 9px; border-radius: 999px; white-space: nowrap;
  background: var(--green-soft); color: var(--green);
}
.tag.lilac { background: var(--lilac-soft); color: var(--lilac-deep); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.gray { background: #EEEAE3; color: var(--muted); }

/* Checkbox */
.check {
  appearance: none; -webkit-appearance: none;
  width: 24px; height: 24px; flex-shrink: 0; margin: 0;
  border: 2px solid var(--green); border-radius: 7px; background: #fff;
  display: grid; place-items: center; cursor: pointer;
}
.check:checked { background: var(--green); }
.check:checked::after { content: "✓"; color: #fff; font-size: 15px; font-weight: 700; }
.done .title { text-decoration: line-through; color: var(--muted); }

/* Progress bar */
.bar { height: 10px; background: #EEEAE3; border-radius: 999px; overflow: hidden; margin-top: 8px; }
.bar > i { display: block; height: 100%; background: var(--lilac); border-radius: 999px; transition: width .3s; }

/* Notebook table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: top; }
th { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-top: 0; }
td.word { font-style: italic; color: var(--lilac-deep); font-weight: 600; }
.form-row { display: grid; gap: 8px; margin-top: 14px; }
@media (min-width: 700px) { .form-row { grid-template-columns: 1fr 1fr 1.6fr auto; } }
input[type="text"], textarea, select {
  font: inherit; width: 100%;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  padding: 10px 12px; color: var(--ink);
}
textarea { resize: vertical; min-height: 80px; }

/* Week agenda */
.week { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .week { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .week { grid-template-columns: repeat(7, 1fr); } }
.day { border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: #fff; min-height: 90px; }
.day.today { border: 2px solid var(--lilac); background: #FCFAFF; }
.day h3 { font-family: var(--sans); font-size: .9rem; font-weight: 700; margin-bottom: 8px; text-transform: capitalize; }
.day .free { color: var(--muted); font-size: .85rem; }
.ev { border-radius: 10px; padding: 7px 9px; font-size: .84rem; margin-top: 6px; background: var(--green-soft); }
.ev b { display: block; }
.ev.group { background: var(--lilac-soft); }
.ev.aulao { background: #FBEBD0; }

/* Attendance */
.att { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.att button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 11px; font-size: .84rem; color: var(--ink); }
.att button[aria-pressed="true"].p { background: var(--green); color: #fff; border-color: var(--green); }
.att button[aria-pressed="true"].a { background: var(--warn); color: #fff; border-color: var(--warn); }
.att button[aria-pressed="true"].r { background: var(--lilac-deep); color: #fff; border-color: var(--lilac-deep); }

/* Sheet / modal */
.sheet-bg { position: fixed; inset: 0; background: rgba(31,42,34,.45); display: none; z-index: 40; }
.sheet-bg.open { display: block; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--card); border-radius: 22px 22px 0 0;
  padding: 22px 18px 26px; max-width: 560px; margin: 0 auto;
  display: none; max-height: 90vh; overflow-y: auto;
}
.sheet.open { display: block; animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet h2 { margin-bottom: 4px; }
.sheet label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: .92rem; }
.sheet .row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
@media (min-width: 700px) {
  .sheet { top: 50%; bottom: auto; border-radius: 22px; transform: translateY(-50%); }
  .sheet.open { animation: none; }
}

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px;
  font-size: .9rem; opacity: 0; transition: .25s; z-index: 60; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 900px) { .toast { bottom: 28px; } }

.empty { color: var(--muted); font-size: .92rem; text-align: center; padding: 14px 0; }
.note { background: var(--lilac-soft); border-radius: 12px; padding: 12px 14px; font-size: .92rem; }
.note b { color: var(--lilac-deep); }

/* Landing */
.landing { max-width: 760px; margin: 0 auto; padding: 40px 16px 60px; text-align: center; }
.landing .logo { height: 64px; }
.landing h1 { margin-top: 18px; }
.landing .choices { display: grid; gap: 14px; margin-top: 28px; text-align: left; }
@media (min-width: 640px) { .landing .choices { grid-template-columns: 1fr 1fr; } }
.choice { display: block; text-decoration: none; color: var(--ink); }
.choice:hover { border-color: var(--green); }
.choice .ico { font-size: 1.8rem; }
.choice h2 { margin-top: 8px; }
.choice .go { margin-top: 14px; color: var(--green); font-weight: 600; }
.small-print { margin-top: 28px; color: var(--muted); font-size: .85rem; }

/* ---------- Ícones Olvi ---------- */
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; flex-shrink: 0; }
.ic .acc { fill: var(--lilac); stroke: none; }
.ic .accs { stroke: var(--lilac); }
.ic .leaf { fill: var(--lilac-soft); }
.ic .solid { fill: currentColor; }
.nav-ico { color: var(--green); display: grid; place-items: center; }
.nav-btn[aria-current="page"] .nav-ico { color: #fff; }
.nav-btn[aria-current="page"] .ic .leaf { fill: rgba(255,255,255,.18); }
.bottom-nav .ic { width: 22px; height: 22px; }
.bottom-nav button[aria-current="page"] .ic .leaf { fill: var(--lilac-soft); }
.bottom-nav button:not([aria-current]) .ic .leaf { fill: rgba(255,255,255,.12); }
.btn .ic { width: 18px; height: 18px; }
.on-dark .acc, .ic.on-dark .acc { fill: #CDBFE6; }
.inline-ic { display: inline-block; vertical-align: -4px; }
.inline-ic .ic { width: 18px; height: 18px; color: var(--green); }
.note .inline-ic .ic { color: var(--green); }
.go .inline-ic .ic { width: 18px; }
.empty .ic { display: inline-block; vertical-align: -5px; width: 20px; height: 20px; color: var(--green); margin-right: 4px; }
.notice .ic { display: inline-block; vertical-align: -5px; width: 18px; height: 18px; }
.landing .ico { width: 52px; height: 52px; border-radius: 16px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.landing .ico .ic { width: 30px; height: 30px; }

/* ---------- Hub com login ---------- */
.login-card { max-width: 420px; margin: 26px auto 0; text-align: left; }
.login-card h2 { margin-bottom: 4px; }
.login-card .ico { color: var(--green); width: 34px; margin-bottom: 8px; }
.lbl { display: block; font-weight: 600; margin: 16px 0 6px; font-size: .92rem; }
input[type="email"] { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
input[type="email"]:focus, .btn:focus-visible, .linklike:focus-visible { outline: 3px solid var(--lilac); outline-offset: 2px; }
.btn-block { width: 100%; margin-top: 14px; justify-content: center; }
.msg { margin-top: 12px; font-size: .92rem; }
.msg.err { color: var(--warn); background: var(--warn-soft); padding: 10px 12px; border-radius: 12px; }
.linklike { background: none; border: 0; padding: 0; color: var(--green); text-decoration: underline; font: inherit; }
.small-print a { color: var(--green); }
.state { text-align: center; padding: 40px 16px; color: var(--muted); }
.state .msg.err { display: inline-block; }
.signout { margin: 18px 10px 0; }
.topbar .signout { margin: 0; }
.feedback { margin-top: 6px; background: var(--lilac-soft); border-radius: 10px; padding: 8px 10px; font-size: .88rem; }
.feedback b { color: var(--lilac-deep); }
.viewing { background: var(--lilac-soft); color: var(--lilac-deep); padding: 8px 14px; font-size: .9rem; text-align: center; }
.viewing a { color: var(--lilac-deep); font-weight: 600; }
.goal-ok { color: var(--green); width: 22px; flex-shrink: 0; }
.goal-todo { width: 22px; height: 22px; border: 2px solid var(--line); border-radius: 7px; flex-shrink: 0; }
.student-list a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); width: 100%; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }


/* ============================================================
   Sistema visual do site somosolvi.com.br (mesmas cores, fontes e formas)
   ============================================================ */
:root {
  --cream: #F8F3EB;
  --card: #FFFDFA;
  --green: #103D20;
  --green-2: #1C5530;
  --green-soft: #E6EDE6;
  --lilac: #C3B1DA;
  --lilac-soft: #EFE9F5;
  --lilac-deep: #6E5A9E;
  --plum: #1F1629;
  --ink: #3A3738;
  --muted: #66616D;
  --eyebrow: #5F6F63;
  --line: #E6DEEE;
  --radius: 24px;
  --shadow: 0 1px 2px rgba(31, 22, 41, .03), 0 14px 34px rgba(31, 22, 41, .05);
}
body { background: var(--cream); color: var(--ink); }
h1, h2, h3 { font-weight: 500; color: var(--green); letter-spacing: -.005em; }
h1 { font-size: 2.1rem; }
.card h2, .card h3 { font-weight: 500; }
a { color: var(--green); }
.eyebrow, .date, .nav-label, .stat .k, .next .label { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 600; color: var(--eyebrow); }
.hello .name { color: var(--green); font-style: normal; }
.sub { color: var(--muted); }
.view > div:first-child > h1::after, .leaf-div {
  content: ""; display: block; width: 120px; height: 14px; margin-top: 12px;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='14' viewBox='0 0 120 14'><path d='M0 7h46M74 7h46' stroke='%23C9BEDA' stroke-width='1'/><g transform='translate(53 1)' fill='none' stroke='%23103D20' stroke-width='1.1'><path d='M2 12C2 6 6 1.5 12 1.5 12 7.5 8 12 2 12z'/><path d='M2 12 9 5'/></g></svg>") no-repeat left center / 120px 14px;
}
.view#home > div:first-child > h1::after { display: none; }

/* Logo do site (com "English & Português") */
.sidebar .logo { height: 54px; width: auto; margin: 0 10px 6px; }
.topbar .logo { height: 40px; width: auto; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.stat .v { font-weight: 500; color: var(--green); }
.stat.hl { background: var(--green); border-color: var(--green); }
.stat.hl .k, .stat.hl .d, .stat.hl .v small { color: #DCE6DE; }
.stat.hl .v { color: var(--cream); }
.stat.lilac { background: var(--lilac-soft); border-color: var(--line); }
.stat.lilac .v { color: var(--green); }
.stat.hl-lilac { background: var(--lilac); border-color: var(--lilac); }
.stat.hl-lilac .k, .stat.hl-lilac .d, .stat.hl-lilac .v small { color: #2E2A3B; }
.stat.hl-lilac .v { color: var(--green); }

/* Próxima aula: igual ao quadro "Comece por aqui" do site */
.next {
  background: linear-gradient(115deg, #E6DCEF 0%, #F1EAF2 45%, var(--cream) 100%);
  border: 1.5px solid var(--green); color: var(--ink); box-shadow: none;
}
.next h2 { color: var(--green); font-weight: 500; }
.next .meta { color: var(--muted); }
.next .meta b { color: var(--ink); }
.next .btn-light { background: var(--green); color: var(--cream); }
.next .btn-light:hover { background: var(--green-2); }

/* Botões em pílula, como no site */
.btn { border-radius: 999px; font-weight: 600; }
.btn-primary { background: var(--green); color: var(--cream); }
.btn-primary:hover { background: var(--green-2); }
.btn-outline { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-outline:hover { background: var(--lilac-soft); }
.btn-lilac { background: var(--lilac); color: var(--green); }

/* Etiquetas */
.tag { border-radius: 999px; background: var(--cream); color: var(--green); border: 1px solid #DCD3E8; font-weight: 600; }
.tag.lilac { background: var(--lilac-soft); color: var(--green); border-color: #DCD3E8; }
.tag.warn { border-color: #EBCFC4; }

/* Menu lateral */
.sidebar { background: var(--card); border-right: 1px solid var(--line); }
.nav-btn { border-radius: 999px; padding: 8px 14px 8px 8px; }
.nav-btn:hover { background: var(--lilac-soft); }
.nav-ico { width: 38px; height: 38px; border-radius: 50%; background: var(--lilac-soft); color: var(--green); flex-shrink: 0; }
.nav-btn[aria-current="page"] { background: var(--lilac); color: var(--green); font-weight: 600; box-shadow: none; }
.nav-btn[aria-current="page"] small { color: #2E2A3B; }
.nav-btn[aria-current="page"] .nav-ico { background: var(--card); color: var(--green); }

/* Barra de baixo no celular: ameixa, como o rodapé do site */
.bottom-nav { background: var(--plum); box-shadow: 0 10px 28px rgba(31, 22, 41, .28); }
.bottom-nav button { color: #D9CFE6; }
.bottom-nav button[aria-current="page"] { background: var(--lilac); color: var(--green); }
.bottom-nav button[aria-current="page"] .ic { color: var(--green); }

/* Metas e listas */
.check { border-color: var(--lilac); border-radius: 50%; }
.check:checked { background: var(--green); border-color: var(--green); }
.bar { background: var(--lilac-soft); }
.bar > i { background: var(--lilac); }
.feedback, .note { background: var(--lilac-soft); }
.feedback b, .note b { color: var(--green); }
.viewing { background: var(--plum); color: #E6DDF0; }
.viewing a { color: var(--lilac); }
.landing .ico { background: var(--lilac); color: var(--green); border-radius: 50%; }
.choice:hover { border-color: var(--lilac); }
:focus-visible, input[type="email"]:focus { outline: 3px solid var(--lilac); outline-offset: 2px; }
input[type="email"] { border-radius: 999px; padding: 12px 18px; border-color: #DCD3E8; background: #fff; }

/* ---------- Entrada (login) no estilo da home do site ---------- */
body.login { min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(circle at 78% 30%, rgba(195,177,218,.28), transparent 42%), var(--cream); }
.login-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.login-head .logo { height: 46px; width: auto; }
.login-head .back { font-size: .9rem; font-weight: 600; text-decoration: none; border: 1px solid #DCD3E8; padding: 8px 16px; border-radius: 999px; background: var(--card); }
.login-wrap { flex: 1; width: 100%; max-width: 1140px; margin: 0 auto; padding: 40px 24px 56px; display: grid; gap: 40px; align-items: center; }
.login-copy h1 { font-size: 2.5rem; font-weight: 400; line-height: 1.08; margin-top: 10px; }
.login-copy .sub { font-size: 1.05rem; margin-top: 12px; max-width: 30em; }
.login-card { max-width: 440px; margin: 26px 0 0; border-top: 1px solid var(--line); }
.login-card h2 { font-size: 1.5rem; }
.help { margin-top: 14px; font-size: .86rem; color: var(--muted); }
.help a { color: var(--green); font-weight: 600; }
.exclusive { margin-top: 18px; font-size: .84rem; color: var(--muted); }
.exclusive a { color: var(--muted); }
.arch { display: none; }
.login-foot { background: var(--plum); color: #D9CFE6; padding: 26px 24px; font-size: .86rem; }
.login-foot .in { max-width: 1140px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.login-foot img { height: 40px; width: auto; }
.login-foot a { color: #E6DDF0; }
@media (min-width: 900px) {
  .login-wrap { grid-template-columns: 1.05fr .95fr; padding-top: 56px; }
  .login-copy h1 { font-size: 3.4rem; }
  .arch { display: block; justify-self: center; width: 100%; max-width: 400px; margin: 0; padding: 26px 26px 0;
    border-radius: 999px 999px 0 0; background: linear-gradient(180deg, #F4E7DC 0%, #F8F1EA 100%);
    box-shadow: 0 30px 60px rgba(31, 22, 41, .08); }
  .arch img { height: auto; max-height: 520px; display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 0 0; }
}

.circ { width: 38px; height: 38px; border-radius: 50%; background: var(--lilac); color: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.circ .ic { width: 20px; height: 20px; }
.student-list a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); width: 100%; }
@media (min-width: 900px) { .landing .topbar { display: flex; margin-bottom: 28px; } .landing .topbar .logo { height: 48px; } }

/* Materiais */
.mat .circ { margin-top: 2px; }
.mat .meta.pt, .card-head .pt .pt { color: var(--muted); }
.mat .player audio, .mat .player video { width: 100%; margin-top: 10px; border-radius: 999px; }
.mat .player video { border-radius: 14px; }
.mat-open { flex-shrink: 0; align-self: center; }
.mat-note .note { font-size: .9rem; }
.mat-note .note .meta { margin-top: 4px; }
@media (max-width: 560px) {
  .list li.mat { flex-wrap: wrap; }
  .mat .grow { flex-basis: calc(100% - 50px); }
  .mat-open { margin-left: 50px; align-self: flex-start; }
}
#mat-list { display: grid; gap: 16px; }
#materials .card-head { margin-bottom: 14px; }
.sec-en, .sec-pt { margin: 4px 0 0; font-size: .9rem; }
.sec-en { color: var(--ink); }
.sec-pt { color: var(--muted); }

.account { margin-top: 8px; color: var(--muted); font-size: .82rem; }
.account b { color: var(--green); font-weight: 600; }
.linklike { background: none; border: 0; padding: 0; color: var(--green); text-decoration: underline; font: inherit; cursor: pointer; }

/* Painel da professora */
.list .title a, .list .meta a { color: var(--green); text-decoration: none; border-bottom: 1px solid #DCD3E8; }
.list .title a:hover, .list .meta a:hover { border-color: var(--green); }
.list li > .btn { flex-shrink: 0; align-self: center; }
.list li > .tag { align-self: center; flex-shrink: 0; }
@media (max-width: 560px) {
  #app .list li { flex-wrap: wrap; }
  #app .list li > .grow { flex-basis: calc(100% - 50px); }
  #app .list li > .tag, #app .list li > .btn { margin-left: 50px; }
  #app .list li > .tag + .btn { margin-left: 0; }
}

/* ---------- Games ---------- */
#games [hidden] { display: none !important; }
.games-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.game-card { display: flex; flex-direction: column; gap: 6px; }
.game-card .circ { margin-bottom: 6px; }
.game-card h2 { font-size: 1.3rem; line-height: 1.2; }
.game-card .pt { margin-top: -2px; }
.game-card .meta { font-size: .92rem; }
.game-card .game-play { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; }
.game-card .game-play .ic { width: 16px; height: 16px; }
.game-card > .meta:last-of-type { margin-bottom: 10px; }
.game-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.game-name { display: flex; flex-direction: column; min-width: 0; }
.game-name b { font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: 1.25rem; color: var(--green); }
.game-frame-wrap { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #F6F2EC; box-shadow: 0 6px 20px rgba(26, 71, 42, .06); }
#game-frame { width: 100%; height: calc(100vh - 190px); min-height: 560px; border: 0; display: block; background: #F6F2EC; }
@media (max-width: 899px) {
  #game-frame { height: calc(100vh - 230px); min-height: 520px; }
  .game-bar .game-name { order: -1; flex-basis: 100%; }
  #game-full { display: none; }
}
.game-name { flex: 1; }


/* ---------- Mais (celular) ---------- */
.more-sheet { position: fixed; right: 12px; bottom: 92px; z-index: 25; background: #fff; border-radius: 20px; padding: 8px; box-shadow: 0 12px 32px rgba(31, 22, 41, .25); display: grid; gap: 2px; min-width: 220px; }
.more-sheet[hidden] { display: none; }
.more-sheet button { display: flex; align-items: center; gap: 12px; border: 0; background: transparent; padding: 10px 12px; border-radius: 14px; text-align: left; color: var(--green); font: inherit; font-weight: 600; }
.more-sheet button small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.more-sheet button[aria-current="page"] { background: var(--lilac-soft); }
.more-sheet .ic { width: 22px; height: 22px; }
@media (min-width: 900px) { .more-sheet { display: none !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Caderno ---------- */
.nb-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); align-items: start; }
.nb-head { display: flex; gap: 12px; align-items: center; }
.nb-form { display: flex; gap: 8px; align-items: flex-end; margin: 4px 0 12px; }
.nb-form textarea, .writer input, .writer textarea { width: 100%; font: inherit; color: var(--ink, #2B2731); background: #fff; border: 1px solid #DCD3E8; border-radius: 14px; padding: 10px 12px; resize: vertical; }
.nb-form textarea:focus, .writer input:focus, .writer textarea:focus { outline: 2px solid var(--lilac-deep, #7A55B8); outline-offset: 1px; border-color: transparent; }
.nb-form .btn { flex-shrink: 0; }
.nb-text { white-space: normal; overflow-wrap: anywhere; }
.nb-actions { display: flex; gap: 10px; flex-shrink: 0; align-self: center; font-size: .85rem; }
@media (max-width: 520px) { .nb-grid { grid-template-columns: 1fr; } .nb-form { flex-direction: column; align-items: stretch; } }

/* ---------- Textos e lição ---------- */
#homework.writing-open > .card:not(#writer) { display: none; }
.writer { display: grid; gap: 14px; }
.writer[hidden] { display: none; }
.writer > .btn { justify-self: start; }
.writer .label { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--lilac-deep, #7A55B8); font-weight: 700; }
.field { display: grid; gap: 6px; font-weight: 600; color: var(--green); }
.field span { font-size: .9rem; }
.writer textarea#w-body { min-height: 260px; line-height: 1.6; }
.counter { text-align: right; font-size: .8rem; color: var(--muted); margin-top: -8px; }
.w-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.w-text { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; line-height: 1.7; overflow-wrap: anywhere; }
#w-read { display: grid; gap: 10px; }
#w-read[hidden], #w-edit[hidden], #w-review[hidden], #w-fb[hidden] { display: none; }
#w-edit { display: grid; gap: 14px; }
#w-fb { font-size: .95rem; padding: 12px 14px; }
.hw-answer { flex-shrink: 0; align-self: center; }
.hw-answer.sent { background: var(--lilac-soft); border-color: transparent; }
.hw-answer[hidden], #w-new[hidden] { display: none; }
.tag.ok { background: #E3F0E6; color: var(--green); border-color: #BFDCC8; }
.w-item .w-open { flex-shrink: 0; align-self: center; }
