/* Hologram + AlexIO styles carried over from the previous site, with their
   original design tokens scoped to those components so they cannot collide
   with site.css. */
.holo-scope, .alexio {
  /* Brand */
  --brand-navy:        #03060f;
  --brand-navy-2:      #060a18;
  --brand-navy-3:      #0a1228;
  --brand-navy-4:      #0e1a3a;
  --brand-blue:        #1E6FE0;
  --brand-blue-light:  #4FC3F7;
  --brand-blue-glow:   #22D3EE;
  --brand-purple:      #8B2FE8;
  --brand-purple-light:#C060FA;
  --brand-purple-glow: #A93FF0;

  /* Gradients */
  --grad-brand:       linear-gradient(135deg, #1E6FE0 0%, #8B2FE8 100%);
  --grad-brand-r:     linear-gradient(135deg, #8B2FE8 0%, #1E6FE0 100%);
  --grad-hero:        linear-gradient(135deg, #1E6FE0 0%, #5A2FE0 50%, #8B2FE8 100%);
  --grad-text:        linear-gradient(100deg, #4FC3F7 0%, #7C9CFF 45%, #C060FA 100%);
  --grad-line:        linear-gradient(90deg, transparent, rgba(79,195,247,0.55), rgba(192,96,250,0.45), transparent);

  /* Surfaces */
  --surface-0:        #03060f;
  --surface-1:        #060a18;
  --surface-2:        #08101f;
  --surface-3:        #0e1a3a;
  --surface-card:     rgba(10,18,40,0.62);
  --surface-card-2:   rgba(14,26,58,0.5);
  --surface-glass:    rgba(255,255,255,0.028);
  --surface-glass-2:  rgba(255,255,255,0.055);

  /* Text */
  --text-primary:     #eef6ff;
  --text-secondary:   rgba(196,222,247,0.72);
  --text-muted:       rgba(160,196,232,0.5);
  --text-faint:       rgba(150,185,225,0.34);
  --text-accent:      #4FC3F7;

  /* Borders */
  --border-subtle:    rgba(140,190,255,0.09);
  --border-glass:     rgba(160,205,255,0.15);
  --border-blue:      rgba(79,195,247,0.38);
  --border-purple:    rgba(160,90,240,0.34);

  /* Status */
  --color-success:    #10b981;
  --color-warning:    #f59e0b;
  --color-error:      #ef4444;
  --color-info:       #60A5FA;

  /* Shadows */
  --shadow-sm:        0 1px 2px rgba(0,0,0,0.4);
  --shadow-md:        0 6px 20px rgba(0,0,0,0.35);
  --shadow-lg:        0 20px 50px rgba(0,0,0,0.5);
  --shadow-blue:      0 10px 40px rgba(30,111,224,0.28);
  --shadow-ring:      0 0 0 1px rgba(160,205,255,0.08);

  /* Radii */
  --radius-sm:        8px;
  --radius-md:        12px;
  --radius-lg:        16px;
  --radius-xl:        20px;
  --radius-2xl:       28px;
  --radius-full:      9999px;

  /* Spacing scale */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.25rem;  --sp-6: 1.5rem;   --sp-8: 2rem;     --sp-10: 2.5rem;
  --sp-12: 3rem;    --sp-14: 3.5rem;  --sp-16: 4rem;    --sp-20: 5rem;
  --sp-24: 6rem;    --sp-32: 8rem;

  /* Typography */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --text-xs:   0.75rem;  --text-sm: 0.875rem; --text-base: 1rem;
  --text-lg:   1.125rem; --text-xl: 1.25rem;  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem; --text-4xl: 2.25rem; --text-5xl:  3rem;
  --text-6xl:  3.75rem;  --text-7xl: 4.25rem;
  --weight-400: 400; --weight-500: 500; --weight-600: 600;
  --weight-700: 700; --weight-800: 800;
  --leading-tight: 1.08; --leading-snug: 1.3;
  --leading-normal: 1.6; --leading-relaxed: 1.75;
  --tracking-tight: -0.035em; --tracking-normal: 0;
  --tracking-wide: 0.08em; --tracking-wider: 0.14em;

  /* Layout */
  --nav-h: 74px;
  --maxw: 1200px;

  /* Motion */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur-fast: 150ms; --dur-base: 260ms; --dur-slow: 480ms;
}

/* --------------------------------------------------------------------------
   8. HERO — PROJECTED HOLOGRAPHIC FACE
   A scanned human head (glTF bake, streamed as static/models/head.holo) is
   rendered by static/js/holoface.js in raw WebGL: additive fresnel shell +
   wireframe + surface stipple, with scan bands, band tearing and RGB split.
   Everything around it — cone, emitter, motes, scanline rake, HUD ticks — is
   CSS, and the chromatic veil reads the --holo-glitch value the renderer
   writes each frame. Falls back to the baked poster with no WebGL or no JS.
   -------------------------------------------------------------------------- */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  animation: fade-in 1.1s var(--ease-out) 0.25s both;
}

.android-stage {
  position: relative;
  width: min(430px, 100%);
  aspect-ratio: 5 / 6;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ambient light pool the projection sits in */
.holo-ambient {
  position: absolute;
  width: 86%;
  height: 86%;
  border-radius: 50%;
  background: radial-gradient(circle,
              rgba(30,111,224,0.3) 0%,
              rgba(139,47,232,0.13) 46%,
              transparent 70%);
  filter: blur(26px);
  animation: breathe-glow 6.5s ease-in-out infinite;
  pointer-events: none;
}

/* orbiting data ring around the projection */
.android-orbit {
  position: absolute;
  inset: -2%;
  border-radius: 50%;
  border: 1px dashed rgba(192,96,250,0.12);
  pointer-events: none;
}

.android-orbit-2 { animation: spin 52s linear infinite reverse; }

.android-orbit-track {
  position: absolute;
  inset: 0;
  animation: spin 30s linear infinite;
  pointer-events: none;
}

.orbit-node {
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--brand-blue-glow);
  box-shadow: 0 0 14px var(--brand-blue-glow), 0 0 4px #fff;
}

.orbit-node-2 { background: var(--brand-purple-light); box-shadow: 0 0 14px var(--brand-purple-glow), 0 0 4px #fff; }
.orbit-node-3 { background: #fff; box-shadow: 0 0 12px var(--brand-blue-light); width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; }

/* parallax wrapper driven by the pointer */
.android-tilt {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 600ms var(--ease-out);
  will-change: transform;
}

/* ---- projection rig: head, cone, emitter, motes, HUD ticks ---- */
.holo-rig {
  position: absolute;
  inset: 0;
}

/* ---- the head (WebGL canvas, poster fallback underneath) ---- */
.holo-projection {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 78%;
  animation: holo-hover 7s ease-in-out infinite,
             holo-flicker 7s steps(1) infinite;
  will-change: transform;
}

.holo-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 900ms var(--ease-out);
}

/* the renderer flips this on once geometry is uploaded and the first frame is up */
.holo-ready .holo-canvas { opacity: 1; }
.holo-no-gl .holo-canvas { display: none; }

/* static bake of the same head — carries no-JS, no-WebGL and pre-load states */
.holo-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.92;
  filter: drop-shadow(0 0 22px rgba(79,195,247,0.45));
}

.holo-ready .holo-poster { display: none; }

/* ---- scanlines raked across the projection ---- */
.holo-scanlines {
  position: absolute;
  inset: -2% -6%;
  background: repeating-linear-gradient(to bottom,
              rgba(190,240,255,0.12) 0px, rgba(190,240,255,0.12) 1px,
              transparent 1px, transparent 4px);
  mix-blend-mode: screen;
  opacity: 0.55;
  animation: scan-drift 1.6s linear infinite;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 80%, transparent);
}

/* chromatic wash driven by --holo-glitch, which the renderer writes each frame */
.holo-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(104deg,
              rgba(34,211,238,0.14) 0%,
              transparent 45%,
              rgba(192,96,250,0.16) 100%);
  mix-blend-mode: screen;
  opacity: calc(var(--holo-glitch, 0) * 0.6);
  pointer-events: none;
}

/* ---- projection cone ---- */
.holo-cone {
  position: absolute;
  left: 50%;
  bottom: 7%;
  width: 84%;
  height: 76%;
  transform: translateX(-50%);
  clip-path: polygon(41% 100%, 59% 100%, 97% 0%, 3% 0%);
  background: linear-gradient(to top,
              rgba(79,195,247,0.22) 0%,
              rgba(79,195,247,0.07) 40%,
              rgba(139,47,232,0.04) 70%,
              transparent 100%);
  filter: blur(3px);
  animation: cone-breathe 5.5s ease-in-out infinite;
  pointer-events: none;
}

/* ---- rising motes ---- */
.holo-motes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.holo-mote {
  position: absolute;
  bottom: 9%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #9BE9FF;
  box-shadow: 0 0 9px var(--brand-blue-light);
  opacity: 0;
  animation: mote-rise 7s linear infinite;
}

/* ---- emitter base ---- */
.holo-emitter {
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 60%;
  height: 15%;
  transform: translateX(-50%);
  pointer-events: none;
}

.emitter-glow {
  position: absolute;
  inset: -140% -34%;
  background: radial-gradient(50% 50% at 50% 50%,
              rgba(155,233,255,0.34) 0%,
              rgba(30,111,224,0.12) 45%,
              transparent 72%);
  filter: blur(10px);
}

.emitter-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(79,195,247,0.5);
}

.emitter-ring-2 { inset: 14% 22%; border-color: rgba(127,217,255,0.42); }
.emitter-ring-3 { inset: 27% 40%; border-color: rgba(189,241,255,0.5); }

.emitter-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(79,195,247,0.6);
  animation: base-ring 4s ease-out infinite;
}

.emitter-pulse-2 {
  border-color: rgba(192,96,250,0.5);
  animation-delay: 2s;
}

.emitter-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20%;
  height: 34%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #BDF1FF;
  opacity: 0.85;
  filter: blur(1.5px);
  box-shadow: 0 0 22px var(--brand-blue-light);
}

/* ---- side HUD ticks ---- */
.holo-hud {
  position: absolute;
  top: 36%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  animation: hud-blink 3.4s ease-in-out infinite;
  pointer-events: none;
}

.holo-hud-l { left: 1%; align-items: flex-end; }
.holo-hud-r { right: 1%; align-items: flex-start; }

.holo-hud span {
  display: block;
  height: 1.6px;
  border-radius: 1px;
  background: var(--brand-blue-light);
}

.holo-hud span:nth-child(1) { width: 30px; }
.holo-hud span:nth-child(2) { width: 42px; }
.holo-hud span:nth-child(3) { width: 20px; }
.holo-hud-r span { background: var(--brand-purple-light); }

/* --------------------------------------------------------------------------
   8b. HUD CHIPS
   -------------------------------------------------------------------------- */
.hud-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: rgba(8,16,34,0.8);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  padding: 0.6rem 0.9rem;
  box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
  z-index: 4;
  white-space: nowrap;
}

.hud-chip-1 { top: 10%; right: -8%; animation-delay: 0s; }
.hud-chip-2 { bottom: 26%; left: -10%; animation-delay: 1.6s; }
.hud-chip-3 { bottom: 4%; right: -2%; animation-delay: 3.1s; }

.hud-chip-icon {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(30,111,224,0.4);
}

.hud-chip-label {
  font-size: 0.8125rem;
  font-weight: var(--weight-700);
  color: var(--text-primary);
  line-height: 1.25;
}

.hud-chip-note {
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.25;
}

.hud-chip-live {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
/* keyframes used by the hologram */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.72); }
}

@keyframes holo-hover {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

@keyframes breathe-glow {
  0%, 100% { opacity: 0.62; transform: scale(0.97); }
  50%      { opacity: 0.95; transform: scale(1.05); }
}

/* irregular signal instability — brief dropouts, never a steady blink */
@keyframes holo-flicker {
  0%, 8%    { opacity: 1; }
  8.4%      { opacity: 0.72; }
  8.8%      { opacity: 1; }
  27%       { opacity: 1; }
  27.3%     { opacity: 0.55; }
  27.7%     { opacity: 1; }
  28.1%     { opacity: 0.82; }
  28.5%     { opacity: 1; }
  61%       { opacity: 1; }
  61.4%     { opacity: 0.66; }
  61.9%     { opacity: 1; }
  86%       { opacity: 1; }
  86.3%     { opacity: 0.88; }
  86.6%     { opacity: 1; }
  100%      { opacity: 1; }
}

/* one scanline period, so the rake loops seamlessly */
@keyframes scan-drift {
  from { transform: translateY(0); }
  to   { transform: translateY(-4px); }
}

@keyframes cone-breathe {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

@keyframes mote-rise {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  8%   { opacity: 0.85; }
  75%  { opacity: 0.35; }
  100% { opacity: 0; transform: translateY(-330px) scale(0.4); }
}

@keyframes base-ring {
  0%   { opacity: 0.55; transform: scale(0.42); }
  100% { opacity: 0;    transform: scale(1.25); }
}

@keyframes hud-blink {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.7; }
}

/* --------------------------------------------------------------------------
   23. ALEXIO — SITE ASSISTANT WIDGET
   Floating launcher + chat panel. Streams replies from /api/chat.
   -------------------------------------------------------------------------- */
.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;
}

/* keep the back-to-top button clear of the launcher */
.to-top { bottom: calc(var(--sp-6) + 70px); }

/* ---- launcher ---- */
.alexio-launcher {
  position: fixed;
  right: var(--sp-6);
  bottom: var(--sp-6);
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(160,205,255,0.22);
  background: var(--grad-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(30,111,224,0.42), 0 2px 8px rgba(0,0,0,0.35);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base);
}

.alexio-launcher:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 38px rgba(30,111,224,0.55); }
.alexio-launcher:active { transform: scale(0.97); }

.alexio-launcher-icon {
  position: absolute;
  display: flex;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}

.alexio-launcher-close { opacity: 0; transform: rotate(-45deg) scale(0.7); }
.alexio-open .alexio-launcher-open { opacity: 0; transform: rotate(45deg) scale(0.7); }
.alexio-open .alexio-launcher-close { opacity: 1; transform: rotate(0) scale(1); }

/* attention ring until first opened */
.alexio-launcher-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--brand-blue-glow);
  opacity: 0;
  animation: alexio-pulse 3.4s ease-out infinite 2s;
  pointer-events: none;
}

.alexio-open .alexio-launcher-pulse,
.alexio-seen .alexio-launcher-pulse { animation: none; opacity: 0; }

@keyframes alexio-pulse {
  0%   { opacity: 0.55; transform: scale(1); }
  70%  { opacity: 0;    transform: scale(1.45); }
  100% { opacity: 0;    transform: scale(1.45); }
}

/* ---- panel ---- */
.alexio-panel {
  position: fixed;
  right: var(--sp-6);
  bottom: calc(var(--sp-6) + 72px);
  width: min(396px, calc(100vw - 2 * var(--sp-6)));
  height: min(600px, calc(100vh - 140px));
  display: flex;
  flex-direction: column;
  background: rgba(6,12,26,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: 0 28px 70px rgba(0,0,0,0.62), 0 0 0 1px rgba(79,195,247,0.06);
  z-index: 1001;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.alexio-panel[hidden] { display: none; }
.alexio-panel.show { opacity: 1; transform: translateY(0) scale(1); }

/* ---- header ---- */
.alexio-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(30,111,224,0.16), transparent);
  flex-shrink: 0;
}

.alexio-avatar {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--grad-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.alexio-heading { flex: 1; min-width: 0; }

.alexio-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  margin: 0;
}

.alexio-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 2px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.alexio-live {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
  flex-shrink: 0;
}

.alexio-close {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color var(--dur-fast), background var(--dur-fast);
}

.alexio-close:hover { color: var(--text-primary); background: var(--surface-glass-2); }

/* ---- message log ---- */
.alexio-log {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  scrollbar-width: thin;
  scrollbar-color: rgba(120,170,230,0.28) transparent;
}

.alexio-log::-webkit-scrollbar { width: 6px; }
.alexio-log::-webkit-scrollbar-thumb { background: rgba(120,170,230,0.28); border-radius: 3px; }

.alexio-msg { display: flex; max-width: 100%; animation: alexio-in 260ms var(--ease-out) both; }
.alexio-msg-user { justify-content: flex-end; }

@keyframes alexio-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.alexio-bubble {
  max-width: 86%;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-secondary);
  background: var(--surface-glass-2);
  border: 1px solid var(--border-subtle);
  overflow-wrap: anywhere;
}

/* the visitor's own text is echoed verbatim, so keep their line breaks */
.alexio-msg-user .alexio-bubble { white-space: pre-wrap; }

.alexio-msg-bot .alexio-bubble { border-bottom-left-radius: 5px; }

.alexio-msg-user .alexio-bubble {
  border-bottom-right-radius: 5px;
  background: linear-gradient(135deg, rgba(30,111,224,0.34), rgba(139,47,232,0.28));
  border-color: var(--border-blue);
  color: var(--text-primary);
}

.alexio-bubble p { margin: 0 0 0.55rem; }
.alexio-bubble > :last-child { margin-bottom: 0; }

/* app.css resets ul globally to list-style: none — restore it in the bubble */
.alexio-bubble ul {
  list-style: disc;
  margin: 0.45rem 0;
  padding-left: 1.15rem;
}

.alexio-bubble li { margin-bottom: 0.25rem; }
.alexio-bubble li:last-child { margin-bottom: 0; }
.alexio-bubble li::marker { color: var(--brand-blue-light); }
.alexio-bubble a { color: var(--text-accent); text-decoration: underline; }
.alexio-bubble.alexio-error { border-color: rgba(239,68,68,0.4); color: #fca5a5; }

/* typing indicator */
.alexio-typing { display: flex; gap: 4px; align-items: center; padding: 0.25rem 0; }
.alexio-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-blue-light);
  opacity: 0.4;
  animation: alexio-dot 1.3s ease-in-out infinite;
}
.alexio-typing span:nth-child(2) { animation-delay: 0.18s; }
.alexio-typing span:nth-child(3) { animation-delay: 0.36s; }

@keyframes alexio-dot {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30%           { opacity: 1;    transform: translateY(-3px); }
}

/* ---- suggestion chips ---- */
.alexio-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: 0 var(--sp-5) var(--sp-3);
  flex-shrink: 0;
}

.alexio-suggestions[hidden] { display: none; }

.alexio-chip {
  font-family: inherit;
  font-size: 0.72rem;
  color: var(--text-accent);
  background: rgba(79,195,247,0.09);
  border: 1px solid rgba(79,195,247,0.26);
  border-radius: var(--radius-full);
  padding: 0.34rem 0.7rem;
  cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}

.alexio-chip:hover { background: rgba(79,195,247,0.18); border-color: var(--border-blue); transform: translateY(-1px); }

/* ---- composer ---- */
.alexio-composer {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--border-subtle);
  background: rgba(8,16,34,0.6);
  flex-shrink: 0;
}

.alexio-input {
  flex: 1;
  font-family: inherit;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  resize: none;
  max-height: 120px;
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.alexio-input::placeholder { color: var(--text-faint); }
.alexio-input:focus { border-color: var(--border-blue); box-shadow: 0 0 0 3px rgba(79,195,247,0.12); }

.alexio-send {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  border: none;
  background: var(--grad-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--dur-fast), opacity var(--dur-fast);
}

.alexio-send:hover:not(:disabled) { transform: scale(1.06); }
.alexio-send:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---- footnote ---- */
.alexio-foot {
  font-size: 0.68rem;
  color: var(--text-faint);
  text-align: center;
  padding: 0 var(--sp-4) var(--sp-3);
  margin: 0;
  flex-shrink: 0;
}

.alexio-link {
  font: inherit;
  color: var(--text-accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

/* ---- mobile: full-height sheet ---- */
@media (max-width: 560px) {
  .alexio-panel {
    right: 0; left: 0; bottom: 0;
    width: 100%;
    height: 88vh;
    height: 88dvh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform-origin: bottom center;
  }
  .alexio-launcher { right: var(--sp-4); bottom: var(--sp-4); width: 54px; height: 54px; }
  .to-top { bottom: calc(var(--sp-4) + 66px); right: var(--sp-4); }
  .alexio-open .to-top { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .alexio-launcher-pulse { animation: none !important; opacity: 0; }
  .alexio-msg { animation: none !important; }
}

@media print {
  .alexio { display: none !important; }
}
