:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #f3f5f8;
  color: #182230;
}

body { margin: 0; }
.panel { max-width: 680px; margin: 0 auto; padding: 32px 18px; }
h1 { margin: 0 0 8px; }
.hint { color: #687386; line-height: 1.5; }
.join-card { display: grid; gap: 14px; margin: 24px 0; padding: 18px; background: white; border-radius: 14px; box-shadow: 0 4px 18px #14213d12; }
label { display: grid; gap: 6px; font-weight: 600; }
input, select, button { font: inherit; }
input, select { min-width: 0; width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid #ccd4df; border-radius: 8px; background: white; }
.join-card > * { min-width: 0; }
button { border: 0; border-radius: 10px; padding: 12px 16px; cursor: pointer; color: white; background: #2364d2; }
button:disabled { cursor: not-allowed; opacity: .45; }
.session { padding: 18px; background: white; border-radius: 14px; }
.controls { display: grid; gap: 10px; margin: 16px 0; }
.secondary { background: #596579; }
.hidden { display: none; }
.status-row { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; color: #4e5d70; line-height: 1.5; }
.language-groups { padding: 10px 12px; border-radius: 8px; background: #f3f5f8; overflow-wrap: anywhere; }
.session-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin: 12px 0; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #2364d2; outline-offset: 3px; }
.message { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .panel { padding: 20px 12px; }
  .session { padding: 14px; }
  .status-row { flex-direction: column; }
}
.speak { width: 100%; min-height: 120px; margin: 22px 0 8px; font-size: 1.35rem; background: #15966c; touch-action: none; }
.speak.active { background: #c04747; }
.transcript { display: grid; gap: 8px; }
.message { padding: 10px 12px; border-radius: 8px; background: #eef3fb; }
.message strong { display: block; margin-bottom: 4px; }
.error { color: #b42318; }
