.genie-app-body {
  min-height: var(--genie-app-viewport-height);
}

/* Match the visible viewport on mobile so the app shell does not create page scroll. */
:root {
  --genie-app-viewport-height: 100vh;
}

@supports (height: 100dvh) {
  :root {
    --genie-app-viewport-height: 100dvh;
  }
}

.genie-site-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  font-family: "IBM Plex Sans", sans-serif;
  min-height: 0;
}

html[data-bs-theme="genie"],
html[data-bs-theme="genie"] body,
html[data-bs-theme="genie"] .genie-site-main {
  background: var(--bs-body-bg);
  color: #e5e6ee;
}

.genie-site-main button,
.genie-site-main input,
.genie-site-main select,
.genie-site-main textarea {
  font-family: inherit;
}

.genie-page-container {
  background-attachment: fixed;
  background-color: var(--bs-body-bg);
  background-image: var(--genie-page-backdrop);
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: var(--genie-app-viewport-height);
}

.genie-chat-container {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.genie-app-surface {
  background: transparent;
  color: #e5e6ee;
  min-height: 0;
}

.genie-session-list-container {
  max-width: 720px;
}

/* Shared top bar */
.genie-header {
  --genie-header-action-height: 40px;
  --genie-new-session-width: 148px;
  align-items: center;
  background: transparent;
  border-radius: 0;
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 1rem 1.75rem;
}

.genie-header-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  min-height: var(--genie-header-action-height);
}

.genie-header-brand {
  color: #ffffff;
  display: inline-flex;
  text-decoration: none;
}

.genie-header-brand:hover {
  color: #ffffff;
}

.genie-wordmark {
  color: #ffffff;
  display: block;
  height: auto;
}

.genie-wordmark-header {
  width: 65px;
}

.genie-header-auth-form {
  margin: 0;
}

.genie-header-auth-link {
  appearance: none;
  background: none;
  border: 0;
  color: rgba(231, 235, 255, 0.9);
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  padding: 0;
  text-decoration: none;
}

.genie-header-auth-link:hover {
  color: #ffffff;
  text-decoration: none;
}

.genie-header-auth-link:focus-visible {
  border-radius: 0.375rem;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.08);
  outline: none;
}

.genie-wordmark-hero {
  height: 32px;
  margin: 0 auto 1.5rem;
  width: 100px;
}

.genie-new-session-btn {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(115, 120, 142, 0.9);
  border-radius: 0.5rem;
  color: #ffffff;
  display: inline-flex;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  gap: 0.25rem;
  height: var(--genie-header-action-height);
  justify-content: center;
  line-height: 21px;
  min-width: var(--genie-new-session-width);
  padding: 0 1rem;
}

.genie-new-session-spacer {
  display: inline-flex;
  flex: 0 0 auto;
  height: var(--genie-header-action-height);
  min-width: var(--genie-new-session-width);
  visibility: hidden;
}

.genie-new-session-btn:hover {
  border-color: rgba(152, 157, 180, 0.95);
}

.genie-new-session-btn:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.08);
  outline: none;
}

.genie-new-session-icon {
  display: inline-flex;
}

.genie-new-session-icon svg {
  height: 24px;
  width: 24px;
}

/* Centered chat screen */
.genie-centered-chat-page {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
  padding: 0 1rem;
  width: 100%;
}

.genie-centered-chat-copy {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  padding-top: 1rem;
  text-align: center;
  width: 100%;
}

.genie-empty-chat-intro {
  animation: genie-empty-chat-intro-in 0.3s ease-out both;
}

.genie-centered-chat-title {
  color: #ffffff;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  margin: 0;
}

@keyframes genie-empty-chat-intro-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .genie-empty-chat-intro {
    animation: none;
  }
}

.genie-centered-chat-input {
  margin: 0 auto;
  padding: 1.25rem 0;
  width: 90%;
}

.genie-chat-input-docked {
  padding: 1.25rem 1rem 1.5rem;
  width: 100%;
}

.genie-chat-input-docked-inner {
  padding-bottom: 0;
  padding-top: 0;
}

.genie-centered-chat-input .genie-chat-form,
.genie-centered-chat-input .genie-chat-composer {
  width: 100%;
}

.genie-chat-shell {
  width: min(100%, 70rem);
}

.genie-chat-composer {
  background: #1c1f2e;
  border: 1px solid #4a4d5e;
  border-radius: 0.75rem;
  color: #ffffff;
  position: relative;
  transition: border-color 0.2s ease;
}

.genie-chat-composer:hover,
.genie-chat-composer:focus-within {
  background: #1c1f2e;
  border-color: #4a4d5e;
  box-shadow: none;
}

.genie-chat-composer-centered {
  min-height: 89px;
}

.genie-chat-composer textarea.form-control,
.genie-chat-composer textarea.genie-chat-input,
.genie-chat-composer textarea.genie-chat-input-compose {
  background: transparent;
  background-color: transparent;
  border: 0;
  border-color: transparent;
  box-shadow: none;
  color: inherit;
  outline: none;
  outline-style: none;
  outline-width: 0;
}

.genie-chat-composer textarea.form-control:hover,
.genie-chat-composer textarea.form-control:focus,
.genie-chat-composer textarea.genie-chat-input:hover,
.genie-chat-composer textarea.genie-chat-input:focus,
.genie-chat-composer textarea.genie-chat-input-compose:hover,
.genie-chat-composer textarea.genie-chat-input-compose:focus,
.genie-chat-composer textarea.genie-chat-input-compose:focus-visible {
  background: transparent;
  background-color: transparent;
  border-color: transparent;
  box-shadow: none;
  color: inherit;
  outline: none;
  outline-style: none;
  outline-width: 0;
}

.genie-chat-input-compose {
  -webkit-appearance: none;
  appearance: none;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: block;
  font-size: 12px;
  height: 24px;
  line-height: 18px;
  max-height: 140px;
  min-height: 24px;
  overflow: hidden;
  overflow-y: hidden;
  padding: 1rem 10.5rem 3rem 1rem;
  resize: none;
  outline: none !important;
  outline-color: transparent !important;
  outline-style: none !important;
  outline-width: 0 !important;
  width: 100%;
}

.genie-chat-input-compose:hover,
.genie-chat-input-compose:focus,
.genie-chat-input-compose:focus-visible {
  background: transparent !important;
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  outline-color: transparent !important;
  outline-style: none !important;
  outline-width: 0 !important;
}

.genie-chat-textarea {
  color: #ffffff;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 12px;
  height: 24px;
  line-height: 18px;
  max-height: 140px;
  min-height: 24px;
  padding: 1rem 10.5rem 3rem 1rem;
}

.genie-chat-textarea::placeholder,
.genie-chat-input-compose::placeholder {
  color: #8f919e;
  opacity: 0.4;
}

.genie-slash-dropdown {
  background: rgba(28, 31, 46, 0.98);
  bottom: calc(100% + 0.5rem);
  border: 1px solid rgba(54, 56, 71, 0.95);
  border-radius: 1rem;
  box-shadow:
    0 1rem 2.4rem rgba(7, 9, 18, 0.42),
    0 0 0 1px rgba(39, 191, 157, 0.08);
  left: 0;
  max-height: 22rem;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.35rem;
  position: absolute;
  right: 0;
  scrollbar-gutter: stable;
  z-index: 10;
}

.genie-slash-dropdown:empty {
  display: none;
}

.genie-suggest-agent-item {
  align-items: flex-start;
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  color: #e5e6ee;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-height: 4rem;
  padding: 0.7rem 0.85rem;
  text-align: left;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
  width: 100%;
}

.genie-suggest-agent-item + .genie-suggest-agent-item {
  margin-top: 0.25rem;
}

.genie-suggest-agent-item:hover,
.genie-suggest-agent-item:focus-visible {
  background: rgba(43, 47, 66, 0.92);
  border-color: rgba(74, 77, 94, 0.95);
  color: #ffffff;
  outline: none;
}

.genie-suggest-agent-item.active,
.genie-suggest-agent-item[aria-selected="true"] {
  background: rgba(39, 191, 157, 0.14);
  border-color: rgba(39, 191, 157, 0.65);
  box-shadow: 0 0 0 0.12rem rgba(39, 191, 157, 0.14);
  color: #ffffff;
}

.genie-suggest-agent-label {
  color: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
}

.genie-suggest-agent-description {
  color: #aeb2c3;
  display: -webkit-box;
  font-size: 0.82rem;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.genie-suggest-agent-item.active .genie-suggest-agent-description,
.genie-suggest-agent-item:hover .genie-suggest-agent-description,
.genie-suggest-agent-item:focus-visible .genie-suggest-agent-description {
  color: #d6d9e5;
}

.genie-chat-utility-btn,
.genie-send-btn,
.genie-pause-btn,
.genie-stop-btn {
  align-items: center;
  background: #202233;
  border: 1px solid #363847;
  border-radius: 0.5rem;
  color: #8f919e;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  padding: 0;
  position: absolute;
  width: 32px;
}

.genie-chat-utility-btn {
  text-decoration: none;
}

.genie-chat-utility-btn:hover {
  border-color: #4a4d5e;
}

.genie-chat-history-btn {
  bottom: 0.75rem;
  left: 1rem;
}

.genie-chat-share-btn {
  bottom: 0.75rem;
  left: 3.5rem;
}

.genie-chat-share-btn[data-session-shared="true"] {
  background: rgba(39, 191, 157, 0.12);
  border-color: rgba(39, 191, 157, 0.55);
  color: #7ae7cf;
}

.genie-chat-share-btn[data-session-shared="true"]:hover {
  border-color: rgba(39, 191, 157, 0.7);
  color: #8ef0da;
}

.genie-chat-share-btn svg {
  height: 15px;
  width: 15px;
}

.genie-chat-plus-menu {
  bottom: 0.75rem;
  position: absolute;
  right: 8.5rem;
  z-index: 2;
}

.genie-chat-plus-btn {
  color: #ffffff;
  position: static;
}

.genie-chat-history-btn svg {
  height: 15px;
  width: 15px;
}

.genie-chat-plus-menu .dropdown-menu {
  transform: none;
}

.genie-chat-plus-btn svg {
  height: 16px;
  width: 16px;
}

.genie-send-btn svg {
  height: 14px;
  width: 14px;
}

.genie-pause-btn svg {
  height: 14px;
  width: 14px;
}

.genie-stop-btn svg {
  height: 14px;
  width: 14px;
}

.genie-chat-composer .genie-send-btn {
  bottom: 0.75rem;
  right: 6rem;
}

.genie-chat-composer .genie-pause-btn {
  bottom: 0.75rem;
  right: 3.5rem;
}

.genie-chat-composer .genie-stop-btn {
  bottom: 0.75rem;
  right: 1rem;
}

.genie-send-btn[aria-disabled="false"],
.genie-pause-btn[aria-disabled="false"],
.genie-stop-btn[aria-disabled="false"] {
  background: rgba(255, 255, 255, 0.1);
  border-color: #363847;
  color: #ffffff;
}

.genie-send-btn[aria-disabled="false"]:hover,
.genie-pause-btn[aria-disabled="false"]:hover,
.genie-stop-btn[aria-disabled="false"]:hover {
  border-color: #4a4d5e;
}

.genie-send-btn[aria-disabled="true"],
.genie-send-btn:disabled,
.genie-send-btn.is-disabled,
.genie-pause-btn[aria-disabled="true"],
.genie-pause-btn:disabled,
.genie-pause-btn.is-disabled,
.genie-stop-btn[aria-disabled="true"],
.genie-stop-btn:disabled,
.genie-stop-btn.is-disabled,
.genie-chat-utility-btn:disabled {
  background: #202233;
  color: #8f919e;
  cursor: default;
  opacity: 0.5;
}

.genie-chat-plus-btn:disabled {
  color: #ffffff;
}

.genie-preview-menu {
  background: #2b2f42;
  border: 1px solid rgba(166, 169, 183, 0.2);
  border-radius: 0.75rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.35);
  margin-bottom: 0.5rem;
  min-width: 180px;
  padding: 0.25rem;
}

.genie-preview-menu-item {
  align-items: center;
  border-radius: 0.5rem;
  color: #e5e6ee;
  display: flex;
  font-size: 14px;
  gap: 0.75rem;
  line-height: 21px;
  padding: 0.625rem 0.875rem;
}

.genie-preview-menu-item:hover,
.genie-preview-menu-item:focus,
.genie-preview-menu-item:active {
  background: #1c1f2e;
  color: #e5e6ee;
}

.genie-preview-menu-icon {
  color: #8f919e;
  display: inline-flex;
  flex-shrink: 0;
}

.genie-preview-menu-icon svg {
  height: 16px;
  width: 16px;
}

.genie-preview-modal-dialog {
  max-width: 480px;
}

.genie-preview-modal {
  background: #202233;
  border: 0;
  border-radius: 0.75rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.45);
  color: #e5e6ee;
}

.genie-preview-modal-header {
  align-items: center;
  border-bottom: 1px solid rgba(166, 169, 183, 0.12);
  display: flex;
  justify-content: space-between;
  padding: 1rem;
}

.genie-preview-modal-title-wrap {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.genie-preview-modal-icon {
  color: #ffffff;
  display: inline-flex;
}

.genie-preview-modal-icon svg {
  height: 20px;
  width: 20px;
}

.genie-preview-modal-title {
  color: #ffffff;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
  margin: 0;
}

.genie-preview-close-btn {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0.5rem;
  color: #a1a1aa;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  padding: 0;
  width: 28px;
}

.genie-preview-close-btn:hover,
.genie-preview-close-btn:focus {
  background: #131524;
  color: #e5e6ee;
}

.genie-preview-close-btn svg {
  height: 20px;
  width: 20px;
}

.genie-preview-modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.25rem;
}

.genie-preview-toggle-row {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.genie-preview-toggle-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
}

.genie-preview-copy {
  color: #8f919e;
  font-size: 10px;
  line-height: 15px;
  margin: 0.25rem 0 0;
}

.genie-preview-switch {
  background: #6b7280;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  flex-shrink: 0;
  height: 28px;
  padding: 0;
  position: relative;
  transition: background-color 0.2s ease;
  width: 48px;
}

.genie-preview-switch.is-active {
  background: #22c55e;
}

.genie-preview-switch-knob {
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  height: 20px;
  left: 3px;
  position: absolute;
  top: 3px;
  transition: transform 0.2s ease;
  width: 20px;
}

.genie-preview-switch.is-active .genie-preview-switch-knob {
  transform: translateX(20px);
}

.genie-preview-dependent {
  display: none;
}

.genie-preview-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.genie-preview-section-label {
  color: #8f919e;
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 15px;
  text-transform: uppercase;
}

.genie-preview-mode-shell {
  background: #131524;
  border-radius: 0.5rem;
  display: flex;
  gap: 0.5rem;
  padding: 0.25rem;
}

.genie-preview-mode-btn {
  background: transparent;
  border: 0;
  border-radius: 0.375rem;
  color: #a1a1aa;
  flex: 1 1 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  padding: 0.5rem 0.875rem;
}

.genie-preview-mode-btn.is-active {
  background: #202233;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
  color: #ffffff;
}

.genie-preview-select-toggle {
  align-items: center;
  background: #131524;
  border: 1px solid rgba(166, 169, 183, 0.2);
  border-radius: 0.5rem;
  color: #e5e6ee;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  line-height: 18px;
  padding: 0.625rem 0.75rem;
  width: 100%;
}

.genie-preview-select-toggle:hover,
.genie-preview-select-toggle:focus {
  border-color: #27bf9d;
}

.genie-preview-select-chevron {
  color: #8f919e;
  display: inline-flex;
  flex-shrink: 0;
}

.genie-preview-select-chevron svg {
  height: 16px;
  width: 16px;
}

.genie-preview-select-menu {
  background: #131524;
  border: 1px solid rgba(166, 169, 183, 0.2);
  border-radius: 0.5rem;
  margin-top: 0.25rem;
  padding: 0.25rem;
  width: 100%;
}

.genie-preview-select-item {
  border-radius: 0.375rem;
  color: #a1a1aa;
  font-size: 12px;
  line-height: 18px;
  padding: 0.5rem 0.75rem;
}

.genie-preview-select-item:hover,
.genie-preview-select-item:focus,
.genie-preview-select-item:active,
.genie-preview-select-item.is-selected {
  background: #1c1f2e;
  color: #ffffff;
}

.genie-preview-agent-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 200px;
  overflow-y: auto;
}

.genie-preview-agent-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0.5rem;
  color: #ffffff;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  line-height: 18px;
  padding: 0.625rem 0.75rem;
  width: 100%;
}

.genie-preview-agent-item:hover,
.genie-preview-agent-item:focus {
  background: #131524;
}

.genie-preview-agent-check {
  align-items: center;
  border: 1px solid rgba(166, 169, 183, 0.3);
  border-radius: 0.375rem;
  color: #ffffff;
  display: inline-flex;
  height: 20px;
  justify-content: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  width: 20px;
}

.genie-preview-agent-check svg {
  height: 12px;
  opacity: 0;
  transition: opacity 0.15s ease;
  width: 12px;
}

.genie-preview-agent-item.is-selected .genie-preview-agent-check {
  background: #27bf9d;
  border-color: #27bf9d;
}

.genie-preview-agent-item.is-selected .genie-preview-agent-check svg {
  opacity: 1;
}

.genie-preview-modal-footer {
  border-top: 1px solid rgba(166, 169, 183, 0.12);
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
}

.genie-preview-footer-btn {
  border-radius: 0.5rem;
  flex: 1 1 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  padding: 0.625rem 1rem;
}

.genie-preview-reset-btn {
  background: transparent;
  border: 1px solid rgba(166, 169, 183, 0.2);
  color: #a1a1aa;
}

.genie-preview-reset-btn:hover,
.genie-preview-reset-btn:focus {
  background: #131524;
  color: #e5e6ee;
}

.genie-preview-apply-btn {
  background: #27bf9d;
  border: 1px solid #27bf9d;
  color: #ffffff;
}

.genie-preview-apply-btn:hover,
.genie-preview-apply-btn:focus {
  opacity: 0.9;
}

.genie-preview-apply-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

body.genie-feedback-modal-open .modal-backdrop.show {
  background: #131524;
  opacity: 0.8;
}

.genie-feedback-modal-dialog {
  max-width: 466px;
}

[data-bs-theme="genie"] .modal-content.genie-feedback-modal {
  background: #2b2f42;
  background-color: #2b2f42;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  color: #e5e6ee;
}

.genie-feedback-form {
  display: flex;
  flex-direction: column;
}

.genie-feedback-modal-header {
  align-items: center;
  border: 0;
  display: flex;
  justify-content: space-between;
  padding: 16px;
}

.genie-feedback-modal-title {
  color: #e5e6ee;
  font-family: "Barlow", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  margin: 0;
}

.genie-feedback-close-btn {
  align-items: center;
  background: transparent;
  border: 0;
  color: #e5e6ee;
  display: inline-flex;
  height: 18px;
  justify-content: center;
  padding: 0;
  width: 18px;
}

.genie-feedback-close-btn svg {
  height: 18px;
  width: 18px;
}

.genie-feedback-close-btn:hover,
.genie-feedback-close-btn:focus {
  opacity: 0.85;
  outline: none;
}

.genie-feedback-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px 16px;
}

.genie-feedback-options {
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.genie-feedback-option {
  align-items: center;
  color: #e5e6ee;
  cursor: pointer;
  display: flex;
  gap: 8px;
  min-height: 28px;
  position: relative;
}

.genie-feedback-option input {
  height: 18px;
  left: 0;
  margin: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  width: 18px;
}

.genie-feedback-radio {
  align-items: center;
  border: 1.5px solid #e5e6ee;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.genie-feedback-radio-dot {
  background: #27bf9d;
  border-radius: 999px;
  height: 10px;
  opacity: 0;
  width: 10px;
}

.genie-feedback-option input:checked + .genie-feedback-radio .genie-feedback-radio-dot {
  opacity: 1;
}

.genie-feedback-option-copy {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 12px;
  line-height: 18px;
}

.genie-feedback-custom-wrap {
  padding-top: 4px;
}

.genie-feedback-custom-input {
  background: #131524;
  border: 1px solid rgba(166, 169, 183, 0.3);
  border-radius: 4px;
  box-shadow: none;
  color: #ffffff;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 14px;
  line-height: 21px;
  min-height: 103px;
  outline: none;
  padding: 12px 10px;
  resize: none;
  width: 100%;
}

.genie-feedback-custom-input::placeholder {
  color: rgba(229, 230, 238, 0.5);
}

.genie-feedback-custom-input:focus {
  border-color: #27bf9d;
  box-shadow: none;
  outline: none;
}

.genie-feedback-modal-footer {
  border: 0;
  display: flex;
  justify-content: flex-end;
  padding: 0 16px 16px;
}

.genie-feedback-submit-btn {
  align-items: center;
  background: #27bf9d;
  border: 0;
  border-radius: 4px;
  color: #131524;
  display: inline-flex;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  height: 44px;
  justify-content: center;
  min-width: 85px;
  padding: 0 16px;
}

.genie-feedback-submit-btn:hover,
.genie-feedback-submit-btn:focus {
  filter: brightness(0.95);
  outline: none;
}

.genie-feedback-submit-btn:disabled {
  cursor: not-allowed;
  filter: none;
  opacity: 0.6;
}

body.genie-delete-modal-open .modal-backdrop.show {
  background: #131524;
  opacity: 0.8;
}

body.genie-rename-modal-open .modal-backdrop.show {
  background: #131524;
  opacity: 0.8;
}

body.genie-share-modal-open .modal-backdrop.show {
  background: #131524;
  opacity: 0.8;
}

.genie-rename-modal-dialog {
  max-width: 540px;
}

[data-bs-theme="genie"] .modal-content.genie-rename-modal {
  background: #2b2f42;
  background-color: #2b2f42;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  color: #e5e6ee;
}

.genie-rename-form {
  display: flex;
  flex-direction: column;
}

.genie-rename-modal-header {
  align-items: center;
  border: 0;
  display: flex;
  justify-content: space-between;
  padding: 16px 20px 0;
}

.genie-rename-modal-title {
  color: #e5e6ee;
  font-family: "Barlow", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  margin: 0;
}

.genie-rename-modal-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px 0;
}

.genie-rename-modal-label {
  color: #8f919e;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 12px;
  line-height: 18px;
}

.genie-rename-modal-input {
  background: #131524;
  border: 1px solid rgba(166, 169, 183, 0.3);
  border-radius: 8px;
  box-shadow: none;
  color: #ffffff;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 14px;
  height: 44px;
  line-height: 21px;
  outline: none;
  padding: 0 12px;
  width: 100%;
}

.genie-rename-modal-input::placeholder {
  color: rgba(229, 230, 238, 0.5);
}

.genie-rename-modal-input:focus {
  border-color: #27bf9d;
  box-shadow: none;
  outline: none;
}

.genie-rename-modal-footer {
  align-items: center;
  border: 0;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  padding: 28px 20px 20px;
}

.genie-rename-confirm-btn {
  background: #27bf9d;
  color: #242530;
}

.genie-rename-confirm-btn:hover,
.genie-rename-confirm-btn:focus {
  background: #20ac8d;
  color: #242530;
}

.genie-delete-modal-dialog {
  max-width: 540px;
}

[data-bs-theme="genie"] .modal-content.genie-delete-modal {
  background: #2b2f42;
  background-color: #2b2f42;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  color: #e5e6ee;
  padding: 20px;
}

.genie-delete-modal-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.genie-delete-copy-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.genie-delete-modal-title {
  color: #e5e6ee;
  font-family: "Barlow", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  margin: 0;
}

.genie-delete-modal-copy {
  color: #8f919e;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 12px;
  line-height: 18px;
  margin: 0;
}

.genie-delete-modal-copy p {
  margin: 0;
}

.genie-delete-modal-actions {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

.genie-delete-modal-btn {
  align-items: center;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  height: 44px;
  justify-content: center;
  line-height: 24px;
  min-width: 80px;
  padding: 0 16px;
}

.genie-delete-cancel-btn {
  background: #e5e6ee;
  color: #242530;
}

.genie-delete-cancel-btn:hover,
.genie-delete-cancel-btn:focus {
  background: #d6d7e0;
  color: #242530;
}

.genie-delete-confirm-btn {
  background: #a00d32;
  color: #ffffff;
}

.genie-delete-confirm-btn:hover,
.genie-delete-confirm-btn:focus {
  background: #8f0c2d;
  color: #ffffff;
}

.genie-disclaimer {
  color: rgba(255, 255, 255, 0.4);
  font-family: "Barlow", sans-serif;
  font-size: 10px;
  line-height: 15px;
  margin: 1rem 0 0;
  text-align: center;
}

/* Active chat message stream */
.genie-chat-container {
  position: relative;
}

.genie-messages {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  padding: 0 1rem 1rem;
}

.genie-message-row {
  display: flex;
  flex: 0 0 auto;
  width: 90%;
}

.genie-message-row-user {
  justify-content: flex-end;
}

.genie-message-row-agent {
  justify-content: flex-start;
}

.genie-message-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.genie-message-column-user {
  align-items: flex-end;
}

.genie-message-column-agent {
  align-items: stretch;
}

.genie-message-sender {
  color: #8f919e;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
}

.genie-message-sender-user {
  align-self: flex-end;
  max-width: 80%;
  padding: 0 0.25rem;
}

.genie-message-user,
.genie-message-agent {
  color: #e5e6ee;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.genie-message-user {
  background: #131524;
  border-radius: 12px;
  margin-left: auto;
  max-width: 80%;
  padding: 16px;
}

.genie-message-agent {
  padding: 0;
  width: 100%;
}

.genie-message-thinking {
  background: #1c1f2e;
  border: 1px solid #2b2f42;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
}

.genie-message-thinking-header {
  align-items: center;
  border-bottom: 1px solid #2b2f42;
  color: #e5e6ee;
  display: flex;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
}

.genie-message-thinking-icon {
  display: block;
  flex: 0 0 auto;
}

.genie-message-thinking-title {
  color: #e5e6ee;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  line-height: 21px;
}

.genie-message-thinking-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0.75rem 0;
}

.genie-message-thinking-step {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  padding: 0 0.75rem;
}

.genie-message-thinking-step-indicator {
  align-items: center;
  background: #2b2f42;
  border: 1px solid #202233;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 12px;
  justify-content: center;
  width: 12px;
}

.genie-message-thinking-spinner {
  animation: genie-message-thinking-spin 1s linear infinite;
  border: 1px solid #e5e6ee;
  border-radius: 999px;
  border-top-color: transparent;
  display: block;
  height: 8px;
  width: 8px;
}

.genie-message-thinking-step-text {
  color: #e5e6ee;
  font-family: "Barlow", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

.genie-message-markdown,
.genie-message-plain {
  color: inherit;
  overflow-wrap: break-word;
  word-break: normal;
}

.genie-message-plain {
  white-space: pre-wrap;
}

.genie-message-markdown p,
.genie-message-markdown ul,
.genie-message-markdown ol,
.genie-message-markdown pre,
.genie-message-markdown table {
  margin: 0 0 0.75rem;
}

.genie-message-markdown p:last-child,
.genie-message-markdown ul:last-child,
.genie-message-markdown ol:last-child,
.genie-message-markdown pre:last-child,
.genie-message-markdown table:last-child {
  margin-bottom: 0;
}

.genie-message-markdown ul,
.genie-message-markdown ol {
  padding-left: 1.25rem;
}

.genie-message-markdown h1,
.genie-message-markdown h2 {
  line-height: 1.35;
  margin: 0 0 0.75rem;
}

.genie-message-markdown h1 {
  font-size: 1.5rem;
}

.genie-message-markdown h2 {
  font-size: 1.25rem;
}

.genie-message-markdown pre {
  background-color: var(--bs-tertiary-bg);
  border-radius: 8px;
  font-size: 0.8rem;
  overflow-x: auto;
  padding: 12px 16px;
}

.genie-message-markdown pre code {
  background-color: transparent;
  border-radius: 0;
  color: #e5e6ee;
  font-size: inherit;
  padding: 0;
}

.genie-message-markdown table {
  border-collapse: collapse;
  width: 100%;
}

.genie-message-markdown th,
.genie-message-markdown td {
  border: 1px solid rgba(166, 169, 183, 0.28);
  overflow-wrap: anywhere;
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.genie-message-markdown thead th {
  background: rgba(255, 255, 255, 0.06);
  font-weight: 600;
}

.genie-message-markdown tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.genie-message-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-start;
  width: 100%;
}

.genie-message-action-btn {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  color: #e5e6ee;
  display: inline-flex;
  height: 24px;
  justify-content: center;
  margin: 0;
  min-width: 24px;
  padding: 4px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.genie-message-action-btn:hover,
.genie-message-action-btn:focus,
.genie-message-action-btn:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  outline: none;
}

.genie-message-action-btn svg {
  display: block;
  height: 16px;
  width: 16px;
}

.genie-message-copy-btn {
  border: 1px solid transparent;
}

.genie-message-copy-btn.is-copied {
  border-color: rgba(255, 255, 255, 0.8);
}

.genie-copy-icon {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.genie-copy-icon-success {
  display: none;
}

.genie-message-copy-btn.is-copied .genie-copy-icon-default {
  display: none;
}

.genie-message-copy-btn.is-copied .genie-copy-icon-success {
  display: inline-flex;
}

.genie-scroll-btn {
  align-items: center;
  background: #2b2f42;
  border: 0;
  border-radius: 999px;
  bottom: 8.5rem;
  color: #ffffff;
  display: none;
  justify-content: center;
  left: 50%;
  padding: 0.75rem;
  position: absolute;
  transform: translateX(-50%);
  transition: filter 0.15s ease, opacity 0.2s ease;
  z-index: 10;
}

.genie-scroll-btn:hover,
.genie-scroll-btn:focus,
.genie-scroll-btn:focus-visible {
  filter: brightness(1.25);
  outline: none;
}

.genie-scroll-btn svg {
  display: block;
  height: 15px;
  width: 15px;
}

.genie-scroll-btn.visible {
  display: inline-flex;
}

@keyframes genie-message-thinking-spin {
  to {
    transform: rotate(360deg);
  }
}

/* History page */
.genie-history-page {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.genie-history-content {
  align-items: center;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  margin: 0 auto;
  max-width: none;
  min-height: 0;
  overflow: hidden;
  padding: 1.5rem 1rem 1.5rem;
  width: 100%;
}

.genie-history-title-block {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 1rem;
  margin-bottom: 1.5rem;
  max-width: 650px;
  width: 100%;
}

.genie-history-title {
  color: #ffffff;
  font-family: "Barlow", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  margin: 0;
}

.genie-history-summary {
  color: rgba(255, 255, 255, 0.45);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  margin: 0;
}

.genie-history-search-form {
  flex-shrink: 0;
  margin: 0 0 1.5rem;
  max-width: 650px;
  width: 100%;
}

.genie-history-search-field {
  position: relative;
}

[data-bs-theme="genie"] .genie-history-search-input {
  background: #1c1f2e;
  border: 1px solid #4a4d5e;
  border-radius: 0.5rem;
  color: #ffffff;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 12px;
  height: 40px;
  line-height: 18px;
  padding: 0.625rem 2.75rem 0.625rem 1rem;
  transition: none;
}

[data-bs-theme="genie"] .genie-history-search-input:hover,
[data-bs-theme="genie"] .genie-history-search-input:focus {
  background: #1c1f2e;
  border-color: #4a4d5e;
  box-shadow: none;
  color: #ffffff;
}

.genie-history-search-input::placeholder {
  color: #90929e;
  font-style: italic;
  opacity: 0.4;
}

.genie-history-search-input::-webkit-search-cancel-button,
.genie-history-search-input::-webkit-search-decoration,
.genie-history-search-input::-webkit-search-results-button,
.genie-history-search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.genie-history-search-icon {
  color: rgba(255, 255, 255, 0.4);
  display: inline-flex;
  pointer-events: none;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.genie-history-search-icon svg {
  height: 18px;
  width: 18px;
}

.genie-history-search-clear {
  background: transparent;
  border: 0;
  display: none;
  line-height: 0;
  padding: 0;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.genie-history-search-clear:hover,
.genie-history-search-clear:focus {
  outline: none;
}

.genie-history-search-clear svg {
  display: block;
  height: 18px;
  width: 18px;
}

.genie-history-search-field.has-value .genie-history-search-icon {
  display: none;
}

.genie-history-search-field.has-value .genie-history-search-clear {
  display: inline-flex;
}

.genie-history-session-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0;
  max-width: 650px;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 1.5rem;
  width: 100%;
}

.genie-history-empty-state {
  align-items: center;
  background: #1c1f2e;
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.42);
  display: flex;
  font-family: "Barlow", sans-serif;
  font-size: 12px;
  font-weight: 500;
  gap: 10px;
  justify-content: center;
  line-height: 18px;
  min-height: 60px;
  padding: 0 1.5rem;
  width: 100%;
}

.modal-title {
  font-family: "Barlow", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.genie-history-empty-icon {
  display: inline-flex;
}

.genie-history-empty-icon svg {
  height: 17px;
  width: 17px;
}

.genie-session-card {
  align-items: flex-start;
  background: transparent;
  border: 1px solid rgba(166, 169, 183, 0.6);
  border-radius: 0.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0;
  padding: 1rem;
  transition: background-color 0.2s ease;
}

.genie-session-card:hover {
  background: #1c1f2e;
}

.genie-session-card-link {
  color: inherit;
  flex: 1 1 auto;
  min-width: 0;
  text-decoration: none;
}

.genie-session-card-link:hover {
  color: inherit;
}

.genie-session-card-actions {
  align-items: flex-end;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 0.5rem;
}

.genie-session-shared-badge {
  background: rgba(39, 191, 157, 0.12);
  border: 1px solid rgba(39, 191, 157, 0.55);
  border-radius: 999px;
  color: #7ae7cf;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0.25rem 0.5rem;
}

.genie-session-menu {
  flex-shrink: 0;
}

.genie-session-menu-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: #8f919e;
  display: inline-flex;
  height: 22px;
  justify-content: center;
  padding: 0;
  width: 22px;
}

.genie-session-menu-toggle:hover,
.genie-session-menu-toggle:focus {
  color: #8f919e;
  outline: none;
}

.genie-session-menu-toggle::after {
  display: none;
}

.genie-session-menu-toggle svg {
  display: block;
  height: 22px;
  width: 22px;
}

.genie-session-menu-list {
  background: #1c1f2e;
  border: 1px solid #2b2f42;
  border-radius: 0.5rem;
  margin-top: 4px;
  min-width: 150px;
  padding: 5px;
}

.genie-session-menu-item {
  align-items: center;
  border-radius: 3px;
  color: #ffffff;
  display: flex;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 22px;
  min-height: 25px;
  padding: 0 10px;
  white-space: nowrap;
}

.genie-session-menu-item:hover,
.genie-session-menu-item:focus,
.genie-session-menu-item:active,
.genie-session-menu-item.active,
.genie-session-menu-item:focus-visible {
  background: #2b2f42;
  color: #ffffff;
  outline: none;
}

.genie-share-modal-dialog {
  max-width: 540px;
}

[data-bs-theme="genie"] .modal-content.genie-share-modal {
  background: #2b2f42;
  background-color: #2b2f42;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  color: #e5e6ee;
}

.genie-share-modal-header {
  align-items: center;
  border: 0;
  display: flex;
  justify-content: space-between;
  padding: 16px 20px 0;
}

.genie-share-modal-title {
  color: #e5e6ee;
  font-family: "Barlow", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  margin: 0;
}

.genie-share-form {
  display: flex;
  flex-direction: column;
}

.genie-share-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px 0;
}

.genie-share-toggle-row {
  margin-bottom: 0.25rem;
}

.genie-share-modal-label {
  color: #8f919e;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 12px;
  line-height: 18px;
}

.genie-share-link-group {
  background: #1c1f2e;
  border: 1px solid #4a4d5e;
  border-radius: 0.75rem;
  overflow: hidden;
}

[data-bs-theme="genie"] .genie-share-link-input {
  background: #1c1f2e;
  background-color: #1c1f2e;
  border: 0;
  box-shadow: none;
  color: #ffffff;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 12px;
  height: 44px;
  line-height: 18px;
  padding: 0 12px;
}

[data-bs-theme="genie"] .genie-share-link-input:hover,
[data-bs-theme="genie"] .genie-share-link-input:focus,
[data-bs-theme="genie"] .genie-share-link-input:focus-visible,
[data-bs-theme="genie"] .genie-share-link-input:disabled {
  background: #1c1f2e;
  background-color: #1c1f2e;
  border: 0;
  box-shadow: none;
  color: #ffffff;
}

[data-bs-theme="genie"] .genie-share-link-input:disabled {
  color: rgba(255, 255, 255, 0.45);
  cursor: default;
  opacity: 1;
}

[data-bs-theme="genie"] .genie-share-link-input[readonly] {
  cursor: text;
}

.genie-share-link-group .btn {
  background: transparent;
  border: 0;
  border-left: 1px solid #4a4d5e;
  border-radius: 0;
  color: #ffffff;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 12px;
  line-height: 18px;
  padding: 0 16px;
}

.genie-share-link-group .btn:hover,
.genie-share-link-group .btn:focus,
.genie-share-link-group .btn:focus-visible {
  background: #24283b;
  box-shadow: none;
  color: #ffffff;
}

.genie-share-link-group .btn:disabled {
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  cursor: default;
  opacity: 1;
}

.genie-share-modal-footer {
  align-items: center;
  border: 0;
  display: flex;
  justify-content: flex-end;
  padding: 28px 20px 20px;
}

.genie-session-card-title {
  color: #ffffff;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  margin: 0;
}

.genie-session-card-meta {
  color: rgba(255, 255, 255, 0.45);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  margin-top: 0.25rem;
}

@media (max-width: 767.98px) {
  .genie-header {
    padding: 1rem;
  }

  .genie-wordmark-header {
    width: 65px;
  }

  .genie-wordmark-hero {
    height: 32px;
    width: 100px;
  }

  .genie-new-session-btn {
    gap: 0.25rem;
    padding: 0 1rem;
  }

  .genie-centered-chat-page {
    padding: 0 1rem;
  }

  .genie-page-container {
    height: var(--genie-app-viewport-height);
    overflow: hidden;
  }

  .genie-chat-textarea,
  .genie-chat-input-compose {
    font-size: 11px;
    padding: 0.75rem 10rem 2.5rem 0.75rem;
  }

  .genie-chat-history-btn {
    left: 0.5rem;
  }

  .genie-chat-share-btn {
    left: 3rem;
  }

  .genie-chat-plus-menu {
    right: 7.625rem;
  }

  .genie-chat-composer .genie-send-btn {
    right: 5.25rem;
  }

  .genie-chat-composer .genie-pause-btn {
    right: 2.875rem;
  }

  .genie-chat-composer .genie-stop-btn {
    right: 0.5rem;
  }

  .genie-history-content {
    padding: 1.5rem 1rem 1.5rem;
  }

  .genie-history-title-block,
  .genie-history-search-form,
  .genie-history-session-list {
    max-width: 100%;
  }
}

@media (min-width: 768px) {
  .genie-centered-chat-input {
    max-width: 54rem;
    min-width: 500px;
    width: 60%;
  }

  .genie-messages {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .genie-chat-input-docked {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .genie-message-row {
    min-width: 500px;
    width: 60%;
  }

  .genie-centered-chat-title {
    font-size: 20px;
  }

  .genie-history-content {
    padding: 1.5rem 2rem 1.5rem;
  }
}

.genie-run-reasoning {
  background: rgba(19, 21, 36, 0.55);
  border: 1px solid #2b2f42;
  border-radius: 0.75rem;
  margin-top: 0.75rem;
  overflow: hidden;
}

.genie-run-reasoning-embedded {
  margin-top: 0;
}

.genie-run-reasoning-header {
  align-items: center;
  border-bottom: 1px solid #2b2f42;
  display: flex;
  gap: 0.5rem;
  padding: 0.9rem 0.95rem;
}

.genie-run-reasoning-header svg {
  color: var(--text-faq);
  flex: 0 0 auto;
}

.genie-run-reasoning-title {
  color: var(--text-faq);
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  line-height: 21px;
}

.genie-run-reasoning-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.9rem 0;
  position: relative;
}

.genie-run-reasoning-list::before {
  border-left: 1px dashed #2b2f42;
  bottom: 1.1rem;
  content: "";
  left: 1.3rem;
  position: absolute;
  top: 1.1rem;
}

.genie-run-reasoning-list-single::before {
  display: none;
}

.genie-run-reasoning-item {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  padding: 0 0.95rem;
  position: relative;
}

.genie-run-reasoning-indicator {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: #2b2f42;
  border: 1px solid #202233;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 12px;
  height: 12px;
  justify-content: center;
  position: relative;
  width: 12px;
  z-index: 1;
}

.genie-run-reasoning-indicator-complete {
  color: #4ade80;
}

.genie-run-reasoning-indicator-progress {
  color: var(--text-faq);
}

.genie-run-reasoning-check {
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.genie-run-reasoning-spinner {
  animation: genie-spin 0.8s linear infinite;
  border: 1px solid currentColor;
  border-radius: 999px;
  border-top-color: transparent;
  display: inline-flex;
  height: 8px;
  width: 8px;
}

.genie-run-reasoning-text {
  color: var(--text-faq);
  font-family: "Barlow", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

.genie-run-reasoning-more {
  border-top: 1px solid #2b2f42;
  color: var(--outline-text-tertiary);
  font-size: 12px;
  line-height: 18px;
  padding: 0.55rem 0.95rem;
}

.genie-api-docs-page section[id],
.genie-api-docs-page article[id] {
  scroll-margin-top: 1.5rem;
}

.genie-api-docs-page .card.shadow-sm {
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.22) !important;
}

.genie-api-docs-sticky {
  top: 1.5rem;
}

.genie-api-docs-nav {
  min-height: 0;
  min-width: 0;
}

.genie-api-docs-nav .nav-link {
  border-radius: 0.9rem;
  color: #e5e6ee;
  line-height: 1.35;
  padding: 0.45rem 0.7rem;
}

.genie-api-docs-nav .nav-link:hover,
.genie-api-docs-nav .nav-link:focus-visible {
  background: #131524;
  color: #ffffff;
}

.genie-api-docs-nav .nav-link.active {
  background: #131524;
  color: #ffffff;
}

.genie-api-docs-hero {
  background:
    linear-gradient(135deg, rgba(28, 31, 46, 0.98), rgba(19, 21, 36, 0.98));
}

.genie-api-docs-hero-card {
  background: rgba(19, 21, 36, 0.92);
  border-color: rgba(54, 56, 71, 0.95) !important;
}

.genie-api-docs-method {
  letter-spacing: 0.08em;
}

.genie-api-docs-path {
  background: #131524;
  border: 1px solid rgba(54, 56, 71, 0.95);
  border-radius: 999px;
  color: #e5e6ee;
  overflow-wrap: anywhere;
  padding: 0.45rem 0.8rem;
}

.genie-api-docs-operation-card {
  overflow: hidden;
}

.genie-api-docs-meta-card {
  background: #131524;
  border-color: rgba(54, 56, 71, 0.95) !important;
}

.genie-api-docs-page .text-body-secondary {
  color: rgba(229, 230, 238, 0.7) !important;
}

.genie-api-docs-page code {
  color: #7be0c5;
}

.genie-api-docs-panel .card-header {
  border-bottom-color: var(--bs-border-color);
}

.genie-api-docs-pre {
  background: #131524;
  border: 1px solid #2b2f42;
  border-radius: 0.85rem;
  color: #edf2ff;
  font-size: 0.8125rem;
  line-height: 1.65;
  margin: 0;
  max-height: 420px;
  overflow: auto;
  padding: 1rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.genie-api-docs-pre code {
  color: inherit;
}

.genie-api-docs-callout {
  background: #131524;
}

.genie-api-docs-callout-next {
  background: rgba(39, 191, 157, 0.12);
  border-color: rgba(39, 191, 157, 0.35) !important;
}

@media (min-width: 1200px) {
  .genie-api-docs-sticky {
    max-height: calc(100vh - 3rem);
    overflow: hidden;
  }

  .genie-api-docs-sticky .card-body {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 3rem);
    max-height: calc(100vh - 3rem);
    min-height: 0;
  }

  .genie-api-docs-nav {
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0.25rem;
  }
}

@media (max-width: 1199.98px) {
  .genie-api-docs-sticky {
    position: static !important;
  }
}
