.ai-welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 16%, rgba(63, 244, 255, 0.12), transparent 20%),
    radial-gradient(circle at 22% 80%, rgba(172, 0, 255, 0.1), transparent 24%),
    radial-gradient(circle at 78% 82%, rgba(0, 153, 255, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(3, 7, 18, 0.84), rgba(2, 6, 16, 0.94));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.ai-welcome-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ai-welcome-overlay.is-closing {
  opacity: 0;
  visibility: hidden;
}

.ai-welcome-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(103, 196, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 196, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 28%, transparent 88%);
  opacity: 0.4;
}

.ai-nebula {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.7;
  pointer-events: none;
}

.ai-nebula-a {
  width: 420px;
  height: 420px;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(39, 215, 255, 0.24), transparent 72%);
}

.ai-nebula-b {
  width: 300px;
  height: 300px;
  left: 8%;
  bottom: 10%;
  background: radial-gradient(circle, rgba(178, 49, 255, 0.16), transparent 72%);
}

.ai-nebula-c {
  width: 340px;
  height: 340px;
  right: 10%;
  bottom: 12%;
  background: radial-gradient(circle, rgba(47, 143, 255, 0.18), transparent 72%);
}

.ai-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(177, 240, 255, 1), rgba(81, 192, 255, 0.35));
  box-shadow:
    0 0 12px rgba(120, 220, 255, 0.6),
    0 0 24px rgba(120, 220, 255, 0.18);
  opacity: 0.65;
}

.p1 { top: 12%; left: 22%; }
.p2 { top: 18%; right: 24%; }
.p3 { top: 34%; left: 14%; }
.p4 { top: 28%; right: 16%; }
.p5 { bottom: 18%; left: 18%; }
.p6 { bottom: 14%; right: 22%; }
.p7 { top: 52%; left: 28%; }
.p8 { top: 58%; right: 26%; }
.p9 { bottom: 26%; left: 50%; }
.p10 { top: 10%; left: 50%; }

.ai-welcome-stage {
  position: relative;
  z-index: 5;
  width: min(100%, 960px);
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
}

.ai-welcome-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(139, 225, 255, 0.26);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow:
    0 0 18px rgba(80, 203, 255, 0.18),
    inset 0 0 18px rgba(182, 241, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
  padding: 0;
}

.ai-welcome-close:hover {
  transform: scale(1.08);
  border-color: rgba(124, 236, 255, 0.46);
  background:
    linear-gradient(180deg, rgba(66, 227, 255, 0.14), rgba(186, 56, 255, 0.08));
  box-shadow:
    0 0 20px rgba(80, 203, 255, 0.28),
    0 0 38px rgba(186, 56, 255, 0.12),
    inset 0 0 18px rgba(182, 241, 255, 0.05);
}

.ai-welcome-close span {
  position: absolute;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #f4fbff;
  box-shadow: 0 0 10px rgba(160, 234, 255, 0.5);
}

.ai-welcome-close span:first-child {
  transform: rotate(45deg);
}

.ai-welcome-close span:last-child {
  transform: rotate(-45deg);
}

.ai-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  margin-bottom: 18px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(15, 34, 62, 0.78), rgba(8, 18, 36, 0.78));
  border: 1px solid rgba(108, 221, 255, 0.22);
  color: #d9f5ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  box-shadow:
    0 0 18px rgba(64, 208, 255, 0.16),
    inset 0 0 16px rgba(132, 231, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ai-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7bfbff;
  box-shadow:
    0 0 14px rgba(123, 251, 255, 0.9),
    0 0 28px rgba(123, 251, 255, 0.22);
}

.ai-reactor-zone {
  position: relative;
  width: min(86vw, 430px);
  height: min(86vw, 430px);
  max-height: 430px;
  margin: 0 auto 28px;
  isolation: isolate;
}

.ai-reactor-shadow {
  position: absolute;
  left: 50%;
  bottom: 46px;
  width: 220px;
  height: 56px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 208, 255, 0.34), rgba(162, 65, 255, 0.1) 44%, transparent 74%);
  filter: blur(24px);
}

.ai-orbit,
.ai-pulse,
.ai-reactor {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.ai-orbit {
  border-radius: 50%;
  pointer-events: none;
}

.orbit-1 {
  width: 200px;
  height: 200px;
  border: 1px solid rgba(119, 230, 255, 0.28);
  box-shadow: 0 0 24px rgba(90, 214, 255, 0.12);
  transform: translate(-50%, -50%) rotateX(74deg);
}

.orbit-2 {
  width: 255px;
  height: 255px;
  border: 1px solid rgba(166, 71, 255, 0.18);
  box-shadow: 0 0 26px rgba(166, 71, 255, 0.08);
  transform: translate(-50%, -50%) rotateX(74deg) rotateZ(24deg);
}

.orbit-3 {
  width: 310px;
  height: 310px;
  border: 1px solid rgba(90, 191, 255, 0.14);
  transform: translate(-50%, -50%) rotateX(74deg) rotateZ(-18deg);
}

.orbit-4 {
  width: 360px;
  height: 360px;
  border: 1px dashed rgba(98, 223, 255, 0.08);
  transform: translate(-50%, -50%) rotateX(74deg);
}

.ai-pulse {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1px solid rgba(112, 237, 255, 0.18);
}

.ai-reactor {
  width: 180px;
  height: 180px;
  z-index: 8;
}

.ai-reactor-shell {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(216, 248, 255, 0.98), rgba(63, 215, 255, 0.26) 28%, rgba(12, 18, 32, 0.9) 62%, rgba(4, 8, 18, 0.98) 100%);
  border: 1px solid rgba(125, 240, 255, 0.24);
  box-shadow:
    0 0 34px rgba(59, 213, 255, 0.24),
    0 0 80px rgba(59, 213, 255, 0.14),
    0 0 120px rgba(166, 71, 255, 0.08),
    inset 0 0 40px rgba(213, 248, 255, 0.08);
  overflow: hidden;
}

.ai-reactor-core-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(117, 239, 255, 0.34), rgba(166, 71, 255, 0.08) 42%, transparent 74%);
  filter: blur(16px);
}

.ai-reactor-core {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(236, 253, 255, 0.96), rgba(70, 196, 255, 0.18) 42%, rgba(8, 15, 30, 0.96) 82%);
  border: 1px solid rgba(136, 235, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 0 20px rgba(179, 244, 255, 0.08),
    0 0 18px rgba(67, 203, 255, 0.16);
}

.ai-crystal-mark {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(210, 251, 255, 0.98), rgba(74, 206, 255, 0.8) 36%, rgba(120, 72, 255, 0.42) 70%, rgba(7, 13, 25, 0.05) 100%);
  box-shadow:
    0 0 24px rgba(97, 229, 255, 0.36),
    0 0 52px rgba(167, 77, 255, 0.12);
}

.ai-crystal-mark::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.98), rgba(83, 212, 255, 0.24) 45%, rgba(8, 14, 28, 0.94) 82%);
  box-shadow:
    0 0 16px rgba(126, 235, 255, 0.26),
    inset 0 0 10px rgba(203, 248, 255, 0.08);
}

.ai-crystal-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(214, 252, 255, 0.96), rgba(93, 212, 255, 0.62), rgba(168, 77, 255, 0.3));
  box-shadow:
    0 0 18px rgba(120, 233, 255, 0.45),
    0 0 32px rgba(168, 77, 255, 0.12);
}

.ai-reactor-scan {
  position: absolute;
  inset: -12%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(130, 243, 255, 0.1) 46%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(130, 243, 255, 0.1) 54%,
    transparent 100%
  );
  mix-blend-mode: screen;
  transform: translateY(-100%);
}

.ai-copy {
  width: 100%;
  max-width: 760px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.ai-title {
  margin: 0 0 14px;
  color: #f5fbff;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-shadow:
    0 0 14px rgba(104, 226, 255, 0.18),
    0 0 36px rgba(174, 58, 255, 0.08);
}

.ai-text {
  margin: 0 auto;
  max-width: 640px;
  color: rgba(219, 243, 255, 0.88);
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.72;
  text-wrap: balance;
}

.ai-wave {
  margin: 28px auto 0;
  width: 136px;
  height: 34px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 8px;
}

.ai-wave span {
  width: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(193, 247, 255, 1), rgba(46, 203, 255, 0.56));
  box-shadow:
    0 0 14px rgba(109, 229, 255, 0.26),
    0 0 28px rgba(174, 58, 255, 0.08);
}

.ai-wave span:nth-child(1) { height: 10px; }
.ai-wave span:nth-child(2) { height: 20px; }
.ai-wave span:nth-child(3) { height: 32px; }
.ai-wave span:nth-child(4) { height: 20px; }
.ai-wave span:nth-child(5) { height: 10px; }

.ai-hint {
  margin-top: 20px;
  color: rgba(206, 231, 248, 0.86);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-nebula-a {
  animation: aiNebulaDriftA 9s ease-in-out infinite;
}

.ai-nebula-b {
  animation: aiNebulaDriftB 11s ease-in-out infinite;
}

.ai-nebula-c {
  animation: aiNebulaDriftC 10s ease-in-out infinite;
}

.particle {
  animation: aiParticleFloat 8s ease-in-out infinite;
}

.p1 { animation-delay: 0s; }
.p2 { animation-delay: 1s; }
.p3 { animation-delay: 2s; }
.p4 { animation-delay: 2.4s; }
.p5 { animation-delay: 3s; }
.p6 { animation-delay: 4s; }
.p7 { animation-delay: 1.5s; }
.p8 { animation-delay: 2.8s; }
.p9 { animation-delay: 3.8s; }
.p10 { animation-delay: 5s; }

.ai-status-dot {
  animation: aiStatusPulse 1.8s ease-in-out infinite;
}

.ai-reactor-shadow {
  animation: aiShadowBreath 3.2s ease-in-out infinite;
}

.orbit-1 {
  animation: aiRingSpinA 10s linear infinite;
}

.orbit-2 {
  animation: aiRingSpinB 14s linear infinite;
}

.orbit-3 {
  animation: aiRingSpinA 18s linear infinite reverse;
}

.orbit-4 {
  animation: aiRingSpinB 24s linear infinite reverse;
}

.ai-pulse {
  animation: aiPulseWave 3.4s ease-out infinite;
}

.pulse-2 {
  animation-delay: 1.1s;
}

.pulse-3 {
  animation-delay: 2.2s;
}

.ai-reactor {
  animation: aiCoreFloat 4.2s ease-in-out infinite;
}

.ai-reactor-core-glow {
  animation: aiCoreGlow 2.8s ease-in-out infinite;
}

.ai-crystal-mark {
  animation: aiSphereShimmer 4s ease-in-out infinite;
}

.ai-crystal-mark::before {
  animation: aiInnerSphereBreath 3.2s ease-in-out infinite;
}

.ai-crystal-mark::after {
  animation: aiSphereCenterPulse 2.4s ease-in-out infinite;
}

.ai-reactor-scan {
  animation: aiScanSweep 3.8s linear infinite;
}

.ai-wave span {
  animation: aiWaveBars 1.2s ease-in-out infinite;
}

.ai-wave span:nth-child(1) { animation-delay: 0s; }
.ai-wave span:nth-child(2) { animation-delay: 0.1s; }
.ai-wave span:nth-child(3) { animation-delay: 0.2s; }
.ai-wave span:nth-child(4) { animation-delay: 0.3s; }
.ai-wave span:nth-child(5) { animation-delay: 0.4s; }

.ai-copy {
  padding-inline: 10px;
}

.ai-title {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.ai-text {
  padding-inline: 10px;
}

@keyframes aiNebulaDriftA {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.62;
  }
  50% {
    transform: translateX(-50%) scale(1.08);
    opacity: 0.9;
  }
}

@keyframes aiNebulaDriftB {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, -16px) scale(1.06);
  }
}

@keyframes aiNebulaDriftC {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-18px, -12px) scale(1.08);
  }
}

@keyframes aiParticleFloat {
  0%, 100% {
    transform: translateY(0px) scale(0.92);
    opacity: 0.45;
  }
  50% {
    transform: translateY(-18px) scale(1.14);
    opacity: 0.95;
  }
}

@keyframes aiStatusPulse {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}

@keyframes aiShadowBreath {
  0%, 100% {
    transform: translateX(-50%) scaleX(0.96);
    opacity: 0.48;
  }
  50% {
    transform: translateX(-50%) scaleX(1.08);
    opacity: 0.72;
  }
}

@keyframes aiRingSpinA {
  from {
    transform: translate(-50%, -50%) rotateX(74deg) rotateZ(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotateX(74deg) rotateZ(360deg);
  }
}

@keyframes aiRingSpinB {
  from {
    transform: translate(-50%, -50%) rotateX(74deg) rotateZ(24deg);
  }
  to {
    transform: translate(-50%, -50%) rotateX(74deg) rotateZ(-336deg);
  }
}

@keyframes aiPulseWave {
  0% {
    transform: translate(-50%, -50%) scale(0.58);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.15);
    opacity: 0;
  }
}

@keyframes aiCoreFloat {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0px);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-8px);
  }
}

@keyframes aiCoreGlow {
  0%, 100% {
    transform: scale(0.94);
    opacity: 0.78;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes aiSphereShimmer {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 24px rgba(97, 229, 255, 0.34),
      0 0 52px rgba(167, 77, 255, 0.12);
    filter: saturate(1);
  }
  50% {
    transform: scale(1.06);
    box-shadow:
      0 0 30px rgba(97, 229, 255, 0.46),
      0 0 70px rgba(167, 77, 255, 0.18);
    filter: saturate(1.15);
  }
}

@keyframes aiInnerSphereBreath {
  0%, 100% {
    transform: scale(1);
    opacity: 0.95;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes aiSphereCenterPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.86;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.18);
    opacity: 1;
  }
}

@keyframes aiScanSweep {
  0% {
    transform: translateY(-110%);
    opacity: 0;
  }
  20% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
  80% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(110%);
    opacity: 0;
  }
}

@keyframes aiWaveBars {
  0%, 100% {
    transform: scaleY(0.75);
    opacity: 0.72;
  }
  50% {
    transform: scaleY(1.18);
    opacity: 1;
  }
}
@media (max-width: 980px) {
  .ai-welcome-stage {
    width: min(100%, 860px);
    min-height: 84vh;
  }

  .ai-title {
    font-size: clamp(34px, 7vw, 58px);
  }

  .ai-text {
    max-width: 560px;
    font-size: 15px;
  }
}

@media (max-width: 640px) {
  .ai-welcome-overlay {
    padding: 16px;
  }

  .ai-welcome-stage {
    min-height: 88vh;
  }

  .ai-welcome-close {
    top: 12px;
    right: 12px;
    width: 46px;
    height: 46px;
  }

  .ai-welcome-close span {
    width: 18px;
  }

  .ai-status-chip {
    margin-bottom: 16px;
    padding: 9px 14px;
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .ai-reactor-zone {
    width: min(84vw, 320px);
    height: min(84vw, 320px);
    max-height: 320px;
    margin-bottom: 18px;
  }

  .ai-reactor-shadow {
    width: 180px;
    height: 44px;
    bottom: 34px;
  }

  .orbit-1 { width: 160px; height: 160px; }
  .orbit-2 { width: 210px; height: 210px; }
  .orbit-3 { width: 260px; height: 260px; }
  .orbit-4 { width: 300px; height: 300px; }

  .ai-pulse {
    width: 128px;
    height: 128px;
  }

  .ai-reactor {
    width: 134px;
    height: 134px;
  }

  .ai-reactor-core {
    inset: 21%;
  }

  .ai-crystal-mark {
    width: 58px;
    height: 58px;
  }

  .ai-crystal-mark::before {
    inset: 10px;
  }

  .ai-crystal-mark::after {
    width: 16px;
    height: 16px;
  }

  .ai-title {
    max-width: 360px;
    font-size: clamp(30px, 10vw, 44px);
    margin-bottom: 12px;
    line-height: 0.98;
  }

  .ai-text {
    max-width: 320px;
    font-size: 14px;
    line-height: 1.7;
    padding-inline: 0;
  }

  .ai-wave {
    margin-top: 22px;
    width: 126px;
    height: 30px;
    gap: 7px;
  }

  .ai-wave span {
    width: 9px;
  }

  .ai-hint {
    margin-top: 18px;
    font-size: 11px;
    letter-spacing: 0.06em;
  }
}

.ai-voice-overlay {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(16px) scale(0.94);
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0.35s ease;
}

.ai-voice-overlay.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.ai-voice-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 280px;
  padding: 14px 18px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(10, 18, 34, 0.9), rgba(6, 12, 24, 0.95));
  border: 1px solid rgba(124, 236, 255, 0.18);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.4),
    0 0 22px rgba(62, 208, 255, 0.18),
    0 0 44px rgba(166, 71, 255, 0.08),
    inset 0 0 18px rgba(196, 246, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.ai-voice-shell::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(142, 239, 255, 0.9),
    rgba(86, 206, 255, 0.28),
    rgba(172, 76, 255, 0.18),
    rgba(142, 239, 255, 0.9)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.9;
  pointer-events: none;
}

.ai-voice-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(84, 225, 255, 0.12), transparent 28%),
    radial-gradient(circle at 80% 50%, rgba(170, 71, 255, 0.08), transparent 26%);
  pointer-events: none;
}

.ai-voice-orb-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

.ai-voice-orb-core {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(233, 253, 255, 0.98), rgba(79, 214, 255, 0.7) 42%, rgba(156, 71, 255, 0.24) 76%);
  box-shadow:
    0 0 14px rgba(98, 231, 255, 0.45),
    0 0 28px rgba(156, 71, 255, 0.14);
  animation: aiVoiceOrbPulse 1.8s ease-in-out infinite;
}

.ai-voice-orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(124, 236, 255, 0.18);
  animation: aiVoiceRingPulse 2.4s ease-out infinite;
}

.ai-voice-orb-ring.ring-b {
  inset: -5px;
  animation-delay: 0.5s;
  border-color: rgba(166, 71, 255, 0.12);
}

.ai-voice-orb-ring.ring-c {
  inset: -10px;
  animation-delay: 1s;
  border-color: rgba(124, 236, 255, 0.08);
}

.ai-voice-bars {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
  width: 74px;
  height: 26px;
}

.ai-voice-bars span {
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(196, 248, 255, 1), rgba(50, 199, 255, 0.58));
  box-shadow:
    0 0 10px rgba(103, 231, 255, 0.22),
    0 0 18px rgba(166, 71, 255, 0.08);
  animation: aiVoiceBars 1.05s ease-in-out infinite;
}

.ai-voice-bars span:nth-child(1) { height: 9px; animation-delay: 0s; }
.ai-voice-bars span:nth-child(2) { height: 16px; animation-delay: 0.08s; }
.ai-voice-bars span:nth-child(3) { height: 23px; animation-delay: 0.16s; }
.ai-voice-bars span:nth-child(4) { height: 18px; animation-delay: 0.24s; }
.ai-voice-bars span:nth-child(5) { height: 24px; animation-delay: 0.32s; }
.ai-voice-bars span:nth-child(6) { height: 15px; animation-delay: 0.4s; }
.ai-voice-bars span:nth-child(7) { height: 9px; animation-delay: 0.48s; }

.ai-voice-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.ai-voice-copy strong {
  color: #f2fbff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ai-voice-copy span {
  margin-top: 4px;
  color: rgba(208, 233, 247, 0.82);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

@keyframes aiVoiceOrbPulse {
  0%, 100% {
    transform: scale(0.95);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@keyframes aiVoiceRingPulse {
  0% {
    transform: scale(0.84);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

@keyframes aiVoiceBars {
  0%, 100% {
    transform: scaleY(0.72);
    opacity: 0.72;
  }
  50% {
    transform: scaleY(1.18);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .ai-voice-overlay {
    bottom: 18px;
    width: calc(100vw - 28px);
    max-width: 340px;
  }

  .ai-voice-shell {
    min-width: 0;
    width: 100%;
    gap: 12px;
    padding: 12px 14px;
  }

  .ai-voice-orb-wrap {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .ai-voice-bars {
    width: 64px;
    gap: 4px;
  }

  .ai-voice-bars span {
    width: 4px;
  }

  .ai-voice-copy strong {
    font-size: 11px;
  }

  .ai-voice-copy span {
    font-size: 12px;
  }
}

/* ===============================
   ZYVERION AI PANEL
================================= */

body.zyverion-ai-open {
  overflow: hidden;
}

.zyverion-ai-hint {
  position: fixed;
  right: 98px;
  bottom: 28px;
  z-index: 99940;
  max-width: 220px;
  padding: 12px 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(10, 18, 34, 0.94), rgba(6, 12, 24, 0.96));
  border: 1px solid rgba(124, 236, 255, 0.18);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.34),
    0 0 20px rgba(62, 208, 255, 0.14),
    inset 0 0 18px rgba(196, 246, 255, 0.03);
  color: #eefaff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px) scale(0.96);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0.35s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.zyverion-ai-hint.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.zyverion-ai-hint-text {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.zyverion-ai-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99970;
  background:
    radial-gradient(circle at 50% 18%, rgba(63, 244, 255, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(3, 7, 18, 0.2), rgba(3, 7, 18, 0.56));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.zyverion-ai-panel-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.zyverion-ai-panel {
  position: fixed;
  right: 24px;
  top: max(12px, env(safe-area-inset-top));
  bottom: 88px;
  z-index: 99980;
  width: min(420px, calc(100vw - 24px));
  display: flex;
  align-items: stretch;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(22px) scale(0.96);
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease,
    transform 0.35s ease;
}

.zyverion-ai-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.zyverion-ai-panel-shell {
  position: relative;
  width: 100%;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 28px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(58, 216, 255, 0.12), transparent 26%),
    radial-gradient(circle at bottom left, rgba(170, 71, 255, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(8, 16, 30, 0.96), rgba(4, 10, 20, 0.98));
  border: 1px solid rgba(124, 236, 255, 0.14);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.48),
    0 0 24px rgba(62, 208, 255, 0.16),
    0 0 42px rgba(166, 71, 255, 0.08),
    inset 0 0 24px rgba(196, 246, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.zyverion-ai-panel-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(103, 196, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 196, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 36%, transparent 100%);
  pointer-events: none;
}

.zyverion-ai-panel-topbar,
.zyverion-ai-panel-head,
.zyverion-ai-language-picker,
.zyverion-ai-status-wrap,
.zyverion-ai-messages,
.zyverion-ai-controls,
.zyverion-ai-actions {
  position: relative;
  z-index: 2;
}

.zyverion-ai-panel-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.zyverion-ai-panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(12, 30, 56, 0.78), rgba(8, 18, 36, 0.78));
  border: 1px solid rgba(108, 221, 255, 0.18);
  color: #d9f5ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow:
    0 0 18px rgba(64, 208, 255, 0.14),
    inset 0 0 16px rgba(132, 231, 255, 0.03);
}

.zyverion-ai-panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7bfbff;
  box-shadow:
    0 0 12px rgba(123, 251, 255, 0.9),
    0 0 24px rgba(123, 251, 255, 0.2);
}

.zyverion-ai-panel-close {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(139, 225, 255, 0.18);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow:
    0 0 14px rgba(80, 203, 255, 0.14),
    inset 0 0 12px rgba(182, 241, 255, 0.03);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.zyverion-ai-panel-close:hover {
  transform: scale(1.06);
  border-color: rgba(124, 236, 255, 0.38);
  background:
    linear-gradient(180deg, rgba(66, 227, 255, 0.12), rgba(186, 56, 255, 0.06));
  box-shadow:
    0 0 18px rgba(80, 203, 255, 0.2),
    0 0 30px rgba(186, 56, 255, 0.08),
    inset 0 0 14px rgba(182, 241, 255, 0.04);
}

.zyverion-ai-panel-close span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #f4fbff;
  transform-origin: center;
}

.zyverion-ai-panel-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.zyverion-ai-panel-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.zyverion-ai-panel-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.zyverion-ai-panel-title {
  margin: 0 0 8px;
  color: #f5fbff;
  font-size: 24px;
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.zyverion-ai-panel-text {
  margin: 0;
  color: rgba(219, 243, 255, 0.82);
  font-size: 14px;
  line-height: 1.65;
}

.zyverion-ai-language-switch {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zyverion-ai-language-label {
  color: rgba(208, 233, 247, 0.82);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.zyverion-ai-language-select {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(124, 236, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(10, 18, 34, 0.86), rgba(6, 12, 24, 0.92));
  color: #eefaff;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  box-shadow:
    inset 0 0 14px rgba(196, 246, 255, 0.02),
    0 0 10px rgba(62, 208, 255, 0.08);
}

.zyverion-ai-language-picker {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(9, 18, 34, 0.82), rgba(7, 14, 27, 0.88));
  border: 1px solid rgba(124, 236, 255, 0.12);
  box-shadow:
    inset 0 0 20px rgba(196, 246, 255, 0.02),
    0 0 18px rgba(62, 208, 255, 0.08);
}

.zyverion-ai-language-picker-title {
  margin: 0 0 12px;
  color: #f4fbff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.zyverion-ai-language-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.zyverion-ai-language-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid rgba(124, 236, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(13, 24, 43, 0.92), rgba(8, 14, 27, 0.95));
  color: #eefaff;
  cursor: pointer;
  text-align: left;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.zyverion-ai-language-option:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 236, 255, 0.3);
  background:
    linear-gradient(180deg, rgba(18, 34, 58, 0.96), rgba(9, 18, 35, 0.98));
  box-shadow:
    0 0 18px rgba(62, 208, 255, 0.12),
    0 0 30px rgba(166, 71, 255, 0.06);
}

.zyverion-ai-language-option strong {
  font-size: 15px;
  font-weight: 800;
}

.zyverion-ai-language-option span {
  color: rgba(208, 233, 247, 0.8);
  font-size: 12.5px;
}

.zyverion-ai-status-wrap {
  margin-bottom: 14px;
}

.zyverion-ai-status {
  padding: 12px 14px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(12, 24, 42, 0.8), rgba(7, 14, 26, 0.86));
  border: 1px solid rgba(124, 236, 255, 0.1);
  color: rgba(224, 244, 255, 0.9);
  font-size: 13px;
  line-height: 1.55;
}

.zyverion-ai-transcript {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(14, 28, 47, 0.82), rgba(8, 15, 28, 0.88));
  border: 1px dashed rgba(124, 236, 255, 0.18);
  color: #eaf9ff;
  font-size: 13px;
  line-height: 1.55;
}

.zyverion-ai-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
  max-height: 260px;
  margin-bottom: 16px;
  padding-right: 4px;
  overflow-y: auto;
}
.zyverion-ai-messages::-webkit-scrollbar {
  width: 6px;
}

.zyverion-ai-messages::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(124, 236, 255, 0.16);
}

.zyverion-ai-message {
  display: flex;
}

.zyverion-ai-message.assistant {
  justify-content: flex-start;
}

.zyverion-ai-message.user {
  justify-content: flex-end;
}

.zyverion-ai-message-bubble {
  max-width: 85%;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
}

.zyverion-ai-message.assistant .zyverion-ai-message-bubble {
  background:
    linear-gradient(180deg, rgba(14, 28, 47, 0.9), rgba(8, 15, 28, 0.96));
  border: 1px solid rgba(124, 236, 255, 0.1);
  color: rgba(233, 248, 255, 0.92);
}

.zyverion-ai-message.user .zyverion-ai-message-bubble {
  background:
    linear-gradient(180deg, rgba(50, 188, 255, 0.16), rgba(170, 71, 255, 0.12));
  border: 1px solid rgba(124, 236, 255, 0.16);
  color: #f4fbff;
}

.zyverion-ai-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.zyverion-ai-control {
  min-height: 46px;
  border: 1px solid rgba(124, 236, 255, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(13, 24, 43, 0.92), rgba(8, 14, 27, 0.95));
  color: #eefaff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    opacity 0.22s ease;
}

.zyverion-ai-control:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 236, 255, 0.32);
  box-shadow:
    0 0 18px rgba(62, 208, 255, 0.12),
    0 0 28px rgba(166, 71, 255, 0.05);
}

.zyverion-ai-control:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.zyverion-ai-control.primary {
  background:
    linear-gradient(180deg, rgba(44, 196, 255, 0.24), rgba(15, 88, 130, 0.3));
  border-color: rgba(124, 236, 255, 0.26);
}

.zyverion-ai-control.is-live {
  background:
    linear-gradient(180deg, rgba(42, 194, 255, 0.28), rgba(18, 94, 138, 0.34));
  border-color: rgba(124, 236, 255, 0.3);
  box-shadow:
    0 0 18px rgba(62, 208, 255, 0.14),
    0 0 28px rgba(166, 71, 255, 0.06);
}

.zyverion-ai-control.is-busy {
  background:
    linear-gradient(180deg, rgba(58, 144, 214, 0.22), rgba(28, 60, 96, 0.32));
  border-color: rgba(124, 236, 255, 0.24);
  box-shadow:
    0 0 14px rgba(62, 208, 255, 0.08),
    0 0 24px rgba(166, 71, 255, 0.04);
}

.zyverion-ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.zyverion-ai-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(10, 18, 34, 0.9), rgba(6, 12, 24, 0.95));
  border: 1px solid rgba(124, 236, 255, 0.12);
  color: #eefaff;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.zyverion-ai-action-link:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 236, 255, 0.3);
  box-shadow:
    0 0 16px rgba(62, 208, 255, 0.1),
    0 0 24px rgba(166, 71, 255, 0.04);
}

.zyverion-ai-action-link.is-suggested {
  border-color: rgba(124, 236, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(28, 84, 122, 0.38), rgba(10, 28, 44, 0.96));
  box-shadow:
    0 0 18px rgba(62, 208, 255, 0.16),
    0 0 28px rgba(166, 71, 255, 0.08);
}

#aiLauncher.is-active .ai-core {
  box-shadow:
    0 0 22px rgba(62, 208, 255, 0.24),
    0 0 42px rgba(166, 71, 255, 0.08);
}

#aiLauncher.is-listening .ai-core {
  box-shadow:
    0 0 24px rgba(62, 208, 255, 0.28),
    0 0 42px rgba(62, 208, 255, 0.16),
    0 0 68px rgba(166, 71, 255, 0.1);
}

.zyverion-ai-language-option.is-selected {
  border-color: rgba(124, 236, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(24, 48, 78, 0.96), rgba(10, 22, 40, 0.98));
  box-shadow:
    0 0 18px rgba(62, 208, 255, 0.14),
    0 0 30px rgba(166, 71, 255, 0.07);
}

.zyverion-work-popup {
  position: fixed;
  right: 24px;
  bottom: 118px;
  z-index: 99960;
  width: min(360px, calc(100vw - 28px));
  padding: 16px 16px 14px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(58, 216, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(10, 18, 34, 0.94), rgba(6, 12, 24, 0.97));
  border: 1px solid rgba(124, 236, 255, 0.16);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.34),
    0 0 20px rgba(62, 208, 255, 0.12),
    0 0 34px rgba(166, 71, 255, 0.06),
    inset 0 0 18px rgba(196, 246, 255, 0.02);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px) scale(0.96);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0.35s ease;
}

.zyverion-work-popup.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.zyverion-work-popup-copy strong {
  display: block;
  margin-bottom: 7px;
  color: #f4fbff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.zyverion-work-popup-copy p {
  margin: 0 0 14px;
  color: rgba(219, 243, 255, 0.82);
  font-size: 13.5px;
  line-height: 1.6;
}

.zyverion-work-popup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(44, 196, 255, 0.24), rgba(15, 88, 130, 0.3));
  border: 1px solid rgba(124, 236, 255, 0.26);
  color: #eefaff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow:
    0 0 16px rgba(62, 208, 255, 0.12),
    inset 0 0 12px rgba(196, 246, 255, 0.02);
}

.zyverion-work-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(139, 225, 255, 0.14);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  cursor: pointer;
}

.zyverion-work-popup-close span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: #f4fbff;
}

.zyverion-work-popup-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.zyverion-work-popup-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 768px) {
  .zyverion-ai-hint {
    right: 74px;
    bottom: 22px;
    max-width: 180px;
    padding: 10px 13px;
    border-radius: 15px;
  }

  .zyverion-ai-hint-text {
    font-size: 12px;
  }

  .zyverion-ai-panel {
    right: 12px;
    left: 12px;
    top: max(10px, env(safe-area-inset-top));
    bottom: 78px;
    width: auto;
  }

  .zyverion-ai-panel-shell {
    padding: 15px;
    border-radius: 24px;
  }

  .zyverion-ai-panel-title {
    font-size: 22px;
  }

  .zyverion-ai-panel-text {
    font-size: 13px;
  }

  .zyverion-ai-messages {
    min-height: 160px;
    max-height: 220px;
  }

  .zyverion-ai-controls {
    grid-template-columns: 1fr 1fr;
  }

  .zyverion-ai-action-link {
    flex: 1 1 calc(50% - 5px);
  }

  .zyverion-work-popup {
    right: 12px;
    bottom: 96px;
    width: calc(100vw - 24px);
    border-radius: 20px;
  }
}

@media (max-width: 520px) {
  .zyverion-ai-hint {
    right: 68px;
    bottom: 18px;
    max-width: 162px;
  }

  .zyverion-ai-panel {
    right: 10px;
    left: 10px;
    top: max(8px, env(safe-area-inset-top));
    bottom: 74px;
    width: auto;
  }

  .zyverion-ai-panel-topbar {
    margin-bottom: 12px;
  }

  .zyverion-ai-panel-badge {
    padding: 9px 12px;
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .zyverion-ai-panel-close {
    width: 40px;
    height: 40px;
  }

  .zyverion-ai-panel-head {
    gap: 14px;
  }

  .zyverion-ai-language-picker {
    padding: 14px;
    border-radius: 18px;
  }

  .zyverion-ai-message-bubble {
    max-width: 92%;
    font-size: 12.5px;
  }

  .zyverion-ai-control {
    min-height: 44px;
    font-size: 12.5px;
  }

  .zyverion-ai-actions {
    flex-direction: column;
  }

  .zyverion-ai-action-link {
    width: 100%;
  }

  .zyverion-work-popup {
    right: 10px;
    bottom: 90px;
    width: calc(100vw - 20px);
    padding: 15px 14px 13px;
  }

  .zyverion-work-popup-copy strong {
    font-size: 15px;
  }

  .zyverion-work-popup-copy p {
    font-size: 13px;
  }
}
/* =========================================================
   ZYVERION AI ORB PANEL REBUILD OVERRIDE — PART 1
========================================================= */

.zyverion-ai-panel {
  right: 12px;
  left: 12px;
  top: max(10px, env(safe-area-inset-top));
  bottom: 82px;
  width: auto;
  max-width: 460px;
  margin-left: auto;
}

.zyverion-ai-panel-shell.is-orb-upgraded {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 28px;
  min-height: 100%;
  max-height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(66, 219, 255, 0.12), transparent 22%),
    radial-gradient(circle at 100% 100%, rgba(173, 68, 255, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(8, 15, 28, 0.98), rgba(4, 10, 18, 0.985));
}

.zyverion-ai-panel-shell.is-orb-upgraded::before {
  background-size: 22px 22px;
  opacity: 0.55;
}

.zyverion-ai-panel-topbar {
  margin-bottom: 0;
}

.zyverion-ai-panel-head-upgraded {
  gap: 10px;
  margin-bottom: 0;
}

.zyverion-ai-panel-title {
  margin: 0 0 5px;
  font-size: 21px;
  line-height: 1.02;
}

.zyverion-ai-panel-intro {
  margin: 0;
  font-size: 13.2px;
  line-height: 1.5;
  color: rgba(221, 242, 255, 0.8);
}

.zyverion-ai-language-switch {
  gap: 6px;
}

.zyverion-ai-language-select {
  min-height: 42px;
  border-radius: 13px;
  font-size: 13px;
}

.zyverion-ai-language-picker {
  margin-bottom: 0;
  padding: 14px;
  border-radius: 18px;
}

.zyverion-ai-language-picker-title {
  margin: 0 0 10px;
  font-size: 14px;
}

.zyverion-ai-language-grid {
  gap: 8px;
}

.zyverion-ai-language-option {
  padding: 12px 13px;
  border-radius: 15px;
}

.zyverion-ai-language-option strong {
  font-size: 14px;
}

.zyverion-ai-language-option span {
  font-size: 12px;
}

.zyverion-ai-orb-zone {
  position: relative;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 2px 0 0;
}

.zyverion-ai-orb-button {
  position: relative;
  width: 148px;
  height: 148px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  outline: none;
  transition: transform 0.24s ease;
}

.zyverion-ai-orb-button:hover {
  transform: scale(1.02);
}

.zyverion-ai-orb-button:active {
  transform: scale(0.985);
}

.zyverion-ai-orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.zyverion-ai-orb-ring.ring-1 {
  border: 1px solid rgba(117, 232, 255, 0.28);
  box-shadow:
    0 0 26px rgba(75, 210, 255, 0.18),
    inset 0 0 18px rgba(163, 240, 255, 0.04);
}

.zyverion-ai-orb-ring.ring-2 {
  inset: 9px;
  border: 1px solid rgba(167, 79, 255, 0.18);
  box-shadow: 0 0 20px rgba(167, 79, 255, 0.08);
}

.zyverion-ai-orb-ring.ring-3 {
  inset: 18px;
  border: 1px solid rgba(100, 219, 255, 0.12);
}

.zyverion-ai-orb-core {
  position: absolute;
  inset: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 28%, rgba(231, 252, 255, 0.98), rgba(80, 216, 255, 0.68) 30%, rgba(115, 70, 255, 0.2) 58%, rgba(7, 12, 24, 0.98) 82%);
  border: 1px solid rgba(122, 239, 255, 0.22);
  box-shadow:
    0 0 26px rgba(77, 219, 255, 0.28),
    0 0 58px rgba(167, 79, 255, 0.12),
    inset 0 0 26px rgba(203, 250, 255, 0.08);
}

.zyverion-ai-orb-glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(112, 238, 255, 0.3), rgba(168, 74, 255, 0.09) 44%, transparent 72%);
  filter: blur(12px);
}

.zyverion-ai-orb-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(178, 245, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(178, 245, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at center, black 36%, transparent 88%);
  opacity: 0.55;
}

.zyverion-ai-orb-mic {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 48px;
  display: block;
  filter: drop-shadow(0 0 10px rgba(130, 239, 255, 0.28));
}

.zyverion-ai-orb-mic .mic-head {
  position: absolute;
  left: 50%;
  top: 0;
  width: 22px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(244, 252, 255, 0.98), rgba(136, 232, 255, 0.88));
  box-shadow:
    0 0 12px rgba(132, 238, 255, 0.3),
    inset 0 0 8px rgba(255, 255, 255, 0.35);
}

.zyverion-ai-orb-mic .mic-body {
  position: absolute;
  left: 50%;
  top: 24px;
  width: 8px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(228, 249, 255, 0.96), rgba(111, 223, 255, 0.78));
}

.zyverion-ai-orb-mic .mic-base {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 24px;
  height: 12px;
  transform: translateX(-50%);
}

.zyverion-ai-orb-mic .mic-base::before,
.zyverion-ai-orb-mic .mic-base::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(224, 248, 255, 0.94), rgba(115, 227, 255, 0.74));
}

.zyverion-ai-orb-mic .mic-base::before {
  top: 0;
  width: 2px;
  height: 8px;
}

.zyverion-ai-orb-mic .mic-base::after {
  bottom: 0;
  width: 20px;
  height: 3px;
}

.zyverion-ai-orb-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.zyverion-ai-orb-copy strong {
  color: #f5fbff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.zyverion-ai-orb-copy span {
  color: rgba(210, 234, 248, 0.78);
  font-size: 12px;
  line-height: 1.35;
}

.zyverion-ai-orb-zone.is-idle .zyverion-ai-orb-button {
  animation: zyverionOrbFloat 4.2s ease-in-out infinite;
}

.zyverion-ai-orb-zone.is-idle .zyverion-ai-orb-core {
  animation: zyverionOrbBreathe 3.1s ease-in-out infinite;
}

.zyverion-ai-orb-zone.is-listening .ring-1,
.zyverion-ai-orb-zone.is-listening .ring-2,
.zyverion-ai-orb-zone.is-listening .ring-3 {
  animation: zyverionOrbListenPulse 1.6s ease-out infinite;
}

.zyverion-ai-orb-zone.is-listening .ring-2 {
  animation-delay: 0.2s;
}

.zyverion-ai-orb-zone.is-listening .ring-3 {
  animation-delay: 0.4s;
}

.zyverion-ai-orb-zone.is-listening .zyverion-ai-orb-core {
  animation: zyverionOrbListeningCore 1.5s ease-in-out infinite;
}

.zyverion-ai-orb-zone.is-thinking .zyverion-ai-orb-core {
  animation: zyverionOrbThinking 1.8s linear infinite;
}

.zyverion-ai-orb-zone.is-speaking .zyverion-ai-orb-core {
  animation: zyverionOrbSpeaking 1.4s ease-in-out infinite;
}

.zyverion-ai-orb-zone.is-speaking .ring-1,
.zyverion-ai-orb-zone.is-speaking .ring-2,
.zyverion-ai-orb-zone.is-speaking .ring-3 {
  animation: zyverionOrbSpeakPulse 1.25s ease-out infinite;
}

.zyverion-ai-orb-zone.is-speaking .ring-2 {
  animation-delay: 0.16s;
}

.zyverion-ai-orb-zone.is-speaking .ring-3 {
  animation-delay: 0.32s;
}

.zyverion-ai-orb-zone.is-muted .zyverion-ai-orb-core {
  filter: grayscale(0.28) brightness(0.82);
  box-shadow:
    0 0 16px rgba(79, 190, 225, 0.12),
    0 0 30px rgba(120, 120, 160, 0.08),
    inset 0 0 22px rgba(220, 235, 255, 0.04);
}

.zyverion-ai-orb-zone.is-muted .zyverion-ai-orb-ring {
  opacity: 0.46;
}

.zyverion-ai-status-wrap-upgraded {
  margin-bottom: 0;
}

.zyverion-ai-status {
  padding: 11px 13px;
  border-radius: 15px;
  font-size: 12.8px;
  line-height: 1.55;
}

.zyverion-ai-transcript {
  margin-top: 8px;
  padding: 11px 13px;
  border-radius: 15px;
  font-size: 12.6px;
}

.zyverion-ai-context-summary {
  padding: 11px 13px;
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(13, 28, 48, 0.84), rgba(8, 16, 30, 0.9));
  border: 1px solid rgba(124, 236, 255, 0.1);
  color: rgba(225, 244, 255, 0.88);
  font-size: 12.8px;
  line-height: 1.55;
}

.zyverion-ai-messages-upgraded {
  flex: 1 1 auto;
  min-height: 220px;
  max-height: none;
  margin-bottom: 0;
  padding: 2px 4px 2px 0;
  gap: 9px;
}

.zyverion-ai-message-bubble {
  padding: 11px 13px;
  border-radius: 16px;
  font-size: 12.9px;
  line-height: 1.58;
}

.zyverion-ai-message.assistant .zyverion-ai-message-bubble {
  background:
    linear-gradient(180deg, rgba(13, 28, 47, 0.92), rgba(8, 15, 28, 0.97));
}

.zyverion-ai-message.user .zyverion-ai-message-bubble {
  background:
    linear-gradient(180deg, rgba(41, 187, 255, 0.18), rgba(161, 74, 255, 0.12));
}

@keyframes zyverionOrbFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes zyverionOrbBreathe {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 26px rgba(77, 219, 255, 0.26),
      0 0 58px rgba(167, 79, 255, 0.1),
      inset 0 0 26px rgba(203, 250, 255, 0.08);
  }
  50% {
    transform: scale(1.035);
    box-shadow:
      0 0 32px rgba(77, 219, 255, 0.34),
      0 0 70px rgba(167, 79, 255, 0.14),
      inset 0 0 28px rgba(203, 250, 255, 0.1);
  }
}

@keyframes zyverionOrbListenPulse {
  0% {
    transform: scale(0.88);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

@keyframes zyverionOrbListeningCore {
  0%, 100% {
    transform: scale(0.98);
    box-shadow:
      0 0 34px rgba(64, 223, 255, 0.36),
      0 0 76px rgba(76, 210, 255, 0.18),
      0 0 92px rgba(170, 79, 255, 0.12),
      inset 0 0 28px rgba(232, 250, 255, 0.1);
  }
  50% {
    transform: scale(1.06);
    box-shadow:
      0 0 40px rgba(64, 223, 255, 0.46),
      0 0 92px rgba(76, 210, 255, 0.24),
      0 0 108px rgba(170, 79, 255, 0.16),
      inset 0 0 34px rgba(232, 250, 255, 0.13);
  }
}

@keyframes zyverionOrbThinking {
  0% {
    transform: rotate(0deg) scale(1.01);
    filter: hue-rotate(0deg);
  }
  100% {
    transform: rotate(360deg) scale(1.01);
    filter: hue-rotate(10deg);
  }
}

@keyframes zyverionOrbSpeaking {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 34px rgba(81, 223, 255, 0.34),
      0 0 76px rgba(81, 223, 255, 0.18),
      0 0 98px rgba(170, 79, 255, 0.14),
      inset 0 0 28px rgba(233, 250, 255, 0.11);
  }
  50% {
    transform: scale(1.05);
    box-shadow:
      0 0 42px rgba(81, 223, 255, 0.44),
      0 0 98px rgba(81, 223, 255, 0.24),
      0 0 120px rgba(170, 79, 255, 0.18),
      inset 0 0 32px rgba(233, 250, 255, 0.15);
  }
}

@keyframes zyverionOrbSpeakPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.78;
  }
  100% {
    transform: scale(1.22);
    opacity: 0;
  }
}
/* =========================================================
   ZYVERION AI ORB PANEL REBUILD OVERRIDE — PART 2
========================================================= */

.zyverion-ai-recommendation-rail,
.zyverion-ai-followup-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zyverion-ai-section-label {
  color: rgba(210, 235, 248, 0.72);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-inline: 2px;
}

.zyverion-ai-solution-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.zyverion-ai-solution-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 12px 13px;
  border: 1px solid rgba(124, 236, 255, 0.12);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(69, 220, 255, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(12, 24, 43, 0.94), rgba(7, 13, 24, 0.98));
  color: #eefaff;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.zyverion-ai-solution-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 236, 255, 0.28);
  box-shadow:
    0 0 18px rgba(62, 208, 255, 0.12),
    0 0 28px rgba(166, 71, 255, 0.06);
  background:
    radial-gradient(circle at top right, rgba(69, 220, 255, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(16, 30, 53, 0.96), rgba(8, 16, 29, 0.99));
}

.zyverion-ai-solution-category {
  color: rgba(137, 229, 255, 0.84);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.zyverion-ai-solution-title {
  color: #f4fbff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.zyverion-ai-solution-purpose {
  color: rgba(220, 242, 255, 0.82);
  font-size: 12.2px;
  line-height: 1.5;
}

.zyverion-ai-followup-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zyverion-ai-followup-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(124, 236, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(11, 20, 38, 0.94), rgba(7, 12, 22, 0.98));
  color: rgba(237, 249, 255, 0.9);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.zyverion-ai-followup-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 236, 255, 0.28);
  box-shadow:
    0 0 14px rgba(62, 208, 255, 0.1),
    0 0 24px rgba(166, 71, 255, 0.05);
  background:
    linear-gradient(180deg, rgba(16, 28, 49, 0.98), rgba(7, 13, 24, 1));
}

.zyverion-ai-utility-dock {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.zyverion-ai-utility-btn {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(124, 236, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(10, 18, 34, 0.92), rgba(6, 12, 22, 0.97));
  color: #eefaff;
  font-size: 11.8px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    opacity 0.22s ease;
}

.zyverion-ai-utility-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 236, 255, 0.28);
  box-shadow:
    0 0 14px rgba(62, 208, 255, 0.08),
    0 0 22px rgba(166, 71, 255, 0.04);
}

.zyverion-ai-utility-btn.is-active {
  border-color: rgba(124, 236, 255, 0.32);
  background:
    linear-gradient(180deg, rgba(30, 87, 127, 0.34), rgba(8, 18, 31, 0.98));
  box-shadow:
    0 0 14px rgba(62, 208, 255, 0.14),
    0 0 24px rgba(166, 71, 255, 0.06);
}

.zyverion-ai-utility-btn:disabled,
.zyverion-ai-utility-btn.is-disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.zyverion-ai-action-dock.is-smart-dock,
.zyverion-ai-action-dock {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.zyverion-ai-action-link {
  min-height: 42px;
  padding: 0 10px;
  border-radius: 14px;
  font-size: 11.7px;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  white-space: normal;
  background:
    linear-gradient(180deg, rgba(10, 18, 34, 0.92), rgba(6, 12, 24, 0.97));
}

.zyverion-ai-action-link.is-suggested {
  border-color: rgba(124, 236, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(28, 93, 136, 0.38), rgba(10, 26, 41, 0.98));
  box-shadow:
    0 0 18px rgba(62, 208, 255, 0.16),
    0 0 30px rgba(166, 71, 255, 0.08);
}

#aiLauncher {
  z-index: 99991;
}

#aiLauncher.is-active .ai-core,
#aiLauncher.is-listening .ai-core,
#aiLauncher.is-speaking .ai-core {
  box-shadow:
    0 0 20px rgba(62, 208, 255, 0.24),
    0 0 42px rgba(166, 71, 255, 0.1);
}

#aiLauncher.is-listening .ai-core {
  animation: zyverionLauncherPulse 1.5s ease-in-out infinite;
}

@keyframes zyverionLauncherPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 20px rgba(62, 208, 255, 0.24),
      0 0 42px rgba(166, 71, 255, 0.1);
  }
  50% {
    transform: scale(1.06);
    box-shadow:
      0 0 24px rgba(62, 208, 255, 0.32),
      0 0 56px rgba(166, 71, 255, 0.14);
  }
}

@media (min-width: 769px) {
  .zyverion-ai-panel {
    right: 18px;
    left: auto;
    width: min(450px, calc(100vw - 36px));
    top: 14px;
    bottom: 92px;
  }

  .zyverion-ai-panel-shell.is-orb-upgraded {
    padding: 16px;
    gap: 13px;
  }

  .zyverion-ai-orb-button {
    width: 158px;
    height: 158px;
  }

  .zyverion-ai-orb-copy strong {
    font-size: 13.5px;
  }

  .zyverion-ai-messages-upgraded {
    min-height: 240px;
  }
}

@media (max-width: 768px) {
  .zyverion-ai-panel {
    right: 10px;
    left: 10px;
    top: max(8px, env(safe-area-inset-top));
    bottom: 74px;
  }

  .zyverion-ai-panel-shell.is-orb-upgraded {
    padding: 13px;
    gap: 11px;
    border-radius: 24px;
  }

  .zyverion-ai-panel-title {
    font-size: 19px;
  }

  .zyverion-ai-panel-intro {
    font-size: 12.8px;
  }

  .zyverion-ai-orb-button {
    width: 136px;
    height: 136px;
  }

  .zyverion-ai-orb-core {
    inset: 22px;
  }

  .zyverion-ai-orb-copy strong {
    font-size: 12.2px;
    letter-spacing: 0.12em;
  }

  .zyverion-ai-orb-copy span {
    font-size: 11.5px;
  }

  .zyverion-ai-context-summary,
  .zyverion-ai-status,
  .zyverion-ai-transcript {
    font-size: 12.4px;
  }

  .zyverion-ai-solution-title {
    font-size: 13.3px;
  }

  .zyverion-ai-solution-purpose {
    font-size: 11.9px;
  }

  .zyverion-ai-messages-upgraded {
    min-height: 200px;
  }

  .zyverion-ai-action-dock {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .zyverion-ai-action-link {
    min-height: 40px;
    font-size: 11.2px;
    padding: 0 8px;
  }
}

@media (max-width: 520px) {
  .zyverion-ai-panel {
    right: 8px;
    left: 8px;
    top: max(6px, env(safe-area-inset-top));
    bottom: 70px;
  }

  .zyverion-ai-panel-shell.is-orb-upgraded {
    padding: 12px;
    gap: 10px;
    border-radius: 22px;
  }

  .zyverion-ai-panel-badge {
    padding: 8px 11px;
    font-size: 9.6px;
    letter-spacing: 0.13em;
  }

  .zyverion-ai-panel-close {
    width: 38px;
    height: 38px;
  }

  .zyverion-ai-panel-title {
    font-size: 18px;
  }

  .zyverion-ai-panel-intro {
    font-size: 12.3px;
    line-height: 1.45;
  }

  .zyverion-ai-language-picker {
    padding: 13px;
    border-radius: 16px;
  }

  .zyverion-ai-language-option {
    padding: 11px 12px;
  }

  .zyverion-ai-orb-zone {
    gap: 8px;
  }

  .zyverion-ai-orb-button {
    width: 126px;
    height: 126px;
  }

  .zyverion-ai-orb-core {
    inset: 20px;
  }

  .zyverion-ai-orb-mic {
    width: 30px;
    height: 43px;
  }

  .zyverion-ai-orb-mic .mic-head {
    width: 20px;
    height: 24px;
  }

  .zyverion-ai-orb-mic .mic-body {
    top: 22px;
    height: 13px;
  }

  .zyverion-ai-orb-copy strong {
    font-size: 11.4px;
  }

  .zyverion-ai-orb-copy span {
    font-size: 10.8px;
  }

  .zyverion-ai-context-summary,
  .zyverion-ai-status,
  .zyverion-ai-transcript {
    padding: 10px 12px;
    font-size: 12px;
    border-radius: 14px;
  }

  .zyverion-ai-messages-upgraded {
    min-height: 180px;
    gap: 8px;
  }

  .zyverion-ai-message-bubble {
    max-width: 92%;
    padding: 10px 12px;
    border-radius: 15px;
    font-size: 12.2px;
  }

  .zyverion-ai-solution-card {
    padding: 11px 12px;
    border-radius: 15px;
  }

  .zyverion-ai-solution-title {
    font-size: 13px;
  }

  .zyverion-ai-solution-purpose {
    font-size: 11.6px;
  }

  .zyverion-ai-followup-chip {
    min-height: 36px;
    font-size: 11.5px;
  }

  .zyverion-ai-utility-dock {
    gap: 7px;
  }

  .zyverion-ai-utility-btn {
    min-height: 34px;
    padding: 0 11px;
    font-size: 11.2px;
  }

  .zyverion-ai-action-dock {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .zyverion-ai-action-link {
    width: 100%;
    min-height: 40px;
    font-size: 11.5px;
  }
}
/* =========================================================
   ZYVERION AI POPUP V2 OVERRIDE — PART 1
========================================================= */

.zyverion-ai-panel-backdrop {
  background:
    radial-gradient(circle at 50% 50%, rgba(10, 18, 28, 0.18), rgba(3, 6, 12, 0.44)),
    rgba(3, 7, 14, 0.34);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.zyverion-ai-open::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99980;
  background:
    radial-gradient(circle at top left, rgba(63, 213, 255, 0.16), transparent 16%),
    radial-gradient(circle at top right, rgba(151, 85, 255, 0.12), transparent 18%),
    radial-gradient(circle at bottom left, rgba(63, 213, 255, 0.18), transparent 18%),
    radial-gradient(circle at bottom right, rgba(151, 85, 255, 0.12), transparent 20%);
  opacity: 0.9;
}

.zyverion-ai-popup-v2 {
  position: fixed;
  left: 50%;
  right: auto;
  top: 50%;
  bottom: auto;
  width: min(340px, calc(100vw - 28px));
  max-width: 340px;
  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0;
  pointer-events: none;
  z-index: 99990;
  transition:
    transform 0.26s ease,
    opacity 0.26s ease;
}

.zyverion-ai-popup-v2.is-open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.zyverion-ai-popup-shell-v2 {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-height: 0;
  max-height: min(62vh, 520px);
  padding: 12px;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(66, 217, 255, 0.08), transparent 24%),
    radial-gradient(circle at 100% 100%, rgba(163, 74, 255, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(7, 12, 20, 0.97), rgba(4, 8, 15, 0.985));
  border: 1px solid rgba(111, 228, 255, 0.12);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.44),
    0 0 28px rgba(60, 209, 255, 0.08),
    0 0 34px rgba(160, 80, 255, 0.06);
}

.zyverion-ai-popup-shell-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 231, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 231, 255, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.55;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.58));
}

.zyverion-ai-popup-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.zyverion-ai-popup-badge {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(10, 20, 34, 0.9), rgba(5, 10, 20, 0.95));
  border: 1px solid rgba(112, 230, 255, 0.12);
  box-shadow:
    inset 0 0 12px rgba(81, 220, 255, 0.05),
    0 0 16px rgba(81, 220, 255, 0.06);
}

.zyverion-ai-panel-badge span:last-child {
  font-size: 10.8px;
  letter-spacing: 0.14em;
}

.zyverion-ai-language-select-mini {
  min-width: 88px;
  min-height: 34px;
  padding: 0 30px 0 12px;
  border-radius: 999px;
  font-size: 11.8px;
  font-weight: 700;
  background:
    linear-gradient(180deg, rgba(10, 18, 33, 0.92), rgba(6, 12, 21, 0.98));
}

.zyverion-ai-language-picker-mini {
  position: relative;
  z-index: 2;
  padding: 10px;
  border-radius: 18px;
  margin-bottom: 0;
  background:
    linear-gradient(180deg, rgba(8, 16, 30, 0.95), rgba(5, 10, 19, 0.98));
  border: 1px solid rgba(111, 228, 255, 0.08);
}

.zyverion-ai-language-grid-mini {
  grid-template-columns: 1fr;
  gap: 7px;
}

.zyverion-ai-language-picker-mini .zyverion-ai-language-option {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 14px;
}

.zyverion-ai-language-picker-mini .zyverion-ai-language-option strong {
  font-size: 13px;
}

.zyverion-ai-language-picker-mini .zyverion-ai-language-option span {
  font-size: 11px;
}

.zyverion-ai-orb-zone-v2 {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 6px;
  padding-top: 2px;
}

.zyverion-ai-orb-button-v2 {
  position: relative;
  width: 92px;
  height: 92px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  outline: none;
  transition: transform 0.2s ease;
}

.zyverion-ai-orb-button-v2:active {
  transform: scale(0.97);
}

.zyverion-ai-orb-zone-v2 .zyverion-ai-orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.zyverion-ai-orb-zone-v2 .ring-1 {
  border: 1px solid rgba(116, 235, 255, 0.26);
  box-shadow:
    0 0 18px rgba(60, 208, 255, 0.12),
    inset 0 0 12px rgba(176, 244, 255, 0.04);
}

.zyverion-ai-orb-zone-v2 .ring-2 {
  inset: 8px;
  border: 1px solid rgba(165, 79, 255, 0.14);
}

.zyverion-ai-orb-core-v2 {
  position: absolute;
  inset: 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 26%, rgba(241, 252, 255, 0.98), rgba(116, 225, 255, 0.7) 34%, rgba(133, 74, 255, 0.18) 62%, rgba(7, 13, 24, 0.98) 84%);
  border: 1px solid rgba(116, 235, 255, 0.16);
  box-shadow:
    0 0 18px rgba(60, 208, 255, 0.18),
    0 0 32px rgba(165, 79, 255, 0.08),
    inset 0 0 18px rgba(225, 249, 255, 0.07);
}

.zyverion-ai-orb-core-v2 .zyverion-ai-orb-glow {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(93, 232, 255, 0.28), rgba(163, 74, 255, 0.08) 48%, transparent 74%);
  filter: blur(10px);
}

.zyverion-ai-orb-core-v2 .zyverion-ai-orb-mic {
  position: relative;
  z-index: 2;
  width: 22px;
  height: 32px;
  display: block;
  filter: drop-shadow(0 0 8px rgba(129, 239, 255, 0.22));
}

.zyverion-ai-orb-core-v2 .mic-head {
  position: absolute;
  left: 50%;
  top: 0;
  width: 14px;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(247, 252, 255, 0.98), rgba(147, 234, 255, 0.86));
}

.zyverion-ai-orb-core-v2 .mic-body {
  position: absolute;
  left: 50%;
  top: 15px;
  width: 5px;
  height: 9px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(230, 249, 255, 0.95), rgba(117, 226, 255, 0.74));
}

.zyverion-ai-orb-core-v2 .mic-base {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 16px;
  height: 8px;
  transform: translateX(-50%);
}

.zyverion-ai-orb-core-v2 .mic-base::before,
.zyverion-ai-orb-core-v2 .mic-base::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(231, 248, 255, 0.94), rgba(111, 225, 255, 0.74));
}

.zyverion-ai-orb-core-v2 .mic-base::before {
  top: 0;
  width: 2px;
  height: 5px;
}

.zyverion-ai-orb-core-v2 .mic-base::after {
  bottom: 0;
  width: 14px;
  height: 2px;
}

.zyverion-ai-orb-copy-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}

.zyverion-ai-orb-copy-v2 strong {
  color: #f4fbff;
  font-size: 11.4px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.zyverion-ai-orb-copy-v2 span {
  color: rgba(209, 233, 248, 0.72);
  font-size: 10.8px;
  line-height: 1.32;
}

.zyverion-ai-orb-zone-v2.is-idle .zyverion-ai-orb-core-v2 {
  animation: zyverionOrbV2Idle 3.2s ease-in-out infinite;
}

.zyverion-ai-orb-zone-v2.is-listening .ring-1,
.zyverion-ai-orb-zone-v2.is-listening .ring-2 {
  animation: zyverionOrbV2Pulse 1.4s ease-out infinite;
}

.zyverion-ai-orb-zone-v2.is-listening .ring-2 {
  animation-delay: 0.18s;
}

.zyverion-ai-orb-zone-v2.is-listening .zyverion-ai-orb-core-v2 {
  animation: zyverionOrbV2Listening 1.3s ease-in-out infinite;
}

.zyverion-ai-orb-zone-v2.is-thinking .zyverion-ai-orb-core-v2 {
  animation: zyverionOrbV2Thinking 1.6s ease-in-out infinite;
}

.zyverion-ai-orb-zone-v2.is-speaking .ring-1,
.zyverion-ai-orb-zone-v2.is-speaking .ring-2 {
  animation: zyverionOrbV2SpeakPulse 1.05s ease-out infinite;
}

.zyverion-ai-orb-zone-v2.is-speaking .ring-2 {
  animation-delay: 0.16s;
}

.zyverion-ai-orb-zone-v2.is-speaking .zyverion-ai-orb-core-v2 {
  animation: zyverionOrbV2Speaking 1.05s ease-in-out infinite;
}

.zyverion-ai-orb-zone-v2.is-muted .zyverion-ai-orb-core-v2 {
  filter: grayscale(0.25) brightness(0.84);
  box-shadow:
    0 0 12px rgba(60, 208, 255, 0.08),
    0 0 20px rgba(165, 79, 255, 0.04),
    inset 0 0 16px rgba(225, 249, 255, 0.03);
}

.zyverion-ai-popup-live-state {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.zyverion-ai-status-v2,
.zyverion-ai-transcript-v2,
.zyverion-ai-context-summary-v2,
.zyverion-ai-header-intro-v2 {
  padding: 10px 12px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(11, 21, 38, 0.92), rgba(6, 12, 21, 0.98));
  border: 1px solid rgba(111, 228, 255, 0.08);
  color: rgba(228, 244, 255, 0.88);
  font-size: 12px;
  line-height: 1.52;
}

.zyverion-ai-header-intro-v2 {
  display: none !important;
}

.zyverion-ai-messages-v2 {
  position: relative;
  z-index: 2;
  flex: 0 1 auto;
  min-height: 0;
  max-height: 180px;
  padding: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.zyverion-ai-messages-v2 .zyverion-ai-message {
  display: none !important;
}

.zyverion-ai-messages-v2 .zyverion-ai-message:last-child {
  display: block !important;
}

.zyverion-ai-answer-card,
.zyverion-ai-messages-v2 .zyverion-ai-message:last-child {
  width: 100%;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(11, 20, 37, 0.96), rgba(6, 12, 22, 0.99));
  border: 1px solid rgba(111, 228, 255, 0.08);
  box-shadow:
    inset 0 0 12px rgba(81, 220, 255, 0.03);
}

.zyverion-ai-answer-card {
  padding: 12px;
}

.zyverion-ai-answer-label {
  color: rgba(138, 230, 255, 0.74);
  font-size: 9.6px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.zyverion-ai-answer-text {
  color: #eff9ff;
  font-size: 12.4px;
  line-height: 1.56;
}

.zyverion-ai-messages-v2 .zyverion-ai-message:last-child .zyverion-ai-message-bubble {
  max-width: 100%;
  width: 100%;
  padding: 12px;
  border-radius: 18px;
  background: transparent;
  border: 0;
  color: #eff9ff;
  font-size: 12.4px;
  line-height: 1.56;
  box-shadow: none;
}
.zyverion-ai-recommendation-rail-v2,
.zyverion-ai-followup-rail-v2 {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.zyverion-ai-section-label {
  color: rgba(205, 232, 247, 0.66);
  font-size: 9.4px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-inline: 2px;
}

.zyverion-ai-solution-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.zyverion-ai-solution-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid rgba(111, 228, 255, 0.08);
  border-radius: 15px;
  background:
    radial-gradient(circle at top right, rgba(73, 222, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(11, 20, 36, 0.96), rgba(6, 11, 21, 0.99));
  color: #effaff;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.zyverion-ai-solution-card:hover {
  transform: translateY(-1px);
  border-color: rgba(111, 228, 255, 0.2);
  box-shadow:
    0 0 14px rgba(60, 208, 255, 0.08),
    0 0 18px rgba(165, 79, 255, 0.04);
}

.zyverion-ai-solution-category {
  color: rgba(136, 230, 255, 0.8);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.zyverion-ai-solution-title {
  color: #f4fbff;
  font-size: 12.8px;
  font-weight: 800;
  line-height: 1.26;
}

.zyverion-ai-solution-purpose {
  color: rgba(220, 242, 255, 0.8);
  font-size: 11.4px;
  line-height: 1.48;
}

.zyverion-ai-followup-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.zyverion-ai-followup-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(111, 228, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(10, 18, 33, 0.96), rgba(6, 11, 20, 0.99));
  color: rgba(239, 249, 255, 0.92);
  font-size: 11.1px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.zyverion-ai-followup-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(111, 228, 255, 0.22);
  box-shadow:
    0 0 12px rgba(60, 208, 255, 0.08),
    0 0 18px rgba(165, 79, 255, 0.04);
}

.zyverion-ai-action-dock-v2 {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.zyverion-ai-action-dock-v2 .zyverion-ai-action-link {
  min-height: 36px;
  padding: 0 8px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(10, 18, 33, 0.96), rgba(6, 11, 20, 0.99));
  border: 1px solid rgba(111, 228, 255, 0.08);
  color: #eefaff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.zyverion-ai-action-dock-v2 .zyverion-ai-action-link:hover {
  transform: translateY(-1px);
  border-color: rgba(111, 228, 255, 0.2);
}

.zyverion-ai-action-dock-v2 .zyverion-ai-action-link.is-suggested {
  border-color: rgba(111, 228, 255, 0.3);
  background:
    linear-gradient(180deg, rgba(24, 84, 126, 0.42), rgba(8, 18, 31, 0.98));
  box-shadow:
    0 0 14px rgba(60, 208, 255, 0.12),
    0 0 22px rgba(165, 79, 255, 0.06);
}

.zyverion-ai-utility-dock-v2 {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.zyverion-ai-utility-dock-v2 .zyverion-ai-utility-btn {
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(111, 228, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(10, 18, 33, 0.96), rgba(6, 11, 20, 0.99));
  color: #eefaff;
  font-size: 10.8px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.zyverion-ai-utility-dock-v2 .zyverion-ai-utility-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(111, 228, 255, 0.18);
}

.zyverion-ai-utility-dock-v2 .zyverion-ai-utility-btn.is-active {
  border-color: rgba(111, 228, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(24, 84, 126, 0.32), rgba(8, 18, 31, 0.98));
  box-shadow:
    0 0 12px rgba(60, 208, 255, 0.1),
    0 0 18px rgba(165, 79, 255, 0.04);
}

.zyverion-ai-utility-dock-v2 .zyverion-ai-utility-btn:disabled,
.zyverion-ai-utility-dock-v2 .zyverion-ai-utility-btn.is-disabled {
  opacity: 0.46;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#aiLauncher.is-listening .ai-core,
#aiLauncher.is-speaking .ai-core {
  box-shadow:
    0 0 18px rgba(60, 208, 255, 0.24),
    0 0 34px rgba(165, 79, 255, 0.1);
}

#aiLauncher.is-listening .ai-core {
  animation: zyverionLauncherV2Pulse 1.4s ease-in-out infinite;
}

@keyframes zyverionLauncherV2Pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes zyverionOrbV2Idle {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 18px rgba(60, 208, 255, 0.18),
      0 0 32px rgba(165, 79, 255, 0.08),
      inset 0 0 18px rgba(225, 249, 255, 0.07);
  }
  50% {
    transform: scale(1.025);
    box-shadow:
      0 0 22px rgba(60, 208, 255, 0.24),
      0 0 38px rgba(165, 79, 255, 0.1),
      inset 0 0 22px rgba(225, 249, 255, 0.08);
  }
}

@keyframes zyverionOrbV2Pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.74;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

@keyframes zyverionOrbV2Listening {
  0%, 100% {
    transform: scale(0.99);
    box-shadow:
      0 0 22px rgba(60, 208, 255, 0.26),
      0 0 42px rgba(60, 208, 255, 0.12),
      0 0 54px rgba(165, 79, 255, 0.08),
      inset 0 0 18px rgba(225, 249, 255, 0.08);
  }
  50% {
    transform: scale(1.05);
    box-shadow:
      0 0 28px rgba(60, 208, 255, 0.34),
      0 0 54px rgba(60, 208, 255, 0.16),
      0 0 64px rgba(165, 79, 255, 0.12),
      inset 0 0 20px rgba(225, 249, 255, 0.1);
  }
}

@keyframes zyverionOrbV2Thinking {
  0%, 100% {
    transform: scale(1);
    filter: saturate(1);
  }
  50% {
    transform: scale(1.03);
    filter: saturate(1.12);
  }
}

@keyframes zyverionOrbV2Speaking {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 24px rgba(60, 208, 255, 0.28),
      0 0 44px rgba(60, 208, 255, 0.14),
      0 0 58px rgba(165, 79, 255, 0.1),
      inset 0 0 18px rgba(225, 249, 255, 0.1);
  }
  50% {
    transform: scale(1.045);
    box-shadow:
      0 0 30px rgba(60, 208, 255, 0.36),
      0 0 58px rgba(60, 208, 255, 0.2),
      0 0 72px rgba(165, 79, 255, 0.14),
      inset 0 0 20px rgba(225, 249, 255, 0.12);
  }
}

@keyframes zyverionOrbV2SpeakPulse {
  0% {
    transform: scale(0.92);
    opacity: 0.78;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

@media (max-width: 520px) {
  .zyverion-ai-popup-v2 {
    width: min(296px, calc(100vw - 24px));
    max-width: 296px;
  }

  .zyverion-ai-popup-shell-v2 {
    max-height: min(58vh, 470px);
    padding: 11px;
    border-radius: 22px;
    gap: 9px;
  }

  .zyverion-ai-language-select-mini {
    min-width: 78px;
    min-height: 32px;
    font-size: 11px;
  }

  .zyverion-ai-orb-button-v2 {
    width: 86px;
    height: 86px;
  }

  .zyverion-ai-orb-core-v2 {
    inset: 13px;
  }

  .zyverion-ai-orb-copy-v2 strong {
    font-size: 10.8px;
  }

  .zyverion-ai-orb-copy-v2 span {
    font-size: 10.2px;
  }

  .zyverion-ai-status-v2,
  .zyverion-ai-transcript-v2,
  .zyverion-ai-context-summary-v2 {
    padding: 9px 11px;
    border-radius: 14px;
    font-size: 11.6px;
  }

  .zyverion-ai-answer-card,
  .zyverion-ai-messages-v2 .zyverion-ai-message:last-child .zyverion-ai-message-bubble {
    padding: 11px;
    border-radius: 16px;
    font-size: 12px;
  }

  .zyverion-ai-answer-text {
    font-size: 12px;
  }

  .zyverion-ai-solution-card {
    padding: 10px;
    border-radius: 14px;
  }

  .zyverion-ai-solution-title {
    font-size: 12.2px;
  }

  .zyverion-ai-solution-purpose {
    font-size: 11px;
  }

  .zyverion-ai-followup-chip {
    min-height: 32px;
    font-size: 10.8px;
  }

  .zyverion-ai-action-dock-v2 {
    gap: 6px;
  }

  .zyverion-ai-action-dock-v2 .zyverion-ai-action-link {
    min-height: 34px;
    font-size: 10.5px;
    padding: 0 6px;
  }

  .zyverion-ai-utility-dock-v2 .zyverion-ai-utility-btn {
    min-height: 30px;
    font-size: 10.3px;
  }
}

@media (min-width: 521px) and (max-width: 768px) {
  .zyverion-ai-popup-v2 {
    width: min(320px, calc(100vw - 28px));
    max-width: 320px;
  }
}

@media (min-width: 769px) {
  .zyverion-ai-popup-v2 {
    width: min(360px, calc(100vw - 34px));
    max-width: 360px;
  }

  .zyverion-ai-popup-shell-v2 {
    max-height: min(64vh, 540px);
    padding: 13px;
  }

  .zyverion-ai-orb-button-v2 {
    width: 96px;
    height: 96px;
  }
}
/* =========================================================
   ZYVERION AI V2 QUICK FIX PATCH
========================================================= */

/* hide floating launcher while popup is open */
body.zyverion-ai-open #aiLauncher {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scale(0.86) !important;
}

/* keep launcher in proper bottom-right position when closed */
#aiLauncher {
  position: fixed !important;
  right: max(14px, env(safe-area-inset-right)) !important;
  bottom: max(18px, env(safe-area-inset-bottom)) !important;
  left: auto !important;
  top: auto !important;
  z-index: 99995 !important;
}

/* keep popup content from collapsing into the chips */
.zyverion-ai-popup-shell-v2 {
  max-height: min(72vh, 560px) !important;
}

.zyverion-ai-messages-v2 {
  flex: 0 0 auto !important;
  max-height: none !important;
  overflow: hidden !important;
}

.zyverion-ai-answer-card,
.zyverion-ai-messages-v2 .zyverion-ai-message:last-child,
.zyverion-ai-messages-v2 .zyverion-ai-message:last-child .zyverion-ai-message-bubble {
  overflow: hidden !important;
}

.zyverion-ai-answer-text,
.zyverion-ai-messages-v2 .zyverion-ai-message:last-child .zyverion-ai-message-bubble {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

.zyverion-ai-action-dock-v2,
.zyverion-ai-utility-dock-v2 {
  position: relative !important;
  z-index: 2 !important;
  flex-shrink: 0 !important;
}

.zyverion-ai-action-dock-v2 {
  margin-top: 2px !important;
}

.zyverion-ai-utility-dock-v2 {
  margin-top: 0 !important;
}

/* slightly tighter default popup so it feels cleaner */
.zyverion-ai-popup-v2 {
  width: min(300px, calc(100vw - 24px)) !important;
  max-width: 300px !important;
}

@media (min-width: 769px) {
  .zyverion-ai-popup-v2 {
    width: min(320px, calc(100vw - 28px)) !important;
    max-width: 320px !important;
  }
}
/* remove the "Speaking." subtitle from voice overlay */
.ai-voice-copy span {
  display: none !important;
}

.ai-voice-copy {
  justify-content: center !important;
}
/* =========================================================
   ZYVERION AI ANSWER SCROLL FIX
========================================================= */

body.zyverion-ai-open {
  overflow: hidden !important;
}

.zyverion-ai-popup-shell-v2 {
  height: min(72vh, 560px) !important;
  max-height: min(72vh, 560px) !important;
}

.zyverion-ai-messages-v2 {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

.zyverion-ai-answer-card,
.zyverion-ai-messages-v2 .zyverion-ai-message:last-child {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}

.zyverion-ai-answer-text,
.zyverion-ai-messages-v2 .zyverion-ai-message:last-child .zyverion-ai-message-bubble {
  display: block !important;
  max-height: min(24vh, 230px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  padding-right: 6px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}