/* A maximized prompt must stay outside the canvas shell's clipping and animation. */
html:not([data-tauri-window]) .app-shell__content:has(.ai-dialog-float.is-expanded) {
  clip-path: none;
  overflow: visible;
  transition: none;
}
html .ai-dialog-float.is-expanded {
  position: fixed;
  inset: 0 !important;
  margin: auto;
  transform: none !important;
  box-sizing: border-box;
  width: min(960px, calc(100vw - 24px));
  height: min(680px, calc(100vh - 24px));
  height: min(680px, calc(100dvh - 24px));
  max-width: none;
  max-height: none;
  overflow-y: auto;
  animation: none;
  transition: none !important;
  background: var(--theme-surface, #20212a);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html .ai-dialog-expanded-backdrop {
  background: rgba(0, 0, 0, 0.24);
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  animation: none;
}
html .ai-dialog-float.is-expanded .prompt-input-wrap,
html .ai-dialog-float.is-expanded .mention-editor-wrap {
  min-width: 0;
  min-height: 0;
}
html .ai-dialog-float.is-expanded .prompt-editor {
  overflow-y: auto;
  overscroll-behavior: contain;
  overflow-wrap: anywhere;
}
