.word-list { list-style: none; }
.word-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  margin: 8px 0;
}
.word-row { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.word-row .meaning { color: var(--muted); flex: 1; font-size: 14px; }
.stage-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e0e7ff;
  color: var(--primary);
}
.stage-badge.stage-5 { background: #dcfce7; color: var(--green); }
.word-actions { margin-top: 8px; display: flex; gap: 8px; }
.word-actions button {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
}

.practice-word { font-size: 28px; font-weight: 700; text-align: center; margin: 16px 0; }
.practice-word .meaning { font-size: 18px; font-weight: 400; color: var(--muted); }
.practice-count { text-align: center; font-size: 18px; margin: 12px 0; color: var(--green); }
.flash { height: 8px; border-radius: 4px; transition: background 0.2s; }
.flash.show { background: var(--green); }

.review-meaning { font-size: 32px; text-align: center; margin: 24px 0; font-weight: 700; }
.feedback { text-align: center; font-size: 18px; margin: 12px 0; min-height: 28px; }
.feedback .correct { color: var(--green); }
.feedback .wrong { color: var(--red); }
.progress { text-align: center; color: var(--muted); font-size: 13px; }
.text-btn { background: none; border: none; color: var(--muted); cursor: pointer; margin-top: 12px; }

.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty p { margin-bottom: 16px; }
.finish { text-align: center; padding: 48px 16px; }
.finish h2 { margin-bottom: 16px; }
.finish p { margin: 8px 0; font-size: 18px; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 8px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.stat-num { font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 4px; }

.heatmap { display: grid; grid-template-columns: repeat(18, 1fr); gap: 3px; margin: 8px 0 24px; }
.heat-cell { aspect-ratio: 1; border-radius: 3px; background: #e2e8f0; }
.heat-cell.level-1 { background: #c7d2fe; }
.heat-cell.level-2 { background: #a5b4fc; }
.heat-cell.level-3 { background: #818cf8; }
.heat-cell.level-4 { background: #4f46e5; }

.dist-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 13px; }
.dist-label { width: 60px; color: var(--muted); }
.dist-bar { height: 16px; background: var(--primary); border-radius: 4px; min-width: 2px; }
.dist-count { color: var(--muted); }
.distribution { margin-bottom: 16px; }
.speak-btn {
  display: inline-block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  margin: 8px 0;
}

#toast {
  position: fixed;
  bottom: 80px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e293b;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s;
  z-index: 1000;
  max-width: 90%;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-retry {
  margin-left: 12px;
  background: #fff;
  color: #1e293b;
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
}
