/* "Are stuck?" option: a button that looks like the other entry options */
.zTbQla_entryOption.proto-stuckOption {
  display: block;
  width: 100%;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: var(--ds-next-line-height-relaxed);
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .15s;
}
.zTbQla_entryOption.proto-stuckOption:hover {
  background: rgba(255, 255, 255, .35);
}
.zTbQla_entryOption.proto-stuckOption:focus-visible {
  outline: 2px solid var(--ds-next-color-magenta);
  outline-offset: 2px;
}

/* Assistant dialog: matches the "Run a challenge" modal (storybook-modal) */
.proto-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: calc(100% - 2rem);
  max-width: 632px;
  height: fit-content;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  background: transparent;
  overflow-y: auto;
}
.proto-dialog[data-step="chat"] {
  max-width: 832px;
}
.proto-dialog::backdrop {
  background: rgba(0, 0, 0, .5);
}
.proto-dialog .proto-modal {
  width: 100%;
}
.proto-dialog .proto-modal[hidden] {
  display: none;
}

/* The original toggles a --focus class from JS; :focus-within does the same */
.proto-dialog .storybook-input-field-focus-frame:focus-within::after,
.proto-dialog .storybook-text-area-focus-frame:focus-within::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid #ff6d18;
  border-radius: 4px;
  pointer-events: none;
}
.proto-dialog .storybook-text-area-focus-frame {
  position: relative;
  width: 100%;
}
.proto-dialog .storybook-input-field-message[hidden] {
  display: none;
}

.proto-optional {
  font-weight: 400;
  color: #858e9e;
}
.proto-note {
  color: #858e9e;
  font-family: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  font-size: 14px;
  line-height: 20px;
}
.proto-note strong {
  font-weight: 600;
  color: #3e4450;
}
.proto-note--tight {
  margin-top: -8px;
}

.proto-chatBody {
  height: min(640px, calc(100dvh - 2rem - 120px));
}
.proto-chatFrame {
  width: 100%;
  height: 100%;
  border: 1px solid #e1e3e7;
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 640px) {
  .proto-dialog .storybook-modal {
    padding: 24px;
  }
}
