.dg {
  --dg-ink: #0b1030; --dg-muted: #50577a; --dg-line: #e3e6ef; --dg-bg: #ffffff;
  --dg-accent: #2f2fb8; --dg-soft: #eef0f6;
  position: fixed; right: 16px; bottom: 16px; z-index: 9999;
  width: min(380px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 32px));
  display: flex; flex-direction: column; background: var(--dg-bg); color: var(--dg-ink);
  border: 1px solid var(--dg-line); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(11, 16, 48, .18); font: 500 14px/1.5 Manrope, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.dg-head { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-bottom: 1px solid var(--dg-line); }
.dg-head div { flex: 1; }
.dg-head strong { display: block; font-weight: 750; }
.dg-head small { color: var(--dg-muted); font-size: 12px; }
.dg-dot { width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: #15803d; box-shadow: 0 0 0 4px rgba(21, 128, 61, .15); }
.dg-min { border: 0; background: var(--dg-soft); color: var(--dg-ink); width: 28px; height: 28px; border-radius: 8px; font-size: 16px; cursor: pointer; }
.dg-voice { border: 0; background: var(--dg-soft); width: 28px; height: 28px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.dg-mic { border: 1px solid var(--dg-line); background: #fff; border-radius: 8px; width: 38px; font-size: 15px; cursor: pointer; }
.dg-mic.dg-listening { border-color: #c0392b; background: #fdecea; animation: dg-pulse 1.2s ease-out infinite; }
.dg-log { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.dg-msg { margin: 0; padding: 8px 11px; border-radius: 10px; max-width: 92%; }
.dg-guide { background: var(--dg-soft); align-self: flex-start; }
.dg-me { background: var(--dg-accent); color: #fff; align-self: flex-end; }
.dg-busy { color: var(--dg-muted); font-style: italic; align-self: flex-start; }
.dg-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.dg-chips button { border: 1px solid var(--dg-line); background: #fff; color: var(--dg-ink); border-radius: 999px; padding: 5px 10px; font: inherit; font-size: 12.5px; cursor: pointer; }
.dg-chips button:hover { border-color: var(--dg-accent); color: var(--dg-accent); }
.dg-form { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--dg-line); }
.dg-form input { flex: 1; min-width: 0; border: 1px solid var(--dg-line); border-radius: 8px; padding: 8px 10px; font: inherit; }
.dg-form button { border: 0; background: var(--dg-accent); color: #fff; border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 700; cursor: pointer; }
.dg-form button:disabled { opacity: .55; cursor: wait; }
.dg-cta { display: block; text-align: center; padding: 0 14px 12px; color: var(--dg-accent); font-weight: 700; font-size: 13px; }
.dg-collapsed .dg-log, .dg-collapsed .dg-chips, .dg-collapsed .dg-form, .dg-collapsed .dg-cta { display: none; }
.dg-spot { outline: 2px solid #f8b81c !important; outline-offset: -2px; border-radius: 8px; animation: dg-pulse 1.4s ease-out 2; }
@keyframes dg-pulse { 0% { box-shadow: 0 0 0 0 rgba(248, 184, 28, .6); } 100% { box-shadow: 0 0 0 10px rgba(248, 184, 28, 0); } }
@media (prefers-reduced-motion: reduce) { .dg-spot { animation: none; } }
@media (max-width: 760px) { .dg { right: 8px; left: 8px; bottom: 8px; width: auto; max-height: 55vh; } }
.dg-cursor { position: fixed; left: 0; top: 0; z-index: 10001; pointer-events: none; opacity: 0; transform: translate(50vw, 50vh); transition-property: transform, opacity; transition-timing-function: cubic-bezier(.45,.05,.25,1); filter: drop-shadow(0 2px 3px rgba(11,16,48,.35)); }
.dg-cursor.dg-on { opacity: 1; }
.dg-cursor::after { content: ""; position: absolute; left: -9px; top: -9px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #2f2fb8; opacity: 0; transform: scale(.4); }
.dg-cursor.dg-click::after { animation: dg-ripple .45s ease-out; }
@keyframes dg-ripple { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: scale(1.8); } }
.dg-playing .dg-chips { display: none; }
