/* SplashDesigns. A dark studio shell; the work happens on warm paper sheets; one violet light marks whatever is in progress.
   Tokens first, then the shell, the sheets, each screen, and the motion at the end. Mobile is the base; 900px and up is desktop. */
:root {
  --night: #0D0C10; --night2: #18161D; --night3: #24212B; --mist: rgba(255,255,255,.64); --hair: rgba(255,255,255,.12);
  --paper: #F5F2EE; --card: #FFFFFF; --ink: #121114; --soft: #6E6A73; --line: #E4DFD8;
  --violet: #8B6CF6; --lilac: #C3B1FF; --ok: #1E9E5A; --warn: #C7641A; --bad: #C2362B; --on: #FFFFFF;
  --accent: var(--ink); --concept: var(--violet);
  --r-sheet: 26px; --r-ctl: 14px; --ease: cubic-bezier(.2,.7,.2,1);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { background: var(--night); }
body { margin: 0; min-height: 100dvh; background: radial-gradient(120% 70% at 85% -10%, #2A2140 0%, rgba(42,33,64,0) 55%), var(--night); background-attachment: fixed;
  color: var(--ink); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.1; margin: 0; font-weight: 700; }

/* ---------------------------------------------------------------- shell: brand, stepper */
.top { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 14px 18px 10px; min-height: 60px; color: #fff; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -.02em; flex: 1; }
.sdmark { width: 24px; height: 24px; }
.icon { border: 0; background: none; padding: 8px; margin: -8px; border-radius: 12px; cursor: pointer; display: grid; place-items: center; color: inherit; }
.top .icon { margin: -8px 0 -8px -8px; }
.stepper { display: none; list-style: none; margin: 0; padding: 0; gap: 34px; flex: 2; justify-content: center; }
.stepper li { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.45); transition: color .4s; }
.stepper li i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-style: normal; font-size: 11.5px; transition: background .4s, border-color .4s, color .4s; }
.stepper li i svg { display: none; }
.stepper li.on { color: #fff; }
.stepper li.on i { background: #fff; border-color: #fff; color: var(--night); }
.stepper li.done { color: rgba(255,255,255,.8); }
.stepper li.done i b { display: none; }
.stepper li.done i svg { display: block; animation: pop .45s var(--ease); }
.stepcount { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--mist); }
.stepline { max-width: 1240px; margin: 0 auto; padding: 0 18px; height: 3px; }
.stepline::before { content: ""; display: block; height: 3px; border-radius: 3px; background: var(--hair); }
.stepline i { display: block; height: 3px; margin-top: -3px; border-radius: 3px; background: #fff; width: 0; transition: width .7s var(--ease); }
body[data-screen="home"] .stepper, body[data-screen="home"] .stepcount, body[data-screen="home"] .stepline { visibility: hidden; }

main { max-width: 1240px; margin: 0 auto; padding: 14px 12px calc(28px + env(safe-area-inset-bottom)); }
.screen { display: none; }
.screen.on { display: block; animation: enter .5s var(--ease) both; }
.sheet { background: var(--paper); border-radius: var(--r-sheet); padding: 26px 18px 22px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.sheet h1 { font-size: clamp(27px, 6.4vw, 38px); }
.sub { color: var(--soft); margin: 8px 0 20px; max-width: 62ch; }
.fine { color: var(--soft); font-size: 13.5px; text-align: center; margin: 12px 0 0; }
.err { color: var(--bad); font-weight: 600; text-align: center; min-height: 1.4em; margin: 10px 0 0; }
.warn { background: #FFF1DC; border-radius: 12px; padding: 10px 14px; font-size: 14px; color: #7A4300; margin: 8px 0 0; }

/* buttons */
.main { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; border-radius: 999px; background: var(--ink); color: var(--on); font-size: 16px; font-weight: 700; padding: 15px 22px; margin: 16px 0 0; cursor: pointer; text-align: center; text-decoration: none; transition: transform .12s, opacity .2s, background .2s; }
.main .arr { transition: transform .25s var(--ease); }
.main:hover .arr { transform: translateX(3px); }
.main:active { transform: scale(.985); }
.main:disabled { opacity: .3; cursor: default; }
.main.busy { opacity: .65; pointer-events: none; }
.second { display: block; width: 100%; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font-size: 15.5px; font-weight: 700; padding: 13.5px 22px; margin: 10px 0 0; cursor: pointer; }
.second.light { border-color: rgba(255,255,255,.5); color: #fff; width: auto; }
.second.busy { opacity: .6; pointer-events: none; }

/* ---------------------------------------------------------------- 0. landing */
.hero { color: #fff; display: grid; gap: 8px; padding: 26px 8px 8px; }
.herotext { min-width: 0; }
.hero h1 { font-size: clamp(38px, 10.5vw, 68px); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; }
.lede { color: var(--mist); font-size: clamp(16px, 4.4vw, 19px); margin: 16px 0 26px; max-width: 34ch; }
.ask { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.28); border-radius: 999px; padding: 6px 6px 6px 18px; max-width: 520px; backdrop-filter: blur(10px); transition: border-color .2s, background .2s; }
.ask:focus-within { border-color: #fff; background: rgba(255,255,255,.1); }
.ask input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: #fff; font-size: 17px; font-weight: 500; padding: 10px 0; }
.ask input::placeholder { color: rgba(255,255,255,.55); }
.askgo { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--night); display: grid; place-items: center; cursor: pointer; transition: transform .2s var(--ease); }
.askgo:hover { transform: translateX(2px); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.quick button { border: 1px solid var(--hair); background: rgba(255,255,255,.05); color: #fff; border-radius: 999px; padding: 8px 14px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.quick button:hover { background: rgba(255,255,255,.12); }
.points { list-style: none; padding: 0; margin: 34px 0 0; display: flex; gap: 22px; flex-wrap: wrap; color: var(--mist); font-size: 13px; font-weight: 600; }
.points li { display: flex; align-items: center; gap: 8px; }
.points svg { color: #fff; }
.heroart { display: grid; place-items: center; min-height: 240px; }
#mine { margin: 30px 8px 0; color: #fff; }
#mine h2 { font-size: 22px; margin: 0 0 14px; font-weight: 600; }
#minelist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mineitem { display: block; color: #fff; text-decoration: none; min-width: 0; background: var(--night2); border-radius: 18px; padding: 8px 8px 12px; transition: transform .25s var(--ease), background .2s; }
.mineitem:hover { transform: translateY(-3px); background: var(--night3); }
.mineitem img, .mineitem i { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 12px; background: var(--night3); }
.mineitem b { display: block; font-size: 14.5px; margin: 10px 6px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mineitem small { display: block; font-size: 12.5px; color: var(--mist); margin: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the signature: three stacked glass tiles, the top one carrying the mark */
.tiles { position: relative; width: 150px; height: 150px; margin: 30px auto; transform: rotateX(54deg) rotateZ(-38deg); transform-style: preserve-3d; }
.tiles i { position: absolute; inset: 0; border-radius: 30px; background: linear-gradient(140deg, rgba(195,177,255,.95), rgba(139,108,246,.75)); border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 0 60px rgba(139,108,246,.55); display: grid; place-items: center; color: #fff; animation: float 3.6s ease-in-out infinite; }
.tiles i:nth-child(1) { transform: translateZ(-44px); opacity: .32; animation-delay: -.5s; }
.tiles i:nth-child(2) { transform: translateZ(-22px); opacity: .55; animation-delay: -.25s; }
.tiles i svg { width: 64px; height: 64px; transform: rotateZ(38deg); filter: drop-shadow(0 2px 8px rgba(60,30,160,.5)); }
.hero .tiles { width: min(46vw, 230px); height: min(46vw, 230px); }
.hero .tiles i { border-radius: 44px; }
.hero .tiles i svg { width: 42%; height: 42%; }

/* ---------------------------------------------------------------- 1. brief */
.cols { display: grid; gap: 4px; }
.lab, .disclabel { display: block; margin: 16px 0 7px; font-size: 13px; color: var(--ink); font-weight: 700; }
.field { position: relative; border: 1.5px solid var(--line); border-radius: var(--r-ctl); background: var(--card); transition: border-color .2s, box-shadow .2s; }
.field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(139,108,246,.14); }
.field textarea, .field input { width: 100%; border: 0; outline: 0; background: none; padding: 14px 50px 14px 16px; resize: none; border-radius: var(--r-ctl); }
.field.idea input { font-size: 18px; font-weight: 600; padding: 15px 16px; }
.field.big textarea { min-height: 112px; line-height: 1.4; }
.field .mic, .field .send { position: absolute; right: 12px; bottom: 11px; margin: 0; color: var(--ink); }
.mic.live { color: var(--bad); animation: pulse 1s infinite; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips button { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 9px 14px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.chips button:hover { border-color: var(--ink); }
.chips button[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: var(--on); }
.packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.packs button { border: 1.5px solid var(--line); background: var(--card); border-radius: var(--r-ctl); padding: 10px 2px 9px; font-size: 11.5px; font-weight: 700; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; line-height: 1.15; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); position: relative; }
.packs button svg { width: 28px; height: 32px; }
.packs button:hover { border-color: var(--ink); }
.packs button[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.packs button[aria-checked="true"]::after { content: ""; position: absolute; top: 5px; right: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.500l4 4L18 8' fill='none' stroke='%23fff' stroke-width='3.500' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat; animation: pop .35s var(--ease); }
.opts { display: flex; gap: 8px; margin: 12px 0 0; flex-wrap: wrap; }
.opt { flex: 1 1 40%; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink); font-weight: 700; }
.opt select, .opt input, .opt textarea { width: 100%; border: 1.5px solid var(--line); border-radius: var(--r-ctl); background: var(--card); font-size: 16px; font-weight: 500; padding: 12px 12px; outline: 0; transition: border-color .2s; }
.opt select:focus, .opt input:focus, .opt textarea:focus { border-color: var(--ink); }
.opt textarea { resize: vertical; min-height: 76px; line-height: 1.4; }
.opts.wide .opt { flex: 1 1 100%; }
.opts.box .opt { flex: 1 1 28%; }
.opts.names { margin: 12px 0 0; }
.opt.logo { margin: 12px 0 0; }
.opt.logo span { display: block; border: 1.5px dashed #B9B3AA; border-radius: var(--r-ctl); padding: 12px 10px; font-size: 14.5px; font-weight: 600; text-align: center; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opt.logo.has span { border-style: solid; border-color: var(--ink); }
details { border: 1.5px solid var(--line); border-radius: var(--r-ctl); padding: 12px 14px; margin: 12px 0 0; background: var(--card); }
details summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 14.5px; }
details summary::-webkit-details-marker { display: none; }
details[open] summary { margin-bottom: 12px; }
.tip { color: var(--soft); font-size: 13.5px; line-height: 1.4; margin: 8px 2px 0; }
.sheetfoot { margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.opt.email { max-width: 420px; }
.actions { display: flex; flex-direction: column-reverse; }
.upload { display: block; text-align: center; margin: 12px 0 0; color: var(--ink); font-weight: 600; font-size: 14.5px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 8px; border-radius: 10px; }
.upload:hover, .upload:focus-within { background: rgba(0,0,0,.05); }
.upload.busy { opacity: .5; pointer-events: none; }

/* ---------------------------------------------------------------- generating and producing */
.gen { color: #fff; display: grid; gap: 6px; justify-items: center; text-align: center; padding: 16px 12px 40px; min-height: 62dvh; align-content: center; }
.gen h2 { font-size: clamp(24px, 6vw, 34px); font-weight: 600; max-width: 16ch; }
.gen p { color: var(--mist); margin: 10px 0 0; font-size: 14.5px; max-width: 40ch; }
.gentext { display: grid; justify-items: center; width: 100%; max-width: 460px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 13px; text-align: left; justify-self: center; }
.ticks li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 600; color: rgba(255,255,255,.4); transition: color .4s; }
.ticks li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; transition: background .3s, border-color .3s; }
.ticks li.now { color: #fff; }
.ticks li.now::before { border-color: var(--lilac); border-top-color: transparent; animation: spin .9s linear infinite; }
.ticks li.done { color: rgba(255,255,255,.86); }
.ticks li.done::before { border-color: var(--lilac); background: var(--lilac) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.500l4 4L18 8' fill='none' stroke='%230D0C10' stroke-width='3.500' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; animation: pop .45s var(--ease); }
.ticks li.bad { color: #FFB4AB; }
.bar { width: 100%; height: 6px; border-radius: 6px; background: var(--hair); margin: 30px 0 0; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--violet), var(--lilac)); transition: width .9s var(--ease); position: relative; }
.bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: translateX(-100%); animation: sheen 1.8s ease-in-out infinite; }
.pct { display: block; margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--mist); font-variant-numeric: tabular-nums; }
.gen .second { margin-top: 22px; }
.gen.prod { min-height: 0; padding: 4px 12px 26px; }
.gen.prod .tiles { width: 96px; height: 96px; margin: 14px auto 18px; }
.gen.prod .tiles i { border-radius: 22px; }
.gen.prod .tiles i svg { width: 44px; height: 44px; }

/* ---------------------------------------------------------------- 2. concepts */
.titlecard { font-weight: 700; font-size: 24px; letter-spacing: -.025em; line-height: 1.15; }
.titlecard small { display: block; font-weight: 500; font-size: 14px; color: var(--soft); letter-spacing: 0; margin-top: 4px; }
.present { display: grid; gap: 14px; }
.stage { position: relative; height: min(64dvh, 560px); border-radius: 18px; overflow: hidden; background: #E9E5DE; }
.stage canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.stage.hero::before { content: ""; position: absolute; inset: -30px; background: var(--heroimg) center/cover; filter: blur(26px) saturate(1.05); opacity: .9; }
.stage #heroimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; animation: reveal .6s var(--ease); }
.stage .hint { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; color: var(--soft); font-size: 12.5px; margin: 0; pointer-events: none; }
.stage.hero .hint { display: none; }
.wait { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: var(--soft); gap: 14px; padding: 20px; background: #E9E5DE; }
.brush { width: 44px; height: 44px; margin: 0 auto; border-radius: 50%; border: 3.5px solid rgba(0,0,0,.1); border-top-color: var(--violet); animation: spin 1s linear infinite; }
.zoombtn { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92); border: 0; color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.14); margin: 0; z-index: 3; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.thumb { position: relative; aspect-ratio: 4/5; border-radius: 12px; overflow: hidden; background: #E9E5DE; border: 0; padding: 0; cursor: pointer; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .2s, transform .25s var(--ease); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover { transform: translateY(-2px); }
.thumb.sel { outline-color: var(--ink); }
.thumb.sel::after { content: ""; position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.500l4 4L18 8' fill='none' stroke='%23fff' stroke-width='3.500' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; animation: pop .35s var(--ease); }
.thumb.loading { background: linear-gradient(110deg, #E9E5DE 30%, #F7F4EE 50%, #E9E5DE 70%); background-size: 220% 100%; animation: shimmer 1.3s linear infinite; }
.thumb.failed { display: grid; place-items: center; color: var(--soft); font-size: 12px; cursor: default; }
.thumb .flag { position: absolute; top: 6px; left: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--warn); border: 2px solid #fff; z-index: 1; }
.thumb.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: none; border: 1.5px dashed #B9B3AA; color: var(--ink); }
.thumb.add span { font-size: 26px; line-height: 1; font-weight: 300; }
.thumb.add small { font-size: 11px; font-weight: 700; padding: 0 4px; text-align: center; line-height: 1.2; }
.thumb.add:disabled { opacity: .4; }
.dircard { animation: enter .45s var(--ease); }
.dircard .num { margin: 0; font-size: 13px; font-weight: 600; color: var(--soft); }
.dircard h3 { font-size: 26px; margin: 2px 0 6px; }
.dircard .terr { margin: 0 0 4px; color: var(--soft); font-size: 14.5px; }
.dircard h4 { margin: 18px 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0; }
.dircard p { margin: 0; font-size: 14.5px; line-height: 1.45; }
.swatches { display: flex; gap: 8px; }
.swatches i { width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(0,0,0,.1); animation: pop .5s var(--ease) both; }
.swatches i:nth-child(2) { animation-delay: .05s; } .swatches i:nth-child(3) { animation-delay: .1s; } .swatches i:nth-child(4) { animation-delay: .15s; } .swatches i:nth-child(5) { animation-delay: .2s; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { background: #ECE8E1; border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 600; }
.dircard details { margin: 16px 0 0; background: transparent; }
.dircard details p + p { margin-top: 8px; }
.dircard .meta { color: var(--soft); font-size: 12.5px; margin-top: 14px; }
.dircard .flagnote { color: var(--warn); font-weight: 700; margin-top: 12px; }
.contract { font-size: 14px; background: transparent; }
.contract ul { margin: 4px 0 8px; padding-left: 18px; }
.contract p { margin: 4px 0; }
.field.change { margin-top: 14px; }
.field.change input { padding: 13px 50px 13px 16px; }
.field.change .send { right: 8px; bottom: 7px; }
.reply { min-height: 1.3em; color: var(--soft); font-size: 14px; margin: 8px 2px 0; }
#pick #use { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 5; box-shadow: 0 12px 28px rgba(0,0,0,.22); }
.history { margin: 14px 0 0; }
.histlabel { display: block; font-size: 13px; color: var(--soft); font-weight: 600; margin: 0 2px 6px; }
#histrow { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; }
.ver { position: relative; flex: 0 0 64px; border: 0; padding: 0; background: none; cursor: pointer; text-align: left; }
.ver img { display: block; width: 64px; height: 92px; object-fit: cover; border-radius: 8px; outline: 2px solid var(--line); }
.ver.cur img { outline: 3px solid var(--ink); }
.ver b { position: absolute; top: 4px; left: 4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.ver small { width: 64px; font-size: 10.5px; line-height: 1.2; color: var(--soft); margin-top: 3px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* zoom overlay */
.zoomer { position: fixed; inset: 0; z-index: 50; background: rgba(13,12,16,.95); display: flex; flex-direction: column; animation: fade .25s ease; }
.zoomclose { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; cursor: pointer; margin: 0; }
.zoomscroll { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 16px; align-items: center; padding: 64px 16px 16px; -webkit-overflow-scrolling: touch; }
.zoomscroll img { flex: 0 0 auto; width: min(calc(100vw - 32px), 560px); height: auto; border-radius: 8px; background: #fff; cursor: zoom-in; display: block; margin: 0 auto; }
.zoomscroll img.big { width: min(240vw, 1400px); cursor: zoom-out; }
.zoomtip { color: rgba(255,255,255,.7); font-size: 13px; text-align: center; margin: 0; padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); }

/* ---------------------------------------------------------------- 3. details */
.printcols { display: grid; gap: 8px; }
.labelflat { margin: 0 0 14px; cursor: zoom-in; }
.labelflat img { width: 100%; display: block; border-radius: 6px; box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 8px 24px rgba(20,16,30,.10); }
.labelflat figcaption { font-size: 12.5px; color: var(--muted, #6b6870); margin-top: 7px; }
.stepper li.go { cursor: pointer; }
.stepper li.go:hover span, .stepper li.go:focus-visible span { text-decoration: underline; text-underline-offset: 4px; }
.stepper li.go:focus-visible { outline: 2px solid var(--lilac, #b9a6ff); outline-offset: 4px; border-radius: 12px; }
.flats { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 16px; }
.flats img { width: 100%; }
.tap { position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 26px rgba(0,0,0,.12); background: #E9E5DE; }
.flats .tap img { width: 100%; height: 100%; object-fit: fill; display: block; }
.flats .tap img:not([src]) { visibility: hidden; }
.tap.busy img { filter: saturate(.7) brightness(1.04); }
.tap.busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px; border-radius: 50%; border: 3px solid rgba(255,255,255,.9); border-top-color: transparent; animation: spin .8s linear infinite; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
#words .word { position: absolute; padding: 0; margin: 0; background: transparent; border: 0; border-radius: 6px; cursor: pointer; outline: 2px dashed rgba(255,255,255,.95); outline-offset: 3px; box-shadow: 0 0 0 5px rgba(0,0,0,.18); }
#words .word:hover, #words .word.on { outline-style: solid; background: rgba(255,255,255,.14); }
#wordsback .word { position: absolute; padding: 0; margin: 0; background: transparent; border: 0; border-radius: 5px; cursor: pointer; outline: 1.5px dashed rgba(0,0,0,.5); outline-offset: 2px; }
#wordsback .word:hover, #wordsback .word.on { outline-style: solid; outline-color: var(--violet); background: rgba(0,0,0,.05); }
.taphint { text-align: center; color: var(--soft); font-size: 13.5px; margin: -6px 0 12px; }
.taphint.bad { color: var(--bad); }
#retype, #retypeback { margin: 0 0 14px; }
#retypeback textarea { padding: 13px 50px 13px 16px; line-height: 1.4; }
#facts label { display: block; margin: 0 0 13px; }
#facts label > span, #facts summary span { display: block; font-weight: 700; font-size: 13px; margin: 0 0 6px; }
#facts input:not([type=checkbox]), #facts textarea { width: 100%; border: 1.5px solid var(--line); background: var(--card); border-radius: var(--r-ctl); padding: 12px 14px; outline: 0; resize: vertical; transition: border-color .2s; }
#facts input:focus, #facts textarea:focus { border-color: var(--ink); }
#facts .sample > span::after, #facts details.sample summary span::after { content: attr(data-s); display: inline-block; margin-left: 8px; font-weight: 700; font-size: 11px; color: #fff; background: var(--warn); border-radius: 999px; padding: 2px 8px; vertical-align: 1px; }
#facts .sample input, #facts .sample textarea, #facts details.sample { border-color: #EBC79E; background: #FFFAF2; }
#facts details { margin: 0 0 13px; }
#facts details summary span { margin: 0 !important; }
#rows .row { display: grid; grid-template-columns: 1.6fr .8fr .6fr; gap: 6px; margin-bottom: 6px; }
#rows input { padding: 9px 10px !important; font-size: 14.5px; border-radius: 10px !important; }
.check { display: flex !important; gap: 12px; align-items: center; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r-ctl); padding: 13px 16px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--ink); flex: none; }
.check span { margin: 0 !important; font-size: 15px !important; }
.upload.factsphoto { text-align: left; margin: 2px 0 8px; padding: 8px 2px; }
.fine.source { text-align: left; margin: 0 2px 10px; color: var(--warn); }
#print #make { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 5; box-shadow: 0 12px 28px rgba(0,0,0,.22); }

/* ---------------------------------------------------------------- 4. deliver */
.deliver { color: #fff; padding: 22px 6px 10px; animation: enter .6s var(--ease) both; }
.delhead { text-align: center; display: grid; justify-items: center; gap: 4px; }
.bigcheck { color: #fff; display: block; }
.bigcheck circle { stroke-dasharray: 140; stroke-dashoffset: 140; animation: draw .8s var(--ease) .1s forwards; }
.bigcheck path { stroke-dasharray: 34; stroke-dashoffset: 34; animation: draw .45s var(--ease) .75s forwards; }
.bigcheck.proof { color: #F2B36B; }
.badge { font-size: clamp(26px, 6.6vw, 36px); font-weight: 600; margin: 10px 0 0; }
.kitnote { color: var(--mist); margin: 6px 0 0; font-size: 14.5px; max-width: 46ch; }
.delgrid { display: grid; gap: 16px; margin: 24px 0 0; }
.photos { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 0 6px; }
.photos img { width: 100%; border-radius: 18px; scroll-snap-align: center; display: block; background: var(--night2); }
.delcard { background: var(--paper); color: var(--ink); border-radius: 22px; padding: 20px 18px; }
.delcard h3 { font-size: 17px; margin: 0 0 8px; }
.files { list-style: none; margin: 0; padding: 0; }
.files li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; animation: enter .45s var(--ease) both; }
.files li small { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--soft); background: #ECE8E1; border-radius: 6px; padding: 3px 7px; }
.files li svg { flex: none; color: var(--soft); }
.delcard .fine { text-align: left; }
.checks { margin: 14px 0 0; }
.gates { list-style: none; padding: 0; margin: 0; }
.gates li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.gates li:last-child { border: 0; }
.gates li b { display: block; }
.gates li span { color: var(--soft); font-size: 13px; }
.gates .dot { width: 20px; height: 20px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 800; margin-top: 1px; font-style: normal; }
.gates .open .dot { background: var(--warn); }

/* ---------------------------------------------------------------- desktop */
@media (min-width: 900px) {
  .top { padding: 20px 32px 14px; }
  .brand { flex: 1; font-size: 19px; }
  .sdmark { width: 28px; height: 28px; }
  .stepper { display: flex; }
  .stepcount, .stepline { display: none; }
  .top::after { content: ""; flex: 1; }
  main { padding: 10px 32px 48px; }
  .sheet { padding: 44px 52px 40px; }
  .hero { grid-template-columns: 1.15fr .85fr; align-items: center; min-height: calc(100dvh - 250px); padding: 20px 20px 0; }
  .heroart { min-height: 420px; }
  .hero .tiles { width: 300px; height: 300px; }
  #mine { margin: 10px 20px 0; }
  #minelist { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .cols { grid-template-columns: 1fr 1fr; gap: 56px; }
  .sheetfoot { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
  .sheetfoot .opt.email { flex: 0 1 380px; }
  .actions { flex-direction: row; gap: 12px; align-items: center; }
  .actions .main, .actions .second { width: auto; margin: 0; white-space: nowrap; }
  .upload { text-align: right; padding: 8px 0; }
  .fine { text-align: right; }
  .gen { grid-template-columns: auto minmax(0, 420px); gap: 70px; justify-content: center; align-items: center; text-align: left; min-height: calc(100dvh - 210px); }
  .gen .gentext { justify-items: start; }
  .gen .tiles { width: 230px; height: 230px; margin: 60px; }
  .gen .tiles i { border-radius: 44px; }
  .gen .tiles i svg { width: 96px; height: 96px; }
  .gen.prod { min-height: 0; padding: 0 0 30px; gap: 40px; }
  .gen.prod .tiles { width: 110px; height: 110px; margin: 30px; }
  .ticks { justify-self: start; }
  .present { grid-template-columns: 92px minmax(0, 1.25fr) minmax(320px, 1fr); grid-template-areas: "head head head" "rail stage panel"; gap: 22px 26px; align-items: start; padding: 36px 40px; }
  .presenthead { grid-area: head; }
  .thumbs { grid-area: rail; grid-template-columns: 1fr; gap: 10px; position: sticky; top: 20px; }
  .stage { grid-area: stage; height: min(74dvh, 760px); position: sticky; top: 20px; }
  .panel { grid-area: panel; }
  #pick #use { position: static; box-shadow: none; }
  .printcols { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .printleft { position: sticky; top: 20px; }
  #print #make { position: static; box-shadow: none; max-width: 360px; margin-left: auto; }
  .deliver { padding: 30px 20px; }
  .delgrid { grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); gap: 28px; align-items: start; }
  .photos { grid-auto-columns: 62%; }
  .zoomscroll { flex-direction: row; align-items: flex-start; }
}

/* ---------------------------------------------------------------- motion */
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes reveal { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes shimmer { to { background-position: -220% 0; } }
@keyframes sheen { to { transform: translateX(100%); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes float { 0%, 100% { translate: 0 0 0; } 50% { translate: 0 0 14px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .bigcheck circle, .bigcheck path { stroke-dashoffset: 0; }
}

/* Creative Director v3 concept detail */
#dircard details details, #dircard > details { margin-top: 10px; }
#dircard .st { display: inline-block; font-size: 11px; line-height: 1; padding: 3px 7px; border-radius: 99px; margin-left: 4px; vertical-align: 1px;
  background: #ece7f8; color: #4a3a86; }
#dircard .st-proposed { background: #fdf0dc; color: #8a5300; }
#dircard .st-provided, #dircard .st-verified { background: #e3f3e6; color: #1f6b33; }
#dircard ul { padding-left: 18px; margin: 6px 0; }
#dircard li { margin: 4px 0; }
#dircard li small { color: var(--muted, #6b6870); }
#dircard .prompt { white-space: pre-wrap; font-size: 12.5px; line-height: 1.5; }
