/* Creator: form left, live phone preview right (≥960px); single column with sticky CTA on phones. */
.creator-body { background: var(--paper); }
.creator { min-height: 100vh; display: flex; flex-direction: column; }
.cr-head { position: sticky; top: 0; z-index: 30; background: var(--paper); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter); border-bottom: 1px solid var(--line); }
.cr-head .logo { font-size: 20px; }
.cr-steps { display: none; list-style: none; margin: 0; padding: 0; gap: 18px; }
.cr-steps li { font: 600 13px/1 var(--font-sans); color: var(--ink-faint); display: inline-flex; gap: 4px; align-items: center; }
.cr-steps li.done { color: var(--success); }
.cr-steps li.done::before { content: "✓"; }
.cr-steps li.cur { color: var(--ink); }
@media (min-width: 960px) { .cr-steps { display: flex; } }
.cr-bar { height: 4px; background: var(--line); position: sticky; top: 61px; z-index: 30; }
.cr-bar i { display: block; height: 100%; width: 0; background: var(--rose); transition: width .28s ease-out; }
.cr-main { flex: 1; display: flex; gap: 48px; max-width: var(--max); width: 100%; margin: 0 auto; padding: 16px var(--gutter) 120px; align-items: flex-start; }
.cr-form { flex: 1 1 480px; max-width: 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; margin: 0 auto; }
.cr-top { display: flex; justify-content: space-between; align-items: center; }
.cr-step { display: flex; flex-direction: column; gap: 18px; animation: stepIn .22s ease-out; }
.cr-step[hidden] { display: none; }
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cr-q h1:focus { outline: none; }
.cr-q p { margin-top: 6px; }
.cr-preview { display: none; }
@media (min-width: 960px) {
  .cr-preview { display: flex; flex: 0 0 380px; flex-direction: column; align-items: center; gap: 12px; position: sticky; top: 90px; background: var(--paper-sunk); border-radius: 28px; padding: 24px; }
  .cr-preview-btn { display: none !important; }
  .cr-main { padding-top: 32px; }
}
.cr-phone { width: 300px; height: 600px; }
.cr-phone iframe { width: 100%; height: 100%; border: 0; }
.cr-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--paper-raised); border-top: 1px solid var(--line); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); }
.cr-foot-in { max-width: 560px; margin: 0 auto; display: flex; gap: 8px; }
@media (min-width: 960px) { .cr-foot-in { max-width: var(--max); justify-content: flex-start; padding-right: 428px; } .cr-foot-in .btn { min-width: 140px; } }
.cr-foot [data-next] { flex: 1; }
@media (min-width: 960px) { .cr-foot [data-next] { flex: 0 1 260px; } }
.cr-save { min-width: 60px; text-align: right; }

/* design picker */
.design-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.design-pick.rows { grid-template-columns: 1fr; }
.dp { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 12px; background: var(--paper-raised); border: 1px solid var(--line); cursor: pointer; }
.dp input { position: absolute; opacity: 0; }
.dp.on, .dp:has(input:checked) { border: 2.5px solid var(--rose); padding: 4.5px; }
.dp:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.dp-art { height: 84px; border-radius: 8px; display: grid; place-items: center; }
.dp-text b { font-size: 12.5px; line-height: 1.2; display: block; }
.dp-text .cap { display: none; }
.rows .dp { flex-direction: row; align-items: center; gap: 12px; padding: 10px; }
.rows .dp.on, .rows .dp:has(input:checked) { padding: 8.5px; }
.rows .dp-art { width: 64px; height: 76px; flex: none; }
.rows .dp-text b { font-size: 15px; }
.rows .dp-text .cap { display: block; }

/* swatches */
.swatches { display: flex; gap: 14px; flex-wrap: wrap; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; position: relative; }
.swatch input { position: absolute; opacity: 0; }
.swatch .sw { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); border: 3px solid var(--paper); }
.swatch.on .sw, .swatch:has(input:checked) .sw { box-shadow: 0 0 0 2.5px var(--rose); }
.swatch:has(input:focus-visible) .sw { outline: 2px solid var(--focus); outline-offset: 3px; }

/* lists, suggestions */
.list-items { display: flex; flex-direction: column; gap: 8px; }
.list-item .label { display: flex; gap: 6px; align-items: center; color: var(--ink); }
.suggest { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.suggest:empty { display: none; }
.suggest .sg { text-align: left; background: var(--paper-raised); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: 500 14px/1.45 var(--font-sans); color: var(--ink); cursor: pointer; }
.suggest .sg:hover { border-color: var(--rose); }
.suggest .sg-more { align-self: flex-start; }
.hand-input { font-family: var(--font-hand); font-size: 22px; line-height: 1.35; background: #FFFDF7; }
.choice { text-align: left; background: var(--paper-raised); border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; color: var(--ink); }
.choice.on { border: 2px solid var(--rose); padding: 11px; }
.choice b { font-size: 14px; display: block; }

/* uploads */
.dropzone { border: 2px dashed var(--line-strong); border-radius: 16px; background: var(--paper-raised); min-height: 200px; display: grid; place-items: center; cursor: pointer; padding: 16px; text-align: center; position: relative; }
.dropzone.drag { border-color: var(--rose); background: var(--rose-soft); }
.dropzone.error { border-color: var(--danger); }
.dz-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--rose); }
.dz-empty b { color: var(--ink); }
.dz-preview { position: relative; width: 100%; max-width: 280px; }
.dz-preview img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.dz-preview .grid-overlay { position: absolute; inset: 0; border-radius: 10px; background-image: linear-gradient(rgba(255,255,255,.6) 2px, transparent 2px), linear-gradient(90deg, rgba(255,255,255,.6) 2px, transparent 2px); background-size: 33.33% 33.33%; pointer-events: none; }
.dz-preview .dz-change { margin-top: 10px; }
.dz-progress { width: 100%; max-width: 280px; display: flex; flex-direction: column; gap: 6px; }
.bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--rose); transition: width .2s; }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.thumb { aspect-ratio: 1; border-radius: 10px; background: var(--paper-sunk); position: relative; overflow: hidden; border: 0; display: grid; place-items: center; color: var(--ink-muted); cursor: pointer; padding: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .rm { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; background: rgba(43,27,47,.75); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; }
.thumb.loading::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.6); }
.thumb-add { border: 2px dashed var(--line-strong); background: var(--paper-raised); }
.coupon summary { list-style: none; }
.coupon summary::-webkit-details-marker { display: none; }
