/* ── Conversation practice ── */
#conversationSection { display: none; max-width: 1000px; margin: 0 auto; font-family: var(--font); }
#conversationSection.active { display: block; }
.cv-warning { background: var(--warn-soft); border: 1px solid var(--warn-border); color: var(--warn-text); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 18px; }
.cv-section-head { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 10px; }
.cv-section-head h2 { margin: 0; font-size: 1.1em; }
.cv-levels { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.cv-levels button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.cv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.cv-card { position: relative; text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); font-weight: 400; }
.cv-card:hover:not(:disabled) { border-color: var(--primary); }
.cv-card b { color: var(--text); }
.cv-card p { margin: 0; color: var(--muted); font-size: .86em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cv-card .cv-del { position: absolute; top: 8px; right: 8px; padding: 2px 8px; font-size: .8em; }
.cv-level { align-self: flex-start; font-size: .72em; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.cv-empty { grid-column: 1 / -1; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 18px; text-align: center; }
.cv-history-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; }
.cv-history-item > div { flex: 1; min-width: 0; }
.cv-history-item .muted { font-size: .85em; }
.cv-score-badge { font-weight: 800; color: var(--success); }
.cv-chat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cv-chat-who { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cv-chat-who span { color: var(--muted); font-size: .85em; }
.cv-avatar { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 800; }
.cv-scene { background: var(--surface-2); border-radius: var(--radius); padding: 10px 14px; color: var(--text-2); font-size: .9em; margin-bottom: 14px; }
.cv-messages { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.cv-msg { max-width: 80%; }
.cv-msg.user { align-self: flex-end; }
.cv-bubble { padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); line-height: 1.5; }
.cv-msg.user .cv-bubble { background: var(--primary); border-color: var(--primary); color: #fff; }
.cv-msg.pending .cv-bubble { opacity: .6; }
.cv-msg-extra { margin-top: 6px; font-size: .88em; color: var(--muted); }
.cv-msg-extra.ipa { font-family: monospace; color: var(--success-text); }
.cv-msg-actions { display: flex; gap: 10px; margin-top: 4px; }
.cv-link { background: none; border: none; padding: 0; color: var(--primary); font-size: .82em; font-weight: 600; cursor: pointer; }
.cv-typing { color: var(--muted); font-style: italic; }
.cv-composer { position: sticky; bottom: 0; background: var(--bg); padding: 10px 0 14px; }
.cv-suggest { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.cv-suggest:not(:empty)::before { content: "💡 Thử dùng:"; color: var(--muted); font-size: .85em; align-self: center; }
.cv-suggest button { padding: 4px 10px; font-size: .88em; font-weight: 500; }
.cv-composer textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius); font: inherit; resize: vertical; }
.cv-composer-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.cv-composer-row .muted { flex: 1; font-size: .85em; }
.cv-mic { width: 52px; height: 52px; border-radius: 50%; font-size: 1.4em; padding: 0; }
.cv-mic.listening { background: var(--danger); border-color: var(--danger); color: #fff; animation: cv-pulse 1.2s infinite; }
@keyframes cv-pulse { 50% { box-shadow: 0 0 0 8px rgba(220, 38, 38, .2); } }
.cv-done { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.cv-done p { margin: 6px 0 14px; }
.cv-setup { max-width: 760px; }
.cv-setup-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; }
.cv-setup .fci-label { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.cv-setup .fci-label:first-child { margin-top: 0; }
.cv-partner { display: flex; gap: 10px; align-items: center; }
.cv-check { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; font-size: .9em; cursor: pointer; }
.cv-fb-top { display: flex; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 14px; }
.cv-fb-score { flex: 0 0 auto; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6em; font-weight: 800; color: var(--primary); background: var(--primary-soft); }
.cv-fb-top ul { margin: 8px 0 0; padding-left: 18px; color: var(--text-2); }
.cv-fb-turn { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
.cv-fb-turn .said { color: var(--muted); }
.cv-fb-turn .better { margin-top: 6px; color: var(--success); font-weight: 600; }
.cv-fb-turn .why { margin-top: 6px; font-size: .9em; color: var(--text-2); }
@media (max-width: 640px) {
  .cv-setup-grid { grid-template-columns: 1fr; }
  .cv-msg { max-width: 92%; }
}
.kbd-hints { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: -6px 0 16px; color: var(--muted); font-size: .82em; }
kbd {
  display: inline-block; min-width: 20px; padding: 1px 6px; margin-right: 3px;
  font-family: inherit; font-size: .92em; font-weight: 600; text-align: center;
  color: var(--text-2); background: var(--surface); border: 1px solid var(--border-strong);
  border-bottom-width: 2px; border-radius: 6px;
}
