* { box-sizing: border-box; }
:root {
  /* Tenant design tokens (item 7) — indexPage.ts overrides these per deployment. */
  --bg: #f4f6fb;
  --surface: #ffffff;
  --accent: #2f6fed;
  --text: #101828;
  --muted: #64748b;
  --border: #e2e8f0;
}
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding: 16px;
}
.phone {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 24px 20px;
  box-shadow: 0 20px 60px rgba(16, 24, 40, 0.08);
}
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.logo {
  width: 44px; height: 44px; border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
  flex: none;
}
.logo svg { width: 26px; height: 26px; }
.brand h1 { font-size: 18px; margin: 0; color: var(--text); }
.brand p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

.demo-config {
  font-size: 11px; color: var(--muted); margin: 0 0 14px; padding: 6px 10px;
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  border-radius: 8px; text-align: center;
}

.statusbar {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); margin-bottom: 14px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.idle, .dot.ended { background: var(--muted); }
.dot.connecting, .dot.starting, .dot.connected, .dot.reconnecting { background: #b45309; animation: pulse 1.2s infinite; }
.dot.ready { background: #15803d; }
.dot.disabled { background: #7e22ce; }
.dot.error, .dot.busy { background: #b91c1c; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.captions {
  min-height: 220px; max-height: 340px; overflow-y: auto;
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px;
}
.caption { padding: 8px 12px; border-radius: 12px; max-width: 85%; font-size: 14px; line-height: 1.4; }
.caption .who { display: block; font-size: 10px; letter-spacing: 0.5px; color: var(--muted); margin-bottom: 2px; }
.caption.user { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); align-self: flex-end; }
.caption.model { background: var(--surface); border: 1px solid var(--border); align-self: flex-start; }
.caption.note { align-self: center; font-size: 12px; color: var(--muted); background: transparent; }
.caption.interim { opacity: 0.6; }
/* Sub-threshold filler turns (item 13) — de-emphasized, not hidden; registry keeps the raw text. */
.caption.filler { opacity: 0.45; font-size: 12px; padding: 4px 10px; max-width: 60%; }

.call-btn {
  width: 100%; padding: 16px; border: none; border-radius: 14px;
  font-size: 16px; font-weight: 600; cursor: pointer; color: #fff;
  background: var(--accent);
  transition: transform 0.05s, filter 0.15s;
}
.call-btn:hover { filter: brightness(1.08); }
.call-btn:active { transform: scale(0.98); }
.call-btn.active { background: #b91c1c; }

.hint { font-size: 12px; color: var(--muted); text-align: center; margin: 14px 0 8px; }

.latency { font-size: 11px; text-align: center; margin: 4px 0; min-height: 14px; }
.latency.muted { color: var(--muted); }

.rec-notice {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 11px; color: var(--muted); margin-top: 10px;
}
.rec-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; transition: background 0.2s; }
.rec-notice.active .rec-dot { background: #dc2626; animation: pulse 1.4s infinite; }
.rec-notice.active { color: #7a2e2e; }
