/* Tripin Wisp V1.1: cheap SVG/CSS presence with a resilient no-JS baseline. */
.wisp-root {
  --wisp-size: 62px;
  --wisp-safe-top: env(safe-area-inset-top, 0px);
  --wisp-safe-right: env(safe-area-inset-right, 0px);
  --wisp-safe-bottom: env(safe-area-inset-bottom, 0px);
  --wisp-safe-left: env(safe-area-inset-left, 0px);
  position: fixed;
  right: calc(env(safe-area-inset-right) - 10px);
  bottom: clamp(150px, 24dvh, 220px);
  z-index: 1260;
  display: block;
  width: var(--wisp-size);
  height: 74px;
  visibility: visible;
  opacity: 1;
  filter: none;
  isolation: auto;
  transition: left .32s cubic-bezier(.2,.8,.2,1), top .32s cubic-bezier(.2,.8,.2,1), opacity .2s;
}
.wisp-root[hidden] { display: none; }
.wisp-rest-control {
  position: relative;
  z-index: 3;
  display: block;
  width: var(--wisp-size);
  height: 74px;
  min-width: 52px;
  min-height: 52px;
  touch-action: none;
  background: transparent;
  border: 0;
  outline: 0;
  box-shadow: none;
  filter: none;
  transform-origin: 60% 70%;
  animation: wisp-idle-drift 7.4s ease-in-out infinite, wisp-signature 14s ease-in-out infinite;
}
.wisp-form { display: block; width: 100%; height: 100%; }
.wisp-aura {
  position: absolute;
  z-index: 1;
  inset: 16px 3px 2px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(119,245,255,.38), rgba(16,130,255,.12) 48%, transparent 72%);
  filter: blur(8px);
  animation: wisp-aura-breathe 5.2s ease-in-out infinite;
  pointer-events: none;
}
.wisp-lobe-c { transform-origin: 55% 72%; animation: wisp-inner-lobe 4.1s ease-in-out infinite; }

.wisp-conversation {
  right: max(10px, env(safe-area-inset-right));
  bottom: auto;
  display: flex;
  flex-direction: column;
  height: auto;
  max-height: min(calc(var(--wisp-visible-height, 100dvh) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px), 680px);
  margin: 0;
  min-height: 0;
  overflow: hidden;
  border-color: rgba(91,229,255,.58);
  background: linear-gradient(155deg, rgba(6,24,48,.97), rgba(8,44,66,.96) 58%, rgba(12,31,61,.97));
  box-shadow: 0 0 0 1px rgba(78,226,255,.08), 0 0 34px rgba(27,190,255,.18), 0 25px 65px rgba(1,15,36,.48);
  animation: wisp-sheet-arrive .34s cubic-bezier(.2,.85,.25,1) both;
  transition: top .22s ease, left .22s ease;
}
.wisp-sheet-aurora {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.wisp-sheet-aurora::before {
  content: "";
  position: absolute;
  width: 65%; height: 120px; right: -18%; top: -70px;
  background: radial-gradient(ellipse, rgba(79,241,255,.3), rgba(37,113,255,.12) 48%, transparent 72%);
  filter: blur(12px);
  animation: wisp-panel-light 8s ease-in-out infinite;
}
.wisp-conversation header,.wisp-scroll-body,.wisp-conversation form,.wisp-conversation footer { position: relative; z-index: 1; flex: 0 0 auto; }
.wisp-conversation header { position:relative; z-index:3; padding:0; align-items:start; }
.wisp-panel-drag-handle { flex:1 1 auto; min-width:0; min-height:62px; margin:-6px 0 0 -6px; padding:6px 10px 4px 6px; cursor:grab; touch-action:none; user-select:none; -webkit-user-select:none; }
.wisp-panel-drag-handle .wisp-drag-grip { display:block; width:48px; height:5px; margin-top:2px; border-radius:99px; background:rgba(190,246,255,.82); box-shadow:0 0 8px rgba(85,237,255,.25); }
.wisp-panel-dragging { transition:none!important; user-select:none; }
.wisp-panel-dragging .wisp-panel-drag-handle { cursor:grabbing; }
.wisp-scroll-body { flex: 1 1 auto; min-height: 0; margin: 2px -6px 8px; padding: 0 6px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(117,231,247,.38) transparent; outline: none; }
.wisp-scroll-body::before,.wisp-scroll-body::after { content: ""; position: sticky; z-index: 2; display: block; height: 10px; pointer-events: none; }
.wisp-scroll-body::before { top: 0; margin-bottom: -10px; background: linear-gradient(rgba(7,29,51,.88),transparent); }
.wisp-scroll-body::after { bottom: 0; margin-top: -10px; background: linear-gradient(transparent,rgba(8,38,61,.9)); }
.wisp-scroll-body:focus-visible { border-radius: 10px; box-shadow: inset 0 0 0 2px rgba(91,229,255,.7); }
.wisp-scroll-body::-webkit-scrollbar { width: 4px; }
.wisp-scroll-body::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(117,231,247,.38); }
.wisp-close { width: 34px; height: 34px; padding: 0!important; border: 1px solid rgba(150,244,255,.35)!important; background: rgba(255,255,255,.05)!important; color: #dffcff; font-size: 1.35rem; line-height: 1; }
.wisp-conversation form button { background: linear-gradient(135deg,#55edff,#3bbff5); box-shadow: 0 5px 18px rgba(38,210,247,.22); }
.wisp-conversation footer { align-items: center; justify-content: space-between; }
.wisp-settings { margin-left: auto; position: relative; color: #bdebf3; font-size: .82rem; }
.wisp-settings summary { cursor: pointer; list-style: none; padding: 7px 9px; }
.wisp-settings summary::-webkit-details-marker { display: none; }
.wisp-settings>div { position: absolute; right: 0; bottom: 34px; width: 130px; padding: 7px; border: 1px solid rgba(133,233,255,.25); border-radius: 12px; background: #0b2a43; box-shadow: 0 12px 28px rgba(0,0,0,.3); }
.wisp-settings button { width: 100%; background: transparent; color: #cfeef4; font-size: .82rem; }
.wisp-hide-confirm { position: absolute; z-index: 4; inset: auto 12px 12px; padding: 10px; border: 1px solid rgba(110,226,246,.25); border-radius: 14px; background: rgba(3,20,38,.98); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.wisp-hide-confirm p { display: grid; gap: 2px; margin: 0 0 8px; }
.wisp-hide-confirm span { color: #b9d9df; font-size: .82rem; }
.wisp-hide-confirm>div { display: flex; gap: 7px; }
.wisp-location-state { margin: 0 0 8px; color: #396271; font-size: .78rem; font-weight: 700; }
.wisp-location-state[data-state="ready"] { color: #08755c; }
.wisp-location-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 2px 0 10px; font-size: .82rem; }
.wisp-location-actions button { color: #092b40; background: #bff9ff; font-weight: 800; }
.wisp-voice-notice { margin: 0 0 8px; color: #ffdca8; font-size: .82rem; }

.wisp-particle-trail { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.wisp-particle-trail i { position: absolute; left: 50%; top: 45%; width: 5px; height: 5px; border-radius: 50%; background: #aefaff; box-shadow: 0 0 8px #52dfff; opacity: 0; }
.wisp-waking .wisp-particle-trail i { animation: wisp-wake-spark .72s ease-out both; }
.wisp-waking .wisp-particle-trail i:nth-child(2){animation-delay:.08s;--spark-x:-30px;--spark-y:18px}.wisp-waking .wisp-particle-trail i:nth-child(3){animation-delay:.14s;--spark-x:-12px;--spark-y:-28px}.wisp-waking .wisp-particle-trail i:nth-child(4){animation-delay:.2s;--spark-x:22px;--spark-y:-16px}
.wisp-waking .wisp-rest-control { animation: wisp-wake .46s cubic-bezier(.2,.9,.25,1) both; }
.wisp-awake .wisp-rest-control,.wisp-thinking .wisp-rest-control,.wisp-speaking .wisp-rest-control,.wisp-found .wisp-rest-control { transform: translate(var(--wisp-panel-x,-18px),var(--wisp-panel-y,-180px)); }
.wisp-thinking .wisp-rest-control { animation: wisp-safe-orbit 3.8s ease-in-out infinite; }
.wisp-thinking .wisp-particle-trail i { opacity: .45; animation: wisp-pull-in 2.1s ease-in infinite; }
.wisp-speaking .wisp-rest-control { animation: wisp-speak-body .58s ease-in-out infinite alternate; }
.wisp-speaking .wisp-lobe { animation-duration: .62s; }
.wisp-speaking .wisp-aura { animation: wisp-speak-aura .58s ease-in-out infinite alternate; }
.wisp-found .wisp-rest-control { animation: wisp-found-v11 .78s cubic-bezier(.2,.9,.25,1) both; }
.wisp-returning .wisp-rest-control { animation: wisp-return-v11 .52s cubic-bezier(.3,.1,.3,1) both; }
.wisp-paused * { animation-play-state: paused!important; }

@keyframes wisp-idle-drift { 0%,100%{transform:translate(0,1px) rotate(-1deg)} 48%{transform:translate(-5px,-5px) rotate(2deg)} }
@keyframes wisp-signature { 0%,74%,100%{filter:brightness(1)} 80%{transform:translate(-5px,-9px) rotate(-4deg) scale(1.05);filter:brightness(1.2)} 85%{filter:brightness(1.06)} }
@keyframes wisp-aura-breathe { 0%,100%{opacity:.42;transform:scale(.9)} 50%{opacity:.78;transform:scale(1.12)} }
@keyframes wisp-inner-lobe { 0%,100%{transform:scale(.9) translateY(2px)} 50%{transform:scale(1.08) translateY(-2px)} }
@keyframes wisp-panel-light { 50%{transform:translateX(-28%) scale(1.12);opacity:.65} }
@keyframes wisp-sheet-arrive { from{opacity:0;transform:translateY(18px) scale(.98)} }
@keyframes wisp-wake { 0%{transform:scale(1)} 28%{transform:scale(.84) translateY(5px)} 66%{transform:translate(-8px,-50px) scale(1.12) rotate(-5deg)} 100%{transform:translate(-18px,calc(0px - min(24dvh,210px))) scale(1)} }
@keyframes wisp-wake-spark { 0%{opacity:0;transform:translate(0,0) scale(.4)} 25%{opacity:1} 100%{opacity:0;transform:translate(var(--spark-x,-20px),var(--spark-y,-22px)) scale(0)} }
@keyframes wisp-safe-orbit { 0%,100%{transform:translate(var(--wisp-panel-x,-18px),var(--wisp-panel-y,-180px))} 33%{transform:translate(calc(var(--wisp-panel-x,-18px) - 12px),calc(var(--wisp-panel-y,-180px) - 5px)) rotate(-4deg)} 66%{transform:translate(calc(var(--wisp-panel-x,-18px) + 7px),calc(var(--wisp-panel-y,-180px) - 9px)) rotate(4deg)} }
@keyframes wisp-pull-in { from{opacity:0;transform:translate(-34px,20px)} 50%{opacity:.65} to{opacity:0;transform:translate(4px,-6px) scale(.3)} }
@keyframes wisp-speak-body { from{transform:translate(var(--wisp-panel-x,-18px),var(--wisp-panel-y,-180px)) scale(.96);filter:brightness(1)} to{transform:translate(var(--wisp-panel-x,-18px),calc(var(--wisp-panel-y,-180px) - 3px)) scale(1.09);filter:brightness(1.3)} }
@keyframes wisp-speak-aura { to{opacity:1;transform:scale(1.3)} }
@keyframes wisp-found-v11 { 0%,100%{transform:translate(var(--wisp-panel-x,-18px),var(--wisp-panel-y,-180px))} 50%{transform:translate(calc(var(--wisp-panel-x,-18px) - 20px),calc(var(--wisp-panel-y,-180px) - 12px)) scale(1.18);filter:brightness(1.35)} }
@keyframes wisp-return-v11 { from{transform:translate(var(--wisp-panel-x,-18px),var(--wisp-panel-y,-180px))} to{transform:translate(0,0)} }

@media (max-height: 650px) {
  .wisp-conversation { max-height: calc(var(--wisp-visible-height, 100dvh) - 24px); }
}
@media (max-width: 760px) {
  .wisp-root {
    --wisp-size: 52px;
    width: var(--wisp-size);
    height: 52px;
  }
  .wisp-rest-control {
    width: var(--wisp-size);
    height: 52px;
    min-width: 52px;
    min-height: 52px;
  }
}
.wisp-root[data-wisp-header-anchored="true"] {
  --wisp-size: 52px;
  position: absolute !important;
  top: clamp(0px, calc(env(safe-area-inset-top, 0px) + 3px + var(--wisp-header-y, 0px)), calc(100% - 52px)) !important;
  right: auto !important;
  bottom: auto !important;
  left: clamp(4px, calc(var(--wisp-header-x, 78) * 1% - 26px), calc(100% - 112px)) !important;
  width: var(--wisp-size);
  height: 52px;
  transform: none !important;
  transition: opacity .2s !important;
}
.wisp-root[data-wisp-header-anchored="true"] .wisp-rest-control,
.wisp-root[data-wisp-header-anchored="true"].wisp-waking .wisp-rest-control,
.wisp-root[data-wisp-header-anchored="true"].wisp-awake .wisp-rest-control,
.wisp-root[data-wisp-header-anchored="true"].wisp-thinking .wisp-rest-control,
.wisp-root[data-wisp-header-anchored="true"].wisp-speaking .wisp-rest-control,
.wisp-root[data-wisp-header-anchored="true"].wisp-found .wisp-rest-control,
.wisp-root[data-wisp-header-anchored="true"].wisp-returning .wisp-rest-control {
  width: var(--wisp-size);
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  transform: none !important;
  animation: none !important;
  touch-action: manipulation;
}
.wisp-root[data-wisp-header-anchored="true"] [data-wisp-move-left],
.wisp-root[data-wisp-header-anchored="true"] [data-wisp-move-right] {
  display: none !important;
}
.wisp-root[data-wisp-header-anchored="true"] .wisp-aura {
  inset: auto;
  left: 50%;
  top: 50%;
  width: var(--wisp-glow-size, 72px);
  height: var(--wisp-glow-size, 72px);
  margin-left: calc(var(--wisp-glow-size, 72px) / -2);
  margin-top: calc(var(--wisp-glow-size, 72px) / -2);
  opacity: var(--wisp-glow-opacity, .62);
  overflow: visible;
}
.wisp-root[data-wisp-header-anchored="true"] .wisp-rest-control::before {
  opacity: var(--wisp-glow-opacity, .62);
}
.wisp-root[data-wisp-header-anchored="true"] .wisp-rest-control::after {
  opacity: var(--wisp-glow-opacity, .42);
}
@media (prefers-reduced-motion: reduce) {
  .wisp-root * { animation: none!important; transition: none!important; }
  .wisp-awake .wisp-rest-control,.wisp-thinking .wisp-rest-control,.wisp-speaking .wisp-rest-control,.wisp-found .wisp-rest-control { transform: translate(var(--wisp-panel-x,-12px),var(--wisp-panel-y,-150px)); }
}

.wisp-root.wisp-dragging { transition: none; }
.wisp-dragging .wisp-rest-control { cursor: grabbing; animation: none; filter: brightness(1.24) drop-shadow(0 0 12px #69efff); transform: scaleX(calc(1 + .08 * max(var(--wisp-drag-x, 0), calc(-1 * var(--wisp-drag-x, 0))))) scaleY(.96); }
.wisp-dragging .wisp-particles { opacity: .15; animation: none; }
.wisp-settling .wisp-aura { filter: blur(7px) brightness(1.35); }
.wisp-response { min-height: 0; padding: 8px 2px 10px; }
.wisp-results { display: grid; gap: 8px; max-height: none; overflow: visible; }
.wisp-result-card { min-height: 62px; padding: 7px; border-color: rgba(131,229,244,.22); background: rgba(255,255,255,.97); color: #102a43; box-shadow: 0 5px 16px rgba(0,8,24,.16); }
.wisp-result-card img { width: 48px; height: 48px; }
.wisp-result-card span { flex: 1 1 auto; }
.wisp-result-card small { white-space: nowrap; }
.wisp-result-card b { flex: 0 0 auto; padding: 6px 8px; border-radius: 999px; background: #e7faff; color: #096b86; font-size: .76rem; }
.wisp-result-card:focus-visible,.wisp-result-card:hover { border-color: #55edff; outline: 2px solid rgba(85,237,255,.65); outline-offset: 1px; transform: translateY(-1px); }
.wisp-result-progress { margin: 2px 0 0; color: #c5edf4; font-size: .82rem; text-align: center; }
.wisp-more-results { justify-self: center; min-height: 44px; margin: 2px 0 4px; padding: 10px 18px!important; border: 1px solid rgba(131,229,244,.4)!important; background: rgba(255,255,255,.08)!important; color: #dffcff!important; font-weight: 800; }
.wisp-result-group { display:grid; gap:6px; padding:8px; border:1px solid rgba(131,229,244,.18); border-radius:12px; background:rgba(5,28,49,.2); }
.wisp-result-group h3 { margin:0; color:#dffcff; font-size:.76rem; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.wisp-settings>div { width: 170px; }
.wisp-session-prompt,.wisp-actions{display:grid;gap:8px;margin:4px 0 10px}.wisp-session-prompt>div,.wisp-actions{grid-template-columns:1fr 1fr}.wisp-actions a,.wisp-actions button,.wisp-session-prompt button{display:flex;align-items:center;justify-content:center;text-align:center;background:#35daf5;color:#082036;font-weight:900;text-decoration:none;border-radius:999px;padding:9px}.wisp-actions>:first-child{background:#fff;color:#073954}.wisp-rescue-form{display:block!important;margin:4px 0 8px;padding:0;border:1px solid rgba(112,231,249,.42);border-radius:18px;background:linear-gradient(155deg,rgba(255,255,255,.12),rgba(34,113,139,.12));box-shadow:0 12px 28px rgba(0,8,25,.24)}.wisp-rescue-form[hidden]{display:none!important}.wisp-rescue-form fieldset{display:grid;gap:14px;margin:0;padding:16px;border:0;min-width:0}.wisp-rescue-form legend{padding:0;color:#75eeff;font-size:.78rem;font-weight:900;letter-spacing:.1em}.wisp-rescue-intro{margin:0;color:#eefcff;line-height:1.45}.wisp-field{display:grid;gap:5px}.wisp-rescue-form .wisp-field label{position:static!important;clip:auto!important;width:auto;height:auto;overflow:visible;white-space:normal;margin:0;color:#fff;font-size:.9rem;font-weight:850}.wisp-rescue-form .wisp-field small{color:#c5e3ea;font-size:.76rem;line-height:1.3}.wisp-rescue-form input,.wisp-rescue-form textarea{box-sizing:border-box;display:block;width:100%;min-height:50px;margin:0;padding:12px 13px;border:2px solid #a9dbe5;border-radius:12px;appearance:none;background:#f7fcfd;color:#102a43;font:inherit;line-height:1.3}.wisp-rescue-form textarea{min-height:104px;max-height:160px;resize:vertical}.wisp-rescue-form input::placeholder,.wisp-rescue-form textarea::placeholder{color:#617984;opacity:1}.wisp-rescue-form input:focus,.wisp-rescue-form textarea:focus{border-color:#55edff;outline:3px solid rgba(85,237,255,.35);outline-offset:1px}.wisp-rescue-form [aria-invalid="true"]{border-color:#ff9a9a;outline-color:rgba(255,104,104,.3)}.wisp-field-error{color:#ffd0d0;font-size:.8rem;font-weight:800}.wisp-rescue-location{margin:0;padding:11px 12px;border:1px solid rgba(123,229,243,.34);border-radius:12px;background:rgba(1,18,36,.34);color:#e6fbff;font-weight:800}.wisp-rescue-actions{display:grid;gap:8px}.wisp-rescue-actions button{min-height:48px}.wisp-rescue-cancel{border:1px solid rgba(177,235,244,.45)!important;background:transparent!important;color:#e8fbff!important;box-shadow:none!important}.wisp-root[data-wisp-substate="send-details-form"] .wisp-response{padding-bottom:4px}.wisp-finish{background:transparent!important;color:#bdeefa;font-size:.78rem}
@media (prefers-reduced-motion: reduce) {
  .wisp-root { transition: none!important; }
  .wisp-conversation { transition: none!important; }
}

/* Branded resting spirit. Keep the exact Tripin artwork static; all energy is CSS. */
.wisp-root {
  --wisp-flame-cyan: rgba(65, 238, 255, .78);
  --wisp-flame-blue: rgba(13, 126, 255, .66);
  --wisp-flame-deep: rgba(32, 45, 255, .28);
  --wisp-flame-strength: .72;
}
.wisp-rest-control {
  isolation: isolate;
  filter: none;
  animation: none;
}
.wisp-rest-control::before,
.wisp-rest-control::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  transform-origin: 50% 82%;
}
.wisp-rest-control::before {
  inset: 8px 5px 7px;
  border-radius: 56% 42% 58% 38% / 62% 48% 55% 38%;
  background:
    radial-gradient(ellipse at 49% 67%, var(--wisp-flame-cyan), transparent 42%),
    conic-gradient(from 205deg at 50% 72%, transparent 0 14%, var(--wisp-flame-blue) 22%, transparent 38% 55%, var(--wisp-flame-cyan) 66%, transparent 82%);
  filter: blur(7px) saturate(135%);
  opacity: var(--wisp-flame-strength);
  animation: wisp-brand-flame 5.8s ease-in-out infinite alternate;
}
.wisp-rest-control::after {
  left: 15px;
  right: 13px;
  bottom: 8px;
  height: 43px;
  border-radius: 62% 38% 55% 45% / 72% 58% 42% 28%;
  background: linear-gradient(158deg, transparent 8%, var(--wisp-flame-deep) 34%, var(--wisp-flame-cyan) 60%, transparent 82%);
  filter: blur(5px);
  opacity: .58;
  animation: wisp-brand-tongue 7.2s ease-in-out infinite alternate;
}
.wisp-aura {
  inset: 9px 2px 1px;
  border-radius: 48% 52% 44% 56% / 58% 44% 56% 42%;
  background: radial-gradient(ellipse at 50% 62%, rgba(99,247,255,.44), rgba(20,111,255,.16) 45%, transparent 72%);
  filter: blur(8px);
  opacity: .62;
  animation: wisp-brand-aura 6.4s ease-in-out infinite;
}
.wisp-mark {
  position: absolute;
  z-index: 2;
  left:var(--wisp-crop-media-left,0px);
  top:var(--wisp-crop-media-top,0px);
  box-sizing: border-box;
  display: block;
  width: auto;
  height:var(--wisp-crop-media-height,var(--wisp-image-size,48px));
  max-width: none;
  padding: 1px;
  object-fit: contain;
  object-position: center;
  overflow: visible;
  filter: drop-shadow(0 2px 2px rgba(1,13,38,.48)) drop-shadow(0 0 6px rgba(43,219,255,.3));
  animation: wisp-brand-mark-float 7.8s ease-in-out infinite, wisp-brand-mark-flare 16s ease-in-out infinite;
}
.wisp-art-crop {
  position:absolute;
  left:50%;
  top:50%;
  display:block;
  width:var(--wisp-crop-viewport-width,calc(var(--wisp-image-size,48px) * .713));
  height:var(--wisp-image-size,48px);
  overflow:hidden;
  transform:translate(-50%,-50%);
  background:transparent;
  border:0;
  outline:0;
  box-shadow:none;
  filter:
    drop-shadow(0 0 calc(var(--wisp-glow-size,72px) / 18) rgba(65,238,255,calc(var(--wisp-glow-opacity,.62) * .42)))
    drop-shadow(0 0 calc(var(--wisp-glow-size,72px) / 14) rgba(22,124,255,calc(var(--wisp-glow-opacity,.62) * .26)))
    drop-shadow(0 0 calc(var(--wisp-glow-size,72px) / 11) rgba(115,57,255,calc(var(--wisp-glow-opacity,.62) * .18)))
    drop-shadow(0 0 calc(var(--wisp-glow-size,72px) / 9) rgba(228,61,150,calc(var(--wisp-glow-opacity,.62) * .12)));
}
.wisp-mark-video { background:transparent; }
.wisp-mark-poster { display:none; }
.wisp-thinking .wisp-rest-control::before,
.wisp-listening .wisp-rest-control::before { animation-duration: 1.45s; opacity: .94; filter: blur(7px) saturate(155%) brightness(1.15); }
.wisp-thinking .wisp-rest-control::after,
.wisp-listening .wisp-rest-control::after { animation-duration: 1.1s; opacity: .82; }
.wisp-found .wisp-rest-control::before { animation: wisp-brand-message-flare .78s ease-out both; }

@keyframes wisp-brand-mark-float { 0%,100%{transform:translate(-50%,calc(-50% + 1px))} 50%{transform:translate(-50%,calc(-50% - 2px))} }
@keyframes wisp-brand-mark-flare { 0%,76%,100%{filter:drop-shadow(0 2px 2px rgba(1,13,38,.48)) drop-shadow(0 0 6px rgba(43,219,255,.3)) brightness(1)} 81%{filter:drop-shadow(0 2px 2px rgba(1,13,38,.48)) drop-shadow(0 0 9px rgba(43,219,255,.45)) brightness(1.1)} 86%{filter:drop-shadow(0 2px 2px rgba(1,13,38,.48)) drop-shadow(0 0 6px rgba(43,219,255,.3)) brightness(1)} }
@keyframes wisp-brand-flame { 0%{transform:scale(.9, .96) rotate(-2deg);opacity:.5} 52%{transform:scale(1.06, 1.12) rotate(3deg);opacity:var(--wisp-flame-strength)} 100%{transform:scale(.96, 1.06) rotate(-1deg);opacity:.59} }
@keyframes wisp-brand-tongue { 0%{transform:translate(-3px,3px) scale(.88) rotate(-7deg)} 55%{transform:translate(3px,-3px) scale(1.08) rotate(6deg)} 100%{transform:translate(-1px,-1px) scale(.96) rotate(-2deg)} }
@keyframes wisp-brand-aura { 0%,100%{transform:scale(.9);opacity:.4} 50%{transform:scale(1.08);opacity:.7} }
@keyframes wisp-brand-message-flare { 0%{transform:scale(.9);opacity:.55} 45%{transform:scale(1.34,1.2) rotate(5deg);opacity:1;filter:blur(7px) brightness(1.45)} 100%{transform:scale(1.02);opacity:.72} }

@media (prefers-reduced-motion: reduce) {
  .wisp-rest-control,
  .wisp-mark,
  .wisp-rest-control::before,
  .wisp-rest-control::after,
  .wisp-aura { animation: none!important; }
  .wisp-rest-control::before { transform:none; opacity:.5; }
  .wisp-rest-control::after { transform:none; opacity:.34; }
  .wisp-aura { transform:none; opacity:.46; }
  .wisp-mark-video { display:none; }
  .wisp-mark-animation { display:none; }
  .wisp-mark-poster { display:block; }
}

/* Psychedelic motion is confined to artwork/effects inside the fixed hit target. */
/* The fixed conversation uses viewport coordinates; layout containment offsets it by the launcher. */
.wisp-root { overflow:visible; contain:none; }
.wisp-rest-control { overflow:visible; transform:none!important; }
.wisp-art-motion { position:absolute;z-index:2;inset:0;display:block;pointer-events:none;transform-origin:50% 64%;animation:wisp-art-breathe calc(6.8s * var(--wisp-speed,1)) cubic-bezier(.45,.05,.48,.96) infinite,wisp-art-wobble calc(8.9s * var(--wisp-speed,1)) ease-in-out infinite,wisp-attention-pop calc(11.7s * var(--wisp-speed,1)) ease-in-out infinite;animation-play-state:running,running,var(--wisp-attention-play,running); }
.wisp-mark { animation:none;transform:none; }
.wisp-aura,.wisp-rest-control::before,.wisp-rest-control::after { display:none;content:none;background:transparent;box-shadow:none;filter:none; }
.wisp-energy-ring { position:absolute;z-index:0;left:50%;top:50%;width:44px;height:44px;margin:-22px;border:1.5px solid rgba(65,238,255,.7);border-radius:50%;opacity:0;pointer-events:none; }
.wisp-energy-ring-a { animation:wisp-energy-ring calc(12.4s * var(--wisp-speed,1)) ease-out infinite;animation-play-state:var(--wisp-attention-play,running); }
.wisp-energy-ring-b { border-color:rgba(228,61,150,.62);animation:wisp-energy-ring calc(12.4s * var(--wisp-speed,1)) 1.1s ease-out infinite;animation-play-state:var(--wisp-attention-play,running); }
.wisp-rest-control:active .wisp-art-motion { animation:none;transform:scale(.89) translateY(2px);transition:transform 90ms ease-out; }
.wisp-listening .wisp-art-motion,.wisp-thinking .wisp-art-motion { animation-duration:2.5s,3.2s,11.7s; }
.wisp-speaking .wisp-art-motion { animation:wisp-speaking-art .72s ease-in-out infinite alternate; }
.wisp-found .wisp-energy-ring-a,.wisp-found .wisp-energy-ring-b { animation:wisp-result-ring .85s ease-out both; }
.wisp-found .wisp-energy-ring-b { animation-delay:.12s; }
@keyframes wisp-art-breathe { 0%,100%{scale:1} 48%{scale:calc(1 + .05 * var(--wisp-animation-intensity,.62))} }
@keyframes wisp-art-wobble { 0%,100%{translate:0 0;rotate:calc(-1 * var(--wisp-wobble,2deg))} 37%{translate:0 calc(-1 * var(--wisp-float,3px));rotate:var(--wisp-wobble,2deg)} 72%{translate:0 calc(var(--wisp-float,3px) * .28);rotate:calc(var(--wisp-wobble,2deg) * -.45)} }
@keyframes wisp-attention-pop { 0%,72%,100%{filter:brightness(1)} 76%{filter:brightness(1.22) drop-shadow(0 0 7px rgba(228,61,150,.35))} 79%{filter:brightness(1.05)} }
@keyframes wisp-attention-pop { 0%,72%,100%{filter:brightness(1)} 77%{filter:brightness(1.22);scale:1.065} 82%{filter:brightness(1.04)} }
@keyframes wisp-psychedelic-aura { 0%{transform:scale(.9) rotate(0);opacity:.38} 50%{transform:scale(1.1) rotate(180deg);opacity:calc(.3 + var(--wisp-glow-opacity,.62) * .48)} 100%{transform:scale(.84) rotate(360deg);opacity:.32} }
@keyframes wisp-psychedelic-core { 0%,100%{transform:scale(.9) rotate(-7deg)} 48%{transform:scale(1.1) rotate(11deg)} }
@keyframes wisp-psychedelic-tongue { from{transform:translate(-2px,2px) rotate(-5deg)} to{transform:translate(2px,-2px) rotate(6deg)} }
@keyframes wisp-energy-ring { 0%,73%{opacity:0;transform:scale(.7)} 76%{opacity:calc(var(--wisp-ripple-opacity,.48) * .48)} 84%,100%{opacity:0;transform:scale(1.7)} }
@keyframes wisp-speaking-art { from{scale:.99;filter:brightness(1)} to{scale:1.045;filter:brightness(1.14)} }
@keyframes wisp-result-ring { from{opacity:calc(var(--wisp-ripple-opacity,.48) * .75);transform:scale(.65)} to{opacity:0;transform:scale(1.95)} }
@media (prefers-reduced-motion: reduce) { .wisp-art-motion,.wisp-energy-ring,.wisp-aura,.wisp-rest-control::before,.wisp-rest-control::after{animation:none!important;transform:none!important} }

.wisp-ai-indicator {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  align-self: flex-start;
  max-width: calc(100% - 32px);
  margin: 0 16px 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: #b8cad2;
  font-size: 10px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.wisp-ai-indicator[hidden] { display: none; }

/* Conversation first: a quiet sheet with one integrated, reachable composer. */
.product-ui .wisp-conversation { padding:16px 14px 8px; border:1px solid #4f7888; border-radius:24px; background:#0d2a3c; box-shadow:0 16px 48px #03172355; backdrop-filter:none; color:#edf6f8; }
.product-ui .wisp-sheet-aurora { display:none; }
.product-ui .wisp-root.wisp-error { opacity:1; }
.product-ui .wisp-panel-drag-handle { min-height:52px; }
.product-ui .wisp-conversation small { font-weight:600; letter-spacing:.06em; font-size:.65rem; color:#a6d9dc; }
.product-ui .wisp-conversation h2 { margin:3px 0 6px; font-size:1.1rem; font-weight:650; letter-spacing:-.02em; }
.product-ui .wisp-drag-grip { width:28px; height:3px; background:#6c8f9d; box-shadow:none; }
.product-ui .wisp-close { width:44px; height:44px; min-width:44px; border:0!important; background:transparent!important; color:#d3e6ec; font-size:1.65rem; }
.product-ui .wisp-scroll-body { margin-block:4px 12px; }
.product-ui .wisp-scroll-body::before,.product-ui .wisp-scroll-body::after { display:none; }
.product-ui .wisp-response { padding:8px 2px 14px; font-size:.94rem; line-height:1.55; }
.product-ui .wisp-conversation [data-wisp-form] { margin:0; }
.product-ui .wisp-conversation [data-wisp-form] > div { display:grid; grid-template-columns:minmax(0,1fr) 44px 44px; align-items:end; gap:2px; padding:5px; border:1px solid #9bced2; border-radius:20px; background:#fff; }
.product-ui .wisp-conversation [data-wisp-form] textarea { display:block; box-sizing:border-box; width:100%; min-width:0; min-height:44px; max-height:108px; padding:11px 8px; margin:0; resize:none; border:0; border-radius:14px; box-shadow:none; background:transparent; color:#173e4c; font:400 16px/22px inherit; font-family:inherit; font-size:16px; line-height:22px; }
.product-ui .wisp-conversation [data-wisp-form] textarea::placeholder { color:#667a83; }
.product-ui .wisp-conversation [data-wisp-form] button { width:44px; height:44px; min-height:44px; padding:10px; border-radius:50%; box-shadow:none; }
.product-ui .wisp-conversation [data-wisp-form] .wisp-mic { background:transparent; color:#386573; }
.product-ui .wisp-conversation [data-wisp-form] .wisp-mic.active { background:#d7efeb; color:#105d55; box-shadow:0 0 0 2px #82b9ac; }
.product-ui .wisp-conversation [data-wisp-form] .wisp-send { background:#126879; color:white; }
.product-ui .wisp-conversation [data-wisp-form] button:disabled { background:#edf2f3; color:#93a6ac; opacity:1; }
.product-ui .wisp-conversation footer { min-height:44px; margin:4px 0 0; gap:8px; }
.product-ui .wisp-conversation [data-wisp-speech] { display:flex; align-items:center; gap:7px; min-height:44px; padding:6px 10px; background:transparent; color:#bfd8e1; font-size:.78rem; }
.product-ui .wisp-conversation [data-wisp-speech]::before { content:''; width:7px; height:7px; border:1px solid #9fbecb; border-radius:50%; }
.product-ui .wisp-conversation [data-wisp-speech][aria-pressed=true]::before { background:#8cdfc7; border-color:#8cdfc7; }
.product-ui .wisp-settings summary { display:flex; align-items:center; gap:7px; min-height:44px; padding:6px 10px; font-size:.78rem; color:#bfd8e1; }
.product-ui .wisp-settings summary .ui-icon { width:18px; height:18px; }
.product-ui .wisp-settings > div { bottom:48px; width:210px; padding:6px; background:#14384b; }
.product-ui .wisp-settings button { min-height:44px; border-radius:8px; text-align:left; font-weight:500; }
.product-ui .wisp-settings button:hover { background:#244a5a; }
.product-ui .wisp-location-state,.product-ui .wisp-location-state[data-state=ready] { color:#a9d7ca; font-weight:450; font-size:.76rem; }
.product-ui .wisp-location-actions { padding:10px 12px; border:1px solid #315568; border-radius:12px; color:#c7dce5; }
.product-ui .wisp-location-actions button { min-height:44px; background:transparent; color:#aee8df; padding:6px 0; font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.product-ui .wisp-result-card { padding:10px; gap:10px; border:0; border-radius:14px; background:#f4f8f8; box-shadow:none; }
.product-ui .wisp-result-card strong { font-size:.88rem; font-weight:650; line-height:1.3; white-space:normal; }
.product-ui .wisp-result-card small { margin-top:4px; font-size:.74rem; line-height:1.35; white-space:normal; letter-spacing:0; color:#55707b; font-weight:400; }
.product-ui .wisp-result-card b { padding:0; background:transparent; color:#126879; font-size:.76rem; }
.product-ui .wisp-actions a,.product-ui .wisp-actions button { min-height:44px; padding:8px 12px; border-radius:12px; font-weight:600; font-size:.83rem; background:#16475a; color:#dff5f4; }
.product-ui .wisp-actions > :first-child { background:#dbf3eb; color:#184f4b; }
.product-ui .wisp-hide-confirm { z-index:5; padding:16px; border-color:#547583; background:#123347; }
.product-ui .wisp-hide-confirm button { min-height:44px; padding:8px 12px; font-weight:550; font-size:.85rem; }
.product-ui .wisp-retry { min-height:44px; margin-bottom:8px; background:#d9eee9; color:#184f4b; font-weight:600; }
.wisp-thinking-dots { display:none; gap:5px; padding:0 2px 14px; }
.wisp-thinking .wisp-thinking-dots { display:flex; }
.wisp-thinking-dots i { width:6px; height:6px; border-radius:50%; background:#a9d8dc; animation:wisp-dot 1.3s ease-in-out infinite; }
.wisp-thinking-dots i:nth-child(2) { animation-delay:.16s; }
.wisp-thinking-dots i:nth-child(3) { animation-delay:.32s; }
@keyframes wisp-dot { 0%,75%,100% { opacity:.35; transform:translateY(0); } 35% { opacity:1; transform:translateY(-3px); } }
@media(prefers-reduced-motion:reduce) { .wisp-thinking-dots i { animation:none; opacity:.7; } }

/* A modal top layer: header/map stacking contexts cannot trap the conversation. */
.wisp-conversation::backdrop { background:rgba(4,24,36,.48); }
html.wisp-dialog-open, .wisp-dialog-open body { overflow:hidden; overscroll-behavior:none; }
.wisp-dialog-open .bottom-nav { visibility:hidden; pointer-events:none; }
.wisp-conversation:not([open]), .wisp-conversation[hidden] { display:none; }
.wisp-result-tabs { display:flex; gap:6px; overflow-x:auto; flex-shrink:0; padding:2px 0 6px; scrollbar-width:thin; }
.wisp-result-tabs [role=tab] { flex:0 0 auto; min-height:44px; padding:8px 12px; border-radius:10px; background:#204558; color:#d5e7ec; font-size:.82rem; }
.wisp-result-tabs [aria-selected=true] { background:#d5efe8; color:#164d47; }
.wisp-result-group[hidden] { display:none; }
.wisp-result-group[role=tabpanel] { padding:0; border:0; background:transparent; }
.wisp-result-group[role=tabpanel] > h3 { display:none; }
.product-ui .wisp-conversation [data-wisp-form] > div:has([data-wisp-mic][hidden]) { grid-template-columns:minmax(0,1fr) 44px; }
@media(max-width:760px) {
  .wisp-conversation { width:calc(100vw - 20px - env(safe-area-inset-left) - env(safe-area-inset-right)); max-width:none; transition:none; }
}
