/* Thẻ từ vựng tiếng Anh (vocab.js): the list being made, and the study screen. */
.vc-input { font-family: inherit; }
.vc-tools { margin-top: 10px; gap: 8px; }
.vc-status { margin: 10px 0 0; }
.vc-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.vc-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vc-head .link { margin-left: auto; }
.vc-row { display: flex; align-items: flex-start; gap: 10px; background: var(--card); border: 1px solid var(--edge); border-radius: 12px; padding: 10px; }
.vc-row.lacking { border-color: #F5D9A6; background: var(--amber-soft); }
.vc-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); font-weight: 800; font-size: .8rem; display: grid; place-items: center; margin-top: 6px; }
.vc-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.vc-line { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.vc-field { padding: 8px 10px; font-size: .92rem; }
.vc-field.w { flex: 2 1 140px; font-weight: 800; }
.vc-field.ipa { flex: 1.4 1 120px; }
.vc-field.pos { flex: 0 1 80px; }
.vc-field.ex, .vc-field.exvi { flex: 1 1 220px; font-weight: 500; }
.vc-bar { position: sticky; bottom: 0; margin-top: 14px; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.vc-speak { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--teal-line); background: #fff; color: var(--teal); cursor: pointer; box-shadow: 0 2px 0 var(--teal-line); }
.vc-speak:active { transform: translateY(1px); box-shadow: none; }
.vc-speaker { display: inline-grid; place-items: center; color: var(--teal); }
.vc-speak:hover { border-color: var(--teal-line); background: var(--teal-soft); }

/* Studying */
.vc-modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0; }
@media (max-width: 520px) { .vc-modes { grid-template-columns: 1fr; } }
.vc-mode { display: flex; flex-direction: row; align-items: center; gap: 14px; text-align: left; font: inherit; color: inherit; cursor: pointer; margin: 0; padding: 16px; }
.vc-mode-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vc-art { flex: none; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 18px; background: var(--teal-soft); }
.vc-art img { width: 56px; height: auto; display: block; }
.vc-result-art { display: flex; justify-content: center; margin-bottom: 6px; }
.vc-result-art .vc-art { width: 104px; height: 104px; border-radius: 28px; }
.vc-result-art .vc-art img { width: 88px; }
.vc-mode:hover { border-color: var(--teal-line); }
.vc-words h3 { margin-top: 18px; }
.vc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; justify-content: center; }
.vc-words .vc-chips { justify-content: flex-start; }
.vc-chip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; background: #fff; border: 1px solid var(--edge); border-radius: 12px; padding: 6px 12px;
  font: 700 .95rem "Be Vietnam Pro", system-ui, sans-serif; color: var(--ink); cursor: pointer; text-align: left; }
.vc-chip small { font-weight: 500; color: var(--soft); font-size: .78rem; }
.vc-progress { height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; margin: 2px 0 10px; }
.vc-progress > span { display: block; height: 100%; background: var(--teal); border-radius: 999px; transition: width .2s; }
.vc-card { min-height: 320px; display: grid; place-items: center; text-align: center; }
.vc-face { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.vc-word { font-size: clamp(2rem, 7vw, 3rem); font-weight: 800; color: var(--ink); letter-spacing: -.01em; line-height: 1.15; word-break: break-word; }
.vc-ipa { color: var(--soft); font-size: 1.1rem; }
.vc-meaning { font-size: clamp(1.4rem, 5vw, 2rem); font-weight: 800; color: var(--teal-dark); line-height: 1.25; }
.vc-pos { display: inline-block; background: var(--amber-soft); color: var(--amber-ink); font-weight: 800; font-size: .8rem; border-radius: 999px; padding: 2px 10px; }
.vc-example { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 520px; margin-top: 6px; font-size: 1.02rem; }
.vc-example > span { font-style: italic; }
.vc-example small { color: var(--soft); }
.vc-example .vc-speak { width: 32px; height: 32px; font-size: .9rem; }
.vc-ask { text-align: center; padding: 18px 0 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.vc-ask .kind { color: var(--teal); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; }
.vc-replay { font-size: 1.1rem; min-height: 56px; padding: 0 28px; }
.vc-hint { font: 700 1.3rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .25em; color: var(--soft); }
.vc-spell { display: flex; gap: 10px; }
.vc-type { flex: 1; font-size: 1.2rem; }
.vc-type.right { border-color: var(--good); background: var(--good-soft); }
.vc-type.wrong { border-color: var(--bad); background: var(--bad-soft); }
.vc-feedback .card { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; box-shadow: none; }
.vc-feedback .btn { margin-top: 8px; }
.vc-good { background: var(--good-soft); border-color: #b5e3c6; }
.vc-good > b { color: var(--good-ink); }
.vc-bad { background: var(--bad-soft); border-color: #f2b8b8; }
.vc-bad > b { color: var(--bad-ink); }
.vc-missed { margin-top: 8px; }
