/* Voice agent floating widget */
#voice-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--line);
  background: linear-gradient(135deg, #1c2440, #2a1e4f); color: #fff;
  font-size: 24px; cursor: pointer; box-shadow: 0 8px 28px rgba(0,0,0,.5);
  transition: transform .15s ease, box-shadow .15s ease;
}
#voice-fab:hover { transform: scale(1.06); }
#voice-fab.listening {
  background: linear-gradient(135deg, #7f1d2d, #b3341f);
  box-shadow: 0 0 0 6px rgba(248,113,113,.18), 0 8px 28px rgba(0,0,0,.5);
  animation: voice-pulse 1.2s infinite;
}
@keyframes voice-pulse { 50% { box-shadow: 0 0 0 12px rgba(248,113,113,.06), 0 8px 28px rgba(0,0,0,.5); } }
#voice-panel {
  position: fixed; right: 22px; bottom: 92px; z-index: 60;
  width: min(380px, calc(100vw - 44px)); max-height: min(520px, calc(100vh - 140px));
  display: none; flex-direction: column; overflow: hidden;
  background: var(--tile); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 18px 60px rgba(0,0,0,.6);
}
#voice-panel.open { display: flex; }
#voice-head {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border-bottom: 1px solid var(--line); font-weight: 800;
}
#voice-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); }
#voice-head small { color: var(--mut); font-weight: 400; }
#voice-head button { margin-left: auto; }
#voice-log { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.vmsg { padding: 8px 10px; border-radius: 10px; font-size: 13px; line-height: 1.45; }
.vmsg.q { align-self: flex-end; background: #22304f; max-width: 90%; }
.vmsg.a { align-self: flex-start; background: #0c1122; border: 1px solid var(--line); max-width: 95%; }
.vmsg.a button { margin-top: 6px; }
#voice-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 12px 8px; }
#voice-chips button {
  background: transparent; border: 1px solid var(--line); color: var(--mut);
  border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer;
}
#voice-chips button:hover { color: var(--txt); border-color: var(--acc); }
#voice-bar { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); }
#voice-bar input { flex: 1; }
#voice-engine { padding: 0 12px 10px; font-size: 11px; color: var(--mut); }
