:root {
  --paper: #faf7ee;
  --white: #fffdf8;
  --ink: #293c34;
  --muted: #63746b;
  --green: #275b49;
  --green-light: #e5eee3;
  --line: #e1e4d7;
  --peach: #f5e2ce;
  --mint: #dcece1;
  --lilac: #e8e0f0;
  --yellow: #f5edc9;
  --radius: 24px;
  --shadow: 0 8px 28px #30433608;
  font-family: 'Trebuchet MS', Verdana, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.6;
}
button,
a {
  -webkit-touch-callout: none;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #876bbb;
  outline-offset: 4px;
}
a {
  color: var(--green);
}
.header {
  height: 104px;
  max-width: 1240px;
  padding: 22px 38px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand strong {
  display: block;
  font-size: 23px;
  letter-spacing: -0.6px;
  line-height: 1.15;
}
.brand small {
  display: block;
  font-size: 13px;
  letter-spacing: 1.2px;
  margin-top: 5px;
  color: var(--muted);
}
nav {
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav-button,
.link {
  background: none;
  border: 0;
  color: var(--green);
  font-size: 14px;
  padding: 12px;
}
.nav-button {
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--white);
  font-weight: bold;
  min-height: 44px;
}
.nav-button.active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
main {
  max-width: 1164px;
  margin: 0 auto;
  padding: 38px 22px 50px;
  min-height: 70vh;
  outline: none;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: bold;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 9px;
}
.eyebrow:before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #91b09a;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(34px, 4vw, 57px);
  line-height: 1.12;
  letter-spacing: -2px;
  font-weight: 700;
}
h2 {
  font-size: 28px;
  letter-spacing: -0.8px;
  line-height: 1.2;
}
h3 {
  font-size: 19px;
  letter-spacing: -0.3px;
}
p {
  line-height: 1.7;
}
small {
  line-height: 1.6;
}
.muted {
  color: var(--muted);
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: center;
  position: relative;
  padding: 20px 22px 32px;
}
.hero .eyebrow {
  margin-bottom: 23px;
}
.hero h1 {
  max-width: 550px;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--green);
  position: relative;
}
.hero p {
  max-width: 450px;
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 26px;
}
.hero-visual {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
}
.hero-visual:before {
  content: '';
  position: absolute;
  width: 330px;
  height: 300px;
  border-radius: 50%;
  background: #f1eddb;
  z-index: -1;
}
.mascot {
  max-width: 100%;
  width: 450px;
  height: auto;
}
.small-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d9dfcf;
  border-radius: 99px;
  padding: 9px 16px;
  font-size: 12px;
  color: var(--green);
  background: #fffdf880;
}
.hero .small-tag {
  position: absolute;
  right: 30px;
  top: 6px;
  transform: rotate(5deg);
}
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid transparent;
  padding: 13px 24px;
  background: var(--green);
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  box-shadow: 0 4px 0 #193d31;
  transition:
    transform 0.15s,
    background 0.15s;
}
.button:hover {
  background: #346e58;
  transform: translateY(-1px);
}
.button:active {
  transform: translateY(2px);
  box-shadow: none;
}
.button.secondary {
  background: var(--white);
  color: var(--green);
  box-shadow: none;
  border-color: #cdd8cd;
}
.button.ghost {
  background: none;
  box-shadow: none;
  color: var(--green);
  border-color: var(--line);
}
.button.small {
  min-height: 42px;
  padding: 9px 16px;
  font-size: 13px;
  border-radius: 12px;
  box-shadow: none;
}
.button.danger {
  background: #8c4037;
  color: white;
  box-shadow: none;
}
.login-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 12px;
}
.login-message {
  padding: 34px 40px;
  background: var(--green-light);
  position: relative;
  overflow: hidden;
}
.login-message h2 {
  max-width: 320px;
  margin: 11px 0 14px;
}
.login-message p {
  max-width: 325px;
  font-size: 14px;
  margin: 0;
}
.login-message .art {
  width: 90px;
  position: absolute;
  right: 26px;
  bottom: -22px;
  transform: rotate(12deg);
  opacity: 0.6;
}
.login-form {
  padding: 30px 38px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 13px;
  font-weight: bold;
}
.field input,
.field select {
  min-width: 0;
  width: 100%;
  border: 1px solid #bdcbbc;
  background: #fcfbf7;
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--ink);
  min-height: 49px;
}
.code-input {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 19px;
  font-weight: bold;
}
.show-secret {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 4px;
  font-size: 15px;
  cursor: pointer;
}
.show-secret input {
  width: 22px;
  height: 22px;
  accent-color: var(--green);
}
.field-help {
  font-size: 12px;
  grid-column: 1/-1;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.form-error {
  color: #91473d;
  font-size: 13px;
  grid-column: 1/-1;
  line-height: 1.5;
  margin: 0;
}
.login-form .button {
  margin-bottom: 4px;
}
.intro-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin: 37px 0 18px;
}
.intro-row h2 {
  font-size: 23px;
  margin: 0 0 6px;
}
.intro-row p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.intro-row .chip {
  white-space: nowrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: bold;
  color: var(--green);
  background: var(--green-light);
  border-radius: 99px;
  padding: 7px 12px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  display: flex;
  align-items: center;
  gap: 18px;
}
.feature .art {
  width: 66px;
  flex-shrink: 0;
}
.feature h3 {
  font-size: 16px;
  margin: 0 0 7px;
}
.feature p {
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  color: var(--muted);
}
.art {
  width: 140px;
  display: block;
  margin: auto;
}
.footer {
  max-width: 1164px;
  margin: auto;
  padding: 24px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.footer .link {
  font-size: 11px;
}
.skip {
  position: absolute;
  top: -100px;
  z-index: 99;
  padding: 14px;
  background: white;
}
.skip:focus {
  top: 10px;
}
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 400px;
  color: var(--muted);
}
.loading-dot {
  width: 12px;
  height: 12px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 1s infinite alternate;
}
@keyframes blink {
  to {
    opacity: 0.2;
  }
}
.welcome {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin: 15px 0 30px;
}
.welcome h1 {
  font-size: 36px;
  margin: 12px 0;
}
.welcome p {
  font-size: 15px;
  margin: 0;
  color: var(--muted);
}
.welcome .art {
  width: 110px;
}
.continue-card {
  background: var(--green);
  border-radius: 26px;
  color: white;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  align-items: center;
  padding: 27px 33px;
  position: relative;
  overflow: hidden;
}
.continue-card .eyebrow {
  color: #d4e6d0;
}
.continue-card .eyebrow:before {
  background: #b8d9b0;
}
.continue-card h2 {
  margin: 12px 0 8px;
  font-size: 29px;
}
.continue-card p {
  color: #d4e6d0;
  margin: 0;
  font-size: 13px;
}
.continue-card .button {
  background: #f4cc7d;
  color: #2f4839;
  box-shadow: 0 4px 0 #cc9e4c;
  white-space: nowrap;
}
.lesson-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}
.lesson-card {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--white);
  padding: 17px;
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 10px;
  min-height: 246px;
  transition: transform 0.2s;
}
.lesson-card:not(:disabled):hover {
  transform: translateY(-4px);
  border-color: #93af96;
}
.lesson-card:disabled {
  opacity: 0.65;
}
.lesson-card .art {
  width: 88px;
  height: 88px;
}
.art-pad {
  border-radius: 15px;
  padding: 6px;
  display: grid;
  place-items: center;
}
.peach {
  background: var(--peach);
}
.mint {
  background: var(--mint);
}
.lilac {
  background: var(--lilac);
}
.yellow {
  background: var(--yellow);
}
.lesson-card h3 {
  font-size: 15px;
  margin: 0;
}
.lesson-card p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.lesson-num {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.lesson-state {
  font-size: 11px;
  font-weight: bold;
  color: var(--green);
  margin-top: auto;
}
.progress-bar {
  height: 6px;
  border-radius: 10px;
  overflow: hidden;
  background: #e8eddf;
}
.progress-bar progress {
  width: 100%;
  height: 6px;
  display: block;
  appearance: none;
  border: none;
}
.progress-bar progress::-webkit-progress-bar {
  background: #e8eddf;
}
.progress-bar progress::-webkit-progress-value {
  background: #749883;
  border-radius: 10px;
}
.progress-bar progress::-moz-progress-bar {
  background: #749883;
}
.lesson-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px;
}
.lesson-top h1 {
  font-size: 27px;
  margin: 0;
  letter-spacing: -0.8px;
}
.lesson-top .progress-bar {
  width: 150px;
}
.lesson-top small {
  display: block;
  text-align: right;
  margin-bottom: 6px;
  color: var(--muted);
}
.activity {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--white);
  padding: 32px 46px;
  max-width: 900px;
  margin: auto;
  min-height: 510px;
  box-shadow: var(--shadow);
  text-align: center;
}
.activity .eyebrow {
  justify-content: center;
}
.activity h2 {
  font-size: 25px;
  margin: 17px 0 23px;
}
.activity-word {
  font-size: 68px;
  font-weight: bold;
  letter-spacing: 6px;
  color: var(--green);
  margin: 24px 0 30px;
  line-height: 1.25;
}
.activity-figure {
  border-radius: 24px;
  display: inline-grid;
  place-items: center;
  padding: 4px 28px;
  margin: 4px auto 18px;
  background: #f3eddf;
}
.activity-figure .art {
  width: 140px;
  height: 140px;
}
.listen {
  border: 1px solid #b3c8b6;
  background: #edf3e8;
  color: var(--green);
  padding: 10px 18px;
  border-radius: 99px;
  font-weight: bold;
  font-size: 14px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.listen svg {
  width: 19px;
  height: 19px;
}
.options {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 26px auto;
}
.choice {
  border: 2px solid #d7e0d1;
  border-radius: 20px;
  background: #fffef9;
  min-width: 140px;
  min-height: 125px;
  padding: 10px 16px;
  font-size: 45px;
  font-weight: bold;
  color: var(--green);
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.choice .art {
  width: 120px;
  height: 120px;
}
.choice:hover {
  border-color: #658970;
  transform: translateY(-3px);
}
.choice.selected {
  background: #e5eee3;
  border-color: var(--green);
}
.feedback {
  min-height: 55px;
  line-height: 1.5;
  color: var(--green);
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  font-weight: bold;
  font-size: 16px;
}
.feedback.retry {
  color: #8d5238;
}
.feedback.error {
  color: #984d43;
}
.intro-sounds {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 26px;
}
.sound-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 21px;
  padding: 18px 20px;
  width: 175px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
}
.sound-card strong {
  font-size: 41px;
  color: var(--green);
}
.sound-card .art {
  width: 89px;
  height: 89px;
}
.sound-card small {
  font-size: 11px;
  color: var(--muted);
}
.sound-card .listen {
  font-size: 12px;
  padding: 9px 12px;
}
.sound-card p {
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
}
.tiles {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 24px 0;
}
.tile {
  font-size: 36px;
  min-width: 65px;
  min-height: 67px;
  border: 2px solid #b7c9b7;
  border-radius: 14px;
  background: #fffaf0;
  color: var(--green);
  font-weight: bold;
  box-shadow: 0 4px 0 #c1ccb9;
}
.word-slots {
  display: flex;
  gap: 9px;
  justify-content: center;
  min-height: 68px;
  margin: 20px auto;
}
.slot {
  min-width: 56px;
  border-bottom: 3px solid #779a81;
  font-size: 38px;
  color: var(--green);
  font-weight: bold;
  display: grid;
  place-items: center;
}
.success .art {
  width: 150px;
}
.success h1 {
  font-size: 38px;
  margin: 17px 0;
}
.success .actions {
  justify-content: center;
}
.success p {
  color: var(--muted);
}
.teacher-heading {
  margin-bottom: 24px;
}
.teacher-heading h1 {
  font-size: 35px;
  margin: 12px 0;
}
.teacher-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  margin: 20px 0;
}
.panel h2 {
  font-size: 21px;
}
.panel p {
  font-size: 14px;
  color: var(--muted);
}
.forms-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: end;
}
.forms-row .field {
  flex: 1;
  min-width: 170px;
}
.forms-row .button {
  margin-bottom: 4px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
}
th {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--muted);
  padding: 15px 10px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 17px 10px;
  border-bottom: 1px solid var(--line);
}
td .actions {
  gap: 6px;
}
td .button.small {
  font-size: 11px;
  min-height: 36px;
  padding: 7px 10px;
}
.empty {
  text-align: center;
  padding: 34px;
  color: var(--muted);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.metric {
  background: var(--green-light);
  border-radius: 18px;
  padding: 18px;
}
.metric strong {
  font-size: 27px;
  display: block;
  margin-bottom: 5px;
}
.metric small {
  color: var(--muted);
}
.record-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.record-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.record-card h3 {
  font-size: 22px;
  margin: 0 0 8px;
}
.record-card p {
  font-size: 12px;
  line-height: 1.6;
}
.record-card .actions {
  gap: 8px;
}
.record-card.recording {
  border-color: #ac5548;
  background: #fcf0e6;
}
.teacher-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.teacher-guide .panel {
  margin: 0;
}
.teacher-guide li {
  line-height: 1.7;
  margin: 10px 0;
  font-size: 14px;
}
.report-item {
  display: grid;
  grid-template-columns: 1fr 140px;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.report-item strong {
  font-size: 14px;
}
.report-item small {
  display: block;
  color: var(--muted);
}
.report-item .progress-bar {
  width: 140px;
}
.report-item progress {
  height: 8px;
}
.connection-banner {
  padding: 13px 18px;
  border: 1px solid #dabba3;
  background: #fbecdc;
  border-radius: 13px;
  font-size: 13px;
  color: #765343;
  margin: 15px 0;
}
.card-access {
  background: var(--green-light);
  padding: 25px;
  border-radius: 20px;
  text-align: center;
  margin: 20px 0;
  border: 1px dashed #709078;
}
.card-access strong {
  display: block;
  font-size: 30px;
  letter-spacing: 4px;
  margin: 14px 0;
}
.card-access h3 {
  font-size: 22px;
}
.card-access small {
  display: block;
}
.teacher-login {
  max-width: 430px;
  margin: 35px auto;
}
.teacher-login form {
  display: grid;
  gap: 18px;
}
.teacher-login .art {
  width: 85px;
}
.teacher-login h1 {
  font-size: 32px;
}
.print-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.print-card {
  padding: 20px;
  border: 1px dashed #9caf98;
  border-radius: 15px;
  break-inside: avoid;
}
.print-card h3 {
  font-size: 20px;
}
.print-card strong {
  display: block;
  font-size: 25px;
  letter-spacing: 3px;
  margin: 12px 0;
}
.print-card small {
  display: block;
}
.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 25px;
  box-shadow: 0 18px 80px #17312333;
  background: var(--white);
  padding: 35px;
  max-width: 740px;
  width: calc(100% - 32px);
  color: var(--ink);
  max-height: 90vh;
  overflow: auto;
}
dialog::backdrop {
  background: #24382f66;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 25px;
  padding-right: 20px;
}
dialog p {
  font-size: 14px;
}
dialog .modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  min-height: 40px;
  min-width: 40px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 30px;
}
.modal-note {
  font-size: 12px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 22px;
  border-radius: 13px;
  background: #293f33;
  color: white;
  max-width: calc(100% - 36px);
  z-index: 100;
  display: none;
  font-size: 14px;
  box-shadow: 0 6px 30px #0002;
}
#toast.show {
  display: block;
}
.record-help {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.audio-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 14px auto;
  max-width: 500px;
}
.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;
}
@media (max-width: 1050px) {
  .lesson-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .login-form {
    grid-template-columns: 1fr 1fr;
  }
  .login-form .button {
    grid-column: 1/-1;
  }
  .hero {
    padding: 10px 0 25px;
    gap: 0;
  }
  .hero-visual {
    min-height: 300px;
  }
  .hero h1 {
    font-size: 44px;
  }
  .record-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .header {
    height: 85px;
    padding: 16px 20px;
  }
  .brand strong {
    font-size: 19px;
  }
  .brand small {
    font-size: 11px;
  }
  .brand img {
    width: 39px;
    height: 39px;
  }
  nav {
    gap: 6px;
  }
  .nav-button {
    font-size: 11px;
    padding: 9px 12px;
  }
  .header .chip {
    display: none;
  }
  main {
    padding: 25px 18px 35px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 6px;
    text-align: center;
    padding-bottom: 16px;
  }
  .hero .eyebrow {
    justify-content: center;
    margin: 5px 0 17px;
    font-size: 10px;
  }
  .hero h1 {
    font-size: 39px;
    letter-spacing: -1.4px;
    margin: 0 auto 15px;
    max-width: 420px;
  }
  .hero p {
    font-size: 15px;
    margin: 0 auto 20px;
  }
  .hero-visual {
    min-height: 0;
    max-width: 330px;
    margin: auto;
    order: 2;
  }
  .hero-visual:before {
    width: 250px;
    height: 230px;
  }
  .hero .small-tag {
    font-size: 10px;
    top: 10px;
    right: 5px;
  }
  .hero .mascot {
    max-height: 250px;
  }
  .login-panel {
    grid-template-columns: 1fr;
    margin-top: 10px;
  }
  .login-message {
    padding: 22px;
  }
  .login-message h2 {
    font-size: 23px;
    margin: 9px 0;
  }
  .login-message p {
    font-size: 12px;
  }
  .login-form {
    padding: 23px;
    gap: 12px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .feature {
    padding: 16px 20px;
  }
  .feature .art {
    width: 54px;
  }
  .feature p {
    font-size: 12px;
  }
  .intro-row {
    margin-top: 27px;
  }
  .intro-row h2 {
    font-size: 21px;
  }
  .intro-row .chip {
    display: none;
  }
  .lesson-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .lesson-card {
    min-height: 220px;
    padding: 14px;
  }
  .lesson-card .art {
    width: 85px;
  }
  .welcome {
    margin: 0 0 22px;
  }
  .welcome h1 {
    font-size: 30px;
  }
  .welcome .art {
    width: 80px;
  }
  .welcome p {
    font-size: 13px;
  }
  .continue-card {
    padding: 25px;
    gap: 20px;
    flex-wrap: wrap;
  }
  .continue-card h2 {
    font-size: 25px;
  }
  .continue-card .button {
    width: 100%;
  }
  .lesson-top {
    flex-wrap: wrap;
  }
  .lesson-top h1 {
    font-size: 23px;
  }
  .lesson-top > div {
    flex: 1;
  }
  .lesson-top .progress-bar {
    width: 90px;
  }
  .activity {
    padding: 25px 17px;
    border-radius: 23px;
    min-height: 460px;
  }
  .activity h2 {
    font-size: 21px;
    line-height: 1.4;
  }
  .activity-word {
    font-size: 44px;
    letter-spacing: 4px;
    overflow-wrap: anywhere;
  }
  .options {
    gap: 10px;
    margin: 23px 0;
  }
  .choice {
    min-width: 82px;
    min-height: 97px;
    padding: 7px;
    font-size: 37px;
    flex: 1;
    max-width: 160px;
  }
  .choice .art {
    width: 100%;
    min-width: 64px;
    height: auto;
    max-height: 108px;
  }
  .sound-card {
    width: 140px;
    padding: 13px;
  }
  .sound-card .art {
    width: 73px;
    height: 73px;
  }
  .intro-sounds {
    gap: 10px;
  }
  .sound-card .listen {
    font-size: 11px;
    padding: 8px;
  }
  .tile {
    min-width: 49px;
    min-height: 57px;
    font-size: 31px;
  }
  .slot {
    min-width: 42px;
    font-size: 32px;
  }
  .tiles {
    gap: 8px;
  }
  .word-slots {
    gap: 7px;
  }
  .teacher-guide {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 22px 18px;
  }
  .teacher-heading h1 {
    font-size: 29px;
  }
  .metric-grid {
    gap: 9px;
  }
  .metric {
    padding: 14px;
  }
  .metric strong {
    font-size: 24px;
  }
  .metric small {
    font-size: 10px;
  }
  .record-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .record-card {
    padding: 15px;
  }
  .record-card .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .footer {
    padding: 16px 20px;
    font-size: 10px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .footer > span:nth-child(2) {
    display: none;
  }
  .print-cards {
    grid-template-columns: 1fr;
  }
  .teacher-tabs .button {
    padding: 10px 14px;
    font-size: 12px;
  }
  .report-item {
    grid-template-columns: 1fr 85px;
  }
  .report-item .progress-bar {
    width: 85px;
  }
  dialog {
    padding: 30px 22px;
  }
  .success h1 {
    font-size: 31px;
  }
}
.thanks-page {
  max-width: 850px;
}
.thanks-page h1 {
  font-size: 42px;
}
.thanks-intro {
  max-width: 650px;
}
.thanks-page .panel p {
  font-size: 16px;
  line-height: 1.8;
}
.thanks-page .button {
  margin-top: 12px;
}
.header nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.header {
  min-height: 104px;
  height: auto;
}
.thanks-page .eyebrow {
  line-height: 1.6;
}
@media (max-width: 760px) {
  .header {
    min-height: 85px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .header nav {
    width: 100%;
    justify-content: flex-start;
  }
  .thanks-page h1 {
    font-size: 32px;
  }
  .thanks-page .panel p {
    font-size: 15px;
  }
}
.trail-group {
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  padding: 18px;
}
.trail-group summary {
  cursor: pointer;
  min-height: 48px;
  font-size: 20px;
  font-weight: 700;
}
.trail-group summary small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0 14px;
}
.trail-group .lesson-grid {
  margin-top: 18px;
}
.review-list {
  display: grid;
  gap: 14px;
}
.review-row {
  padding: 14px;
  background: var(--green-light);
  border-radius: 14px;
}
.review-row .actions {
  margin-top: 10px;
}
.word-slots {
  flex-wrap: wrap;
}
.activity-word.activity-text {
  font-size: clamp(23px, 3vw, 32px);
  letter-spacing: 1px;
  line-height: 1.8;
  max-width: 730px;
  margin: 25px auto;
  overflow-wrap: normal;
  text-align: left;
}
.activity-word.long-word {
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: 2px;
  overflow-wrap: normal;
}
.sentence-slots {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 70px;
  margin: 24px 0;
}
.sentence-slots span {
  font-size: 24px;
  padding: 8px;
  border-bottom: 2px solid #779a81;
}
.sentence-tiles .tile {
  font-size: 22px;
  padding: 12px;
  min-height: 54px;
}
.change-letter {
  background: #f6dda7;
  border-radius: 8px;
  padding: 3px 8px;
  text-decoration: underline;
  text-decoration-color: #9a7744;
}
.report-explanation {
  background: var(--green-light);
  padding: 18px;
  border-radius: 15px;
}
.report-explanation ul {
  font-size: 14px;
  line-height: 1.8;
}
.teacher-generated-password {
  font-size: 18px !important;
  letter-spacing: 1px !important;
  overflow-wrap: anywhere;
}
textarea {
  font: inherit;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  width: 100%;
  resize: vertical;
}
.report-item .chip {
  font-size: 10px;
}
.resume-review {
  border-color: #9ab49b;
}
#save-observation {
  display: grid;
  gap: 14px;
}
details summary:focus-visible {
  outline: 3px solid #bf9351;
  outline-offset: 4px;
}
@media (max-width: 760px) {
  .trail-group {
    padding: 12px;
  }
  .trail-group summary {
    font-size: 18px;
  }
  .activity-word.activity-text {
    font-size: 23px;
    letter-spacing: 0.5px;
  }
  .activity-word.long-word {
    font-size: 30px;
    letter-spacing: 1px;
  }
  .sentence-tiles .tile {
    font-size: 18px;
    padding: 10px;
  }
  .sentence-slots span {
    font-size: 20px;
  }
  .slot {
    min-width: 32px;
    font-size: 28px;
  }
  .word-slots {
    gap: 5px;
  }
  .review-row .actions {
    align-items: stretch;
    flex-direction: column;
  }
  .review-row button {
    width: 100%;
  }
  .report-item {
    grid-template-columns: 1fr;
  }
  .report-item .progress-bar {
    width: 100%;
  }
  .report-item .chip {
    justify-self: start;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  body {
    background: white;
  }
  .header,
  .footer,
  #main,
  #toast,
  .modal-close,
  .modal-actions,
  .no-print {
    display: none !important;
  }
  dialog {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
    width: 100%;
    max-width: none;
    border: 0;
    padding: 0;
    box-shadow: none;
  }
  dialog::backdrop {
    background: none;
  }
  .print-cards {
    grid-template-columns: 1fr 1fr;
  }
  .card-access {
    break-inside: avoid;
  }
  a {
    color: black;
  }
  .print-card {
    background: white;
  }
}

.observation-entry {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.observation-entry small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}
.settings-form,
#edit-student {
  display: grid;
  gap: 16px;
}
.record-grid > .field {
  grid-column: 1/-1;
}
.print-card small {
  overflow-wrap: anywhere;
}
.header .chip {
  white-space: normal;
}
@media (max-width: 760px) {
  .header .chip {
    display: inline-block;
    font-size: 12px;
  }
  .header nav {
    gap: 6px;
  }
}

/* Espaço de leitura entre campos, orientações e ações da área adulta. */
.panel > h3 {
  margin-top: 24px;
  margin-bottom: 16px;
  line-height: 1.4;
}
.panel > h3:first-child {
  margin-top: 0;
}
.panel > :last-child {
  margin-bottom: 0;
}
.panel > ol,
.panel > ul {
  margin-block: 18px 22px;
  padding-inline-start: 28px;
}
.panel li,
.report-explanation li {
  line-height: 1.7;
}
.panel li + li,
.report-explanation li + li {
  margin-top: 8px;
}
.panel > .actions {
  margin-top: 20px;
  row-gap: 16px;
}
:is(.panel, .record-card, dialog) > :is(.actions, .button, form) + :is(p, small, h2, h3, a) {
  margin-top: 20px;
}
.panel > .field + :is(p, .actions) {
  margin-top: 20px;
}
.panel > form + h3 {
  margin-top: 28px;
}
.panel > form + .button,
.panel > .button + .table-wrap {
  margin-top: 20px;
}
details.panel[open] > summary {
  margin-bottom: 24px;
  line-height: 1.5;
}
#prepare-batch {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
#prepare-batch .button {
  justify-self: start;
}
#prepare-batch + #create-student {
  margin-top: 32px;
}
.settings-form + a {
  display: inline-block;
}
.button {
  line-height: 1.4;
}
@media (max-width: 760px) {
  .panel > .actions {
    align-items: stretch;
  }
  .panel > .actions > .button {
    flex: 1 1 100%;
    white-space: normal;
  }
  .panel > ol,
  .panel > ul {
    padding-inline-start: 24px;
  }
}
/* Preparation and classroom tools: comfortable spacing and wrapping at Chromebook widths. */
.bank-filters {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1.4fr);
  gap: 20px;
  margin: 24px 0;
}
.bank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.bank-card {
  border: 1px solid var(--line, #d8ded5);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  background: #fffefa;
}
.bank-card h4 {
  font-size: 1.35rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--ink, #233f38);
}
.bank-card p {
  margin: 0;
  line-height: 1.7;
}
.bank-card details {
  width: 100%;
  line-height: 1.7;
}
.bank-card details[open] p {
  margin-top: 16px;
}
.bank-card summary {
  cursor: pointer;
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bank-card .button {
  margin-top: auto;
  white-space: normal;
  text-align: left;
}
.bank-count {
  margin: 20px 0;
  line-height: 1.6;
}
.bank-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}
.sound-readiness {
  background: #eef4ed;
  border-radius: 16px;
  padding: 22px;
  margin: 26px 0;
}
.sound-readiness h4 {
  font-size: 1.1rem;
  margin: 0 0 14px;
}
.sound-readiness p {
  line-height: 1.7;
}
.sound-readiness .actions {
  margin-top: 20px;
  gap: 16px;
}
.student-search {
  margin: 24px 0;
  max-width: 420px;
}
.student-search input {
  width: 100%;
}
.student-last {
  display: block;
  line-height: 1.6;
  margin-top: 8px;
  color: var(--muted, #5b6c65);
  font-weight: 400;
}
[data-student-name][hidden] {
  display: none;
}
.bank-panel > h3:focus {
  outline: 2px solid var(--green, #356d5a);
  outline-offset: 6px;
}
@media (max-width: 650px) {
  .bank-filters,
  .bank-grid {
    grid-template-columns: 1fr;
  }
  .bank-card {
    padding: 20px;
  }
  .bank-card .button {
    width: 100%;
    text-align: center;
  }
  .bank-pages {
    gap: 12px;
    flex-wrap: wrap;
  }
  .sound-readiness {
    padding: 20px;
  }
  .sound-readiness .actions {
    align-items: stretch;
    flex-direction: column;
  }
}
/* Alguém deixou o Chromebook conectado: o nome grande ajuda a criança a reconhecer o seu. */
.who-check {
  max-width: 560px;
  margin: 40px auto;
  text-align: center;
}
.who-check svg {
  width: 150px;
  height: auto;
}
.who-check h1 {
  font-size: 34px;
  line-height: 1.3;
  margin: 14px 0 28px;
}
.who-check h1 strong {
  display: block;
  font-size: 46px;
  color: var(--green);
  overflow-wrap: anywhere;
}
.who-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.who-actions .button {
  min-width: 170px;
  font-size: 18px;
}
/* Erro na entrada da criança: grande e visível, para a professora notar de longe. */
#student-login .form-error:not(:empty) {
  font-size: 17px;
  font-weight: bold;
  background: #f7e3dc;
  border-radius: 14px;
  padding: 14px 16px;
}
#student-login .form-error:not(:empty)::before {
  content: '✋ ';
}
.start-here {
  background: var(--yellow);
  border-radius: 16px;
  padding: 16px 20px;
  font-weight: bold;
  line-height: 1.5;
  margin: 0 0 20px;
}
.site-address {
  display: inline-block;
  background: var(--green-light);
  border-radius: 10px;
  padding: 2px 10px;
  font-size: 1.1em;
  overflow-wrap: anywhere;
}
.modal-actions + .no-print {
  margin-top: 16px;
}
@media (max-width: 760px) {
  .who-check h1 {
    font-size: 28px;
  }
  .who-check h1 strong {
    font-size: 38px;
  }
  .who-actions .button {
    flex: 1 1 100%;
  }
}
