.lv-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.lv-app {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 18px 64px;
}

.lv-topbar {
  position: sticky;
  top: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.lv-home {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  text-decoration: none;
}

.lv-heading { min-width: 0; }
.lv-heading h1 {
  margin: 1px 0 0;
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lv-kicker,
.lv-eyebrow {
  margin: 0;
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.lv-back,
.lv-text-btn {
  border: 0;
  background: transparent;
  color: #0f766e;
  font-weight: 700;
  cursor: pointer;
}
.lv-back { margin-left: auto; }

.lv-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 20px;
  padding: 28px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 10%, rgba(255,255,255,.2), transparent 32%),
    linear-gradient(135deg, #0f766e, #115e59);
  box-shadow: 0 18px 42px rgba(15, 118, 110, .2);
}

.lv-hero .lv-eyebrow { color: #99f6e4; }
.lv-hero h2 {
  margin: 7px 0 10px;
  font-size: clamp(1.65rem, 5vw, 2.45rem);
  line-height: 1.12;
}
.lv-description {
  max-width: 690px;
  margin: 0;
  color: #ccfbf1;
  line-height: 1.6;
}

.lv-stat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  background: rgba(255,255,255,.12);
}
.lv-stat-card strong { font-size: 2.25rem; }
.lv-stat-card span { margin: 4px 0 12px; color: #ccfbf1; font-size: .84rem; }
.lv-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,.22);
}
.lv-progress > div {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #fff;
  transition: width .25s;
}

.lv-tools {
  display: flex;
  gap: 10px;
  margin: 0 0 18px;
}
.lv-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
}
.lv-search input {
  width: 100%;
  min-height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: .95rem;
}
.lv-tools select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  color: var(--ink);
}

.lv-domain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.lv-domain-card {
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .16s, border-color .16s, box-shadow .16s;
}
.lv-domain-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15,118,110,.45);
  box-shadow: var(--shadow);
}
.lv-domain-card-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 12px;
}
.lv-domain-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #ccfbf1;
  font-size: 1.45rem;
}
.lv-domain-count {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
}
.lv-domain-card h3 { margin: 0 0 5px; font-size: 1.05rem; }
.lv-domain-card p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.5;
}
.lv-domain-card-progress {
  height: 4px;
  margin-top: 16px;
  border-radius: 99px;
  background: var(--bg);
}
.lv-domain-card-progress > div {
  height: 100%;
  border-radius: inherit;
  background: #0f766e;
}

.lv-domain-head,
.lv-lesson-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.lv-domain-head { margin-bottom: 14px; }
.lv-domain-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}
.lv-domain-big-icon { font-size: 2.5rem; }
.lv-domain-head h2 { margin: 4px 0; font-size: 1.6rem; }
.lv-domain-head p:last-child { margin: 0; color: var(--muted); }

.lv-lesson-list { display: grid; gap: 10px; }
.lv-lesson-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--card);
  cursor: pointer;
}
.lv-lesson-row:hover { border-color: rgba(15,118,110,.45); }
.lv-lesson-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f0fdfa;
  color: #0f766e;
  font-weight: 800;
}
.lv-lesson-row.is-complete .lv-lesson-number { color: #fff; background: #0f766e; }
.lv-lesson-row h3 { margin: 0 0 3px; font-size: .98rem; }
.lv-lesson-row p { margin: 0; color: var(--muted); font-size: .82rem; }
.lv-lesson-arrow { color: #0f766e; font-size: 1.2rem; }

.lv-lesson-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: .85rem;
}
.lv-lesson-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.lv-lesson-header h2 { margin: 7px 0 5px; font-size: 1.55rem; }
.lv-lesson-header p { margin: 0; color: var(--muted); }
.lv-badge {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 99px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}
.lv-play-all,
.lv-complete,
.lv-secondary {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}
.lv-play-all,
.lv-complete {
  border: 0;
  color: #fff;
  background: #0f766e;
}
.lv-play-all.is-playing { background: #b45309; }
.lv-secondary {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
}
.lv-secondary:disabled { opacity: .38; cursor: default; }

.lv-tip {
  display: flex;
  gap: 8px;
  margin: 18px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fffbeb;
  color: #78350f;
  font-size: .86rem;
  line-height: 1.5;
}
.lv-tip strong { white-space: nowrap; }

.lv-utterances { display: grid; gap: 10px; }
.lv-utterance {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
}
.lv-utterance.is-speaking { border-color: #0f766e; background: #f0fdfa; }
.lv-speak {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: #0f766e;
  background: #ccfbf1;
  cursor: pointer;
  font-size: 1rem;
}
.lv-en { margin: 0; color: var(--ink); font-size: 1.04rem; font-weight: 650; line-height: 1.5; }
.lv-zh { margin: 5px 0 0; color: var(--muted); line-height: 1.45; }
.lv-usage {
  display: inline-block;
  margin-top: 7px;
  color: #0f766e;
  font-size: .76rem;
  font-weight: 650;
}

.lv-practice {
  margin-top: 18px;
  padding: 16px;
  border: 1px dashed #5eead4;
  border-radius: 15px;
  background: #f0fdfa;
}
.lv-practice h3 { margin: 0 0 5px; font-size: .95rem; }
.lv-practice p { margin: 0; color: var(--ink-2); line-height: 1.5; }
.lv-lesson-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
}
.lv-complete.is-complete { background: #047857; }
.lv-no-results { text-align: center; color: var(--muted); padding: 30px; }
.lv-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 30;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 99px;
  color: #fff;
  background: rgba(15,23,42,.92);
  box-shadow: var(--shadow);
  font-size: .86rem;
}

@media (max-width: 760px) {
  .lv-app { padding: 10px 10px 50px; }
  .lv-topbar { top: 6px; margin-bottom: 12px; }
  .lv-hero { grid-template-columns: 1fr; padding: 22px 18px; }
  .lv-stat-card { padding: 14px; }
  .lv-domain-grid { grid-template-columns: 1fr 1fr; }
  .lv-domain-card { min-height: 170px; padding: 15px; }
  .lv-tools { flex-direction: column; }
  .lv-domain-head,
  .lv-lesson-card { padding: 18px 14px; }
  .lv-lesson-header { flex-direction: column; }
  .lv-play-all { width: 100%; }
  .lv-lesson-actions { flex-wrap: wrap; }
  .lv-complete { order: -1; width: 100%; }
  .lv-secondary { flex: 1; }
}

@media (max-width: 430px) {
  .lv-domain-grid { grid-template-columns: 1fr; }
  .lv-domain-card { min-height: auto; }
  .lv-heading .lv-kicker { display: none; }
}
