/* v72.90: voice typing (JJS AI box and Chat). Black / white / gray like the rest; one listening bar above the box. */
.vc-bar { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 4px 4px 12px; margin: 0 0 6px; border-radius: 999px;
  background: #fff; border: 1px solid rgba(0,0,0,.08); box-shadow: 0 1px 3px rgba(0,0,0,.06); font-size: 13px; color: #2a2a28; }
.vc-lvl { flex: none; display: inline-flex; align-items: center; gap: 2px; height: 18px; width: 22px; }
.vc-lvl i { display: block; width: 3px; height: 100%; border-radius: 2px; background: #0b0b0b; transform: scaleY(.18); transform-origin: center; transition: transform .08s linear; }
.vc-bar.on:not(.busy) .vc-lvl i { animation: vc-breathe 1.1s ease-in-out infinite; }
.vc-bar.on .vc-lvl i:nth-child(2) { animation-delay: .12s; } .vc-bar.on .vc-lvl i:nth-child(3) { animation-delay: .24s; }
.vc-bar.on .vc-lvl i:nth-child(4) { animation-delay: .36s; } .vc-bar.on .vc-lvl i:nth-child(5) { animation-delay: .48s; }
.vc-bar.busy .vc-lvl i { animation: vc-wait .9s ease-in-out infinite; transform: scaleY(.35); }
.vc-bar.busy .vc-lvl i:nth-child(2n) { animation-delay: .2s; }
@keyframes vc-breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes vc-wait { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(.7); } }
.vc-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-lang { flex: none; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(0,0,0,.14); background: #fff; color: #2a2a28;
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.vc-lang:hover:not(:disabled) { background: #f2f2ef; }
.vc-done { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px 0 9px; border-radius: 999px; border: 0;
  background: #0b0b0b; color: #fff; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.vc-bar .vc-done, .vc-bar .vc-done .jjs-ico { color: #fff; }
.vc-done .jjs-ico { width: 15px; height: 15px; }
.vc-done .jjs-ico rect { fill: currentColor; stroke: none; }
.vc-x { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; background: none; color: #6a6a66; display: inline-grid; place-items: center; cursor: pointer; }
.vc-x .jjs-ico { width: 16px; height: 16px; }
.vc-x:hover { background: #f2f2ef; color: #111; }
.vc-lang:disabled, .vc-done:disabled { opacity: .45; cursor: default; }
.vc-bar button:focus-visible { outline: 2px solid #0b0b0b; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .vc-bar .vc-lvl i { animation: none !important; transition: none; } }

/* the mic buttons: black while listening */
.ai-form .aix-mic { flex: none; align-self: flex-end; width: 40px; height: 40px; padding: 0; margin: 0 0 1px; border: 0; border-radius: 50%; background: transparent;
  color: #8a8f94; display: inline-grid; place-items: center; cursor: pointer; transition: color .15s, background-color .15s; }
.ai-form .aix-mic .jjs-ico { width: 22px; height: 22px; stroke-width: 1.9; }
.ai-form .aix-mic:hover { color: #0b0b0b; background: rgba(0,0,0,.05); }
.ai-form .aix-mic:focus-visible, .ch-dict:focus-visible { outline: 2px solid #0b0b0b; outline-offset: 1px; }
.aix-mic.vc-on, .ch-ibtn.ch-dict.vc-on, .aix-vans.vc-on { background: #0b0b0b !important; color: #fff !important; box-shadow: 0 0 0 4px rgba(0,0,0,.08); }
.ai-panel > .vc-bar, .ai-panel .vc-bar[data-owner="ai"] { margin: 0 12px 6px; }
.ch-compose .vc-bar { max-width: 860px; margin: 0 auto 6px; }

/* JJS AI: "Is this right?" after an order said out loud */
.ai-confirm.aix-ask { padding: 8px 8px 8px 12px; border-radius: 14px; background: #f4f4f1; border: 1px solid rgba(0,0,0,.06); }
.aix-q { flex: 1 1 auto; min-width: 7em; font-weight: 650; font-size: 13px; }
.aix-vans { display: inline-flex; align-items: center; gap: 4px; }
.aix-vans .jjs-ico { width: 15px; height: 15px; }
.ai-confirm + .vc-bar { margin-top: 6px; }
.ai-me.aix-voice { display: flex; align-items: flex-start; gap: 6px; }
.aix-vmark { flex: none; display: inline-flex; opacity: .7; margin-top: 1px; }
.aix-vmark .jjs-ico { width: 14px; height: 14px; }
@media (max-width: 560px) {
  .vc-bar { gap: 6px; padding-left: 10px; }
  .vc-done span { display: none; } .vc-done { padding: 0 9px; }
  .ai-confirm.aix-ask { row-gap: 6px; }
  .ai-confirm.aix-ask .aix-q { flex-basis: 100%; }
}
