:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #15171a;
  --muted: #69707a;
  --accent: #111827;
  --green: #0f9d58;
  --red: #d93025;
  --line: #e5e7eb;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
body { padding: 18px; }
.shell { width: min(720px, 100%); margin: 0 auto; }
.brand { text-align: center; margin: 8px 0 18px; }
.brand h1 { margin: 0; font-size: 27px; letter-spacing: -0.5px; }
.brand p { margin: 6px 0 0; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: 0 7px 30px rgba(0,0,0,.05); margin-bottom: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stack { display: grid; gap: 12px; }
button, select, input { font: inherit; }
button { width: 100%; border: 0; border-radius: 16px; padding: 15px 17px; font-weight: 750; font-size: 17px; cursor: pointer; background: var(--accent); color: white; }
button.secondary { background: #eef0f4; color: var(--text); }
button.danger { background: var(--red); }
button:disabled { opacity: .45; cursor: not-allowed; }
select, input { width: 100%; padding: 14px 15px; border-radius: 14px; border: 1px solid #d6dae1; background: white; color: var(--text); }
label { font-size: 13px; color: var(--muted); font-weight: 700; display: block; margin: 0 0 7px; }
.pill { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 7px 11px; background: #eef0f4; font-size: 13px; font-weight: 700; }
.dot { width: 9px; height: 9px; border-radius: 999px; background: #a0a6af; }
.dot.live { background: var(--green); box-shadow: 0 0 0 5px rgba(15,157,88,.12); }
.status { color: var(--muted); font-size: 14px; line-height: 1.45; }
.bigstatus { font-weight: 800; font-size: 20px; }
.lang-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.lang-btn { background: #f4f5f7; color: var(--text); border: 2px solid transparent; text-align: left; }
.lang-btn.selected { border-color: var(--accent); background: #fff; }
.transcript { min-height: 118px; max-height: 260px; overflow: auto; background: #111827; color: white; border-radius: 16px; padding: 16px; font-size: 18px; line-height: 1.45; }
.qr { width: min(260px, 80vw); display: block; margin: 0 auto; background: white; border-radius: 14px; }
.small { font-size: 12px; color: var(--muted); }
.hidden { display: none !important; }
.warning { background: #fff8e1; border: 1px solid #f2d98a; border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.4; }
.good { color: var(--green); }
.bad { color: var(--red); }
@media (max-width: 460px) { .lang-grid { grid-template-columns: 1fr; } body { padding: 12px; } .card { padding: 17px; border-radius: 18px; } }

/* v2 audio + two-way conversation */
.audio-status {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(59,130,246,.10);
  font-weight: 700;
}
.audio-controls { gap: 10px; align-items: center; flex-wrap: wrap; }
.flex1 { flex: 1 1 210px; }
.volume-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: .9rem;
  font-weight: 700;
  flex: 1 1 160px;
}
.volume-wrap input { width: 100%; }
.talk-panel {
  margin-top: 4px;
  padding: 14px;
  border: 1px solid rgba(59,130,246,.25);
  border-radius: 16px;
  background: rgba(59,130,246,.06);
}
.talk-btn { font-size: 1.05rem; }
.compact-transcript { min-height: 86px; max-height: 160px; }
.muted-transcript { opacity: .78; }
.passenger-question { transition: box-shadow .2s ease, transform .2s ease; }
.talking-card { box-shadow: 0 0 0 3px rgba(245,158,11,.35), 0 16px 40px rgba(0,0,0,.12); }
