.selection-generate-drawer {
  box-sizing: border-box;
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  padding: 0;
  width: min(1040px, 92vw);
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  border: 0;
  border-radius: 18px 0 0 18px;
  background: #f7f8fa;
  color: #20242c;
  overflow: hidden;
  box-shadow: -16px 0 60px #18253826;
}
.selection-generate-drawer[open] { display: flex; flex-direction: column; }
.selection-generate-drawer::backdrop { background: #17233366; }
.selection-generate-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid #e4e7ec; background: white; }
.selection-generate-header div { min-width: 0; }
.selection-generate-header span { font-size: 12px; color: #6a7280; }
.selection-generate-header h2 { margin: 5px 0 0; font-size: 20px; overflow-wrap: anywhere; }
.selection-generate-header button { flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #e0e4e9; background: white; border-radius: 12px; font-size: 26px; cursor: pointer; }
.selection-generate-drawer iframe { width: 100%; flex: 1; min-height: 0; border: 0; background: #f7f8fa; }
.selection-compose-page { padding: 20px; max-width: 100%; box-sizing: border-box; }
.selection-compose-page .ai-compose-card { width: 100%; min-width: 0; box-sizing: border-box; }
.selection-compose-page .ai-compose-form { min-width: 0; }
.selection-compose-page input, .selection-compose-page select, .selection-compose-page textarea { max-width: 100%; min-width: 0; }
.selection-compose-page .ai-upload-chip { max-width: 100%; }
.selection-compose-page button, .selection-compose-page select { min-height: 44px; }
.selection-compose-success { padding: 48px 24px; text-align: center; }
.selection-compose-success h2 { font-size: 22px; line-height: 1.6; }
#selection-compose-error { color: #b42318; overflow-wrap: anywhere; }
.selection-row-actions { flex-wrap: wrap; }
.selection-row-actions [data-generate-selection] { min-height: 44px; }
@media (max-width: 600px) {
  .selection-generate-drawer { width: 100vw; border-radius: 0; }
  .selection-generate-header { padding: 12px 16px; }
  .selection-compose-page { padding: 10px; }
  .selection-compose-page .ai-form-grid { grid-template-columns: minmax(0, 1fr); }
}
