#henry-ai-intake.henry-ai-console {
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.henry-ai-console__inner {
  position: relative;
  padding: 1.25rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(71, 120, 255, 0.14), transparent 34%),
    radial-gradient(circle at bottom right, rgba(0, 229, 255, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(11, 14, 22, 0.92), rgba(7, 9, 15, 0.96));
  border: 1px solid rgba(134, 163, 255, 0.18);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(64, 95, 180, 0.06);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.henry-ai-console__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.015)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 23px,
      rgba(125, 152, 255, 0.03) 24px
    );
  opacity: 0.6;
}

.henry-ai-console__label {
  position: relative;
  z-index: 1;
  margin-bottom: 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(168, 188, 255, 0.82);
}

.ai-input-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 66px;
  padding: 0 1.1rem;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(10, 13, 20, 0.96), rgba(6, 8, 14, 0.98));
  border: 1px solid rgba(126, 153, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    inset 0 0 28px rgba(42, 60, 120, 0.16),
    0 0 0 rgba(72, 116, 255, 0);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.ai-input-wrapper:focus-within {
  border-color: rgba(120, 165, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    inset 0 0 36px rgba(59, 88, 184, 0.22),
    0 0 0 4px rgba(72, 116, 255, 0.09),
    0 0 32px rgba(54, 89, 189, 0.18);
  transform: translateY(-1px);
}

.ai-input-prefix {
  flex: 0 0 auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(124, 181, 255, 0.9);
  text-shadow: 0 0 12px rgba(74, 136, 255, 0.35);
}

#ai-intake-input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #f4f7ff;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.01em;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  
}


#ai-intake-input:focus {
  box-shadow: none;
  outline: none;
  border-color: inherit; /* optional */
}


#ai-intake-input::placeholder {
  color: rgba(177, 191, 224, 0.54);
}

#ai-intake-input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.henry-ai-response {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.2rem 0;
  color: rgba(233, 239, 255, 0.9);
  font-size: 0.98rem;
  line-height: 1.7;
  white-space: pre-line;
}

.henry-ai-response:empty {
  display: none;
}

.henry-ai-response:not(:empty) {
  border-top: 1px solid rgba(113, 136, 210, 0.14);
  padding-top: 1rem;
}

@media (max-width: 768px) {
  .henry-ai-console__inner {
    padding: 1rem;
    border-radius: 20px;
  }

  .ai-input-wrapper {
    min-height: 60px;
    padding: 0 0.9rem;
    border-radius: 16px;
  }

  #ai-intake-input,
  .henry-ai-response {
    font-size: 0.95rem;
  }
}

.henry-ai-thinking {
  position: relative;
  z-index: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
  padding-top: 0.6rem;
  color: rgba(173, 190, 240, 0.78);
  text-align: center;
}

.henry-ai-thinking.is-visible {
  display: flex;
}

.henry-ai-thinking__droplet {
  position: relative;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
}

.henry-ai-thinking__icon,
.henry-ai-thinking__pulse {
  position: absolute;
  inset: 0;
  display: block;
}

.henry-ai-thinking__icon {
  animation: henry-ai-breathe 2.4s ease-in-out infinite;
}

.henry-ai-thinking__icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter:
    drop-shadow(0 0 12px rgba(72, 135, 255, 0.55))
    drop-shadow(0 0 26px rgba(72, 135, 255, 0.35))
    drop-shadow(0 0 44px rgba(72, 135, 255, 0.18));
}

.henry-ai-thinking__pulse {
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(74, 136, 255, 0.42),
    rgba(74, 136, 255, 0.08) 58%,
    transparent 70%
  );
  transform: scale(0.55);
  animation: henry-ai-droplet-pulse 1.6s ease-out infinite;
}

@keyframes henry-ai-breathe {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes henry-ai-droplet-pulse {
  0% {
    opacity: 0.28;
    transform: scale(0.55);
  }
  42% {
    opacity: 1;
    transform: scale(1.65);
  }
  100% {
    opacity: 0;
    transform: scale(2.25);
  }
}

.henry-ai-response.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.55ch;
  height: 1.1em;
  margin-left: 0.08em;
  vertical-align: -0.15em;
  background: rgba(145, 184, 255, 0.95);
  box-shadow: 0 0 10px rgba(88, 149, 255, 0.35);
  animation: henry-ai-cursor-blink 0.9s step-end infinite;
}

@keyframes henry-ai-cursor-blink {
  0%, 50% {
    opacity: 1;
  }
  50.01%, 100% {
    opacity: 0;
  }
}


/////

.ai-fallback {
  margin-top: 1.6rem;
  text-align: center;
}

.ai-fallback__label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(23 24 33);

}

.ai-fallback__link {
  display: inline-block;
  padding: 1.5rem 1.2rem;
  border-radius: 24px;

    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;

  color: rgba(180, 205, 255, 0.9);
  text-decoration: none;

  background: linear-gradient(
    180deg,
    rgba(20, 28, 48, 0.85),
    rgba(10, 14, 24, 0.95)
  );

  border: 1px solid rgba(120, 165, 255, 0.25);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 rgba(72, 116, 255, 0);

  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 140ms ease,
    color 140ms ease;
}

.ai-fallback__link:hover {
  color: #ffffff;

  border-color: rgba(120, 165, 255, 0.5);

  box-shadow:
    0 0 0 3px rgba(72, 116, 255, 0.12),
    0 0 18px rgba(72, 116, 255, 0.25);

  transform: translateY(-1px);
}

.ai-fallback__link:active {
  transform: translateY(0);
  box-shadow:
    0 0 0 2px rgba(72, 116, 255, 0.08),
    0 0 10px rgba(72, 116, 255, 0.2);
}

.ai-fallback {
  opacity: 0;
  animation: ai-fallback-fade 0.6s ease forwards;
  animation-delay: 0.5s;
}

@keyframes ai-fallback-fade {
  to {
    opacity: 1;
  }
}

.ai-wrapper {
  
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: space-between;
}
