:root {
  color-scheme: light;
  --ink: #16171d;
  --muted: #6b6f7b;
  --paper: #f4f4f6;
  --card: #ffffff;
  --line: #e3e4e8;
  --green: #0f6e56;
  --green-dark: #0b5341;
  --amber: #9a3412;
  --blue: #2747b0;
  --blue-soft: #e8edf9;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { height: 100%; overflow: hidden; }

body {
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.5 "Segoe UI", sans-serif;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico .fill { fill: currentColor; stroke: none; }

main {
  display: flex;
  flex-direction: column;
  width: min(1080px, calc(100% - 32px));
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 16px 0;
}

header { flex: none; }

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1.05;
  font-weight: 700;
}

.lead, .hint, #status {
  color: var(--muted);
}

.controls {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

select, button, .rd-btn {
  font: inherit;
}

select {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  padding: 0 12px;
  color: var(--ink);
}

button, .rd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#talk, #show-reading {
  justify-content: center;
  height: 52px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.talk-split {
  display: flex;
  min-width: 0;
}

#talk {
  flex: 1;
  border: 0;
  border-radius: 10px 0 0 10px;
  background: var(--blue);
  color: white;
}

#show-reading {
  border: 1px solid var(--blue);
  background: var(--card);
  color: var(--blue);
}

#show-reading:hover { background: var(--blue-soft); }
#talk .ico, #show-reading .ico { width: 18px; height: 18px; }
#talk:hover { background: #1d3588; }
#talk[aria-pressed="true"] { background: var(--amber); }
#talk-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 52px;
  padding: 0 14px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0 10px 10px 0;
  background: var(--blue);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
#talk-mode:hover { background: #1d3588; color: white; }
#talk-mode[aria-pressed="true"] { background: #1d3588; color: white; }
#talk[aria-pressed="true"] + #talk-mode { background: var(--amber); }
.lesson-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
}

.lesson-picker > label,
.lesson-field { flex: 1 1 280px; }

.lesson-field {
  position: relative;
  z-index: 30;
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.scenario-native {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.scenario-current {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font-weight: 400;
  text-align: left;
}

.scenario-current::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.55;
}

.scenario-current:disabled { opacity: 0.45; cursor: wait; }

.lesson-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow: auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 8px 24px rgb(22 23 29 / 12%);
}

.lesson-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}

.lesson-option:hover,
.lesson-option[aria-selected="true"] { background: var(--blue-soft); }

.lesson-option.is-new {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 6px 6px;
  font-weight: 700;
}

.lesson-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-date {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

#draft-name {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  font: inherit;
  background: white;
}

.secondary, .ghost {
  height: 40px;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.secondary {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
}

.secondary:hover, .ghost:hover { border-color: #c9ccd4; }

.ghost {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
}

.secondary:disabled, .ghost:disabled { opacity: 0.45; cursor: wait; }

.editor {
  display: grid;
  flex: none;
  gap: 12px;
  max-height: 46vh;
  margin: 0 0 12px;
  padding: 16px;
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.editor h2 { margin: 0; font-family: var(--serif); font-size: 28px; }

.source-list {
  display: grid;
  gap: 6px;
  max-height: 22vh;
  overflow: auto;
}

.source-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

dialog#lesson-prompt {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
}

dialog#lesson-prompt::backdrop { background: rgb(36 32 24 / 45%); }

.prompt-window {
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 48px);
  padding: 16px;
  overflow: auto;
  background: var(--card);
  border-radius: 18px;
}

.prompt-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.prompt-heading h2 { margin: 0; font-family: var(--serif); font-size: 28px; }

#prompt-text,
#new-words,
#lesson-rules {
  max-height: 36vh;
  background: var(--card);
}

label .hint { margin: 0; }

textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  resize: vertical;
  background: white;
}

.editor-actions { display: flex; flex-wrap: wrap; gap: 8px; }

#draft-prompt,
#saved-prompt {
  margin: 0;
  max-height: 480px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f6f3ec;
  font: 16px/1.55 "Segoe UI", sans-serif;
}

.words.lesson li { color: var(--blue); }
.words.lesson li.review {
  background: #fff4e8;
  color: var(--amber);
}
.words.lesson li.review.done {
  background: #d7efdf;
  color: var(--green-dark);
  box-shadow: inset 0 0 0 1.5px var(--amber);
}

#status { grid-column: 1 / -1; margin: 0; }
.banner {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff4e8;
  color: var(--amber);
}

.layout {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  min-height: 0;
}

.transcript-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.transcript-bar {
  display: flex;
  flex: none;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 12px;
  overflow: auto;
}

.transcript-bar button {
  flex: none;
  height: 36px;
  padding: 0 12px;
  font-size: 14px;
}

.bubble audio { display: none; }

.phrase-play {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  margin: 0 0 0 1ch;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgb(100 92 82 / 55%);
  font-size: 1em;
  line-height: 0;
  vertical-align: -0.15em;
  cursor: pointer;
}

.phrase-play:hover { color: var(--ink); }

.phrase-play svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phrase-play svg .filled { fill: currentColor; stroke: none; }

.phrase-play[aria-pressed="true"] {
  background: transparent;
  color: rgb(11 83 65 / 80%);
}

aside {
  min-height: 0;
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.transcript {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

dialog.rd-dialog {
  --rd-ink: #16171d;
  --rd-muted: #6b6f7b;
  --rd-line: #e3e4e8;
  --rd-bg: #f4f4f6;
  --rd-card: #ffffff;
  --rd-blue: #2747b0;
  --rd-blue-soft: #e8edf9;
  --rd-serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --rd-mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  width: min(1180px, calc(100% - 32px));
  height: calc(100% - 32px);
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--rd-bg);
  color: var(--rd-ink);
}

dialog.rd-dialog::backdrop { background: rgb(22 23 29 / 45%); }

.rd {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  padding: 28px 32px;
  overflow: auto;
}

.rd-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.rd-mono {
  margin: 0;
  color: var(--rd-muted);
  font-family: var(--rd-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rd-kicker { margin-bottom: 6px; }

.rd-title {
  margin: 0;
  font-family: var(--rd-serif);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.1;
}

.rd-tools { display: flex; flex-wrap: wrap; gap: 8px; }

.rd-btn {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--rd-line);
  border-radius: 8px;
  background: var(--rd-card);
  color: var(--rd-ink);
  font: 500 14px/1 "Segoe UI", sans-serif;
  cursor: pointer;
}

.rd-btn:hover { border-color: #c9ccd4; }
.rd-btn:disabled { opacity: 0.45; cursor: default; }
.rd-small { height: 30px; padding: 0 10px; font-size: 13px; }

.rd-status:empty { display: none; }

.rd-empty {
  padding: 28px;
  border: 1px dashed #cfd2da;
  border-radius: 14px;
  background: var(--rd-card);
  color: var(--rd-muted);
}

.rd-empty p { margin: 0 0 6px; }

.rd-main {
  display: grid;
  flex: 1;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  min-height: 0;
}

.rd-list {
  min-height: 0;
  padding: 16px;
  overflow: auto;
  border: 1px solid var(--rd-line);
  border-radius: 14px;
  background: var(--rd-card);
}

.rd-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.rd-words { margin: 0; padding: 0; list-style: none; }

.rd-word {
  display: grid;
  grid-template-columns: 28px 1fr;
  width: 100%;
  padding: 10px 10px 10px 8px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.rd-word:hover { background: #f6f7f9; }
.rd-word.saved .rd-word-text, .rd-chip.saved { box-shadow: inset 0 -1px 0 var(--amber); }
.rd-word.from-book .rd-word-text { color: var(--amber); }
.rd-word[aria-current="true"] { border-left-color: var(--rd-blue); background: var(--rd-blue-soft); }
.rd-word-no { padding-top: 2px; color: var(--rd-muted); font: 12px var(--rd-mono); }
.rd-word-text { font-weight: 600; }
.rd-word-ru { grid-column: 2; color: var(--rd-muted); font-size: 14px; }
.rd-hide-ru .rd-word-ru, .rd-hide-ru .rd-card-ru { visibility: hidden; }

.rd-pane { display: flex; flex-direction: column; gap: 16px; min-width: 0; min-height: 0; }

.rd-tabs {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--rd-line);
  border-radius: 12px;
  background: var(--rd-card);
}

.rd-tab {
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--rd-muted);
  font: 600 15px "Segoe UI", sans-serif;
  cursor: pointer;
}

.rd-tab[aria-selected="true"] { background: var(--rd-blue); color: white; }

.rd-view { display: grid; gap: 14px; }
.rd-view[hidden] { display: none; }

.rd-bar { height: 4px; border-radius: 2px; background: var(--rd-line); overflow: hidden; }
.rd-bar span { display: block; height: 100%; background: var(--rd-blue); transition: width 0.2s; }
.rd-bar .rd-bar-full { width: 100%; }

.rd-card {
  display: grid;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--rd-line);
  border-radius: 14px;
  background: var(--rd-card);
}

.rd-card-code { margin: 0; color: var(--rd-blue); font: 12px var(--rd-mono); letter-spacing: 0.08em; }

.rd-card-word {
  margin: 0;
  font-family: var(--rd-serif);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.1;
}

.rd-card-ru { margin: 0; color: var(--rd-muted); font-size: 18px; }
.rd-label { margin-top: 8px; }

.rd-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.rd-ipa {
  padding: 4px 10px;
  border: 1px solid var(--rd-line);
  border-radius: 6px;
  background: #f6f7f9;
  font: 16px var(--rd-mono);
}

.rd-pill {
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--rd-blue);
  border-radius: 999px;
  background: var(--rd-card);
  color: var(--rd-blue);
  font: 600 14px "Segoe UI", sans-serif;
  cursor: pointer;
}

.rd-pill:hover { background: var(--rd-blue-soft); }
.rd-stress { margin: 0; font-size: 14px; }
.rd-meaning { margin: 0; font-size: 18px; }

.rd-example {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--rd-blue-soft);
}

.rd-example strong, .rd-hit { color: var(--rd-blue); font-weight: 700; }

.rd-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.rd-nav-btn {
  height: 52px;
  border: 1px solid var(--rd-line);
  border-radius: 10px;
  background: var(--rd-card);
  color: var(--rd-ink);
  font: 600 16px "Segoe UI", sans-serif;
  cursor: pointer;
}

.rd-nav-btn:disabled { color: #b6b9c2; cursor: default; }
.rd-nav-btn.rd-primary { border-color: var(--rd-blue); background: var(--rd-blue); color: white; }
.rd-nav-btn.rd-primary:disabled { opacity: 0.5; }

.rd-story-meta { display: flex; justify-content: space-between; }

.rd-story-title {
  margin: 0;
  font-family: var(--rd-serif);
  font-size: 32px;
  line-height: 1.15;
}

.rd-story-body p { margin: 0 0 14px; font-size: 17px; line-height: 1.85; }

.rd-chip {
  padding: 2px 6px;
  border: 0;
  border-radius: 4px;
  background: var(--rd-blue-soft);
  color: var(--rd-blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.rd-chip:hover { background: #d8e1f6; }

.rd-practice {
  display: grid;
  gap: 14px;
  margin: 0;
}

.rd-task-note { margin: 4px 0 0; color: var(--rd-muted); }

.rd-task-line { margin: 0; line-height: 2; }

.rd-blank, .rd-answer {
  border: 0;
  border-bottom: 1.5px solid var(--rd-line);
  border-radius: 0;
  background: transparent;
  color: var(--rd-ink);
  font: inherit;
}

.rd-blank {
  width: 9em;
  margin: 0 4px;
  text-align: center;
}

.rd-answer {
  display: block;
  width: 100%;
  margin-top: 6px;
}

.rd-blank.ok, .rd-answer.ok { border-bottom-color: #0f6e56; }
.rd-blank.bad, .rd-answer.bad { border-bottom-color: #9a3412; }

.rd-check {
  height: 32px;
  margin-top: 6px;
  padding: 0 12px;
  border: 1px solid var(--rd-line);
  border-radius: 8px;
  background: var(--rd-card);
  color: var(--rd-ink);
  font-size: 14px;
  cursor: pointer;
}

.rd-task-result { min-height: 1.2em; margin: 4px 0 0; font-size: 14px; }
.rd-task-result.ok { color: #0f6e56; }
.rd-task-result.bad { color: #9a3412; }

.rd-raw h1 { margin: 0; font-family: var(--rd-serif); font-size: 32px; }
.rd-raw h2 { margin: 12px 0 0; font-family: var(--rd-serif); font-size: 24px; }
.rd-raw h3 { margin: 8px 0 0; font-size: 18px; }
.rd-raw p, .rd-raw ul { margin: 0; }

@media (max-width: 820px) {
  .rd { padding: 18px; }
  .rd-main { grid-template-columns: 1fr; }
  .rd-list { max-height: 220px; }
}

.bubble {
  margin: 0;
  max-width: 90%;
  padding: 10px 12px;
  border-radius: 14px;
}

.bubble.user {
  align-self: flex-end;
  background: #e8f0f8;
  color: #3d5166;
}

mark.mistake, mark.fix {
  color: inherit;
  border-radius: 4px;
  padding: 0 2px;
}

mark.mistake { background: transparent; }
mark.mistake.active { box-shadow: none; }
mark.fix { background: #d7efdf; }

.corrections {
  display: grid;
  gap: 8px;
}

.correction {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff4e8;
}

#corrections .correction {
  gap: 4px;
  padding: 0;
  background: transparent;
}

#corrections .correction-summary {
  padding: 6px 0;
  background: transparent;
  color: var(--ink);
}

#corrections .corrected {
  padding: 2px 0 6px;
  background: transparent;
  color: var(--ink);
}

#corrections mark.mistake { background: #e8f0f8; color: #3d5166; }
#corrections mark.fix { background: #d5e3f0; color: #314556; }

.correction-summary {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.correction-more { display: none; }
.correction.open .correction-more { display: grid; gap: 2px; }

.correction p { margin: 0; overflow-wrap: anywhere; }
.correction-label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.correction .why { font-size: 14px; }
.unfamiliar .original { font-weight: 600; }

.bubble.flash { outline: 2px solid #e8a33d; outline-offset: 2px; }
.correction.flash { outline: 2px solid #e8a33d; outline-offset: 2px; border-radius: 12px; }

.bubble.assistant {
  align-self: flex-start;
  padding-right: 0;
  padding-left: 0;
  background: transparent;
}

.word {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  border-bottom: 1px dashed transparent;
}

.word:hover, .word.saved { border-bottom-color: var(--amber); }

aside h2 {
  margin: 16px 0 6px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
}

aside h2:first-child { margin-top: 0; }

.lesson-summary {
  margin-top: 8px;
  padding-top: 4px;
}

.lesson-summary .secondary {
  width: 100%;
  justify-content: center;
}

.lesson-summary-text {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.4;
}

.lesson-summary-text:empty { display: none; }

.lesson-summary-text ol {
  margin: 0;
  padding-left: 1.3em;
}

.lesson-summary-text li { margin: 0 0 12px; }

.lesson-summary-text li strong { display: block; }

.point-said,
.point-better { display: block; margin-top: 4px; }

.point-said { color: var(--muted); }

.prompt-fields {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
}

.prompt-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

button.danger { color: var(--amber); }
button.danger:hover { border-color: var(--amber); }

.hint { margin: 0 0 8px; font-size: 14px; }

.words {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-height: 32px;
}

.words li {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  font-size: 14px;
}

.definition {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff4e8;
  color: var(--ink);
}

.words.unknown {
  display: grid;
}

.words.unknown li {
  display: grid;
  gap: 2px;
  width: 100%;
  border-radius: 12px;
}

.words.unknown .gloss {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}
.words li.done {
  background: #d7efdf;
  color: var(--green-dark);
}

.correction.unfamiliar.done { box-shadow: inset 3px 0 0 var(--green); }
.said { margin-left: 8px; color: var(--muted); font-size: 13px; font-weight: 400; }

@media (max-width: 800px) {
  h1 { font-size: 32px; }
  .lead { display: none; }
  .layout { grid-template-columns: 1fr; }
  .layout { grid-template-rows: minmax(0, 1.6fr) minmax(0, 1fr); }
  #prompt-text { max-height: 32vh; }
  #talk, #talk-mode, #show-reading { height: 60px; }
  #talk { border-radius: 14px 0 0 14px; }
  #talk-mode { border-radius: 0 14px 14px 0; }
  #show-reading { border-radius: 14px; }
}
