/* Genius: the particle agent. Independent stylesheet, not shared with the
   home animation's CSS. Reuses the site's own ink/white/muted/accent
   palette (see :root in styles.css) as plain values, since this file never
   assumes styles.css loaded first. */
.genius-trigger {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  z-index: 1200;
  -webkit-tap-highlight-color: transparent;
}
.genius-trigger__dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #f1e8ff 0%, #bc5cf0 38%, #7913fc 78%, rgba(121, 19, 252, 0) 100%);
  box-shadow: 0 0 14px 3px rgba(121, 19, 252, .55);
  animation: genius-breathe 3.6s ease-in-out infinite;
}
.genius-trigger:focus-visible {
  outline: 2px solid #bc5cf0;
  outline-offset: 4px;
  border-radius: 50%;
}
@keyframes genius-breathe {
  0%, 100% { transform: scale(.82); opacity: .62; }
  50% { transform: scale(1); opacity: 1; }
}

body.genius-open { overflow: hidden; }

.genius-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #eff1f5;
}
.genius-dialog::backdrop {
  background: #030509ed;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.genius-dialog__canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.genius-dialog__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(92vw, 560px);
  max-height: min(78vh, 640px);
  margin: 18vh auto 0;
  padding: 20px 20px 16px;
  border-radius: 20px;
  background: rgba(3, 5, 9, .62);
  opacity: 0;
  transition: opacity .35s ease;
}
.genius-dialog[data-genius-phase="listening"] .genius-dialog__panel,
.genius-dialog[data-genius-phase="thinking"] .genius-dialog__panel,
.genius-dialog[data-genius-phase="speaking"] .genius-dialog__panel {
  opacity: 1;
}
.genius-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  color: #939ba8;
  cursor: pointer;
}
.genius-dialog__close svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  fill: none;
}
.genius-dialog__close:hover,
.genius-dialog__close:focus-visible { color: #eff1f5; }
.genius-dialog__close:focus-visible { outline: 2px solid #bc5cf0; outline-offset: 2px; border-radius: 8px; }

.genius-dialog__name {
  font: 600 13px/1 'Helvetica Neue', Helvetica, Arial, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #939ba8;
  margin: 0 0 14px;
}
.genius-dialog__transcript {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 14px;
  min-height: 60px;
}
.genius-dialog__message {
  margin: 0;
  font: 400 15px/1.55 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #eff1f5;
}
.genius-dialog__message--user {
  color: #c2c9d4;
  text-align: right;
}
.genius-dialog__form {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(239, 241, 245, .14);
  padding-top: 12px;
}
.genius-dialog__input {
  flex: 1;
  background: transparent;
  border: 0;
  color: #eff1f5;
  font: 400 15px/1.4 'Helvetica Neue', Helvetica, Arial, sans-serif;
  padding: 6px 2px;
}
.genius-dialog__input::placeholder { color: #939ba8; }
.genius-dialog__input:focus { outline: none; }
.genius-dialog__send {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  background: rgba(121, 19, 252, .22);
  border: 0;
  border-radius: 50%;
  color: #eff1f5;
  cursor: pointer;
}
.genius-dialog__send svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.genius-dialog__send:hover,
.genius-dialog__send:focus-visible { background: rgba(121, 19, 252, .38); }
.genius-dialog__send:focus-visible { outline: 2px solid #bc5cf0; outline-offset: 2px; }

/* Discreet by design: same quiet material as the send button, no badge, no
   motion of its own — the only signal for "voice is on" is the fill and the
   label changing. Never blinks, never grows. A sound-wave icon plus a small
   text label, deliberately not a microphone glyph: this turns on a spoken
   conversation, not dictation. */
.genius-dialog__voice {
  height: 32px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid rgba(239, 241, 245, .2);
  border-radius: 16px;
  color: #c2c9d4;
  cursor: pointer;
}
.genius-dialog__voice svg {
  width: 14px;
  height: 14px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.genius-dialog__voice-label {
  font: 400 12px/1 'Helvetica Neue', Helvetica, Arial, sans-serif;
  white-space: nowrap;
}
.genius-dialog__voice:hover,
.genius-dialog__voice:focus-visible { color: #eff1f5; border-color: rgba(239, 241, 245, .4); }
.genius-dialog__voice:focus-visible { outline: 2px solid #bc5cf0; outline-offset: 2px; }
.genius-dialog__voice--on {
  background: rgba(121, 19, 252, .3);
  border-color: transparent;
  color: #eff1f5;
}
.genius-dialog__voice:disabled { opacity: .5; cursor: default; }

.genius-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .genius-dialog__panel { margin-top: 12vh; padding: 16px 16px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .genius-trigger__dot { animation: none; }
  .genius-dialog__panel { transition: none; }
}
