/* The signed-in question flow. Decorative art stays outside the measured
   question pages so it cannot create an extra page or move the controls. */
html[data-ds-page="creator"] body.creator-editing {
  --ds-panel:#101f34;
  --ds-raised:#192d45;
  --ds-line:#73bfc180;
  --ds-text:#f4f8fc;
  --ds-muted:#c4d8e5;
  --ds-mint:#9af1e3;
  background:linear-gradient(180deg,#071222e8,#081426e3),
    url('/media/miami-night-boulevard-v1.webp') center 65% / cover no-repeat!important;
  color:#f4f8fc;
}

html[data-ds-page="creator"] body.creator-editing > main.wrap {
  width:min(100%,1080px);
  padding:8px 12px;
}

html[data-ds-page="creator"] body.creator-editing .studio[data-phase="1"] .controls {
  position:relative;
  isolation:isolate;
  gap:8px;
  padding:clamp(12px,2vw,22px);
  border:1px solid #8be4df55;
  border-radius:22px;
  background:linear-gradient(135deg,#102239f7,#10192df5 70%);
  box-shadow:inset 0 1px 0 #c7fff21a,0 14px 42px #02081235;
}

html[data-ds-page="creator"] body.creator-editing #designGuide {
  min-width:0;
  gap:10px;
}

html[data-ds-page="creator"] body.creator-editing .guide-head {
  min-height:26px;
  gap:16px;
  padding:0 0 8px;
  border-bottom:1px solid #9bcbd324;
}

html[data-ds-page="creator"] body.creator-editing .guide-head strong {
  color:#aff4eb;
  font-size:14px;
  font-weight:800;
  letter-spacing:.02em;
}

html[data-ds-page="creator"] body.creator-editing #guideProgress {
  width:clamp(90px,27%,180px);
  height:6px;
  border:0;
  border-radius:10px;
  overflow:hidden;
  background:#23374f;
  accent-color:#a6f0e5;
}
html[data-ds-page="creator"] body.creator-editing #guideProgress::-webkit-progress-bar {background:#23374f;border-radius:10px}
html[data-ds-page="creator"] body.creator-editing #guideProgress::-webkit-progress-value {background:linear-gradient(90deg,#8ae8e4,#efabd1);border-radius:10px}
html[data-ds-page="creator"] body.creator-editing #guideProgress::-moz-progress-bar {background:linear-gradient(90deg,#8ae8e4,#efabd1);border-radius:10px}

html[data-ds-page="creator"] body.creator-editing .guide-tile {
  --question-art:none;
  --question-art-size:auto 92%;
  --question-art-opacity:.72;
  position:relative;
  isolation:isolate;
  min-width:0;
}

html[data-ds-page="creator"] body.creator-editing #designGuide[data-step="1"] .guide-tile:not([hidden]) {
  --question-art:url('/media/reveal-daylight.webp');
}
html[data-ds-page="creator"] body.creator-editing #designGuide[data-step="2"] .guide-tile:not([hidden]) {
  --question-art:url('/media/reveal-daylight.webp');
  --question-art-opacity:.12;
}
html[data-ds-page="creator"] body.creator-editing #designGuide[data-step="3"] .guide-tile:not([hidden]) {
  --question-art:url('/media/reveal-street-cgm.webp');
  --question-art-size:auto 88%;
}
html[data-ds-page="creator"] body.creator-editing #designGuide[data-step="4"] .guide-tile:not([hidden]) {
  --question-art:url('/media/reveal-pet-city.webp');
  --question-art-size:auto 85%;
}
html[data-ds-page="creator"] body.creator-editing #designGuide[data-step="5"] .guide-tile:not([hidden]) {
  --question-art:url('/media/reveal-sneaker.webp');
  --question-art-size:95% auto;
  --question-art-opacity:.12;
}
html[data-ds-page="creator"] body.creator-editing #designGuide[data-step="6"] .guide-tile:not([hidden]) {
  --question-art:url('/media/miami-product-collage-v1.webp');
  --question-art-size:96% auto;
  --question-art-opacity:.16;
}

html[data-ds-page="creator"] body.creator-editing .guide-tile::after {
  content:"";
  position:absolute;
  z-index:0;
  pointer-events:none;
  right:4%;
  bottom:7px;
  width:72%;
  height:min(48%,220px);
  background-image:var(--question-art);
  background-position:center bottom;
  background-size:var(--question-art-size);
  background-repeat:no-repeat;
  opacity:var(--question-art-opacity);
  filter:drop-shadow(0 0 13px #6adbd227);
}

html[data-ds-page="creator"] body.creator-editing .question-pages {
  position:relative;
  z-index:1;
  min-width:0;
}

/* Dense answers remain a normal vertical form within the available space.
   Back and Next live outside this scroll area, so they stay in view. */
html[data-ds-page="creator"] body.creator-editing .guide-tile .question-pages {
  column-count:auto;
  column-width:auto;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#598b9c #101d31;
  padding-bottom:10px;
}

html[data-ds-page="creator"] body.creator-editing .guide-tile :is(h3,#promptLabel) {
  display:block;
  margin:4px 0 12px;
  color:#f4f9fc;
  font-size:clamp(22px,5.3vw,30px);
  font-weight:850;
  line-height:1.18;
  letter-spacing:-.025em;
  text-shadow:0 2px 7px #071323;
}

html[data-ds-page="creator"] body.creator-editing .guide-tile label {
  color:#e4f0f6;
  font-size:16px;
  line-height:1.35;
}

html[data-ds-page="creator"] body.creator-editing .guide-tile :is(textarea,input[type="text"],select),
html[data-ds-page="creator"] body.creator-editing #upPane textarea {
  width:100%;
  min-width:0;
  margin:4px 0 10px;
  padding:12px;
  border:1px solid #7dc8cd80;
  border-radius:14px;
  background:#0b172a;
  color:#f4f8fc;
  font-size:16px;
  line-height:1.45;
  box-shadow:inset 0 2px 5px #02081235;
  caret-color:#9af1e3;
}

html[data-ds-page="creator"] body.creator-editing .guide-tile :is(textarea,input)::placeholder {
  color:#b5c7d8;
  opacity:1;
}

html[data-ds-page="creator"] body.creator-editing .guide-tile :is(textarea,input,select):focus-visible {
  outline:2px solid #a6f3e6;
  outline-offset:2px;
  border-color:#a6f3e6;
  box-shadow:0 0 0 4px #8ce6df16;
}

html[data-ds-page="creator"] body.creator-editing .guide-tile textarea {height:clamp(68px,12dvh,110px);min-height:52px}
html[data-ds-page="creator"] body.creator-editing .studio[data-phase="1"] #idea {height:clamp(98px,16dvh,140px);min-height:88px}

html[data-ds-page="creator"] body.creator-editing .guide-word-choice label {
  min-height:44px;
  padding:9px 12px;
  background:#15283d;
  border:1px solid #75b9c185;
  border-radius:12px;
  font-size:16px;
}
html[data-ds-page="creator"] body.creator-editing .guide-word-choice label:has(input:checked) {background:#193d49;border-color:#a6f0e5}
html[data-ds-page="creator"] body.creator-editing .guide-word-choice input {accent-color:#a6f0e5}

/* Word placement is a compact visual choice, with the original radio values. */
html[data-ds-page="creator"] body.creator-editing .guide-placement-options {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
  min-width:0;
  margin:8px 0 12px;
  padding:0;
  border:0;
}
html[data-ds-page="creator"] body.creator-editing .guide-placement-options legend {margin:0 0 7px;padding:0;color:#dbeaf2;font-size:14px;font-weight:700}
html[data-ds-page="creator"] body.creator-editing .guide-placement-options .guide-placement-choice {
  position:relative;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  min-width:0;
  min-height:91px;
  margin:0;
  padding:57px 5px 9px;
  border:1px solid #79b7c278;
  border-radius:12px;
  background:#13273c;
  color:#d9eaf2;
  font-size:14px;
  font-weight:750;
  line-height:1.15;
  text-align:center;
  cursor:pointer;
}
html[data-ds-page="creator"] body.creator-editing .guide-placement-choice input {position:absolute;left:7px;top:7px;margin:0;width:15px;height:15px;accent-color:#a6f0e5}
html[data-ds-page="creator"] body.creator-editing .guide-placement-choice::before {content:"";position:absolute;top:23px;left:calc(50% - 15px);width:30px;height:23px;border:1px solid #72b5c178;border-radius:5px;background:radial-gradient(circle at 67% 28%,#f0bf946b 0 12%,transparent 13%),linear-gradient(150deg,transparent 53%,#409294 54% 70%,#24566f 71%),#203b54}
html[data-ds-page="creator"] body.creator-editing .guide-placement-choice::after {content:"";position:absolute;left:calc(50% - 12px);width:24px;height:3px;border-radius:3px;background:#f3b6d4;box-shadow:0 0 5px #f3b6d43b}
html[data-ds-page="creator"] body.creator-editing .guide-placement-choice:has(input[value="Above"])::after {top:15px}
html[data-ds-page="creator"] body.creator-editing .guide-placement-choice:has(input[value="Below"])::after {top:50px}
html[data-ds-page="creator"] body.creator-editing .guide-placement-choice:has(input[value="In the picture"])::after {top:33px}
html[data-ds-page="creator"] body.creator-editing .guide-placement-choice:has(input:checked) {border-color:#a4f1e4;background:#1c414b;box-shadow:inset 0 0 0 1px #a4f1e42e;color:#f3fcfc}
html[data-ds-page="creator"] body.creator-editing .guide-placement-choice:has(input:focus-visible) {outline:3px solid #b6f4e9;outline-offset:2px}

/* A palette is intentionally scrollable inside its question, rather than
   splitting an unbreakable grid into the legacy horizontal pager columns. */
html[data-ds-page="creator"] body.creator-editing .guide-colors-tile .question-pages {
  column-count:auto;
  column-width:auto;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#598b9c #101d31;
  padding-right:4px;
  padding-bottom:10px;
}
html[data-ds-page="creator"] body.creator-editing .guide-palette {display:grid;gap:10px;min-width:0;margin:8px 0}
html[data-ds-page="creator"] body.creator-editing .guide-color-group {min-width:0;margin:0;padding:0;border:0}
html[data-ds-page="creator"] body.creator-editing .guide-color-group legend {display:block;width:100%;padding:0;margin:0 0 5px;color:#cce4ee;font-size:13px;font-weight:800;line-height:1.3}
html[data-ds-page="creator"] body.creator-editing .guide-color-grid {display:grid;grid-template-columns:repeat(6,minmax(44px,1fr));gap:4px;min-width:0}
html[data-ds-page="creator"] body.creator-editing .guide-color-grid .guide-color-option {
  position:relative;
  display:grid;
  box-sizing:border-box;
  grid-template-rows:18px auto;
  align-content:start;
  justify-items:center;
  gap:1px;
  min-width:0;
  min-height:44px;
  margin:0;
  padding:3px 2px 2px;
  border:1px solid #749cac70;
  border-radius:9px;
  background:#112237;
  color:#dfedf4;
  font-size:12px;
  font-weight:650;
  line-height:1.15;
  text-align:center;
  cursor:pointer;
}
html[data-ds-page="creator"] body.creator-editing .guide-color-option input {position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}
html[data-ds-page="creator"] body.creator-editing .guide-color-option .guide-color-swatch {display:block;width:24px;height:18px;max-width:100%;border:1px solid #ffffff82;border-radius:5px;background:var(--swatch,#668);box-shadow:0 2px 5px #0207113b}
html[data-ds-page="creator"] body.creator-editing .guide-color-option .guide-color-name {display:block;max-width:100%;font-size:clamp(10px,2.65vw,11px);line-height:1;white-space:pre;overflow-wrap:normal;word-break:normal}
html[data-ds-page="creator"] body.creator-editing .guide-color-option:has(input:checked) {border-color:#abf5e6;background:#20464d;box-shadow:inset 0 0 0 1px #abf5e65c;color:#fff}
html[data-ds-page="creator"] body.creator-editing .guide-color-option:has(input:checked)::after {content:"✓";position:absolute;top:1px;right:1px;display:grid;place-items:center;width:15px;height:15px;border-radius:50%;background:#d5fff1;color:#12372f;font-size:11px;font-weight:900;line-height:1;pointer-events:none}
html[data-ds-page="creator"] body.creator-editing .guide-color-option:has(input:focus-visible) {outline:3px solid #b3f3e7;outline-offset:2px}
html[data-ds-page="creator"] body.creator-editing .guide-color-option:has(input:disabled) {opacity:.55;cursor:default}
html[data-ds-page="creator"] body.creator-editing .guide-palette-tools {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:3px 0;color:#d2e8ef;font-size:14px}
html[data-ds-page="creator"] body.creator-editing #guideColorCount {font-size:14px;font-weight:750;color:#b1eee5}
html[data-ds-page="creator"] body.creator-editing #clearGuideColors {min-height:44px;padding:8px 12px;border:1px solid #81b6c384;border-radius:11px;background:#1a2d44;color:#e9f4f9;font-size:14px}
html[data-ds-page="creator"] body.creator-editing #guideLegacyColors:not([hidden]) {padding:10px;border:1px solid #efb7d15e;border-radius:12px;background:#25243b;color:#e5dae9;font-size:14px;line-height:1.4}

/* Custom names and swatches use the same five choices. Chips retain a clear
   remove action without reducing the palette's touch areas. */
html[data-ds-page="creator"] body.creator-editing .guide-colors-tile h3 {margin-bottom:6px}
html[data-ds-page="creator"] body.creator-editing .guide-palette-help {margin:0 0 3px;color:#bfd1df;font-size:13px;line-height:1.25}
html[data-ds-page="creator"] body.creator-editing .guide-custom-entry {display:grid;grid-template-columns:58px minmax(0,1fr) 44px;align-items:center;gap:6px;min-width:0;margin:5px 0}
html[data-ds-page="creator"] body.creator-editing .guide-custom-entry > label {grid-column:auto;margin:0;color:#dbeaf2;font-size:12px;font-weight:700;line-height:1.2}
html[data-ds-page="creator"] body.creator-editing #guideCustomColor {box-sizing:border-box;min-height:44px;width:100%;min-width:0;margin:0;padding:8px 10px;border-radius:10px;font-size:16px}
html[data-ds-page="creator"] body.creator-editing #addGuideCustomColor {min-width:44px;min-height:44px;width:100%;margin:0;padding:7px;border:1px solid #8acac7;border-radius:10px;background:#1d424c;color:#e7fff8;font-size:14px;font-weight:800}
html[data-ds-page="creator"] body.creator-editing #guideSelectedColors:not([hidden]) {display:flex;flex-wrap:wrap;gap:4px;min-width:0;margin:4px 0}
html[data-ds-page="creator"] body.creator-editing #guideSelectedColors .guide-selected-color {display:inline-flex;align-items:center;gap:4px;box-sizing:border-box;min-height:44px;min-width:44px;max-width:100%;width:auto;margin:0;padding:4px 7px;border:1px solid #87c9c580;border-radius:9px;background:#17323f;color:#f1fafb;font-size:12px;font-weight:700;line-height:1.2;text-align:left}
html[data-ds-page="creator"] body.creator-editing .guide-selected-color > span:not(.guide-selected-swatch):not(.guide-color-remove) {min-width:0;overflow-wrap:anywhere}
html[data-ds-page="creator"] body.creator-editing .guide-selected-swatch {flex:none;display:block;width:14px;height:14px;border:1px solid #ffffff78;border-radius:4px;background:var(--swatch)}
html[data-ds-page="creator"] body.creator-editing .guide-color-remove {flex:none;margin-left:1px;color:#ffe0ed;font-size:18px;line-height:1}
html[data-ds-page="creator"] body.creator-editing #guidePaletteStatus:empty {display:none}
html[data-ds-page="creator"] body.creator-editing #guidePaletteStatus {margin:6px 0;color:#cbece6;font-size:13px;line-height:1.3}
html[data-ds-page="creator"] body.creator-editing :is(#addGuideCustomColor,.guide-selected-color,.guide-detail-suggestion):focus-visible {outline:3px solid #b3f3e7;outline-offset:2px}

html[data-ds-page="creator"] body.creator-editing #guideDetailSuggestions {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;min-width:0;margin:6px 0 8px}
html[data-ds-page="creator"] body.creator-editing #guideDetailSuggestions .guide-detail-suggestion {display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:0;min-height:44px;width:100%;margin:0;padding:7px 5px;border:1px solid #77b4c175;border-radius:12px;background:#172e43;color:#e4f3f6;font-size:14px;font-weight:650;line-height:1.15;text-align:center}
html[data-ds-page="creator"] body.creator-editing #guideDetailSuggestions .guide-detail-suggestion:not(:disabled):hover {border-color:#a8eddd;background:#21444c}
html[data-ds-page="creator"] body.creator-editing #guideDetailSuggestions .guide-detail-suggestion:disabled {opacity:.55}
html[data-ds-page="creator"] body.creator-editing .guide-inspiration-label {margin:5px 0;color:#c4dce5;font-size:14px;line-height:1.3}

html[data-ds-page="creator"] body.creator-editing .guide-photo-entry {margin-top:8px}
html[data-ds-page="creator"] body.creator-editing #photoAddArea:not([hidden]) {display:flex;flex-direction:column;align-items:stretch;gap:9px;width:100%;min-width:0;margin:0;text-align:left}
html[data-ds-page="creator"] body.creator-editing #photoAddArea #photoOptions {display:flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:48px;margin:0;padding:11px 12px;font-size:16px;line-height:1.3}
html[data-ds-page="creator"] body.creator-editing #photoAddArea #photoHelp {width:100%;min-width:0;margin:0;color:#bfd3e0;font-size:14px;line-height:1.4;text-align:left}
html[data-ds-page="creator"] body.creator-editing .guide-photo-card:not([hidden]) {margin:8px 0 12px;padding:12px;border:1px solid #86c8cd69;border-radius:14px;background:#0c1a2e}
html[data-ds-page="creator"] body.creator-editing .guide-photo-card .refRow {display:flex;align-items:center;gap:12px;min-width:0}
html[data-ds-page="creator"] body.creator-editing .guide-photo-card #refThumb {flex:none;width:62px;height:62px;object-fit:cover;border:1px solid #8ad4d15e;border-radius:10px;background:#142840}
html[data-ds-page="creator"] body.creator-editing .guide-photo-card #refName {min-width:0;font-size:14px;line-height:1.3;overflow-wrap:anywhere}
html[data-ds-page="creator"] body.creator-editing .guide-photo-actions {display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
html[data-ds-page="creator"] body.creator-editing .guide-photo-actions :is(button,label) {min-height:44px;padding:9px 12px;border:1px solid #81b6c384;border-radius:11px;background:#1a2d44;color:#e9f4f9;font-size:14px;line-height:1.3}
html[data-ds-page="creator"] body.creator-editing .guide-photo-age {margin-top:12px;padding-top:10px;border-top:1px solid #8cbcc82b}
html[data-ds-page="creator"] body.creator-editing .guide-photo-age label {font-size:14px}
html[data-ds-page="creator"] body.creator-editing .guide-photo-age select {min-height:44px;margin-bottom:0}

html[data-ds-page="creator"] body.creator-editing :is(#photoOptions,#guideAddPhrase,#guideRemovePhrase,.question-pager button,.creator-utilities button) {
  min-height:44px;
  background:#192e46;
  border:1px solid #86becb8a;
  border-radius:12px;
  color:#eaf5fa;
  font-size:14px;
  line-height:1.25;
  padding:9px 12px;
}

html[data-ds-page="creator"] body.creator-editing .guide-nav {
  position:relative;
  z-index:2;
  gap:10px;
  padding-top:6px;
}
html[data-ds-page="creator"] body.creator-editing .guide-nav button:not([hidden]) {min-height:48px;font-size:17px;line-height:1.25;border-radius:14px}
html[data-ds-page="creator"] body.creator-editing #guideBack {border:1px solid #81bdc48a;background:#192c43;color:#eaf3f9}
html[data-ds-page="creator"] body.creator-editing .guide-nav :is(#guideNext,#generate) {border:1px solid #b6fff0;background:linear-gradient(105deg,#96eddd,#b6eee9);color:#092d34;box-shadow:0 0 16px #76dfd414}
html[data-ds-page="creator"] body.creator-editing .guide-nav button:disabled {box-shadow:none}

html[data-ds-page="creator"] body.creator-editing #guideSummary {background:#0c192de8;border:1px solid #78bdc15e;border-radius:14px;color:#e9f3f8;padding:12px;font-size:16px;line-height:1.5}
html[data-ds-page="creator"] body.creator-editing .review-anticipation {position:relative;display:flex;align-items:center;gap:10px;margin:1px 0 10px;padding:10px 12px;border:1px solid #9ddbd43b;border-radius:13px;background:linear-gradient(120deg,#193a436b,#30294352);color:#eafaf5}
html[data-ds-page="creator"] body.creator-editing .review-anticipation::before {content:"";flex:none;width:8px;height:8px;border-radius:50%;background:#a9f5df;box-shadow:0 0 12px #8de4dc66}
html[data-ds-page="creator"] body.creator-editing .review-anticipation:has(.review-spark)::before {display:none}
html[data-ds-page="creator"] body.creator-editing .review-anticipation .review-spark {color:#efb5d5;font-size:20px;line-height:1;text-shadow:0 0 10px #eea5cf2e}
html[data-ds-page="creator"] body.creator-editing .review-anticipation :is(h3,strong) {margin:0;color:#eafaf5;font-size:19px;line-height:1.2;letter-spacing:-.01em}
html[data-ds-page="creator"] body.creator-editing .review-anticipation p {margin:3px 0 0;color:#c9dfe5;font-size:14px;line-height:1.3}
html[data-ds-page="creator"] body.creator-editing .review-anticipation img {flex:none;max-width:44px;height:44px;object-fit:contain}
/* The overview stays short; the complete brief remains available on demand.
   Saved-answer reassurance sits with credits outside this scrollable panel. */
html[data-ds-page="creator"] body.creator-editing #designGuide[data-step="6"] {gap:6px}
html[data-ds-page="creator"] body.creator-editing .guide-review-tile .review-anticipation {margin:0 0 5px;padding:0;border:0;background:none;gap:6px;font-size:12px;font-weight:800;letter-spacing:.09em;line-height:1.4;color:#b6eae3}
html[data-ds-page="creator"] body.creator-editing .guide-review-tile .review-anticipation .review-spark {font-size:16px}
html[data-ds-page="creator"] body.creator-editing .guide-review-tile h3 {margin:0 0 10px;font-size:clamp(22px,5.4vw,28px);line-height:1.15}
html[data-ds-page="creator"] body.creator-editing .guide-review-tile #guideSummary {margin:0;padding:10px 12px;font-size:15px;line-height:1.3;white-space:normal}
html[data-ds-page="creator"] body.creator-editing #guideSummary .review-overview {display:grid;grid-template-columns:55px minmax(0,1fr);gap:6px 8px;margin:0}
html[data-ds-page="creator"] body.creator-editing #guideSummary dt {margin:0;color:#a9d7dd;font-size:14px;font-weight:750;line-height:1.4}
html[data-ds-page="creator"] body.creator-editing #guideSummary dd {min-width:0;margin:0;color:#edf5fa;overflow-wrap:anywhere}
html[data-ds-page="creator"] body.creator-editing #guideSummary .review-overview dd {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:15px;line-height:1.3}
html[data-ds-page="creator"] body.creator-editing #guideSummary .review-full {margin:9px 0 0;padding:0;border:0;border-top:1px solid #8ac4cd2e;border-radius:0;background:none}
html[data-ds-page="creator"] body.creator-editing #guideSummary .review-full > summary {display:flex;align-items:center;justify-content:space-between;gap:8px;box-sizing:border-box;min-height:44px;margin:0;padding:8px 0;color:#b7f4e9;font-size:14px;font-weight:750;line-height:1.3;cursor:pointer;list-style:none}
html[data-ds-page="creator"] body.creator-editing #guideSummary .review-full > summary::-webkit-details-marker {display:none}
html[data-ds-page="creator"] body.creator-editing #guideSummary .review-full > summary::after {content:"+";font-size:22px;line-height:1}
html[data-ds-page="creator"] body.creator-editing #guideSummary .review-full[open] > summary::after {content:"−"}
html[data-ds-page="creator"] body.creator-editing #guideSummary .review-full > summary:focus-visible {outline:2px solid #b3f3e7;outline-offset:2px;border-radius:5px}
html[data-ds-page="creator"] body.creator-editing #guideSummary .review-all-answers {display:grid;gap:3px;margin:0 0 6px;padding-top:5px;border-top:1px solid #8ac4cd2e}
html[data-ds-page="creator"] body.creator-editing #guideSummary .review-all-answers dd {margin:0 0 10px;font-size:16px;line-height:1.4;white-space:pre-wrap}
html[data-ds-page="creator"] body.creator-editing #reviewCreditState .review-saved-note {margin:4px 0 0;color:#b9cedd;font-size:13px;line-height:1.3}
html[data-ds-page="creator"] body.creator-editing .guide-review-tile :is(.review-intro,.review-saved-note) {margin:5px 0 9px;color:#c7dce6;font-size:14px;line-height:1.35}
html[data-ds-page="creator"] body.creator-editing #designGuide[data-step="6"] .guide-nav {display:grid;grid-template-columns:60px minmax(0,1fr)}
html[data-ds-page="creator"] body.creator-editing #designGuide[data-step="6"] #guideBack {width:100%;min-width:0;padding:8px 5px;font-size:15px}
html[data-ds-page="creator"] body.creator-editing #generate:not([hidden]) {display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;justify-content:center;gap:6px;min-width:0;padding:9px 10px;text-align:center}
html[data-ds-page="creator"] body.creator-editing #generate .ds-credit-token {display:block;width:22px;height:22px;min-width:22px;object-fit:contain;margin:0}
html[data-ds-page="creator"] body.creator-editing #generate .generate-label {min-width:0;font-size:15px;font-weight:850;line-height:1.15;white-space:nowrap}
html[data-ds-page="creator"] body.creator-editing #generate .generate-cost {white-space:nowrap;padding-left:6px;border-left:1px solid #244f5645;font-size:13px;font-weight:750;line-height:1.2}
html[data-ds-page="creator"] body.creator-editing #reviewCreditState {margin:8px 0;color:#c7e8df;font-size:14px;line-height:1.4}
html[data-ds-page="creator"] body.creator-editing #reviewCreditState > p {margin:0}
html[data-ds-page="creator"] body.creator-editing #reviewCreditClock:not([hidden]) {margin-top:4px}
html[data-ds-page="creator"] body.creator-editing :is(#reviewCreditRetry,#reviewCreditBuy):not([hidden]) {display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;max-width:100%;margin:4px 5px 4px 0;padding:8px 12px;border:1px solid #90c9cb85;border-radius:10px;background:#1d3449;color:#eaf8f6;font-size:14px;font-weight:750;line-height:1.25;text-decoration:none}
html[data-ds-page="creator"] body.creator-editing #guideError:not(:empty) {position:relative;z-index:2;color:#ffcedb;background:#351d30;border:1px solid #da96ad70;border-radius:10px;padding:7px 10px;font-size:14px}
html[data-ds-page="creator"] body.creator-editing .question-pager {position:relative;z-index:2;color:#cce5ed;font-size:14px}
html[data-ds-page="creator"] body.creator-editing .creator-utilities {gap:9px;padding-top:2px;flex-wrap:wrap}
html[data-ds-page="creator"] body.creator-editing :is(.note,.optional,.guide-help,.guide-hint) {color:#bfd1df;font-size:14px;line-height:1.4}

/* The sign-in prompt and file helpers share the form's calm, solid surface. */
html[data-ds-page="creator"] body :is(#signInDialog,#photoDialog) {
  border:1px solid #8de4df85;
  border-radius:20px;
  background:linear-gradient(145deg,#142840,#101a30);
  color:#edf7fa;
  box-shadow:0 24px 70px #02071480;
}
html[data-ds-page="creator"] body :is(#signInDialog,#photoDialog)::backdrop {background:#030b19cc;backdrop-filter:blur(5px)}
html[data-ds-page="creator"] body #signInDialog #signInTitle {color:#f3fafc;font-size:28px;line-height:1.15}
html[data-ds-page="creator"] body #signInDialog p {color:#d5e5ee;font-size:16px}
html[data-ds-page="creator"] body #signInDialog .signInAction {border:1px solid #b6fff0;background:#a2eee1;color:#082c33;border-radius:14px;font-size:16px;min-height:50px}
html[data-ds-page="creator"] body #signInDialog #signInDismiss {border-color:#8cc4d082;background:#192e46;color:#ecf7fb;font-size:16px}

/* The legacy studio keeps a 720px cap and start-aligned children. Release
   both on desktop before dividing the question into form and artwork rails. */
@media(min-width:840px) {
  html[data-ds-page="creator"] body.creator-editing .studio[data-phase="1"] {width:100%;max-width:none;align-items:stretch}
  html[data-ds-page="creator"] body.creator-editing .studio[data-phase="1"] > .controls {width:100%;max-width:none;min-width:0;align-self:stretch}
  html[data-ds-page="creator"] body.creator-editing .controls :is(#aiPane,#designGuide) {width:100%;min-width:0;max-width:none}
}

@media(min-width:840px) and (min-height:560px) {
  html[data-ds-page="creator"] body.creator-editing > main.wrap {padding:12px 24px}
  html[data-ds-page="creator"] body.creator-editing .controls {padding:24px}
  html[data-ds-page="creator"] body.creator-editing .guide-head {padding-bottom:12px}
  html[data-ds-page="creator"] body.creator-editing .guide-tile .question-pages {width:56%;padding-right:18px}
  html[data-ds-page="creator"] body.creator-editing .guide-tile::after {right:0;bottom:2%;width:40%;height:94%;background-size:contain;background-position:center;opacity:.88}
  html[data-ds-page="creator"] body.creator-editing .guide-tile::before {content:"";position:absolute;right:0;top:6%;width:40%;height:88%;border-left:1px solid #8fdad51d;background:radial-gradient(ellipse at 50% 55%,#35a5b319,transparent 68%);pointer-events:none}
  html[data-ds-page="creator"] body.creator-editing .guide-tile .question-pager {justify-content:flex-start;max-width:56%}
  html[data-ds-page="creator"] body.creator-editing .guide-tile :is(h3,#promptLabel) {font-size:30px;margin-bottom:16px}
}

@media(max-width:839px) {
  /* The corgi gets the spare space below the aligned ideas, never behind them. */
  html[data-ds-page="creator"] body.creator-editing .guide-details-tile::after {display:none}
  html[data-ds-page="creator"] body.creator-editing .guide-details-tile .question-pages {display:flex;flex-direction:column;padding-bottom:0}
  html[data-ds-page="creator"] body.creator-editing .guide-details-tile .question-pages > * {flex:none}
  html[data-ds-page="creator"] body.creator-editing .guide-details-tile .question-pages::after {content:"";display:block;flex:1 1 auto;min-height:0;max-height:155px;margin-top:4px;background:url('/media/reveal-pet-city.webp') center bottom / auto 100% no-repeat;opacity:.72;pointer-events:none}
  html[data-ds-page="creator"] body.creator-editing .guide-details-tile #guideFavorite {height:clamp(56px,9dvh,80px);min-height:56px}
  html[data-ds-page="creator"] body.creator-editing .guide-palette-tools {flex-wrap:nowrap;gap:6px}
  html[data-ds-page="creator"] body.creator-editing .guide-palette-tools #guideSelectedColors {flex:1;min-width:0;margin:0}
  html[data-ds-page="creator"] body.creator-editing .guide-palette-tools #guideColorCount {flex:none;font-size:12px}
  html[data-ds-page="creator"] body.creator-editing .guide-palette-tools #clearGuideColors {flex:none;margin-left:auto}
  html[data-ds-page="creator"] body.creator-editing .guide-selected-swatch {display:none}
  html[data-ds-page="creator"] body.creator-editing #guideSelectedColors .guide-selected-color:not([data-remove-color^="custom:"]) {display:none}
  html[data-ds-page="creator"] body.creator-editing #guideSelectedColors:not(:has([data-remove-color^="custom:"])) {display:none}
  html[data-ds-page="creator"] body.creator-editing .guide-tile:has(.guide-photo-card:not([hidden]))::after,
  html[data-ds-page="creator"] body.creator-editing .guide-tile:has(#guideWordBox:not([hidden]))::after,
  html[data-ds-page="creator"] body.creator-editing #designGuide:is([data-step="5"],[data-step="6"]) .guide-tile::after {display:none}
}

@media(min-width:400px) and (max-width:839px) {
  html[data-ds-page="creator"] body.creator-editing #guideDetailSuggestions {grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media(max-width:380px) {
  html[data-ds-page="creator"] body.creator-editing > main.wrap {padding:5px 8px}
  html[data-ds-page="creator"] body.creator-editing .studio[data-phase="1"] .controls {padding:10px;gap:6px;border-radius:18px}
  html[data-ds-page="creator"] body.creator-editing #designGuide {gap:6px}
  html[data-ds-page="creator"] body.creator-editing .guide-tile :is(h3,#promptLabel) {font-size:22px}
  html[data-ds-page="creator"] body.creator-editing .creator-utilities {gap:6px}
  html[data-ds-page="creator"] body.creator-editing .creator-utilities button {padding:8px;font-size:14px}
  html[data-ds-page="creator"] body.creator-editing .guide-color-grid {grid-template-columns:repeat(5,minmax(44px,1fr))}
  html[data-ds-page="creator"] body.creator-editing #generate:not([hidden]) {grid-template-columns:22px minmax(0,1fr);gap:2px 6px;padding:7px 9px}
  html[data-ds-page="creator"] body.creator-editing #generate .ds-credit-token {grid-row:1/3}
  html[data-ds-page="creator"] body.creator-editing #generate .generate-label {font-size:14px;white-space:nowrap}
  html[data-ds-page="creator"] body.creator-editing #generate .generate-cost {grid-column:2;padding:0;border:0;font-size:12px}
}

@media(max-height:640px) {
  html[data-ds-page="creator"] body.creator-editing .guide-tile::after {height:36%;opacity:.16}
  html[data-ds-page="creator"] body.creator-editing .guide-tile :is(h3,#promptLabel) {font-size:22px;margin-bottom:9px}
  html[data-ds-page="creator"] body.creator-editing .studio[data-phase="1"] #idea {height:88px;min-height:72px}
}

/* On shorter narrow phones, keep the expansion control in the first view.
   Only the compact overview uses ellipses; expanded answers keep every word. */
@media(max-width:399px) and (max-height:700px) {
  html[data-ds-page="creator"] body.creator-editing #designGuide[data-step="6"] {gap:5px}
  html[data-ds-page="creator"] body.creator-editing .guide-review-tile .review-anticipation {display:none}
  html[data-ds-page="creator"] body.creator-editing .guide-review-tile h3 {margin:0 0 6px;font-size:22px}
  html[data-ds-page="creator"] body.creator-editing .guide-review-tile .question-pages {padding-bottom:0}
  html[data-ds-page="creator"] body.creator-editing .guide-review-tile #guideSummary {padding:8px 10px}
  html[data-ds-page="creator"] body.creator-editing #guideSummary .review-overview {gap:4px 7px}
  html[data-ds-page="creator"] body.creator-editing #guideSummary .review-overview dd {display:block;-webkit-line-clamp:unset;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
  html[data-ds-page="creator"] body.creator-editing #guideSummary .review-full {margin-top:6px}
  html[data-ds-page="creator"] body.creator-editing #guideSummary .review-full > summary {min-height:44px;padding:7px 0}
}

@media(max-height:500px) {
  html[data-ds-page="creator"] body.creator-editing .guide-tile::after,
  html[data-ds-page="creator"] body.creator-editing .guide-tile::before {display:none}
  html[data-ds-page="creator"] body.creator-editing > main.wrap {padding:4px 8px}
  html[data-ds-page="creator"] body.creator-editing .studio[data-phase="1"] .controls {padding:8px;gap:5px}
  html[data-ds-page="creator"] body.creator-editing .guide-head {padding-bottom:4px;min-height:22px}
  html[data-ds-page="creator"] body.creator-editing .guide-nav {padding-top:2px}
}

html[data-ds-page="creator"] body.creator-editing.keyboard-view .guide-tile::after,
html[data-ds-page="creator"] body.creator-editing.keyboard-view .guide-tile::before,
html[data-ds-page="creator"] body.creator-editing.keyboard-view .guide-details-tile .question-pages::after {display:none}
html[data-ds-page="creator"] body.creator-editing.keyboard-view .guide-tile .question-pages {width:100%;padding-right:0}

/* All artwork here is static. High contrast mode keeps the form structure. */
@media(forced-colors:active) {
  html[data-ds-page="creator"] body.creator-editing {background:Canvas!important;color:CanvasText}
  html[data-ds-page="creator"] body.creator-editing .guide-tile::after,
  html[data-ds-page="creator"] body.creator-editing .guide-tile::before {display:none}
  html[data-ds-page="creator"] body.creator-editing :is(.controls,textarea,input,select,#guideSummary,.guide-word-choice label,.guide-nav button) {background:Canvas;color:CanvasText;border-color:CanvasText;box-shadow:none;text-shadow:none}
}
