/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #4F46E5;
  --primary-dark: #4338CA;
  --primary-light: #EEF2FF;
  --success: #059669;
  --success-light: #D1FAE5;
  --warning: #D97706;
  --warning-light: #FEF3C7;
  --danger: #DC2626;
  --danger-light: #FEE2E2;
  --text-dark: #1F2937;
  --text-medium: #374151;
  --text-light: #6B7280;
  --text-xlight: #9CA3AF;
  --border: #E5E7EB;
  --bg: #F9FAFB;
  --bg-card: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 24px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.04);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 48px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
}

.card-header {
  background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%);
  padding: 32px 28px 28px;
  text-align: center;
}

.card-header .icon { font-size: 40px; margin-bottom: 10px; display: block; }

.card-header h1 {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.card-header p {
  color: rgba(255,255,255,0.78);
  font-size: 13px;
}

.card-body { padding: 28px; }

/* ── Typography ── */
.section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-light);
  margin-bottom: 14px;
}

/* ── Form ── */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-medium);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-dark);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.form-input::placeholder { color: var(--text-xlight); }

/* Education level radio cards */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.edu-card {
  position: relative;
  cursor: pointer;
}

.edu-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.edu-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: all var(--transition);
  text-align: center;
  cursor: pointer;
}

.edu-label .edu-icon { font-size: 28px; }

.edu-label .edu-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.edu-label .edu-sub {
  font-size: 11px;
  color: var(--text-light);
}

.edu-card input:checked + .edu-label {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.edu-card input:checked + .edu-label .edu-title { color: var(--primary); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  width: 100%;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.btn-secondary {
  background: var(--bg);
  color: var(--text-medium);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--border);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover:not(:disabled) {
  background: #B91C1C;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-success:hover:not(:disabled) {
  background: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

/* ── Alert ── */
.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 18px;
}

.alert-error { background: var(--danger-light); color: #991B1B; }
.alert-warning { background: var(--warning-light); color: #92400E; }
.alert-success { background: var(--success-light); color: #065F46; }
.alert-info { background: var(--primary-light); color: #3730A3; }
.alert .alert-icon { flex-shrink: 0; font-size: 15px; }

/* ── Record button ── */
.record-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 28px 0;
}

.record-btn {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  transition: all 0.25s ease;
  position: relative;
  flex-shrink: 0;
}

.record-btn-idle {
  background: var(--primary);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.record-btn-idle:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 28px rgba(79, 70, 229, 0.5);
}

.record-btn-recording {
  background: var(--danger);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
  animation: pulse-rec 1.5s ease-in-out infinite;
}

@keyframes pulse-rec {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 18px rgba(220, 38, 38, 0);
  }
}

.record-btn-done {
  background: var(--success);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

/* ── Timer ── */
.timer-display {
  font-size: 42px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
  transition: color var(--transition);
}

.timer-idle { color: var(--text-xlight); }
.timer-warning { color: var(--warning); }
.timer-ok { color: var(--success); }
.timer-max { color: var(--danger); }

.timer-label {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  margin-top: -10px;
}

/* ── Progress bar (recording) ── */
.rec-progress-wrap {
  width: 100%;
  padding: 0 4px;
}

.rec-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-xlight);
  margin-bottom: 4px;
}

.rec-progress-track {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.rec-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--text-xlight);
  transition: width 0.5s linear, background 0.5s ease;
  width: 0%;
}

/* ── Question card ── */
.question-card {
  background: var(--primary-light);
  border: 1.5px solid rgba(79, 70, 229, 0.2);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.question-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.question-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.55;
}

/* ── Instruction list ── */
.instruction-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.instruction-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-medium);
}

.instruction-list li .icon { flex-shrink: 0; font-size: 15px; }

/* ── Score grid ── */
.score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.score-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.score-card-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.score-card-value {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.score-card-bar {
  height: 5px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.score-card-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Overall score hero ── */
.overall-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  margin-bottom: 20px;
  color: #fff;
}

.overall-hero .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 8px;
}

.overall-hero .score-num {
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2px;
}

.overall-hero .score-denom {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 14px;
}

.level-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 7px 24px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
}

/* ── Feedback accordion ── */
.feedback-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 8px;
}

.feedback-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  cursor: pointer;
  background: #fff;
  transition: background var(--transition);
  user-select: none;
}

.feedback-header:hover { background: var(--bg); }

.feedback-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feedback-header-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.feedback-score-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.feedback-chevron {
  font-size: 12px;
  color: var(--text-light);
  transition: transform var(--transition);
}

.feedback-body {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.feedback-body.open {
  padding: 0 16px 14px;
  max-height: 300px;
}

.feedback-body p {
  font-size: 13px;
  color: var(--text-medium);
  line-height: 1.65;
  margin: 0;
}

/* ── Transcript block ── */
.transcript-block {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-medium);
  line-height: 1.7;
  font-style: italic;
  border-left: 3px solid var(--primary);
}

/* ── Action buttons row ── */
.action-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.action-row .btn { flex: 1; }

/* ── Loading spinner ── */
.spinner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 0;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.spinner-text {
  font-size: 14px;
  color: var(--text-light);
  text-align: center;
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* ── Chip / badge ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}

.badge-success { background: var(--success-light); color: #065F46; }
.badge-warning { background: var(--warning-light); color: #92400E; }
.badge-danger  { background: var(--danger-light);  color: #991B1B; }
.badge-primary { background: var(--primary-light); color: #3730A3; }

/* ── Utilities ── */
.text-center { text-align: center; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.text-light { color: var(--text-light); }
.mt-4 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }
.gap-10 { gap: 10px; }
.w-full { width: 100%; }

/* ── API Key input wrapper ── */
.api-key-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.api-key-wrap .form-input {
  padding-right: 44px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.api-key-toggle {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  opacity: 0.6;
  transition: opacity var(--transition);
  line-height: 1;
}

.api-key-toggle:hover { opacity: 1; }

.form-hint {
  font-size: 11.5px;
  color: var(--text-xlight);
  margin-top: 6px;
  line-height: 1.55;
}

.form-hint a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.form-hint a:hover { text-decoration: underline; }

/* ── Modal overlay ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 25, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeInOverlay 0.2s ease;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: slideUpModal 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes slideUpModal {
  from { transform: translateY(24px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0) scale(1);       opacity: 1; }
}

.modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border);
}

.modal-body { padding: 20px 24px 4px; }

.modal-footer {
  padding: 16px 24px 24px;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ── T&C checkbox items ── */
.tnc-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  user-select: none;
}

.tnc-item:last-child { margin-bottom: 0; }

.tnc-item.checked {
  border-color: var(--success);
  background: var(--success-light);
}

.tnc-item input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--success);
  cursor: pointer;
}

.tnc-item-text {
  font-size: 13px;
  color: var(--text-medium);
  line-height: 1.6;
}

.tnc-item-num {
  display: block;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3px;
}

/* ── Stepper ── */
.stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  margin-bottom: 20px;
  padding: 0 4px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  min-width: 0;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 13px;
  left: calc(50% + 14px);
  right: calc(-50% + 14px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step-item.done::after  { background: var(--success); }
.step-item.active::after { background: var(--border); }

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-xlight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  z-index: 1;
  position: relative;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}

.step-item.done   .step-dot { background: var(--success); color: #fff; }
.step-item.active .step-dot { background: var(--primary); color: #fff; box-shadow: 0 0 0 4px var(--primary-light); }

.step-label {
  font-size: 9.5px;
  color: var(--text-xlight);
  margin-top: 5px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  max-width: 56px;
  text-overflow: ellipsis;
}

.step-item.active .step-label { color: var(--primary); font-weight: 700; }
.step-item.done   .step-label { color: var(--success); }

/* ── Countdown timer ── */
.countdown-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 0 8px;
}

.countdown-ring-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.countdown-ring-wrap svg {
  transform: rotate(-90deg);
}

.countdown-ring-bg  { fill: none; stroke: var(--border); stroke-width: 8; }
.countdown-ring-arc {
  fill: none;
  stroke: var(--success);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.9s linear, stroke 0.4s ease;
}

.countdown-num-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.countdown-num {
  font-size: 34px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--text-dark);
  transition: color var(--transition);
}

.countdown-sub {
  font-size: 10px;
  color: var(--text-xlight);
  font-weight: 500;
}

.countdown-label {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  min-height: 18px;
  transition: color var(--transition);
}

/* ── Thank-you / step pages ── */
.check-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--success-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  margin: 0 auto 16px;
}

.next-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.next-step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-medium);
}

.next-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── API key highlight box ── */
.byok-info {
  background: var(--primary-light);
  border: 1.5px solid rgba(79,70,229,0.2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.byok-info-icon { font-size: 22px; flex-shrink: 0; }

.byok-info-text { font-size: 13px; color: #3730A3; line-height: 1.6; }
.byok-info-text strong { color: var(--primary); }

/* ── CEFR Badge ── */
.cefr-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px 5px 10px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 13px;
}
.cefr-A1 { background:#FEE2E2;color:#991B1B; }
.cefr-A2 { background:#FEF3C7;color:#92400E; }
.cefr-B1 { background:#D1FAE5;color:#065F46; }
.cefr-B2 { background:#DBEAFE;color:#1E40AF; }
.cefr-C1 { background:#EDE9FE;color:#5B21B6; }
.cefr-C2 { background:#F3F4F6;color:#1F2937; }

/* ── Rich-analysis table ── */
.analysis-table {
  width: 100%;
  border-collapse: collapse;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 13px;
  margin-bottom: 0;
}

.analysis-table th {
  background: var(--primary);
  color: #fff;
  padding: 9px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.analysis-table td {
  padding: 9px 12px;
  vertical-align: top;
  line-height: 1.55;
}

.analysis-table tr:nth-child(even) td { background: var(--bg); }
.analysis-table tr:nth-child(odd)  td { background: var(--bg-card); }

.error-original  { color: var(--danger);  font-style: italic; }
.error-corrected { color: var(--success); font-weight: 700; }
.error-rule      { color: var(--text-xlight); font-size: 11px; }
.pron-word       { color: var(--primary); font-weight: 700; }
.pron-phonetic   { font-family: 'Courier New', monospace; color: var(--text-medium); }
.pron-tip        { color: var(--text-light); font-size: 12px; }
.vocab-basic     { display:inline-block;background:var(--warning-light);color:var(--warning);padding:2px 8px;border-radius:var(--radius-full);font-weight:700;font-size:12px; }
.vocab-arrow     { color: var(--text-xlight); font-size: 14px; }
.vocab-better    { color: var(--success); font-weight: 600; }

/* ── Strength tag ── */
.strength-tag {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 12px;
  background: var(--success-light);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #065F46;
  margin-bottom: 6px;
}
.strength-tag .icon { flex-shrink: 0; }

/* ── Improvement plan step ── */
.plan-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.plan-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-step-text {
  font-size: 13px;
  color: #3730A3;
  line-height: 1.6;
}

/* ── Filler words chips ── */
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip {
  padding: 3px 10px;
  background: var(--warning-light);
  color: var(--warning);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

/* ── Impressive words ── */
.chip-success {
  background: var(--success-light);
  color: var(--success);
}

/* ── Responsive ── */
@media (max-width: 400px) {
  .card-body { padding: 20px; }
  .card-header { padding: 24px 20px 20px; }
  .score-grid { grid-template-columns: 1fr; }
  .countdown-ring-wrap { width: 120px; height: 120px; }
  .countdown-num { font-size: 28px; }
  .record-btn { width: 80px; height: 80px; font-size: 32px; }
  .step-label { font-size: 8.5px; max-width: 44px; }
}
