:root {
  --ec-bg: #f6f7f9;
  --ec-card: #ffffff;
  --ec-text: #17181a;
  --ec-muted: #666b73;
  --ec-border: #e2e5e9;
  --ec-accent: #17181a;
  --ec-soft: #eef0f3;
  --ec-good: #147a42;
  --ec-warn: #9a5b00;
}
.ec-shell { max-width: 760px; margin: 28px auto; padding: 0 14px 48px; color: var(--ec-text); font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.ec-card { background: var(--ec-card); border: 1px solid var(--ec-border); border-radius: 18px; padding: 20px; margin: 0 0 14px; box-shadow: 0 3px 16px rgba(0,0,0,.035); }
.ec-card h1,.ec-card h2,.ec-card h3 { margin-top: 0; line-height: 1.15; }
.ec-card h1 { font-size: clamp(1.7rem, 8vw, 2.35rem); }
.ec-card h2 { font-size: 1.45rem; }
.ec-eyebrow { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ec-muted); margin-bottom: 8px; }
.ec-muted { color: var(--ec-muted); font-size: .93rem; }
.ec-streak,.ec-time { color: var(--ec-muted); margin-top: 8px; }
.ec-btn { appearance:none; border:1px solid var(--ec-accent); border-radius:12px; padding:13px 16px; font-weight:800; text-decoration:none; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:48px; box-sizing:border-box; }
.ec-btn-primary { background: var(--ec-accent); color:#fff !important; }
.ec-btn-secondary { background:#fff; color:var(--ec-text) !important; }
.ec-btn:disabled { opacity:.38; cursor:not-allowed; }
.ec-btn-block { width:100%; margin-top:12px; }
.ec-success-note { margin-top:10px; color:var(--ec-good); font-weight:700; }
.ec-progress { width:100%; height:9px; background:var(--ec-soft); border-radius:999px; overflow:hidden; margin:8px 0 18px; }
.ec-progress span { display:block; height:100%; background:var(--ec-accent); border-radius:999px; transition:width .25s ease; }
.ec-metric-row { display:flex; justify-content:space-between; gap:16px; padding:10px 0; border-bottom:1px solid var(--ec-border); }
.ec-good { color:var(--ec-good); }
.ec-warn { color:var(--ec-warn); }
.ec-back { display:inline-block; color:var(--ec-muted); text-decoration:none; margin-bottom:16px; }
.ec-step-label { font-size:.85rem; color:var(--ec-muted); margin-top:12px; }
.ec-checklist { padding-left:20px; }
.ec-checklist li { margin:7px 0; }
.ec-audio-line { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--ec-border); }
.ec-audio-line audio { width:150px; max-width:45%; }
.ec-practice-box,.ec-pattern-box,.ec-mission-box,.ec-challenge-card { background:var(--ec-bg); border:1px solid var(--ec-border); border-radius:14px; padding:16px; margin:14px 0; }
.ec-help,.ec-transcript { margin-top:12px; background:#fff; border:1px solid var(--ec-border); border-radius:12px; padding:10px 12px; }
.ec-help summary,.ec-transcript summary { cursor:pointer; font-weight:700; }
.ec-quiz { padding:14px 0; border-bottom:1px solid var(--ec-border); }
.ec-quiz label { display:block; padding:8px 0; }
.ec-feedback { min-height:24px; margin-top:6px; font-weight:700; }
.ec-input,.ec-prompt { width:100%; box-sizing:border-box; border:1px solid #cfd4da; border-radius:10px; padding:12px; margin:8px 0; font:inherit; }
.ec-prompt { min-height:190px; }
.ec-text-check .ec-btn { margin-top:4px; }
.ec-language-pair { display:flex; flex-direction:column; gap:3px; padding:12px 0; border-bottom:1px solid var(--ec-border); }
.ec-ai-links { display:grid; grid-template-columns:1fr 1fr 1fr; gap:8px; margin:12px 0; }
.ec-confirm { display:block; font-weight:700; margin:15px 0; }
.ec-backup-list label { display:grid; grid-template-columns:1fr auto; gap:10px; align-items:center; padding:10px 0; border-bottom:1px solid var(--ec-border); }
.ec-backup-list audio { width:100%; }
.ec-local-recorder,.ec-upload-recorder { margin-top:12px; }
.ec-local-playback,.ec-upload-playback { width:100%; margin-top:10px; }
.ec-recorder-fallback { display:block; margin-top:10px; font-size:.85rem; color:var(--ec-muted); }
.ec-upload-actions { display:flex; flex-direction:column; gap:8px; margin-top:10px; }
.ec-upload-status { min-height:24px; font-weight:700; margin-top:8px; }
.ec-recording-time { margin-top:10px; font-weight:800; }
.ec-countdown { font-size:2rem; font-weight:900; text-align:center; margin-top:12px; }
.ec-step-actions { margin-top:22px; padding-top:14px; border-top:1px solid var(--ec-border); }
.ec-big-check { width:64px; height:64px; border-radius:50%; display:grid; place-items:center; background:var(--ec-text); color:#fff; font-size:2rem; font-weight:900; margin-bottom:16px; }
.ec-complete-grid { display:grid; grid-template-columns:1fr; gap:8px; margin:14px 0; }
.ec-complete-grid > div { background:var(--ec-bg); border-radius:10px; padding:12px; display:flex; justify-content:space-between; }
@media (min-width: 640px) {
  .ec-shell { padding-left:20px; padding-right:20px; }
  .ec-card { padding:26px; }
  .ec-complete-grid { grid-template-columns:repeat(3,1fr); }
  .ec-upload-actions { flex-direction:row; }
}
@media (max-width: 540px) {
  .ec-ai-links { grid-template-columns:1fr; }
  .ec-audio-line { align-items:flex-start; flex-direction:column; }
  .ec-audio-line audio { width:100%; max-width:100%; }
}

.ec-brand-footer {
  margin: 18px 4px 28px;
  text-align: center;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .55;
}
