/* Chat prompt bar component.
   Scoped to .chat-promptbar so other module prompt surfaces keep their own CSS. */

.chat-promptbar {
  --cpb-bg: #202020;
  --cpb-bg-soft: #2b2b2b;
  --cpb-bg-hover: #383838;
  --cpb-border: rgba(255, 255, 255, 0.14);
  --cpb-border-strong: rgba(255, 255, 255, 0.28);
  --cpb-text: rgba(255, 255, 255, 0.94);
  --cpb-muted: rgba(255, 255, 255, 0.58);
  --cpb-soft: rgba(255, 255, 255, 0.36);
  --cpb-context: #e88745;
  --cpb-context-bg: rgba(205, 100, 44, 0.18);
  --cpb-context-bg-hover: rgba(220, 116, 52, 0.25);
  --cpb-radius: 34px;
  --cpb-card-width: min(100%, 980px);
  --cpb-card-max-width: 980px;
  --cpb-composer-min-height: 104px;
  --cpb-composer-padding: 16px 14px 12px 20px;
  --cpb-composer-row-gap: 10px;
  --cpb-input-padding: 2px 54px 0 12px;
  --cpb-input-min-height: 30px;
  --cpb-input-line-height: 1.45;
  --cpb-toolbar-width: calc(100% - 50px);
  --cpb-toolbar-gap: 5px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  color: var(--cpb-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.chat-promptbar *,
.chat-promptbar *::before,
.chat-promptbar *::after {
  box-sizing: border-box;
}

.chat-promptbar-section {
  padding: 18px 24px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

.chat-promptbar-mount {
  width: 100%;
  min-width: 0;
  pointer-events: auto;
}

body[data-active-module="freeform"] .input-section.chat-promptbar-section,
body[data-active-module="freeform"] .input-section:has(.chat-promptbar) {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.dc-centered-prompt-title {
  display: none;
}

body.is-design-chat-landing .input-section,
body.is-design-chat-landing .input-section.no-project,
body.is-design-chat-landing .input-section.visible,
body.is-design-chat-landing .input-section.visible.loaded {
  --dc-landing-prompt-width: min(980px, calc(100vw - 96px));
  --dc-landing-title-inset: 32px;
  position: fixed !important;
  top: 50% !important;
  bottom: auto !important;
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px !important;
  padding: 0 !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  border-top: 0 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  animation: none !important;
  pointer-events: none !important;
  z-index: 2400 !important;
  transition: none !important;
}

body.chat-promptbar-fast-transition .input-section,
body.chat-promptbar-fast-transition .input-section.no-project,
body.chat-promptbar-fast-transition .input-section.visible,
body.chat-promptbar-fast-transition .input-section.visible.loaded {
  background: transparent !important;
  border-top: 0 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  animation: none !important;
  transition: none !important;
}

body.chat-promptbar-fast-transition .input-section:focus-within,
body.chat-promptbar-fast-transition .input-section.no-project:focus-within,
body.chat-promptbar-fast-transition .input-section.visible:focus-within,
body.chat-promptbar-fast-transition .input-section.visible.loaded:focus-within {
  background: transparent !important;
  border-top: 0 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body.chat-promptbar-fast-transition .input-section .input-container,
body.chat-promptbar-fast-transition .input-section .chat-promptbar-card {
  transition: none !important;
}

@media (min-width: 769px) {
  body.is-design-chat-landing .sidebar.open ~ .main-content .input-section,
  body.is-design-chat-landing .sidebar.open ~ .main-content .input-section.no-project,
  body.is-design-chat-landing .sidebar.open ~ .main-content .input-section.visible,
  body.is-design-chat-landing .sidebar.open ~ .main-content .input-section.visible.loaded {
    --dc-landing-prompt-width: min(980px, calc(100vw - var(--sidebar-width, 280px) - 96px));
    left: var(--sidebar-width, 280px) !important;
    width: calc(100vw - var(--sidebar-width, 280px)) !important;
  }
}

body.is-design-chat-landing .input-section:focus-within,
body.is-design-chat-landing .input-section.no-project:focus-within,
body.is-design-chat-landing .input-section.visible.loaded:focus-within {
  background: transparent !important;
  border-top: 0 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body.is-design-chat-landing .chat-promptbar-mount {
  width: var(--dc-landing-prompt-width);
  max-width: var(--dc-landing-prompt-width);
  margin: 0 auto;
}

body.is-design-chat-landing .input-section .input-container,
body.is-design-chat-landing .input-section .chat-promptbar-card {
  transform: none !important;
  width: 100% !important;
  max-width: var(--dc-landing-prompt-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.is-design-chat-landing .dc-centered-prompt-title {
  display: block;
  position: static;
  width: var(--dc-landing-prompt-width);
  max-width: var(--dc-landing-prompt-width);
  max-height: 40px;
  margin: 0;
  padding-left: var(--dc-landing-title-inset);
  padding-right: var(--dc-landing-title-inset);
  transform: translateY(0);
  color: rgba(255, 255, 255, 0.94);
  font: inherit;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transition: opacity 140ms ease, visibility 140ms ease, transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-design-chat-landing.is-design-chat-landing-interacted .dc-centered-prompt-title {
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  transform: translateY(6px);
}

@media (max-width: 760px) {
  body.is-design-chat-landing .input-section,
  body.is-design-chat-landing .input-section.no-project,
  body.is-design-chat-landing .input-section.visible,
  body.is-design-chat-landing .input-section.visible.loaded {
    top: 50% !important;
    bottom: auto !important;
    --dc-landing-prompt-width: calc(100vw - 20px);
    --dc-landing-title-inset: 26px;
    padding: 0 !important;
    transform: translateY(-50%) !important;
  }

  body.is-design-chat-landing .dc-centered-prompt-title {
    font-size: 22px;
  }
}

.chat-promptbar .chat-promptbar-card,
.chat-promptbar .input-container.chat-promptbar-card {
  width: var(--cpb-card-width);
  max-width: var(--cpb-card-max-width);
  margin: 0 auto;
  position: relative;
  pointer-events: auto;
  min-width: 0;
  box-sizing: border-box;
  container-type: inline-size;
  container-name: chat-promptbar;
}

.dc-landing-promptbar-mount {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.dc-landing-promptbar-mount:focus-within {
  border-color: transparent;
  background: transparent;
}

.dc-landing-promptbar-mount .chat-promptbar-card {
  width: 100%;
  max-width: none;
}

.chat-promptbar .chat-promptbar-composer,
.chat-promptbar .message-input-container.chat-promptbar-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0;
  row-gap: var(--cpb-composer-row-gap);
  align-items: end;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: var(--cpb-composer-min-height);
  padding: var(--cpb-composer-padding);
  background: var(--cpb-bg);
  border: 1px solid var(--cpb-border);
  border-radius: var(--cpb-radius);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.30);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  backdrop-filter: blur(22px) saturate(130%);
  pointer-events: auto;
  transform: none !important;
  isolation: isolate;
  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease !important;
}

.chat-promptbar .chat-promptbar-composer:focus-within,
.chat-promptbar .message-input-container.chat-promptbar-composer:focus-within {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  column-gap: 0 !important;
  row-gap: var(--cpb-composer-row-gap) !important;
  align-items: end !important;
  border-color: var(--cpb-border-strong);
  background: #222;
  min-height: var(--cpb-composer-min-height);
  padding: var(--cpb-composer-padding);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  backdrop-filter: blur(22px) saturate(130%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.30);
  transform: none !important;
}

.chat-promptbar .chat-promptbar-input,
.chat-promptbar .message-input.chat-promptbar-input,
.chat-promptbar .dc-landing-input.chat-promptbar-input {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  height: var(--cpb-input-height, auto);
  min-height: var(--cpb-input-min-height);
  max-height: 190px;
  padding: var(--cpb-input-padding);
  margin: 0;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--cpb-text);
  font: inherit;
  font-size: 16px;
  line-height: var(--cpb-input-line-height);
  box-shadow: none;
  overflow-y: auto;
}

.chat-promptbar .chat-promptbar-input::placeholder {
  color: var(--cpb-muted);
}

.chat-promptbar .chat-promptbar-input:focus,
.chat-promptbar .message-input.chat-promptbar-input:focus,
.chat-promptbar .dc-landing-input.chat-promptbar-input:focus {
  min-height: var(--cpb-input-min-height) !important;
  padding: var(--cpb-input-padding) !important;
  line-height: var(--cpb-input-line-height) !important;
  transform: none !important;
  transition: none !important;
}

.chat-promptbar .chat-promptbar-input:not(:focus),
.chat-promptbar .message-input.chat-promptbar-input:not(:focus),
.chat-promptbar .dc-landing-input.chat-promptbar-input:not(:focus) {
  padding: var(--cpb-input-padding) !important;
  line-height: var(--cpb-input-line-height) !important;
}

.chat-promptbar .chat-promptbar-toolbar {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--cpb-toolbar-gap);
  min-width: 0;
  width: var(--cpb-toolbar-width);
  overflow: visible;
  padding-right: 0;
}

.chat-promptbar .chat-promptbar-toolbar-group,
.chat-promptbar .plus-menu-count-row.chat-promptbar-toolbar-group {
  display: flex;
  align-items: center;
  gap: 6px;
  width: auto;
  flex: 0 0 auto;
  min-width: 0;
}

.chat-promptbar .chat-promptbar-control,
.chat-promptbar .chat-setting-pill-wrapper {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
}

.chat-promptbar .chat-promptbar-pill,
.chat-promptbar .chat-setting-pill,
.chat-promptbar .plus-menu-item.plus-menu-style-item {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  min-width: 0;
  height: 34px;
  max-width: 210px;
  padding: 0 11px;
  border: 0 !important;
  border-radius: 999px;
  background: var(--cpb-bg-soft) !important;
  color: var(--cpb-text) !important;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none !important;
  transition: background 120ms ease, color 120ms ease, transform 80ms ease;
}

.chat-promptbar .chat-promptbar-pill:hover,
.chat-promptbar .chat-setting-pill:hover,
.chat-promptbar .plus-menu-item.plus-menu-style-item:hover {
  background: var(--cpb-bg-hover) !important;
}

.chat-promptbar .chat-promptbar-pill:active,
.chat-promptbar .chat-setting-pill:active {
  transform: translateY(1px);
}

.chat-promptbar .chat-promptbar-icon,
.chat-promptbar .pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: currentColor;
}

.chat-promptbar .chat-promptbar-icon svg,
.chat-promptbar .pill-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor !important;
}

.chat-promptbar .chat-promptbar-icon-pill {
  width: 34px;
  min-width: 34px;
  padding: 0;
}

body[data-active-module="model3dEditor"] .chat-promptbar .chat-promptbar-module-menu .plus-menu-btn {
  width: 51px;
  min-width: 51px;
  height: 51px;
  padding: 0;
  border-radius: 50%;
}

body[data-active-module="preciseEditor"] .chat-promptbar .chat-promptbar-module-menu .plus-menu-btn {
  width: 51px;
  min-width: 51px;
  height: 51px;
  padding: 0;
  border-radius: 50%;
}

body[data-active-module="model3dEditor"] .chat-promptbar .chat-promptbar-composer,
body[data-active-module="model3dEditor"] .chat-promptbar .message-input-container.chat-promptbar-composer {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 67px;
  padding: 8px;
  border-radius: 999px;
}

body[data-active-module="preciseEditor"] .chat-promptbar .chat-promptbar-composer,
body[data-active-module="preciseEditor"] .chat-promptbar .message-input-container.chat-promptbar-composer {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 67px;
  padding: 8px;
  border-radius: 999px;
}

body[data-active-module="model3dEditor"] .chat-promptbar .chat-promptbar-toolbar {
  order: 1;
  width: auto;
  flex: 0 0 auto;
  padding: 0;
}

body[data-active-module="preciseEditor"] .chat-promptbar .chat-promptbar-toolbar {
  order: 1;
  width: auto;
  flex: 0 0 auto;
  padding: 0;
}

body[data-active-module="model3dEditor"] .chat-promptbar .chat-promptbar-input,
body[data-active-module="model3dEditor"] .chat-promptbar .message-input.chat-promptbar-input {
  order: 2;
  flex: 1 1 auto;
  min-height: 28px;
  max-height: 96px;
  padding: 0 8px;
}

body[data-active-module="preciseEditor"] .chat-promptbar .chat-promptbar-input,
body[data-active-module="preciseEditor"] .chat-promptbar .message-input.chat-promptbar-input {
  order: 2;
  flex: 1 1 auto;
  min-height: 28px;
  max-height: 96px;
  padding: 0 8px;
}

body[data-active-module="model3dEditor"] .chat-promptbar .send-button.chat-promptbar-send {
  position: relative !important;
  right: auto !important;
  bottom: auto !important;
  order: 3;
  flex: 0 0 48px;
  width: 48px;
  min-width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 0 0 auto;
}

body[data-active-module="preciseEditor"] .chat-promptbar .send-button.chat-promptbar-send {
  position: relative !important;
  right: auto !important;
  bottom: auto !important;
  order: 3;
  flex: 0 0 48px;
  width: 48px;
  min-width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 0 0 auto;
}

body[data-active-module="model3dEditor"] .chat-promptbar .message-input-container.context-mode-active.multimodal-agent-active .send-button.chat-promptbar-send,
body[data-active-module="model3dEditor"] .chat-promptbar .message-input-container.context-mode-active .send-button.chat-promptbar-send,
body[data-active-module="model3dEditor"] .chat-promptbar .message-input-container.multimodal-agent-active .send-button.chat-promptbar-send {
  position: relative !important;
  right: auto !important;
  bottom: auto !important;
  flex: 0 0 48px;
  margin: 0 0 0 auto !important;
}

body[data-active-module="preciseEditor"] .chat-promptbar .message-input-container.context-mode-active.multimodal-agent-active .send-button.chat-promptbar-send,
body[data-active-module="preciseEditor"] .chat-promptbar .message-input-container.context-mode-active .send-button.chat-promptbar-send,
body[data-active-module="preciseEditor"] .chat-promptbar .message-input-container.multimodal-agent-active .send-button.chat-promptbar-send {
  position: relative !important;
  right: auto !important;
  bottom: auto !important;
  flex: 0 0 48px;
  margin: 0 0 0 auto !important;
}

.chat-promptbar .chat-promptbar-at {
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.chat-promptbar .chat-promptbar-model-label,
.chat-promptbar .pill-value,
.chat-promptbar .plus-menu-style-item span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-promptbar .chat-promptbar-model-button {
  max-width: 172px;
}

.chat-promptbar .chat-promptbar-model-label {
  display: block;
  max-width: 150px;
}

.chat-promptbar .chat-promptbar-style-button,
.chat-promptbar .plus-menu-style-item,
.chat-promptbar [data-chat-prompt-action="style"] {
  max-width: 146px;
}

.chat-promptbar.chat-promptbar-has-style .chat-promptbar-toolbar [data-chat-prompt-action="style"] {
  min-width: 126px;
  max-width: 224px;
  flex: 0 1 224px;
}

.chat-promptbar .chat-promptbar-style-thumb {
  display: none;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 50%;
  background-image: var(--chat-style-thumb);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.chat-promptbar [data-chat-style-active="1"] .chat-promptbar-style-thumb {
  display: inline-flex;
}

.chat-promptbar [data-chat-style-active="1"] > .chat-promptbar-icon:first-child {
  display: none;
}

.chat-promptbar [data-chat-prompt-action="style"] span:last-child,
.chat-promptbar .plus-menu-style-item span:last-child {
  display: block;
  min-width: 0;
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-promptbar.chat-promptbar-has-style .chat-promptbar-toolbar [data-chat-prompt-action="style"] span:last-child {
  max-width: 152px;
}

.chat-promptbar .chat-promptbar-context-check {
  display: none;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-left: -2px;
  border-radius: 999px;
  background: rgba(232, 135, 69, 0.18);
  color: var(--cpb-context);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.chat-promptbar [data-chat-prompt-action="context"].chat-promptbar-context-active {
  background: var(--cpb-context-bg) !important;
  color: var(--cpb-context) !important;
  box-shadow: inset 0 0 0 1px rgba(232, 135, 69, 0.22) !important;
}

.chat-promptbar [data-chat-prompt-action="context"].chat-promptbar-context-active:hover {
  background: var(--cpb-context-bg-hover) !important;
}

.chat-promptbar [data-chat-prompt-action="context"].chat-promptbar-context-active .chat-promptbar-context-check {
  display: inline-flex;
}

/* Legacy Freeform style-pill CSS also targets .message-input-container.
   Keep the modular chat promptbar isolated when StyleManager adds
   has-style-pill for old prompt bars. */
.chat-promptbar .message-input-container.chat-promptbar-composer.has-style-pill {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: end !important;
  gap: 10px !important;
  flex-direction: initial !important;
  flex-wrap: initial !important;
}

.chat-promptbar .message-input-container.has-style-pill #messageInput,
.chat-promptbar .message-input-container.has-style-pill .message-input,
.chat-promptbar .message-input-container.has-style-pill textarea {
  order: initial !important;
  flex: initial !important;
  width: 100% !important;
  min-width: 0 !important;
  margin-left: 0 !important;
}

.chat-promptbar .message-input-container.has-style-pill #sendButton,
.chat-promptbar .message-input-container.has-style-pill .send-button {
  order: initial !important;
  flex-shrink: initial !important;
}

.chat-promptbar .message-input-container.has-style-pill #active-style-pill,
.chat-promptbar .message-input-container.has-style-pill .style-pill-active {
  display: none !important;
}

.chat-promptbar .chat-promptbar-send,
.chat-promptbar .send-button.chat-promptbar-send,
.chat-promptbar .dc-landing-submit.chat-promptbar-send {
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #0a0a0a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  font-size: 16px;
  transition: transform 90ms ease, background 120ms ease, opacity 120ms ease;
}

.chat-promptbar .chat-promptbar-send:hover {
  background: rgba(255, 255, 255, 0.92);
}

.chat-promptbar .chat-promptbar-send:active {
  transform: translateY(1px);
}

.chat-promptbar .chat-promptbar-send:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.chat-promptbar .chat-promptbar-send svg {
  width: 18px;
  height: 18px;
}

.chat-promptbar .chat-promptbar-popover,
.chat-promptbar .chat-setting-dropup {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  min-width: 196px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(31, 31, 31, 0.98);
  color: var(--cpb-text);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  -webkit-backdrop-filter: blur(28px) saturate(125%);
  backdrop-filter: blur(28px) saturate(125%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px) scale(0.98);
  transform-origin: bottom left;
  transition: opacity 115ms ease, transform 155ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100000;
}

.chat-promptbar-popover-portal {
  position: fixed;
  inset: 0 auto auto 0;
  width: 0 !important;
  height: 0 !important;
  min-width: 0;
  pointer-events: none;
  z-index: 2000000;
}

.chat-promptbar .chat-promptbar-popover.show,
.chat-promptbar .chat-setting-dropup.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.chat-promptbar .chat-promptbar-popover[data-chat-floating="1"],
.chat-promptbar .chat-setting-dropup[data-chat-floating="1"],
.chat-promptbar .chat-promptbar-aspect-popover[data-chat-floating="1"] {
  position: fixed !important;
  right: auto !important;
  bottom: auto !important;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(var(--chat-popover-shift, 6px)) scale(0.98) !important;
  transform-origin: top left;
  z-index: 2000000;
}

.chat-promptbar .chat-promptbar-popover[data-chat-floating="1"][data-chat-placement="top"],
.chat-promptbar .chat-setting-dropup[data-chat-floating="1"][data-chat-placement="top"],
.chat-promptbar .chat-promptbar-aspect-popover[data-chat-floating="1"][data-chat-placement="top"] {
  --chat-popover-shift: 6px;
  transform-origin: bottom left;
}

.chat-promptbar .chat-promptbar-popover[data-chat-floating="1"][data-chat-placement="bottom"],
.chat-promptbar .chat-setting-dropup[data-chat-floating="1"][data-chat-placement="bottom"],
.chat-promptbar .chat-promptbar-aspect-popover[data-chat-floating="1"][data-chat-placement="bottom"] {
  --chat-popover-shift: -6px;
  transform-origin: top left;
}

.chat-promptbar .chat-promptbar-popover[data-chat-floating="1"].show,
.chat-promptbar .chat-setting-dropup[data-chat-floating="1"].show,
.chat-promptbar .chat-promptbar-aspect-popover[data-chat-floating="1"].show {
  transform: translateY(0) scale(1) !important;
}

.chat-promptbar .chat-promptbar-popover-title,
.chat-promptbar .dropup-section-label {
  padding: 0 4px 8px;
  color: var(--cpb-soft);
  font-size: 11px;
  font-weight: 650;
}

.chat-promptbar .chat-promptbar-menu-option,
.chat-promptbar .dropup-option {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  padding: 7px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--cpb-text);
  font: inherit;
  font-size: 14px;
  font-weight: 570;
  text-align: left;
  cursor: pointer;
}

.chat-promptbar .chat-promptbar-model-menu {
  width: 292px;
  max-height: min(360px, calc(100vh - 24px));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
  scrollbar-width: thin;
}

.chat-promptbar .chat-promptbar-model-menu::-webkit-scrollbar,
.chat-promptbar .chat-promptbar-context-card::-webkit-scrollbar {
  width: 6px;
  background: transparent;
}

.chat-promptbar .chat-promptbar-model-menu::-webkit-scrollbar-track,
.chat-promptbar .chat-promptbar-context-card::-webkit-scrollbar-track {
  background: transparent;
}

.chat-promptbar .chat-promptbar-model-menu::-webkit-scrollbar-thumb,
.chat-promptbar .chat-promptbar-context-card::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  border: 2px solid rgba(31, 31, 31, 0.98);
}

.chat-promptbar .chat-promptbar-model-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.chat-promptbar .chat-promptbar-model-title {
  color: #fff;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.05;
}

.chat-promptbar .chat-promptbar-model-subtitle {
  color: var(--cpb-soft);
  font-size: 11px;
  font-weight: 520;
  line-height: 1.2;
  max-width: 218px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-promptbar .chat-promptbar-menu-option:hover,
.chat-promptbar .dropup-option:hover {
  background: rgba(255, 255, 255, 0.07);
}

.chat-promptbar .chat-promptbar-menu-option.active,
.chat-promptbar .dropup-option.active {
  color: #fff;
}

.chat-promptbar .chat-promptbar-radio {
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  flex: 0 0 auto;
  position: relative;
}

.chat-promptbar .chat-promptbar-menu-option.active .chat-promptbar-radio {
  border-color: #fff;
}

.chat-promptbar .chat-promptbar-menu-option.active .chat-promptbar-radio::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fff;
}

.chat-promptbar .chat-promptbar-aspect-popover {
  width: min(640px, calc(100vw - 32px));
  left: 50%;
  transform-origin: bottom center;
  transform: translateX(-36%) translateY(6px) scale(0.98);
  padding: 14px 16px;
}

.chat-promptbar .chat-promptbar-aspect-popover.show {
  transform: translateX(-36%) translateY(0) scale(1);
}

.chat-promptbar .orientation-toggle {
  display: none;
}

.chat-promptbar .dropup-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-promptbar .aspect-picker-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 20px;
  align-items: center;
}

.chat-promptbar .aspect-visual-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(46px, 1fr));
  gap: 14px 16px;
  align-items: center;
}

.chat-promptbar .aspect-option {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
}

.chat-promptbar .aspect-preview {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-promptbar .aspect-preview-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--ratio-box-w, 42px);
  height: var(--ratio-box-h, 42px);
  min-width: 10px;
  min-height: 10px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  transition: width 180ms cubic-bezier(0.2, 0.8, 0.2, 1), height 180ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 120ms ease, background 120ms ease;
}

.chat-promptbar .aspect-preview-box.is-original {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.42);
}

.chat-promptbar .aspect-preview-box.is-original span {
  font-size: 7.5px;
  letter-spacing: 0;
}

.chat-promptbar .aspect-option:hover .aspect-preview-box {
  border-color: rgba(255, 255, 255, 0.58);
}

.chat-promptbar .aspect-option.active .aspect-preview-box {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.chat-promptbar .aspect-grid-preview {
  width: 128px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-promptbar .aspect-grid-preview-box {
  display: block;
  position: relative;
  width: var(--ratio-box-w, 124px);
  height: var(--ratio-box-h, 124px);
  border: 2px solid #fff;
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 42px 42px;
  overflow: hidden;
  transition: width 240ms cubic-bezier(0.2, 0.8, 0.2, 1), height 240ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 160ms ease, background 160ms ease;
}

.chat-promptbar .aspect-grid-preview-box.is-original {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 42px 42px;
}

.chat-promptbar .chat-promptbar-context-card {
  width: min(520px, calc(100vw - 32px));
  max-height: min(640px, calc(100vh - 24px));
  padding: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
  scrollbar-width: thin;
}

.chat-promptbar .chat-promptbar-context-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.chat-promptbar .chat-promptbar-context-copy {
  min-width: 0;
}

.chat-promptbar .chat-promptbar-context-title {
  color: #fff;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.1;
}

.chat-promptbar .chat-promptbar-context-subtitle {
  margin-top: 3px;
  color: var(--cpb-soft);
  font-size: 11px;
  font-weight: 540;
}

.chat-promptbar .chat-promptbar-context-description {
  margin: 8px 0 0;
  max-width: 430px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 520;
  line-height: 1.42;
}

.chat-promptbar .chat-promptbar-context-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
}

.chat-promptbar .chat-promptbar-context-switch {
  position: relative;
  display: inline-flex;
  width: 34px;
  height: 20px;
  flex: 0 0 auto;
}

.chat-promptbar .chat-promptbar-context-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.chat-promptbar .chat-promptbar-context-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  transition: background 140ms ease;
}

.chat-promptbar .chat-promptbar-context-switch span::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.54);
  transition: transform 140ms ease, background 140ms ease;
}

.chat-promptbar .chat-promptbar-context-switch input:checked + span {
  background: rgba(220, 116, 52, 0.34);
}

.chat-promptbar .chat-promptbar-context-switch input:checked + span::after {
  transform: translateX(14px);
  background: #f29a5a;
}

.chat-promptbar .chat-promptbar-context-label {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 740;
}

.chat-promptbar .chat-promptbar-context-close {
  appearance: none;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  line-height: 1;
}

.chat-promptbar .chat-promptbar-context-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.chat-promptbar .chat-promptbar-context-input {
  width: 100%;
  min-height: 118px;
  max-height: 168px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 11px 12px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  outline: 0;
  background: rgba(18, 18, 18, 0.82);
  color: var(--cpb-text);
  font: inherit;
  font-size: 13px;
  line-height: 1.42;
}

.chat-promptbar .chat-promptbar-context-input:focus {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(18, 18, 18, 0.94);
}

.chat-promptbar .chat-promptbar-context-input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.chat-promptbar .chat-promptbar-context-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 18px;
  margin-top: 6px;
  color: var(--cpb-soft);
  font-size: 11px;
  font-weight: 560;
}

.chat-promptbar .chat-promptbar-context-ref-section {
  margin-top: 14px;
}

.chat-promptbar .chat-promptbar-context-ref-title {
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 740;
  line-height: 1.2;
}

.chat-promptbar .chat-promptbar-context-ref-copy p {
  margin: 5px 0 10px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 520;
  line-height: 1.38;
}

.chat-promptbar .chat-promptbar-context-ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 8px;
  min-height: 92px;
  padding: 2px;
  border-radius: 12px;
  transition: background 120ms ease;
}

.chat-promptbar .chat-promptbar-context-ref-grid.is-dragover {
  background: rgba(255, 255, 255, 0.06);
}

.chat-promptbar .chat-promptbar-context-ref-item,
.chat-promptbar .chat-promptbar-context-ref-add {
  position: relative;
  aspect-ratio: 1;
  min-height: 78px;
  border-radius: 8px;
  overflow: hidden;
  background: #242424;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.chat-promptbar .chat-promptbar-context-ref-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chat-promptbar .chat-promptbar-context-ref-item button {
  appearance: none;
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.64);
  color: #fff;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.chat-promptbar .chat-promptbar-context-ref-add {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
}

.chat-promptbar .chat-promptbar-context-ref-plus {
  font-size: 30px;
  line-height: 1;
  font-weight: 300;
  transition: opacity 120ms ease, transform 140ms ease;
}

.chat-promptbar .chat-promptbar-context-ref-spinner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top-color: rgba(255, 255, 255, 0.94);
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 120ms ease, transform 140ms ease;
}

.chat-promptbar .chat-promptbar-context-ref-add.is-uploading {
  cursor: progress;
  border-color: rgba(255, 255, 255, 0.24);
  background: #242424;
}

.chat-promptbar .chat-promptbar-context-ref-add.is-uploading .chat-promptbar-context-ref-plus {
  opacity: 0;
  transform: scale(0.78);
}

.chat-promptbar .chat-promptbar-context-ref-add.is-uploading .chat-promptbar-context-ref-spinner {
  opacity: 1;
  transform: scale(1);
  animation: chat-context-ref-spin 760ms linear infinite;
}

@keyframes chat-context-ref-spin {
  from {
    transform: scale(1) rotate(0deg);
  }

  to {
    transform: scale(1) rotate(360deg);
  }
}

.chat-promptbar .chat-promptbar-context-ref-add:hover,
.chat-promptbar .chat-promptbar-context-ref-item button:hover {
  border-color: rgba(255, 255, 255, 0.38);
}

.chat-promptbar .chat-promptbar-context-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.chat-promptbar .chat-promptbar-context-clear,
.chat-promptbar .chat-promptbar-context-save {
  appearance: none;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.chat-promptbar .chat-promptbar-context-clear {
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
}

.chat-promptbar .chat-promptbar-context-clear:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.chat-promptbar .chat-promptbar-context-save {
  background: #fff;
  color: #050505;
}

.chat-promptbar .chat-promptbar-context-save:disabled {
  opacity: 0.52;
  cursor: default;
}

.chat-promptbar .chat-promptbar-quality-popover {
  min-width: 138px;
}

.chat-promptbar .quality-option {
  justify-content: space-between;
  gap: 18px;
}

.chat-promptbar .quality-option-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chat-promptbar .quality-option-time,
.chat-promptbar .upgrade-text {
  color: var(--cpb-soft);
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
}

.chat-promptbar .dropup-option.locked {
  opacity: 0.48;
  cursor: default;
}

.chat-promptbar .dropup-option.locked:hover {
  background: transparent;
}

.chat-promptbar .chat-promptbar-module-menu {
  display: none;
  position: relative;
}

.chat-promptbar .chat-promptbar-overflow-control {
  display: none;
  position: relative;
}

.chat-promptbar .chat-promptbar-overflow-menu {
  left: auto;
  right: 0;
  min-width: 184px;
  transform-origin: bottom right;
}

.chat-promptbar .chat-promptbar-overflow-menu .chat-promptbar-menu-option {
  min-height: 38px;
  gap: 10px;
}

body[data-active-module="freeform"] .chat-promptbar .chat-promptbar-module-menu,
body[data-active-module="model3d"] .chat-promptbar .chat-promptbar-module-menu,
body[data-active-module="model3dEditor"] .chat-promptbar .chat-promptbar-module-menu,
body[data-active-module="preciseEditor"] .chat-promptbar .chat-promptbar-module-menu {
  display: flex;
}

body[data-active-module="freeform"] .chat-promptbar .chat-promptbar-chat-only,
body[data-active-module="model3d"] .chat-promptbar .chat-promptbar-chat-only,
body[data-active-module="model3dEditor"] .chat-promptbar .chat-promptbar-chat-only,
body[data-active-module="preciseEditor"] .chat-promptbar .chat-promptbar-chat-only {
  display: none !important;
}

body[data-active-module="preciseEditor"] .chat-promptbar .chat-promptbar-overflow-control,
body[data-active-module="preciseEditor"] .chat-promptbar .chat-promptbar-overflowable {
  display: none !important;
}

.chat-promptbar .plus-menu-dropdown {
  bottom: calc(100% + 10px);
  left: 0;
}

.chat-promptbar .file-input {
  display: none;
}

.chat-promptbar .image-input-container {
  margin: 0 0 10px;
  pointer-events: auto;
}

.chat-promptbar .image-input-container.image-selected {
  margin-bottom: 10px;
}

.chat-promptbar .thumb-strip {
  pointer-events: auto;
}

.chat-promptbar .image-preview {
  display: none;
}

.chat-promptbar .char-counter {
  display: none;
}

@media (max-width: 760px) {
  .chat-promptbar {
    --cpb-composer-min-height: 100px;
    --cpb-composer-padding: 14px 10px 10px 14px;
    --cpb-radius: 24px;
    --cpb-toolbar-width: calc(100% - 44px);
    --cpb-toolbar-gap: 4px;
  }

  .chat-promptbar-section {
    padding: 12px 10px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .chat-promptbar .chat-promptbar-composer,
  .chat-promptbar .message-input-container.chat-promptbar-composer {
    min-height: 100px;
    padding: 14px 10px 10px 14px;
    border-radius: 24px;
    column-gap: 8px;
  }

  .chat-promptbar .chat-promptbar-toolbar {
    flex-wrap: nowrap;
    overflow: visible;
    padding-bottom: 1px;
    width: calc(100% - 44px);
  }

  .chat-promptbar .chat-promptbar-pill,
  .chat-promptbar .chat-setting-pill,
  .chat-promptbar .plus-menu-item.plus-menu-style-item {
    height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }

  .chat-promptbar .chat-promptbar-overflowable {
    display: none !important;
  }

  .chat-promptbar .chat-promptbar-overflow-control {
    display: flex;
  }

  .chat-promptbar .chat-promptbar-add-images .chat-promptbar-label {
    display: none;
  }

  .chat-promptbar .chat-promptbar-model-button {
    max-width: 126px;
  }

  .chat-promptbar .chat-promptbar-model-label {
    max-width: 104px;
  }

  .chat-promptbar .chat-promptbar-send,
  .chat-promptbar .send-button.chat-promptbar-send,
  .chat-promptbar .dc-landing-submit.chat-promptbar-send {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .chat-promptbar .chat-promptbar-aspect-popover {
    left: 0;
    width: min(520px, calc(100vw - 24px));
    transform: translateY(6px) scale(0.98);
  }

  .chat-promptbar .chat-promptbar-aspect-popover.show {
    transform: translateY(0) scale(1);
  }

  .chat-promptbar .aspect-picker-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .chat-promptbar .aspect-visual-grid {
    grid-template-columns: repeat(4, minmax(46px, 1fr));
    gap: 10px;
  }

  .chat-promptbar .aspect-grid-preview {
    display: none;
  }
}

@media (max-width: 430px) {
  .chat-promptbar {
    --cpb-toolbar-gap: 3px;
  }

  .chat-promptbar .chat-promptbar-toolbar {
    gap: 3px;
  }

  .chat-promptbar .chat-promptbar-model-button {
    max-width: 108px;
  }

  .chat-promptbar .chat-promptbar-model-label {
    max-width: 86px;
  }

  .chat-promptbar .chat-promptbar-overflow-label {
    display: none;
  }

  .chat-promptbar .chat-setting-pill {
    padding: 0 8px;
  }

  .chat-promptbar .pill-value {
    max-width: 54px;
  }
}

@media (max-width: 360px) {
  .chat-promptbar {
    --cpb-toolbar-gap: 2px;
  }

  .chat-promptbar .chat-promptbar-toolbar {
    gap: 2px;
  }

  .chat-promptbar .chat-promptbar-pill,
  .chat-promptbar .chat-setting-pill,
  .chat-promptbar .plus-menu-item.plus-menu-style-item {
    padding: 0 7px;
  }

  .chat-promptbar .chat-promptbar-model-button {
    max-width: 96px;
  }

  .chat-promptbar .chat-promptbar-model-label {
    max-width: 74px;
  }

  .chat-promptbar .pill-value {
    display: none;
  }
}

@container chat-promptbar (max-width: 680px) {
  .chat-promptbar .chat-promptbar-composer,
  .chat-promptbar .message-input-container.chat-promptbar-composer {
    --cpb-composer-padding: 14px 10px 10px 14px;
    --cpb-radius: 24px;
  }

  .chat-promptbar .chat-promptbar-toolbar {
    --cpb-toolbar-width: calc(100% - 44px);
    --cpb-toolbar-gap: 4px;
  }

  .chat-promptbar .chat-promptbar-composer,
  .chat-promptbar .message-input-container.chat-promptbar-composer {
    padding-left: 14px;
    padding-right: 10px;
    border-radius: 24px;
  }

  .chat-promptbar .chat-promptbar-toolbar {
    width: calc(100% - 44px);
    gap: 4px;
  }

  .chat-promptbar .chat-promptbar-overflowable {
    display: none !important;
  }

  .chat-promptbar .chat-promptbar-overflow-control {
    display: flex;
  }

  .chat-promptbar .chat-promptbar-pill,
  .chat-promptbar .chat-setting-pill,
  .chat-promptbar .plus-menu-item.plus-menu-style-item {
    height: 32px;
    padding: 0 9px;
    gap: 5px;
    font-size: 12.5px;
  }

  .chat-promptbar .chat-promptbar-add-images .chat-promptbar-label {
    display: none;
  }

  .chat-promptbar .chat-promptbar-model-button {
    max-width: 126px;
  }

  .chat-promptbar .chat-promptbar-model-label {
    max-width: 104px;
  }

  .chat-promptbar .chat-promptbar-send,
  .chat-promptbar .send-button.chat-promptbar-send,
  .chat-promptbar .dc-landing-submit.chat-promptbar-send {
    right: 10px;
    bottom: 10px;
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
}

@container chat-promptbar (max-width: 430px) {
  .chat-promptbar .chat-promptbar-toolbar {
    --cpb-toolbar-gap: 3px;
  }

  .chat-promptbar .chat-promptbar-toolbar {
    gap: 3px;
  }

  .chat-promptbar .chat-promptbar-model-button {
    max-width: 108px;
  }

  .chat-promptbar .chat-promptbar-model-label {
    max-width: 86px;
  }

  .chat-promptbar .chat-promptbar-overflow-label {
    display: none;
  }

  .chat-promptbar .chat-setting-pill {
    padding: 0 8px;
  }

  .chat-promptbar .pill-value {
    max-width: 54px;
  }
}

@container chat-promptbar (max-width: 360px) {
  .chat-promptbar .chat-promptbar-toolbar {
    --cpb-toolbar-gap: 2px;
  }

  .chat-promptbar .chat-promptbar-toolbar {
    gap: 2px;
  }

  .chat-promptbar .chat-promptbar-pill,
  .chat-promptbar .chat-setting-pill,
  .chat-promptbar .plus-menu-item.plus-menu-style-item {
    padding: 0 7px;
  }

  .chat-promptbar .chat-promptbar-model-button {
    max-width: 96px;
  }

  .chat-promptbar .chat-promptbar-model-label {
    max-width: 74px;
  }

  .chat-promptbar .pill-value {
    display: none;
  }
}

body[data-active-module="freeform"] .input-section,
body[data-active-module="freeform"] .input-section.no-project,
body[data-active-module="freeform"] .input-section.visible,
body[data-active-module="freeform"] .input-section.visible.loaded,
body[data-active-module="freeform"] #chatPromptBarMount,
body[data-active-module="freeform"] .chat-promptbar-mount,
body[data-active-module="freeform"] .chat-promptbar,
body[data-active-module="freeform"] .chat-promptbar-card,
body[data-active-module="freeform"] .chat-promptbar-composer,
body[data-active-module="freeform"] .input-container,
body[data-active-module="freeform"] .message-input-container,
body[data-active-module="freeform"] .prompt-bar-container,
body[data-active-module="freeform"] .image-input-container,
body[data-active-module="freeform"] #imageThumbStrip,
body[data-active-module="freeform"] .thumb-strip,
body[data-active-module="freeform"] .dc-centered-prompt-title {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: none !important;
}
