/* ── Live Interview — specific styles ─────────────────────────────── */

.live-main {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  position: relative;
}

.live-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--card-r);
  padding: 1.8rem;
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow);
}

/* ── Setup screen ───────────────────────────────────────────────── */
.live-title    { font-size: 1.6rem; font-weight: 900; margin-bottom: .4rem; letter-spacing: -.02em; }
.live-subtitle { color: var(--muted); font-size: .92rem; margin-bottom: 1.8rem; line-height: 1.65; }

.setup-label {
  font-size: .78rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin-bottom: .8rem; display: block;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
  margin-bottom: 1.8rem;
}
@media (max-width: 520px) { .topic-grid { grid-template-columns: 1fr; } }

.topic-btn {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-size: .95rem;
  font-weight: 700;
  padding: 1.1rem .8rem;
  cursor: pointer;
  transition: all .2s;
}
.topic-btn:hover {
  border-color: var(--accent);
  background: rgba(124,58,237,.05);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.topic-btn.active {
  border-color: var(--accent);
  background: rgba(124,58,237,.1);
  color: var(--accent);
  box-shadow: 0 2px 12px rgba(124,58,237,.15);
}

.setup-info {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-bottom: 2rem;
}
.info-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .9rem;
  color: var(--muted);
  font-weight: 500;
}

.btn-large {
  width: 100%; padding: 1rem; font-size: 1.05rem; font-weight: 800;
  border-radius: 12px; letter-spacing: .01em;
}

/* ── Interview header ────────────────────────────────────────────── */
.interview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.interview-meta  { display: flex; align-items: center; gap: .8rem; }
.topic-pill {
  font-size: .75rem; font-weight: 800; padding: .3rem .85rem;
  border-radius: 20px;
  background: rgba(124,58,237,.1);
  color: var(--accent);
  border: 1px solid rgba(124,58,237,.2);
}
.turn-counter { font-size: .85rem; color: var(--muted); font-weight: 600; }

.btn-danger-outline {
  background: transparent;
  border: 1.5px solid rgba(239,68,68,.4);
  color: var(--error);
  padding: .4rem 1rem;
  border-radius: 8px;
  font-size: .83rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.btn-danger-outline:hover { background: rgba(239,68,68,.07); border-color: var(--error); }

/* ── Agent status ────────────────────────────────────────────────── */
.agent-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--grad-soft);
  border: 1.5px solid rgba(124,58,237,.15);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
}
.agent-avatar { font-size: 1.8rem; }
.agent-status-text { font-size: .92rem; color: var(--text); font-weight: 600; }

/* ── Question box ────────────────────────────────────────────────── */
.question-label {
  font-size: .72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin-bottom: .5rem;
}
.current-question-text {
  font-size: 1.05rem; color: var(--text); line-height: 1.65; font-weight: 600;
}

/* ── Push-to-talk ────────────────────────────────────────────────── */
.ptt-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  margin: 1.4rem 0;
}

.ptt-btn {
  width: 130px; height: 130px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: rgba(124,58,237,.08);
  color: var(--text);
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  transition: all .15s;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 4px 20px rgba(124,58,237,.15);
}
.ptt-btn:disabled {
  border-color: var(--border);
  background: var(--bg);
  color: var(--muted);
  cursor: not-allowed;
  box-shadow: none;
}
.ptt-btn.recording {
  border-color: var(--error);
  background: rgba(239,68,68,.08);
  box-shadow: 0 0 0 8px rgba(239,68,68,.1);
  animation: pulse-ring .9s ease-in-out infinite;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 4px rgba(239,68,68,.2); }
  100% { box-shadow: 0 0 0 18px rgba(239,68,68,.0); }
}
.ptt-icon  { font-size: 2.2rem; line-height: 1; }
.ptt-label { font-size: .78rem; text-align: center; line-height: 1.3; font-weight: 700; }
.ptt-hint  { font-size: .82rem; color: var(--muted); text-align: center; font-weight: 500; }

/* ── Finish row ──────────────────────────────────────────────────── */
.finish-row {
  display: flex;
  justify-content: center;
  margin: .2rem 0 1rem;
}
.finish-row .btn-danger-outline { padding: .6rem 1.8rem; font-size: .92rem; }

/* ── Transcript live ─────────────────────────────────────────────── */
.transcript-live-label {
  font-size: .72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin-bottom: .4rem;
}
.live-transcript-text { font-size: .9rem; color: var(--text-dim); font-style: italic; line-height: 1.65; }

/* ── Conversation history ────────────────────────────────────────── */
.conversation-history { display: flex; flex-direction: column; gap: .9rem; margin-top: .5rem; }

.history-item {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  font-size: .87rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.history-q { color: var(--text); font-weight: 500; }
.history-a { color: var(--muted); }
.history-f { color: var(--success); font-weight: 500; }
.h-label {
  font-weight: 800; color: var(--accent); font-size: .75rem;
  text-transform: uppercase; letter-spacing: .06em; margin-right: .35rem;
}

/* ── Results ─────────────────────────────────────────────────────── */
.verdict-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.6rem;
}
.verdict-header h2 { font-size: 1.4rem; font-weight: 900; letter-spacing: -.02em; }

.verdict-badge {
  font-size: .85rem; font-weight: 800; padding: .4rem 1.1rem;
  border-radius: 20px; text-transform: uppercase; letter-spacing: .08em;
}
.verdict-pass       { background: rgba(16,185,129,.12); color: var(--success); border: 1px solid rgba(16,185,129,.25); }
.verdict-borderline { background: rgba(245,158,11,.12); color: var(--warn);    border: 1px solid rgba(245,158,11,.25); }
.verdict-fail       { background: rgba(239,68,68,.12);  color: var(--error);   border: 1px solid rgba(239,68,68,.25); }

.score-row {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-bottom: 1.6rem;
  background: var(--grad-soft);
  border: 1.5px solid rgba(124,58,237,.15);
  border-radius: 14px;
  padding: 1.2rem 1.5rem;
}
.score-circle-wrap { position: relative; width: 90px; flex-shrink: 0; }

.verdict-summary { font-size: .92rem; color: var(--text-dim); line-height: 1.75; }

.verdict-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
@media (max-width: 520px) { .verdict-grid { grid-template-columns: 1fr; } }

.disclaimer-box {
  font-size: .8rem;
  color: var(--muted);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: .85rem 1.1rem;
  line-height: 1.65;
  margin-bottom: 1.4rem;
}

.try-again-row {
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: .5rem;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--muted);
  padding: .6rem 1.3rem;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: rgba(124,58,237,.04); }

/* ── Audio analysis dropdown ──────────────────────────────────────── */
.audio-details {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  margin-bottom: 1.4rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.audio-summary-toggle {
  cursor: pointer;
  padding: 1rem 1.3rem;
  font-size: .92rem;
  font-weight: 700;
  background: var(--surface);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: background .2s;
}
.audio-summary-toggle::-webkit-details-marker { display: none; }
.audio-summary-toggle:hover { background: rgba(124,58,237,.04); }
.toggle-hint { font-size: .75rem; font-weight: 500; color: var(--muted); }
details[open] .toggle-hint { display: none; }

.audio-details-body {
  padding: 1.1rem 1.3rem 1.3rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.audio-feedback-text {
  font-size: .875rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.1rem;
}
.audio-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}
@media (max-width: 480px) { .audio-stats-grid { grid-template-columns: repeat(2, 1fr); } }

.audio-stat {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: .75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.audio-stat-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.audio-stat-val   { font-size: 1.05rem; font-weight: 800; color: var(--text); }

/* ── Per-turn audio & ideal answer dropdowns ──────────────────────── */
.history-audio,
.history-ideal {
  margin-top: .65rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.history-audio-toggle,
.history-ideal-toggle {
  cursor: pointer;
  padding: .55rem .9rem;
  font-size: .79rem;
  font-weight: 700;
  background: var(--surface);
  list-style: none;
  display: flex;
  align-items: center;
  gap: .5rem;
  user-select: none;
  transition: background .2s;
}
.history-audio-toggle::-webkit-details-marker,
.history-ideal-toggle::-webkit-details-marker { display: none; }
.history-audio-toggle:hover,
.history-ideal-toggle:hover { background: rgba(124,58,237,.05); }

.h-mini-stats {
  font-size: .75rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: .3rem;
}
.history-audio-body {
  padding: .65rem .9rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  font-size: .82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.history-audio-body span { white-space: nowrap; font-weight: 600; }
.h-audio-text {
  width: 100%;
  font-size: .81rem;
  color: var(--muted);
  line-height: 1.6;
  margin: .3rem 0 0;
}
.history-ideal-text {
  padding: .7rem .9rem;
  font-size: .85rem;
  line-height: 1.7;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  margin: 0;
  background: var(--bg);
}
