.live-app {
  background: var(--paper);
}
.live-app > .app {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  width: min(100%, 480px);
  margin: auto;
  min-height: 100svh;
  overflow: visible;
}
.live-app .app-content {
  padding-top: max(24px, env(safe-area-inset-top));
}
.live-app .bottom-nav {
  position: sticky;
  bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 2;
  margin-top: 16px;
  box-shadow: 0 4px 24px #20272308;
}
.live-app .app-title {
  font-size: 30px;
  line-height: 36px;
}
.live-app .app-header {
  margin-bottom: 24px;
}
.live-app .question-space {
  min-height: 320px;
}
.live-app .word-picture {
  height: 180px;
}
.live-app .word-copy strong {
  overflow-wrap: anywhere;
}
.live-app .answer-heading h1,
.live-app .question-space h1 {
  overflow-wrap: anywhere;
}
.live-app .study-actions {
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}
.app-notice {
  margin: 16px 24px 0;
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 20px;
  background: var(--sage);
  color: var(--green);
  overflow-wrap: anywhere;
}
.app-notice.is-error {
  background: #fbefe7;
  color: #813c20;
}
.app-notice button {
  border: 0;
  background: transparent;
  padding: 8px 0;
  min-height: 40px;
  color: inherit;
  display: block;
}
.backup-reminder {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-top: 24px;
  font-size: 14px;
  line-height: 20px;
}
.backup-reminder p {
  color: var(--muted);
  margin-top: 8px;
}
.backup-reminder button {
  margin-top: 8px;
}
.deck-list {
  display: grid;
  gap: 8px;
}
.bank-select {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}
.bank-select select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px 12px;
  min-height: 48px;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  line-height: 24px;
}
.word-list {
  margin-top: 8px;
}
.detail-state {
  white-space: pre-line;
}
.live-app .example p,
.live-app .intro-copy,
.live-app .data-panel p {
  white-space: pre-line;
}
.file-links {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.file-links a {
  color: var(--blue);
  font-size: 14px;
  line-height: 20px;
  min-height: 48px;
  padding: 12px 0;
}
.install-guide {
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  margin-top: 24px;
}
.install-guide summary {
  cursor: pointer;
  color: var(--ink);
  min-height: 48px;
  padding: 12px 0;
  font-weight: 600;
}
.install-guide ol {
  padding-left: 24px;
  margin: 8px 0 16px;
}
.install-guide li {
  margin-top: 12px;
}
.install-guide p {
  margin-top: 12px;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  font-size: 14px;
  line-height: 20px;
}
.consent input {
  width: 24px;
  height: 24px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--blue);
}
.changes-list {
  font-size: 14px;
  line-height: 20px;
  padding-left: 24px;
  margin: 16px 0;
  overflow-wrap: anywhere;
}
.changes-list li {
  margin-top: 8px;
}
.save-state {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  padding-top: 12px;
}
.study-time {
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
  text-align: center;
  margin-top: 16px;
}
.progress-label {
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
  margin-top: 16px;
}
.local-status {
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
  margin-top: 16px;
}
.word-row > .icon-button,
.live-app .filter,
.live-app .text-link {
  min-height: 48px;
}
@media (min-width: 700px) {
  .live-app {
    background: #eef0ed;
    padding: 24px 0;
  }
  .live-app > .app {
    min-height: calc(100svh - 48px);
    border: 1px solid var(--line);
    border-radius: 24px;
  }
}
@media (max-width: 360px) {
  .live-app .app-content {
    padding-left: 16px;
    padding-right: 16px;
  }
  .live-app .word-picture {
    height: 160px;
  }
}

/* Duotone icons share one local geometry set across all screens. */
.live-app .icon {
  flex-shrink: 0;
}
.live-app .nav-item .icon {
  width: 24px;
  height: 24px;
}
.live-app .nav-item {
  gap: 4px;
}
.live-app .question-symbol .icon {
  width: 32px;
  height: 32px;
}
.live-app .question-space {
  min-height: 280px;
  padding: 32px 0 40px;
}
.live-app .question-space h1 {
  font-size: 30px;
  line-height: 36px;
}
.exercise-question {
  padding: 32px 0 24px;
}
.exercise-kind {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.exercise-kind .icon {
  width: 20px;
  height: 20px;
}
.exercise-question h1 {
  margin: 16px 0 8px;
  font-size: 30px;
  line-height: 36px;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.exercise-question p {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  text-wrap: pretty;
}
.choice-options {
  display: grid;
  gap: 12px;
}
.choice-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  text-align: left;
}
.choice-option > [lang] {
  flex: 1;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.choice-option > .icon {
  width: 20px;
  height: 20px;
  color: var(--muted);
}
.choice-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}
.choice-option:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
}
.spelling-board {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  background: var(--surface);
}
.letter-answer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 96px;
  padding: 8px 0;
}
.letter-slot {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  padding: 4px;
  flex-shrink: 0;
}
.letter-slot.is-empty {
  background: #f1f2ee;
  border-style: dashed;
}
.letter-slot.has-accent {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
}
.letter-space {
  width: 12px;
  height: 48px;
}
.letter-punctuation {
  font-size: 24px;
  line-height: 32px;
}
.letter-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 16px;
}
.letter-tools .icon-button {
  background: var(--paper);
}
.letter-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 16px 8px;
  border-radius: 8px;
  background: var(--blue-soft);
}
.letter-tile {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 48px;
  height: 48px;
  border: 1px solid #ccd5f0;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 0 #ccd5f0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  padding: 8px;
}
.letter-tile:hover:not(:disabled) {
  color: var(--blue);
  border-color: var(--blue);
}
.letter-tile:disabled {
  opacity: 0.3;
  box-shadow: none;
}
.exercise-feedback {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 20px;
}
.exercise-feedback strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  line-height: 24px;
}
.exercise-feedback p {
  overflow-wrap: anywhere;
}
.exercise-feedback.is-correct {
  background: var(--sage);
  color: #315539;
}
.exercise-feedback.is-incorrect {
  background: #fbefe7;
  color: #813c20;
}

.accent-panel {
  padding: 16px;
  background: var(--blue-soft);
  border-radius: 8px;
}
.accent-panel h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 28px;
}
.accent-panel p {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}
.accent-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.accent-option {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 64px;
  min-height: 64px;
  padding: 8px 12px;
  border: 1px solid #c2cdec;
  border-radius: 8px;
  background: var(--surface);
}
.accent-option > span {
  font-size: 30px;
  line-height: 36px;
  font-weight: 600;
}
.accent-option > small {
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
.accent-option:hover {
  border-color: var(--blue);
}
.accent-option.is-selected {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.accent-option.is-selected small {
  color: #fff;
}
.accent-panel .accent-status {
  color: var(--blue);
  font-weight: 600;
}
