/* ==========================================================================
   Assistant dock — framework-loze CSS
   --------------------------------------------------------------------------
   Bron (God's Eye View, JobwizardNL/Gods-Eye-View, commit bd87e2d1):
     src/ui/styles/ai-chat.css
     src/ui/styles/command-dock.css
     src/ui/styles/command-dock-compact.css
     src/ui/styles/command-dock-trays.css
     src/ui/styles/command-dock-sliding.css
     src/ui/styles/voice-card.css
   Datum: 2026-11-12

   Dit bestand is gegenereerd door selectie uit die bronnen. Het is niet met de
   hand bijgewerkt: wijzig de bron en genereer opnieuw.

   Overgenomen: dock-oppervlak, golfbeeld, chatpaneel (kop, berichten, invoer,
   chips, lege staat, minimaliseren), spraakkaart en de statusbehandeling.
   Weggelaten: alles wat alleen de 3D-globe, kaartlagen, camera, het linkse
   instrumentenpaneel of GEV-specifieke trays raakt.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens — de donkere teal/cyaan instrument-taal uit de bron
   -------------------------------------------------------------------------- */
:root {
  --accent: #36dcff;
  --accent-soft: rgba(54, 220, 255, 0.08);
  --accent-fill: rgba(54, 220, 255, 0.12);
  --text-primary: #dcebf0;
  --text-secondary: #a8c5ce;
  --text-dim: #7f97a0;
  --glass-border: rgba(123, 189, 211, 0.28);
  --glass-border-hover: rgba(123, 189, 211, 0.42);
  --danger: #ff5c6e;
  --danger-text: #ff8f9d;
  --warning: #ffc46b;
  --surface: rgba(7, 22, 31, 0.97);
  --surface-deep: rgba(2, 10, 16, 0.5);
  --font-mono:
    ui-monospace, 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  --font-sans:
    system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition-fast: 160ms ease;
  --transition-smooth: 220ms ease;
  --panel-radius: 0.4rem;
  color-scheme: dark;
}

/* ==========================================================================
   DOCK
   ========================================================================== */
#assistant-dock {
  position: fixed;
  right: auto;
  bottom: 2vh;
  left: 50%;
  z-index: 145;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  box-sizing: border-box;
  width: fit-content;
  max-width: calc(100vw - 1.5rem);
  padding: 0.55rem 0.9rem 0.7rem;
  color: var(--text-secondary);
  font: 0.8rem/1.4 var(--font-sans);
  border: 1px solid rgba(54, 220, 255, 0.32);
  border-radius: 1.35rem;
  background: linear-gradient(
    155deg,
    rgba(14, 39, 50, 0.98),
    rgba(7, 25, 35, 0.98) 70%
  );
  box-shadow:
    inset 0 0 0 1px #8ae5f00a,
    inset 0 1px 0 #c3f5ff14,
    0 8px 24px #0006,
    0 0 18px #36dcff12;
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
  isolation: isolate;
  transform: translateX(-50%);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    opacity var(--transition-smooth);
}

/* Status-leds boven de knoppen. */
.dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 0.3rem;
}

.dots i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.3;
}

.dots i:first-child {
  opacity: 0.7;
}

.row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Instrument-scheiding tussen de twee modi. */
.divider {
  flex: 0 0 1px;
  width: 1px;
  height: 2rem;
  background: linear-gradient(
    transparent,
    rgba(145, 190, 204, 0.35) 25%,
    rgba(145, 190, 204, 0.35) 75%,
    transparent
  );
  pointer-events: none;
}

.btn {
  position: static;
  display: grid;
  grid-template-rows: 2.45rem 0.55rem;
  justify-items: center;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: 3rem;
  height: 3.2rem;
  margin: 0;
  padding: 0;
  color: #a8c5ce;
  background: transparent;
  border: 0;
  border-radius: 0.5rem;
  cursor: pointer;
  transform: translateY(0.1rem);
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    opacity var(--transition-fast);
}

.btn:hover:not(:disabled) {
  color: var(--accent);
  background: rgba(54, 220, 255, 0.08);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: transparent;
  box-shadow: none;
}

/* Verhoogde ring: rond voor spraak, squircle voor chat. */
.ring {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid #90b7c366;
  border-radius: 50%;
  background: linear-gradient(145deg, #1a3743, #0b202b);
  box-shadow:
    0 0 0 3px #061d2980,
    0 0 0 4px #a4e7f029,
    inset 0 1px 3px #c6f5ff12,
    0 3px 7px #0006;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.ring.sq {
  border-radius: 0.65rem;
}

.ring svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn:hover:not(:disabled) .ring,
.btn[aria-pressed='true'] .ring {
  border-color: rgba(54, 220, 255, 0.48);
  box-shadow:
    0 0 0 3px #061d2980,
    0 0 0 4px #36dcff1f,
    0 0 0.75rem #36dcff1f,
    inset 0 1px 3px #c6f5ff12,
    0 3px 7px #0006;
}

.label {
  margin: 0;
  font: 0.48rem var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ==========================================================================
   GOLF
   JS zet per balk --audio-level (px) en --audio-opacity; de ruststand
   hieronder geldt zolang die variabelen ontbreken.
   ========================================================================== */
.wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  max-width: 14rem;
  height: 0.8rem;
  filter: drop-shadow(0 0 3px #36dcff24);
}

.wave i {
  flex: 1 1 0;
  min-width: 0;
  max-width: 4px;
  height: var(--audio-level, 5px);
  opacity: var(--audio-opacity, 0.56);
  border-radius: 999px;
  background: linear-gradient(180deg, #a3edf4, #42bfd7 55%, #238ba8);
  transform-origin: center;
  transition:
    height 70ms linear,
    opacity 90ms linear;
}

/* Rustprofiel zonder audio: een lichte taper in plaats van een platte rij. */
.wave i:nth-child(3n) {
  height: var(--audio-level, 7px);
}

.wave i:nth-child(4n) {
  height: var(--audio-level, 4px);
}

.wave i:nth-child(5n) {
  height: var(--audio-level, 9px);
}

.wave i:nth-child(7n) {
  height: var(--audio-level, 3px);
}

#assistant-dock.speaking .wave i {
  opacity: var(--audio-opacity, 0.9);
}

#assistant-dock.listening .wave i {
  background: linear-gradient(180deg, #ffb4bd, #ff8f9d 55%, #ff5c6e);
  opacity: var(--audio-opacity, 0.85);
}

#assistant-dock.busy .wave i {
  opacity: var(--audio-opacity, 0.4);
}

#assistant-dock.error .wave i {
  background: linear-gradient(180deg, #ffb4bd, #ff5c6e);
  opacity: var(--audio-opacity, 0.35);
}

/* ==========================================================================
   PANEEL
   ========================================================================== */
#assistant-panel {
  position: fixed;
  left: 50%;
  bottom: calc(2vh + 6.7rem);
  z-index: 146;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: min(25rem, calc(100vw - 1.5rem));
  max-height: min(34rem, calc(100dvh - 12rem));
  overflow: hidden;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid rgba(54, 220, 255, 0.3);
  border-radius: 0.9rem;
  box-shadow: 0 1rem 3rem #0008;
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  text-align: left;
  font: 0.8rem/1.5 var(--font-sans);
  transform: translateX(-50%);
  transition: width 180ms ease;
}

#assistant-panel[hidden],
#assistant-panel [hidden] {
  display: none;
}

#assistant-panel[data-minimized='true'] {
  width: min(15rem, calc(100vw - 1.5rem));
  border-radius: 1rem;
  overflow: visible;
}

#assistant-panel[data-minimized='true'] > :not(.input) {
  display: none;
}

#assistant-panel[data-minimized='true'] .input {
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.55rem;
  border: 0;
  border-radius: inherit;
}

#assistant-panel[data-minimized='true'] .input input {
  height: 2rem;
  max-height: 2rem;
  padding: 0.4rem 0;
}

#assistant-panel[data-minimized='true']:focus-within {
  width: min(25rem, calc(100vw - 1.5rem));
  border-color: rgba(54, 220, 255, 0.45);
  box-shadow:
    0 0.5rem 1.5rem #0006,
    0 0 0 1px #36dcff14;
}

.head {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
}

.head .tag {
  flex: 0 0 auto;
  white-space: nowrap;
  color: var(--accent);
  font: 600 0.7rem var(--font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.head small {
  min-width: 0;
  padding-top: 0.15rem;
  overflow: hidden;
  color: var(--text-secondary);
  font: 0.7rem/1.4 var(--font-sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.head .tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0;
  margin-inline-start: auto;
}

.icon {
  display: grid;
  place-items: center;
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  padding: 0;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast);
}

.icon:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.icon:is([aria-pressed='true'], [aria-selected='true']) {
  color: var(--accent);
  background: var(--accent-fill);
  border-color: rgba(54, 220, 255, 0.35);
}

.icon:is([aria-pressed='true'], [aria-selected='true']):is(
    :focus,
    :focus-visible
  ) {
  outline: none;
  box-shadow: 0 0 0 1px currentColor;
}

.icon:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==========================================================================
   BERICHTEN
   ========================================================================== */
.messages {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 8rem;
  max-height: min(24rem, 52vh);
  padding: 1rem;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(54, 220, 255, 0.35) transparent;
}

.empty {
  padding: 1.5rem 0.2rem;
  color: var(--text-secondary);
  text-align: center;
}

.empty::before {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-size: 32px;
  line-height: 1;
  opacity: 0.7;
  content: '◎';
}

.empty p {
  margin: 0 0 1rem;
}

.bubble {
  max-width: 90%;
  padding: 0.65rem 0.8rem;
  color: #dcebf0;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-radius: 0.6rem;
  background: #ffffff05;
}

.bubble.bot {
  align-self: flex-start;
  background: #ffffff05;
}

.bubble.me {
  align-self: flex-end;
  background: #36dcff14;
  border: 1px solid #36dcff20;
}

.note {
  margin: 0;
  color: var(--text-secondary);
  font: 0.6rem/1.4 var(--font-mono);
  letter-spacing: 0.08em;
}

.note strong {
  color: var(--accent);
  font-weight: 600;
}

/* Bevestigingskaart voor een tool-call of gevoelige stap. */
.confirm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(54, 220, 255, 0.3);
  border-radius: 0.6rem;
  background: var(--surface-deep);
}

.confirm p {
  flex: 1 1 100%;
  margin: 0;
  color: var(--text-primary);
  font-size: 0.75rem;
  line-height: 1.45;
}

.confirm button {
  padding: 5px 10px;
  color: #b4cdd5;
  background: #36dcff08;
  border: 1px solid #70c8dd26;
  border-radius: 6px;
  font: 11px var(--font-mono);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.confirm button:first-of-type {
  color: var(--accent);
  background: var(--accent-fill);
  border-color: rgba(54, 220, 255, 0.5);
}

.confirm button:hover {
  color: var(--text-primary);
  background: #36dcff18;
}

.confirm button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Chips: snelle suggesties onder de lege staat of bij een antwoord. */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips button,
.chip {
  max-width: 100%;
  padding: 5px 8px;
  overflow: hidden;
  color: #b4cdd5;
  background: #36dcff08;
  border: 1px solid #70c8dd26;
  border-radius: 6px;
  font: 11px var(--font-sans);
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.chips button:hover,
.chip:hover {
  background: #36dcff18;
}

.chips button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==========================================================================
   INVOER
   ========================================================================== */
.input {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.4rem 0.8rem 0.8rem;
  padding: 0.65rem;
  background: #020a1080;
  border: 1px solid #36dcff40;
  border-radius: 0.65rem;
  transition: border-color var(--transition-fast);
}

.input:focus-within {
  border-color: rgba(54, 220, 255, 0.45);
}

.input input {
  box-sizing: border-box;
  flex: 1;
  min-width: 0;
  min-height: 2rem;
  max-height: 7rem;
  padding: 0.4rem 0;
  color: var(--text-primary);
  font: inherit;
  font-size: 13px;
  line-height: 1.2rem;
  background: transparent;
  border: 0;
  outline: none;
  resize: none;
}

.input input::placeholder {
  color: var(--text-dim);
}

/* De composer toont focus; geen tweede ring om het veld. */
.input input:focus-visible {
  outline: none;
  box-shadow: none;
}

.send {
  display: grid;
  flex: 0 0 2rem;
  place-items: center;
  width: 2rem;
  height: 2rem;
  align-self: center;
  padding: 0;
  color: #06141b;
  font: 700 0.85rem var(--font-mono);
  background: var(--accent);
  border: 0;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.send:hover:not(:disabled) {
  color: #06141b;
  box-shadow: 0 0 0.75rem #36dcff40;
}

.send:disabled {
  opacity: 0.3;
  cursor: default;
}

.send:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==========================================================================
   KAART — spraakkaart boven de dock
   ========================================================================== */
#assistant-card {
  position: fixed;
  left: 50%;
  bottom: calc(2vh + 6.7rem);
  z-index: 147;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  box-sizing: border-box;
  width: clamp(18rem, 26vw, 22rem);
  max-width: calc(100vw - 1.5rem);
  max-height: min(24rem, 55vh);
  padding: 0.62rem 0.72rem 0.7rem;
  overflow-y: auto;
  color: rgba(223, 245, 250, 0.92);
  font: 0.72rem/1.38 var(--font-sans);
  text-align: start;
  background: rgba(7, 22, 31, 0.96);
  border: 1px solid rgba(54, 220, 255, 0.34);
  border-radius: 0.38rem;
  box-shadow:
    0 0.85rem 2rem rgba(0, 0, 0, 0.58),
    0 0 1.2rem rgba(0, 212, 255, 0.08);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  transform: translateX(-50%);
  transform-origin: bottom center;
  animation: assistant-card-in 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

#assistant-card[hidden],
#assistant-card [hidden] {
  display: none;
}

#assistant-card > header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#assistant-card :is(b, .kicker, summary) {
  color: rgba(54, 220, 255, 0.72);
  font-family: var(--font-mono);
  font-size: 0.46rem;
  font-weight: 600;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}

#assistant-card small {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.46rem;
  font-weight: 600;
  letter-spacing: 0.1rem;
}

#assistant-card[data-busy='true'] small {
  color: var(--warning);
}

#assistant-card p {
  margin: 0;
  display: flex;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  line-height: 1.38;
  overflow-wrap: break-word;
}

#assistant-card button {
  display: grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-inline-start: auto;
  padding: 0;
  color: var(--text-secondary);
  font-size: 0.72rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(54, 220, 255, 0.24);
  border-radius: 0.2rem;
  cursor: pointer;
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast);
}

#assistant-card button:hover,
#assistant-card button:focus-visible {
  color: var(--text-primary);
  border-color: rgba(54, 220, 255, 0.6);
}

#assistant-card :is(ol, ul) {
  margin: 0;
  padding: 0.38rem 0 0;
  list-style: none;
  border-top: 1px solid var(--glass-border);
}

#assistant-card li {
  display: grid;
  grid-template-columns: 0.9rem 1fr;
  column-gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  line-height: 1.4;
  letter-spacing: 0.02rem;
}

#assistant-card li::before {
  color: var(--text-dim);
  content: '◻';
}

#assistant-card li > span {
  grid-column: 2;
  color: var(--text-dim);
  font-size: 0.52rem;
}

#assistant-card li[data-status='running']::before {
  color: var(--warning);
  content: '◌';
}

#assistant-card li[data-status='done']::before {
  color: var(--accent);
  content: '✓';
}

#assistant-card li[data-status='failed']::before,
#assistant-card li[data-status='cancelled']::before {
  color: var(--danger-text);
  content: '✕';
}

#assistant-card .chip {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.44rem;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
}

#assistant-card .chip:is(
    [data-tone='stale'],
    [data-tone='degraded'],
    [data-tone='fallback'],
    [data-tone='partial']
  ) {
  color: var(--warning);
  border-color: rgba(255, 196, 107, 0.45);
}

#assistant-card .chip[data-tone='unavailable'] {
  color: var(--danger-text);
  border-color: rgba(255, 143, 157, 0.45);
}

@keyframes assistant-card-in {
  from {
    opacity: 0;
    transform: translate(-50%, 0.45rem);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ==========================================================================
   STATUSSEN — .listening .busy .speaking .error
   ========================================================================== */
#assistant-dock.listening {
  border-color: rgba(255, 92, 110, 0.58);
  box-shadow:
    inset 0 0 0 1px #ff5c6e14,
    inset 0 1px 0 #ffd9de12,
    0 8px 24px #0006,
    0 0 18px #ff5c6e1f;
}

#assistant-dock.listening .label {
  color: var(--danger-text);
}

#assistant-dock.listening .ring {
  border-color: rgba(255, 92, 110, 0.6);
  box-shadow:
    0 0 0 3px #2b071080,
    0 0 0 4px #ff5c6e29,
    0 0 0.9rem #ff5c6e4d,
    inset 0 1px 3px #ffd9de12;
  animation: dock-listen-pulse 1.6s ease-in-out infinite;
}

#assistant-dock.busy .dots i {
  animation: dock-thinking-pulse 1.2s ease-in-out infinite;
}

#assistant-dock.busy .dots i:nth-child(2) {
  animation-delay: 0.16s;
}

#assistant-dock.busy .dots i:nth-child(3) {
  animation-delay: 0.32s;
}

#assistant-dock.busy .btn {
  opacity: 0.6;
}

#assistant-dock.speaking {
  border-color: rgba(54, 220, 255, 0.55);
  box-shadow:
    inset 0 0 0 1px #8ae5f00f,
    inset 0 1px 0 #c3f5ff14,
    0 8px 24px #0006,
    0 0 22px #36dcff29;
}

#assistant-dock.speaking .ring {
  border-color: rgba(54, 220, 255, 0.55);
}

#assistant-dock.error {
  border-color: rgba(255, 92, 110, 0.58);
}

#assistant-dock.error .label {
  color: var(--danger-text);
}

#assistant-dock.error .ring {
  border-color: rgba(255, 92, 110, 0.45);
  box-shadow:
    0 0 0 3px #2b071080,
    0 0 0 4px #ff5c6e1f,
    inset 0 1px 3px #ffd9de12;
}

/* Statusregel onder de berichten. */
.state {
  margin: 0;
  padding: 0.3rem 1rem;
  color: var(--text-secondary);
  font-size: 0.7rem;
}

.state:empty {
  display: none;
}

.state.error {
  color: var(--danger-text);
}

/* Statusregels in de lege staat en bij netwerkfallback. */
.empty small {
  color: var(--text-dim);
  font: 0.6rem var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes dock-listen-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 3px #2b071080,
      0 0 0 4px #ff5c6e29,
      0 0 0.5rem #ff5c6e33,
      inset 0 1px 3px #ffd9de12;
  }
  50% {
    box-shadow:
      0 0 0 3px #2b071080,
      0 0 0 5px #ff5c6e40,
      0 0 1.1rem #ff5c6e66,
      inset 0 1px 3px #ffd9de12;
  }
}

@keyframes dock-thinking-pulse {
  0%,
  80%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  40% {
    opacity: 0.95;
    transform: translateY(-0.2rem);
  }
}

/* ==========================================================================
   Responsief
   ========================================================================== */
@media (max-width: 620px) {
  #assistant-dock {
    bottom: 8px;
    gap: 0.3rem;
    padding: 0.45rem 0.7rem 0.6rem;
  }

  #assistant-panel,
  #assistant-card {
    bottom: 7.6rem;
  }

  .wave {
    max-width: none;
  }
}

@media (pointer: coarse) {
  .btn {
    min-width: 44px;
    min-height: 44px;
  }

  .icon,
  .send,
  .confirm button,
  .chips button {
    min-height: 44px;
  }

  .icon,
  .send {
    min-width: 44px;
  }
}

/* ==========================================================================
   PREFERS-REDUCED-MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  #assistant-dock,
  #assistant-dock .ring,
  #assistant-dock .btn,
  #assistant-dock .wave i,
  #assistant-panel,
  #assistant-card,
  .icon,
  .input,
  .send {
    animation: none;
    transition: none;
  }

  #assistant-dock.busy .dots i {
    animation: none;
    opacity: 0.8;
  }

  #assistant-dock.listening .ring {
    animation: none;
    box-shadow:
      0 0 0 3px #2b071080,
      0 0 0 4px #ff5c6e40,
      inset 0 1px 3px #ffd9de12;
  }

  #assistant-card {
    animation: none;
  }
}
