/* DDC voice-to-text (VOICE-1). Neutral, small; works on the blue recorder and DDC World. */
.ddc-mic { position: absolute; z-index: 2147483000; display: none; align-items: center; justify-content: center;
  gap: 6px; width: 28px; height: 28px; padding: 0; margin: 0; border: 1px solid #b8bcc4; border-radius: 14px;
  background: #fff; color: #333; cursor: pointer; font: 600 13px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  box-shadow: 0 1px 3px rgba(0,0,0,.18); -webkit-tap-highlight-color: transparent; }
.ddc-mic.ddc-show { display: inline-flex; }
.ddc-mic:hover { background: #f1f2f4; }
.ddc-mic:focus-visible { outline: 2px solid #2a6df4; outline-offset: 2px; }
.ddc-mic-ico { width: 10px; height: 16px; border: 2px solid currentColor; border-radius: 6px; position: relative;
  box-sizing: border-box; margin-bottom: 3px; }
.ddc-mic-ico::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 2px; height: 5px;
  margin-left: -1px; background: currentColor; }
.ddc-mic-lg { width: auto; height: 44px; padding: 0 14px; border-radius: 22px; }
.ddc-mic-lg .ddc-mic-lbl { white-space: nowrap; }
.ddc-mic-lg.ddc-narrow { padding: 0; width: 44px; }
.ddc-mic-lg.ddc-narrow .ddc-mic-lbl { display: none; }
.ddc-mic.ddc-rec { background: #d93025; border-color: #b3261e; color: #fff; }
.ddc-mic.ddc-busy { opacity: .6; cursor: progress; }
.ddc-vpanel { position: absolute; z-index: 2147483001; display: none; max-width: min(360px, calc(100vw - 16px));
  box-sizing: border-box; padding: 8px 10px; background: #fff; color: #222; border: 1px solid #b8bcc4; border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,.2); font: 13px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif; }
.ddc-vrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ddc-vdot { width: 10px; height: 10px; border-radius: 50%; background: #d93025; animation: ddc-pulse 1s infinite; }
@keyframes ddc-pulse { 50% { opacity: .3; } }
.ddc-vtime { font-variant-numeric: tabular-nums; font-weight: 600; }
.ddc-vmeter { flex: 1 1 60px; min-width: 60px; height: 6px; background: #e3e5e8; border-radius: 3px; overflow: hidden; }
.ddc-vbar { display: block; height: 100%; width: 0; background: #2e9d57; transition: width .06s linear; }
.ddc-vhint, .ddc-vmsg { margin-top: 4px; color: #555; font-size: 12px; }
.ddc-vmsg:empty { display: none; }
.ddc-vtag { font-weight: 600; }
.ddc-vlink { border: 0; background: none; padding: 2px 0; color: #1a56c4; cursor: pointer; font: inherit; text-decoration: underline; }
.ddc-vlang { margin-left: auto; display: inline-flex; border: 1px solid #b8bcc4; border-radius: 6px; overflow: hidden; }
.ddc-vlang-b { border: 0; background: #fff; padding: 2px 7px; font: 12px system-ui, sans-serif; color: #333; cursor: pointer; }
.ddc-vlang-b.on { background: #333; color: #fff; }
.ddc-vorig { margin-top: 6px; padding: 6px; background: #f4f5f7; border-radius: 4px; white-space: pre-wrap; max-height: 140px; overflow: auto; }
.ddc-vteach { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ddc-vinp { flex: 1 1 100px; min-width: 80px; padding: 3px 6px; border: 1px solid #b8bcc4; border-radius: 4px; font: inherit; }
@media (prefers-color-scheme: dark) {
  .ddc-mic, .ddc-vpanel { background: #23262b; color: #e8e8e8; border-color: #555a63; }
  .ddc-mic:hover { background: #2e3238; }
  .ddc-vhint, .ddc-vmsg { color: #aaa; }
  .ddc-vorig { background: #2e3238; }
  .ddc-vlang-b { background: #23262b; color: #e8e8e8; }
  .ddc-vlang-b.on { background: #e8e8e8; color: #222; }
  .ddc-vlink { color: #8ab4f8; }
}
