.odessy-guide-launcher { z-index: 8501; }
.odessy-guide-panel { z-index: 8500; }

.odessy-guide .odessy-guide-launcher {
  position: fixed;
  right: 24px;
  bottom: calc(22px + env(safe-area-inset-bottom));
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  gap: 11px;
  padding: 7px 17px 7px 8px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(16, 16, 17, .88);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 255, 255, .09);
  color: #f5f3ef;
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: -.01em;
  cursor: pointer;
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, opacity 160ms ease, visibility 160ms ease;
}

.odessy-guide-launcher:hover {
  border-color: rgba(167, 122, 255, .72);
  background: rgba(27, 23, 34, .96);
  transform: translateY(-2px);
}

.odessy-guide-launcher-copy { display: grid; gap: 2px; text-align: left; }
.odessy-guide-launcher-brand { color: #c4b2e6; font-size: .59rem; font-weight: 650; letter-spacing: .035em; line-height: 1.15; }
.odessy-guide-launcher-label { color: #f5f3ef; font-size: .76rem; font-weight: 670; line-height: 1.2; white-space: nowrap; }

.odessy-guide-brandmark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .23);
  border-radius: 13px;
  background: linear-gradient(145deg, #a77aff 0%, #7144c8 62%, #53329a 100%);
  box-shadow: inset 0 1px rgba(255,255,255,.3), 0 5px 14px rgba(102,65,171,.25);
}

.odessy-guide-brandmark svg { display: block; width: 27px; height: 27px; }
.odessy-guide-mark-antenna { fill: none; stroke: #e2d5fb; stroke-width: 1.5; stroke-linecap: round; }
.odessy-guide-mark-shell { fill: rgba(9, 8, 12, .68); stroke: rgba(255,255,255,.92); stroke-width: 1.25; stroke-linejoin: round; }
.odessy-guide-mark-face { fill: none; stroke: #d6c4ff; stroke-width: 1.8; stroke-linecap: round; }
.odessy-guide-mark-spark { fill: #d8ffad; stroke: #16131b; stroke-width: .5; stroke-linejoin: round; }

.odessy-guide-open .odessy-guide-launcher {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(.97);
}

.odessy-guide-launcher:focus-visible,
.odessy-guide-panel button:focus-visible,
.odessy-guide-panel a:focus-visible,
.odessy-guide-panel textarea:focus-visible {
  outline: 2px solid var(--purple-soft, #a77aff);
  outline-offset: 3px;
}

.odessy-guide-signal {
  position: relative;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--green, #a7d36f);
  box-shadow: 0 0 0 4px rgba(167, 211, 111, .1);
}

.odessy-guide-panel {
  position: fixed;
  right: 24px;
  bottom: calc(92px + env(safe-area-inset-bottom));
  width: min(420px, calc(100vw - 48px));
  height: min(560px, calc(100dvh - 176px));
  min-height: min(360px, calc(100dvh - 176px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 21px;
  background: rgba(13, 13, 15, .97);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .58), inset 0 1px rgba(255, 255, 255, .08);
  color: #f5f3ef;
  opacity: 0;
  transform: translateY(12px) scale(.99);
  transition: opacity 180ms ease, transform 180ms cubic-bezier(.2, .8, .2, 1);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
  isolation: isolate;
}

.odessy-guide-panel[hidden] { display: none; }
.odessy-guide-panel.is-open { opacity: 1; transform: translateY(0) scale(1); }

.odessy-guide-header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.odessy-guide-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 9px;
  color: #b7a3dd;
  font-size: .62rem;
  font-weight: 650;
  letter-spacing: .045em;
}

.odessy-guide-kicker .odessy-guide-signal { width: 6px; height: 6px; flex-basis: 6px; }
.odessy-guide-header h2 { margin: 0; color: #f8f6fa; font-size: 1.16rem; font-weight: 640; letter-spacing: -.045em; }
.odessy-guide-subtitle { margin: 4px 0 0; color: #aaa6b0; font-size: .72rem; line-height: 1.4; }

.odessy-guide-close {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 9px;
  background: rgba(255, 255, 255, .045);
  color: #d8d4dc;
  font-size: .68rem;
  font-weight: 600;
  cursor: pointer;
}
.odessy-guide-close:hover { border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .085); }

.odessy-guide-suggestions {
  display: grid;
  flex: 0 0 auto;
  gap: 6px;
  padding: 13px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.odessy-guide-suggestions[hidden] { display: none; }

.odessy-guide-suggestion {
  display: flex;
  width: 100%;
  min-height: 37px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #d6d1da;
  font-size: .71rem;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}
.odessy-guide-suggestion:hover { border-color: rgba(167, 122, 255, .24); background: rgba(140, 82, 255, .1); color: #fff; }

.odessy-guide-messages {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 13px;
  overflow: auto;
  padding: 18px 17px 14px;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255, 255, 255, .2) transparent;
  scrollbar-width: thin;
}

.odessy-guide-message {
  width: fit-content;
  max-width: 94%;
  padding: 10px 12px 11px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 13px 13px 13px 4px;
  background: rgba(255, 255, 255, .045);
}
.odessy-guide-message-user {
  align-self: flex-end;
  border-color: rgba(167, 122, 255, .2);
  border-radius: 13px 13px 4px 13px;
  background: rgba(140, 82, 255, .14);
}
.odessy-guide-message-label { display: block; margin-bottom: 5px; color: #a8a1af; font-size: .59rem; font-weight: 650; }
.odessy-guide-message-user .odessy-guide-message-label { color: #c8b1ff; }
.odessy-guide-message-copy { margin: 0; color: #f0edf3; font-size: .75rem; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.odessy-guide-message-user .odessy-guide-message-copy { color: #f7f3ff; }
.odessy-guide-handoff { margin: 9px 0 0; color: #b7b0bd; font-size: .67rem; line-height: 1.5; }
.odessy-guide-handoff a { color: #c6aaff; text-decoration: underline; text-decoration-color: rgba(198, 170, 255, .38); text-underline-offset: 2px; }
.odessy-guide-handoff a:hover { color: #e0d0ff; }

.odessy-guide-message.is-pending { width: min(235px, 85%); padding: 10px 12px 12px; }
.odessy-guide-pending-label { display: block; margin: 3px 0 9px; color: #d6d0dc; font-size: .67rem; }
.odessy-guide-progress { display: block; height: 2px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, .1); }
.odessy-guide-progress > span { display: block; width: 43%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8c52ff, #a7d36f); animation: odessy-guide-progress 1.1s ease-in-out infinite alternate; transform-origin: left; }
@keyframes odessy-guide-progress { from { transform: translateX(-18%) scaleX(.6); } to { transform: translateX(145%) scaleX(1.18); } }

.odessy-guide-form {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  gap: 8px;
  margin: 0 14px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 13px;
  background: rgba(255, 255, 255, .055);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.odessy-guide-form:focus-within { border-color: rgba(167, 122, 255, .64); box-shadow: 0 0 0 3px rgba(140, 82, 255, .11); }
.odessy-guide-form textarea { width: 100%; min-width: 0; max-height: 112px; resize: none; padding: 5px 6px; border: 0; outline: 0; background: transparent; color: #f5f3f8; font: inherit; font-size: .74rem; line-height: 1.5; }
.odessy-guide-form textarea::placeholder { color: #8d8893; }
.odessy-guide-form textarea:focus-visible { outline: 0; }
.odessy-guide-send { min-height: 34px; flex: 0 0 auto; padding: 0 13px; border: 1px solid #f5f3ef; border-radius: 9px; background: #f5f3ef; color: #111; font-size: .67rem; font-weight: 700; cursor: pointer; transition: background 150ms ease, color 150ms ease, border-color 150ms ease; }
.odessy-guide-send:hover:not(:disabled) { border-color: #c8b1ff; background: #c8b1ff; }
.odessy-guide-send:disabled { border-color: rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .08); color: #77727d; cursor: not-allowed; }
.odessy-guide-privacy { flex: 0 0 auto; margin: 8px 18px 12px; color: #8e8994; font-size: .57rem; line-height: 1.45; text-align: center; }

.application-page .odessy-guide-launcher { bottom: calc(24px + env(safe-area-inset-bottom)); }
.application-page .odessy-guide-panel { bottom: calc(96px + env(safe-area-inset-bottom)); }

html[data-theme="light"] .odessy-guide-launcher { border-color: rgba(35, 29, 42, .18); background: rgba(255, 255, 255, .92); box-shadow: 0 12px 36px rgba(25, 16, 35, .16), inset 0 1px rgba(255,255,255,.9); color: #17151b; }
html[data-theme="light"] .odessy-guide-launcher:hover { border-color: #a77aff; background: #fff; }
html[data-theme="light"] .odessy-guide-brandmark { border-color: rgba(61, 43, 86, .28); box-shadow: inset 0 1px rgba(255,255,255,.38), 0 4px 12px rgba(86,55,136,.2); }
html[data-theme="light"] .odessy-guide-launcher-brand { color: #6e40bc; }
html[data-theme="light"] .odessy-guide-launcher-label { color: #17151b; }
html[data-theme="light"] .odessy-guide-mark-shell { fill: rgba(9, 8, 12, .68); }
html[data-theme="light"] .odessy-guide-panel { border-color: #ddd6e3; background: rgba(255, 255, 255, .985); box-shadow: 0 30px 90px rgba(24, 17, 32, .22), inset 0 1px #fff; color: #17151b; }
html[data-theme="light"] .odessy-guide-header { border-color: #e8e3e9; }
html[data-theme="light"] .odessy-guide-kicker { color: #6e40bc; }
html[data-theme="light"] .odessy-guide-header h2 { color: #17151b; }
html[data-theme="light"] .odessy-guide-subtitle,
html[data-theme="light"] .odessy-guide-message-label { color: #706a75; }
html[data-theme="light"] .odessy-guide-close { border-color: #ddd7e1; background: #f7f5f8; color: #302b35; }
html[data-theme="light"] .odessy-guide-close:hover { border-color: #b7a0db; background: #f0ebf7; }
html[data-theme="light"] .odessy-guide-suggestions { border-color: #e9e4eb; }
html[data-theme="light"] .odessy-guide-suggestion { color: #393340; }
html[data-theme="light"] .odessy-guide-suggestion:hover { border-color: #dfd0f8; background: #f5f0fd; color: #392568; }
html[data-theme="light"] .odessy-guide-message { border-color: #e9e5eb; background: #f8f7f9; }
html[data-theme="light"] .odessy-guide-message-user { border-color: #e2d6f7; background: #f2ecfb; }
html[data-theme="light"] .odessy-guide-message-copy { color: #27232d; }
html[data-theme="light"] .odessy-guide-message-user .odessy-guide-message-label { color: #7046b4; }
html[data-theme="light"] .odessy-guide-message-user .odessy-guide-message-copy { color: #26202f; }
html[data-theme="light"] .odessy-guide-handoff { color: #5d5663; }
html[data-theme="light"] .odessy-guide-handoff a { color: #6135aa; }
html[data-theme="light"] .odessy-guide-message.is-pending { border-color: #e9e5eb; background: #f8f7f9; }
html[data-theme="light"] .odessy-guide-pending-label { color: #393340; }
html[data-theme="light"] .odessy-guide-progress { background: #e8e3eb; }
html[data-theme="light"] .odessy-guide-form { border-color: #dcd6e1; background: #faf9fb; }
html[data-theme="light"] .odessy-guide-form textarea { color: #17151b; }
html[data-theme="light"] .odessy-guide-form textarea::placeholder { color: #77717c; }
html[data-theme="light"] .odessy-guide-send:disabled { border-color: #e8e4e9; background: #edeaef; color: #827c87; }
html[data-theme="light"] .odessy-guide-privacy { color: #6d6671; }

@media (max-width: 640px) {
  .odessy-guide-launcher { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); min-height: 50px; padding: 5px 14px 5px 6px; }
  .odessy-guide-brandmark { width: 38px; height: 38px; flex-basis: 38px; border-radius: 12px; }
  .odessy-guide-launcher-brand { font-size: .56rem; }
  .odessy-guide-launcher-label { font-size: .71rem; }
  .application-page .odessy-guide-launcher { right: 12px; bottom: calc(104px + env(safe-area-inset-bottom)); }
  .odessy-guide-panel,
  .application-page .odessy-guide-panel {
    inset: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
    width: auto;
    height: auto;
    min-height: 0;
    border-radius: 19px;
  }
  .odessy-guide-header { padding: 17px 17px 14px; }
  .odessy-guide-suggestions { gap: 3px; padding: 10px 12px; }
  .odessy-guide-suggestion { min-height: 35px; font-size: .68rem; }
  .odessy-guide-messages { padding: 15px 13px 12px; }
  .odessy-guide-message { max-width: 96%; }
  .odessy-guide-form { margin-inline: 10px; }
  .odessy-guide-privacy { margin-bottom: calc(11px + env(safe-area-inset-bottom)); }
  body.odessy-guide-open { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .odessy-guide-launcher,
  .odessy-guide-panel,
  .odessy-guide-suggestion,
  .odessy-guide-form,
  .odessy-guide-send { transition-duration: .01ms; }
  .odessy-guide-progress > span { animation-duration: .01ms; animation-iteration-count: 1; }
}
