/* Generated from the app's PromptInput and ChatMessage styles. */

body.editor-ui { --prompt-surface-dark: #1f1f1f }

:root.scenvy-editor { --chat-output-size: var(--ui-type-reading); --chat-activity-size: var(--ui-type-caption); --chat-output-gap: 1rem }

body.editor-ui [data-prompt-field]:not([data-prompt-field="editorial"]) {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: space-between;
  min-width: 0;
  min-height: var(--ui-composer-height) !important;
  height: auto !important;
  max-height: none !important;
  gap: 8px !important;
  padding: var(--ui-composer-text-inset) var(--ui-composer-text-inset) var(--ui-composer-action-inset) !important;
  border: 0 !important;
  border-radius: var(--ui-radius) !important;
  background: var(--prompt-surface-light) !important;
  box-shadow: none !important;
}

.dark body.editor-ui [data-prompt-field]:not([data-prompt-field="editorial"]) {
  background: var(--prompt-surface-dark) !important;
}

body.editor-ui [data-prompt-field] .scenvy-prompt-text-region {
  flex: 0 0 auto;
  min-width: 0;
}

body.editor-ui [data-prompt-field] .scenvy-prompt-textarea {
  display: block;
  width: 100%;
  min-height: calc(1em * var(--ui-prompt-line-height)) !important;
  height: var(--prompt-input-height, calc(1em * var(--ui-prompt-line-height))) !important;
  max-height: calc(6 * 1em * var(--ui-prompt-line-height)) !important;
  padding: 0 !important;
  background: transparent !important;
  color: hsl(var(--scenvy-ui-foreground)) !important;
  font-size: 15px !important;
  line-height: var(--ui-prompt-line-height) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.editor-ui [data-prompt-field] .scenvy-prompt-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

body.editor-ui [data-prompt-field]:not([data-prompt-field="editorial"]) > .scenvy-prompt-actions {
  position: static;
  align-self: stretch;
  margin-inline: calc(var(--ui-composer-action-inset) - var(--ui-composer-text-inset));
}

body.editor-ui [data-prompt-field] .scenvy-attach-button {
  margin-inline-end: auto;
}

body.editor-ui [data-prompt-field] textarea:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

:root[data-focus-modality="keyboard"] body.editor-ui [data-prompt-field]:has(.scenvy-prompt-textarea:focus-visible) {
  outline: 2px solid hsl(var(--scenvy-ui-ring));
  outline-offset: 2px;
}

body.editor-ui [data-prompt-field] textarea,
body.editor-ui .scenvy-landing-prompt textarea,
body.editor-ui .scenvy-production-create textarea {
  background-color: transparent;
}

.dark body.editor-ui [data-prompt-field] textarea::placeholder {
  color: #a5a5a5 !important;
  opacity: 1;
}

:root body.editor-ui [data-prompt-field][data-prompt-tone="light"] {
  background: var(--prompt-surface-light) !important;
}

:root body.editor-ui [data-prompt-field][data-prompt-tone="dark"] {
  background: var(--prompt-surface-dark) !important;
}

:root body.editor-ui [data-prompt-field][data-prompt-tone="light"] textarea {
  color: #171717 !important;
}

:root body.editor-ui [data-prompt-field][data-prompt-tone="dark"] textarea {
  color: #f0f0f0 !important;
}

:root body.editor-ui [data-prompt-field][data-prompt-tone="light"] textarea::placeholder {
  color: #666 !important;
}

:root body.editor-ui [data-prompt-field][data-prompt-tone="dark"] textarea::placeholder {
  color: #a5a5a5 !important;
}

.scenvy-creation-composer .scenvy-landing-prompt [data-prompt-field] {
  position: relative;
  z-index: 1;
}

body.editor-ui [data-prompt-field] .scenvy-attach-button {
  width: var(--ui-control-size);
  height: var(--ui-control-size);
  min-height: var(--ui-control-size);
  flex: none;
  padding: 0;
  isolation: isolate;
}

body.editor-ui [data-prompt-field],
body.editor-ui [data-prompt-action="create"] {
  --prompt-edge-color: 0 0% 0%;
  --prompt-action-fill: #000;
  --prompt-action-ink: #fff;
  --prompt-idle-fill: #d2d2d2;
  --prompt-idle-ink: #595959;
}

.dark body.editor-ui [data-prompt-field],
.dark body.editor-ui [data-prompt-action="create"] {
  --prompt-edge-color: 0 0% 100%;
  --prompt-action-fill: #fff;
  --prompt-action-ink: #000;
  --prompt-idle-fill: #3a3a3a;
  --prompt-idle-ink: #909090;
}

body.editor-ui [data-prompt-field][data-prompt-tone="light"] {
  --prompt-edge-color: 0 0% 0%;
  --prompt-action-fill: #000;
  --prompt-action-ink: #fff;
  --prompt-idle-fill: #d2d2d2;
  --prompt-idle-ink: #595959;
}

body.editor-ui [data-prompt-field][data-prompt-tone="dark"] {
  --prompt-edge-color: 0 0% 100%;
  --prompt-action-fill: #fff;
  --prompt-action-ink: #000;
  --prompt-idle-fill: #3a3a3a;
  --prompt-idle-ink: #909090;
}

body.editor-ui [data-prompt-field] {
  position: relative;
  isolation: isolate;
}

body.editor-ui [data-prompt-field]::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg,
    hsl(var(--prompt-edge-color) / .24),
    hsl(var(--prompt-edge-color) / .08) 36%,
    hsl(var(--prompt-edge-color) / .04) 68%,
    hsl(var(--prompt-edge-color) / .16));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  content: "";
}

body.editor-ui :is(.scenvy-create-button, [data-prompt-action="create"]) {
  height: var(--ui-control-size) !important;
  min-height: var(--ui-control-size) !important;
  max-height: var(--ui-control-size) !important;
  border: 0 !important;
  border-radius: var(--ui-radius-circle) !important;
  position: relative;
  isolation: isolate;
  background: transparent !important;
  color: var(--prompt-idle-ink, hsl(var(--scenvy-ui-foreground))) !important;
  box-shadow: none !important;
  transform: none !important;
}

body.editor-ui :is(.scenvy-create-button, .scenvy-attach-button)::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: var(--ui-radius-circle);
  background-color: var(--prompt-button-fill, transparent);
  transition: background-color 150ms ease;
}

body.editor-ui :is(.scenvy-create-button, .scenvy-attach-button):enabled:is(:hover, :focus-visible)::before {
  background-color: color-mix(in srgb, currentColor 12%, var(--prompt-button-fill, transparent));
}

body.editor-ui .scenvy-create-button {
  --prompt-button-fill: var(--prompt-idle-fill);
  width: var(--ui-control-size);
  flex: none;
  padding: 0 !important;
}

body.editor-ui [data-prompt-field]:has(textarea:not(:placeholder-shown)) .scenvy-create-button {
  --prompt-button-fill: var(--prompt-action-fill);
}

body.editor-ui [data-prompt-field]:has(textarea:not(:placeholder-shown)) .scenvy-create-button,
body.editor-ui [data-prompt-action="create"] {
  color: var(--prompt-action-ink) !important;
}

body.editor-ui .scenvy-create-button:disabled { opacity: .5; }

.scenvy-editor .scenvy-chat-user-message { display: flex; justify-content: flex-end; min-width: 0; }

.scenvy-editor .scenvy-chat-user-message > :is(div, .wizard-chat-message-trigger) {
  box-sizing: border-box;
  block-size: var(--ui-control-size);
  max-width: min(80%, 38rem);
  padding-inline: 1rem;
  border-radius: var(--ui-radius);
  background: hsl(var(--scenvy-ui-chat-surface));
  color: hsl(var(--scenvy-ui-foreground));
  font-size: var(--chat-output-size);
  line-height: var(--ui-chat-line-height);
}

.scenvy-editor .scenvy-chat-user-message > div {
  align-content: safe center;
  overflow: auto;
  overflow-wrap: anywhere;
  scrollbar-width: thin;
  white-space: pre-wrap;
}

.scenvy-editor .scenvy-chat-user-message > div:focus-visible { outline: 2px solid hsl(var(--scenvy-ui-ring)); outline-offset: 2px; }

.scenvy-editor .scenvy-chat-assistant-message { min-width: 0; width: 100%; color: hsl(var(--scenvy-ui-foreground)); font-size: var(--chat-output-size); line-height: var(--ui-chat-line-height); overflow-wrap: anywhere; }

.scenvy-editor .scenvy-chat-assistant-message > div { white-space: pre-wrap; }

.scenvy-editor .scenvy-chat-assistant-message p + p { margin-top: .5rem; }
