/* Viva Vox word trainer, shared by every course's word bank.
   The Viva Vox identity of the homepage (brand-premium.css): wine, ivory and
   powder; terracotta only for actions; champagne and gold as decoration;
   Cormorant Garamond for words and headings, Manrope for everything else;
   square corners, quiet shadows. */

.vt {
  --vt-wine: #4a2636;
  --vt-wine-2: #61394b;
  --vt-wine-deep: #3d1f2c;
  --vt-ivory: #faf7f3;
  --vt-powder: #eedfd8;
  --vt-terra: #a94a3b;
  --vt-terra-h: #903d31;
  --vt-ink: #392f32;
  --vt-muted: #65545b;
  --vt-champagne: #c8b69a;
  --vt-gold: #c9973a;
  --vt-border: #ded0c5;
  --vt-surface: #fffdfa;
  --vt-ok: #3f6b54;
  --vt-ok-bg: #edf2ec;
  --vt-no: #a3392b;
  --vt-no-bg: #f7e9e5;
  --vt-head: 'Cormorant Garamond', Georgia, serif;
  --vt-body: 'Manrope', system-ui, -apple-system, sans-serif;
  font-family: var(--vt-body);
  color: var(--vt-ink);
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1rem 5rem;
  line-height: 1.6;
  font-size: 16px;
}
.vt *, .vt *::before, .vt *::after { box-sizing: border-box; }
.vt [hidden] { display: none !important; }
/* zero specificity, so any component rule below sets its own colour */
:where(.vt) button { font-family: inherit; color: inherit; }
.vt :is(a, button, input):focus-visible { outline: 2px solid var(--vt-terra); outline-offset: 3px; }
.vt mark { background: rgba(200, 182, 154, 0.38); color: inherit; padding: 0 2px; border-radius: 2px; }

/* ── buttons ── */
.vt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 46px; padding: 0.7rem 1.4rem; border-radius: 4px; border: 1px solid var(--vt-terra); cursor: pointer;
  background: var(--vt-terra); color: var(--vt-ivory) !important; font-weight: 600; font-size: 0.94rem;
  transition: background-color 0.2s, border-color 0.2s;
}
.vt-btn:hover { background: var(--vt-terra-h); border-color: var(--vt-terra-h); }
.vt-btn.ghost { background: transparent; color: var(--vt-wine) !important; border-color: var(--vt-wine); }
.vt-btn.ghost:hover { background: var(--vt-wine); color: var(--vt-ivory) !important; }
.vt-btn.wide { width: 100%; }
.vt-btn.sm { min-height: 38px; padding: 0.4rem 0.95rem; font-size: 0.85rem; }
.vt-link {
  background: none; border: none; padding: 0.35rem 0; cursor: pointer; font-size: 0.86rem; font-weight: 500;
  color: var(--vt-wine); text-decoration: underline; text-decoration-color: var(--vt-champagne);
  text-underline-offset: 4px; display: inline-flex; align-items: center; gap: 0.35rem;
}
.vt-link:hover { color: var(--vt-terra); text-decoration-color: currentColor; }
.vt-icon {
  width: 38px; height: 38px; border-radius: 4px; border: none; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: var(--vt-muted);
}
.vt-icon:hover { background: var(--vt-powder); color: var(--vt-wine); }
.vt-play {
  flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--vt-border); cursor: pointer;
  background: var(--vt-surface); color: var(--vt-wine); display: inline-flex; align-items: center; justify-content: center;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.vt-play svg { margin-left: 2px; }
.vt-play:hover, .vt-play.playing { background: var(--vt-wine); border-color: var(--vt-wine); color: var(--vt-ivory); }
.vt-play.lg { width: 50px; height: 50px; }

/* ── hero ── */
.vt-hero { padding: 2.25rem 0 1.5rem; animation: vt-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.vt-eyebrow { margin: 0 0 0.8rem; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--vt-terra); }
.vt-hero h1 { font-family: var(--vt-head); font-weight: 400; font-size: clamp(2.7rem, 8vw, 4rem); line-height: 1.04; letter-spacing: -0.01em; color: var(--vt-wine); margin: 0 0 0.8rem; }
.vt-hero h1 em { font-style: italic; color: var(--vt-terra); }
.vt-lede { margin: 0; max-width: 620px; color: var(--vt-muted); font-size: 1.02rem; line-height: 1.7; }
.vt-all { display: inline-block; margin-top: 0.8rem; font-size: 0.88rem; font-weight: 500; color: var(--vt-wine); text-decoration: underline; text-decoration-color: var(--vt-champagne); text-underline-offset: 4px; }
.vt-all:hover { color: var(--vt-terra); }
/* ── the same words on every device ── */
.vt-sync { margin: 0 0 1.25rem; }
.vt-sync-open {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.45rem 1rem 0.45rem 0.85rem; cursor: pointer;
  border: 1px dashed var(--vt-champagne); border-radius: 100px; background: transparent; font: inherit; font-size: 0.88rem; font-weight: 600; color: var(--vt-wine);
}
.vt-sync-open svg { color: var(--vt-terra); }
.vt-sync-open:hover { background: var(--vt-surface); }
.vt-sync.open { border: 1px solid var(--vt-border); background: var(--vt-surface); border-radius: 4px; padding: 1rem 1.1rem; }
.vt-sync-intro { margin: 0 0 0.8rem; font-size: 0.9rem; line-height: 1.55; color: var(--vt-muted); }
.vt-sync-form { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
.vt-sync-form .vt-sync-intro { margin: 0; color: var(--vt-ink); }
.vt-sync-form label { display: flex; flex-direction: column; gap: 0.3rem; width: 100%; max-width: 360px; font-size: 0.8rem; font-weight: 600; color: var(--vt-muted); }
.vt-sync-form input[name=code] { letter-spacing: 0.3em; font-size: 1.2rem; font-weight: 600; }
.vt input[type=email] {
  width: 100%; font: inherit; font-size: 16px; color: var(--vt-ink); background: var(--vt-surface);
  border: 1px solid #b9a79f; border-radius: 4px; padding: 0.6rem 0.8rem; min-height: 46px;
}
.vt input[type=email]:focus { outline: none; border-color: var(--vt-terra); box-shadow: 0 0 0 3px rgba(169, 74, 59, 0.12); }
.vt-sync-alt { display: flex; gap: 1rem; flex-wrap: wrap; }
.vt-sync-msg { margin: 0.6rem 0 0; min-height: 1.2em; font-size: 0.86rem; color: var(--vt-terra); font-weight: 600; }
.vt-sync-msg:empty { display: none; }
.vt-sync.on { display: flex; align-items: center; gap: 0.4rem 1rem; flex-wrap: wrap; font-size: 0.86rem; color: var(--vt-ink); }
.vt-sync-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--vt-ok); flex: none; }
.vt-sync-dot.err { background: var(--vt-champagne); }
.vt-sync-text { flex: 1 1 14rem; line-height: 1.45; }
.vt-sync-acts { display: flex; gap: 1.1rem; margin-left: auto; }
.vt-sync-text small { display: block; color: var(--vt-muted); font-size: 0.78rem; }

/* ── the language of the bank (/my-words) ── */
.vt-langs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.25rem; }
.vt-lang {
  flex: none; min-height: 40px; border: 1px solid var(--vt-champagne); background: transparent; border-radius: 100px;
  padding: 0.4rem 0.95rem; font: inherit; font-size: 0.86rem; font-weight: 500; color: var(--vt-wine); cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.vt-lang:hover { background: var(--vt-surface); }
.vt-lang.on { background: var(--vt-terra); border-color: var(--vt-terra); color: var(--vt-ivory); }
@keyframes vt-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ── course filters ── */
.vt-chips { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.2rem 0 1rem; scrollbar-width: none; }
.vt-chips::-webkit-scrollbar { display: none; }
.vt-chip {
  flex: none; min-height: 40px; border: 1px solid var(--vt-border); background: var(--vt-surface); border-radius: 100px;
  padding: 0.45rem 1rem; font-size: 0.84rem; font-weight: 500; cursor: pointer; color: var(--vt-ink);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.vt-chip b { font-weight: 600; color: var(--vt-terra); margin-left: 0.2rem; }
.vt-chip:hover { border-color: var(--vt-champagne); color: var(--vt-wine); }
.vt-chip.on { background: var(--vt-wine); border-color: var(--vt-wine); color: var(--vt-ivory); }
.vt-chip.on b { color: var(--vt-champagne); }

/* ── the numbers: an editorial strip, not four boxes ── */
.vt-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--vt-champagne); border-bottom: 1px solid var(--vt-champagne); margin: 0.25rem 0 1.5rem; }
.vt-stats > div { padding: 0.9rem 0.4rem 0.8rem; text-align: center; }
.vt-stats > div + div { border-left: 1px solid var(--vt-border); }
.vt-stats b { display: block; font-family: var(--vt-head); font-weight: 500; font-size: 2.3rem; line-height: 1; color: var(--vt-wine); font-variant-numeric: lining-nums tabular-nums; }
.vt-stats span { display: block; margin-top: 0.35rem; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--vt-muted); }
.vt-stats .due b { color: var(--vt-terra); }
.vt-stats .known b { color: var(--vt-ok); }

/* ── today's training: the one wine card on the page ── */
.vt-daily {
  position: relative; overflow: hidden; width: 100%; cursor: pointer; text-align: left;
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "tag go" "title go" "desc go"; column-gap: 1.5rem; align-items: center;
  padding: 1.6rem 1.7rem; border: 1px solid var(--vt-wine); border-radius: 4px; color: var(--vt-ivory);
  background: linear-gradient(135deg, var(--vt-wine-deep) 0%, var(--vt-wine) 60%, #5a3043 100%);
  transition: box-shadow 0.35s, border-color 0.35s, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.vt-daily::before {
  content: ''; position: absolute; width: 320px; height: 320px; right: -110px; top: -150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 182, 154, 0.16) 0%, transparent 70%); pointer-events: none; transition: transform 0.6s;
}
.vt-daily:hover:not(:disabled) { border-color: var(--vt-champagne); box-shadow: 0 18px 44px rgba(74, 38, 54, 0.26); transform: translateY(-2px); }
.vt-daily:hover:not(:disabled)::before { transform: scale(1.25); }
.vt-daily:disabled { cursor: default; opacity: 0.6; }
.vt-daily-tag { grid-area: tag; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--vt-champagne); margin-bottom: 0.35rem; }
.vt-daily-title { grid-area: title; font-family: var(--vt-head); font-size: clamp(1.7rem, 5vw, 2.2rem); font-weight: 500; line-height: 1.1; font-variant-numeric: lining-nums; }
.vt-daily-title em { font-style: italic; color: var(--vt-champagne); }
.vt-daily-desc { grid-area: desc; margin-top: 0.45rem; font-size: 0.9rem; line-height: 1.55; color: rgba(250, 247, 243, 0.78); }
.vt-daily-go {
  grid-area: go; position: relative; background: var(--vt-terra); border: 1px solid var(--vt-champagne); color: var(--vt-ivory);
  border-radius: 4px; padding: 0.75rem 1.4rem; font-weight: 600; font-size: 0.92rem; white-space: nowrap; transition: background-color 0.2s;
}
.vt-daily:hover:not(:disabled) .vt-daily-go { background: var(--vt-terra-h); }
@media (max-width: 520px) {
  .vt-daily.empty { grid-template-columns: 1fr; grid-template-areas: "tag" "title" "desc" "go"; padding: 1.4rem 1.25rem; }
  .vt-daily.empty .vt-daily-go { margin-top: 1.1rem; text-align: center; }
  /* with words: the name and the button on one line */
  .vt-daily:not(.empty) { padding: 1.15rem 1.15rem 1.15rem 1.25rem; column-gap: 0.9rem; }
  .vt-daily:not(.empty) .vt-daily-title { font-size: 1.6rem; }
  .vt-daily:not(.empty) .vt-daily-go { padding: 0.7rem 1.1rem; }
}

/* a session left half way */
.vt-resume {
  display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 0.9rem;
  padding: 0.85rem 1rem; background: var(--vt-powder); border-left: 3px solid var(--vt-terra); border-radius: 4px;
}
.vt-resume-t { flex: 1 1 200px; display: flex; flex-direction: column; }
.vt-resume-t b { font-family: var(--vt-head); font-size: 1.3rem; font-weight: 600; color: var(--vt-wine); line-height: 1.2; }
.vt-resume-t span { font-size: 0.85rem; color: var(--vt-muted); }

.vt-h2 { font-family: var(--vt-body); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--vt-terra); font-weight: 600; margin: 2.25rem 0 0.9rem; }

/* ── the exercises ── */
.vt-modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
.vt-modes > :last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 640px) {
  .vt-modes { grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
  .vt-modes > :last-child:nth-child(odd) { grid-column: auto; }
  .vt-modes > :last-child:nth-child(3n+1) { grid-column: 1 / -1; }
}
.vt-mode {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; text-align: left; cursor: pointer;
  background: var(--vt-surface); border: 1px solid var(--vt-border); border-radius: 4px; padding: 1rem 1rem 1.05rem;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s, border-color 0.35s;
}
.vt-mode:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(74, 38, 54, 0.1); border-color: var(--vt-champagne); }
.vt-mode:disabled { cursor: default; background: transparent; }
.vt-mode:disabled :is(.vt-mode-ic, b) { opacity: 0.4; }
.vt-mode-ic { color: var(--vt-wine); margin-bottom: 0.45rem; }
.vt-mode { position: relative; }
.vt-mode.just { border-color: var(--vt-champagne); box-shadow: inset 0 3px 0 var(--vt-terra); }
.vt-mode-last {
  position: absolute; top: 0.7rem; right: 0.7rem; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--vt-terra); background: var(--vt-ivory); border: 1px solid var(--vt-champagne); border-radius: 100px; padding: 0.15rem 0.55rem;
}
.vt-mode-ic svg { width: 24px; height: 24px; stroke-width: 1.6; }
.vt-mode b { font-family: var(--vt-head); font-weight: 600; font-size: 1.32rem; line-height: 1.15; color: var(--vt-wine); }
.vt-mode > span:last-child { font-size: 0.79rem; color: var(--vt-muted); line-height: 1.45; display: flex; gap: 0.3rem; align-items: flex-start; margin-top: 0.15rem; }
.vt-mode > span:last-child svg { flex: none; margin-top: 2px; }

/* ── add your own ── */
/* adding sits right under the title, so it reads as the first thing to do */
.vt-add { margin: 0 0 1.25rem; border: 1px solid var(--vt-border); border-radius: 4px; background: var(--vt-surface); box-shadow: 0 6px 18px rgba(74, 38, 54, 0.06); }
.vt-add.open { box-shadow: 0 10px 26px rgba(74, 38, 54, 0.1); }
.vt-add-toggle {
  width: 100%; display: flex; align-items: center; gap: 0.6rem; cursor: pointer; background: none; border: none;
  padding: 1rem 1.1rem; font-family: var(--vt-head); font-size: 1.3rem; font-weight: 600; color: var(--vt-wine) !important; text-align: left;
}
.vt-add-toggle svg { flex: none; box-sizing: border-box; width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--vt-terra); color: var(--vt-ivory); transition: transform 0.25s; }
.vt-add.open .vt-add-toggle svg { transform: rotate(45deg); }
.vt-add-body { display: none; padding: 0 1.1rem 1.1rem; }
.vt-add.open .vt-add-body { display: block; }
.vt-add-form, .vt-bulk-form { display: flex; gap: 0.75rem; flex-direction: column; }
.vt-voice-form { display: flex; gap: 0.75rem; flex-direction: column; }
.vt-add-form[hidden], .vt-bulk-form[hidden], .vt-voice-form[hidden], .vt-voice-result[hidden] { display: none; }
.vt-voice-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.vt-voice-mic {
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem; min-height: 104px; padding: 0.9rem 0.6rem; cursor: pointer;
  border: 1px solid var(--vt-wine); border-radius: 4px; background: var(--vt-wine); color: var(--vt-champagne);
  font: inherit; font-size: 0.88rem; font-weight: 600; transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.vt-voice-mic span { color: var(--vt-ivory); }
.vt-voice-mic svg { width: 30px; height: 30px; }
.vt-voice-mic + .vt-voice-mic { background: var(--vt-surface); color: var(--vt-wine); }
.vt-voice-mic + .vt-voice-mic span { color: var(--vt-wine); }
.vt-voice-mic.on { background: var(--vt-terra); border-color: var(--vt-terra); color: var(--vt-ivory); animation: vt-pulse 1.4s ease-in-out infinite; }
.vt-voice-mic.on span { color: var(--vt-ivory); }
.vt-voice-mic:disabled { opacity: 0.45; cursor: default; }
.vt-voice-form .vt-heard { text-align: left; }
.vt-voice-result { display: flex; flex-direction: column; gap: 0.75rem; }
.vt-voice-result label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.8rem; font-weight: 600; color: var(--vt-muted); }
.vt-add-tabs { display: flex; gap: 0.25rem; margin: 0 0 1rem; border-bottom: 1px solid var(--vt-border); }
.vt-add-tabs button {
  background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer;
  padding: 0.5rem 0.8rem 0.6rem; font: inherit; font-size: 0.88rem; font-weight: 600; color: var(--vt-muted); min-height: 44px;
}
.vt-add-tabs button[aria-selected="true"] { color: var(--vt-wine); border-bottom-color: var(--vt-terra); }
.vt-add-hint { margin: -0.2rem 0 0; font-size: 0.8rem; color: var(--vt-muted); line-height: 1.5; }
.vt textarea {
  width: 100%; font: inherit; font-size: 16px; line-height: 1.55; color: var(--vt-ink); background: var(--vt-surface);
  border: 1px solid #b9a79f; border-radius: 4px; padding: 0.6rem 0.8rem; resize: vertical; min-height: 9.5rem;
}
.vt textarea::placeholder { color: #9a8a88; }
.vt textarea:focus { outline: none; border-color: var(--vt-terra); box-shadow: 0 0 0 3px rgba(169, 74, 59, 0.12); }
.vt-btn:disabled { opacity: 0.55; cursor: progress; }
.vt-add-form label, .vt-bulk-form label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.8rem; font-weight: 600; color: var(--vt-muted); }
.vt input[type=text], .vt input:not([type]), .vt input[type=search] {
  width: 100%; font: inherit; font-size: 16px; color: var(--vt-ink); background: var(--vt-surface);
  border: 1px solid #b9a79f; border-radius: 4px; padding: 0.6rem 0.8rem; min-height: 46px;
}
.vt input::placeholder { color: #9a8a88; }
.vt input:focus { outline: none; border-color: var(--vt-terra); box-shadow: 0 0 0 3px rgba(169, 74, 59, 0.12); }
.vt-add-row { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.vt-add-msg { font-size: 0.86rem; color: var(--vt-ok); font-weight: 600; }

/* ── the list ── */
.vt-list-head { display: flex; align-items: center; gap: 1rem; margin-top: 2.25rem; }
.vt-list-head .vt-h2 { margin: 0; flex: none; }
.vt-list-head .vt-search { flex: 1; min-height: 42px; padding: 0.45rem 0.85rem; }
.vt-filters { display: flex; gap: 0.4rem; overflow-x: auto; margin: 0.8rem 0 0.4rem; scrollbar-width: none; }
.vt-filters::-webkit-scrollbar { display: none; }
.vt-filter { flex: none; background: none; border: 1px solid transparent; border-radius: 100px; padding: 0.35rem 0.85rem; font-size: 0.84rem; font-weight: 500; color: var(--vt-muted); cursor: pointer; }
.vt-filter:hover { color: var(--vt-wine); }
.vt-filter.on { border-color: var(--vt-wine); color: var(--vt-wine); }

.vt-word { display: flex; align-items: flex-start; gap: 0.8rem; padding: 1rem 0; border-bottom: 1px solid var(--vt-border); }
.vt-word-t { flex: 1; min-width: 0; }
.vt-word-en { font-family: var(--vt-head); font-weight: 600; font-size: 1.4rem; line-height: 1.2; color: var(--vt-wine); overflow-wrap: anywhere; }
.vt-word-uk { color: var(--vt-ink); font-size: 0.95rem; margin-top: 0.1rem; }
.vt-word-ctx { margin-top: 0.45rem; font-size: 0.86rem; color: var(--vt-muted); line-height: 1.55; border-left: 2px solid var(--vt-champagne); padding-left: 0.7rem; }
.vt-word-ctx i { display: block; font-size: 0.82rem; opacity: 0.9; }
.vt-word-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; margin-top: 0.5rem; font-size: 0.75rem; color: var(--vt-muted); }
.vt-word-meta .due { color: var(--vt-terra); font-weight: 600; }
.vt-st { font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.66rem; }
.vt-st.new { color: var(--vt-wine-2); }
.vt-st.learning { color: var(--vt-terra); }
.vt-st.known { color: var(--vt-ok); }
.vt-word-act { display: flex; flex-direction: column; gap: 0.1rem; margin-top: -0.2rem; }
.vt-edit { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-top: 0.55rem; }
.vt-edit input { flex: 1; min-width: 160px; }
.vt-empty { text-align: center; color: var(--vt-muted); padding: 2.25rem 0.5rem; }
.vt-empty p { margin: 0 0 0.6rem; }
.vt-empty a { color: var(--vt-terra); font-weight: 600; }

.vt-backup { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--vt-champagne); display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; align-items: center; }
.vt-backup p { flex-basis: 100%; margin: 0 0 0.25rem; font-size: 0.85rem; color: var(--vt-muted); }

/* sharing and a Google review, the last thing on the page */
.vt-spread { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.vt-spread-item { display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; padding: 1.15rem 1.2rem 1.25rem; border: 1px solid var(--vt-border); border-radius: 4px; background: var(--vt-surface); }
.vt-spread-item h3 { margin: 0; font-family: var(--vt-head); font-size: 1.35rem; font-weight: 600; line-height: 1.2; color: var(--vt-wine); }
.vt-spread-item p { margin: 0 0 0.45rem; font-size: 0.88rem; line-height: 1.55; color: var(--vt-muted); }
.vt-spread-item .vt-btn { margin-top: auto; text-decoration: none; }
@media (max-width: 560px) { .vt-spread { grid-template-columns: 1fr; } }

.vt-toast {
  position: fixed; left: 50%; bottom: 1.25rem; transform: translate(-50%, 150%); z-index: 200;
  background: var(--vt-wine); color: var(--vt-ivory); padding: 0.75rem 1.1rem; border-radius: 4px; font-size: 0.9rem;
  box-shadow: 0 12px 30px rgba(57, 47, 50, 0.25); transition: transform 0.25s, opacity 0.25s; max-width: calc(100% - 2rem);
  display: flex; align-items: center; gap: 0.9rem; opacity: 0; pointer-events: none;
}
.vt-toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.vt-toast button { background: none; border: none; color: var(--vt-champagne) !important; font-weight: 700; cursor: pointer; padding: 0.2rem; text-decoration: underline; text-underline-offset: 3px; }

/* ── a session ── */
.vt-session { padding-top: 0.5rem; }
.vt-s-top { display: flex; align-items: center; gap: 0.9rem; position: sticky; top: 0; z-index: 5; background: var(--vt-ivory); padding: 0.75rem 0; }
.vt-s-count { flex: none; font-size: 0.82rem; font-weight: 600; color: var(--vt-muted); min-width: 3rem; text-align: right; font-variant-numeric: tabular-nums; }
.vt-s-back {
  flex: none; display: inline-flex; align-items: center; gap: 0.3rem; min-height: 40px; padding: 0 0.95rem 0 0.6rem;
  border: 1px solid var(--vt-border); border-radius: 100px; background: var(--vt-surface); cursor: pointer;
  font-size: 0.86rem; font-weight: 600; color: var(--vt-wine); transition: border-color 0.2s, background-color 0.2s;
}
.vt-s-back:hover { border-color: var(--vt-wine); }
/* in a session the page's link out to the course gives way to "← Словник" */
body.vt-in-session .vt-topbar :is(.vt-back, .vt-install) { visibility: hidden; }
.vt-s-bar { flex: 1; height: 4px; background: var(--vt-powder); overflow: hidden; }
.vt-s-bar i { display: block; height: 100%; width: 0; background: var(--vt-terra); transition: width 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.vt-s-stage { max-width: 600px; margin: 0 auto; padding-top: 1rem; animation: vt-rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.vt-ex-label {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; width: 100%; margin-bottom: 1rem; padding: 0; border: none; background: none; cursor: pointer; text-align: left;
  color: var(--vt-terra) !important; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
.vt-ex-label svg { width: 18px; height: 18px; }
.vt-ex-label em {
  margin-left: auto; font-style: normal; letter-spacing: 0; text-transform: none; font-size: 0.82rem; font-weight: 500;
  color: var(--vt-wine); text-decoration: underline; text-decoration-color: var(--vt-champagne); text-underline-offset: 4px;
}
.vt-ex-label:hover em { color: var(--vt-terra); }
.vt-ex-label[aria-expanded="true"] em { text-decoration-color: currentColor; }
.vt-switch { margin: -0.3rem 0 1.1rem; padding: 0.9rem 1rem; background: var(--vt-powder); border-radius: 4px; }
.vt-switch p { margin: 0 0 0.6rem; font-size: 0.86rem; color: var(--vt-ink); }
.vt-switch .vt-chip, .vt-done-chips .vt-chip { display: inline-flex; align-items: center; gap: 0.4rem; }
.vt-switch .vt-chip svg { width: 16px; height: 16px; color: var(--vt-terra); }
.vt-done-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.vt-ex-help { color: var(--vt-muted); font-size: 0.92rem; margin: 0 0 0.9rem; }

.vt-prompt, .vt-card {
  background: var(--vt-surface); border: 1px solid var(--vt-border); border-top: 3px solid var(--vt-champagne); border-radius: 4px;
  padding: 1.8rem 1.4rem; text-align: center; margin-bottom: 1.1rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.vt-prompt-en, .vt-card-en { font-family: var(--vt-head); font-weight: 500; font-size: clamp(2.2rem, 8vw, 3rem); line-height: 1.08; color: var(--vt-wine); overflow-wrap: anywhere; }
.vt-prompt-uk { font-family: var(--vt-head); font-weight: 500; font-size: clamp(1.7rem, 6vw, 2.2rem); line-height: 1.2; color: var(--vt-wine); }
.vt-prompt-ctx, .vt-card-ctx { font-size: 0.97rem; color: var(--vt-muted); line-height: 1.6; max-width: 32rem; }
.vt-card-back { border-top: 1px solid var(--vt-border); padding-top: 0.9rem; width: 100%; }
.vt-card-uk { font-family: var(--vt-head); font-size: 1.7rem; font-weight: 500; color: var(--vt-ink); }
.vt-card-ctxuk { font-size: 0.9rem; color: var(--vt-muted); font-style: italic; margin-top: 0.3rem; }

.vt-gap-s { font-family: var(--vt-head); font-weight: 500; font-size: 1.6rem; line-height: 1.6; text-align: left; color: var(--vt-ink); }
.vt-gap-s.sm { font-size: 1.25rem; color: var(--vt-muted); }
.vt-blank {
  display: inline-block; min-width: 3.5em; border-bottom: 2px solid var(--vt-terra); margin: 0 0.15em;
  line-height: 1.15; text-align: center; font-weight: 600; color: var(--vt-wine);
}
.vt-blank.ok { color: var(--vt-ok); border-color: var(--vt-ok); }
/* after a wrong answer the blank shows the right word, underlined in red */
.vt-blank.no { color: var(--vt-ok); border-color: var(--vt-no); }
.vt-hint-t { font-size: 0.92rem; color: var(--vt-muted); font-style: italic; }

/* listening and speaking: one round control, wine at rest, terracotta in use */
.vt-listen { padding: 2rem 1.4rem 1.5rem; }
.vt-big-play, .vt-mic {
  width: 92px; height: 92px; border-radius: 50%; border: 1px solid var(--vt-wine); cursor: pointer;
  background: var(--vt-wine); color: var(--vt-champagne); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(74, 38, 54, 0.22); transition: transform 0.2s, background-color 0.2s, color 0.2s;
}
.vt-big-play svg, .vt-mic svg { width: 38px; height: 38px; stroke-width: 1.6; }
.vt-big-play:hover, .vt-mic:hover:not(:disabled) { transform: scale(1.04); }
.vt-big-play.playing { background: var(--vt-terra); border-color: var(--vt-terra); color: var(--vt-ivory); }
.vt-listen-row { display: flex; gap: 1.5rem; justify-content: center; }
.vt-listen-hint { margin: 0; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--vt-muted); }

.vt-mic-box { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; padding: 0.6rem 0 0.4rem; }
.vt-mic.on { background: var(--vt-terra); border-color: var(--vt-terra); color: var(--vt-ivory); animation: vt-pulse 1.4s ease-in-out infinite; }
.vt-mic:disabled { opacity: 0.45; cursor: default; box-shadow: none; }
@keyframes vt-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(169, 74, 59, 0.35); } 50% { box-shadow: 0 0 0 16px rgba(169, 74, 59, 0); } }
.vt-mic-say { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--vt-wine); }
.vt-heard { margin: 0; min-height: 1.5em; font-size: 0.93rem; color: var(--vt-muted); text-align: center; max-width: 30rem; }
.vt-said { font-family: var(--vt-head); font-size: 1.15em; font-style: italic; color: var(--vt-ink); }

.vt-opts { display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
@media (min-width: 560px) { .vt-opts { grid-template-columns: 1fr 1fr; } }
.vt-opt {
  display: flex; align-items: center; gap: 0.75rem; text-align: left; cursor: pointer; min-height: 56px;
  background: var(--vt-surface); border: 1px solid var(--vt-border); border-radius: 4px; padding: 0.75rem 0.95rem;
  font-size: 1.02rem; font-weight: 500; line-height: 1.35; color: var(--vt-ink);
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}
.vt-opt[lang="en"] { font-family: var(--vt-head); font-size: 1.3rem; font-weight: 600; color: var(--vt-wine); }
.vt-opt kbd {
  flex: none; width: 24px; height: 24px; border-radius: 3px; background: var(--vt-powder); color: var(--vt-wine);
  font: 600 0.72rem var(--vt-body); display: inline-flex; align-items: center; justify-content: center;
}
.vt-opt:hover:not(:disabled) { border-color: var(--vt-champagne); transform: translateY(-1px); }
.vt-opt:disabled { cursor: default; }
.vt-opt.ok { border-color: var(--vt-ok); background: var(--vt-ok-bg); color: var(--vt-ok); }
.vt-opt.no { border-color: var(--vt-no); background: var(--vt-no-bg); color: var(--vt-no); }
.vt-opt:disabled:not(.ok):not(.no) { opacity: 0.5; }

.vt-grades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.45rem; }
.vt-grades button {
  min-height: 58px; border-radius: 4px; border: 1px solid var(--vt-border); background: var(--vt-surface);
  cursor: pointer; padding: 0.4rem 0.3rem; display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: border-color 0.2s;
}
.vt-grades b { font-size: 0.88rem; font-weight: 600; color: var(--vt-wine); }
.vt-grades span { font-size: 0.68rem; color: var(--vt-muted); }
.vt-grades [data-q="0"] b { color: var(--vt-no); }
.vt-grades [data-q="4"] b { color: var(--vt-ok); }
.vt-grades button:hover { border-color: var(--vt-champagne); }

.vt-match { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.vt-match-col { display: flex; flex-direction: column; gap: 0.55rem; }
.vt-tile {
  min-height: 58px; border-radius: 4px; border: 1px solid var(--vt-border); background: var(--vt-surface);
  cursor: pointer; padding: 0.5rem 0.6rem; font-size: 0.94rem; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere;
  transition: border-color 0.2s, background-color 0.2s, opacity 0.35s;
}
.vt-tile[lang="en"] { font-family: var(--vt-head); font-size: 1.2rem; font-weight: 600; color: var(--vt-wine); }
.vt-tile.sel { border-color: var(--vt-wine); background: var(--vt-powder); }
.vt-tile.ok { border-color: var(--vt-ok); background: var(--vt-ok-bg); color: var(--vt-ok); opacity: 0.5; cursor: default; }
.vt-tile.no { border-color: var(--vt-no); background: var(--vt-no-bg); animation: vt-shake 0.35s; }
@keyframes vt-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.vt-build-out {
  min-height: 62px; border-bottom: 2px solid var(--vt-terra); margin: 0.25rem 0 1.1rem;
  display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: flex-end; justify-content: center; padding: 0.45rem 0;
}
.vt-build-out.ok { border-color: var(--vt-ok); }
.vt-build-out.no { border-color: var(--vt-no); }
.vt-build-in { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; min-height: 54px; }
.vt-piece {
  min-width: 46px; height: 50px; border-radius: 4px; border: 1px solid var(--vt-border); background: var(--vt-surface);
  font-family: var(--vt-head); font-size: 1.45rem; font-weight: 600; color: var(--vt-wine); cursor: pointer; padding: 0 0.75rem;
  box-shadow: 0 2px 0 var(--vt-border);
}
.vt-build-in.words .vt-piece, .vt-build-out.words .vt-piece { font-size: 1.2rem; }
.vt-build-out .vt-piece { background: var(--vt-powder); border-color: var(--vt-powder); box-shadow: none; }
.vt-row { display: flex; justify-content: center; gap: 1.6rem; margin-top: 0.8rem; flex-wrap: wrap; }

.vt-type { display: flex; gap: 0.5rem; }
.vt-type input { flex: 1; font-size: 1.15rem !important; }
.vt-type input.ok { border-color: var(--vt-ok); background: var(--vt-ok-bg); }
.vt-type input.no { border-color: var(--vt-no); background: var(--vt-no-bg); }

/* feedback after an answer */
.vt-fb { margin-top: 1.1rem; border-radius: 4px; border-left: 3px solid; padding: 1.05rem 1.15rem 1.15rem; animation: vt-rise 0.3s ease-out; }
.vt-fb.ok { background: var(--vt-ok-bg); border-color: var(--vt-ok); }
.vt-fb.no { background: var(--vt-no-bg); border-color: var(--vt-no); }
.vt-fb-head { display: flex; align-items: center; gap: 0.45rem; font-weight: 700; font-size: 0.98rem; margin-bottom: 0.55rem; }
.vt-fb.ok .vt-fb-head { color: var(--vt-ok); }
.vt-fb.no .vt-fb-head { color: var(--vt-no); }
.vt-fb-word { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; }
.vt-fb-word b { font-family: var(--vt-head); font-size: 1.45rem; font-weight: 600; color: var(--vt-wine); }
.vt-fb-word span { color: var(--vt-muted); }
.vt-fb-note { margin-top: 0.55rem; font-size: 0.94rem; line-height: 1.55; }
.vt-fb-ctx { margin-top: 0.65rem; font-size: 0.92rem; line-height: 1.6; color: var(--vt-ink); }
.vt-fb-ctx i { display: block; color: var(--vt-muted); font-size: 0.86rem; }
.vt-fb .vt-next { width: 100%; margin-top: 1rem; }

/* the end of an exercise: "what now?" first */
.vt-done { padding: 0.25rem 0 1rem; }
.vt-done-head { text-align: center; }
.vt-done-score { font-family: var(--vt-head); font-size: 3.8rem; font-weight: 500; color: var(--vt-wine); line-height: 1; font-variant-numeric: lining-nums; }
.vt-done-score span { font-size: 1.8rem; color: var(--vt-champagne); }
.vt-done-msg { color: var(--vt-muted); margin: 0.6rem auto 1.5rem; max-width: 30rem; }

.vt-done h3, .vt-continue h3 { font-family: var(--vt-body); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--vt-terra); font-weight: 600; margin: 0 0 0.35rem; }
.vt-continue { padding: 1.2rem 0 0.4rem; border-top: 1px solid var(--vt-champagne); }
.vt-continue-sub { margin: 0 0 0.9rem; font-size: 0.9rem; color: var(--vt-muted); }

.vt-next-step {
  position: relative; overflow: hidden; width: 100%; display: flex; align-items: center; gap: 1rem; text-align: left; cursor: pointer;
  padding: 1.1rem 1.2rem; border: 1px solid var(--vt-wine); border-radius: 4px; color: var(--vt-ivory);
  background: linear-gradient(135deg, var(--vt-wine-deep) 0%, var(--vt-wine) 65%, #5a3043 100%);
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
}
.vt-next-step:hover { border-color: var(--vt-champagne); box-shadow: 0 14px 34px rgba(74, 38, 54, 0.24); transform: translateY(-2px); }
.vt-next-step-ic { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(200, 182, 154, 0.5); color: var(--vt-champagne); display: flex; align-items: center; justify-content: center; }
.vt-next-step-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vt-next-step-t span { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--vt-champagne); }
.vt-next-step-t b { font-family: var(--vt-head); font-size: 1.55rem; font-weight: 500; line-height: 1.15; }
.vt-next-step-t i { font-style: normal; font-size: 0.84rem; color: rgba(250, 247, 243, 0.75); }
.vt-next-step-go { flex: none; width: 42px; height: 42px; border-radius: 4px; background: var(--vt-terra); border: 1px solid var(--vt-champagne); display: flex; align-items: center; justify-content: center; }

/* every other exercise as a card, as on the main screen */
.vt-continue-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin-top: 0.6rem; }
@media (min-width: 560px) { .vt-continue-grid { grid-template-columns: repeat(3, 1fr); } }
.vt-mini {
  display: flex; align-items: center; gap: 0.6rem; min-height: 58px; text-align: left; cursor: pointer;
  background: var(--vt-surface); border: 1px solid var(--vt-border); border-radius: 4px; padding: 0.6rem 0.75rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.vt-mini:hover { border-color: var(--vt-champagne); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(74, 38, 54, 0.08); }
.vt-mini-ic { flex: none; color: var(--vt-wine); display: flex; }
.vt-mini-ic svg { width: 21px; height: 21px; stroke-width: 1.6; }
.vt-mini b { font-family: var(--vt-head); font-size: 1.12rem; font-weight: 600; line-height: 1.15; color: var(--vt-wine); }

.vt-done-fix { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--vt-champagne); }
.vt-done-fix .vt-btn { margin-top: 0.7rem; }
.vt-done-list { background: var(--vt-surface); border: 1px solid var(--vt-border); border-radius: 4px; padding: 0.15rem 1rem; margin-top: 0.5rem; }
.vt-done-w { display: flex; align-items: center; gap: 0.65rem; padding: 0.5rem 0; border-top: 1px solid var(--vt-border); }
.vt-done-w:first-child { border-top: none; }
.vt-done-mark { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.vt-done-mark svg { width: 14px; height: 14px; stroke-width: 2.4; }
.vt-done-w.ok .vt-done-mark { background: var(--vt-ok-bg); color: var(--vt-ok); }
.vt-done-w.no .vt-done-mark { background: var(--vt-no-bg); color: var(--vt-no); }
.vt-done-w b { font-family: var(--vt-head); font-size: 1.3rem; font-weight: 600; color: var(--vt-wine); }
.vt-done-uk { flex: 1; min-width: 0; color: var(--vt-muted); font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-done-w .vt-play { width: 34px; height: 34px; }
.vt-done-good { margin-top: 1rem; }
.vt-done-good summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0;
  font-size: 0.88rem; font-weight: 600; color: var(--vt-ok);
}
.vt-done-good summary::-webkit-details-marker { display: none; }
.vt-done-good summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 1.5px solid var(--vt-muted); border-bottom: 1.5px solid var(--vt-muted); transform: rotate(45deg) translateY(-3px); transition: transform 0.2s; }
.vt-done-good[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.vt-done-good summary svg { width: 16px; height: 16px; stroke-width: 2.4; }
.vt-done-back { margin-top: 1.4rem; }
.vt-done-back .vt-btn svg { width: 16px; height: 16px; }

/* ── photos ── */
.vt-credit { display: block; font-size: 0.7rem; line-height: 1.4; color: var(--vt-muted); }
.vt-credit a { color: inherit; text-decoration: underline; text-decoration-color: var(--vt-champagne); text-underline-offset: 2px; }
.vt-thumb { flex: none; width: 52px; height: 52px; padding: 0; border: 1px solid var(--vt-border); border-radius: 4px; overflow: hidden; cursor: pointer; background: var(--vt-powder); }
.vt-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vt-thumb:hover { border-color: var(--vt-champagne); }
.vt-photo-q { margin: 0 0 1.1rem; text-align: center; }
.vt-photo-q img { display: block; width: 100%; max-width: min(380px, 70vw); aspect-ratio: 1; object-fit: cover; margin: 0 auto 0.4rem; border-radius: 4px; border: 1px solid var(--vt-border); background: var(--vt-powder); }
.vt-card-img { margin: 0 auto 0.7rem; max-width: 240px; }
.vt-card-img img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; margin-bottom: 0.3rem; }
.vt-fb-img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; border: 1px solid var(--vt-border); }

.vt-picker { position: fixed; inset: 0; z-index: 300; background: rgba(57, 47, 50, 0.55); display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 640px) { .vt-picker { align-items: center; } }
.vt-picker-box {
  width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--vt-ivory); border-radius: 8px 8px 0 0;
  padding: 1rem 1.1rem 1.3rem; box-shadow: 0 -10px 40px rgba(57, 47, 50, 0.3); animation: vt-rise 0.25s ease-out;
}
@media (min-width: 640px) { .vt-picker-box { border-radius: 8px; } }
.vt-picker-head { display: flex; align-items: center; gap: 0.5rem; }
.vt-picker-head b { flex: 1; font-family: var(--vt-head); font-size: 1.5rem; font-weight: 600; color: var(--vt-wine); }
.vt-picker-sub { margin: 0.1rem 0 0.9rem; font-size: 0.88rem; color: var(--vt-muted); }
.vt-picker-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; min-height: 120px; }
.vt-picker-wait { grid-column: 1 / -1; margin: 1.5rem 0; text-align: center; color: var(--vt-muted); font-size: 0.9rem; }
.vt-pick { margin: 0; min-width: 0; }
.vt-pick button { display: block; width: 100%; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; cursor: pointer; background: var(--vt-powder); }
.vt-pick img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.vt-pick button:hover { border-color: var(--vt-champagne); }
.vt-pick.on button { border-color: var(--vt-terra); }
.vt-pick .vt-credit { margin-top: 0.2rem; font-size: 0.64rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-picker-search { display: flex; gap: 0.5rem; margin-top: 1rem; }
.vt-picker-search input { flex: 1; }
.vt-picker-foot { margin-top: 0.6rem; text-align: center; }

@media (max-width: 380px) {
  .vt-stats b { font-size: 1.9rem; }
  .vt-grades b { font-size: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .vt *, .vt *::before, .vt *::after { transition: none !important; animation: none !important; }
}

/* ── the word bank pages around the trainer ── */
body.vt-page { margin: 0; background: #faf7f3; color: #392f32; -webkit-text-size-adjust: 100%; }
.vt-topbar-wrap { border-bottom: 1px solid #c8b69a; background: #faf7f3; }
.vt-topbar {
  display: flex; align-items: center; gap: 0.9rem; padding: 0.6rem 1rem; max-width: 820px; margin: 0 auto; min-height: 64px;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif; font-size: 0.84rem;
}
.vt-topbar .vt-logo { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; flex: none; }
.vt-topbar .vt-logo img { display: block; width: 108px; height: 42px; }
.vt-topbar .vt-logo span { color: #65545b; font-size: 0.8rem; letter-spacing: 0.06em; padding-left: 0.8rem; border-left: 1px solid #c8b69a; white-space: nowrap; }
.vt-topbar .vt-topbar-end { margin-left: auto; display: flex; align-items: center; gap: 0.9rem; }
.vt-topbar .vt-back { color: #4a2636; text-decoration: none; font-weight: 500; white-space: nowrap; }
.vt-topbar .vt-back:hover { color: #a94a3b; }
.vt-install {
  min-height: 38px; border: 1px solid #4a2636; background: transparent; border-radius: 4px; padding: 0.35rem 0.9rem; cursor: pointer;
  font: 600 0.8rem 'Manrope', sans-serif; color: #4a2636;
}
.vt-install:hover { background: #4a2636; color: #faf7f3; }
.vt-install-hint { max-width: 820px; margin: 0.75rem auto 0; padding: 0 1rem; font: 0.86rem/1.55 'Manrope', sans-serif; color: #65545b; }

/* The installed app (/my-words opened from the home screen): the site header
   would only take the learner out of the app, so it goes; the hero keeps the
   title and languages, and the logo signs off quietly at the very bottom. */
.vt-app-foot { display: none; }
html.vt-app .vt-topbar-wrap { display: none; }
html.vt-app body.vt-page { padding-top: env(safe-area-inset-top); }
html.vt-app .vt-hero { padding-top: 1.5rem; }
html.vt-app .vt-hero :is(.vt-eyebrow, .vt-lede) { display: none; }
html.vt-app .vt-app-foot { display: block; text-align: center; padding: 2.25rem 1rem calc(1.75rem + env(safe-area-inset-bottom)); }
html.vt-app .vt-app-foot img { display: inline-block; width: 92px; height: 36px; opacity: 0.85; }
html.vt-app body.vt-in-session .vt-app-foot { display: none; }
@media (max-width: 420px) {
  .vt-topbar .vt-logo img { width: 92px; height: 36px; }
  .vt-topbar .vt-logo span { display: none; }
}
