:root {
  --panel: #141b24;
  --panel-2: #1b242f;
  --line: #2b3748;
  --ink: #e8eef6;
  --muted: #93a3b8;
  --accent: #4fd1c5;
  --danger: #f56565;
}
.dock {
  position: fixed; right: 16px; bottom: 16px; z-index: 2147483000;
  width: min(400px, calc(100vw - 24px)); max-height: min(70vh, 620px);
  display: flex; flex-direction: column;
  background: rgba(16, 22, 30, .96); color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.5), 0 0 0 1px rgba(79,209,197,.06);
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  backdrop-filter: blur(14px); overflow: hidden;
}
.dock.collapsed { max-height: 54px; }
.dock.collapsed .dock-body { display: none; }
.dock-head { display: flex; align-items: center; gap: 9px; padding: 10px 12px; cursor: pointer; user-select: none; }
.dock-head .dot { width: 9px; height: 9px; border-radius: 50%; background: #f6ad55; flex: none; box-shadow: 0 0 10px rgba(246,173,85,.7); }
.dock-head .dot.ok { background: var(--accent); box-shadow: 0 0 10px rgba(79,209,197,.8); }
.dock-head .dot.busy { background: #63b3ed; animation: blink .9s infinite; }
.dock-head .dot.err { background: var(--danger); }
@keyframes blink { 50% { opacity: .35; } }
.titles { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.titles strong { font-size: 13px; letter-spacing: .2px; }
.titles span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 9px; width: 30px; height: 30px; cursor: pointer; font-size: 13px; flex: none; }
.icon.off { opacity: .4; }
.dock-body { display: flex; flex-direction: column; min-height: 0; }
.vlog { overflow-y: auto; padding: 4px 12px 10px; display: flex; flex-direction: column; gap: 8px; max-height: 330px; min-height: 90px; }
.vmsg { max-width: 94%; padding: 8px 11px; border-radius: 12px; font-size: 13px; white-space: pre-wrap; word-wrap: break-word; }
.vmsg p { margin: 0; }
.vmsg.bot { background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 3px; align-self: flex-start; }
.vmsg.user { background: #16322f; border: 1px solid #1f4a45; border-bottom-right-radius: 3px; align-self: flex-end; }
.vmsg.err { background: #2a1616; border-color: #5c2a2a; color: #ffb3b3; }
.vmsg .meta { display: block; margin-top: 4px; font-size: 10px; color: var(--muted); }
.vtranscript { margin: 0 12px 8px; padding: 8px 10px; border-radius: 9px; background: #0e1a22; border: 1px dashed #2c4a52; color: #bfe9e4; font-size: 12px; }
.vcontrols { display: flex; gap: 8px; padding: 0 12px 6px; align-items: stretch; }
.mic {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  width: 82px; border-radius: 12px; border: 1px solid #2b5b55; background: linear-gradient(180deg, #17322f, #122421);
  color: #d7fffa; cursor: pointer; padding: 6px 4px;
}
.mic .mic-icon { font-size: 19px; }
.mic .mic-label { font-size: 9px; letter-spacing: .3px; text-transform: uppercase; color: #8fd8cf; }
.mic.on { background: linear-gradient(180deg, #1f5c53, #17443d); border-color: var(--accent); animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(79,209,197,.35); } 50% { box-shadow: 0 0 0 7px rgba(79,209,197,0); } }
.vform { flex: 1; display: flex; gap: 6px; min-width: 0; }
.vform input { flex: 1; min-width: 0; border-radius: 10px; border: 1px solid var(--line); background: #0e151d; color: var(--ink); padding: 0 10px; font-size: 13px; outline: none; }
.vform input:focus { border-color: #3d6f69; }
.send { width: 40px; border-radius: 10px; border: 1px solid #2b5b55; background: #17322f; color: var(--accent); font-size: 14px; cursor: pointer; }
.vhint { margin: 0 12px 10px; font-size: 10px; color: var(--muted); cursor: pointer; }
@media (max-width: 700px) {
  .dock { right: 8px; left: 8px; bottom: 8px; width: auto; max-height: 62dvh; }
  .vlog { max-height: 26dvh; }
}
