:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #182926;
  background: #f2f4ec;
  line-height: 1.5;
  --accent: #21584d;
  --border: #ccd7cb;
  --muted: #50645a;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, 46rem);
  margin: auto;
  padding: 1rem 0 0;
}
.top a { color: inherit; text-decoration: none; font-weight: 650; }
main { width: min(100% - 2rem, 46rem); margin: 1rem auto 2rem; }
.panel {
  margin: 0 0 1rem;
  padding: clamp(1rem, 4vw, 2rem);
  background: #fffefa;
  border: 1px solid var(--border);
  border-radius: 1rem;
}
.panel.reading { background: #e4eee2; }
.login { width: min(100% - 2rem, 30rem); margin: min(12vh, 6rem) auto 0; }
h1 { font-family: Georgia, serif; font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 500; line-height: 1.12; margin: .6rem 0 1.2rem; }
h2 { font-size: 1.4rem; margin: 0 0 .7rem; }
h3 { font-size: 1.05rem; margin: 0 0 .5rem; }
form { display: grid; gap: .65rem; margin-top: 1rem; }
form button { justify-self: start; }
label, summary { font-weight: 600; }
summary { cursor: pointer; }
.lesson-meta { display: flex; gap: .75rem; color: var(--muted); font-size: .9rem; }
.question { font-size: 1.2rem; }
.row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.recording-row { margin-top: 1rem; }
button, input, textarea, select { font: inherit; }
button, input, textarea, select { border: 1px solid var(--border); border-radius: .5rem; }
input, textarea, select { padding: .65rem .75rem; color: inherit; background: white; min-width: 0; }
textarea { width: 100%; resize: vertical; }
button { min-height: 44px; padding: .5rem .9rem; background: white; color: var(--accent); cursor: pointer; font-weight: 650; }
button.primary { background: var(--accent); border-color: var(--accent); color: white; }
button.quiet { background: transparent; }
button:disabled { opacity: .48; cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid #166939;
  outline-offset: 2px;
}
#record { touch-action: none; user-select: none; -webkit-user-select: none; }
#record[data-recording] { background: #8b382f; border-color: #8b382f; color: white; }
.status { color: var(--muted); font-size: .92rem; min-height: 1.25rem; margin: .5rem 0 0; }
.page-status { width: min(100% - 2rem, 46rem); margin: 0 auto 1.5rem; }
.page-status:empty { display: none; }
.correction, .card { background: #f2f4ed; padding: 1rem; border-radius: .65rem; margin: 1rem 0; overflow-wrap: anywhere; }
.correction p, .card p { margin: .25rem 0; }
.check { display: flex; gap: .5rem; align-items: center; margin-top: .65rem; }
button.word { display: inline; min-height: 0; border: 0; border-radius: 0; padding: 0; text-decoration: underline dotted; text-underline-offset: .19em; background: transparent; font-weight: inherit; }
