.vocabulary-page {
  min-height: auto;
  padding: 14px 0 34px;
  background:
    linear-gradient(180deg, rgba(255, 248, 242, 0.74) 0%, rgba(247, 249, 251, 0.88) 48%, #ffffff 100%),
    var(--bg);
}

.main-content {
  flex: 1 0 auto;
}

.vocabulary-console {
  width: min(100% - 32px, 1040px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.vocabulary-console > * {
  min-width: 0;
  max-width: 100%;
}

.vocabulary-course-summary {
  display: none;
}

.vocabulary-course-header-toggle {
  display: none;
}

.vocabulary-course-details-inner {
  display: grid;
  gap: 10px;
}

.vocabulary-course-details-inner > .vocabulary-toolbar {
  justify-self: center;
}

.learning-hero-inner {
  width: min(100%, 1040px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(286px, 330px);
  gap: 16px;
  align-items: center;
}

.vocabulary-heading {
  min-height: 100%;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 4px 0;
}

.vocabulary-kicker {
  width: max-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0 10px;
  border: 1px solid rgba(255, 106, 0, 0.2);
  border-radius: 999px;
  background: #fff7f0;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 780;
}

.vocabulary-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.vocabulary-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.vocabulary-course-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}

.vocabulary-heading h1 {
  max-width: 620px;
  margin: 0;
  color: #18202a;
  font-size: clamp(1.62rem, 3vw, 2.08rem);
  line-height: 1.16;
  font-weight: 780;
  text-wrap: balance;
}

.vocabulary-change-course {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255, 106, 0, 0.28);
  border-radius: 999px;
  background: #fff7ed;
  color: var(--primary-dark);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 780;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.vocabulary-change-course[hidden] {
  display: none;
}

.vocabulary-change-course:hover,
.vocabulary-change-course:focus-visible {
  border-color: rgba(255, 106, 0, 0.44);
  background: #fff2e4;
  box-shadow: 0 10px 22px rgba(255, 106, 0, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.vocabulary-heading p:not(.vocabulary-kicker),
.vocabulary-meta-line p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 640;
}

.vocabulary-status {
  width: max-content;
  max-width: min(100%, 620px);
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-self: center;
  margin-top: 0;
  padding: 4px 10px;
  border: 1px solid rgba(101, 113, 127, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

.vocabulary-status[hidden] {
  display: none;
}

.vocabulary-status.is-success {
  border-color: rgba(60, 151, 92, 0.2);
  background: #eefaf2;
  color: #206a42;
}

.vocabulary-status.is-error {
  border-color: rgba(191, 87, 36, 0.22);
  background: #fff4ed;
  color: #9a4218;
}

.vocabulary-progress-card,
.vocabulary-study-area {
  border: 1px solid rgba(220, 231, 238, 0.9);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 56px rgba(42, 53, 66, 0.08);
}

.vocabulary-progress-card {
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 18px;
  border-radius: 20px;
}

.vocabulary-study-area .vocabulary-progress-card {
  box-shadow: none;
}

.vocabulary-current-progress span,
.vocabulary-summary > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.vocabulary-current-progress {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 0;
}

.vocabulary-current-progress strong {
  color: var(--primary-dark);
  font-size: 1.2rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.vocabulary-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f5;
}

.vocabulary-progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #ff9f3f);
  transition: width 220ms ease;
}

.vocabulary-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vocabulary-actions-row .button {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 0.9rem;
}

.vocabulary-motivation-feedback {
  position: fixed;
  top: 88px;
  right: 18px;
  bottom: auto;
  z-index: 70;
  width: min(360px, calc(100vw - 32px));
  display: grid;
  gap: 8px;
  padding: 13px 14px;
  border: 1px solid rgba(24, 134, 75, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 42px rgba(24, 31, 40, 0.14);
  color: var(--ink-soft);
  pointer-events: none;
}

.vocabulary-motivation-feedback[hidden] {
  display: none !important;
}

.vocabulary-motivation-feedback > strong {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.3;
}

.vocabulary-motivation-feedback-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vocabulary-motivation-feedback-metrics span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(220, 231, 238, 0.9);
  border-radius: 999px;
  background: #fbfcfd;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
}

.vocabulary-motivation-feedback-metrics span[hidden] {
  display: none !important;
}

.vocabulary-motivation-feedback-missions {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vocabulary-motivation-feedback-missions[hidden] {
  display: none !important;
}

.vocabulary-motivation-feedback-missions li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.vocabulary-motivation-feedback-missions span,
.vocabulary-motivation-feedback-missions strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.vocabulary-motivation-feedback-missions strong {
  flex: 0 0 auto;
  color: #206a42;
  font-weight: 780;
}

.vocabulary-study-area {
  width: min(100%, 740px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 0;
  justify-items: center;
  justify-self: center;
  border-radius: 26px;
  box-shadow:
    0 30px 80px rgba(42, 53, 66, 0.12),
    0 8px 24px rgba(255, 106, 0, 0.045);
}

.vocabulary-study-area > * {
  min-width: 0;
  max-width: 100%;
}

.vocabulary-toolbar {
  width: min(100%, 740px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
}

.vocabulary-mobile-quick-settings {
  display: contents;
}

.vocabulary-mobile-delay-label {
  display: none;
}

.vocabulary-audio-toolbar {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 10px 4px 14px;
  border: 1px solid rgba(220, 231, 238, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(42, 53, 66, 0.045);
}

.vocabulary-audio-toolbar > span {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 760;
}

.vocabulary-auto-advance-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.vocabulary-auto-advance-controls select {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(220, 231, 238, 0.94);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 720;
}

.vocabulary-auto-advance-controls select:focus-visible {
  border-color: rgba(255, 106, 0, 0.42);
  outline: 3px solid rgba(255, 106, 0, 0.1);
  outline-offset: 2px;
}

.vocabulary-mode-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.vocabulary-mode-switch button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(220, 231, 238, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 780;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.vocabulary-mode-switch button:hover,
.vocabulary-mode-switch button:focus-visible {
  border-color: rgba(255, 106, 0, 0.32);
  background: #fff8f2;
  color: var(--primary-dark);
  outline: none;
  transform: translateY(-1px);
}

.vocabulary-mode-switch button.is-active,
.vocabulary-mode-switch button.is-stats-active {
  border-color: rgba(255, 106, 0, 0.32);
  background: #fff4e8;
  color: var(--primary-dark);
  box-shadow: 0 10px 22px rgba(255, 106, 0, 0.07);
}

.vocabulary-mode-dock {
  width: min(100%, 740px);
  justify-self: center;
  gap: 8px;
  padding-top: 2px;
}

.vocabulary-footer-tools {
  width: 100%;
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.vocabulary-footer-tools[hidden],
.vocabulary-batch-control[hidden],
.is-guest-vocabulary [data-open-content-issue][hidden] {
  display: none !important;
}

.vocabulary-content-issue-entry {
  width: min(100%, 740px);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-self: center;
  justify-content: center;
  align-items: center;
}

.vocabulary-content-issue-entry button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(220, 231, 238, 0.96);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 760;
}

.vocabulary-content-issue-entry button:hover,
.vocabulary-content-issue-entry button:focus-visible {
  border-color: rgba(255, 106, 0, 0.38);
  color: var(--primary-dark);
  outline: 3px solid rgba(255, 106, 0, 0.1);
  outline-offset: 2px;
}

.vocabulary-content-issue-panel {
  width: min(100%, 620px);
  max-height: min(88dvh, 760px);
  overflow-y: auto;
}

.vocabulary-content-issue-current {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(220, 231, 238, 0.82);
}

.vocabulary-content-issue-current img {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 8px;
  object-fit: cover;
}

.vocabulary-content-issue-current div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.vocabulary-content-issue-current strong {
  color: var(--ink);
  font-size: 1.2rem;
}

.vocabulary-content-issue-current span,
.vocabulary-content-issue-intro {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.vocabulary-content-issue-panel form {
  display: grid;
  gap: 14px;
}

.vocabulary-content-issue-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.vocabulary-content-issue-option {
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(220, 231, 238, 0.96);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.86rem;
  line-height: 1.35;
}

.vocabulary-content-issue-option:has(input:checked) {
  border-color: rgba(255, 106, 0, 0.48);
  background: #fff8f2;
  color: var(--primary-dark);
}

.vocabulary-content-issue-option input {
  margin: 0;
  accent-color: var(--primary);
}

.vocabulary-content-issue-description {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 760;
}

.vocabulary-content-issue-description textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid rgba(220, 231, 238, 0.96);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
}

.vocabulary-content-issue-description textarea:focus {
  border-color: rgba(255, 106, 0, 0.48);
  outline: 3px solid rgba(255, 106, 0, 0.1);
}

.vocabulary-content-issue-status {
  min-height: 20px;
  margin: 0;
  color: #b43f36;
  font-size: 0.84rem;
}

.vocabulary-content-issue-submit {
  min-height: 44px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 820;
}

.vocabulary-content-issue-submit:disabled {
  cursor: wait;
  opacity: 0.6;
}

.vocabulary-issue-toast {
  position: fixed;
  z-index: 120;
  top: calc(env(safe-area-inset-top, 0px) + 76px);
  left: 50%;
  width: min(calc(100% - 24px), 460px);
  padding: 11px 14px;
  border: 1px solid rgba(134, 193, 148, 0.62);
  border-radius: 8px;
  background: #f2fbf4;
  color: #25653b;
  font-size: 0.88rem;
  font-weight: 760;
  text-align: center;
  transform: translateX(-50%);
  box-shadow: 0 12px 28px rgba(42, 53, 66, 0.12);
}

.vocabulary-mode-dock button {
  min-height: 38px;
  padding: 0 15px;
}

.vocabulary-nav-cluster {
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(112px, 1fr) auto minmax(112px, 1fr);
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border: 1px solid rgba(220, 231, 238, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(42, 53, 66, 0.045);
}

.vocabulary-toolbar [data-word-progress] {
  grid-column: 2;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.vocabulary-mini-button,
.vocabulary-batch-select {
  min-height: 36px;
  border: 1px solid rgba(220, 231, 238, 0.96);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 760;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.vocabulary-mini-button {
  padding: 0 14px;
}

.vocabulary-mini-button.is-audio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--primary-dark);
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
}

.vocabulary-mini-button:hover:not(:disabled),
.vocabulary-mini-button:focus-visible,
.vocabulary-batch-select:hover,
.vocabulary-batch-select:focus-visible,
.vocabulary-helper-row button:hover,
.vocabulary-helper-row button:focus-visible {
  border-color: rgba(255, 106, 0, 0.32);
  background: #fff8f2;
  color: var(--primary-dark);
  outline: none;
  transform: translateY(-1px);
}

.vocabulary-mini-button:disabled {
  cursor: not-allowed;
  opacity: 0.44;
}

.vocabulary-batch-control {
  display: inline-flex;
  align-items: center;
  grid-column: 3;
  justify-self: end;
  gap: 7px;
  min-height: 36px;
  padding: 0 10px 0 12px;
  border-left: 1px solid rgba(220, 231, 238, 0.82);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
  white-space: nowrap;
}

.vocabulary-batch-select {
  min-height: 32px;
  padding: 0 10px;
  background: #f8fafb;
  color: var(--ink-soft);
}

.vocabulary-word-card {
  position: relative;
  width: 100%;
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3.4vw, 32px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.vocabulary-word-card:focus-visible {
  outline: 3px solid rgba(255, 106, 0, 0.18);
  outline-offset: 4px;
}

.vocabulary-loading {
  min-height: 280px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 760;
}

.vocabulary-word-top {
  display: grid;
  gap: 7px;
  justify-items: center;
  text-align: center;
}

.vocabulary-visual-anchor {
  width: min(184px, 46vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
}

.vocabulary-visual-anchor img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.vocabulary-visual-anchor.is-placeholder img {
  filter: grayscale(0.35) saturate(0.65);
  opacity: 0.94;
}

.vocabulary-card-head {
  max-width: 100%;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.vocabulary-memory-pill {
  max-width: 100%;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.vocabulary-memory-pill {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(255, 106, 0, 0.18);
  border-radius: 999px;
  background: #fff8f2;
  color: var(--primary-dark);
  font-size: 0.82rem;
}

.vocabulary-mobile-card-context {
  display: none;
}

.vocabulary-current-mode-button {
  display: none;
}

.vocabulary-pronunciation {
  max-width: 100%;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.vocabulary-word {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  display: grid;
  justify-items: center;
}

.vocabulary-word strong {
  max-width: 100%;
  color: var(--ink);
  font-size: clamp(3.3rem, 9vw, 5.45rem);
  line-height: 0.98;
  font-weight: 830;
  overflow-wrap: anywhere;
}

.vocabulary-audio-button {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgba(255, 106, 0, 0.92);
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 14px 30px rgba(255, 106, 0, 0.22);
  color: #ffffff;
  cursor: pointer;
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.vocabulary-audio-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: currentColor;
  overflow: visible;
}

.vocabulary-audio-button .vocabulary-audio-icon {
  width: 26px;
  height: 26px;
}

.vocabulary-mini-button.is-audio .vocabulary-audio-icon {
  width: 18px;
  height: 18px;
}

.vocabulary-audio-icon-body {
  fill: currentColor;
}

.vocabulary-audio-icon-wave {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vocabulary-auto-audio-toggle {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(220, 231, 238, 0.94);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.vocabulary-auto-audio-toggle .vocabulary-audio-icon {
  width: 18px;
  height: 18px;
}

.vocabulary-auto-audio-toggle .vocabulary-auto-advance-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vocabulary-auto-audio-toggle:hover,
.vocabulary-auto-audio-toggle:focus-visible {
  border-color: rgba(255, 106, 0, 0.32);
  background: #fff8f2;
  color: var(--primary-dark);
  outline: none;
  transform: translateY(-1px);
}

.vocabulary-auto-audio-toggle.is-on {
  border-color: rgba(255, 106, 0, 0.3);
  background: #fff4e8;
  color: #c95000;
  box-shadow: 0 10px 20px rgba(255, 106, 0, 0.1);
}

.vocabulary-audio-button:hover,
.vocabulary-audio-button:focus-visible {
  background: var(--primary-dark);
  outline: none;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 18px 36px rgba(255, 106, 0, 0.28);
}

.vocabulary-audio-button:disabled,
.vocabulary-audio-button.is-cooling {
  border-color: #cbd2d9;
  background: #cbd2d9;
  color: #7b8792;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.78;
  transform: none;
  transition: none;
}

.vocabulary-audio-button:disabled:hover,
.vocabulary-audio-button:disabled:focus-visible {
  border-color: #cbd2d9;
  background: #cbd2d9;
  color: #7b8792;
  outline: none;
  transform: none;
  box-shadow: none;
}

.vocabulary-audio-button:active,
.vocabulary-mini-button:active,
.vocabulary-helper-row button:active,
.vocabulary-actions button:active {
  transform: translateY(1px) scale(0.99);
}

.vocabulary-phonetic {
  width: fit-content;
  max-width: min(100%, 360px);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 6px 18px 7px;
  border: 1px solid rgba(220, 231, 238, 0.9);
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: clamp(1.18rem, 2.4vw, 1.42rem);
  font-weight: 820;
  line-height: 1.22;
  text-align: center;
  overflow-wrap: anywhere;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.vocabulary-phonetic-row {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.vocabulary-phonetic:empty {
  display: none;
}

.vocabulary-meaning,
.vocabulary-meaning-details {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(220, 231, 238, 0.72);
  border-radius: 18px;
  background: #f5f7f9;
  color: var(--ink-soft);
  line-height: 1.58;
  text-align: center;
}

.vocabulary-meaning-details {
  gap: 8px;
  padding: 14px 16px;
  border-style: dashed;
  background: #fffaf6;
  text-align: left;
}

.vocabulary-meaning-clarification-title {
  display: block;
  color: #1d2731;
}

.vocabulary-meaning-details[hidden],
.vocabulary-examples[hidden] {
  display: none;
}

.vocabulary-meaning-details .vocabulary-meaning-line,
.vocabulary-meaning-details .vocabulary-meaning-senses {
  justify-content: flex-start;
}

.vocabulary-meaning-line {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 14px;
}

.vocabulary-meaning-senses {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 16px;
}

.vocabulary-meaning-sense {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  white-space: normal;
}

.vocabulary-meaning .vocabulary-pos-label,
.vocabulary-meaning-details .vocabulary-pos-label {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(238, 116, 28, 0.22);
  background: rgba(255, 245, 235, 0.92);
  color: #b55217;
  font-size: 0.78rem;
  font-weight: 680;
  line-height: 1;
}

.vocabulary-meaning strong,
.vocabulary-meaning-details strong {
  color: #1d2731;
  font-size: 1.15rem;
  line-height: 1.45;
}

.vocabulary-meaning span,
.vocabulary-meaning-details span {
  color: var(--muted);
}

.vocabulary-related-words {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.vocabulary-related-word {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.vocabulary-related-word-category {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 22px;
  padding: 0 9px;
  border: 1px solid rgba(238, 116, 28, 0.24);
  border-radius: 999px;
  background: rgba(255, 245, 235, 0.94);
  color: #b55217 !important;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
}

.vocabulary-related-word-text {
  overflow-wrap: anywhere;
}

.vocabulary-helper-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding-top: 2px;
}

.vocabulary-helper-row button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(220, 231, 238, 0.96);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 780;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.vocabulary-helper-row button[aria-expanded="true"] {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 7px 18px rgba(238, 116, 28, 0.22);
}

.vocabulary-examples {
  border: 1px solid rgba(220, 231, 238, 0.76);
  border-radius: 18px;
  background: #fbfcfd;
}

.vocabulary-examples {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-style: dashed;
  background: #fffaf6;
  text-align: left;
}

.vocabulary-examples[hidden] {
  display: none;
}

.vocabulary-example {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 10px 44px 0 12px;
  padding-right: 44px;
  border-top: 1px solid rgba(220, 231, 238, 0.76);
  border-left: 3px solid rgba(255, 106, 0, 0.18);
  color: var(--ink-soft);
  line-height: 1.55;
}

.vocabulary-example:first-child,
.vocabulary-examples > .vocabulary-example:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.vocabulary-example span {
  color: #1f2937;
  font-size: 1rem;
  font-weight: 780;
}

.vocabulary-example em {
  color: #788391;
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.5;
}

.vocabulary-example .vocabulary-mini-button {
  position: absolute;
  right: 0;
  top: 10px;
  min-width: 34px;
  width: 34px;
  min-height: 34px;
  padding: 0;
}

.vocabulary-example:first-child .vocabulary-mini-button {
  top: 0;
}

.vocabulary-word-card.is-spelling-mode {
  gap: 18px;
  padding-top: clamp(66px, 8vw, 78px);
}

.vocabulary-word-card.is-flashcard-mode {
  padding-top: clamp(66px, 8vw, 78px);
}

.vocabulary-spelling-practice {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.vocabulary-image-recall {
  position: relative;
  width: min(100%, 620px);
  display: grid;
  justify-items: center;
  gap: 16px;
  margin: 0 auto;
  padding: clamp(66px, 8vw, 78px) clamp(18px, 3vw, 30px) clamp(18px, 3vw, 30px);
  border: 1px solid rgba(220, 231, 238, 0.9);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
}

.vocabulary-image-recall-head {
  text-align: center;
}

.vocabulary-image-recall-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.04rem, 2.8vw, 1.26rem);
  line-height: 1.35;
}

.vocabulary-image-recall-visual .vocabulary-visual-anchor {
  width: min(100%, 280px);
  margin: 0 auto;
}

.vocabulary-image-recall-visual {
  display: grid;
  justify-items: center;
  width: 100%;
}

.vocabulary-image-recall-visual .vocabulary-visual-anchor img {
  aspect-ratio: 1;
  object-fit: contain;
}

.vocabulary-image-recall-meaning {
  margin: 0;
  color: var(--ink);
  font-size: 1.16rem;
  font-weight: 800;
  text-align: center;
}

.vocabulary-image-recall-cue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.vocabulary-image-recall-cue .vocabulary-audio-button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.vocabulary-image-recall[data-image-recall] .vocabulary-image-recall-head h2 {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.vocabulary-image-recall-status {
  min-height: 1.4em;
  color: var(--muted);
  font-size: 0.94rem;
  text-align: center;
}

.vocabulary-image-recall-status p {
  margin: 0;
}

.vocabulary-image-recall-actions {
  width: min(100%, 420px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vocabulary-image-recall-actions button:only-child {
  grid-column: 1 / -1;
}

.vocabulary-image-recall-next-action {
  width: min(100%, 420px);
  display: flex;
  justify-content: center;
}

.vocabulary-image-recall-next {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px 0 18px;
  border: 1px solid rgba(255, 106, 0, 0.32);
  border-radius: 999px;
  background: #fffaf6;
  color: var(--primary-dark);
  font: inherit;
  font-weight: 780;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(197, 89, 12, 0.1);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.vocabulary-image-recall-next-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease;
}

.vocabulary-image-recall-next:hover,
.vocabulary-image-recall-next:focus-visible {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(197, 89, 12, 0.18);
}

.vocabulary-image-recall-next:hover .vocabulary-image-recall-next-icon,
.vocabulary-image-recall-next:focus-visible .vocabulary-image-recall-next-icon {
  background: #ffffff;
  color: var(--primary-dark);
  transform: translateX(2px);
}

.vocabulary-image-recall-next:active {
  transform: translateY(1px) scale(0.99);
}

.vocabulary-image-recall-mode-slot,
.vocabulary-card-mode-slot {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 720;
  z-index: 1;
}

.vocabulary-image-recall-mode-slot .vocabulary-learning-mode-control,
.vocabulary-card-mode-slot .vocabulary-learning-mode-control {
  margin-left: 0;
}

.vocabulary-image-recall-actions button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(220, 231, 238, 0.94);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink-soft);
  font-weight: 760;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.vocabulary-image-recall-option {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(220, 231, 238, 0.94);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  font-weight: 760;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.vocabulary-image-recall-option:hover:not(:disabled),
.vocabulary-image-recall-option:focus-visible {
  border-color: rgba(255, 106, 0, 0.45);
  background: #fff8f2;
  color: var(--primary-dark);
  outline: none;
  transform: translateY(-1px);
}

.vocabulary-image-recall-option:disabled {
  cursor: default;
  opacity: 1;
}

.vocabulary-image-recall-option.is-correct {
  border-color: #167942;
  background: #d5f1de;
  color: #075f32;
  box-shadow: 0 6px 14px rgba(10, 108, 56, 0.12);
}

.vocabulary-image-recall-option.is-incorrect {
  border-color: rgba(190, 77, 54, 0.58);
  background: #fff0ed;
  color: #a44935;
}

.vocabulary-image-recall-option-icon {
  font-size: 1.08em;
  font-weight: 900;
  line-height: 1;
}

.vocabulary-image-recall-option-word {
  flex: 0 0 auto;
}

.vocabulary-image-recall-option-meaning {
  min-width: 0;
  overflow: hidden;
  color: currentColor;
  font-size: 0.86em;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vocabulary-image-recall-option-meaning::before {
  content: "·";
  margin-right: 6px;
  opacity: 0.72;
}

.vocabulary-image-recall-actions button.is-primary {
  border-color: rgba(255, 106, 0, 0.32);
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(197, 89, 12, 0.18);
}

.vocabulary-image-recall-actions button:hover:not(:disabled),
.vocabulary-image-recall-actions button:focus-visible {
  border-color: rgba(255, 106, 0, 0.42);
  background: #fff8f2;
  color: var(--primary-dark);
  outline: none;
  transform: translateY(-1px);
}

.vocabulary-image-recall-actions button.is-primary:hover:not(:disabled),
.vocabulary-image-recall-actions button.is-primary:focus-visible {
  background: var(--primary-dark);
  color: #ffffff;
}

.vocabulary-image-recall-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.vocabulary-image-recall-actions .vocabulary-image-recall-option:disabled {
  opacity: 1;
}

.vocabulary-image-recall.is-unavailable {
  min-height: 260px;
  align-content: center;
}

.vocabulary-comprehensive-test {
  width: min(100%, 620px);
  display: grid;
  justify-items: center;
  gap: 18px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid rgba(220, 231, 238, 0.92);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  text-align: center;
}

.vocabulary-comprehensive-test > span,
.vocabulary-comprehensive-test-head > span {
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.vocabulary-comprehensive-test h2,
.vocabulary-comprehensive-test p {
  margin: 0;
}

.vocabulary-comprehensive-test.is-setup label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-weight: 760;
}

.vocabulary-comprehensive-test select,
.vocabulary-comprehensive-test input {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(220, 231, 238, 0.94);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.vocabulary-comprehensive-test > small {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.6;
}

.vocabulary-comprehensive-test > button.is-primary,
.vocabulary-comprehensive-test button.is-primary {
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid rgba(255, 106, 0, 0.3);
  border-radius: 12px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(197, 89, 12, 0.18);
}

.vocabulary-comprehensive-test-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.vocabulary-comprehensive-test-image {
  width: min(100%, 280px);
  aspect-ratio: 1;
  object-fit: contain;
}

.vocabulary-comprehensive-test-options,
.vocabulary-comprehensive-test-image-options {
  width: min(100%, 480px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vocabulary-comprehensive-test-options button,
.vocabulary-comprehensive-test-image-options button {
  min-height: 48px;
  padding: 10px;
  border: 1px solid rgba(220, 231, 238, 0.94);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.vocabulary-comprehensive-test-image-options button {
  display: grid;
  place-items: center;
}

.vocabulary-comprehensive-test-image-options .vocabulary-comprehensive-test-image {
  width: 100%;
  max-width: 150px;
}

.vocabulary-comprehensive-test-score {
  display: grid;
  gap: 4px;
}

.vocabulary-comprehensive-test-score strong {
  color: var(--primary-dark);
  font-size: clamp(2.8rem, 8vw, 4.4rem);
  line-height: 1;
}

.vocabulary-comprehensive-test dl {
  width: min(100%, 430px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.vocabulary-comprehensive-test dl div,
.vocabulary-comprehensive-test-breakdown span {
  padding: 11px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.88);
}

.vocabulary-comprehensive-test dt {
  color: var(--muted);
  font-size: 0.76rem;
}

.vocabulary-comprehensive-test dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.vocabulary-comprehensive-test-breakdown {
  width: min(100%, 430px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 520px) {
  .vocabulary-comprehensive-test {
    padding: 22px 16px;
    border-radius: 18px;
  }

  .vocabulary-comprehensive-test dl,
  .vocabulary-comprehensive-test-breakdown {
    grid-template-columns: 1fr;
  }
}

.vocabulary-spelling-prompt {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.76rem, 2.4vw, 0.9rem);
  font-weight: 700;
  line-height: 1.4;
}

.vocabulary-spelling-cue {
  width: min(100%, 560px);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(220, 231, 238, 0.9);
  border-radius: 16px;
  background: #fbfcfd;
  text-align: center;
}

.vocabulary-word-card.is-spelling-mode:focus-visible {
  outline: 3px solid #ffffff !important;
  outline-offset: 4px;
}

.vocabulary-spelling-cue .vocabulary-visual-anchor {
  width: min(132px, 40vw);
  margin: 0 auto;
}

.vocabulary-spelling-cue-content {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.vocabulary-spelling-translation {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 780;
  line-height: 1.45;
}

.vocabulary-spelling-input-zone {
  position: relative;
  width: min(100%, 560px);
  display: block;
  cursor: text;
}

.vocabulary-spelling-letter-row {
  width: min(100%, var(--spelling-letter-row-width-desktop, 100%));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(var(--spelling-letter-count, 10), minmax(0, 1fr));
  gap: clamp(4px, 1.4vw, 10px);
}

.vocabulary-spelling-letter {
  min-width: 0;
  min-height: clamp(40px, 9vw, 54px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-bottom: 2px solid rgba(116, 158, 125, 0.54);
  border-radius: 0;
  background: transparent;
  color: transparent;
  font-size: clamp(1.05rem, 4.2vw, 1.42rem);
  font-weight: 840;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: lowercase;
}

.vocabulary-spelling-letter.is-empty {
  background: transparent;
  color: transparent;
}

.vocabulary-spelling-letter.is-correct {
  border-bottom-color: #18864b;
  background: transparent;
  color: #18864b;
}

.vocabulary-spelling-letter.is-flashing-hint {
  animation: vocabulary-spelling-hint-flash 400ms ease-in-out 3;
}

@keyframes vocabulary-spelling-hint-flash {
  0%, 100% {
    opacity: 0.35;
  }

  50% {
    opacity: 1;
  }
}

.vocabulary-spelling-letter.is-wrong {
  border-bottom-color: #b4232f;
  background: transparent;
  color: #b4232f;
}

.vocabulary-spelling-keyboard {
  width: min(100%, 560px);
  display: grid;
  gap: 6px;
}

.vocabulary-spelling-keyboard-row {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 5px;
}

.vocabulary-spelling-keyboard.is-character-candidates {
  gap: 9px;
}

.vocabulary-spelling-character-row {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.vocabulary-spelling-keyboard.is-character-candidates button {
  min-height: 48px;
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 1.2rem;
  text-transform: none;
}

.vocabulary-spelling-keyboard button {
  min-height: 38px;
  padding: 0;
  border: 1px solid rgba(220, 231, 238, 0.98);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Roboto", "Noto Sans", sans-serif;
  font-size: 1rem;
  font-weight: 720;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.vocabulary-spelling-keyboard button:hover,
.vocabulary-spelling-keyboard button:focus-visible {
  border-color: rgba(255, 106, 0, 0.46);
  background: #fff8f2;
  color: var(--primary-dark);
  outline: none;
  transform: translateY(-1px);
}

.vocabulary-spelling-keyboard button:active {
  transform: translateY(1px) scale(0.97);
}

.vocabulary-spelling-submit-actions {
  width: min(100%, 560px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) 56px 56px minmax(130px, 1fr);
  gap: 10px;
}

.vocabulary-spelling-submit-actions.is-character-candidates {
  grid-template-columns: repeat(2, minmax(0, 1fr)) 56px minmax(130px, 1fr);
}

.vocabulary-spelling-symbol,
.vocabulary-spelling-skip,
.vocabulary-spelling-hint,
.vocabulary-spelling-delete,
.vocabulary-spelling-confirm {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(220, 231, 238, 0.98);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: none;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 820;
}

.vocabulary-spelling-skip {
  color: var(--ink-soft);
}

.vocabulary-spelling-hint {
  color: var(--ink-soft);
}

.vocabulary-spelling-hint:disabled {
  cursor: default;
  opacity: 0.56;
}

.vocabulary-spelling-delete {
  font-size: 1.25rem;
  font-weight: 820;
}

.vocabulary-spelling-symbol {
  border: 1px solid rgba(220, 231, 238, 0.98);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 820;
}

.vocabulary-spelling-symbol:hover,
.vocabulary-spelling-symbol:focus-visible,
.vocabulary-spelling-delete:hover,
.vocabulary-spelling-delete:focus-visible,
.vocabulary-spelling-skip:hover,
.vocabulary-spelling-skip:focus-visible,
.vocabulary-spelling-hint:hover,
.vocabulary-spelling-hint:focus-visible {
  border-color: rgba(163, 177, 190, 0.8);
  background: #f8fafc;
  outline: none;
  transform: translateY(-1px);
}

.vocabulary-spelling-confirm {
  border-color: rgba(255, 106, 0, 0.32);
  background: var(--primary);
  box-shadow: 0 12px 26px rgba(255, 106, 0, 0.18);
  color: #ffffff;
}

.vocabulary-spelling-confirm:hover,
.vocabulary-spelling-confirm:focus-visible {
  background: var(--primary-dark);
  outline: none;
  transform: translateY(-1px);
}

.vocabulary-spelling-result {
  width: min(100%, 560px);
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(220, 231, 238, 0.86);
  border-radius: 16px;
  background: #fbfcfd;
}

.vocabulary-spelling-result.is-correct {
  border-color: rgba(24, 134, 75, 0.24);
  background: #f0faf4;
  color: #206a42;
}

.vocabulary-spelling-result.is-wrong {
  border-color: rgba(190, 54, 54, 0.2);
  background: #fff7f7;
  color: #9f1f2c;
}

.vocabulary-spelling-result > strong {
  font-size: 1rem;
  line-height: 1.35;
}

.vocabulary-spelling-answer,
.vocabulary-spelling-answer-block strong {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 850;
}

.vocabulary-spelling-answer-block {
  display: grid;
  gap: 4px;
}

.vocabulary-spelling-answer-block span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.vocabulary-spelling-actions {
  width: min(100%, 560px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.vocabulary-spelling-actions button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(220, 231, 238, 0.94);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 780;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.vocabulary-spelling-actions button:hover:not(:disabled),
.vocabulary-spelling-actions button:focus-visible {
  border-color: rgba(255, 106, 0, 0.32);
  background: #fff8f2;
  color: var(--primary-dark);
  outline: none;
  transform: translateY(-1px);
}

.vocabulary-spelling-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.vocabulary-spelling-actions .is-text {
  min-height: auto;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
  text-decoration: underline;
}

.vocabulary-spelling-actions .is-text:hover,
.vocabulary-spelling-actions .is-text:focus-visible {
  border: 0;
  background: transparent;
  color: var(--ink);
}

@media (max-width: 620px) {
  .vocabulary-lesson-menu {
    position: fixed;
    inset: 0;
    z-index: 120;
  }

  .vocabulary-lesson-menu[hidden] {
    display: none;
  }

  .vocabulary-lesson-menu-backdrop {
    position: absolute;
    inset: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .vocabulary-lesson-options {
    position: fixed;
    top: var(--lesson-menu-top, 72px);
    left: var(--lesson-menu-left, 12px);
    z-index: 1;
    width: var(--lesson-menu-width, calc(100vw - 24px));
    max-height: var(--lesson-menu-max-height, calc(100dvh - 156px));
    display: grid;
    gap: 1px;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 4px;
    border: 1px solid rgba(220, 231, 238, 0.96);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(24, 31, 40, 0.16);
  }

  .vocabulary-lesson-options button {
    min-height: 36px;
    padding: 5px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink-soft);
    font: inherit;
    font-size: 0.84rem;
    line-height: 1.2;
    font-weight: 720;
    text-align: left;
    cursor: pointer;
  }

  .vocabulary-lesson-options button:hover,
  .vocabulary-lesson-options button:focus-visible {
    background: #fff8f2;
    color: var(--primary-dark);
    outline: none;
  }

  .vocabulary-lesson-options button.is-current {
    background: #fff3e8;
    color: var(--primary-dark);
  }

  .vocabulary-card-head {
    width: 100%;
    display: block;
  }

  .vocabulary-memory-pill {
    display: none;
  }

  .vocabulary-mobile-card-context {
    width: min(100%, 360px);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: stretch;
    gap: 8px;
  }

  .vocabulary-card-context-item {
    min-width: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 9px;
    border: 1px solid rgba(255, 106, 0, 0.18);
    border-radius: 12px;
    background: #fff8f2;
    color: var(--primary-dark);
    font: inherit;
    font-size: 0.76rem;
    line-height: 1.2;
    font-weight: 760;
    text-align: left;
  }

  button.vocabulary-card-context-item {
    width: 100%;
    cursor: pointer;
  }

  button.vocabulary-card-context-item:focus-visible {
    border-color: rgba(255, 106, 0, 0.48);
    outline: 3px solid rgba(255, 106, 0, 0.12);
    outline-offset: 2px;
  }

  .vocabulary-card-context-item > span:not(.vocabulary-card-context-chevron) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .vocabulary-card-context-item.is-course > span:not(.vocabulary-card-context-chevron) {
    white-space: nowrap;
  }

  .vocabulary-card-context-item.is-status > span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .vocabulary-card-context-item.is-status {
    justify-content: flex-end;
    padding-right: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: right;
  }

  .vocabulary-card-context-item.is-status .vocabulary-card-context-icon {
    display: none;
  }

  .vocabulary-card-context-item.is-status > span {
    display: none;
  }

  .vocabulary-card-context-item.is-status .vocabulary-current-mode-button {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid rgba(194, 92, 22, 0.22);
    border-radius: 999px;
    background: rgba(255, 250, 246, 0.94);
    color: #ff6a00;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 760;
    white-space: nowrap;
    cursor: pointer;
  }

  .vocabulary-card-context-item.is-status .vocabulary-current-mode-button:focus-visible {
    border-color: rgba(194, 92, 22, 0.42);
    outline: 3px solid rgba(194, 92, 22, 0.12);
    outline-offset: 2px;
  }

  .vocabulary-card-context-item.is-status .vocabulary-current-mode-button svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
  }

  .vocabulary-card-context-icon {
    width: 18px;
    height: 18px;
    display: block;
    flex: 0 0 18px;
  }

  .vocabulary-card-context-chevron {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    margin-left: auto;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
  }

  .vocabulary-spelling-letter-row {
    width: min(100%, var(--spelling-letter-row-width-mobile, 100%));
    gap: clamp(2px, 1.1vw, 6px);
  }

  .vocabulary-spelling-letter {
    min-height: clamp(38px, 9vw, 48px);
    font-size: clamp(1.08rem, 4.3vw, 1.36rem);
    font-weight: 860;
    letter-spacing: 0.02em;
  }

  .vocabulary-spelling-keyboard {
    /* Only the letter keyboard reaches the word-card edge; the other spelling areas stay inset. */
    width: calc(100% + 40px);
    max-width: none;
    min-width: 0;
    position: relative;
    left: -20px;
    justify-self: start;
    margin: 0;
    gap: 6px;
  }

  .vocabulary-spelling-keyboard-row {
    gap: 3px;
  }

  .vocabulary-spelling-keyboard button {
    min-height: 48px;
    border-radius: 12px;
    font-size: 1.24rem;
    font-weight: 720;
    padding-inline: 0;
    letter-spacing: 0.02em;
  }

  .vocabulary-spelling-keyboard.is-character-candidates button {
    min-height: 52px;
    font-size: 1.3rem;
  }

  .vocabulary-spelling-submit-actions {
    width: 100%;
    gap: 7px;
  }

  .vocabulary-spelling-result {
    gap: 14px;
    padding: 16px 14px;
  }

  .vocabulary-spelling-actions .is-primary {
    min-width: min(100%, 180px);
    min-height: 54px;
    padding: 0 28px;
    border-radius: 16px;
    font-size: 1.05rem;
  }

  .vocabulary-spelling-submit-actions {
    grid-template-columns: minmax(58px, 1fr) minmax(58px, 1fr) 40px 40px minmax(86px, 1.3fr);
    gap: 6px;
  }

  .vocabulary-spelling-submit-actions.is-character-candidates {
    grid-template-columns: minmax(58px, 1fr) minmax(58px, 1fr) 40px minmax(86px, 1.3fr);
  }

  .vocabulary-spelling-skip,
  .vocabulary-spelling-hint {
    white-space: nowrap;
  }

  .vocabulary-spelling-symbol,
  .vocabulary-spelling-hint,
  .vocabulary-spelling-delete,
  .vocabulary-spelling-confirm {
    min-height: 44px;
    padding: 0 8px;
    border-radius: 12px;
    font-size: 0.88rem;
  }

  .vocabulary-spelling-symbol,
  .vocabulary-spelling-delete {
    padding: 0;
    font-size: 1.08rem;
  }

  .vocabulary-spelling-cue {
    padding: 12px;
  }

}
