/* The create route reuses the live composer and generation results. */
.create-view[hidden], .create-result-only, .create-result-prompt, .result-model-label { display: none; }
.result-toolbar .create-result-only { display: none; }
body.create-mode .hero,
body.create-mode [data-home-section],
body.create-mode .reference-footer,
body.create-mode .promo-bar { display: none !important; }
body.create-mode .main-content { height: 100dvh; min-height: 0; overflow: hidden; }
.create-view {
  --create-header-height: 66px;
  height: calc(100dvh - var(--create-header-height));
  display: flex; flex-direction: column; min-width: 0;
}
.create-history { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 24px 30px; }
.create-results-slot { width: min(720px, 100%); margin: 0 auto; }
.create-composer { flex: none; width: min(960px, calc(100% - 48px)); margin: 0 auto 14px; position: relative; z-index: 21; }
.create-panel-slot { min-width: 0; }
.create-panel-slot .creator-panel { width: 100%; border-radius: 8px; background: #1e1e20; box-shadow: none; }
.create-panel-slot .prompt-suggestions { display: none; }
.create-panel-slot .prompt-area { min-height: 100px; max-height: 22dvh; overflow-y: auto; padding-top: 16px; padding-bottom: 12px; overscroll-behavior: contain; }
.create-panel-slot #prompt { min-height: 70px; }
.create-panel-slot .reference-previews { max-height: 100px; overflow-y: auto; }
.create-panel-slot .creator-tabs { padding-right: 48px; }
.create-parameters-toggle {
  position: absolute; top: 10px; right: 12px; width: 30px; height: 30px;
  display: grid; place-items: center; border: 1px solid #353538; border-radius: 6px;
  color: #aaaab0; background: #29292b; z-index: 22;
}
.create-parameters-toggle svg { width: 16px; height: 16px; }
.create-parameters-toggle:hover, .create-parameters-toggle[aria-expanded="true"] { color: var(--yellow); border-color: #756726; }
.create-view:not(.parameters-expanded) .capability-fields { display: none !important; }
.create-panel-slot .capability-fields {
  order: -1 !important; display: grid !important; flex: 1 0 100% !important; width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important; max-height: 21dvh; overflow-y: auto; overscroll-behavior: contain;
  padding: 0 2px 4px !important; margin: 0 0 8px !important;
}
.create-panel-slot .capability-field { display: grid; gap: 5px; min-width: 0; }
.create-panel-slot .capability-field > span { position: static; width: auto; height: auto; margin: 0; padding: 0; overflow: visible; clip: auto; white-space: normal; color: var(--muted); font-size: 11px; }
.create-panel-slot .capability-field input,
.create-panel-slot .capability-field select,
.create-panel-slot .capability-field textarea { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.create-panel-slot .select-control .option-menu { top: auto; bottom: calc(100% + 8px); max-height: min(320px, 42dvh); overflow-y: auto; overscroll-behavior: contain; }
.create-panel-slot .creator-controls { padding: 12px 16px; }
.create-results-slot .generation-results { width: 100%; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.create-results-slot .generation-heading, .create-results-slot .generation-task-label { display: none; }
.create-results-slot .generation-task-list { gap: 28px; }
.create-results-slot .generation-task-head { margin-bottom: 12px; }
.create-results-slot [data-task-kind="history"] .generation-task-head { display: none; }
.create-results-slot .result-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.create-results-slot .result-card { display: flex; flex-direction: column; min-width: 0; overflow: visible; border: 0; background: transparent; border-radius: 0; }
.create-results-slot .create-result-prompt { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; min-width: 0; color: #8c8c96; }
.create-result-prompt > span { flex: none; padding: 3px 8px; background: #29292d; border-radius: 4px; font-size: 10px; color: #d1d1d6; }
.create-result-prompt p { margin: 0; min-width: 0; overflow-wrap: anywhere; font-size: 12px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.create-results-slot .result-image-wrap { width: min(300px, 100%); aspect-ratio: 1; height: auto; border-radius: 6px; overflow: hidden; }
.create-results-slot .result-index { display: none; }
.create-results-slot .result-image-wrap img, .create-results-slot .result-image-wrap video { width: 100%; height: 100%; object-fit: cover; }
.create-results-slot .result-caption { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 12px 0 0; }
.create-results-slot .result-caption > p { display: none; }
.create-results-slot .result-created-at { flex: 1 0 100%; order: 3; margin: 0; font-size: 10px; color: #696972; }
.create-results-slot .result-model-label { display: inline-flex; align-items: center; gap: 7px; margin-right: auto; min-width: 0; font-size: 11px; color: #aaaab4; overflow-wrap: anywhere; }
.create-results-slot .result-model-label svg { width: 13px; height: 13px; flex: none; }
.create-results-slot .result-toolbar { flex-wrap: wrap; }
.create-results-slot .create-result-only { display: grid; }
.create-results-slot .generation-loading { width: min(300px, 100%); aspect-ratio: 1; min-height: 0; }
.create-results-slot .generation-error { grid-column: auto; }
@media (max-width: 900px) {
  .create-panel-slot .capability-fields { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 760px) {
  .create-view { --create-header-height: 58px; }
  .create-history { padding: 16px 14px 24px; }
  .create-composer { width: calc(100% - 24px); margin-bottom: 10px; }
  .create-panel-slot .creator-controls { padding: 10px; gap: 6px; }
  .create-panel-slot .creator-controls { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .create-panel-slot .creator-controls > [data-select="model"] { grid-column: 1 / -1; width: 100%; }
  .create-panel-slot .creator-controls > [data-select="ratio"],
  .create-panel-slot .creator-controls > [data-select="size"] { grid-column: span 6; width: 100%; }
  .create-panel-slot .creator-controls > [data-select="count"] { grid-column: span 3; width: 100%; }
  .create-panel-slot .creator-controls .capability-fields { grid-column: 1 / -1; }
  .create-panel-slot .control-spacer { display: none; }
  .create-panel-slot .prompt-clear { grid-column: span 1; width: 100%; min-width: 0; }
  .create-panel-slot .credits { grid-column: span 3; justify-content: center; white-space: nowrap; min-width: 0; }
  .create-panel-slot .generate-button { grid-column: span 5; min-width: 0; width: 100%; padding: 0 8px; white-space: nowrap; }
  .create-panel-slot .prompt-area { min-height: 80px; padding: 12px; }
  .create-panel-slot #prompt { min-height: 56px; }
  .create-panel-slot .creator-tabs { gap: 16px; }
  .create-results-slot .result-toolbar { gap: 1px; }
  .create-results-slot .result-caption { gap: 6px; }
}
