:root {
  color-scheme: light;
  /* User-specified Graphite palette. */
  --background: #fafafa;
  --surface: #f0f0f1;
  --primary: #18181b;
  --accent: #71717a;
  --text: #09090b;
  --success: #16a34a;
  --warning: #d97706;
  --error: #dc2626;
  --info: #2563eb;
  /* Derived roles keep text legible on both the canvas and inset surfaces. */
  --on-primary: var(--background);
  --secondary-text: color-mix(in srgb, var(--accent) 82%, var(--text));
  --line: color-mix(in srgb, var(--accent) 24%, var(--background));
  --primary-hover: color-mix(in srgb, var(--primary) 84%, var(--accent));
  --selection: color-mix(in srgb, var(--primary) 14%, var(--background));
  --group-alternate: color-mix(in srgb, var(--info) 14%, var(--background));
  --success-soft: color-mix(in srgb, var(--success) 9%, var(--background));
  --warning-soft: color-mix(in srgb, var(--warning) 9%, var(--background));
  --error-soft: color-mix(in srgb, var(--error) 8%, var(--background));
  --info-soft: color-mix(in srgb, var(--info) 9%, var(--background));
  --success-ink: color-mix(in srgb, var(--success) 60%, var(--text));
  --warning-ink: color-mix(in srgb, var(--warning) 60%, var(--text));
  --error-ink: color-mix(in srgb, var(--error) 70%, var(--text));
  --info-ink: color-mix(in srgb, var(--info) 70%, var(--text));
  --shadow: color-mix(in srgb, var(--primary) 6%, transparent);
  --page-gutter: clamp(16px, 5vw, 24px);
  --app-width: 480px;
  /* Material-inspired shape, type and interaction roles over the existing palette. */
  --shape-small: 8px;
  --shape-medium: 12px;
  --shape-large: 16px;
  --shape-extra-large: 24px;
  --shape-full: 999px;
  --type-headline: 1.75rem;
  --type-title: 1.5rem;
  --type-body: 1rem;
  --type-body-medium: 0.875rem;
  --type-label: 0.875rem;
  --type-caption: 0.75rem;
  --state-hover: color-mix(in srgb, var(--primary) 8%, var(--background));
  --state-pressed: color-mix(in srgb, var(--primary) 12%, var(--background));
  --motion-short: 160ms;
  --motion-easing: cubic-bezier(0.2, 0, 0, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #161616;
    --surface: #242424;
    --primary: #e7e7ec;
    --accent: #aaaab2;
    --text: #eeeeef;
    --success: #4ade80;
    --warning: #fbbf24;
    --error: #f87171;
    --info: #60a5fa;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', Meiryo,
    sans-serif;
  line-height: 1.65;
}
button {
  font: inherit;
  cursor: pointer;
}
button,
summary {
  touch-action: manipulation;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
button:focus-visible {
  outline: 3px solid var(--info);
  outline-offset: 2px;
}
header {
  background: var(--background);
  color: var(--text);
  padding: 24px 18px 22px;
}
.top {
  max-width: 940px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.8px;
}
.brand span {
  color: var(--secondary-text);
}
.subhead {
  font-size: 12px;
  color: var(--secondary-text);
}
.labeltop {
  font-size: 12px;
  color: var(--secondary-text);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 99px;
}
main {
  max-width: 940px;
  padding: 22px 16px 64px;
  margin: auto;
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: 24px;
  line-height: 1.35;
  margin: 0 0 6px;
}
.muted {
  color: var(--secondary-text);
  font-size: 14px;
  margin: 0;
}
.courses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}
.tab {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 14px;
  background: var(--background);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.tab[aria-pressed='true'] {
  border-color: var(--primary);
  background: var(--surface);
  color: var(--secondary-text);
}
.progresscard,
.panel {
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 4px 18px var(--shadow);
}
.progresscard {
  padding: 14px 18px;
  margin-bottom: 18px;
}
.spread {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.kicker {
  font-size: 12px;
  color: var(--secondary-text);
  font-weight: 700;
}
.bar {
  height: 7px;
  border-radius: 20px;
  background: var(--surface);
  overflow: hidden;
  margin-top: 10px;
}
.bar > div {
  height: 100%;
  background: var(--primary);
  width: 0;
  transition: width 0.3s;
}
.steps {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.step {
  display: flex;
  flex: 1;
  gap: 7px;
  align-items: center;
  padding: 11px 12px;
  background: var(--surface);
  border-radius: 11px;
  color: var(--secondary-text);
  font-size: 12px;
  font-weight: 700;
}
.step b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 12px;
  flex: none;
}
.step.active {
  color: var(--text);
  background: var(--surface);
}
.step.active b {
  background: var(--surface);
  color: var(--text);
}
.step.done {
  color: var(--success-ink);
  background: var(--success-soft);
}
.step.done b {
  background: var(--success-soft);
  color: var(--success-ink);
}
.panel {
  padding: 25px 26px;
  margin-bottom: 16px;
}
.panel h2 {
  font-size: 22px;
  line-height: 1.4;
  margin: 0 0 8px;
}
.eyebrow {
  color: var(--secondary-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.instructions {
  font-size: 14px;
  color: var(--secondary-text);
  margin: 0 0 18px;
}
.sentencebox {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 15px;
  padding: 20px 18px;
  margin: 18px 0 15px;
}
.words {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 0;
  line-height: 2.35;
}
.word {
  font-size: 19px;
  font-weight: 650;
  white-space: nowrap;
  line-height: 1.7;
}
.gap {
  width: 21px;
  min-width: 21px;
  height: 28px;
  margin: 0 2px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  position: relative;
  padding: 0;
  color: var(--secondary-text);
  transition: 0.15s;
}
.gap:after {
  content: '·';
  position: absolute;
  inset: -5px 0 0;
  text-align: center;
  font-size: 21px;
}
.gap:hover,
.gap:focus-visible {
  border-color: var(--line);
  background: var(--surface);
}
.gap.selected {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--secondary-text);
}
.gap.selected:after {
  content: '／';
  font-size: 16px;
  inset: 0 0;
}
.examples {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 0;
}
.chunkchip {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}
.chunkchip.correct {
  background: var(--success-soft);
  color: var(--success-ink);
}
.chunkchip.wrong {
  background: var(--error-soft);
  color: var(--error-ink);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}
.primary,
.secondary,
.plain {
  border-radius: 11px;
  padding: 12px 17px;
  font-weight: 800;
  font-size: 14px;
}
.primary {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: var(--on-primary);
}
.primary:hover {
  background: var(--primary-hover);
}
.secondary {
  background: var(--background);
  border: 1px solid var(--accent);
  color: var(--primary);
}
.secondary:hover {
  background: var(--surface);
}
.plain {
  border: 0;
  background: transparent;
  color: var(--secondary-text);
}
.notice {
  margin: 16px 0 0;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  background: var(--surface);
  color: var(--text);
}
.notice.good {
  background: var(--success-soft);
  color: var(--success-ink);
}
.notice.warn {
  background: var(--warning-soft);
  color: var(--warning-ink);
}
.legend {
  font-size: 12px;
  color: var(--secondary-text);
  margin: 6px 0 0;
}
.meaninghead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 14px;
}
.englishchunk {
  font-size: 25px;
  line-height: 1.5;
  font-weight: 800;
  margin: 12px 0 20px;
}
.options {
  display: grid;
  gap: 10px;
}
.option {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--background);
  text-align: left;
  padding: 14px 15px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.55;
}
.option:hover:not(:disabled) {
  background: var(--surface);
  border-color: var(--line);
}
.option:disabled {
  cursor: default;
}
.option.correct {
  border-color: var(--success);
  background: var(--success-soft);
  color: var(--success-ink);
  font-weight: 750;
}
.option.incorrect {
  border-color: var(--error);
  background: var(--error-soft);
  color: var(--error-ink);
}
.translation {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}
.translation .chip {
  padding: 5px 9px;
  background: var(--surface);
  border-radius: 9px;
  font-size: 13px;
  color: var(--secondary-text);
}
.grammar {
  border-left: 3px solid var(--line);
  background: var(--surface);
  padding: 14px 15px;
  border-radius: 0 10px 10px 0;
  margin: 17px 0;
}
.grammar h3 {
  margin: 0 0 5px;
  font-size: 15px;
}
.grammar p {
  font-size: 14px;
  margin: 0;
  color: var(--text);
}
.reading {
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.reading:first-child {
  border-top: 0;
}
.reading p {
  margin: 3px 0;
}
.reading .en {
  font-size: 17px;
  font-weight: 650;
  line-height: 1.7;
}
.reading .ja {
  font-size: 14px;
  color: var(--secondary-text);
}
.small {
  font-size: 12px;
  color: var(--secondary-text);
}
.hide {
  display: none !important;
}
.footer {
  max-width: 940px;
  padding: 0 18px 36px;
  margin: auto;
  color: var(--secondary-text);
  font-size: 12px;
}
.resultscore {
  font-size: 44px;
  font-weight: 850;
  color: var(--secondary-text);
  margin: 10px 0;
}
.switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--secondary-text);
}
.switch input {
  accent-color: var(--primary);
}
.summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.stat strong {
  font-size: 20px;
  display: block;
}
.stat span {
  color: var(--secondary-text);
  font-size: 12px;
}
@media (max-width: 600px) {
  header {
    padding: 20px 16px;
  }
  .hero h1 {
    font-size: 22px;
  }
  .panel {
    padding: 20px 17px;
  }
  .word {
    font-size: 17px;
  }
  .gap {
    width: 19px;
    min-width: 19px;
    margin: 0 1px;
  }
  .step {
    padding: 9px 7px;
    gap: 5px;
    font-size: 10px;
    line-height: 1.3;
  }
  .step b {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }
  .labeltop {
    display: none;
  }
  .englishchunk {
    font-size: 22px;
  }
}
[hidden] {
  display: none !important;
}
a {
  color: var(--primary);
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
button {
  min-height: 44px;
}
h2:focus,
h3:focus {
  outline: none;
}
h3 {
  font-size: 18px;
  line-height: 1.5;
}
h4 {
  font-size: 14px;
  margin: 0 0 6px;
}
.app-nav {
  display: flex;
  gap: 8px;
  margin: 0 0 22px;
}
.app-nav button {
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 16px;
  color: var(--text);
  font-weight: 700;
}
.app-nav [aria-current='page'] {
  background: var(--text);
  border-color: var(--text);
  color: var(--on-primary);
}
.tab-level {
  font-size: 11px;
  font-weight: 400;
}
.word-token {
  display: inline-flex;
  align-items: center;
}
.gap {
  min-width: 36px;
  width: 36px;
  min-height: 44px;
  height: 44px;
  margin: 0 2px;
}
.gap:after {
  top: 3px;
}
.gap.selected:after {
  inset: 8px 0;
}
.gap-state {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0;
}
.gap.right {
  background: var(--success-soft);
  color: var(--success-ink);
  border-color: var(--success);
}
.gap.missing {
  border: 2px dashed var(--warning);
  background: var(--warning-soft);
  color: var(--warning-ink);
}
.gap.extra {
  border: 2px solid var(--error);
  background: var(--error-soft);
  color: var(--error-ink);
}
.gap.difference {
  border: 2px dotted var(--info);
  background: var(--info-soft);
}
.words {
  row-gap: 22px;
  padding-bottom: 8px;
}
.answer-explanation {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-top: 22px;
  padding: 20px;
  background: var(--surface);
}
.answer-status {
  color: var(--error-ink);
  font-size: 14px;
  font-weight: 800;
}
.is-correct .answer-status {
  color: var(--success-ink);
}
.answer-explanation h3 {
  font-size: 22px;
  margin: 8px 0 4px;
}
.answer-comparison {
  margin: 18px 0;
}
.answer-comparison > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.answer-comparison dt {
  font-size: 12px;
  font-weight: 800;
  color: var(--secondary-text);
}
.answer-comparison dd {
  margin: 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.reason-block {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.reason-block p,
.reason-block li,
.example-block p,
.review-hint p {
  font-size: 14px;
  line-height: 1.8;
  margin: 6px 0;
}
.reason-block ul {
  padding-left: 20px;
  margin: 0;
}
.example-block,
.review-hint {
  padding: 16px;
  margin: 16px 0;
  border-radius: 10px;
  background: var(--surface);
}
.example-block p[lang='en'] {
  font-size: 18px;
}
.review-hint {
  background: var(--surface);
}
.context summary,
details summary {
  cursor: pointer;
  min-height: 44px;
  align-content: center;
  color: var(--secondary-text);
  font-size: 13px;
}
.context-sentence {
  font-size: 17px;
  line-height: 1.8;
}
.structure {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}
.structure-part {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--background);
}
.structure-part strong {
  font-size: 12px;
  border-radius: 4px;
  background: var(--surface);
  padding: 1px 6px;
  color: var(--secondary-text);
}
.structure-part span {
  font-size: 17px;
  font-weight: 650;
  margin: 5px 0;
}
.structure-part small {
  font-size: 12px;
  color: var(--secondary-text);
}
.grammar-note {
  padding: 16px;
  background: var(--surface);
  border-left: 3px solid var(--line);
  border-radius: 0 8px 8px 0;
  font-size: 15px;
}
.split-feedback {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 18px 0;
  padding: 17px;
}
.split-feedback h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.split-feedback > p {
  font-size: 14px;
}
.split-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
  font-size: 12px;
}
.split-legend span {
  background: var(--background);
  border: 1px solid var(--line);
  padding: 5px 8px;
  border-radius: 7px;
}
.model-split {
  font-size: 17px !important;
  line-height: 1.8;
  padding: 12px;
  background: var(--background);
  border-radius: 8px;
}
.model-split span {
  color: var(--primary);
  font-weight: 800;
}
.boundary-list {
  padding: 0;
  list-style: none;
  margin: 18px 0;
}
.boundary-list li {
  border-left: 3px solid var(--line);
  padding: 6px 13px;
  margin: 12px 0;
  font-size: 13px;
}
.boundary-list li p {
  margin: 6px 0;
}
.boundary-list .right {
  border-color: var(--success);
}
.boundary-list .missing {
  border-color: var(--warning);
}
.boundary-list .extra {
  border-color: var(--error);
}
.saved-label {
  font-size: 13px;
  color: var(--success-ink);
  font-weight: 700;
}
.review-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.review-item h3 {
  font-size: 20px;
  line-height: 1.7;
}
.review-badge {
  background: var(--surface);
  color: var(--secondary-text);
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}
.empty-state {
  text-align: center;
  padding: 36px 10px;
}
.empty-state button {
  margin-top: 18px;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 15px;
  background: var(--background);
  padding: 10px;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
.option > span {
  font-size: 12px;
  display: block;
}
.panel {
  scroll-margin-top: 15px;
}
@media (max-width: 600px) {
  .answer-explanation {
    padding: 16px 13px;
  }
  .answer-comparison > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .gap {
    width: 36px;
    min-width: 36px;
    margin: 0 1px;
  }
  .actions button {
    flex: 1 1 auto;
  }
  .app-nav button {
    flex: 1;
  }
  .structure-part {
    max-width: 100%;
  }
  .structure-part span {
    overflow-wrap: anywhere;
  }
  .spread {
    flex-wrap: wrap;
  }
  .reason-block p {
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.option:disabled {
  opacity: 1;
}
.panel h1 {
  font-size: 24px;
  line-height: 1.4;
  margin: 0 0 8px;
}
.gap {
  min-width: 44px;
  width: 44px;
  min-height: 44px;
}
.reading-order {
  font-size: 17px;
  line-height: 1.95;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow-wrap: anywhere;
}
.reading-order mark {
  background: var(--selection);
  color: var(--text);
  padding: 2px 3px;
  border-radius: 4px;
  font-weight: 750;
}
#explanationTitle {
  scroll-margin-top: 20px;
}
.option:focus-visible {
  outline: 3px solid var(--info);
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .gap {
    width: 44px;
    min-width: 44px;
  }
  .reading-order {
    font-size: 16px;
  }
  .actions {
    gap: 10px;
  }
  .primary,
  .secondary,
  .plain {
    min-height: 48px;
  }
}
.prose-box {
  padding: 18px;
}
.prose-selector {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  line-height: 2;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.word-pick {
  display: inline-block;
  min-width: 0;
  min-height: 44px;
  line-height: 1.5;
  margin: 0;
  padding: 0 1px;
  vertical-align: baseline;
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 0;
  position: relative;
}
.word-pick:hover {
  text-decoration: underline;
  text-decoration-color: var(--info);
  text-underline-offset: 5px;
}
.word-pick.group-0 {
  background: var(--selection);
}
.word-pick.group-1 {
  background: var(--group-alternate);
}
.word-pick.range-start {
  border-radius: 5px 0 0 5px;
}
.word-pick.range-end {
  border-radius: 0 5px 5px 0;
}
.word-pick.range-start.range-end {
  border-radius: 5px;
}
.word-pick.range-anchor {
  background: var(--surface);
  box-shadow: inset 0 -3px var(--shadow);
  border-radius: 4px;
}
.range-prompt {
  font-size: 14px;
  color: var(--secondary-text);
  background: var(--surface);
  padding: 10px 12px;
  border-radius: 9px;
}
.selected-ranges {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: grid;
  gap: 8px;
}
.selected-ranges li {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px 8px 4px 12px;
  font-size: 15px;
  background: var(--background);
}
.selected-ranges li > span[lang='en'] {
  flex: 1;
}
.selected-ranges button {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: var(--secondary-text);
  font-size: 22px;
}
.selected-ranges button:hover {
  background: var(--surface);
}
.range-number {
  color: var(--secondary-text);
  font-size: 12px;
  font-weight: 800;
  min-width: 17px;
}
.comparison-sentence {
  font-size: 17px;
  line-height: 2.1;
}
.boundary-marker {
  display: inline-block;
  font-weight: 800;
  padding: 0 3px;
  color: var(--text);
  white-space: nowrap;
}
.boundary-marker small {
  font-size: 10px;
  display: inline-block;
}
.boundary-marker.missing {
  color: var(--warning-ink);
  border-bottom: 2px dashed var(--warning);
}
.boundary-marker.extra {
  color: var(--error-ink);
  border-bottom: 2px solid var(--error);
}
.boundary-marker.difference {
  color: var(--info-ink);
  border-bottom: 2px dotted var(--info);
}
@media (max-width: 600px) {
  .prose-selector {
    font-size: 21px;
    line-height: 2;
  }
  .word-pick {
    min-height: 42px;
  }
  .prose-box {
    padding: 16px !important;
  }
}
.app-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.app-nav button {
  min-width: 0;
  padding: 10px 6px;
  font-size: 13px;
}
.reading-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 25px;
}
.reading-card {
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 14px;
  background: var(--surface);
}
.reading-card h2 {
  font-family: Georgia, serif;
  font-size: 28px;
  margin: 12px 0;
  line-height: 1.3;
}
.reading-card p {
  font-size: 14px;
}
.reading-card button {
  margin-top: 16px;
  width: 100%;
}
.reading-title {
  font-family: Georgia, serif;
  font-size: 22px;
  color: var(--secondary-text);
  margin: 5px 0 20px;
}
.reading-stages {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 20px 0 27px;
  gap: 5px;
}
.reading-stages li {
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 3px;
  text-align: center;
  color: var(--secondary-text);
}
.reading-stages [aria-current='step'] {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
  font-weight: 750;
}
.long-reading {
  margin-top: 20px;
}
.reading-paragraph {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.paragraph-number {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--secondary-text);
  font-weight: 750;
}
.reading-paragraph p[lang='en'] {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 23px;
  line-height: 1.7;
  font-weight: 400;
  margin: 12px 0 18px;
}
.reading-paragraph .ja {
  font-size: 14px;
  line-height: 1.9;
  color: var(--secondary-text);
  margin: 12px 0 16px;
}
.reading-sources {
  font-size: 12px;
  color: var(--secondary-text);
  margin-top: 24px;
  line-height: 1.8;
}
.reading-sources h3 {
  font-size: 13px;
}
.reading-sources ul {
  padding-left: 20px;
}
.reading-sources a {
  min-height: 36px;
  display: inline-block;
  padding: 5px 0;
  overflow-wrap: anywhere;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.reading-question {
  font-size: 21px !important;
  line-height: 1.6 !important;
  margin: 15px 0 22px !important;
}
.focus-sentence {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.focus-sentence > h3 {
  font-family: Georgia, serif;
  font-size: 23px;
  line-height: 1.6;
  margin: 0 0 12px;
}
.focus-sentence > p {
  font-size: 14px;
  line-height: 1.8;
}
.topic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 15px;
}
.topic-links button {
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 9px;
}
.pill {
  display: inline-block;
  background: var(--surface);
  color: var(--secondary-text);
  border-radius: 6px;
  font-size: 12px;
  padding: 3px 9px;
  font-weight: 750;
  margin: 12px 0 0;
}
.grammar-catalog {
  margin-top: 22px;
}
.grammar-catalog details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 18px;
  margin-bottom: 12px;
  scroll-margin-top: 20px;
}
.grammar-catalog summary {
  font-size: 16px;
  min-height: 54px;
  color: var(--text);
  font-weight: 750;
}
.grammar-catalog details > p {
  font-size: 14px;
  line-height: 1.85;
}
.grammar-catalog p.grammar-example {
  font-family: Georgia, serif;
  font-size: 23px;
  line-height: 1.6;
  color: var(--text);
  padding: 13px;
  background: var(--surface);
  border-radius: 9px;
}
.review-item h2 {
  font-size: 20px;
  line-height: 1.65;
  margin: 10px 0;
}
@media (max-width: 600px) {
  .reading-cards {
    grid-template-columns: 1fr;
  }
  .reading-card {
    padding: 19px;
  }
  .reading-paragraph p[lang='en'] {
    font-size: 21px;
    line-height: 1.75;
  }
  .reading-stages li {
    font-size: 10px;
    padding: 8px 2px;
  }
  .grammar-catalog details {
    padding: 3px 13px;
  }
}

.study-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--background);
}
.study-summary div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.study-summary strong {
  font-size: 23px;
  color: var(--text);
}
.study-summary span {
  font-size: 11px;
  line-height: 1.6;
  color: var(--secondary-text);
}
.review-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0 12px;
}
.review-filters label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}
.review-filters select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 8px;
  background: var(--background);
  color: var(--text);
  font: inherit;
}
[hidden] {
  display: none !important;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid var(--info);
  outline-offset: 3px;
}
@media (max-width: 540px) {
  .study-summary {
    padding: 14px 12px;
    gap: 8px;
  }
  .study-summary strong {
    font-size: 20px;
  }
  .review-filters {
    grid-template-columns: 1fr;
  }
  .word-pick {
    min-height: 44px;
  }
  .app-nav button {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* A phone-sized learning canvas; wider screens retain the same single-column flow. */
html {
  scroll-padding-top: calc(80px + env(safe-area-inset-top, 0px));
  scroll-padding-bottom: calc(10rem + env(safe-area-inset-bottom, 0px));
}
body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  -webkit-tap-highlight-color: transparent;
}
.simple-header {
  padding: calc(8px + env(safe-area-inset-top, 0px)) 0 8px;
  background: var(--background);
  color: var(--text);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}
.simple-header .top {
  max-width: var(--app-width);
  min-height: 48px;
  padding: 0 var(--page-gutter);
  gap: 12px;
  justify-content: flex-start;
}
.simple-header .brand {
  font-size: 1.375rem;
  min-width: 0;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.simple-header .brand span {
  color: var(--accent);
}
.header-back {
  border: 0;
  border-radius: var(--shape-full);
  background: transparent;
  color: var(--text);
  padding: 12px;
  width: 48px;
  min-height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: background var(--motion-short) var(--motion-easing);
}
.header-back svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header-back:hover,
.header-back:focus-visible {
  background: var(--state-hover);
}
.header-back:active {
  background: var(--state-pressed);
}
main {
  width: 100%;
  max-width: var(--app-width);
  padding: 20px var(--page-gutter) 0;
  background: var(--background);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
#screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.panel h1 {
  font-size: var(--type-title);
  line-height: 1.45;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
}
#main[data-page='home'] h1 {
  font-size: var(--type-headline);
  line-height: 1.45;
  margin-bottom: 16px;
}
.panel h2 {
  font-size: 19px;
  line-height: 1.55;
  letter-spacing: -0.02em;
}
.panel h3 {
  font-size: 15px;
}
.flow-label {
  margin: 0 0 8px;
  color: var(--secondary-text);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.03em;
}
.journey-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--secondary-text);
  font-size: var(--type-body-medium);
  margin: 0 0 20px;
  flex-wrap: wrap;
  row-gap: 8px;
}
.journey-header span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.journey-header span:last-child {
  flex-shrink: 0;
}
.home-intro {
  font-size: 0.9375rem;
  color: var(--secondary-text);
  margin: 0 0 28px;
}
.next-study {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--shape-extra-large);
  margin-bottom: 24px;
}
.next-study h2 {
  margin: 6px 0 10px;
}
.next-study > p:not(.flow-label) {
  font-size: 0.875rem;
  color: var(--secondary-text);
  line-height: 1.8;
  margin: 0 0 22px;
}
.primary {
  border-radius: var(--shape-full);
  min-height: 56px;
  box-shadow: none;
  font-size: var(--type-label);
  line-height: 1.5;
  font-weight: 700;
  padding: 14px 18px;
  transition:
    background var(--motion-short) var(--motion-easing),
    border-color var(--motion-short) var(--motion-easing);
}
.secondary {
  border-radius: var(--shape-full);
  font-size: var(--type-label);
  min-height: 48px;
}
.primary:active:not(:disabled) {
  background: var(--primary-hover);
}
.secondary:active {
  background: var(--state-pressed);
}
.primary:disabled {
  opacity: 1;
  background: var(--surface);
  color: var(--secondary-text);
  border-color: var(--line);
  cursor: default;
}
.next-study > .primary,
.flow-actions > .primary {
  width: 100%;
}
.home-disclosure {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
.home-disclosure:last-child {
  padding-bottom: 0;
}
.home-disclosure > summary {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  min-height: 52px;
  padding: 14px 0;
}
.home-disclosure[open] > summary {
  margin-bottom: 20px;
}
.home-disclosure .secondary {
  width: 100%;
  margin-top: 12px;
}
.home-disclosure .plain {
  display: block;
  padding-left: 0;
}
.count-badge {
  display: inline-block;
  background: var(--surface);
  color: var(--secondary-text);
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 12px;
  margin-left: 6px;
}
.material-list {
  display: grid;
  gap: 0;
}
.material-row {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  color: var(--text);
  min-height: 64px;
}
.material-row:last-child {
  border-bottom: 0;
}
.material-row strong,
.material-row small {
  display: block;
}
.material-row strong {
  font-size: 14px;
  font-weight: 650;
}
.material-row small {
  font-size: 12px;
  color: var(--secondary-text);
  margin-top: 5px;
}
.more-detail {
  border-top: 1px solid var(--line);
  margin: 18px 0 0;
  padding: 14px 0 0;
}
.more-detail > summary {
  font-size: 0.875rem;
  cursor: pointer;
  min-height: 48px;
  padding: 10px 0;
  color: var(--text);
}
.more-detail[open] > summary {
  margin-bottom: 16px;
}
.more-detail p,
.more-detail li {
  font-size: 14px;
  line-height: 1.9;
}
.more-detail h3 {
  margin-top: 20px;
}
.more-detail .structure {
  margin-top: 18px;
}
.instructions {
  font-size: var(--type-body);
  color: var(--secondary-text);
  margin: 0 0 18px;
}
.prose-box {
  padding: 16px;
  margin: 0 0 12px;
  border-radius: 16px;
  background: var(--surface);
}
.prose-selector {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.375rem;
  line-height: 2.2;
}
.word-pick {
  font: inherit;
  min-width: 24px;
  max-width: 100%;
  min-height: 48px;
  padding: 0 1px;
  line-height: 1.7;
}
.word-pick.group-0 {
  background: var(--selection);
}
.word-pick.group-1 {
  background: var(--group-alternate);
}
.word-pick.range-anchor {
  outline: 2px solid var(--info);
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: inset 0 -3px var(--primary);
}
.selection-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
}
.selection-status .range-prompt {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--secondary-text);
}
.plain {
  color: var(--secondary-text);
  font-size: 0.875rem;
  min-height: 48px;
}
.selection-status .plain {
  padding: 8px 0 8px 12px;
  white-space: nowrap;
}
.selection-help {
  margin: 10px 0 16px;
  border-top: 0;
  padding-top: 0;
}
.flow-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: auto calc(-1 * var(--page-gutter)) 0;
  padding: 16px var(--page-gutter) calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--background);
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: 0 -6px 20px var(--shadow);
  position: sticky;
  bottom: 0;
  z-index: 2;
}
.flow-actions:empty {
  display: none;
}
.flow-actions > .secondary {
  min-height: 48px;
  border-radius: var(--shape-full);
  font-size: var(--type-label);
}
.compact-feedback .flow-actions {
  position: static;
  margin: 24px -16px -18px;
  padding: 16px;
  border-radius: 0 0 16px 16px;
}
.split-verdict {
  align-self: flex-start;
  margin: 0 0 16px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: var(--success-soft);
  color: var(--success-ink);
  font-size: 0.8125rem;
  font-weight: 700;
}
.split-verdict.is-example {
  background: var(--info-soft);
  border-color: var(--info);
  color: var(--info-ink);
}
.split-feedback.is-wrong {
  border-color: var(--error);
  background: var(--error-soft);
}
.split-feedback.is-wrong > h2 {
  color: var(--error-ink);
}
.split-feedback.is-unknown {
  border-color: var(--warning);
  background: var(--warning-soft);
}
.split-feedback.is-unknown > h2 {
  color: var(--warning-ink);
}
.model-split-label {
  font-size: 13px;
  color: var(--secondary-text);
  margin: 20px 0 0;
}
.focus-context {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.375rem;
  line-height: 1.85;
  padding: 16px;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.reading-order mark {
  background: var(--selection);
  color: var(--text);
  padding: 3px 2px;
  border-radius: 3px;
  font-weight: 700;
}
.options {
  gap: 10px;
  margin: 0;
}
.option {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: flex-start;
  gap: 12px;
  border-radius: var(--shape-large);
  min-height: 56px;
  padding: 15px 14px;
  font-size: 1rem;
  line-height: 1.65;
  background: var(--background);
  border-color: var(--accent);
  text-align: left;
  transition:
    background var(--motion-short) var(--motion-easing),
    border-color var(--motion-short) var(--motion-easing);
}
.option:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--state-hover);
}
.option:active:not(:disabled) {
  background: var(--state-pressed);
  border-color: var(--primary);
}
.option-letter {
  font-size: var(--type-caption);
  font-weight: 700;
  color: var(--secondary-text);
  width: 32px;
  height: 32px;
  text-align: center;
  line-height: 32px;
  background: var(--surface);
  border-radius: var(--shape-small);
  flex-shrink: 0;
}
.compact-feedback {
  padding: 18px 16px;
  border-radius: 16px;
  margin: 20px 0 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: none;
}
.compact-feedback.is-correct {
  background: var(--success-soft);
  border-color: var(--success);
}
.compact-feedback.is-correct > h2 {
  color: var(--success-ink);
}
.answer-explanation.is-wrong > h2 {
  color: var(--error-ink);
}
.compact-feedback h2 {
  margin: 0 0 14px;
  font-size: 18px;
}
.compact-feedback > p {
  font-size: 0.9375rem;
  line-height: 1.9;
}
.compact-feedback .answer-comparison {
  margin: 0 0 16px;
  gap: 0;
}
.answer-comparison > div {
  background: transparent;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.answer-comparison dt {
  font-size: 11px;
  color: var(--secondary-text);
}
.answer-comparison dd {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  margin: 3px 0 0;
}
.compact-feedback .key-reason {
  margin: 0;
  color: var(--text);
}
.compact-feedback .saved-label {
  font-size: 11px;
  color: var(--success-ink);
  margin: 12px 0 0;
}
.compact-feedback .more-detail {
  margin-top: 14px;
}
.compact-feedback .more-detail p {
  font-size: 0.9375rem;
}
.split-feedback .model-split {
  font-size: 18px;
  line-height: 1.9;
}
.long-reading {
  margin-top: 8px;
}
.long-reading .reading-paragraph {
  padding: 20px 0;
}
.long-reading .reading-paragraph:first-child {
  padding-top: 8px;
}
.reading-paragraph > p[lang='en'] {
  font-size: 1.25rem;
  line-height: 1.95;
  margin: 0;
}
.reading-paragraph .paragraph-number {
  display: none;
}
.reading-sources {
  font-size: 12px;
  margin-top: 14px;
}
.reading-sources h3 {
  font-size: 14px;
}
.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  min-height: 48px;
  margin-top: 0;
  font-size: 0.875rem;
  color: var(--secondary-text);
}
.switch input {
  width: 20px;
  height: 20px;
  margin: 0;
}
.completion-copy {
  font-size: 15px;
  line-height: 2.1;
  color: var(--secondary-text);
  margin: 20px 0 30px;
}
.review-item {
  box-shadow: none;
  padding: 18px 16px;
}
.review-item .actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}
.review-item .actions > .primary {
  min-height: 48px;
}
.review-item .plain {
  text-align: left;
  padding-left: 0;
}
.review-item .actions > .plain {
  text-align: center;
}
.review-other {
  margin-top: 8px;
}
.review-other summary {
  font-size: 12px;
  color: var(--secondary-text);
  cursor: pointer;
}
.review-other .plain {
  display: block;
}
.review-filters {
  margin: 12px 0;
}
.review-list {
  margin-top: 20px;
}
.simple-footer {
  font-size: 11px;
  color: var(--secondary-text);
  text-align: center;
  margin: 24px 0 0;
  padding: 0 0 calc(16px + env(safe-area-inset-bottom, 0px));
  line-height: 1.7;
}
#main[data-page='learn'] > .simple-footer,
#main[data-page='reading'] > .simple-footer {
  display: none;
}
@media (min-width: 560px) {
  body {
    background: var(--background);
  }
}
@media (hover: none) {
  .option:hover:not(:disabled) {
    background: var(--background);
    border-color: var(--accent);
  }
  .word-pick:hover {
    text-decoration: none;
  }
}
.option > span:last-child {
  font-size: 1rem;
  line-height: 1.7;
  color: inherit;
  font-weight: 500;
}
.option > .option-letter {
  font-size: var(--type-caption);
}

/* Translate the whole displayed syntactic group before explaining its role. */
.group-meanings {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.group-meanings .structure-part {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 16px;
}
.structure-part .group-meaning,
.more-detail .structure-part .group-meaning {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.85;
  color: var(--text);
  margin: 10px 0 6px;
}
.group-meanings .structure-part small {
  display: block;
  font-size: 12px;
  line-height: 1.75;
  color: var(--secondary-text);
}
.grammar-points {
  margin: 20px 0 0;
  padding: 16px 16px 16px 34px;
  background: var(--surface);
  border-left: 3px solid var(--line);
  border-radius: 0 8px 8px 0;
}
.grammar-points li {
  padding-left: 3px;
  margin: 0 0 12px;
}
.grammar-points li:last-child {
  margin-bottom: 0;
}
.grammar-points strong {
  font-weight: 650;
  color: var(--text);
}
.worked-example {
  margin-top: 24px;
}
.example-pattern {
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--surface);
}
.example-pattern span,
.example-whole span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--secondary-text);
  margin-bottom: 5px;
}
.example-pattern strong {
  font-size: 14px;
  line-height: 1.7;
  font-weight: 650;
}
.example-connection {
  font-size: 14px;
  line-height: 1.9;
}
.example-groups {
  margin: 16px 0;
  padding: 0;
}
.example-groups > div {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.example-groups > div:first-child {
  padding-top: 0;
}
.example-groups dt {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}
.example-groups dd {
  font-size: 14px;
  line-height: 1.8;
  margin: 5px 0 0;
  color: var(--text);
}
.example-whole {
  font-size: 14px;
  line-height: 1.9;
  margin-top: 16px;
}

/* One explanation connects the chosen English group, its meaning, and its structure. */
.compact-feedback .explained-english {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 21px;
  line-height: 1.7;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
  overflow-wrap: anywhere;
}
.compact-feedback .explained-meaning {
  font-size: 15px;
  line-height: 1.85;
  font-weight: 600;
  margin: 0 0 18px;
  color: var(--text);
}
.chunk-explanation > h3 {
  font-size: 13px;
  margin: 16px 0 6px;
  color: var(--text);
}
.chunk-explanation .chunk-reason {
  font-size: 0.9375rem;
  line-height: 1.9;
  margin: 0;
}
.compact-feedback .key-reason + .key-reason {
  margin-top: 10px;
}

/* Answer and sentence explanations form one reading surface, with essential content visible. */
.answer-guide {
  padding: 0;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--shape-extra-large);
  background: var(--background);
}
.answer-guide-summary {
  padding: 18px 18px 20px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--shape-extra-large) var(--shape-extra-large) 0 0;
  background: var(--surface);
}
.answer-guide .answer-outcome {
  margin: 0 0 18px;
  font-size: var(--type-label);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0;
  display: inline-flex;
  padding: 5px 10px;
  border-radius: var(--shape-full);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.answer-guide.is-correct .answer-outcome {
  color: var(--success-ink);
  background: var(--success-soft);
}
.answer-guide.is-wrong .answer-outcome {
  color: var(--error-ink);
  background: var(--error-soft);
}
.answer-english {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.5rem;
  line-height: 1.5;
  font-weight: 600;
  margin: 0;
  overflow-wrap: anywhere;
}
.answer-meaning {
  margin: 10px 0 0;
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 600;
}
.answer-guide-body {
  padding: 20px 18px 6px;
}
.answer-guide .answer-guide-body h3 {
  margin: 0 0 10px;
  font-size: var(--type-body);
  line-height: 1.6;
}
.answer-contrast {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.chosen-answer {
  margin: 0 0 14px;
}
.chosen-answer dt {
  font-size: 0.75rem;
  color: var(--secondary-text);
  margin-bottom: 5px;
}
.chosen-answer dd {
  margin: 0;
  padding: 10px 12px;
  font-size: 0.9375rem;
  line-height: 1.8;
  border-radius: 10px;
  background: var(--surface);
}
.answer-contrast > p,
.chunk-point > p {
  margin: 0;
  font-size: var(--type-body);
  line-height: 1.95;
}
.answer-contrast .contrast-takeaway {
  margin-top: 12px;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
  color: var(--secondary-text);
  font-size: 0.875rem;
}
.answer-contrast .saved-label {
  margin-top: 12px;
  font-size: 0.75rem;
}
.chunk-point > h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chunk-point > h3::before {
  content: '';
  width: 12px;
  height: 2px;
  background: var(--primary);
  flex-shrink: 0;
}
.sentence-guide {
  margin: 26px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.sentence-guide-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.answer-guide .sentence-guide-heading > h3,
.sentence-guide-heading > h3 {
  font-size: 1.125rem;
  margin: 0;
}
.sentence-pattern {
  font-size: var(--type-caption);
  line-height: 1.7;
  color: var(--secondary-text);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 8px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.sentence-map {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sentence-group {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  position: relative;
  margin-bottom: 24px;
}
.sentence-group:not(:last-child) .sentence-role::after {
  content: '';
  width: 1px;
  min-height: 12px;
  margin: 6px 0 -16px;
  background: var(--line);
  flex: 1;
}
.sentence-role {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  align-self: stretch;
}
.role-symbol {
  display: grid;
  place-items: center;
  width: 40px;
  min-height: 40px;
  padding: 4px;
  font-size: var(--type-label);
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--shape-medium);
}
.sentence-role[data-role='V'] .role-symbol {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}
.role-name {
  font-size: var(--type-caption);
  color: var(--secondary-text);
  line-height: 1.4;
  text-align: center;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.sentence-group-content {
  min-width: 0;
}
.sentence-group-english {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  line-height: 1.55;
  font-weight: 600;
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}
.sentence-group-meaning {
  font-size: var(--type-body);
  line-height: 1.8;
  font-weight: 500;
  margin: 0 0 5px;
}
.sentence-group-note {
  font-size: var(--type-body-medium);
  line-height: 1.8;
  margin: 0;
  color: var(--secondary-text);
}
.sentence-translation {
  margin: 6px 0 24px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--shape-large);
}
.sentence-translation h4 {
  font-size: var(--type-body-medium);
  font-weight: 500;
  margin: 0 0 7px;
  color: var(--secondary-text);
}
.sentence-translation p {
  font-size: var(--type-body);
  line-height: 1.95;
  margin: 0;
}
.sentence-points > h4 {
  font-size: var(--type-body);
  margin: 0 0 16px;
}
.sentence-points > ul {
  padding-left: 18px;
  margin: 0;
}
.sentence-points li {
  padding-left: 3px;
  margin-bottom: 18px;
  font-size: var(--type-body);
  line-height: 1.9;
}
.sentence-points li::marker {
  color: var(--accent);
}
.sentence-points li > strong,
.sentence-points li > span {
  display: block;
}
.sentence-points li > strong {
  font-weight: 650;
  margin-bottom: 4px;
}
.answer-guide .guide-extra {
  margin-top: 24px;
  padding-top: 4px;
}
.guide-extra .extra-passage {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.125rem;
}
.answer-guide > .flow-actions {
  position: static;
  margin: 0;
  padding: 16px 18px;
  border-radius: 0 0 var(--shape-extra-large) var(--shape-extra-large);
}
.reading-evidence {
  margin: 20px 0;
  padding: 16px;
  border-left: 2px solid var(--primary);
  border-radius: 0 12px 12px 0;
  background: var(--background);
}
.reading-evidence .evidence-label {
  font-size: 0.75rem;
  color: var(--secondary-text);
  margin: 0 0 10px;
}
.reading-evidence > p[lang='en'] {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.1875rem;
  line-height: 1.75;
  margin: 0;
  overflow-wrap: anywhere;
}
