:root {
  --green: #8ed462;
  --green-soft: #e7f0dc;
  --green-quiet: #edf4e6;
  --ink: #263824;
  --muted: #6d7768;
  --paper: #f8f7f2;
  --white: #fffefb;
  --line: #e3e7dc;
  --error: #a44938;
  --error-bg: #f8eee9;
  --success: #3f6330;
  --radius: 28px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 280px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
  cursor: pointer;
}
button {
  border: 0;
}
button:disabled {
  cursor: default;
  opacity: 0.42;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #507f38;
  outline-offset: 4px;
}
button:active:not(:disabled) {
  transform: scale(0.98);
}
svg {
  display: block;
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
svg path {
  vector-effect: non-scaling-stroke;
}
[hidden] {
  display: none !important;
}
.app-shell {
  max-width: 1000px;
  margin: auto;
  padding: 0 40px;
}
.topbar {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 2px;
}
.brand-mark {
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  background: var(--green);
  border-radius: 15px;
}
.brand-mark svg {
  width: 26px;
  height: 26px;
}
.brand-en {
  font-size: 9px;
  letter-spacing: 2.5px;
  margin-left: 12px;
  font-weight: 500;
  color: var(--muted);
}
.top-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.icon-button {
  min-width: 44px;
  height: 44px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  font-size: 28px;
}
.icon-button:hover {
  background: #e9ede2;
}
.offline-status {
  font-size: 11px;
  color: var(--muted);
}
main {
  max-width: 620px;
  margin: auto;
  padding: 40px 0 136px;
  outline: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.35;
}
h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 18px;
  font-weight: 600;
}
.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 10px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}
.intro p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.day-stamp {
  border-left: 1px solid var(--line);
  padding-left: 26px;
  text-align: center;
  min-width: 94px;
  margin-left: 15px;
}
.day-stamp span {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}
.day-stamp strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 39px;
  font-weight: 400;
  line-height: 1.1;
  margin-top: 5px;
}
.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.3px;
}
.progress-row strong {
  color: var(--ink);
  font-weight: 600;
}
.progress-track {
  height: 3px;
  border-radius: 10px;
  background: #e4e8dc;
  overflow: hidden;
  margin-bottom: 22px;
}
.progress-track span {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 10px;
  transition: width 0.25s var(--ease);
}
.word-card {
  position: relative;
  overflow: hidden;
  background: var(--green-soft);
  border: 1px solid #dce7d1;
  border-radius: var(--radius);
  padding: 28px 34px 27px;
  min-height: 365px;
  animation: arrive 0.2s var(--ease);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 500;
  background: #d8e9c9;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.card-counter {
  font-size: 11px;
  letter-spacing: 1px;
  color: #62735a;
  font-variant-numeric: tabular-nums;
}
.word {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 7vw, 54px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -1.5px;
  overflow-wrap: anywhere;
  color: #263d22;
}
.phonetic-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 11px;
  min-height: 33px;
}
.phonetic {
  font-family: Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.3px;
  color: #64765b;
  overflow-wrap: anywhere;
}
.accent-label {
  font-size: 9px;
  margin-right: 5px;
  letter-spacing: 0.5px;
}
.audio-button {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #d7e8c7;
}
.audio-button svg {
  height: 17px;
  width: 17px;
  stroke-width: 1.6;
}
.audio-button:hover {
  background: #cadfba;
}
.audio-button.playing {
  background: var(--green);
}
.meanings {
  display: grid;
  gap: 10px;
  margin-top: 21px;
}
.meaning {
  display: flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1.7;
}
.pos {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 13px;
  color: #637757;
  white-space: nowrap;
  min-width: 26px;
}
.meaning-text {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.example {
  border-top: 1px solid #cfddc2;
  margin-top: 24px;
  padding-top: 19px;
}
.example-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}
.example-head span {
  font-size: 9px;
  color: #708265;
  letter-spacing: 1px;
}
.example-head .audio-button {
  width: 30px;
  min-width: 30px;
  height: 30px;
  background: transparent;
}
.example-en {
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: 0.1px;
  color: #3b5032;
  overflow-wrap: anywhere;
}
.example-cn {
  font-size: 12px;
  color: #6b7b60;
  line-height: 1.8;
  margin-top: 5px;
}
.word-nav {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 13px 22px;
  background: var(--green);
  border-radius: 17px;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: 0.3px;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover {
  background: #83c957;
}
.button svg {
  width: 18px;
  height: 18px;
}
.button.secondary {
  background: #eaf0e2;
}
.button.secondary:hover {
  background: #e0ead5;
}
.button.ghost {
  background: transparent;
  border: 1px solid var(--line);
}
.button.ghost:hover {
  background: #eff1e8;
}
.word-nav .button {
  flex: 1;
}
.button.full {
  width: 100%;
}
.below-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}
.text-button {
  background: transparent;
  padding: 8px 0;
  min-height: 44px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #506b3d;
}
.text-button svg {
  width: 14px;
  height: 14px;
}
.quiet-note {
  color: #8a9283;
  font-size: 10px;
  text-align: center;
  letter-spacing: 1px;
  margin-top: 29px;
  line-height: 1.7;
}
.bottom-nav {
  z-index: 10;
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 360px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border: 1px solid #e5e9df;
  background: rgba(255, 254, 251, 0.96);
  box-shadow: 0 5px 28px #26382408;
  border-radius: 24px;
  padding: 6px 17px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 85px;
  height: 60px;
  border-radius: 17px;
  background: transparent;
  color: #838c7a;
  font-size: 10px;
  letter-spacing: 1px;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.65;
}
.nav-item.active {
  color: #355629;
  background: #e8f2de;
}
.nav-icon {
  position: relative;
}
.nav-icon i {
  position: absolute;
  right: -5px;
  top: -2px;
  width: 6px;
  height: 6px;
  background: #b97652;
  border-radius: 50%;
  border: 1px solid var(--white);
}
.section-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 31px 30px;
}
.ritual-icon {
  width: 62px;
  height: 62px;
  border-radius: 22px;
  background: var(--green-quiet);
  display: grid;
  place-items: center;
  margin-bottom: 25px;
  color: #557644;
}
.ritual-icon svg {
  width: 29px;
  height: 29px;
}
.section-card > p,
.empty-state p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 11px;
}
.round-steps {
  margin: 26px 0;
  display: grid;
  gap: 19px;
}
.round-step {
  display: flex;
  align-items: center;
  gap: 13px;
}
.round-step > span {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 15px;
}
.round-step strong {
  font-size: 13px;
  font-weight: 500;
}
.round-step p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}
.section-footnote {
  font-size: 10px !important;
  color: #8b9384 !important;
  line-height: 1.8 !important;
  text-align: center;
  margin-top: 17px !important;
}
.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.quiz-header .text-button {
  padding: 0;
  min-height: 30px;
}
.quiz-meta {
  font-size: 11px;
  color: var(--muted);
}
.quiz-card {
  background: var(--green-soft);
  border: 1px solid #dce7d1;
  border-radius: var(--radius);
  padding: 30px 34px;
  min-height: 214px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: arrive 0.2s var(--ease);
}
.quiz-card .eyebrow {
  margin-bottom: 24px;
  font-size: 9px;
}
.quiz-card .word {
  font-size: 46px;
}
.quiz-meaning {
  font-size: 26px;
  line-height: 1.6;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.quiz-meaning .pos {
  display: inline-block;
  font-size: 14px;
  margin-right: 10px;
}
.answer-area {
  margin-top: 25px;
}
.answer-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.answer-input {
  display: block;
  background: var(--white);
  border: 1px solid #dce2d4;
  border-radius: 17px;
  min-height: 58px;
  width: 100%;
  padding: 16px 18px;
  color: var(--ink);
  font-size: 16px;
  transition: border-color 0.15s;
  outline-offset: 2px;
  resize: vertical;
  line-height: 1.5;
}
.answer-input::placeholder {
  color: #9ca493;
  font-size: 13px;
}
.answer-input:focus {
  border-color: #77aa53;
}
.answer-input[readonly] {
  color: #66705e;
  background: #f1f2eb;
}
.answer-area > .button {
  margin-top: 14px;
}
.feedback {
  margin-top: 15px;
  padding: 16px 18px;
  border-radius: 17px;
  line-height: 1.8;
  background: #e7f0dc;
  border: 1px solid #d7e5cb;
  animation: arrive 0.18s var(--ease);
}
.feedback.wrong {
  background: var(--error-bg);
  border-color: #efdbd2;
  color: #744a3c;
}
.feedback-title {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.feedback-title svg {
  height: 17px;
  width: 17px;
}
.feedback p {
  font-size: 12px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.feedback small {
  display: block;
  font-size: 10px;
  color: #887767;
  margin-top: 5px;
}
.feedback .text-button {
  font-size: 10px;
  min-height: 34px;
  color: #865c43;
}
.round-chip {
  font-size: 10px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #66725c;
}
.score {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 22px 0 10px;
}
.score strong {
  font-family: Georgia, serif;
  font-size: 62px;
  font-weight: 400;
  letter-spacing: -2px;
}
.score span {
  font-size: 14px;
  color: var(--muted);
}
.stat-line {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.8;
}
.button-stack {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.tabs-switch {
  display: flex;
  background: #eaece3;
  border-radius: 15px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 24px;
}
.tabs-switch button {
  flex: 1;
  min-height: 42px;
  border-radius: 11px;
  background: transparent;
  font-size: 12px;
  color: var(--muted);
}
.tabs-switch button.active {
  background: var(--white);
  box-shadow: 0 2px 5px #26382405;
  color: var(--ink);
  font-weight: 550;
}
.count {
  font-size: 10px;
  margin-left: 5px;
  opacity: 0.75;
}
.empty-state {
  padding: 44px 24px 42px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.empty-state .ritual-icon {
  margin: 0 auto 21px;
}
.empty-state h2 {
  font-size: 21px;
}
.empty-state .button {
  margin-top: 25px;
}
.archive-list {
  display: grid;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 21px;
  overflow: hidden;
}
.archive-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 21px;
  border-bottom: 1px solid var(--line);
}
.archive-row:last-child {
  border-bottom: 0;
}
.archive-word {
  font-family: Georgia, serif;
  font-size: 23px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.archive-cn {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 3px;
}
.archive-meta {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #8a9283;
  font-size: 9px;
  margin-top: 6px;
  line-height: 1.6;
}
.archive-meta .pending-label {
  color: #a27648;
}
.archive-detail {
  flex: 1;
  min-width: 0;
}
.archive-row .audio-button {
  width: 42px;
  height: 42px;
  background: var(--green-quiet);
}
.error-intro {
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.error-intro p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.search-input {
  margin-bottom: 16px;
  min-height: 48px;
  font-size: 14px;
}
.error-actions {
  display: flex;
  gap: 10px;
  margin: 18px 0;
}
.error-actions .button {
  flex: 1;
  min-height: 47px;
  padding: 12px;
  font-size: 12px;
}
.carry-note {
  font-size: 10px;
  color: #8a9283;
  margin: 16px 0;
  line-height: 1.8;
}
.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.review-top p {
  font-size: 12px;
  color: var(--muted);
}
.review-actions {
  display: flex;
  gap: 10px;
  margin-top: 17px;
}
.review-actions .button {
  flex: 1;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 120px;
  transform: translate(-50%, 12px);
  background: #2c3c27;
  color: #fffefb;
  border-radius: 15px;
  padding: 13px 20px;
  font-size: 12px;
  line-height: 1.7;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  max-width: min(90vw, 440px);
  transition:
    opacity 0.18s,
    transform 0.18s;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  color: var(--ink);
  background: var(--paper);
  width: min(520px, calc(100vw - 28px));
  max-height: 85dvh;
  overflow: auto;
  box-shadow: 0 25px 90px #26382418;
}
dialog::backdrop {
  background: #2638244a;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 12px;
}
.dialog-head h2 {
  font-size: 23px;
}
.dialog-head .eyebrow {
  font-size: 9px;
  margin-bottom: 4px;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.setting-row label {
  font-size: 13px;
}
.setting-row select {
  padding: 9px 10px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 10px;
  font-size: 12px;
  min-height: 42px;
  max-width: 220px;
}
.settings-section {
  margin-top: 25px;
}
.settings-section h3 {
  font-size: 13px;
  margin-bottom: 10px;
}
.settings-section p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
}
.settings-section .button {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 12px;
}
.backup-buttons {
  display: flex;
  gap: 10px;
  margin: 12px 0;
}
.settings-details {
  border-top: 1px solid var(--line);
  margin-top: 23px;
  padding-top: 17px;
}
.settings-details summary {
  font-size: 12px;
  cursor: pointer;
  padding: 8px 0;
  min-height: 40px;
}
.settings-details p,
.settings-details a {
  font-size: 10px;
  line-height: 1.9;
  color: var(--muted);
}
.settings-details p {
  margin: 8px 0;
}
.settings-details a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.storage-alert {
  padding: 12px 15px;
  background: var(--error-bg);
  color: #864c3b;
  font-size: 11px;
  line-height: 1.8;
  border-radius: 13px;
  margin-bottom: 15px;
}
.loading-state {
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1s ease infinite;
}
.milestone {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  color: #60764f;
  margin-top: 12px;
}
.milestone svg {
  width: 13px;
  height: 13px;
}
.view-all-link {
  display: block;
  width: 100%;
  margin-top: 15px;
  min-height: 44px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}
.archive-summary {
  font-size: 10px;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.8;
}
.keyboard-hint {
  display: none;
}
@keyframes arrive {
  from {
    opacity: 0.65;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}
@media (min-width: 900px) {
  .keyboard-hint {
    display: inline;
  }
  .word-card {
    padding: 30px 38px;
    min-height: 376px;
  }
  main {
    padding-top: 41px;
  }
  .quiet-note {
    margin-top: 25px;
  }
}
@media (max-width: 600px) {
  .app-shell {
    padding: 0 22px;
  }
  .topbar {
    height: 80px;
    border-bottom: 0;
  }
  .brand {
    font-size: 18px;
    gap: 9px;
  }
  .brand-mark {
    height: 35px;
    width: 35px;
    border-radius: 12px;
  }
  .brand-mark svg {
    width: 23px;
    height: 23px;
  }
  .brand-en {
    font-size: 8px;
    letter-spacing: 2px;
    margin-left: 8px;
  }
  .top-actions {
    gap: 3px;
  }
  .offline-status {
    font-size: 9px;
  }
  main {
    padding-top: 17px;
    padding-bottom: 125px;
  }
  h1 {
    font-size: 27px;
    letter-spacing: -0.7px;
  }
  .intro {
    margin-bottom: 23px;
  }
  .intro p {
    font-size: 12px;
    margin-top: 7px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.8px;
    margin-bottom: 8px;
  }
  .day-stamp {
    padding-left: 17px;
    min-width: 66px;
  }
  .day-stamp strong {
    font-size: 33px;
  }
  .day-stamp span {
    font-size: 8px;
  }
  .progress-track {
    margin-bottom: 17px;
  }
  .word-card {
    padding: 23px 23px 22px;
    min-height: 350px;
    border-radius: 25px;
  }
  .card-top {
    margin-bottom: 27px;
  }
  .word {
    font-size: 43px;
    letter-spacing: -1.4px;
  }
  .card-counter {
    font-size: 10px;
  }
  .meaning-text {
    font-size: 15px;
  }
  .meanings {
    margin-top: 18px;
    gap: 6px;
  }
  .example {
    margin-top: 24px;
    padding-top: 16px;
  }
  .example-en {
    font-size: 14px;
    line-height: 1.8;
  }
  .example-cn {
    font-size: 11px;
    line-height: 1.85;
  }
  .phonetic {
    font-size: 12px;
  }
  .word-nav {
    gap: 10px;
    margin-top: 13px;
  }
  .button {
    min-height: 51px;
    border-radius: 16px;
    padding: 12px 18px;
    font-size: 13px;
  }
  .below-card {
    margin-top: 10px;
    font-size: 10px;
  }
  .quiet-note {
    font-size: 9px;
    margin-top: 14px;
  }
  .bottom-nav {
    bottom: 0;
    width: 100%;
    height: calc(76px + env(safe-area-inset-bottom));
    padding: 6px 25px calc(7px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    border-left: 0;
    border-right: 0;
  }
  .nav-item {
    min-width: 80px;
    height: 56px;
    font-size: 10px;
    gap: 5px;
  }
  .nav-item.active {
    background: transparent;
  }
  .nav-item.active svg {
    stroke-width: 2;
  }
  .nav-item.active:after {
    content: "";
    width: 4px;
    height: 4px;
    background: #648e45;
    border-radius: 50%;
    position: absolute;
    bottom: calc(6px + env(safe-area-inset-bottom));
  }
  .toast {
    bottom: calc(94px + env(safe-area-inset-bottom));
  }
  .section-card {
    padding: 27px 24px;
    border-radius: 25px;
  }
  .quiz-card {
    padding: 26px 25px;
    min-height: 210px;
    border-radius: 25px;
  }
  .quiz-card .word {
    font-size: 40px;
  }
  .quiz-meaning {
    font-size: 23px;
  }
  .answer-area {
    margin-top: 23px;
  }
  .quiz-card .eyebrow {
    margin-bottom: 20px;
  }
  .tabs-switch {
    margin-bottom: 22px;
  }
  .archive-row {
    padding: 17px 18px;
  }
  .archive-word {
    font-size: 22px;
  }
  .archive-cn {
    font-size: 11px;
  }
  .error-actions .button {
    font-size: 11px;
    padding: 11px;
  }
  .error-actions {
    gap: 8px;
  }
  .settings-section p {
    font-size: 11px;
  }
  .setting-row {
    gap: 12px;
  }
  .setting-row select {
    max-width: 190px;
  }
  .score strong {
    font-size: 58px;
  }
  .offline-status {
    max-width: 80px;
  }
  .review-actions {
    gap: 8px;
  }
  .review-actions .button {
    padding: 12px 10px;
    font-size: 12px;
  }
  dialog {
    padding: 24px;
  }
  .keyboard-hint {
    display: none;
  }
}
@media (max-width: 350px) {
  .app-shell {
    padding: 0 16px;
  }
  .brand-en {
    display: none;
  }
  .word-card {
    padding: 21px 20px;
  }
  .word {
    font-size: 37px;
  }
  .quiz-meaning {
    font-size: 21px;
  }
  .card-top {
    margin-bottom: 23px;
  }
  .below-card {
    gap: 5px;
  }
  .day-stamp {
    margin-left: 8px;
  }
  .setting-row select {
    max-width: 165px;
  }
  .error-actions {
    flex-direction: column;
  }
  .error-actions .button {
    flex: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Comfortable touch targets without extra visual weight. */
.audio-button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: transparent;
  position: relative;
  isolation: isolate;
}
.audio-button::before {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  background: #d7e8c7;
  border-radius: 50%;
  z-index: -1;
}
.audio-button:hover {
  background: transparent;
}
.audio-button:hover::before {
  background: #cadfba;
}
.audio-button.playing {
  background: transparent;
}
.audio-button.playing::before {
  background: var(--green);
}
.example-head .audio-button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  margin: -7px -7px -7px 0;
}
.example-head .audio-button::before {
  background: transparent;
}
.archive-row .audio-button {
  width: 44px;
  height: 44px;
  background: transparent;
}
.archive-row .audio-button::before {
  width: 40px;
  height: 40px;
  background: var(--green-quiet);
}
@media (max-width: 600px) {
  .intro h1 {
    font-size: clamp(21px, 5.7vw, 26px);
    letter-spacing: -0.6px;
  }
  .intro p {
    max-width: 250px;
  }
  .phonetic-row {
    margin-top: 7px;
  }
  .card-top {
    margin-bottom: 20px;
  }
  .word-card {
    padding-top: 22px;
  }
  .meanings {
    margin-top: 15px;
  }
}
/* Verified text contrast on cream and pale green surfaces. */
:root {
  --muted: #626f5c;
}
.card-counter,
.phonetic,
.pos,
.example-head span,
.example-cn {
  color: #536848;
}
.quiet-note,
.archive-meta,
.carry-note,
.section-footnote {
  color: #626f5c;
}
.section-footnote {
  color: #626f5c !important;
}
.nav-item {
  color: #626f5c;
}
.count {
  opacity: 1;
}
.archive-meta .pending-label {
  color: #87582b;
}
.answer-input::placeholder {
  color: #69725f;
}
.feedback small {
  color: #735c4b;
}
.feedback .text-button {
  min-height: 44px;
}
.quiz-header .text-button {
  min-height: 44px;
}
.tabs-switch button {
  color: #58664f;
}
.tabs-switch button.active {
  color: var(--ink);
}
