/* Layout: a dark room. Steps on the left as quiet open sections, the mosaic on a lit stage on the right; on phones, one step at a time under a pinned stage. */
:root {
  --paper: #F5F6F9;
  --panel: #FFFFFF;
  --ink: #0B0E16;
  --muted: #5E6577;
  --line: #E3E6EE;
  --accent: #E0246B;
  --accent-ink: #FFFFFF;
  --soft: #FCE7EF;
  --stage: #EBEDF2;
  --ok: #1F8A62;
  --warn: #A35A00;
  --display: "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --body: "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #06080D; --panel: #0D1119; --ink: #E9EDF5; --muted: #858EA3; --line: #1B2130;
    --accent: #FF4D8D; --accent-ink: #16040B; --soft: #2A0F1C; --stage: #0A0D14; --ok: #5FE0B0; --warn: #FFB454;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #06080D; --panel: #0D1119; --ink: #E9EDF5; --muted: #858EA3; --line: #1B2130;
  --accent: #FF4D8D; --accent-ink: #16040B; --soft: #2A0F1C; --stage: #0A0D14; --ok: #5FE0B0; --warn: #FFB454;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.5;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 20px 40px;
}
.wrap { max-width: 1440px; margin: 0 auto; display: grid; gap: 20px; }
header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 span { color: var(--accent); }
header p { margin: 0; color: var(--muted); max-width: 60ch; }
.bench { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .bench { grid-template-columns: minmax(0, 1fr); } .bench .stage { order: -1; position: static; } .bench .lightbox { max-height: 62vh; } }
.rail { display: grid; gap: 14px; min-width: 0; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: grid; gap: 12px; min-width: 0; }
.step h2 { font-family: var(--display); font-weight: 800; font-size: 17px; margin: 0; display: flex; gap: 10px; align-items: center; }
.step h2 i { font-style: normal; font-family: var(--mono); font-size: 12px; font-weight: 600; width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--soft); color: var(--accent); flex: none; }
.note { color: var(--muted); font-size: 13px; margin: 0; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
button, .filebtn {
  font: 700 14px/1 var(--body); border-radius: 7px; padding: 10px 14px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
}
@media (hover: hover) and (pointer: fine) { button:hover, .filebtn:hover { border-color: var(--accent); } }
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (hover: hover) and (pointer: fine) { button.primary:hover { filter: brightness(1.06); } }
button:disabled { opacity: .5; cursor: not-allowed; }
button:focus-visible, .filebtn:focus-within, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.filebtn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.filebtn { position: relative; display: inline-flex; }
label.field { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
label.field .lbl { display: flex; justify-content: space-between; gap: 8px; }
label.field output { font-family: var(--mono); font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
input[type="text"], input[type="tel"], input[type="date"], input[type="number"], textarea, select { font: 14px var(--body); padding: 9px 10px; border-radius: 7px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); width: 100%; min-width: 0; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.status { font-size: 13px; margin: 0; min-height: 1.2em; }
.status.err { color: var(--warn); }
.status.ok { color: var(--ok); }
progress { width: 100%; height: 6px; accent-color: var(--accent); }
.drop { border: 1.5px dashed var(--line); border-radius: 8px; padding: 12px; display: grid; gap: 10px; }
.drop.over { border-color: var(--accent); background: var(--soft); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); grid-auto-rows: max-content; align-content: start; gap: 5px; max-height: 340px; overflow-y: auto; padding: 2px; }
.gallery button { padding: 0; border: 2px solid transparent; border-radius: 5px; aspect-ratio: 1; overflow: hidden; background: var(--stage); max-width: 100%; }
.gallery button canvas { width: 100%; height: auto; aspect-ratio: 1; display: block; }
.gallery button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--soft); }
.facebox { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; }
.facebox canvas { width: 96px; border-radius: 6px; background: var(--stage); display: block; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stage { position: sticky; top: env(safe-area-inset-top, 0px); display: grid; gap: 10px; min-width: 0; }
.stagebar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.chip { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 4px 8px; border-radius: 99px; background: var(--soft); color: var(--accent); }
.stats { font: 12px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.lightbox { position: relative; background: var(--stage); border-radius: 10px; overflow: auto; max-height: min(82vh, 1100px); display: grid; place-items: start; padding: 12px; }
.lightbox canvas { display: block; max-width: 100%; margin-inline: auto; cursor: zoom-in; user-select: none; -webkit-user-select: none; box-shadow: 0 10px 30px rgba(0,0,0,.18); background: #fff; }
.zoomrow { display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 700; }
.zoomrow input { width: 160px; }
.framer { width: 100%; max-width: 300px; justify-self: center; border-radius: 8px; background: var(--stage); cursor: grab; touch-action: none; display: block; }
.framer:active { cursor: grabbing; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; width: fit-content; max-width: 100%; }
.seg button { border: 0; border-radius: 0; padding: 9px 12px; background: var(--panel); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.seg.full { width: 100%; }
.seg.full button { flex: 1; padding-inline: 6px; }
.ends { display: flex; justify-content: space-between; font-weight: 400; font-size: 12px; color: var(--muted); }
details.more { border-top: 1px solid var(--line); padding-top: 10px; }
details.more summary { cursor: pointer; font-weight: 700; font-size: 14px; }
details.more[open] summary { margin-bottom: 12px; }
.moregrid { display: grid; gap: 12px; }
.gallery button { position: relative; }
.gallery button[aria-pressed="true"]::after { content: "Main"; position: absolute; left: 2px; bottom: 2px; font: 700 9px var(--body); background: var(--accent); color: var(--accent-ink); padding: 1px 4px; border-radius: 3px; }
.shapes { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.shape { display: grid; justify-items: center; align-content: start; gap: 3px; padding: 9px 4px 8px; text-align: center; min-width: 0; }
.shape[aria-pressed="true"] { border-color: var(--accent); background: var(--soft); }
.shape-ico { height: 40px; width: 40px; display: grid; place-items: center; color: var(--muted); }
.shape[aria-pressed="true"] .shape-ico { color: var(--accent); }
.shape-ico i { display: block; border: 2px solid currentColor; border-radius: 3px; }
.shape b { font-size: 13px; }
.shape small { font-size: 11px; font-weight: 400; color: var(--muted); line-height: 1.3; }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.size { display: grid; gap: 2px; text-align: left; padding: 9px 10px; font-weight: 400; }
.size b { font-size: 14px; }
.size small { color: var(--muted); font-size: 12px; }
.size[aria-pressed="true"], .finish[aria-pressed="true"], .scheme[aria-pressed="true"], .font[aria-pressed="true"], .motif[aria-pressed="true"] { border-color: var(--accent); background: var(--soft); }
.badge { justify-self: start; font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 2px 6px; border-radius: 99px; margin-top: 3px; }
.badge.sharp { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.badge.good { background: var(--soft); color: var(--accent); }
.badge.soft { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
#finishes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fin3d { width: 100%; max-width: 132px; aspect-ratio: 4 / 3; display: block; margin-bottom: 2px; }
.fonts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.font { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; font-weight: 400; }
.font span { font-size: 24px; line-height: 1.25; }
.font b { font-size: 12px; }
.motifs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 380px) { .motifs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.motif { aspect-ratio: 1; padding: 0; display: grid; place-items: center; color: var(--muted); max-width: 100%; }
.motif[aria-pressed="true"] { color: var(--accent); }
.motif span { width: 62%; height: 62%; background: currentColor; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.swatch { display: grid; justify-items: center; gap: 3px; padding: 7px 4px; font-weight: 400; font-size: 11px; line-height: 1.2; }
.swatch .chip2 { width: 36px; height: 24px; font-size: 13px; }
.chip2 { width: 44px; height: 30px; border-radius: 5px; display: grid; place-items: center; font: 800 15px var(--display); margin-bottom: 2px; border: 1px solid var(--line); }
.mockup { width: 100%; border-radius: 8px; display: block; }
textarea { resize: vertical; }
.orderdone { border: 1px solid var(--ok); border-radius: 8px; padding: 12px; display: grid; gap: 8px; font-size: 14px; }
.orderdone p { margin: 0; }
.orderdone pre { white-space: pre-wrap; font: 12px var(--mono); background: var(--paper); padding: 10px; border-radius: 6px; margin: 0; max-height: 240px; overflow: auto; }
.orderdone img { width: 100%; border-radius: 6px; }
.copyrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.copyrow code { font: 14px var(--mono); }
.foot { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); padding-top: 14px; }
.btnlink { display: inline-flex; align-items: center; font: 700 14px/1 var(--body); border-radius: 7px; padding: 10px 14px; text-decoration: none; border: 1px solid var(--accent); }
.btnlink.primary { background: var(--accent); color: var(--accent-ink); }
.btnlink:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.filebtn.accent { border-color: var(--accent); color: var(--accent); }
.filebtn svg { margin-right: 6px; flex: none; }
.facepick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; }
.steps .filebtn { margin-top: 2px; }
.step { transition: box-shadow .3s; }
.step.nudge { box-shadow: 0 0 0 3px var(--accent); }
.showcase { display: grid; gap: 12px; }
.slides { position: relative; width: min(100%, calc(min(72vh, 760px) * .8)); aspect-ratio: 4 / 5; margin-inline: auto; background: var(--stage); border-radius: 12px; overflow: hidden; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(1.03); transition: opacity 1s ease, transform 5s ease; }
.slides img.on { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .slides img { transition: none; transform: none; } }
.scbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; }
.sccap { margin: 0; font-family: var(--display); font-weight: 800; font-size: 18px; text-wrap: balance; }
.dots { display: flex; gap: 8px; }
.dots button { width: 11px; height: 11px; border-radius: 50%; padding: 0; border: 0; background: var(--line); }
.dots button[aria-current="true"] { background: var(--accent); }
.peek { position: fixed; z-index: 40; width: 280px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 36px rgba(0,0,0,.32); padding: 8px; display: grid; gap: 8px; }
.peek img { width: 100%; height: 240px; object-fit: contain; background: var(--stage); border-radius: 6px; display: block; }
.peek .peekname { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.themeseg { margin-left: auto; align-self: center; }
.themeseg button { padding: 7px 11px; font-size: 13px; }
.busy { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; display: flex; gap: 14px; align-items: center; width: min(92vw, 380px); background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.3); padding: 12px 16px; }
.busy div { display: grid; gap: 4px; flex: 1; min-width: 0; }
.busy progress { width: 100%; }
.spinner { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.5s; } }
.busyline { display: flex; gap: 12px; align-items: center; background: var(--soft); border-radius: 10px; padding: 10px 12px; }
.busyline div { display: grid; gap: 3px; flex: 1; min-width: 0; }
.busyline progress { width: 100%; }
.tipbar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; background: var(--soft); border: 1px solid var(--accent); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.tipbar { min-width: 0; }
/* the open-in-browser tips pulse until the person copies the link or dismisses them */
.pulse { animation: tipPulse 1.6s ease-in-out infinite; }
@keyframes tipPulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); transform: scale(1); }
  50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--accent) 0%, transparent); transform: scale(1.012); }
}
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; box-shadow: 0 0 0 3px var(--accent); } }
.tipbar p { margin: 0; flex: 1 1 220px; min-width: 0; }
.tipbar .row, .tipbox .row { min-width: 0; }
[data-copy-link] { max-width: 100%; overflow-wrap: anywhere; text-align: left; }
.tipbox { display: grid; gap: 8px; background: var(--soft); border: 1px solid var(--accent); border-radius: 10px; padding: 12px; font-size: 14px; }
.tipbox p { margin: 0; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; font: 700 13px var(--body); }
dialog.welcome { max-width: 580px; width: calc(100% - 32px); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); padding: 0; }
dialog.welcome::backdrop { background: rgba(10, 12, 20, .55); }
.wbody { padding: 22px; display: grid; gap: 12px; max-height: 84vh; overflow: auto; }
.wbody h2 { font-family: var(--display); font-weight: 800; font-size: 26px; margin: 0; }
.wbody h3 { font-family: var(--display); font-size: 16px; margin: 6px 0 0; }
.wbody p { margin: 0; }
.wbody ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.consent { align-items: flex-start; font-weight: 400; font-size: 14px; background: var(--soft); padding: 10px 12px; border-radius: 8px; }
.consent input { margin-top: 3px; flex: none; }
.terms { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 13px; }
.savebox img { width: 100%; border-radius: 6px; }
@media (prefers-reduced-motion: no-preference) { button { transition: filter .15s, border-color .15s; } }
/* ---------- Guided flow: one step at a time on phones, folding steps on computers ---------- */
:root { --ease-out: cubic-bezier(.23, 1, .32, 1); --barH: 68px; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
button, .filebtn, [role="button"] { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
button:not(:disabled):active, .filebtn:active { transform: scale(.97); }
@media (prefers-reduced-motion: no-preference) {
  button, .filebtn { transition: transform 140ms var(--ease-out), filter .15s, border-color .15s, background-color .15s, color .15s; }
}
@media (pointer: coarse) {
  input[type="text"], input[type="tel"], input[type="date"], input[type="number"], textarea, select { font-size: 16px; }
}
h1 { line-height: 1.05; }

/* step summaries and "next" buttons */
.step .sum { display: none; margin: 0; padding-left: 34px; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.step .next { justify-self: end; }
.step .next::after { content: " →"; }

/* computers: steps you're not on fold down to their title and a one-line summary */
body.folding .step.fold { gap: 2px; padding-block: 12px; cursor: pointer; }
body.folding .step.fold > :not(h2):not(.sum) { display: none !important; }
body.folding .step.fold .sum { display: block; }
body.folding .step.fold h2 { font-size: 15px; }
body.folding .step.fold h2 i { background: var(--paper); color: var(--muted); }
body.folding .step.cur { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 6px 24px -14px color-mix(in srgb, var(--accent) 60%, transparent); }
body.folding .step h2 { cursor: pointer; border-radius: 6px; }
body.folding .step h2:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  body.folding .step.fold:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
  body.folding .step.fold:hover .sum { color: var(--ink); }
}

/* the step that just opened settles in; on phones it slides from the side you're heading towards */
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes wizIn { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 18px)); } }
@keyframes fadeIn { from { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  body.folding .step.enter > :not(h2):not(.sum) { animation: stepIn 260ms var(--ease-out) both; }
  body.wiz .step.enter { animation: wizIn 280ms var(--ease-out) both; }
}
@media (prefers-reduced-motion: reduce) {
  .step.enter { animation: fadeIn 160ms ease both; }
}

/* phones: one step at a time, the mosaic stays pinned at the top */
body.wiz { padding-bottom: calc(var(--barH) + env(safe-area-inset-bottom, 0px) + 24px); }
body.wiz::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
body.wiz .rail > .step:not(.cur) { display: none; }
body.wiz .step .next { display: none; }
body.wiz .bench { gap: 14px; }
body.wiz .stage { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--paper); padding-block: 8px 6px; gap: 6px; }
body.wiz .stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px; background: linear-gradient(var(--paper), transparent); pointer-events: none; }
body.wiz .lightbox { max-height: 42svh; padding: 6px; border-radius: 12px; }
body.wiz .lightbox canvas { box-shadow: 0 6px 18px rgba(0,0,0,.16); }
body.wiz #zoomHint, body.wiz .stagebar .stats { display: none; }
body.wiz .stagebar { gap: 6px; }
body.wiz .stagebar .seg button { padding: 7px 10px; font-size: 13px; }
body.wiz .showcase { gap: 8px; }
body.wiz .slides { width: min(100%, calc(36svh * .8)); }
body.wiz .sccap { font-size: 15px; }
body.wiz header { gap: 4px 12px; }
body.wiz header p { font-size: 14px; }
body.wiz .busy { bottom: calc(var(--barH) + 12px + env(safe-area-inset-bottom, 0px)); }

.wizbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--panel) 84%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border-top: 1px solid var(--line);
}
@media (prefers-reduced-transparency: reduce) { .wizbar { background: var(--panel); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.wizbar button { min-height: 44px; min-width: 84px; }
.wizbar button[disabled] { visibility: hidden; }
.wizmid { display: grid; justify-items: center; gap: 6px; min-width: 0; text-align: center; }
.wizmid span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 13px; }
.wizdots { display: flex; gap: 5px; }
.wizdots i { width: 6px; height: 6px; border-radius: 99px; background: var(--line); }
.wizdots i.past { background: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.wizdots i.on { width: 18px; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .wizdots i { transition: width 260ms var(--ease-out), background-color 260ms; } }
/* ---------- Skin: quiet, dark, futuristic. The mosaic is the only colour; pink marks the one main action per screen. ---------- */
:root { --raise: #FFFFFF; --hair: rgba(11, 14, 22, .08); --glass: rgba(255, 255, 255, .72); --r: 14px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --raise: #161B27; --hair: rgba(233, 237, 245, .07); --glass: rgba(10, 13, 20, .66); } }
:root[data-theme="dark"] { --raise: #161B27; --hair: rgba(233, 237, 245, .07); --glass: rgba(10, 13, 20, .66); }

body { font-size: 15px; letter-spacing: -0.006em; -webkit-font-smoothing: antialiased; }
.wrap { gap: 28px; }

/* wordmark header */
header { align-items: center; gap: 8px 20px; }
h1 { font-weight: 600; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.035em; }
h1 span { color: var(--accent); }
header p { font-size: 14px; max-width: 46ch; }
.themeseg { background: transparent; }
.themeseg button { padding: 6px 10px; font-size: 12px; }

/* no boxes: steps are open sections divided by hairlines */
.step { background: transparent; border: 0; border-radius: 0; border-top: 1px solid var(--hair); padding: 22px 0 6px; gap: 14px; }
.rail { gap: 0; }
.step h2 { font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.step h2 i { display: inline-block; width: auto; height: auto; background: none; border-radius: 0; font: 500 12px var(--mono); color: var(--muted); letter-spacing: .04em; }
.step h2 i::before { content: "0"; }
.step .sum { padding-left: 30px; font-family: var(--mono); font-size: 12px; letter-spacing: .01em; }
.note { font-size: 14px; }
.drop { border: 0; padding: 0; gap: 14px; }
.drop.over { outline: 1.5px dashed var(--accent); outline-offset: 8px; background: none; border-radius: var(--r); }

/* controls: pills, one action colour */
button, .filebtn { border-radius: 999px; padding: 11px 18px; font-weight: 600; background: var(--raise); border-color: var(--hair); }
button.primary, .filebtn.accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 6px 18px -12px var(--accent); }
.filebtn.accent svg { color: inherit; }
.seg { border: 1px solid var(--hair); border-radius: 999px; background: var(--raise); padding: 3px; gap: 2px; }
.seg button { border-radius: 999px; background: transparent; padding: 8px 14px; color: var(--muted); box-shadow: none; }
.seg button + button { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
input[type="text"], input[type="tel"], input[type="date"], input[type="number"], textarea, select { background: var(--raise); border: 1px solid var(--hair); border-radius: 12px; padding: 11px 12px; }
input[type="range"] { height: 22px; }
label.field { font-weight: 600; }
label.field output, .stats { font-family: var(--mono); }
details.more { border-top: 1px solid var(--hair); }
.shape, .size, .finish, .font, .motif, .swatch { border-radius: 12px; background: var(--raise); border-color: var(--hair); }
.shape[aria-pressed="true"], .size[aria-pressed="true"], .finish[aria-pressed="true"], .scheme[aria-pressed="true"], .font[aria-pressed="true"], .motif[aria-pressed="true"] { background: var(--raise); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.shape[aria-pressed="true"] .shape-ico, .motif[aria-pressed="true"] { color: var(--ink); }
.gallery { gap: 4px; }
.gallery button { border-radius: 8px; padding: 0; }
.gallery button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.chip { background: none; padding: 0; color: var(--muted); font-weight: 500; font-size: 11px; letter-spacing: .14em; }
.tipbar, .tipbox { background: var(--raise); border: 1px solid var(--hair); border-radius: var(--r); }
.badge { border-radius: 999px; }
.linkbtn { color: var(--muted); font-weight: 500; }
.foot { border-top: 1px solid var(--hair); font-size: 12px; }

/* the stage: a dark room with the mosaic as the light */
.lightbox { background: radial-gradient(ellipse 70% 60% at 50% 45%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 75%), var(--stage); border-radius: 20px; }
.lightbox canvas { box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .55), 0 0 0 1px var(--hair); background: transparent; border-radius: 2px; }
.slides { border-radius: 20px; }
.sccap { font-weight: 600; letter-spacing: -0.02em; }
.dots button { width: 6px; height: 6px; }
.dots button[aria-current="true"] { width: 18px; border-radius: 99px; }

/* "i" buttons hide the longer explanations */
.info { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; margin-left: 4px; vertical-align: 1px; border-radius: 50%; font: 600 12px/1 var(--mono); color: var(--muted); background: var(--raise); border: 1px solid var(--hair); }
.info[aria-expanded="true"] { color: var(--paper); background: var(--ink); }
.moreinfo { border-left: 2px solid var(--hair); padding-left: 12px; }

/* loading message while the example is made */
.lightbox.waiting { min-height: 220px; place-items: center; }
.loadmsg { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 14px; }
.loadmsg .spinner { width: 20px; height: 20px; border-width: 2px; }

/* the one memorable moment: a new mosaic settles in as a diagonal wave */
@keyframes settle {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; filter: blur(8px) saturate(.3); }
  to { -webkit-mask-position: 0 0; mask-position: 0 0; filter: blur(0) saturate(1); }
}
@keyframes settleFade { from { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  #viewer.settle {
    -webkit-mask-image: linear-gradient(120deg, #000 42%, transparent 58%); mask-image: linear-gradient(120deg, #000 42%, transparent 58%);
    -webkit-mask-size: 280% 100%; mask-size: 280% 100%;
    animation: settle 900ms var(--ease-out) both;
  }
}
@media (prefers-reduced-motion: reduce) { #viewer.settle { animation: settleFade 200ms ease both; } }

/* phone flow: glass bar, quieter stage */
.wizbar { background: var(--glass); border-top: 1px solid var(--hair); }
body.wiz .step { border-top: 0; padding-top: 10px; }
body.wiz .stage::after { background: linear-gradient(var(--paper), transparent); }
body.wiz .lightbox { border-radius: 16px; }
@media (max-height: 760px) {
  body.wiz .lightbox { max-height: 32svh; }
  body.wiz .stagebar .chip { display: none; }
}
body.folding .step.fold { padding-block: 16px; }
body.folding .step.fold h2 { font-size: 16px; color: var(--muted); }
body.folding .step.cur { border-color: var(--hair); box-shadow: none; }
body.folding .step.fold h2 i { background: none; }
/* "Fine-tune" opener: a tile with fanned previews of what's inside, like a drawer of effects */
details.mo { border-top: 0; padding-top: 2px; }
details.mo > summary { list-style: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 12px 14px; border-radius: 16px; border: 1px solid var(--hair); cursor: pointer; -webkit-user-select: none; user-select: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, var(--raise)), var(--raise) 55%);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 6%, transparent); }
details.mo > summary::-webkit-details-marker { display: none; }
details.mo > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
details.mo > summary:active { transform: scale(.98); }
details.mo[open] > summary { border-color: color-mix(in srgb, var(--accent) 45%, var(--hair)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent), 0 10px 30px -18px var(--accent); margin-bottom: 14px; }
.mo-text { display: grid; gap: 2px; min-width: 0; }
.mo-text b { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.mo-text small { color: var(--muted); font: 12px/1.4 var(--mono); }
.mo-icons { display: flex; width: 92px; height: 38px; align-items: center; }
.mo-icons i { width: 34px; height: 34px; flex: none; border-radius: 9px; border: 2px solid var(--raise); box-shadow: 0 4px 12px -4px rgba(0,0,0,.5); }
.mo-icons i + i { margin-left: -15px; }
.mo-chev { width: 9px; height: 9px; margin-right: 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); }
details.mo[open] .mo-chev { transform: rotate(225deg) translate(-2px, -2px); }
/* the little previews */
.ic-tint { background: linear-gradient(135deg, rgba(255,77,141,.6), rgba(110,168,255,.45)), repeating-conic-gradient(#46506b 0 25%, #222a3d 0 50%) 0 0 / 8px 8px; }
.ic-through { background: radial-gradient(circle at 50% 40%, rgba(233,237,245,.9) 0 20%, transparent 23%), radial-gradient(ellipse 60% 45% at 50% 100%, rgba(233,237,245,.85) 0 70%, transparent 74%), repeating-conic-gradient(#3a4258 0 25%, #1c2233 0 50%) 0 0 / 6px 6px; }
.ic-mix { background: conic-gradient(#ff4d8d 0 25%, #5fe0b0 0 50%, #ffb454 0 75%, #6ea8ff 0) 0 0 / 11px 11px; }
.ic-gap { background: repeating-linear-gradient(90deg, transparent 0 8px, var(--raise) 8px 11px), repeating-linear-gradient(0deg, transparent 0 8px, var(--raise) 8px 11px), linear-gradient(135deg, #8fa0c4, #4b5675); }
@media (prefers-reduced-motion: no-preference) {
  details.mo > summary { transition: transform 140ms var(--ease-out), border-color .2s, box-shadow .2s; }
  .mo-icons i { transition: transform 260ms var(--ease-out); }
  .mo-chev { transition: transform 220ms var(--ease-out); }
  details.mo[open] > .moregrid { animation: stepIn 260ms var(--ease-out) both; }
}
@media (hover: hover) and (pointer: fine) {
  details.mo > summary:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--hair)); }
  details.mo > summary:hover .mo-icons i:nth-child(2) { transform: translateX(4px) rotate(-4deg); }
  details.mo > summary:hover .mo-icons i:nth-child(3) { transform: translateX(8px) rotate(3deg); }
  details.mo > summary:hover .mo-icons i:nth-child(4) { transform: translateX(12px) rotate(-2deg); }
}
/* inside: each control carries its preview icon */
details.mo label.field .lbl { justify-content: flex-start; align-items: center; gap: 10px; }
details.mo label.field .lbl output { margin-left: auto; }
details.mo label.field .lbl::before { content: ""; width: 20px; height: 20px; border-radius: 6px; flex: none; }
details.mo label[for="tint"] .lbl::before { background: linear-gradient(135deg, rgba(255,77,141,.6), rgba(110,168,255,.45)), repeating-conic-gradient(#46506b 0 25%, #222a3d 0 50%) 0 0 / 5px 5px; }
details.mo label[for="overlay"] .lbl::before { background: radial-gradient(circle at 50% 40%, rgba(233,237,245,.9) 0 20%, transparent 24%), radial-gradient(ellipse 60% 45% at 50% 100%, rgba(233,237,245,.85) 0 70%, transparent 74%), repeating-conic-gradient(#3a4258 0 25%, #1c2233 0 50%) 0 0 / 4px 4px; }
details.mo label[for="variety"] .lbl::before { background: conic-gradient(#ff4d8d 0 25%, #5fe0b0 0 50%, #ffb454 0 75%, #6ea8ff 0) 0 0 / 7px 7px; }
details.mo label[for="gap"] .lbl::before { background: repeating-linear-gradient(90deg, transparent 0 5px, var(--paper) 5px 7px), repeating-linear-gradient(0deg, transparent 0 5px, var(--paper) 5px 7px), linear-gradient(135deg, #8fa0c4, #4b5675); }
details.mo label[for="gapColor"] .lbl::before { display: none; }
/* viewer controls: a glass bar floating over the bottom of the picture */
.lightbox { padding-bottom: 66px; }
.viewbar { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 2; display: flex; gap: 2px; padding: 4px;
  border-radius: 999px; border: 1px solid var(--hair); background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.6); white-space: nowrap; }
@media (prefers-reduced-transparency: reduce) { .viewbar { background: var(--raise); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.lightbox.waiting .viewbar { display: none; }
.viewbar button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 8px 11px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 13px; box-shadow: none; position: relative; overflow: hidden; }
.viewbar svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.viewbar button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.viewbar .reel { color: var(--ink); }
.reel-ico { width: 22px; height: 22px; margin-block: -3px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.reel-ico svg { width: 14px; height: 14px; fill: var(--accent-ink); stroke: none; margin-left: 1px; }
.reel-prog { position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; opacity: 0; }
.reel.playing .reel-prog { opacity: 1; animation: reelProg 6500ms linear forwards; }
.reel.playing .reel-ico { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent); }
@keyframes reelProg { to { transform: scaleX(1); } }
@media (hover: hover) and (pointer: fine) {
  .viewbar button:not([aria-pressed="true"]):hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
}
@media (prefers-reduced-motion: no-preference) {
  .viewbar button { transition: transform 140ms var(--ease-out), background-color .18s, color .18s; }
}
body.wiz .lightbox { padding-bottom: 58px; }
body.wiz .viewbar { bottom: 8px; }
body.wiz .viewbar button { padding: 7px 12px 7px 9px; }
/* logo: the Orb mark, 37 tiles forming one disc; tiles settle in once on load */
h1 { display: inline-flex; align-items: center; gap: 10px; }
h1 b { font-weight: inherit; }
.logo { width: 1.35em; height: 1.35em; flex: none; }
.logo rect { fill: var(--ink); }
.logo rect.a { fill: var(--accent); }
@keyframes tileIn { from { opacity: 0; transform: scale(.6); } }
@media (prefers-reduced-motion: no-preference) {
  .logo rect { transform-box: fill-box; transform-origin: center; animation: tileIn 420ms var(--ease-out) both; animation-delay: calc(var(--d) * 45ms + 120ms); }
}
#sizes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#sizes .size b { font-size: 18px; letter-spacing: -0.02em; }
#sizes .price { font-style: normal; font: 500 13px var(--mono); color: var(--muted); margin-left: 4px; }
#sizes .size[aria-pressed="true"] .price { color: var(--ink); }
.total { margin: 0; font: 500 14px var(--mono); }
.quote { display: grid; gap: 8px; border-top: 1px solid var(--hair); padding-top: 12px; margin-top: 4px; }
.quote .btnlink { justify-self: start; }
#pinArea { font-size: 12px; }
@keyframes totFade { from { opacity: .25; } }
@media (prefers-reduced-motion: no-preference) { .total.fade { animation: totFade 150ms ease; } }
/* print order steps: pay, WhatsApp, email */
.ostep { display: grid; gap: 8px; border-top: 1px solid var(--hair); padding-top: 12px; margin-top: 4px; }
.ostep .row { flex-wrap: wrap; }
.orderdone img.upiqr { width: 200px; height: 200px; background: #fff; border-radius: 10px; image-rendering: pixelated; }
.btnlink:not(.primary) { color: var(--ink); }
/* step 1: one big, friendly Add photos tile; folder and Drive zip as quiet extras */
.addtile { position: relative; display: grid; justify-items: center; gap: 4px; padding: 30px 16px 26px; border-radius: 24px; cursor: pointer; text-align: center;
  background: radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--accent) 16%, var(--raise)), var(--raise) 72%);
  border: 1px solid var(--hair); transition: transform 160ms var(--ease-out), border-color .2s; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.addtile input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.addtile b { font: 600 21px/1.2 var(--body); letter-spacing: -.01em; color: var(--ink); }
.addtile small { font: 12px var(--mono); color: var(--muted); }
.addtile:active { transform: scale(.98); }
.addtile:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .addtile:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--hair)); } }
.drop.over .addtile { border-color: var(--accent); }
.addart { display: grid; grid-template-columns: repeat(3, 20px); gap: 4px; margin-bottom: 10px; }
.addart i { width: 20px; height: 20px; border-radius: 6px; background: var(--ink); opacity: .88; animation: addPulse 3.2s var(--ease-out) infinite; }
.addart i:nth-child(2), .addart i:nth-child(6) { animation-delay: .12s; } .addart i:nth-child(3), .addart i:nth-child(7) { animation-delay: .24s; }
.addart i:nth-child(4), .addart i:nth-child(8) { animation-delay: .06s; } .addart i:nth-child(9) { animation-delay: .3s; }
.addart i:nth-child(5) { position: relative; background: var(--accent); opacity: 1; animation: none; }
.addart i:nth-child(5)::before, .addart i:nth-child(5)::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; border-radius: 1px; background: var(--accent-ink); transform: translate(-50%, -50%); }
.addart i:nth-child(5)::after { transform: translate(-50%, -50%) rotate(90deg); }
@keyframes addPulse { 0%, 70%, 100% { transform: scale(1); opacity: .88; } 80% { transform: scale(.82); opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .addart i { animation: none; } }
.altsrc { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.altsrc .filebtn { padding: 8px 14px; font-size: 13px; background: transparent; color: var(--muted); }
/* order panel: a header line, then two short sections */
.orderdone { border-color: var(--hair); border-radius: 18px; padding: 16px; gap: 6px; }
.ohead { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; }
.ohead b:last-child { font: 600 20px var(--body); }
.osh { font-weight: 600; margin: 0; }
.ostep .copyrow code { font-size: 13px; }

/* ============ v6: the photo comes first ============
   The mosaic fills the screen; controls are quiet glass. Pink is kept for the print pill,
   Place my order and Add photos. Phones: round Back/Next at the top, like a native app. */

/* round glass icon buttons */
button.round { width: 44px; height: 44px; min-width: 44px; padding: 0; border-radius: 50%; display: inline-grid; place-items: center;
  background: color-mix(in srgb, var(--panel) 62%, transparent); border: 1px solid var(--hair); color: var(--ink);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); box-shadow: 0 8px 24px -14px rgba(0,0,0,.7); }
button.round svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* the print pill floats on the photo */
.printcta { position: absolute; right: 12px; bottom: 12px; z-index: 3; display: inline-flex; align-items: baseline; gap: 8px; padding: 11px 18px;
  border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 15px var(--body);
  box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.printcta b { font: 500 12px var(--mono); opacity: .75; }
.lightbox.waiting .printcta, body[data-step="5"] .printcta { display: none; }
@media (hover: hover) and (pointer: fine) { .printcta:hover { filter: brightness(1.06); } }
/* the zoom controls go quiet and sit bottom-left, out of the print pill's way */
.viewbar { left: 12px; transform: none; }

/* desktop: the stage is the room; steps are a narrow, calm column */
@media (min-width: 901px) {
  .bench { grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 32px; }
  .lightbox { max-height: min(88vh, 1200px); }
  .step .next { background: transparent; color: var(--ink); border: 1px solid var(--hair); box-shadow: none; }
}

/* phones */
body.wiz { padding-top: calc(64px + env(safe-area-inset-top, 0px)); padding-bottom: 28px; }
body.wiz header { display: none; }
body.wiz .wizbar { top: 0; bottom: auto; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px; border: 0;
  background: linear-gradient(var(--paper) 30%, color-mix(in srgb, var(--paper) 0%, transparent)); -webkit-backdrop-filter: none; backdrop-filter: none; }
body.wiz .wizbar button[disabled] { visibility: hidden; }
body.wiz .wizmid { justify-self: center; display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 62%, transparent); border: 1px solid var(--hair);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
body.wiz .wizmid span { font-size: 14px; font-weight: 600; }
body.wiz .wizdots i { width: 5px; height: 5px; }
body.wiz .wizdots i.on { width: 14px; }
body.wiz::before { display: none; }
/* the mosaic gets most of the screen, edge to edge */
body.wiz .wrap { padding-inline: 0; }
body.wiz .rail { padding-inline: 16px; }
body.wiz .foot { padding-inline: 16px; }
body.wiz .stage { top: calc(64px + env(safe-area-inset-top, 0px)); padding: 0; background: var(--paper); }
body.wiz .stage::after { bottom: -18px; height: 18px; }
body.wiz .stagebar { display: none; }
body.wiz .lightbox { max-height: 56svh; min-height: 40svh; border-radius: 0; padding: 4px 0 64px; background: radial-gradient(ellipse 80% 70% at 50% 45%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 75%); }
body.wiz .lightbox canvas { box-shadow: 0 24px 60px -24px rgba(0,0,0,.8); }
body.wiz .viewbar { bottom: 12px; left: 12px; }
body.wiz .viewbar button span:not(.reel-ico) { display: none; }
body.wiz .viewbar button { padding: 8px; }
body.wiz .showcase .row .note { display: none; }
@media (max-height: 700px) { body.wiz .lightbox { max-height: 48svh; } }

/* steps: lighter headings, no numbers on phones (the top pill says where you are) */
body.wiz .step h2 { font-size: 17px; }
body.wiz .step h2 i { display: none; }

/* print sizes: the sheet at its real relative size, price big */
#sizes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#sizes .size { position: relative; display: grid; justify-items: center; text-align: center; gap: 2px; padding: 10px 6px 12px; border-radius: 16px; }
#sizes .szart { width: 100%; aspect-ratio: 1; display: block; }
#sizes .szart canvas { width: 100%; height: 100%; display: block; }
#sizes .size b { font-size: 15px; }
#sizes .price { margin: 0; font: 600 20px var(--body); color: var(--ink); letter-spacing: -0.02em; }
#sizes .size small { font-size: 11px; }
#sizes .tag { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 600 10px var(--mono); letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
#sizes .size[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
#orderBtn { width: 100%; padding-block: 15px; font-size: 16px; }

/* Save stays available but doesn't shout */
#saveBtn { background: transparent; color: var(--ink); border: 1px solid var(--hair); }
/* phones: the example slideshow is the photo; the Add photos tile below is the one call to action */
body.wiz .slides { width: min(100%, calc(50svh * .8)); }
body.wiz .showcase { padding-inline: 16px; }
body.wiz .showcase .row { display: none; }
/* on the order form the size cards carry the picture, so the stage steps back */
body.wiz[data-step="5"] .lightbox { max-height: 30svh; min-height: 0; padding-bottom: 8px; }
body.wiz[data-step="5"] .viewbar { display: none; }
#sizes .tag { top: -9px; }
/* phones: the zoom controls and print pill float on the picture itself, so the mosaic gets that room */
body.wiz .lightbox { padding-bottom: 4px; max-height: 62svh; }
@media (max-height: 700px) { body.wiz .lightbox { max-height: 58svh; } }
body.wiz[data-step="5"] .lightbox { max-height: 30svh; }
body.wiz .printcta, body.wiz .viewbar { bottom: 14px; }
body.wiz .printcta { right: 14px; }
body.wiz .viewbar { left: 14px; }
