:root { --bg: #070b14; --panel: #0d1424; --panel2: #101a2e; --line: rgba(120,160,220,.16); --text: #e7edf7;
  --dim: #8c9bb5; --gold: #d9a94e; --blue: #2596ff; --green: #33c37f; --red: #e0554f; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Segoe UI', Tahoma, system-ui, sans-serif; }
.ip { max-width: 640px; margin: 0 auto; padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.ip-head h1 { font-size: 20px; margin: 4px 0; }
.ip-sub, .ip-note { color: var(--dim); font-size: 13px; line-height: 1.6; margin: 6px 0; }
.ip-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ip-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ip-pair label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--dim); }
select, input { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 15px; min-width: 0; }
.ip-check { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text); }
.ip-btn { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 11px 16px; font-size: 15px; cursor: pointer; }
.ip-btn--primary { background: rgba(217,169,78,.16); border-color: var(--gold); color: var(--gold); font-weight: 600; }
.ip-btn--danger { color: var(--red); border-color: rgba(224,85,79,.5); }
.ip-btn:disabled { opacity: .5; cursor: default; }
.ip-join { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.ip-code { font-size: 32px; letter-spacing: .25em; text-align: center; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.ip-link { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.ip-langs { display: flex; justify-content: center; gap: 10px; font-size: 14px; color: var(--dim); }
.ip-mic { align-self: center; width: 148px; height: 148px; border-radius: 50%; border: 2px solid var(--line); background: var(--panel2);
  color: var(--text); font-size: 15px; font-weight: 600; cursor: pointer; padding: 12px; transition: border-color .2s, box-shadow .2s; }
.ip-mic[aria-pressed="true"] { border-color: var(--green); box-shadow: 0 0 0 6px rgba(51,195,127,.12); }
.ip-mic.speaking { border-color: var(--gold); box-shadow: 0 0 0 10px rgba(217,169,78,.16); }
.ip-meter { height: 6px; background: rgba(140,155,181,.18); border-radius: 999px; overflow: hidden; }
.ip-meter span { display: block; height: 100%; width: 0; background: var(--green); transition: width .1s; }
.ip-status { text-align: center; color: var(--dim); font-size: 13px; margin: 0; min-height: 1.4em; }
.ip-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: 46vh; overflow-y: auto; }
.ip-log li { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.ip-log li.mine { border-inline-start: 3px solid var(--blue); }
.ip-log li.theirs { border-inline-start: 3px solid var(--gold); }
.ip-log .who { font-size: 11.5px; color: var(--dim); }
.ip-log .said { font-size: 14px; margin: 4px 0; }
.ip-log .tr { font-size: 16px; font-weight: 600; }
.ip-log .sys { font-size: 13px; color: var(--dim); }
.ip-error { color: var(--red); text-align: center; font-size: 14px; }
.ip-mic-error { font-size: 13.5px; line-height: 1.6; margin: 0; overflow-wrap: anywhere; }
/* 2026-10-13: a muted microphone reads as muted (the session goes on) */
#ip-talk[data-mic="muted"] .ip-mic { border-color: rgba(224,85,79,.55); color: var(--dim); }
.ip-log .said, .ip-log .tr, .ip-status, .ip-note { overflow-wrap: anywhere; }
@media (max-width: 420px) { .ip-pair { grid-template-columns: 1fr; } .ip-mic { width: 128px; height: 128px; } }
