.studio-create:has(#studio-page:not([hidden])) > :is(.utilrow, nav.top) { display: none; }

.studio-create #studio-page {
  grid-template: auto minmax(0, 1fr) / minmax(0, 1fr) minmax(360px, 410px);
  grid-template-areas: "top top" "work panel";
  min-block-size: 100dvh;
}

.create-preview {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 16px 19px 20px;
  background: #100e0c;
}

.create-preview-bar { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 12px; padding-bottom: 10px; }
.create-preview-bar h2 { margin: 0; color: var(--studio-ash); font-size: 14px; font-weight: 600; }
.create-preview-bar .studio-button { min-block-size: 29px; padding: 4px 9px; font-size: 12px; }

.create-stage {
  display: grid;
  position: relative;
  min-height: 220px;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--studio-line);
  border-radius: 11px;
  background: radial-gradient(ellipse at 50% 65%, #2d2119, #110e0c 69%);
}

#sample-viewer, #sample-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.create-stage-status { position: relative; justify-self: center; align-self: end; margin: 0 0 14px; padding: 6px 12px; border-radius: 6px; background: var(--studio-panel); color: var(--studio-ash); }
.create-sample { justify-content: flex-start; }
.create-sample[aria-pressed="true"] { color: var(--studio-flame); border-color: var(--studio-ember); }
.create-sample img { width: 19px; height: 19px; object-fit: cover; border-radius: 4px; }

.create-panel { padding: 0; background: #1c1714; }
.create-panel .place-inner h1 { margin-bottom: 19px; }
.create-panel .workspace-panel-scroll { padding: 22px; }
.create-panel .workspace-panel-footer { padding-inline: 22px; }
.create-panel a { color: var(--studio-flame); }
.create-panel .place-field textarea { min-height: 100px; background: var(--studio-coal); }
.create-panel .place-field input[type="text"] { background: var(--studio-coal); }

@media (min-width: 821px) {
  .studio-create #studio-page { height: 100dvh; }
}

@media (max-width: 820px) {
  .studio-create #studio-page { grid-template: auto minmax(0, min(43dvh, 430px)) minmax(0, 1fr) / minmax(0, 1fr); grid-template-areas: "top" "work" "panel"; }
  .create-preview { padding: 9px 12px 13px; }
  .create-panel { border-inline-start: 0; border-top: 1px solid var(--studio-line); }
  .create-sample { padding-inline-end: 7px; font-size: 12px; }
}

.create-panel .create-flow { margin-top: 16px; }
.create-flow-choice { margin-top: 6px; border: 1px solid var(--studio-line); border-radius: 7px; }
.create-flow-choice:has(:checked) { border-color: #a7663f; background: var(--studio-raised); }
.create-flow-choice > label { display: flex; align-items: center; gap: 7px; padding: 8px; cursor: pointer; }
.create-flow-choice > label small { margin-inline-start: auto; color: var(--studio-ash); font-size: 11px; text-align: end; }
.create-flow input[type="radio"] { margin: 0; accent-color: var(--studio-ember); }
#create-steps { padding: 0 5px 5px; }
#create-access { padding-top: 8px; }
.create-preview-bar { flex-wrap: wrap; }

#picture-guide-dialog { max-height: 90dvh; width: min(580px, calc(100% - 24px)); overflow: auto; }
#picture-guide-content h3 { margin-block: 16px 6px; }
#picture-guide-content ul { padding-inline-start: 22px; }
#picture-guide-content li { margin-block: 5px; }

body.studio-create { height: 100dvh; overflow: hidden; }
.studio-create #studio-page { height: 100dvh; min-height: 0; }
.studio-create :is(.create-preview, .create-stage, .create-panel) { min-height: 0; }
#draft-fields > legend, #build-flow > legend, #prompt-field > label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.create-panel .place-segment { margin: 0 0 12px; }
.create-panel #prompt-guide { margin-top: 1px; }
.create-preview-bar { justify-content: flex-start; }


.create-upload-stage {
  min-width: 0;
  min-height: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--studio-line);
  border-radius: 11px;
  background: #191411;
  overflow: auto;
}
.create-upload-stage .create-picture-pair { width: min(100%, 630px); }
.create-upload-stage .place-drop { align-content: center; min-height: 155px; }
.create-upload-stage strong small { color: var(--studio-ash); font-weight: 400; }
.create-upload-stage > p { margin: 0; text-align: center; }

.create-prompt { position: relative; }
.create-panel .create-prompt textarea { display: block; padding-inline-end: 40px; }
.create-prompt-guide.studio-button {
  position: absolute;
  inset: 8px 8px auto auto;
  min-height: 25px;
  min-width: 25px;
  padding: 0;
  border-radius: 50%;
}

#training-notice { font-size: 11px; line-height: 1.4; }
