#guideRoot {
  --guide-navy: #010510;
  --guide-green: #0877ff;
  --guide-border: #dbe5f2;
  --guide-shadow: 0 22px 64px rgba(1, 5, 16, .2), 0 5px 18px rgba(1, 5, 16, .1);
  position: fixed;
  right: max(15px, env(safe-area-inset-right, 0px));
  bottom: calc(var(--tab-bar-height, 76px) + env(safe-area-inset-bottom, 0px) + 14px);
  z-index: 85;
  color: var(--guide-navy);
  font-family: inherit;
}

#guideRoot[hidden],
.guidePanel[hidden] {
  display: none !important;
}

.guideLauncher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 15px 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--guide-navy);
  color: #fff;
  box-shadow: 0 10px 28px rgba(1, 5, 16, .25);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -.015em;
  cursor: pointer;
}

.guideLauncher:hover,
.guideLauncher:focus-visible {
  background: #0b2f70;
}

.guideLauncher.is-open {
  background: var(--guide-green);
}

.guideLauncherMark,
.guideMark,
.guideWelcomeMark {
  color: var(--guide-green);
  font-size: 22px;
  line-height: 1;
}

.guideLauncher.is-open .guideLauncherMark {
  color: #fff;
}

.guidePanel {
  position: absolute;
  right: 0;
  bottom: 60px;
  display: flex;
  flex-direction: column;
  width: min(382px, calc(100vw - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  max-height: min(620px, calc(100dvh - var(--tab-bar-height, 76px) - env(safe-area-inset-bottom, 0px) - 100px));
  overflow: hidden;
  border: 1px solid rgba(1, 5, 16, .1);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--guide-shadow);
}

.guideHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 75px;
  padding: 13px 16px;
  background: var(--guide-navy);
  color: #fff;
}

.guideIdentity {
  display: flex;
  align-items: center;
  gap: 11px;
}

.guideMark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, .09);
}

.guideIdentity div {
  display: grid;
  gap: 3px;
}

.guideIdentity strong {
  font-size: 16px;
  letter-spacing: -.02em;
}

.guideIdentity div > span {
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
}

.guideIconButton {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 23px;
  cursor: pointer;
}

.guideContextBar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 37px;
  padding: 0 15px;
  border-bottom: 1px solid var(--guide-border);
  background: #f8fbff;
  color: #4b5f7a;
  font-size: 11px;
  font-weight: 650;
}

.guideContextBar > span:first-child {
  color: var(--guide-green);
}

.guideFeatureCount {
  margin-left: auto;
  color: #66758b;
  font-size: 10px;
  font-weight: 700;
}

.guideMessages {
  display: flex;
  flex: 1 1 195px;
  flex-direction: column;
  gap: 12px;
  min-height: 120px;
  padding: 17px 13px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.guideWelcome {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  text-align: center;
}

.guideWelcomeMark {
  margin-bottom: 9px;
  font-size: 30px;
}

.guideWelcome strong {
  font-size: 17px;
}

.guideWelcome p {
  max-width: 225px;
  margin: 5px 0 0;
  color: #66758b;
  font-size: 12px;
  line-height: 1.45;
}

.guideMessage {
  max-width: 91%;
  padding: 10px 12px;
  border-radius: 15px;
}

.guideMessage p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.guideMessage-user {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  background: var(--guide-navy);
  color: #fff;
}

.guideMessage-guide {
  align-self: flex-start;
  border-bottom-left-radius: 5px;
  background: #f4f7fc;
  color: var(--guide-navy);
}

.guideSteps {
  margin-top: 10px;
  border-top: 1px solid rgba(1, 5, 16, .1);
  padding-top: 8px;
}

.guideSteps summary {
  color: #075ed5;
  cursor: pointer;
  font-size: 11px;
  font-weight: 760;
}

.guideSteps ol {
  display: grid;
  gap: 7px;
  margin: 9px 0 1px;
  padding-left: 20px;
  color: #344967;
  font-size: 11px;
  line-height: 1.45;
}

.guideMessageActions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.guideShowMe {
  min-height: 30px;
  margin-top: 9px;
  padding: 0 10px;
  border: 1px solid rgba(8, 119, 255, .38);
  border-radius: 999px;
  background: #fff;
  color: #075ed5;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.guideRelated {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.guideRelated button {
  max-width: 100%;
  border: 0;
  background: transparent;
  color: #4b5f7a;
  cursor: pointer;
  font-size: 10px;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.guideQuickActions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
  padding: 0 13px 9px;
  overflow-x: auto;
  scrollbar-width: none;
}

.guideQuickActions[hidden] {
  display: none;
}

.guideQuickActions::-webkit-scrollbar {
  display: none;
}

.guideQuickAction {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(8, 119, 255, .26);
  border-radius: 999px;
  background: #eef5ff;
  color: #075ed5;
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 720;
}

.guideSuggestions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
  padding: 0 13px 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.guideSuggestions::-webkit-scrollbar {
  display: none;
}

.guideSuggestion {
  flex: 0 0 auto;
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid var(--guide-border);
  border-radius: 999px;
  background: #fff;
  color: #344967;
  font-size: 10.5px;
  font-weight: 620;
  cursor: pointer;
}

.guideToolRow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 13px 9px;
}

.guideTool,
.guideExplain {
  flex: 0 1 auto;
  min-height: 30px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: #eef5ff;
  color: #075ed5;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.guideHelpTool {
  width: 30px;
  margin-left: auto;
  padding: 0;
  font-size: 14px;
}

.guideExplain.is-picking {
  background: #d9eaff;
}

.guideComposer {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  margin: 0;
  padding: 9px 12px;
  border-top: 1px solid var(--guide-border);
}

.guideComposer input {
  flex: 1;
  min-width: 0;
  min-height: 37px;
  margin: 0;
  padding: 0 4px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--guide-navy);
  font-size: 13px;
}

.guideComposer input::placeholder {
  color: #7d8aa0;
}

#guideSend {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  place-items: center;
  border: 0;
  border-radius: 11px;
  background: var(--guide-green);
  color: #fff;
  font-size: 20px;
  font-weight: 750;
  cursor: pointer;
}

#guideSend:disabled {
  cursor: wait;
  opacity: .6;
}

.guidePrivacy {
  margin: 0;
  padding: 0 12px 10px;
  color: #66758b;
  font-size: 10px;
  text-align: center;
}

.guidePrivacy span {
  color: var(--guide-green);
}

.guideVisuallyHidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.guideSpotlight {
  position: relative !important;
  z-index: 86 !important;
  outline: 3px solid var(--guide-green) !important;
  outline-offset: 5px !important;
  box-shadow: 0 0 0 9px rgba(8, 119, 255, .2) !important;
  animation: guidePulse 1.1s ease-in-out 3;
}

.guidePickMode button:not(#guideLauncher),
.guidePickMode [role=button],
.guidePickMode input,
.guidePickMode select {
  cursor: help !important;
}

@keyframes guidePulse {
  50% {
    box-shadow: 0 0 0 15px rgba(8, 119, 255, .1);
  }
}

@media (max-width: 420px) {
  #guideRoot {
    right: max(11px, env(safe-area-inset-right, 0px));
  }

  .guidePanel {
    bottom: 57px;
    width: calc(100vw - 22px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
    max-height: min(565px, calc(100dvh - var(--tab-bar-height, 76px) - env(safe-area-inset-bottom, 0px) - 91px));
    border-radius: 18px;
  }

  .guideLauncher {
    min-height: 45px;
  }
}

@media (min-width: 1060px) {
  #guideRoot {
    right: 26px;
    bottom: 25px;
  }

  .guidePanel {
    max-height: min(650px, calc(100dvh - 118px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .guideSpotlight {
    animation: none;
  }
}
