#crewCueRoot {
  --crewcue-navy: #10263a;
  --crewcue-green: #54b948;
  --crewcue-border: #e4eae5;
  --crewcue-shadow: 0 22px 64px rgba(16, 38, 58, .18), 0 5px 18px rgba(16, 38, 58, .08);
  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(--crewcue-navy);
  font-family: inherit;
}

#crewCueRoot[hidden],
.crewCuePanel[hidden] {
  display: none !important;
}

.crewCueLauncher {
  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(--crewcue-navy);
  color: #fff;
  box-shadow: 0 10px 28px rgba(16, 38, 58, .23);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -.015em;
  cursor: pointer;
}

.crewCueLauncher:hover,
.crewCueLauncher:focus-visible {
  background: #18374f;
}

.crewCueLauncher.is-open {
  background: var(--crewcue-green);
}

.crewCueLauncherMark,
.crewCueMark,
.crewCueWelcomeMark {
  color: var(--crewcue-green);
  font-size: 22px;
  line-height: 1;
}

.crewCueLauncher.is-open .crewCueLauncherMark {
  color: #fff;
}

.crewCuePanel {
  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(16, 38, 58, .08);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--crewcue-shadow);
}

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

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

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

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

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

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

.crewCueIconButton {
  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;
}

.crewCueContextBar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 37px;
  padding: 0 15px;
  border-bottom: 1px solid var(--crewcue-border);
  background: #f7faf7;
  color: #53635a;
  font-size: 11px;
  font-weight: 650;
}

.crewCueContextBar > span:first-child {
  color: var(--crewcue-green);
}

.crewCueFeatureCount {
  margin-left: auto;
  color: #66806e;
  font-size: 10px;
  font-weight: 700;
}

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

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

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

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

.crewCueWelcome p {
  max-width: 225px;
  margin: 5px 0 0;
  color: #69766d;
  font-size: 12px;
  line-height: 1.45;
}

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

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

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

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

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

.crewCueSteps summary {
  color: #27853e;
  cursor: pointer;
  font-size: 11px;
  font-weight: 760;
}

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

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

.crewCueShowMe {
  min-height: 30px;
  margin-top: 9px;
  padding: 0 10px;
  border: 1px solid rgba(84, 185, 72, .38);
  border-radius: 999px;
  background: #fff;
  color: #25853d;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

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

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

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

.crewCueQuickActions[hidden] {
  display: none;
}

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

.crewCueQuickAction {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(84, 185, 72, .26);
  border-radius: 999px;
  background: #f2f9f0;
  color: #28813e;
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 720;
}

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

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

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

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

.crewCueTool,
.crewCueExplain {
  flex: 0 1 auto;
  min-height: 30px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: #eef7ec;
  color: #24813c;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

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

.crewCueExplain.is-picking {
  background: #dcf2d8;
}

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

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

.crewCueComposer input::placeholder {
  color: #879188;
}

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

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

.crewCuePrivacy {
  margin: 0;
  padding: 0 12px 10px;
  color: #79847c;
  font-size: 10px;
  text-align: center;
}

.crewCuePrivacy span {
  color: var(--crewcue-green);
}

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

.crewCueSpotlight {
  position: relative !important;
  z-index: 86 !important;
  outline: 3px solid var(--crewcue-green) !important;
  outline-offset: 5px !important;
  box-shadow: 0 0 0 9px rgba(84, 185, 72, .2) !important;
  animation: crewCuePulse 1.1s ease-in-out 3;
}

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

@keyframes crewCuePulse {
  50% {
    box-shadow: 0 0 0 15px rgba(84, 185, 72, .1);
  }
}

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

  .crewCuePanel {
    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;
  }

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

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

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

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