/* chatWorkspace.css */
.chat-workspace {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: calc(100vh - 92px);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: clip;
}
.chat-workspace * {
  box-sizing: border-box;
}
.chat-workspace button,
.chat-workspace input,
.chat-workspace textarea,
.chat-workspace select {
  font: inherit;
  color: inherit;
}
.chat-workspace button {
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.chat-workspace button:hover {
  background: var(--surface-soft);
}
.chat-workspace button:disabled {
  opacity: 0.45;
  cursor: default;
}
.chat-sidebar {
  background: var(--surface-subtle);
  border-right: 1px solid var(--line);
  padding: 14px 10px;
  min-width: 0;
}
.chat-sidebar-head {
  display: flex;
  justify-content: space-between;
}
.chat-sidebar-content > input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  margin: 18px 0 8px;
  padding: 9px;
  font-size: 12px;
}
.chat-sidebar-content > button {
  font-size: 12px;
  color: var(--muted);
}
.chat-list {
  margin-top: 14px;
}
.chat-list-row {
  display: flex;
  align-items: center;
  position: relative;
  border-radius: 8px;
}
.chat-list-row.selected {
  background: var(--surface-soft);
}
.chat-list-row > button {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  min-width: 0;
  font-size: 13px;
}
.chat-list-row summary {
  list-style: none;
  padding: 8px;
  cursor: pointer;
}
.chat-conversation-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 16px);
  overflow-y: auto;
  width: 180px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 6px;
  border-radius: 10px;
  z-index: 20;
}
.chat-list-row details button {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 13px;
}
.chat-workspace.folded {
  grid-template-columns: 48px minmax(0, 1fr);
}
.chat-workspace.folded .chat-sidebar-content,
.chat-workspace.folded .chat-sidebar-head span {
  display: none;
}
.chat-workspace.folded .chat-sidebar-head {
  flex-direction: column-reverse;
}
.chat-workspace.folded .chat-sidebar {
  padding: 12px 2px;
}
.chat-center {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.chat-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px;
  min-height: 46px;
  font-size: 12px;
  color: var(--muted);
}
.chat-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  flex: 1;
  min-width: 0;
}
.chat-conversation {
  padding: 0 36px 12px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 620px;
}
.chat-welcome {
  padding: 120px 0 100px;
  text-align: center;
}
.chat-welcome h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -1px;
}
.chat-composer-area {
  margin-top: auto;
  width: 100%;
  max-width: 1000px;
  align-self: center;
}
.chat-starters {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 18px;
}
.chat-starters small {
  color: var(--muted);
  font-size: 12px;
}
.chat-starters button {
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
}
.chat-composer {
  border: 1px solid var(--line-strong);
  border-radius: 21px;
  padding: 14px 14px 9px;
  box-shadow: 0 4px 22px #0071e308;
}
.chat-composer:focus-within {
  border-color: var(--blue);
}
.chat-composer textarea {
  border: 0;
  width: 100%;
  min-height: 60px;
  resize: vertical;
  background: transparent;
  font-size: 16px;
}
.chat-composer-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.chat-composer-tools button {
  font-size: 12px;
  padding: 7px;
}
.chat-model-send {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-model-send select {
  max-width: 180px;
  border: 0;
  background: var(--surface);
  font-size: 12px;
}
.chat-model-send [data-send] {
  background: var(--text);
  color: var(--surface);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 20px;
  padding: 0;
}
.chat-pricing {
  display: block;
  font-size: 11px;
  text-align: center;
  color: var(--muted);
  margin-top: 8px;
}
.chat-reference-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.chat-reference-list button {
  background: var(--surface-soft);
  font-size: 12px;
}
.chat-messages {
  max-width: 750px;
  align-self: center;
  width: 100%;
}
.chat-message {
  margin: 0 0 28px;
}
.chat-message small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 8px;
}
.chat-message.user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.chat-message.user > .chat-message-body {
  background: var(--surface-soft);
  border-radius: 14px;
  padding: 10px 16px;
  width: fit-content;
  max-width: 75%;
  box-sizing: border-box;
}
.chat-user-actions {
  justify-content: flex-end;
  align-items: center;
  opacity: 0;
  pointer-events: none;
}
.chat-user-actions time {
  color: var(--muted);
  font-size: 12px;
  margin-right: 4px;
}
.chat-message.user:hover .chat-user-actions,
.chat-message.user:focus-within .chat-user-actions {
  opacity: 1;
  pointer-events: auto;
}
@media (hover: none), (pointer: coarse), (max-width: 640px) {
  .chat-user-actions {
    opacity: 1;
    pointer-events: auto;
  }
}
.chat-message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.75;
  font-size: 16px;
}
.chat-message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  align-items: center;
}
.chat-message-actions button,
.chat-message-actions select {
  font-size: 12px;
  color: var(--muted);
}
.chat-notice {
  margin: 6px 22px 12px;
  min-height: 20px;
  font-size: 12px;
  color: var(--text-soft);
}
.chat-workspace.doc-open .chat-stage {
  grid-template-columns: minmax(300px, 0.85fr) minmax(350px, 1.15fr);
}
.chat-document {
  border-left: 1px solid var(--line);
  background: var(--surface-subtle);
  min-width: 0;
  padding-bottom: 15px;
}
.chat-doc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.chat-doc-head input {
  width: 110px;
  border: 0;
  background: transparent;
  font-weight: 500;
}
.chat-doc-head span {
  font-size: 11px;
  color: var(--muted);
  margin-right: auto;
}
.chat-doc-head button,
.chat-doc-tools button {
  font-size: 12px;
}
.chat-doc-tools {
  display: flex;
  flex-wrap: wrap;
  padding: 10px;
}
.chat-doc-body {
  display: block;
  width: calc(100% - 32px);
  margin: 0 16px 12px;
  min-height: 420px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  resize: vertical;
  line-height: 1.9;
  font-size: 15px;
}
.chat-doc-suggestion {
  margin: 12px 16px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.chat-doc-suggestion p {
  white-space: pre-wrap;
  text-decoration: line-through;
  font-size: 12px;
  color: var(--muted);
}
.chat-doc-suggestion textarea {
  width: 100%;
  min-height: 95px;
  background: var(--blue-soft);
  border: 0;
  border-radius: 5px;
  padding: 10px;
  resize: vertical;
}
.chat-doc-suggestion > div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.chat-doc-suggestion [data-apply] {
  background: var(--text);
  color: var(--surface);
}
.chat-doc-status {
  font-size: 12px;
  color: var(--muted);
  padding: 0 16px;
}
.chat-doc-versions {
  padding: 10px 16px;
}
.chat-doc-versions button {
  display: block;
  font-size: 12px;
}
.chat-workspace [hidden] {
  display: none !important;
}
@media (max-width: 1099px) {
  .chat-workspace.doc-open .chat-stage {
    grid-template-columns: minmax(0, 1fr);
  }
  .chat-workspace.doc-open:not(.show-chat) .chat-conversation {
    display: none;
  }
  .chat-workspace.doc-open.show-chat .chat-document {
    display: none;
  }
  .chat-conversation {
    padding: 0 22px 12px;
  }
  .chat-model-send {
    flex-basis: 100%;
    justify-content: flex-end;
  }
}
@media (min-width: 1100px) {
  .chat-workspace [data-chat-tab] {
    display: none;
  }
}
@media (max-width: 767px) {
  .chat-workspace {
    grid-template-columns: minmax(0, 1fr);
    position: relative;
  }
  .chat-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .chat-workspace:not(.folded) .chat-sidebar-content {
    padding-bottom: 18px;
  }
  .chat-workspace.folded {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .chat-conversation {
    padding: 0 12px 12px;
    min-height: 550px;
  }
  .chat-welcome {
    padding: 85px 0;
  }
  .chat-welcome h1 {
    font-size: 23px;
  }
  .chat-heading {
    padding: 8px 12px;
  }
  .chat-doc-body {
    margin: 0 10px;
    width: calc(100% - 20px);
    padding: 16px;
  }
  .chat-doc-tools {
    gap: 2px;
  }
  .chat-doc-tools button {
    padding: 7px;
  }
  .chat-starters button {
    font-size: 12px;
    text-align: left;
  }
}
.chat-sidebar-inner {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: var(--chat-sidebar-top, 12px);
  max-height: calc(100dvh - var(--chat-sidebar-top, 12px) - 28px);
}
.chat-sidebar-head {
  flex-shrink: 0;
}
.chat-sidebar-content {
  min-height: 0;
  overflow-y: auto;
}
.chat-history-title {
  display: block;
  margin: 16px 10px 4px;
  color: var(--muted);
}
@media (max-width: 767px) {
  .chat-workspace:not(.folded) .chat-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(280px, 85vw);
    z-index: 5;
    background: var(--surface);
    box-shadow: 8px 0 24px #0002;
  }
}
.chat-stream-preview {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  white-space: pre-wrap;
}
.chat-stream-preview small,
.chat-reply-status {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin: 8px 0;
}
.chat-workspace .chat-latest-reply {
  position: fixed;
  bottom: 22px;
  right: 32px;
  z-index: 10;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.chat-workspace [hidden] {
  display: none !important;
}
.chat-message-actions .chat-reply-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}
.chat-reply-action svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.chat-message-actions .chat-reply-action:hover,
.chat-message-actions .chat-reply-action:focus-visible {
  color: var(--text);
  background: var(--surface-subtle);
}
.chat-reply-action:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.chat-action-tooltip {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  padding: 5px 8px;
  border-radius: 6px;
  background: #202124;
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
  white-space: nowrap;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}
.chat-reply-action:hover .chat-action-tooltip,
.chat-reply-action:focus-visible .chat-action-tooltip {
  visibility: visible;
  opacity: 1;
}
@media (pointer: coarse) {
  .chat-message-actions .chat-reply-action {
    width: 44px;
    height: 44px;
  }
}
.chat-document-choice {
  width: min(420px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid #dfe2e6;
  border-radius: 12px;
  color: #202124;
  background: #fff;
}
.chat-document-choice::backdrop {
  background: rgb(0 0 0 / 25%);
}
.chat-document-choice p {
  margin: 0 0 20px;
  line-height: 1.7;
}
.chat-document-choice > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.chat-document-choice button {
  padding: 8px 12px;
  border: 1px solid #dfe2e6;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.chat-document-choice button:last-child {
  background: #202124;
  color: #fff;
}
.chat-doc-recovery {
  padding: 12px 16px;
  border-top: 1px solid #e3e5e9;
}
.chat-doc-recovery > strong,
.chat-doc-recovery > button {
  display: block;
  margin-bottom: 8px;
}
.chat-doc-recovery-preview textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 120px;
  margin: 8px 0;
  resize: vertical;
}
.workspace-shell .chat-workspace {
  --chat-sidebar-top: 88px;
}
@media (max-width: 820px) {
  .workspace-shell .chat-workspace {
    --chat-sidebar-top: 76px;
  }
}
.chat-reference-card {
  min-width: 0;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.chat-reference-card strong,
.chat-reference-card small {
  display: block;
  overflow-wrap: anywhere;
}
.chat-reference-card small {
  margin-top: 4px;
  color: var(--text-muted, #707580);
}
.chat-reference-tools {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.chat-reference-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 220px;
  overflow: auto;
  margin-top: 10px;
}
.chat-attachments {
  font-size: 12px;
}
.chat-attachments[hidden] {
  display: none;
}
.chat-attachment-card button,
.chat-attachment-menu button {
  font: inherit;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #333;
}
.chat-attachments [role=status] {
  color: #666;
  margin: 4px 0 8px;
}
.chat-attachments [role=status]:empty {
  display: none;
}
.chat-attachment-menu {
  display: flex;
  gap: 8px;
  padding: 8px;
}
.chat-attachment-menu[hidden] {
  display: none;
}
.chat-model-send option:disabled {
  color: #999;
}
.chat-attachment-preview {
  width: min(900px, 90vw);
  max-height: 85vh;
  padding: 24px;
  border: 1px solid #ddd;
  border-radius: 16px;
  color: #222;
  background: #fff;
}
.chat-attachment-preview::backdrop {
  background: #0005;
}
.chat-attachment-preview-body {
  max-height: 55vh;
  overflow: auto;
  margin: 16px 0;
}
.chat-attachment-preview-body pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-attachment-preview img {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
}
.chat-attachment-preview label {
  display: block;
  margin: 8px 0;
}
.chat-attachment-preview input:not([type=checkbox]) {
  min-width: 220px;
  padding: 6px;
}
.chat-attachment-preview button {
  margin: 6px;
  padding: 8px 14px;
}
.chat-attachment-mentions {
  display: flex;
  flex-direction: column;
  max-height: 180px;
  overflow: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
}
.chat-attachment-mentions[hidden] {
  display: none;
}
.chat-attachment-mentions button {
  padding: 8px 12px;
  border: 0;
  background: transparent;
  text-align: left;
}
.chat-attachment-mentions button:focus,
.chat-attachment-mentions button:hover {
  background: #eef2ff;
}
.chat-attachment-cards {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  max-height: 210px;
  overflow: auto;
  padding: 6px 4px;
}
.chat-attachment-cards:empty {
  display: none;
}
.chat-attachment-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  flex: 0 0 auto;
  max-width: 260px;
  border-radius: 10px;
}
.chat-attachment-card[hidden] {
  display: none;
}
.chat-attachment-file {
  min-height: 60px;
  padding: 8px 12px;
  background: #f5f5f5;
  max-width: 230px;
  box-sizing: border-box;
}
.chat-attachment-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 4px;
  flex: 1;
}
.chat-attachment-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 170px;
}
.chat-attachment-info small {
  color: #777;
  overflow-wrap: anywhere;
}
.chat-attachment-file-icon {
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  height: 34px;
  border-radius: 5px;
  background: white;
  color: #377454;
  font-size: 10px;
  font-weight: 600;
}
.chat-attachment-thumb {
  display: block;
  width: 60px;
  height: 60px;
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 9px;
  flex-shrink: 0;
  cursor: zoom-in;
}
.chat-attachment-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chat-attachment-card .chat-attachment-remove {
  position: absolute;
  right: -4px;
  top: -4px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  border: 2px solid white;
  border-radius: 50%;
  background: #444;
  color: white;
  font-size: 16px;
  line-height: 1;
  opacity: 0;
  cursor: pointer;
}
.chat-attachment-card:hover .chat-attachment-remove,
.chat-attachment-card:focus-within .chat-attachment-remove {
  opacity: 1;
}
@media (hover: none) {
  .chat-attachment-card .chat-attachment-remove {
    opacity: 1;
  }
}
.chat-attachment-warning {
  flex-basis: 100%;
  color: #8a5100;
  font-size: 12px;
}
.chat-file-dragging {
  position: relative;
}
.chat-file-dragging::after {
  content: "\677e\5f00\4ee5\6dfb\52a0\56fe\7247\6216\6587\4ef6  \b7  \652f\6301\56fe\7247\3001PDF\3001 Excel\3001Word";
  position: absolute;
  inset: 0;
  z-index: 20;
  background: #f5f8ffed;
  border: 2px dashed #7da5ff;
  border-radius: 16px;
  display: grid;
  place-items: center;
  pointer-events: none;
  padding: 24px;
}
.chat-image-lightbox {
  border: 0;
  width: calc(100vw - 32px);
  height: calc(100vh - 32px);
  max-width: none;
  max-height: none;
  padding: 0;
  background: #f8f9fa;
}
.chat-image-lightbox::backdrop {
  background: #0008;
}
.chat-image-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
}
.chat-image-viewport {
  height: calc(100% - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}
.chat-image-viewport img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  user-select: none;
}
.chat-image-controls {
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.chat-image-controls button,
.chat-image-close {
  background: white;
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
}
.chat-message-attachments {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 85%;
}
.chat-message-attachment {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 230px;
  min-width: 0;
  padding: 10px 12px;
  background: var(--surface-soft);
  border: 0;
  border-radius: 14px;
  box-sizing: border-box;
}
.chat-message-attachment .chat-attachment-info small {
  margin: 0;
  font-size: 12px;
}
.chat-message-attachment.chat-message-image {
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
}
.chat-message-attachment img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  display: block;
}
.chat-message.assistant .chat-message-body {
  white-space: normal;
}
.chat-message.assistant .chat-message-body h3 {
  font-size: 18px;
  line-height: 1.5;
  margin: 24px 0 12px;
  font-weight: 650;
}
.chat-message.assistant .chat-message-body > :first-child {
  margin-top: 0;
}
.chat-message.assistant .chat-message-body > div {
  margin: 8px 0;
}
.chat-message.assistant .chat-message-body > br {
  display: block;
  content: "";
  margin: 12px 0;
}
.chat-message.assistant .chat-message-body blockquote {
  border-left: 3px solid var(--line);
  padding-left: 12px;
  margin: 12px 0;
  color: var(--text-soft);
}
.chat-message.assistant .chat-message-body pre {
  white-space: pre;
  overflow: auto;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-soft);
  max-width: 100%;
}
.chat-reply-versions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}
.chat-workspace .chat-reply-versions button {
  width: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 20px;
}
.chat-reply-versions button:disabled {
  opacity: .35;
}
.chat-message.user .chat-message-actions {
  margin-top: 0;
}
@media (max-width: 640px) {
  .chat-message.user > .chat-message-body {
    max-width: 90%;
  }
  .chat-message-attachments {
    max-width: 95%;
  }
}
.chat-conversation.chat-file-dragging {
  position: relative;
}
.chat-generated-image {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0;
}
.chat-generated-image button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.chat-generated-image img {
  display: block;
  max-width: min(420px, 100%);
  max-height: 480px;
  border-radius: 12px;
  object-fit: contain;
}
.chat-generated-image a {
  font-size: 13px;
}
.chat-image-reference {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 13px;
}
.chat-image-reference[hidden] {
  display: none;
}
.chat-image-reference img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
}
.chat-image-reference button {
  margin-left: auto;
}
.chat-generated-preview {
  max-width: 95vw;
  max-height: 95vh;
  padding: 16px;
  border: 0;
  border-radius: 12px;
}
.chat-generated-preview::backdrop {
  background: #000b;
}
.chat-generated-preview img {
  display: block;
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
}
.chat-generated-preview button {
  display: block;
  margin: 0 0 12px auto;
}
