/* Default hidden: author `display` must not override the HTML `hidden` attribute. */
.scroll-chat-to-bottom-btn {
  position: absolute;
  left: 50%;
  bottom: calc(44px + 5.75rem + 5px);
  transform: translateX(-50%);
  z-index: 12;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #e2e2e2;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  color: #1f1f1f;
  pointer-events: none;
  transition:
    background 0.12s ease,
    transform 0.12s ease;
}

.scroll-chat-to-bottom-btn:not([hidden]) {
  display: flex;
  pointer-events: auto;
}

.scroll-chat-to-bottom-btn:not([hidden]):hover {
  background: #f6f6f6;
}

.scroll-chat-to-bottom-btn .material-symbols-rounded {
  font-size: 22px;
}

.scroll-chat-to-bottom-icon {
  display: inline-flex;
}

.scroll-chat-to-bottom-loader {
  box-sizing: border-box;
  display: none;
  width: 22px;
  height: 22px;
  border: 1.7px solid #111111;
  border-radius: 5px;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  transform-origin: 50% 50%;
  animation: zexiraiThinkingSquareSpinPulse 0.9s linear infinite;
  will-change: transform;
}

.scroll-chat-to-bottom-btn.is-responding .scroll-chat-to-bottom-icon {
  display: none !important;
}

.scroll-chat-to-bottom-btn.is-responding .scroll-chat-to-bottom-loader {
  display: inline-block !important;
}

.user-bubble {
  background: #f3f4f6;
  padding: 12px 20px;
  border-radius: 18px;
  max-width: 80%;
  min-width: 0;
  color: #111827;
  line-height: 1.5;
  border: none;
  margin-right: -10px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.user-bubble {
  margin-left: auto;
}

.ai-message {
  align-items: flex-start;
  width: 100%;
}

.ai-bubble {
  display: inline-block;
  width: auto;
  max-width: 85%;
  min-width: 0;
  padding: 0 20px 4px 20px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  line-height: 1.7;
  color: var(--text-high);
  background: transparent;
  border-radius: 18px;
}

.ai-bubble .stream-final {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.user-bubble-show-more {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.9em;
  font-weight: 520;
  color: #3f3f3f;
  cursor: pointer;
}

.user-bubble-show-more:hover {
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.user-bubble-show-more .material-symbols-rounded {
  font-size: 18px;
  line-height: 1;
}

.chat-generated-image {
  display: block;
  margin: 8px 0 6px;
  width: min(100%, 280px);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.chat-generated-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #eeeeee;
  border-radius: 12px;
  background: #ffffff;
  object-fit: contain;
}

.chat-image-fallback {
  display: none;
}

.chat-generated-image.image-load-failed {
  display: flex;
  min-height: 156px;
  border: 1px solid #eeeeee;
  background: #f7f7f7;
  color: #555555;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 510;
}

.chat-generated-image.image-load-failed .chat-image-fallback {
  display: inline-flex;
}

.code-block-container {
  background: #ffffff;
  border-radius: 10px;
  margin: 6px 0;
  overflow: hidden;
  border: 1px solid #dedede;
  box-shadow: none;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 10px;
  background: #ffffff;
  border-bottom: 1px solid #dedede;
}

.code-lang {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: #1f1f1f;
  text-transform: lowercase;
  font-weight: 510;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #ffffff;
  border: 1px solid #d8d8d8;
  color: #1f1f1f;
  cursor: pointer;
  border-radius: 999px;
  transition: 0.2s ease;
  box-shadow: none;
  padding: 0;
  gap: 0;
}

.copy-btn:hover {
  background: #ffffff;
  border-color: #b8b8b8;
}

.copy-btn .material-symbols-rounded {
  font-size: 18px;
  line-height: 1;
}

.code-content {
  padding: 6px 10px;
  margin: 0;
  overflow-x: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  color: #1f1f1f;
  white-space: pre;
  line-height: 1.5;
}

body:not(.composer-centered) .scroll-chat-to-bottom-btn {
  bottom: calc(5.75rem + 34px);
}

.input-region {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1400;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
  background: linear-gradient(to top, var(--bg-page) 82%, transparent);
  transition:
    padding 0.22s var(--ease),
    background 0.22s var(--ease);
}

/* Docked composer strip leaves room for the mistake notice once the chat is active. */
body:not(.composer-centered) .input-region {
  bottom: 8px;
}

body.composer-centered.chat-has-user-turn .input-region {
  transform: translateY(calc(-50% - 2px));
}

.composer {
  width: 100%;
  max-width: calc(800px + 6px);
  min-height: 62px;
  margin-top: -8.5px;
  background: #ffffff;
  border-radius: 999px;
  padding: 0;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid #e7e7e7 !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.038);
  outline: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* When a popup menu inside the composer is open (model picker, provider picker, tools menu),
   stop clipping so the menu can extend above/below the rounded pill. Without this, the menu
   gets scissored by the composer's `overflow: hidden` and looks hidden behind the chat box. */
.composer:has(.model-picker-menu.show),
.composer:has(.provider-picker-menu.show),
.composer:has(.tools-menu.show),
.composer:has(.composer-add-menu:not([hidden])),
.composer:has(.composer-add-submenu:not([hidden])) {
  overflow: visible;
}

.composer:has(.attachment-tray:not([hidden])) {
  border-radius: 24px;
}

.composer.composer-multiline {
  border-radius: 24px;
}

.composer-body {
  position: relative;
  flex: 1;
  min-height: 62px;
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.composer.composer-multiline .composer-body {
  min-height: 81.5px;
  align-items: flex-start;
  padding-top: 10px;
  padding-bottom: 10px;
}

.composer:focus-within {
  outline: none;
  border-color: #cfcfcf !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.048);
}

#userInput {
  width: 100%;
  height: 38px;
  min-height: 38px;
  max-height: 140px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-high);
  font-size: 1rem;
  line-height: 24px;
  padding: 8px 204px 8px 42px;
  resize: none;
  margin: 0;
  overflow-y: auto;
  box-sizing: border-box;
}

.composer.composer-multiline #userInput {
  min-height: 55.5px;
  padding-top: 8px;
  padding-bottom: 8px;
}

#userInput::placeholder {
  color: #9b9b9b;
}

.composer-toolbar {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 5;
}

.toolbar-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  z-index: 8;
}

.composer-right-actions {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.composer.composer-multiline .toolbar-left,
.composer.composer-multiline .composer-right-actions {
  top: 15px;
  transform: none;
}

.btn-action-plus {
  width: 34px;
  height: 34px;
  border-radius: 50% !important;
  background: transparent;
  border: none;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
  box-shadow: none;
  padding: 0;
}

.btn-action-plus .material-symbols-rounded {
  font-size: 24px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.btn-action-plus:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #000;
  transform: none;
}

.btn-action-plus:active,
.btn-action-plus:focus-visible,
.btn-action-plus.open {
  background: transparent;
  color: #111111;
  transform: none;
}

.btn-action-plus.open .material-symbols-rounded {
  transform: rotate(90deg);
}

.composer-add-menu-wrap {
  position: relative;
  display: inline-flex;
}

.composer-add-menu,
.composer-add-submenu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: 240px;
  min-width: 240px;
  max-width: 240px;
  padding: 7px 0;
  border: 1px solid #e3e3e3;
  border-radius: 20px;
  background: #FEFEFE;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.13),
    0 2px 9px rgba(0, 0, 0, 0.06);
  z-index: 2147483647;
  box-sizing: border-box;
  overflow: visible;
  transform-origin: bottom left;
  animation: composerMenuEnter 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.composer-add-menu[hidden],
.composer-add-submenu[hidden] {
  display: none !important;
}

.composer-add-submenu {
  left: calc(100% + 2px);
  bottom: auto;
  top: -8px;
  width: 240px;
  min-width: 240px;
  max-width: 240px;
  transform-origin: top left;
}

.composer-add-menu-item {
  appearance: none;
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #1f1f1f !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 13px;
  padding: 0 18px !important;
  margin: 0 !important;
  font-size: 1rem !important;
  font-weight: 420;
  line-height: 1 !important;
  text-align: left !important;
  white-space: nowrap !important;
  cursor: pointer;
  box-shadow: none !important;
  text-decoration: none !important;
  transform: none !important;
}

.composer-add-menu-item:hover,
.composer-add-menu-item.selected {
  background: #f3f3f3 !important;
}

.composer-add-menu-divider {
  height: 1px;
  margin: 7px 0;
  background: #e5e5e5;
}

.composer-add-menu-item .material-symbols-rounded {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  min-width: 19px;
  height: 19px;
  font-size: 19px !important;
  line-height: 1 !important;
  color: #505050;
  overflow: hidden;
  transform: none !important;
}

.composer-add-menu-item > span:not(.material-symbols-rounded):not(.composer-menu-arrow) {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-menu-arrow {
  margin-left: auto;
  color: #777777;
  flex: 0 0 auto;
  font-size: 21px;
  line-height: 1;
}

.composer-add-submenu-wrap {
  position: relative;
  display: block;
}

.composer-submenu-empty {
  padding: 12px 18px;
  color: #6f6f6f;
  font-size: 0.88rem;
  line-height: 1.25;
  white-space: nowrap;
}

@keyframes composerMenuEnter {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.composer-recent-item span:last-child,
.composer-personality-item span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-upload-input {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.attachment-tray {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px 16px 2px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  justify-content: flex-start;
}

.attachment-tray[hidden] {
  display: none !important;
}

.attachment-chip {
  box-sizing: border-box;
  color: #1f1f1f;
}

.attachment-chip-file {
  max-width: min(320px, 100%);
  min-height: 52px;
  border: 1px solid #e3e3e3;
  border-radius: 14px;
  background: #fafafa;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 10px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.attachment-chip-icon-file {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #1a73e8;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.attachment-chip-icon-file .material-symbols-rounded {
  font-size: 22px;
}

.attachment-chip-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.attachment-chip-file .attachment-name {
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.attachment-kind {
  font-size: 0.78rem;
  font-weight: 450;
  color: #6f6f6f;
  line-height: 1.2;
}

.attachment-chip-file.has-error .attachment-kind {
  color: #8b1d1d;
}

.attachment-chip-remove {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5f6368;
  cursor: pointer;
  flex-shrink: 0;
}

.attachment-chip-remove:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #111111;
}

.attachment-chip-remove .material-symbols-rounded {
  font-size: 18px;
}

.attachment-chip-image {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.attachment-image-frame {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 16px;
  overflow: visible;
  background: #eeeeee;
  border: 1px solid #e5e5e5;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.attachment-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  background: #eeeeee;
}

.attachment-image-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6f6f6f;
  background: linear-gradient(145deg, #f3f3f3, #e8e8e8);
}

.attachment-image-placeholder .material-symbols-rounded {
  font-size: 36px;
}

.attachment-image-dismiss {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #111111;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  z-index: 2;
}

.attachment-image-dismiss:hover {
  background: #000000;
  transform: scale(1.04);
}

.attachment-image-dismiss .material-symbols-rounded {
  font-size: 17px;
}

.attachment-image-caption {
  font-size: 0.78rem;
  color: #5f6368;
  max-width: 112px;
  line-height: 1.25;
}

.attachment-image-caption.has-error {
  color: #8b1d1d;
}

.attachment-chip-file.has-error {
  border-color: rgba(186, 26, 26, 0.35);
  background: #fff8f7;
}

.attachment-chip-image.has-error .attachment-image-frame {
  border-color: rgba(186, 26, 26, 0.35);
}

.attachment-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.composer-file-drag-active::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 12000;
  pointer-events: none;
  border: 2px dashed rgba(26, 115, 232, 0.45);
  background: rgba(26, 115, 232, 0.05);
  box-sizing: border-box;
}

.composer.composer-file-drag-over {
  border-color: #1a73e8 !important;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.18), 0 6px 20px rgba(0, 0, 0, 0.08);
}

.user-attachment-preview {
  width: min(340px, 88vw);
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}

.user-bubble-image-only {
  background: transparent;
  padding: 0;
  margin-right: 0;
  max-width: min(340px, 88vw);
}

.user-bubble-image-only .user-attachment-preview {
  margin-top: 0;
  width: auto;
  display: inline-grid;
  grid-template-columns: none;
}

.user-bubble-image-only .user-attachment-preview img {
  width: auto;
  max-width: min(340px, 72vw);
  max-height: 340px;
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
}

.user-attachment-preview img,
.user-attachment-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid #e7e7e7;
  background: #f3f3f3;
}

.user-attachment-placeholder {
  display: grid;
  place-items: center;
  color: #6f542f;
}

.btn-tools {
  display: none;
}

.mic-btn {
  width: 28px;
  height: 28px;
  margin-left: 0;
  transform: none;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease, background 0.15s ease;
}

.mic-btn.mic-unavailable {
  opacity: 0.45;
  cursor: not-allowed;
}

.mic-btn.mic-listening {
  color: #d93025;
  background: rgba(217, 48, 37, 0.08);
  animation: mic-pulse 1.2s ease-in-out infinite;
}

.mic-btn.voice-chat-active {
  color: #111;
  background: rgba(0, 0, 0, 0.08);
}

@keyframes mic-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.mic-btn .material-symbols-rounded {
  font-size: 20px;
  line-height: 1;
}

.mic-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

#sendBtn {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: transparent;
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none !important;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0 !important;
  box-shadow: none;
}

#sendBtn.record-idle {
  background: #000000;
  color: #ffffff;
}

#sendBtn.record-idle.voice-chat-active {
  background: #111111;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
}

#sendBtn.ready {
  background: #000000;
  color: #ffffff;
}

#sendBtn .material-symbols-rounded {
  font-size: 19px;
  line-height: 1;
}

#sendBtn.record-idle #btnIcon {
  font-size: 20px;
}

/* Suppress ::before on all send button states by default;
   the streaming stop-square overrides this with higher specificity. */
#sendBtn #btnIcon::before {
  content: none;
}

#sendBtn.record-idle:hover {
  background: #111111;
  transform: none;
}

#sendBtn.ready:hover {
  background: #111111;
  transform: none;
}

#sendBtn.streaming {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: #000000;
  color: #ffffff;
  border: none !important;
  cursor: pointer;
  animation: pulseStop 2s infinite;
}

#sendBtn.streaming .material-symbols-rounded {
  font-size: 22px;
  font-variation-settings:
    "FILL" 1,
    "wght" 425,
    "GRAD" 0,
    "opsz" 24;
}

#sendBtn.streaming #btnIcon.stop-square-icon {
  font-size: 0;
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
}

/* Specificity (2,2,0) — beats the #sendBtn #btnIcon::before { content: none } rule at (2,0,0) */
#sendBtn.streaming #btnIcon.stop-square-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background: currentColor;
}

#btnIcon {
  transition:
    opacity 0.06s ease,
    transform 0.06s ease;
}

#btnIcon.icon-swapping {
  opacity: 0;
  transform: scale(0.55);
}

.legal-foot {
  display: none;
  margin-top: 7px;
  min-height: 18px;
  color: #5f6368;
  font-size: 0.84rem;
  font-weight: 360;
  line-height: 18px;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

body:not(.composer-centered) .legal-foot {
  display: block;
}

body.composer-centered .input-region {
  top: calc(50% - 43px);
  bottom: auto;
  transform: translateY(-50%);
  padding: 0 12px;
}

body.composer-centered .composer {
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.05);
}

.idle-composer-brand {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 52px);
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

body.composer-centered:not(.temporary-chat-mode) .idle-composer-brand {
  display: inline-flex;
  animation: idleBrandGlideDown 0.34s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes idleBrandGlideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -14px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.idle-brand-mark {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid #dedede;
  background: #ffffff;
  color: #111111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 680;
  line-height: 1;
}

.idle-brand-mark span:first-child {
  font-size: 1.58rem;
  transform: translateY(-1px);
}

.idle-brand-mark span:last-child {
  position: absolute;
  font-size: 0.92rem;
  color: #b79353;
  transform: translateY(1px);
}

.idle-brand-text {
  color: #171717;
  font-size: 2.7rem;
  font-weight: 680;
  letter-spacing: 0;
}

.idle-composer-brand.idle-brand-message-only {
  width: min(90vw, 780px);
  justify-content: center;
  gap: 0;
  text-align: center;
}

.idle-brand-greeting {
  font-size: clamp(1.3rem, 3.25vw, 1.703rem);
  font-weight: 300;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.idle-brand-text.idle-brand-greeting {
  font-size: clamp(1.3rem, 3.25vw, 1.703rem);
  font-weight: 300;
  letter-spacing: -0.015em;
}

.temporary-chat-notice {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 44px);
  transform: translateX(-50%);
  opacity: 1;
  max-width: 840px;
  width: calc(100% - 24px);
  margin: 0;
  text-align: center;
  pointer-events: none;
}

body.temporary-chat-mode .temporary-chat-notice {
  animation: temporaryNoticeGlideUp 0.34s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.temporary-chat-notice.glide-out {
  animation: temporaryNoticeGlideDown 0.24s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes temporaryNoticeGlideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 18px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes temporaryNoticeGlideDown {
  from {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  to {
    opacity: 0;
    transform: translate(-50%, 18px);
  }
}

.temporary-chat-title {
  color: #111111;
  font-size: 2.15rem;
  font-weight: 425;
  line-height: 1.15;
  letter-spacing: 0;
}

.temporary-chat-subtitle {
  margin-top: 22px;
  color: #666666;
  font-size: 1.05rem;
  font-weight: 340;
  line-height: 1.45;
}

body:not(.composer-centered) .temporary-chat-notice {
  display: none !important;
}

body.temporary-chat-mode .composer {
  background: #2b2b2b !important;
  border-color: #303030 !important;
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.temporary-chat-mode .composer:focus-within {
  border-color: #3a3a3a !important;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

body.temporary-chat-mode .attachment-chip-file {
  background: #343434;
  border-color: #454545;
  color: #f3f3f3;
}

body.temporary-chat-mode .attachment-kind {
  color: #b0b0b0;
}

body.temporary-chat-mode .attachment-chip-file.has-error .attachment-kind,
body.temporary-chat-mode .attachment-image-caption.has-error {
  color: #ff9b9b;
}

body.temporary-chat-mode .attachment-image-frame {
  background: #1f1f1f;
  border-color: #3a3a3a;
}

body.temporary-chat-mode .attachment-image-placeholder {
  color: #b8b8b8;
  background: linear-gradient(145deg, #2f2f2f, #252525);
}

body.temporary-chat-mode .attachment-chip-remove {
  color: #d0d0d0;
}

body.temporary-chat-mode .attachment-chip-remove:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

body.temporary-chat-mode .composer.composer-file-drag-over {
  border-color: #8ab4f8 !important;
  box-shadow: 0 0 0 3px rgba(138, 180, 248, 0.22), 0 18px 42px rgba(0, 0, 0, 0.14);
}

body.temporary-chat-mode #userInput {
  color: #ffffff;
}

body.temporary-chat-mode #userInput::placeholder {
  color: #b8b8b8;
}

body.temporary-chat-mode .btn-action-plus,
body.temporary-chat-mode .mic-btn,
body.temporary-chat-mode .model-picker-btn {
  color: #ededed;
}

body.temporary-chat-mode .btn-action-plus:hover,
body.temporary-chat-mode .mic-btn:hover,
body.temporary-chat-mode .model-picker-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

body.temporary-chat-mode .btn-action-plus:active,
body.temporary-chat-mode .btn-action-plus:focus-visible {
  transform: scale(1.22);
}

body.temporary-chat-mode #sendBtn,
body.temporary-chat-mode #sendBtn.record-idle {
  background: #ffffff;
  color: #1f1f1f;
}

body.temporary-chat-mode #sendBtn.ready,
body.temporary-chat-mode #sendBtn.streaming {
  background: #000000;
  color: #ffffff;
}

body.temporary-chat-mode #sendBtn:hover,
body.temporary-chat-mode #sendBtn.record-idle:hover {
  background: #e8e8e8;
}

body.temporary-chat-mode #sendBtn.ready:hover {
  background: #111111;
}

body.composer-centered .legal-foot {
  display: none;
}

@keyframes pulseStop {
  0% {
    box-shadow: 0 0 0 0px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.05);
  }
  100% {
    box-shadow: 0 0 0 0px rgba(0, 0, 0, 0.1);
  }
}

@media screen and (max-width: 768px) {
  .input-region {
    left: 0;
    right: 0;
    bottom: 9px;
    top: auto;
    transform: none;
    padding: 0 12px;
  }
  .composer {
    max-width: none;
    min-height: 57.5px;
    padding: 0;
  }

  .composer-body {
    padding: 0 14px;
  }

  .attachment-tray {
    padding: 8px 14px 2px;
  }

  #userInput {
    font-size: 0.95rem;
    padding: 0 92px 0 38px;
  }
  .toolbar-left {
    left: 12px;
  }
  .composer-right-actions {
    right: 12px;
    gap: 8px;
  }
  #sendBtn,
  #sendBtn.record-idle,
  #sendBtn.ready,
  #sendBtn.streaming {
    width: 38px !important;
    height: 38px !important;
  }
  body.composer-centered .input-region {
    top: calc(69% - 10px);
    padding: 0 12px;
  }
}

.model-picker-wrap {
  position: relative;
  overflow: visible;
  z-index: 20;
}

.provider-picker-menu {
  min-width: 150px;
}

.model-picker-btn {
  height: 28px;
  padding: 0 4px 0 7px;
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 300;
  color: #858585;
}

#selectedProviderLabel,
#selectedModelLabel {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#selectedProviderLabel {
  max-width: 68px;
}

#selectedModelLabel {
  max-width: 128px;
  color: #858585;
  font-weight: 300;
  letter-spacing: 0;
}

.model-picker-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

.model-picker-btn:focus,
.model-picker-btn:focus-visible {
  outline: none;
  box-shadow: none;
}

.model-picker-btn .material-symbols-rounded {
  font-size: 15px;
}

.model-picker-item {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 510;
  color: #1f1f1f;
}

.model-picker-item:hover,
.model-picker-item.active {
  background: rgba(0, 0, 0, 0.05);
}
