.voice-controls{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .8rem;min-width:0;padding:.45rem 0}
.voice-buttons{display:flex;flex-wrap:wrap;gap:.4rem}
.voice-controls button{border:1px solid rgba(148,163,184,.26);background:#0b111b;color:#e6eef8;border-radius:8px;padding:.45rem .7rem;cursor:pointer;font:inherit;font-size:.82rem}
.voice-controls button[aria-pressed=true]{background:#38bdf8;border-color:#38bdf8;color:#06090d}
.voice-controls #voice-record[aria-pressed=true]{background:#e11d48;border-color:#e11d48;color:#fff}
.voice-controls button:disabled{opacity:.45;cursor:default}
.voice-controls button:focus-visible{outline:3px solid #38bdf8;outline-offset:2px}
#voice-status{font-size:.8rem;line-height:1.4;color:#94a3b8;overflow-wrap:anywhere;flex:1 1 220px}
@media(pointer:coarse){.voice-controls button{min-width:44px;min-height:44px}}
/* Hands-free conversation: one primary button, optional controls folded into "More voice", a live bar while active. */
.voice-controls .voice-talk{background:#38bdf8;color:#06090d;border-color:#38bdf8;font-weight:700}
.voice-controls .voice-talk[aria-pressed=true]{background:#e11d48;border-color:#e11d48;color:#fff}
.voice-more{display:inline-block}
.voice-more>summary{list-style:none;cursor:pointer;border:1px solid rgba(148,163,184,.26);background:#0b111b;color:#e6eef8;border-radius:8px;padding:.45rem .7rem;font-size:.82rem}
.voice-more>summary::-webkit-details-marker{display:none}
.voice-more[open]>summary{background:#162033;border-color:rgba(56,189,248,.4)}
.voice-more-buttons{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.4rem}
.voice-live{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .6rem;flex:1 1 100%;min-width:0;padding:.45rem .6rem;border:1px solid rgba(244,63,94,.45);border-radius:10px;background:rgba(244,63,94,.16);color:#fda4af}
.voice-live[hidden]{display:none}
.voice-live-state{font-weight:600;font-size:.88rem;min-width:7.5rem}
.voice-meter{flex:1 1 6rem;height:.5rem;border-radius:.25rem;background:rgba(244,63,94,.24);overflow:hidden;min-width:4rem}
.voice-meter>i{display:block;height:100%;width:100%;transform:scaleX(0);transform-origin:left;background:#fb7185;transition:transform 60ms linear}
.voice-live-heard{flex:1 1 100%;font-size:.8rem;line-height:1.35;overflow-wrap:anywhere;max-height:3.2rem;overflow:auto;order:3}
.voice-live .voice-interrupt{background:#0f172a;color:#fda4af;border-color:rgba(244,63,94,.45)}
.voice-live .voice-live-stop{background:#e11d48;color:#fff;border-color:#e11d48;font-weight:600}
.voice-live button{min-height:44px;min-width:44px}
@media(prefers-reduced-motion:reduce){.voice-meter>i{transition:none}}
@media(max-width:520px){.voice-controls{padding:.25rem 0;gap:.35rem .5rem}.voice-live{padding:.4rem .5rem}.voice-live-state{min-width:0}.voice-live button{flex:1 1 40%}}
/* ---- Icon strip (2026-11-11, Josh: small icons, no scrolling). The button text stays in the DOM as the accessible name; only the icon shows. ---- */
.voice-controls{padding:.25rem 0;gap:.3rem .5rem}
.voice-controls .vi-row{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;min-width:0;flex:1 1 100%}
.voice-controls .vi{position:relative;flex:0 0 auto;width:40px;height:40px;min-width:40px;min-height:40px;padding:0;margin:0;font-size:0;line-height:0;border-radius:10px;overflow:hidden;display:inline-flex;align-items:center;justify-content:center}
.voice-controls .vi::before{content:"";width:22px;height:22px;background:currentColor;-webkit-mask:var(--vi) center/contain no-repeat;mask:var(--vi) center/contain no-repeat}
.voice-controls .vi[hidden]{display:none}
#voice-talk{--vi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 14a3 3 0 0 0 3-3V6a3 3 0 0 0-6 0v5a3 3 0 0 0 3 3zm5-3a5 5 0 0 1-10 0H5a7 7 0 0 0 6 6.92V21h2v-3.08A7 7 0 0 0 19 11z'/%3E%3C/svg%3E")}
#voice-record{--vi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 4a6 6 0 1 1 0 12 6 6 0 0 1 0-12z'/%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3C/svg%3E")}
#voice-read{--vi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 10v4h4l5 4V6L7 10H3zm13.5 2a4.5 4.5 0 0 0-2.5-4.03v8.05A4.5 4.5 0 0 0 16.5 12zM14 3.23v2.06a7 7 0 0 1 0 13.42v2.06a9 9 0 0 0 0-17.54z'/%3E%3C/svg%3E")}
#voice-stop,#voice-live-stop{--vi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6' y='6' width='12' height='12' rx='2'/%3E%3C/svg%3E")}
#voice-interrupt{--vi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l8 6-8 6zM16 6h2v12h-2z'/%3E%3C/svg%3E")}
#voice-read[aria-pressed=false]::before{opacity:.55}
.voice-controls .voice-talk[aria-pressed=true]{background:#e11d48;border-color:#e11d48;color:#fff;box-shadow:0 0 0 0 #e11d4888;animation:vi-live 1.6s ease-out infinite}
@keyframes vi-live{0%{box-shadow:0 0 0 0 #e11d48aa}100%{box-shadow:0 0 0 10px #e11d4800}}
.voice-controls #voice-record[aria-pressed=true]{background:#e11d48;border-color:#e11d48;color:#fff}
.voice-controls .vi:disabled{opacity:.4}
/* live group: state + level + Interrupt + Stop on the same row as the icons */
.voice-controls .vi-live{display:flex;align-items:center;gap:6px;flex:1 1 auto;min-width:0;height:40px;padding:0 4px 0 10px;margin:0;border:1px solid rgba(244,63,94,.45);border-radius:10px;background:rgba(244,63,94,.16);color:#fda4af}
.voice-controls .vi-live[hidden]{display:none}
.voice-controls .vi-live .voice-live-state{font-size:12px;font-weight:600;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:0 1 auto}
.voice-controls .vi-live .voice-meter{flex:1 1 20px;min-width:16px;height:6px}
.voice-controls .vi-live .vi{width:34px;height:34px;min-width:34px;min-height:34px;border-radius:8px}
.voice-controls .vi-live .voice-interrupt{background:#0f172a;color:#fda4af;border-color:rgba(244,63,94,.45)}
.voice-controls .vi-live .voice-live-stop{background:#e11d48;color:#fff;border-color:#e11d48}
.voice-controls .voice-live-heard,.voice-controls .vi-status{flex:1 1 100%;min-width:0;margin:0;font-size:12px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-height:none;order:0}
.voice-controls .voice-live-heard[hidden],.voice-controls .vi-status[hidden]{display:none}
@media(pointer:coarse){.voice-controls .vi{width:44px;height:44px;min-width:44px;min-height:44px}.voice-controls .vi-live{height:48px}.voice-controls .vi-live .vi{width:44px;height:44px;min-width:44px;min-height:44px}}
@media(prefers-reduced-motion:reduce){.voice-controls .voice-talk[aria-pressed=true]{animation:none}}
/* Live conversation in a narrow composer: hide the two icons that are disabled anyway, let the live group shrink, never let Stop wrap onto the text box. */
.voice-controls.is-live #voice-record,.voice-controls.is-live #voice-read,.voice-controls.is-live #voice-stop{display:none}
.voice-controls .vi-row{flex-wrap:nowrap;max-width:100%}
.voice-controls .vi-live{flex:1 1 0;min-width:0}
.voice-controls .vi-live .voice-live-state{flex:0 1 auto;min-width:0}
.voice-controls .vi-live .voice-meter{flex:1 1 12px;min-width:8px}
.voice-controls .vi-live .vi{flex:0 0 auto}
