/* Vokabeltrainer — base theme.
   A warm, friendly palette layered over Bootstrap. Distinctiveness comes from
   colour, shape and iconography (typography uses Bootstrap's default stack).
   The kid-facing visual language is reviewed and finalised in slice 7. */

:root {
  --vt-ink: #1f2a44;
  --vt-ink-soft: #51607f;
  --vt-cream: #fff8ef;
  --vt-card: #ffffff;
  --vt-accent: #ff6b54;       /* coral */
  --vt-accent-ink: #b23b29;
  --vt-teal: #14b8a6;
  --vt-sun: #ffc44d;
  --vt-line: #efe2d2;
  --vt-shadow: 24px 24px 0 rgba(31, 42, 68, 0.06);
  --vt-radius: 22px;
}

.vt-body {
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(255, 196, 77, 0.22), transparent 60%),
    radial-gradient(800px 480px at 100% 0%, rgba(20, 184, 166, 0.14), transparent 55%),
    var(--vt-cream);
  color: var(--vt-ink);
}

/* --- Navbar --------------------------------------------------------------- */
.vt-navbar {
  padding-block: 1rem;
  background: transparent;
}
.vt-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 14px;
  background: var(--vt-ink);
  color: var(--vt-sun);
  font-size: 1.1rem;
}
.vt-brand-text {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.3rem;
  color: var(--vt-ink);
}
.vt-brand-accent { color: var(--vt-accent); }

/* --- Hero ----------------------------------------------------------------- */
.vt-hero { padding-block: clamp(2.5rem, 6vw, 5rem); }
.vt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--vt-accent-ink);
  background: rgba(255, 107, 84, 0.12);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}
.vt-hero-title {
  font-weight: 850;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-top: 1rem;
}
.vt-hero-lead {
  font-size: 1.18rem;
  color: var(--vt-ink-soft);
  max-width: 34rem;
  margin-top: 1.1rem;
}
.vt-soon { color: var(--vt-ink-soft); font-size: 0.95rem; }

/* Accent button (kept independent of Bootstrap's compiled button colours).
   Bootstrap's base .btn:hover/:active set background-color from undefined
   --bs-btn-* vars, so each state re-asserts background + colour explicitly. */
.vt-btn {
  font-weight: 700;
  border-radius: 14px;
  border: 2px solid var(--vt-ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.vt-btn-accent,
.vt-btn-accent:hover,
.vt-btn-accent:focus,
.vt-btn-accent:active {
  background: var(--vt-accent);
  color: #fff;
  border-color: var(--vt-ink);
}
.vt-btn-accent { box-shadow: 6px 6px 0 var(--vt-ink); }
.vt-btn-accent:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--vt-ink);
}
.vt-btn-accent:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--vt-ink); }

/* Hero card */
.vt-hero-card {
  background: var(--vt-card);
  border: 2px solid var(--vt-ink);
  border-radius: var(--vt-radius);
  padding: 1.6rem;
  box-shadow: var(--vt-shadow);
}
.vt-hero-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.vt-chip {
  flex: 1;
  text-align: center;
  font-weight: 800;
  padding: 0.7rem 0.5rem;
  border-radius: 14px;
}
.vt-chip-1 { background: rgba(20, 184, 166, 0.15); color: #0d7d72; }
.vt-chip-2 { background: rgba(255, 107, 84, 0.15); color: var(--vt-accent-ink); }
.vt-swap { color: var(--vt-ink-soft); }
.vt-progress {
  margin-top: 1.4rem;
  height: 14px;
  border-radius: 999px;
  background: var(--vt-line);
  overflow: hidden;
}
.vt-progress-bar {
  height: 100%;
  width: 68%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--vt-teal), var(--vt-sun));
}
.vt-hero-card-note {
  margin: 1rem 0 0;
  font-weight: 700;
  color: var(--vt-accent-ink);
}

/* --- Phase cards ---------------------------------------------------------- */
.vt-phases { padding-block: clamp(1.5rem, 4vw, 3.5rem) 4rem; }
.vt-phase-card {
  background: var(--vt-card);
  border: 2px solid var(--vt-line);
  border-radius: var(--vt-radius);
  padding: 1.75rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.vt-phase-card:hover { transform: translateY(-4px); border-color: var(--vt-ink); }
.vt-phase-icon {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 16px;
  background: var(--vt-ink);
  color: var(--vt-sun);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.vt-phase-title { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.vt-phase-text { color: var(--vt-ink-soft); margin-bottom: 0; }

/* --- Navbar links / auth state ------------------------------------------- */
.vt-nav-link {
  font-weight: 700;
  color: var(--vt-ink);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 10px;
}
.vt-nav-link:hover { color: var(--vt-accent-ink); }
.vt-nav-user {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--vt-ink-soft);
}
.vt-btn-ghost,
.vt-btn-ghost:hover,
.vt-btn-ghost:focus,
.vt-btn-ghost:active {
  background: var(--vt-card);
  border-color: var(--vt-ink);
}
.vt-btn-ghost { color: var(--vt-ink); box-shadow: 3px 3px 0 var(--vt-ink); }
.vt-btn-ghost:hover {
  color: var(--vt-accent-ink);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--vt-ink);
}
.vt-btn-ghost:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--vt-ink); }

/* --- Auth screens (login, password reset) -------------------------------- */
.vt-auth { padding-block: clamp(2rem, 6vw, 4.5rem); }
.vt-auth-card {
  background: var(--vt-card);
  border: 2px solid var(--vt-ink);
  border-radius: var(--vt-radius);
  box-shadow: var(--vt-shadow);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  max-width: 26rem;
  margin-inline: auto;
}
.vt-auth-mark {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 16px;
  background: var(--vt-ink);
  color: var(--vt-sun);
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
}
.vt-auth-mark-warn { background: var(--vt-accent); color: #fff; }
.vt-auth-title {
  font-weight: 850;
  font-size: clamp(1.6rem, 4vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.vt-auth-lead { color: var(--vt-ink-soft); margin-bottom: 1.5rem; }
.vt-auth-label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--vt-ink);
}
.vt-auth-card .form-control {
  border: 2px solid var(--vt-line);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
}
.vt-auth-card .form-control:focus {
  border-color: var(--vt-ink);
  box-shadow: none;
}
.vt-auth-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--vt-accent-ink);
  text-decoration: none;
}
.vt-auth-link:hover { text-decoration: underline; }
.vt-auth-alert {
  background: rgba(255, 107, 84, 0.12);
  color: var(--vt-accent-ink);
  border: 2px solid rgba(255, 107, 84, 0.3);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
}
.vt-auth-fielderror {
  color: var(--vt-accent-ink);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.35rem;
}
.vt-auth-help {
  color: var(--vt-ink-soft);
  font-size: 0.8rem;
  margin-top: 0.4rem;
}
.vt-auth-help ul { margin: 0.2rem 0 0; padding-left: 1.1rem; }
.vt-auth-foot {
  color: var(--vt-ink-soft);
  font-size: 0.88rem;
  text-align: center;
  margin: 1.5rem 0 0;
}

/* --- Teacher dashboard ---------------------------------------------------- */
.vt-dash { padding-block: clamp(2rem, 5vw, 3.5rem); }
.vt-dash-title {
  font-weight: 850;
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: -0.03em;
  margin-top: 0.75rem;
}
.vt-dash-lead { color: var(--vt-ink-soft); font-size: 1.1rem; max-width: 36rem; }
.vt-dash-empty {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--vt-card);
  border: 2px dashed var(--vt-line);
  border-radius: var(--vt-radius);
  padding: 1.75rem;
}
.vt-dash-empty-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 16px;
  background: rgba(20, 184, 166, 0.15);
  color: #0d7d72;
  font-size: 1.3rem;
  flex: none;
}
.vt-dash-empty-text { margin: 0; font-weight: 600; color: var(--vt-ink-soft); }

/* --- Flash messages ------------------------------------------------------- */
.vt-flash-wrap { padding-top: 1.25rem; }
.vt-flash {
  display: flex;
  align-items: center;
  font-weight: 650;
  color: #0d7d72;
  background: rgba(20, 184, 166, 0.14);
  border: 2px solid rgba(20, 184, 166, 0.4);
  border-radius: 14px;
  padding: 0.7rem 1rem;
  margin-bottom: 0.75rem;
}
.vt-flash-error,
.vt-flash-warning {
  color: var(--vt-accent-ink);
  background: rgba(255, 107, 84, 0.12);
  border-color: rgba(255, 107, 84, 0.4);
}

/* --- Dashboard tiles ------------------------------------------------------ */
.vt-tiles {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .vt-tiles { grid-template-columns: 1fr 1fr; } }
.vt-tile {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--vt-card);
  border: 2px solid var(--vt-ink);
  border-radius: var(--vt-radius);
  box-shadow: 6px 6px 0 var(--vt-ink);
  padding: 1.4rem;
  text-decoration: none;
  color: var(--vt-ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
a.vt-tile:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--vt-ink); }
.vt-tile-soon { border-style: dashed; border-color: var(--vt-line); box-shadow: none; }
.vt-tile-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 16px;
  background: var(--vt-ink);
  color: var(--vt-sun);
  font-size: 1.3rem;
  flex: none;
}
.vt-tile-icon-muted { background: var(--vt-line); color: var(--vt-ink-soft); }
.vt-tile-body { display: flex; flex-direction: column; flex: 1 1 auto; }
.vt-tile-title { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.vt-tile-text { color: var(--vt-ink-soft); font-size: 0.95rem; }
.vt-tile-go { color: var(--vt-accent-ink); font-size: 1.1rem; flex: none; }
.vt-soon-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--vt-ink-soft);
  flex: none;
}

/* --- Panels (forms inside management pages) ------------------------------- */
.vt-panel {
  background: var(--vt-card);
  border: 2px solid var(--vt-ink);
  border-radius: var(--vt-radius);
  box-shadow: var(--vt-shadow);
  padding: clamp(1.25rem, 4vw, 1.75rem);
}
.vt-panel-title {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin-bottom: 1.1rem;
}
.vt-panel .form-control {
  border: 2px solid var(--vt-line);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
}
.vt-panel .form-control:focus {
  border-color: var(--vt-ink);
  box-shadow: none;
}

/* --- Back link & teal auth mark ------------------------------------------- */
.vt-back {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--vt-ink-soft);
}
.vt-back:hover { color: var(--vt-accent-ink); }
.vt-auth-mark-teal { background: var(--vt-teal); color: #fff; }

/* --- Class cards ---------------------------------------------------------- */
.vt-class-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 576px) { .vt-class-grid { grid-template-columns: 1fr 1fr; } }
.vt-class-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--vt-card);
  border: 2px solid var(--vt-ink);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--vt-ink);
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: var(--vt-ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.vt-class-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--vt-ink); }
.vt-class-mark {
  display: inline-grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 14px;
  background: rgba(255, 107, 84, 0.15);
  color: var(--vt-accent-ink);
  font-weight: 800;
  flex: none;
}
.vt-class-body { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.vt-class-name {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vt-class-meta { color: var(--vt-ink-soft); font-size: 0.9rem; }
.vt-class-go { color: var(--vt-ink-soft); flex: none; }
.vt-class-mark-alt { background: rgba(20, 184, 166, 0.15); color: #0d7d72; }
/* Non-interactive card (e.g. a student unit awaiting practice). */
.vt-class-card-static { cursor: default; }
.vt-class-card-static:hover { transform: none; box-shadow: 5px 5px 0 var(--vt-ink); }

/* --- Section heading (groups within a page) ------------------------------- */
.vt-section-head {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin-top: 1.6rem;
  color: var(--vt-ink);
}

/* --- Assign-to-class toggle list ----------------------------------------- */
.vt-assign-list { list-style: none; margin: 0.4rem 0 0.9rem; padding: 0; display: grid; gap: 0.6rem; }
.vt-assign-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.2rem;
  border-bottom: 1px solid var(--vt-line);
}
.vt-assign-row:last-child { border-bottom: none; }
.vt-assign-name { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- Student roster ------------------------------------------------------- */
.vt-roster { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.vt-roster-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--vt-card);
  border: 2px solid var(--vt-line);
  border-radius: 16px;
  padding: 0.8rem 1rem;
}
.vt-roster-avatar {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.15);
  color: #0d7d72;
  font-weight: 800;
  flex: none;
}
.vt-roster-body { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.vt-roster-name { font-weight: 750; letter-spacing: -0.01em; }
.vt-roster-meta { color: var(--vt-ink-soft); font-size: 0.9rem; }
.vt-roster-link { text-decoration: none; color: inherit; border-radius: 10px; transition: color 0.15s ease; }
.vt-roster-link:hover .vt-roster-name { color: #0d7d72; text-decoration: underline; }

/* --- Visibility badges ---------------------------------------------------- */
.vt-badge {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  flex: none;
}
.vt-badge-shared { background: rgba(20, 184, 166, 0.15); color: #0d7d72; }
.vt-badge-private { background: var(--vt-line); color: var(--vt-ink-soft); }

/* --- Radio group (visibility) -------------------------------------------- */
.vt-radios { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.vt-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  border: 2px solid var(--vt-line);
  border-radius: 12px;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
}
.vt-radio:has(input:checked) { border-color: var(--vt-ink); background: rgba(255, 196, 77, 0.18); }
.vt-radio input { accent-color: var(--vt-accent); }

/* --- Import report stats -------------------------------------------------- */
.vt-stats {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .vt-stats { grid-template-columns: repeat(4, 1fr); } }
.vt-stat {
  background: var(--vt-card);
  border: 2px solid var(--vt-ink);
  border-radius: 18px;
  box-shadow: 5px 5px 0 rgba(31, 42, 68, 0.08);
  padding: 1rem 1.1rem;
}
.vt-stat-num { display: block; font-weight: 850; font-size: 1.9rem; line-height: 1; letter-spacing: -0.02em; }
.vt-stat-label { color: var(--vt-ink-soft); font-weight: 650; font-size: 0.85rem; }
.vt-stat-ok .vt-stat-num { color: #0d7d72; }
.vt-stat-warn .vt-stat-num { color: var(--vt-accent-ink); }
.vt-stat-err .vt-stat-num { color: #b23b29; }

/* --- Import report issue list -------------------------------------------- */
.vt-issues { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.vt-issue {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  border-radius: 12px;
  padding: 0.6rem 0.85rem;
  font-size: 0.92rem;
}
.vt-issue-warning { background: rgba(255, 196, 77, 0.16); }
.vt-issue-error { background: rgba(255, 107, 84, 0.12); }
.vt-issue-tag { font-weight: 800; flex: none; min-width: 3rem; }
.vt-issue-warning .vt-issue-tag { color: var(--vt-accent-ink); }
.vt-issue-error .vt-issue-tag { color: #b23b29; }
.vt-issue-msg { color: var(--vt-ink); }

.vt-confirm-bar { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* --- Unit item list ------------------------------------------------------- */
.vt-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.vt-item {
  background: var(--vt-card);
  border: 2px solid var(--vt-line);
  border-radius: 18px;
  padding: 1rem 1.15rem;
}
.vt-item-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.vt-item-native { font-weight: 750; }
.vt-item-arrow { color: var(--vt-ink-soft); font-size: 0.8rem; }
.vt-item-target { font-weight: 800; color: var(--vt-accent-ink); }
.vt-item-audio { color: var(--vt-teal); margin-left: auto; display: inline-flex; gap: 0.4rem; }
.vt-item-audio-missing { color: var(--vt-ink-soft); }
.vt-audio-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  color: #0d7d72;
  background: rgba(20, 184, 166, 0.15);
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
}
.vt-audio-chip:hover { background: rgba(20, 184, 166, 0.28); color: #0d7d72; }
.vt-item-sentence { color: var(--vt-ink-soft); margin: 0.5rem 0 0; }
.vt-gap {
  font-weight: 700;
  color: var(--vt-ink);
  background: rgba(255, 196, 77, 0.4);
  border-radius: 6px;
  padding: 0 0.3rem;
}
.vt-item-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.vt-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
}
.vt-pill-distractor { background: var(--vt-line); color: var(--vt-ink-soft); }
.vt-pill-accept { background: rgba(20, 184, 166, 0.15); color: #0d7d72; }

/* --- Footer --------------------------------------------------------------- */
.vt-footer {
  border-top: 2px solid var(--vt-line);
  padding-block: 1.25rem;
  margin-top: auto;
  color: var(--vt-ink-soft);
}
.vt-footer-muted { font-size: 0.9rem; }

/* === Student practice (Phase A) ==========================================
   The kid-facing practice language (age 10–14): one big focused flashcard,
   oversized tap targets, a clear within-run progress bar, and a satisfying
   reveal. Built from the same warm neo-brutalist tokens as the rest of the
   app so phases B and C (and gamification) reuse it. */
.vt-practice { padding-block: clamp(1.25rem, 4vw, 2.5rem) 3rem; }
/* A narrow, centred column keeps the single card the sole focus on a phone. */
.vt-practice-narrow { max-width: 34rem; }
.vt-practice-title {
  font-weight: 800;
  font-size: clamp(1.7rem, 6vw, 2.3rem);
  letter-spacing: -0.02em;
  margin: 0.2rem 0 0.4rem;
}

/* --- Phase chooser -------------------------------------------------------- */
.vt-phase-pick {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.6rem;
}
.vt-phase-tile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  background: var(--vt-card);
  border: 2px solid var(--vt-ink);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--vt-ink);
  text-decoration: none;
  color: var(--vt-ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.vt-phase-tile:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--vt-ink); }
.vt-phase-tile-mark {
  display: inline-grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 16px;
  background: var(--vt-ink);
  color: var(--vt-sun);
  font-size: 1.4rem;
  flex: none;
}
.vt-phase-tile-A { background: var(--vt-teal); color: #fff; }
.vt-phase-tile-B { background: var(--vt-accent); color: #fff; }
.vt-phase-tile-C { background: var(--vt-sun); color: var(--vt-ink); }
.vt-phase-tile-body { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.vt-phase-tile-key {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vt-ink-soft);
}
.vt-phase-tile-label { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.vt-phase-tile-go {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: var(--vt-ink);
  color: #fff;
}
.vt-phase-tile-soon {
  box-shadow: none;
  border-color: var(--vt-line);
  background: transparent;
  opacity: 0.7;
}
.vt-phase-tile-soon:hover { transform: none; box-shadow: none; }
.vt-phase-tile-soon .vt-phase-tile-mark { background: var(--vt-line); color: var(--vt-ink-soft); }
.vt-phase-tile-badge {
  flex: none;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vt-ink-soft);
  background: var(--vt-line);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}

/* --- Run header + progress ----------------------------------------------- */
.vt-run-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}
.vt-run-top .vt-back {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 2px solid var(--vt-ink);
  background: var(--vt-card);
  font-size: 1.05rem;
  flex: none;
}
.vt-run-count {
  font-weight: 800;
  color: var(--vt-ink-soft);
  letter-spacing: -0.01em;
}
.vt-run-progress { margin-top: 0; }

/* --- Flashcard ------------------------------------------------------------ */
.vt-flashcard {
  margin-top: 1.4rem;
  background: var(--vt-card);
  border: 2px solid var(--vt-ink);
  border-radius: var(--vt-radius);
  box-shadow: 10px 10px 0 var(--vt-ink);
  padding: clamp(1.4rem, 5vw, 2.4rem);
  text-align: center;
}
.vt-card-prompt {
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vt-ink-soft);
  margin-bottom: 0.6rem;
}
.vt-card-native {
  font-weight: 800;
  font-size: clamp(2.2rem, 10vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
}
.vt-card-answer {
  border-top: 2px dashed var(--vt-line);
  padding-top: 1.3rem;
  margin-bottom: 1.4rem;
}
.vt-card-answer.vt-revealed { animation: vt-reveal 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
@keyframes vt-reveal {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.vt-card-target-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.vt-card-target {
  font-weight: 800;
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  letter-spacing: -0.02em;
  color: var(--vt-accent-ink);
}
.vt-speaker {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  border: 2px solid var(--vt-ink);
  background: var(--vt-teal);
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--vt-ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.vt-speaker:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--vt-ink); }
.vt-speaker:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--vt-ink); }
.vt-card-sentence {
  margin: 1rem 0 0;
  font-size: 1.15rem;
  color: var(--vt-ink-soft);
  line-height: 1.5;
}
.vt-card-sentence mark {
  background: var(--vt-sun);
  color: var(--vt-ink);
  padding: 0.05em 0.3em;
  border-radius: 7px;
  font-weight: 700;
}

/* --- Buttons (big, kid-friendly tap targets) ------------------------------ */
.vt-btn-xl {
  font-size: 1.15rem;
  padding: 0.9rem 1.1rem;
  border-radius: 16px;
}
.vt-btn-go,
.vt-btn-go:hover,
.vt-btn-go:focus,
.vt-btn-go:active {
  background: var(--vt-teal);
  color: #fff;
  border-color: var(--vt-ink);
}
.vt-btn-go { box-shadow: 6px 6px 0 var(--vt-ink); }
.vt-btn-go:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--vt-ink); }
.vt-btn-go:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--vt-ink); }
.vt-btn-miss,
.vt-btn-miss:hover,
.vt-btn-miss:focus,
.vt-btn-miss:active {
  background: var(--vt-card);
  color: var(--vt-ink);
  border-color: var(--vt-ink);
}
.vt-btn-miss { box-shadow: 6px 6px 0 var(--vt-ink); }
.vt-btn-miss:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--vt-ink); }
.vt-btn-miss:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--vt-ink); }

/* --- Self-grade ----------------------------------------------------------- */
.vt-grade-q {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}
.vt-grade-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.vt-grade-row form { margin: 0; }

/* --- Phase B: choose the gap word ----------------------------------------- */
.vt-gap-sentence {
  font-size: clamp(1.4rem, 6vw, 2rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin: 0.4rem 0 0.6rem;
}
.vt-gap-blank {
  display: inline-block;
  min-width: 4.5ch;
  border-bottom: 4px solid var(--vt-ink);
  border-radius: 3px;
  margin: 0 0.15em;
  vertical-align: baseline;
}
.vt-gap-blank.vt-gap-filled {
  border-bottom-color: transparent;
  background: var(--vt-sun);
  color: var(--vt-ink);
  padding: 0.02em 0.32em;
  border-radius: 8px;
  animation: vt-reveal 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.vt-gap-hint {
  font-size: 1rem;
  font-weight: 700;
  color: var(--vt-ink-soft);
  margin: 0 0 1.4rem;
}
.vt-choices {
  display: grid;
  gap: 0.7rem;
}
.vt-choice {
  width: 100%;
  font-size: 1.2rem;
  font-weight: 800;
  padding: 0.9rem 1.1rem;
  border-radius: 16px;
  border: 2px solid var(--vt-ink);
  background: var(--vt-card);
  color: var(--vt-ink);
  box-shadow: 5px 5px 0 var(--vt-ink);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.vt-choice:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--vt-ink); }
.vt-choice:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--vt-ink); }
.vt-choices-done .vt-choice { cursor: default; }
.vt-choices-done .vt-choice:not(.vt-choice-correct):not(.vt-choice-wrong) { opacity: 0.5; }
.vt-choice:disabled { transform: none; }
.vt-choice-correct,
.vt-choice-correct:disabled {
  background: var(--vt-teal);
  color: #fff;
  opacity: 1;
}
.vt-choice-wrong,
.vt-choice-wrong:disabled {
  background: var(--vt-accent);
  color: #fff;
  opacity: 1;
}
.vt-feedback {
  margin-top: 1.4rem;
  animation: vt-reveal 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.vt-feedback-msg {
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}
.vt-feedback-ok .vt-feedback-msg { color: var(--vt-teal); }
.vt-feedback-no .vt-feedback-msg { color: var(--vt-accent-ink); }
.vt-feedback form { margin: 0; }

/* --- Phase C: type the gap ------------------------------------------------ */
.vt-type-form { margin: 0; }
.vt-type-input {
  width: 100%;
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
  padding: 0.8rem 1rem;
  margin: 0.2rem 0 1rem;
  border: 2px solid var(--vt-ink);
  border-radius: 16px;
  background: var(--vt-card);
  color: var(--vt-ink);
  box-shadow: 5px 5px 0 var(--vt-ink);
}
.vt-type-input:focus {
  outline: none;
  border-color: var(--vt-accent);
  box-shadow: 5px 5px 0 var(--vt-accent);
}
.vt-type-hint {
  min-height: 2.4rem;
  margin-bottom: 1rem;
  text-align: center;
}
.vt-hint-btn {
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 2px solid var(--vt-ink);
  background: var(--vt-sun);
  color: var(--vt-ink);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 3px 3px 0 var(--vt-ink);
}
.vt-hint-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--vt-ink); }
.vt-hint-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--vt-ink); }
.vt-hint-word {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--vt-ink-soft);
  animation: vt-reveal 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.vt-typed-back {
  font-size: 1rem;
  font-weight: 700;
  color: var(--vt-accent-ink);
  margin: 0 0 0.4rem;
}

/* --- Completion ----------------------------------------------------------- */
.vt-done {
  text-align: center;
  background: var(--vt-card);
  border: 2px solid var(--vt-ink);
  border-radius: var(--vt-radius);
  box-shadow: 10px 10px 0 var(--vt-ink);
  padding: clamp(1.8rem, 6vw, 3rem);
  margin-top: 1.4rem;
}
.vt-done-burst {
  display: inline-grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  background: var(--vt-sun);
  color: var(--vt-ink);
  font-size: 2.2rem;
  border: 2px solid var(--vt-ink);
  box-shadow: 5px 5px 0 var(--vt-ink);
  animation: vt-pop 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}
@keyframes vt-pop {
  0% { transform: scale(0.2) rotate(-18deg); opacity: 0; }
  70% { transform: scale(1.12) rotate(6deg); }
  100% { transform: none; opacity: 1; }
}
.vt-done-title {
  font-weight: 800;
  font-size: clamp(2rem, 8vw, 2.8rem);
  letter-spacing: -0.02em;
  margin: 1rem 0 0.3rem;
}
.vt-done-lead { color: var(--vt-ink-soft); font-size: 1.15rem; margin-bottom: 1.6rem; }
.vt-done-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 22rem;
  margin: 0 auto;
}

/* --- Gamification: level, streak, badges ---------------------------------- */
.vt-hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-top: 1.6rem;
}
@media (min-width: 560px) {
  .vt-hero-stats { grid-template-columns: 2fr 1fr; }
}
.vt-level-card,
.vt-streak-card {
  background: var(--vt-card);
  border: 2px solid var(--vt-ink);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--vt-ink);
  padding: 1.1rem 1.2rem;
}
.vt-level-top {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.vt-level-badge {
  display: inline-grid;
  place-items: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.5rem;
  gap: 0.2rem;
  border-radius: 999px;
  background: var(--vt-sun);
  color: var(--vt-ink);
  border: 2px solid var(--vt-ink);
  font-weight: 850;
  font-size: 1rem;
  line-height: 1;
}
.vt-level-badge i { font-size: 0.75rem; margin-right: 0.15rem; }
.vt-level-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; }
.vt-level-xp { margin-left: auto; font-weight: 800; color: var(--vt-accent-ink); }
.vt-level-bar { margin-top: 0.8rem; }
.vt-level-foot { margin: 0.5rem 0 0; font-size: 0.85rem; font-weight: 650; color: var(--vt-ink-soft); }

.vt-streak-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.1rem;
}
.vt-streak-flame {
  font-size: 1.8rem;
  color: var(--vt-line);
  line-height: 1;
}
.vt-streak-on .vt-streak-flame {
  color: var(--vt-accent);
  animation: vt-flicker 1.8s ease-in-out infinite;
}
@keyframes vt-flicker {
  0%, 100% { transform: scale(1) rotate(-2deg); }
  50% { transform: scale(1.12) rotate(2deg); }
}
.vt-streak-num { font-weight: 850; font-size: 1.9rem; line-height: 1; letter-spacing: -0.02em; }
.vt-streak-label { font-size: 0.8rem; font-weight: 650; color: var(--vt-ink-soft); }

.vt-trophies { margin-top: 1.6rem; }
.vt-trophies-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 0 0.7rem;
}
.vt-trophies-count {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--vt-ink-soft);
  background: var(--vt-line);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
}
.vt-trophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr));
  gap: 0.7rem;
}
.vt-trophy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  padding: 0.8rem 0.5rem;
  background: var(--vt-card);
  border: 2px solid var(--vt-ink);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--vt-ink);
}
.vt-trophy-mark {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: var(--vt-sun);
  color: var(--vt-ink);
  border: 2px solid var(--vt-ink);
  font-size: 1.15rem;
}
.vt-trophy-name { font-size: 0.72rem; font-weight: 750; line-height: 1.1; color: var(--vt-ink); }
.vt-trophy-locked { box-shadow: none; opacity: 0.65; }
.vt-trophy-locked .vt-trophy-mark { background: var(--vt-line); color: var(--vt-ink-soft); }
.vt-trophy-new .vt-trophy-mark {
  background: var(--vt-teal);
  color: #fff;
  animation: vt-pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}

.vt-section-head {
  margin: 2rem 0 0.2rem;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

/* Per-phase mastery on the phase chooser */
.vt-phase-mastery { display: block; margin-top: 0.5rem; }
.vt-phase-mastery-bar {
  display: block;
  margin-top: 0;
  height: 8px;
}
.vt-phase-mastery-text {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--vt-ink-soft);
}

/* Run-completion reward block */
.vt-reward {
  background: var(--vt-cream);
  border: 2px dashed var(--vt-ink);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  margin: 0 auto 1.4rem;
  max-width: 24rem;
}
.vt-reward-xp {
  margin: 0;
  font-weight: 850;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  color: var(--vt-accent-ink);
}
.vt-reward-xp i { color: var(--vt-sun); -webkit-text-stroke: 1.5px var(--vt-ink); }
.vt-reward-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}
.vt-reward-level,
.vt-reward-streak {
  font-weight: 750;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  border: 2px solid var(--vt-ink);
}
.vt-reward-level { background: var(--vt-card); color: var(--vt-ink); }
.vt-reward-levelup { background: var(--vt-teal); color: #fff; animation: vt-pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }
.vt-reward-streak { background: var(--vt-sun); color: var(--vt-ink); }
.vt-reward-bar { margin-top: 0.6rem; height: 10px; }

.vt-badge-pop { margin: 0 auto 1.4rem; }
.vt-badge-pop-head { font-weight: 800; margin: 0 0 0.6rem; color: var(--vt-accent-ink); }
.vt-badge-pop-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; }

/* Per-answer feedback cues (driven by feedback.js) */
.vt-cue-correct { animation: vt-cue-pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }
@keyframes vt-cue-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.035); box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.35); }
  100% { transform: scale(1); }
}
.vt-cue-wrong { animation: vt-cue-shake 0.45s ease both; }
@keyframes vt-cue-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

/* Confetti burst on a finished run */
.vt-confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1080;
}
.vt-confetti span {
  position: absolute;
  top: -6vh;
  width: 10px;
  height: 14px;
  opacity: 0;
  animation-name: vt-confetti-fall;
  animation-timing-function: cubic-bezier(0.3, 0.4, 0.6, 1);
  animation-fill-mode: forwards;
}
@keyframes vt-confetti-fall {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  100% { transform: translateY(108vh) rotate(var(--vt-rot, 360deg)); opacity: 0.9; }
}
@media (prefers-reduced-motion: reduce) {
  .vt-cue-correct, .vt-cue-wrong, .vt-streak-on .vt-streak-flame,
  .vt-reward-levelup, .vt-trophy-new .vt-trophy-mark { animation: none; }
}

/* ========================================================================== */
/* Teacher statistics (Slice 12)                                              */
/* ========================================================================== */

/* --- Section tabs (Overview / Hardest / Activity) ------------------------- */
.vt-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}
.vt-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 2px solid var(--vt-line);
  background: var(--vt-card);
  color: var(--vt-ink-soft);
  font-weight: 750;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.vt-tab:hover { color: var(--vt-ink); border-color: var(--vt-ink); }
.vt-tab-on {
  color: var(--vt-ink);
  border-color: var(--vt-ink);
  background: var(--vt-sun);
  box-shadow: 3px 3px 0 var(--vt-ink);
}
@media (max-width: 480px) { .vt-tab span { display: none; } .vt-tab { padding: 0.5rem 0.8rem; } }

/* --- Stat card (one unit / one table) ------------------------------------- */
.vt-statcard { margin-top: 1.1rem; }
.vt-statcard-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.vt-statcard-title { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; margin: 0; }
.vt-statcard-pct { font-weight: 850; font-size: 1.4rem; color: #0d7d72; letter-spacing: -0.02em; }
.vt-statcard-sub { color: var(--vt-ink-soft); font-size: 0.9rem; margin: 0.2rem 0 0; }
.vt-statcard-sub-pad { padding: 0.4rem 0 0.2rem; }
.vt-progress-flush { margin-top: 0.7rem; }

/* --- Ahead / behind / not-started segments -------------------------------- */
.vt-segs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.vt-seg {
  flex: 1 1 0;
  min-width: 5.5rem;
  text-align: center;
  padding: 0.5rem 0.4rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--vt-ink-soft);
  background: var(--vt-line);
}
.vt-seg b { display: block; font-size: 1.3rem; font-weight: 850; line-height: 1.1; color: var(--vt-ink); }
.vt-seg-ahead { background: rgba(20, 184, 166, 0.15); }
.vt-seg-ahead b { color: #0d7d72; }
.vt-seg-behind { background: rgba(255, 107, 84, 0.15); }
.vt-seg-behind b { color: var(--vt-accent-ink); }

/* --- Per-student progress bars (class overview) --------------------------- */
.vt-bars { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.vt-bar-row { display: flex; align-items: center; gap: 0.6rem; }
.vt-bar-name {
  flex: 0 0 7.5rem;
  font-weight: 700;
  color: var(--vt-ink);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vt-bar-name:hover { color: #0d7d72; text-decoration: underline; }
.vt-bar-track { flex: 1 1 auto; height: 10px; border-radius: 999px; background: var(--vt-line); overflow: hidden; }
.vt-bar-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--vt-teal), var(--vt-sun)); }
.vt-bar-pct { flex: 0 0 2.8rem; text-align: right; font-weight: 750; font-size: 0.9rem; color: var(--vt-ink-soft); }

/* --- Status pills ---------------------------------------------------------- */
.vt-pill {
  flex: none;
  font-size: 0.72rem;
  font-weight: 750;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  text-transform: lowercase;
}
.vt-pill-ahead { background: rgba(20, 184, 166, 0.15); color: #0d7d72; }
.vt-pill-behind { background: rgba(255, 107, 84, 0.15); color: var(--vt-accent-ink); }
.vt-pill-not_started { background: var(--vt-line); color: var(--vt-ink-soft); }

/* --- Hardest words --------------------------------------------------------- */
.vt-hard { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.vt-hard-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--vt-line);
}
.vt-hard-row:last-child { border-bottom: none; }
.vt-hard-rank {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--vt-line);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--vt-ink-soft);
}
.vt-hard-word { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.vt-hard-target { font-weight: 800; letter-spacing: -0.01em; }
.vt-hard-native { color: var(--vt-ink-soft); font-size: 0.88rem; }
.vt-hard-meta { flex: none; text-align: right; display: flex; flex-direction: column; }
.vt-hard-wrong { font-weight: 800; color: var(--vt-accent-ink); }
.vt-hard-rate { color: var(--vt-ink-soft); font-size: 0.82rem; }

/* --- Activity table -------------------------------------------------------- */
.vt-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.vt-table th, .vt-table td { padding: 0.7rem 0.85rem; text-align: left; white-space: nowrap; }
.vt-table thead th {
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--vt-ink-soft);
  border-bottom: 2px solid var(--vt-line);
}
.vt-table tbody tr + tr td { border-top: 1px solid var(--vt-line); }
.vt-table .vt-num { text-align: right; font-variant-numeric: tabular-nums; }
.vt-table-name { font-weight: 750; color: var(--vt-ink); text-decoration: none; }
.vt-table-name:hover { color: #0d7d72; text-decoration: underline; }
.vt-lvl {
  display: inline-grid;
  place-items: center;
  min-width: 1.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 8px;
  background: var(--vt-sun);
  color: var(--vt-ink);
  font-weight: 850;
}
.vt-streak { font-weight: 800; color: var(--vt-accent-ink); }
.vt-dash-mark { color: var(--vt-line); }

/* --- Per-phase mastery rows (student mastery) ----------------------------- */
.vt-phaselist { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.vt-phase-row { display: flex; align-items: center; gap: 0.6rem; }
.vt-phase-label { flex: 0 0 8rem; font-weight: 700; color: var(--vt-ink); }
.vt-phase-count { flex: 0 0 3rem; text-align: right; font-weight: 750; font-size: 0.9rem; color: var(--vt-ink-soft); font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .vt-phase-label { flex-basis: 6rem; font-size: 0.9rem; } }
