/* Connected low-card and bottom shelf */
.online-demo {
  --collapsed-answer-height: clamp(118px, 34cqw, 136px);
}

.live-answer-sheet {
  bottom: 62px;
  background: #fbfcfd;
}

.live-answer-sheet:not(.expanded) {
  cursor: pointer;
}

.live-answer-sheet:not(.expanded)::after {
  content: "点击查看完整回答  ↑";
  position: absolute;
  right: 16px;
  bottom: 11px;
  color: #52787f;
  font-size: 9px;
  font-weight: 650;
}

.live-answer-sheet:not(.expanded) .answer-lead {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  mask-image: linear-gradient(#000 0 72%, transparent 100%);
}

.live-answer-sheet:not(.expanded) .answer-detail {
  margin-top: 12px;
  padding-top: 10px;
  opacity: .48;
  transform: none;
  pointer-events: none;
  mask-image: linear-gradient(#000 0 45%, transparent 100%);
}

.live-answer-sheet:not(.expanded):hover .live-sheet-handle i {
  width: 54px;
  background: var(--ai-blue);
}

.live-answer-sheet:focus-visible {
  outline: 2px solid rgba(36, 185, 255, .7);
  outline-offset: -3px;
}

.live-answer-sheet.expanded {
  cursor: auto;
}

.answer-copy {
  padding-bottom: 38px;
}

.online-screen {
  overflow: hidden;
}

.online-screen::after {
  content: "";
  position: absolute;
  z-index: 14;
  left: -18px;
  right: -18px;
  bottom: -28px;
  height: 360px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(41, 228, 181, .86) 0%, rgba(37, 218, 189, .58) 42%, rgba(37, 218, 189, 0) 76%),
    radial-gradient(ellipse at center, rgba(45, 160, 255, .86) 0%, rgba(42, 183, 255, .58) 43%, rgba(42, 183, 255, 0) 76%);
  background-repeat: no-repeat;
  background-size: 84% 106%, 84% 106%;
  background-position: -18% 52%, 118% 52%;
  filter: blur(15px) saturate(1.08);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .18) 18%, #000 42%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .18) 18%, #000 42%, #000 100%);
  opacity: 0;
  transform: translateY(16px) scaleX(.98);
  transition: opacity .42s ease, transform .5s cubic-bezier(.22, 1, .36, 1);
}

.online-demo.is-listening .online-screen::after {
  opacity: .92;
  transform: translateY(0) scaleX(1.04);
  animation: voiceFieldFlow 2.7s ease-in-out infinite alternate;
}

/* The shared site no longer uses the legacy thinking orb. Progress stays textual
   with the three understated trailing dots already present in the markup. */
.online-progress > span {
  display: none !important;
}

.online-progress::before {
  display: none !important;
  animation: none !important;
}

.online-progress {
  gap: 7px;
}

.voice-dock {
  left: 8px;
  right: 8px;
  bottom: 7px;
  height: 62px;
  grid-template-columns: 50px 50px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 5px;
  border: 0;
  border-radius: 32px;
  background: linear-gradient(to top, rgba(229, 242, 242, .54), rgba(243, 249, 249, .18) 72%, transparent);
  box-shadow: none;
  backdrop-filter: blur(3px) saturate(1.05);
}

/* Answer-related POIs use one generated landmark sprite; labels remain live text. */
.demo-poi .poi-thumb,
.demo-poi.photo .poi-thumb,
.demo-poi.story .poi-thumb,
.demo-poi.tea .poi-thumb,
.demo-poi.rest .poi-thumb {
  overflow: hidden;
  background-image: url("assets/amap/palace-poi-sprite.webp");
  background-repeat: no-repeat;
  background-size: 400% 200%;
  background-color: #b38a78;
}

.demo-poi .poi-thumb em {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: transparent;
  font-style: normal;
}

.demo-poi.label-left b {
  left: auto;
  right: 34px;
  padding: 6px 11px 6px 9px;
  border-radius: 8px 0 0 8px;
  text-align: right;
}

.demo-poi .poi-thumb.poi-taihe { background-position: 0 0; }
.demo-poi .poi-thumb.poi-yikun { background-position: 33.333% 0; }
.demo-poi .poi-thumb.poi-jiaotai { background-position: 66.666% 0; }
.demo-poi .poi-thumb.poi-xianfu { background-position: 100% 0; }
.demo-poi .poi-thumb.poi-changkang { background-position: 0 100%; }
.demo-poi .poi-thumb.poi-qianqing { background-position: 33.333% 100%; }
.demo-poi .poi-thumb.poi-tea { background-position: 66.666% 100%; }
.demo-poi .poi-thumb.poi-teahouse { background-position: 100% 100%; }

.place-thumb.photo-a,
.place-thumb.photo-b,
.place-thumb.photo-c {
  background-image: url("assets/amap/palace-poi-sprite.webp") !important;
  background-size: 400% 200% !important;
  background-repeat: no-repeat !important;
}

.place-thumb.photo-a { background-position: 33.333% 0 !important; }
.place-thumb.photo-b { background-position: 66.666% 0 !important; }
.place-thumb.photo-c { background-position: 100% 0 !important; }

.voice-dock button,
.voice-dock button:hover {
  min-width: 0;
  height: 50px;
  transform: none;
}

.dock-cancel,
.dock-camera {
  width: 50px;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .9) !important;
  box-shadow: 0 5px 13px rgba(34, 50, 53, .105), inset 0 0 0 1px rgba(255, 255, 255, .75) !important;
  backdrop-filter: blur(12px) saturate(1.12);
}

.dock-cancel {
  position: relative;
  font-size: 0 !important;
}

.dock-cancel::before,
.dock-cancel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2.5px;
  border-radius: 3px;
  background: #ff5a55;
  transform-origin: center;
}

.dock-cancel::before { transform: translate(-50%, -50%) rotate(45deg); }
.dock-cancel::after { transform: translate(-50%, -50%) rotate(-45deg); }

.dock-camera {
  border: 1px solid transparent !important;
  background:
    linear-gradient(rgba(255, 255, 255, .94), rgba(255, 255, 255, .9)) padding-box,
    conic-gradient(from 210deg, rgba(62, 214, 204, .28), rgba(88, 164, 255, .46), rgba(158, 118, 241, .3), rgba(62, 214, 204, .28)) border-box !important;
  color: #14201f;
  opacity: .93;
}

.dock-camera span {
  transform: scale(.86);
}

.dock-camera i {
  right: 8px;
  top: 8px;
  color: #6f78b7;
  font-size: 7px;
  opacity: .72;
}

.dock-talk {
  min-width: 0;
  height: 52px !important;
  gap: 13px;
  border: 1px solid rgba(255, 255, 255, .88) !important;
  border-radius: 27px !important;
  background: linear-gradient(112deg, rgba(255, 255, 255, .97), rgba(249, 253, 253, .91)) !important;
  box-shadow:
    0 7px 18px rgba(31, 55, 59, .12),
    0 1px 2px rgba(41, 187, 203, .08),
    inset 0 0 0 1px rgba(75, 143, 153, .045) !important;
  font-size: 14px;
  letter-spacing: -.01em;
  transition: transform .26s var(--ai-ease), box-shadow .3s ease, background .3s ease !important;
}

.voice-dock::before {
  opacity: 0;
  animation: none;
}

.dock-talk::before {
  inset: -5px -7px -7px;
  border-radius: 33px;
  background:
    radial-gradient(ellipse at 24% 60%, rgba(56, 223, 199, .3), transparent 58%),
    radial-gradient(ellipse at 78% 64%, rgba(70, 164, 255, .32), transparent 60%);
  filter: blur(7px);
  opacity: .62;
  transform: scale(.985);
  animation: voiceIdleAura 3.6s ease-in-out infinite alternate;
}

.dock-talk > i {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  box-shadow: inset 0 0 0 8px #050706, 0 0 0 0 rgba(50, 203, 217, 0);
  transition: transform .28s var(--ai-ease), box-shadow .35s ease;
}

.dock-talk > span {
  font-weight: 720;
  color: #131a19;
  transform: translateY(-.25px);
}

.dock-talk:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 9px 22px rgba(31, 55, 59, .15), 0 0 0 1px rgba(52, 195, 209, .06) !important;
}

.dock-talk:active {
  transform: translateY(1px) scale(.985) !important;
}

.dock-talk.is-listening::before {
  opacity: .95;
  animation: dockListeningGlow 1.35s ease-in-out infinite;
}

@keyframes voiceIdleAura {
  0%, 100% {
    opacity: .44;
    background-position: 0 50%, 100% 50%;
    transform: scale(.975);
  }
  50% {
    opacity: .78;
    background-position: 16% 50%, 84% 50%;
    transform: scale(1.015);
  }
}

.dock-talk.is-listening::after {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: -1;
  border: 1px solid rgba(45, 185, 246, .34);
  border-radius: 34px;
  animation: dockListeningRing 1.35s ease-out infinite;
}

.dock-talk.is-listening {
  box-shadow: 0 0 0 1.5px rgba(39, 189, 249, .3), 0 0 14px rgba(30, 203, 245, .22), inset 0 0 0 1px rgba(73, 96, 100, .04) !important;
}

.dock-talk.is-listening i {
  transform: scale(1.04);
  box-shadow: 0 0 0 6px rgba(37, 184, 255, .15), 0 0 18px rgba(34, 214, 218, .28);
}

.dock-talk.is-listening i::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 3px;
  background: #fff;
}

@keyframes dockListeningGlow {
  0%, 100% { opacity: .5; transform: scale(.985); }
  50% { opacity: 1; transform: scale(1.035); }
}

@keyframes dockListeningRing {
  0% { opacity: .7; transform: scale(.97); }
  75%, 100% { opacity: 0; transform: scale(1.06); }
}

@keyframes voiceFieldFlow {
  0% {
    background-position: -18% 52%, 118% 52%;
    transform: translateY(2px) scaleX(1);
  }
  48% {
    background-position: 8% 54%, 92% 45%;
    transform: translateY(-3px) scaleX(1.05);
  }
  100% {
    background-position: 43% 47%, 57% 54%;
    transform: translateY(0) scaleX(1.08);
  }
}

/* Listening mode is a screen-level mask, not a notification or button halo. */
.online-demo.is-listening .question-tray,
.online-demo.is-listening .live-answer-sheet {
  opacity: 0 !important;
  transform: translateY(16px);
  pointer-events: none;
}

.online-demo.is-listening .voice-dock {
  height: 92px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.online-demo.is-listening .dock-cancel,
.online-demo.is-listening .dock-camera {
  opacity: 0;
  transform: translateY(12px) scale(.86);
  pointer-events: none;
}

.online-demo.is-listening .dock-talk {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 8px;
  width: auto;
  height: 50px !important;
  border-radius: 28px !important;
  background: rgba(255, 255, 255, .22) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2) !important;
  backdrop-filter: blur(7px);
}

.online-demo.is-listening .dock-talk::before,
.online-demo.is-listening .dock-talk::after {
  display: none;
}

.online-demo.is-listening .dock-talk span {
  position: absolute;
  left: 0;
  right: 0;
  top: -42px;
  color: #17353d;
  font-size: 13px;
  font-weight: 560;
  text-align: center;
  letter-spacing: 0;
}

.online-demo.is-listening .dock-talk i {
  position: absolute;
  left: 38px;
  right: 38px;
  bottom: 20px;
  width: auto;
  height: 10px;
  border-radius: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, .98) 0 1.7px, transparent 2px) 0 50% / 8px 8px repeat-x;
  box-shadow: none;
  transform: none;
  animation: voiceDotsBreathe 1.15s ease-in-out infinite;
}

.online-demo.is-listening .dock-talk i::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .1), 0 0 12px rgba(255, 255, 255, .34);
  animation: voiceDotTravel 2.15s ease-in-out infinite alternate;
}

@keyframes voiceDotsBreathe {
  0%, 100% { opacity: .58; transform: scaleX(.95); }
  50% { opacity: 1; transform: scaleX(1); }
}

@keyframes voiceDotTravel {
  0% { left: 4%; opacity: .42; }
  100% { left: calc(96% - 18px); opacity: .86; }
}

.demo-toast {
  bottom: 82px;
}

@media (max-width: 700px) {
  .live-answer-sheet {
    bottom: 59px;
  }

  .voice-dock {
    height: 60px;
    grid-template-columns: 48px 48px minmax(0, 1fr);
    gap: 7px;
    padding: 5px;
  }

  .voice-dock button,
  .voice-dock button:hover { height: 48px; }

  .dock-cancel,
  .dock-camera { width: 48px; }

  .dock-talk,
  .dock-talk:hover { height: 50px !important; }

  .live-answer-sheet { bottom: 67px; }

  .answer-copy {
    padding-bottom: 34px;
  }
}

/* Thinking card owns this layer; hide locate control until the answer is ready. */
.online-demo[data-state="understanding"] .online-locate,
.online-demo[data-state="generating"] .online-locate {
  opacity: 0;
  transform: translateY(-6px) scale(.92);
  pointer-events: none;
}

.followups span {
  color: #6e7978;
  font-size: 10px;
  line-height: 1.45;
}

/* Final map controls: crisp icons, low-card anchoring, and high-card exit. */
.online-controls #mapMore,
.online-controls #mapSound,
.online-locate {
  background-color: rgba(255, 255, 255, .96);
  background-position: center;
  background-repeat: no-repeat;
  color: transparent;
  font-size: 0;
  transition: opacity .24s ease, transform .3s var(--ai-ease), box-shadow .28s ease;
}

.online-controls #mapMore {
  background-image: url("assets/amap/map-more-icon.svg");
  background-size: 28px 28px;
}

.online-controls #mapSound {
  background-image: url("assets/amap/map-sound-icon.svg");
  background-size: 30px 30px;
}

.online-controls #mapSound span,
.online-controls #mapSound::before,
.online-controls #mapSound::after {
  display: none !important;
}

.online-locate {
  right: 14px;
  bottom: calc(var(--collapsed-answer-height) + clamp(58px, 18cqw, 72px) + 12px);
  background-image: url("assets/amap/map-locate-icon.svg");
  background-size: 31px 31px;
}

.online-demo:has(.live-answer-sheet.expanded) .online-controls,
.online-demo:has(.live-answer-sheet.expanded) .online-locate,
.online-demo:has(.live-answer-sheet.expanded) .demo-poi-shell {
  opacity: 0;
  transform: translateY(-7px) scale(.92);
  pointer-events: none;
}

.demo-poi-shell {
  cursor: pointer;
}

.demo-poi .poi-thumb.poi-icehouse,
.place-thumb.rest-icehouse {
  background-image: url("assets/amap/icehouse-cafe-handdrawn.webp") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

.place-thumb.story-qianqing {
  background-image: url("assets/amap/palace-poi-sprite.webp") !important;
  background-position: 33.333% 100% !important;
  background-repeat: no-repeat !important;
  background-size: 400% 200% !important;
}

/* Real production entry points, shown beside the local interaction demo. */
.online-demo .demo-guide {
  max-width: 238px;
}

.live-entry {
  margin-top: 3px;
  padding: 13px;
  border: 1px solid rgba(46, 76, 78, .13);
  border-radius: 13px;
  background: rgba(255, 255, 255, .48);
  box-shadow: 0 8px 22px rgba(52, 69, 67, .06);
}

.live-entry-title {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.live-entry-title em {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #e3f5f1;
  color: #18776f;
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
  letter-spacing: .06em;
}

.live-entry-title em i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #24bfa7;
  box-shadow: 0 0 0 3px rgba(36, 191, 167, .12);
}

.live-entry-title b {
  font: 650 13px/1.35 "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
}

.entry-path {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid rgba(46, 76, 78, .1);
}

.demo-guide .live-entry span,
.demo-guide .live-entry span::before {
  padding: 0;
}

.demo-guide .live-entry span::before {
  display: none;
}

.entry-path-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 5px 13px rgba(45, 65, 68, .1);
}

.entry-camera img {
  display: block;
  width: 29px;
  height: 29px;
  object-fit: contain;
}

.entry-walk {
  background: rgba(239, 245, 255, .96);
}

.entry-walk img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.entry-path p,
.entry-path strong,
.entry-path small {
  display: block;
  margin: 0;
}

.demo-guide .entry-path strong {
  min-width: 0;
  color: #23312f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.entry-path small {
  margin-top: 3px;
  color: #737f7d;
  font-size: 9px;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .online-demo .demo-guide {
    width: min(360px, 90vw);
    max-width: none;
  }

  .live-entry {
    grid-column: 1 / -1;
  }
}

/* Approved dock artwork — exact pixels from the signed-off visual. The native
   buttons remain as transparent semantic hit areas above this visual layer. */
.online-demo:not(.is-listening) .voice-dock {
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 628 / 140;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  isolation: isolate;
  backdrop-filter: none;
}

.online-demo:not(.is-listening) .voice-dock::before {
  display: none;
}

.online-demo:not(.is-listening) .voice-dock::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
  width: 100%;
  aspect-ratio: 628 / 164;
  background: url("assets/amap/voice-dock-approved-cutout-v1.webp") center top / 100% 100% no-repeat;
  filter: drop-shadow(0 7px 12px rgba(73, 128, 154, .1));
  pointer-events: none;
}

.online-demo:not(.is-listening) .voice-dock button,
.online-demo:not(.is-listening) .voice-dock button:hover,
.online-demo:not(.is-listening) .voice-dock button:active {
  position: absolute;
  z-index: 1;
  top: auto;
  min-width: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: transparent !important;
  opacity: 1;
  transform: none !important;
  backdrop-filter: none;
}

.online-demo:not(.is-listening) .dock-cancel {
  left: 3.5%;
  top: 18% !important;
  width: 11.9%;
  height: 53% !important;
}

.online-demo:not(.is-listening) .dock-camera {
  left: 19.35%;
  top: 17% !important;
  width: 12.15%;
  height: 54% !important;
}

.online-demo:not(.is-listening) .dock-talk,
.online-demo:not(.is-listening) .dock-talk:hover {
  left: 34.7%;
  right: auto;
  top: 15% !important;
  width: 60.5%;
  height: 64% !important;
}

.online-demo:not(.is-listening) .dock-cancel::before,
.online-demo:not(.is-listening) .dock-cancel::after,
.online-demo:not(.is-listening) .dock-camera span,
.online-demo:not(.is-listening) .dock-camera i,
.online-demo:not(.is-listening) .dock-talk::before,
.online-demo:not(.is-listening) .dock-talk::after,
.online-demo:not(.is-listening) .dock-talk > i,
.online-demo:not(.is-listening) .dock-talk > span {
  opacity: 0 !important;
}

/* Every non-listening state uses one continuous bottom card. The idle state
   fills it with presets; the answered state replaces those with the sheet. */
.online-demo:not(.is-listening) .online-screen::before {
  content: "";
  position: absolute;
  z-index: 7;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(224px, 66cqw, 264px);
  border-radius: clamp(17px, 5cqw, 22px) clamp(17px, 5cqw, 22px) 0 0;
  background: #fbfcfd;
  box-shadow: 0 -8px 22px rgba(39, 62, 67, .13);
  pointer-events: none;
}

.online-demo[data-state="answered"]:not(.is-listening) .live-answer-sheet {
  z-index: 12;
  background: #fbfcfd;
  box-shadow: none;
}

.online-demo[data-state="answered"]:not(.is-listening) .online-screen::before {
  height: var(--collapsed-answer-height);
}

.online-demo:not(.is-listening) .voice-dock {
  z-index: 15;
  background: #fbfcfd;
}

@media (prefers-reduced-motion: reduce) {
  .online-demo.is-listening .online-screen::after {
    animation: none;
    background-position: 12% 30%, 88% 30%;
  }

  .online-demo.is-listening .dock-talk i,
  .online-demo.is-listening .dock-talk i::after {
    animation: none;
  }

  .dock-talk::before {
    animation: none;
  }

  .live-answer-sheet:not(.expanded) .answer-lead {
    mask-image: none;
  }
}

/* Final shared-site dock: proportions follow the approved visual reference.
   Container units make the whole control group shrink with the phone instead
   of letting individual labels wrap at narrow desktop widths. */
.online-demo .palace-phone {
  container-type: inline-size;
  padding: clamp(6px, .72vw, 9px);
  border-radius: clamp(39px, 4vw, 50px);
}

.online-demo .palace-screen {
  border-radius: clamp(33px, 3.45vw, 42px);
}

.online-demo .voice-dock {
  left: 2cqw;
  right: 2cqw;
  bottom: 1.7cqw;
  height: clamp(60px, 19cqw, 74px);
  grid-template-columns:
    clamp(46px, 15.5cqw, 60px)
    clamp(46px, 15.5cqw, 60px)
    minmax(0, 1fr);
  gap: clamp(6px, 2.1cqw, 9px);
  padding: 1.15cqw;
  overflow: visible;
  background: transparent;
  backdrop-filter: none;
}

.online-demo .voice-dock button,
.online-demo .voice-dock button:hover {
  height: clamp(46px, 15.5cqw, 60px);
}

.online-demo .dock-cancel,
.online-demo .dock-camera {
  width: clamp(46px, 15.5cqw, 60px);
}

.online-demo .dock-cancel {
  box-shadow:
    0 9px 20px rgba(42, 59, 63, .14),
    inset 0 0 0 1px rgba(255, 255, 255, .82) !important;
}

.online-demo .dock-camera {
  border: clamp(1px, .42cqw, 1.65px) solid transparent !important;
  background:
    linear-gradient(rgba(255, 255, 255, .97), rgba(255, 255, 255, .9)) padding-box,
    conic-gradient(from 205deg,
      #65ddd2 0deg,
      #61c9ff 92deg,
      #8097ff 188deg,
      #cf75ff 272deg,
      #65ddd2 360deg) border-box !important;
  box-shadow:
    0 9px 20px rgba(44, 59, 66, .14),
    0 0 0 3px rgba(98, 203, 242, .07),
    0 0 18px rgba(152, 109, 255, .17) !important;
}

.online-demo .dock-camera span {
  width: clamp(19px, 6.2cqw, 25px);
  height: clamp(15px, 4.8cqw, 19px);
  transform: none;
}

.online-demo .dock-camera span::before {
  left: 27%;
  top: 22%;
  width: 28%;
  height: 37%;
}

.online-demo .dock-camera span::after {
  left: 22%;
  width: 43%;
}

.online-demo .dock-camera i {
  right: 10%;
  top: 10%;
  color: #817fd2;
  font-size: clamp(6px, 2cqw, 8px);
}

.online-demo .dock-talk,
.online-demo .dock-talk:hover {
  height: clamp(50px, 16.2cqw, 62px) !important;
  gap: clamp(10px, 3.5cqw, 15px);
  border: 1px solid rgba(255, 255, 255, .92) !important;
  border-radius: 999px !important;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, .985), rgba(250, 253, 254, .925)) !important;
  box-shadow:
    0 13px 28px rgba(42, 66, 75, .17),
    0 7px 20px rgba(65, 174, 242, .13),
    inset 0 1px 0 rgba(255, 255, 255, .96),
    inset 0 0 0 1px rgba(94, 144, 154, .045) !important;
  font-size: clamp(12px, 3.8cqw, 15px);
  white-space: nowrap;
}

.online-demo .dock-talk::before {
  inset: -2.6cqw -2cqw -3cqw;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 18% 62%, rgba(69, 229, 200, .56), transparent 56%),
    radial-gradient(ellipse at 68% 68%, rgba(75, 170, 255, .48), transparent 62%),
    radial-gradient(ellipse at 91% 48%, rgba(164, 111, 255, .22), transparent 58%);
  filter: blur(clamp(6px, 2.1cqw, 9px));
  opacity: .94;
}

.online-demo .dock-talk > i {
  width: clamp(25px, 7.6cqw, 30px);
  height: clamp(25px, 7.6cqw, 30px);
  flex-basis: clamp(25px, 7.6cqw, 30px);
  background: radial-gradient(circle at 38% 28%, #313535, #090b0b 60%, #000 100%);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, .16),
    0 4px 9px rgba(6, 15, 19, .24);
}

.online-demo .dock-talk > i::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 13px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(90deg,
      #fff 0 2px,
      transparent 2px 5px,
      #fff 5px 7px,
      transparent 7px 10px,
      #fff 10px 12px);
  border-radius: 3px;
  clip-path: polygon(0 31%, 17% 31%, 17% 69%, 0 69%, 0 31%, 42% 31%, 42% 0, 58% 0, 58% 100%, 42% 100%, 42% 31%, 83% 31%, 83% 18%, 100% 18%, 100% 82%, 83% 82%, 83% 31%);
  opacity: .96;
}

.online-demo .dock-talk > span {
  min-width: 0;
  flex: 0 0 auto;
  white-space: nowrap;
  line-height: 1;
}

/* The collapsed answer visually hands off into the dock instead of ending in
   a detached white card above it. */
.online-demo .live-answer-sheet {
  bottom: clamp(58px, 18cqw, 72px);
}

.online-demo .live-answer-sheet:not(.expanded) {
  transform: translateY(calc(100% - var(--collapsed-answer-height)));
  border-radius: clamp(17px, 5cqw, 22px) clamp(17px, 5cqw, 22px) 0 0;
  box-shadow:
    0 -8px 22px rgba(39, 62, 67, .14),
    0 18px 0 #fbfcfd;
}

.online-demo .live-answer-sheet:not(.expanded) .answer-lead {
  -webkit-line-clamp: 3;
  mask-image: linear-gradient(#000 0 60%, transparent 100%);
}

.online-demo.is-listening .dock-talk > i::before {
  display: none;
}

@media (max-width: 1000px) {
  .online-demo .palace-phone {
    width: min(380px, 58vw, calc((100vh - 92px) * 9 / 18.5));
  }
}

@media (max-width: 700px) {
  .online-demo .palace-phone {
    width: min(360px, 90vw);
  }

  .online-demo .voice-dock {
    grid-template-columns:
      clamp(44px, 15.5cqw, 54px)
      clamp(44px, 15.5cqw, 54px)
      minmax(0, 1fr);
  }
}
