/* Controles al alcance del pulgar, sin bloquear el resto de la pantalla. */
body { padding-bottom: var(--voice-dock-space, calc(190px + env(safe-area-inset-bottom))) !important; }
html { scroll-padding-bottom: var(--voice-dock-space, 210px); }
.voice-dock { position:fixed; z-index:40; bottom:0; left:0; right:0; padding:8px 10px calc(8px + env(safe-area-inset-bottom)); pointer-events:none; }
.voice-dock-inner { pointer-events:auto; max-width:620px; margin:auto; background:#fff; color:#0f172a; border:1px solid #cbd5e1; border-radius:20px; padding:10px; box-shadow:0 8px 35px #0f172a30; }
.dock-summary { display:flex; justify-content:space-between; align-items:center; gap:12px; width:100%; text-align:left; padding:2px 5px; font-size:12px; }
.dock-summary span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dock-summary strong { font-size:20px; white-space:nowrap; }
#dockStatus { font-size:12px; line-height:1.3; color:#475569; margin:4px 5px 8px; }
.dock-actions { display:grid; grid-template-columns:70px minmax(110px,1fr) minmax(100px,1fr); gap:8px; }
.dock-actions button { min-height:54px; border-radius:12px; font-weight:750; display:flex; align-items:center; justify-content:center; gap:6px; font-size:14px; }
.dock-secondary { background:#e2e8f0; color:#334155; flex-direction:column; gap:0 !important; }
.dock-secondary span { font-size:10px; }
.dock-mic { background:#4f46e5; color:white; }
.dock-mic.is-listening { background:#be123c; }
.dock-register { background:#047857; color:white; }
.dock-actions button:disabled { opacity:.45; cursor:not-allowed; }
.dock-actions button:active:not(:disabled) { transform:scale(.97); }
.voice-dock button:focus-visible { outline:3px solid #60a5fa; outline-offset:3px; }
#voicePending { max-height:72px; overflow:auto; background:#fef3c7; color:#78350f; padding:8px; border-radius:9px; font-size:12px; margin-bottom:8px; }
#voicePending button { display:block; text-decoration:underline; font-weight:700; padding:6px 0; }
:root[data-theme="dark"] .voice-dock-inner { background:#142034; color:#f1f5f9; border-color:#475569; box-shadow:0 8px 35px #0008; }
:root[data-theme="dark"] #dockStatus { color:#cbd5e1; }
:root[data-theme="dark"] .dock-secondary { background:#334155; color:#e2e8f0; }
:root[data-theme="dark"] #voicePending { background:#3c2d14; color:#fcd34d; }
#resumenPedido { scroll-margin-bottom:var(--voice-dock-space, 210px); }
@media (min-width:900px) { .voice-dock { left:auto; width:500px; } }
@media print { .voice-dock { display:none !important; } }
