/* Design studio (block studio-birthdaybanner).
   Layout: progress bar on top; step 1 = text tools | live stage | photo & colour tools;
   steps 2–3 = content | sticky order summary. Every rule is scoped to .bb-st. */
@keyframes bb-st-bump { 40% { transform: scale(1.08); } }
@keyframes bb-st-fade { from { opacity: .3; transform: translateY(4px); } }
@keyframes bb-st-spin { to { transform: rotate(360deg); } }
@keyframes bb-st-dot { 0%, 80%, 100% { transform: scale(.6); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

.bb-st {
  --ink: #0F1222;
  --body: #3B4052;
  --muted: #697086;
  --line: #E3E6EE;
  --line-strong: #CDD2DE;
  --paper: #FFFFFF;
  --ground: #F6F7FA;
  --tint: #EEF3FA;
  --blue: var(--bb-blue, #4F82C3);
  --blue-deep: #3A6BAA;
  --coral: var(--bb-coral, #F15A55);
  --coral-deep: #DB4641;
  /* Selection/focus accent: brand blue (was violet #8B5CF6, off-palette). */
  --violet: var(--bb-blue, #4F82C3);
  --ok: #23845A;
  --ok-soft: #E7F4ED;
  --warn: #B7791F;
  --warn-soft: #FDF3E1;
  --gradient: linear-gradient(90deg, #4F82C3, #F15A55, #FCB830);
  /* Brand gradient (was purple #7F00FF -> coral -> yellow, off-palette). */
  --party: linear-gradient(120deg, #4F82C3, #F15A55 55%, #FCB830);
  --f-head: var(--bb-font-heading, 'Poppins', 'Helvetica Neue', Arial, sans-serif);
  --f-text: var(--bb-font-body, 'Nunito', 'Segoe UI', Arial, sans-serif);
  --r: 14px;
  --r-s: 10px;
  --sh-1: 0 1px 2px rgba(15, 18, 34, .05), 0 1px 1px rgba(15, 18, 34, .03);
  --sh-2: 0 14px 34px -14px rgba(15, 18, 34, .22);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  display: block;
  background: var(--ground);
  color: var(--body);
  font-family: var(--f-text);
  font-size: 15px;
  line-height: 1.55;
  padding: 24px 20px 72px;
  -webkit-font-smoothing: antialiased;

  & *, & *::before, & *::after { box-sizing: border-box; }
  & h1, & h2, & h3 { font-family: var(--f-head); color: var(--ink); text-wrap: balance; margin: 0; letter-spacing: -.015em; font-weight: 600; }
  & p { margin: 0; }
  & button, & input, & textarea { font: inherit; color: inherit; }
  & button { cursor: pointer; }
  & :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
  & [hidden] { display: none !important; }
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .bb-st-wrap { max-width: 1360px; margin: 0 auto; display: grid; gap: 20px; }
  .bb-st-noscript { max-width: 640px; margin: 40px auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
  .bb-st-loading { display: flex; justify-content: center; gap: 8px; padding: 120px 0; }
  .bb-st-loading span { width: 12px; height: 12px; border-radius: 50%; background: var(--party); animation: bb-st-dot 1.2s infinite ease-in-out both; }
  .bb-st-loading span:nth-child(2) { animation-delay: .15s; }
  .bb-st-loading span:nth-child(3) { animation-delay: .3s; }

  /* ---------- Progress bar ---------- */
  .top { display: grid; grid-template-columns: auto 1fr auto; gap: 12px 24px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px 10px 14px; }
  @media (max-width: 760px) { .top { grid-template-columns: 1fr auto; } .steps { grid-column: 1 / -1; order: 3; } }
  .back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--body); text-decoration: none; border-radius: 8px; padding: 6px 8px; }
  .back-link:hover { color: var(--ink); background: var(--ground); }
  .steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; min-width: 0; }
  .steps li { display: flex; align-items: center; }
  .steps li + li::before { content: ""; width: clamp(10px, 2.6vw, 38px); height: 2px; border-radius: 2px; background: var(--line-strong); margin: 0 4px; }
  .steps li.past::before, .steps li.past + li::before { background: var(--ink); }
  .steps button, .steps a { border: 0; background: transparent; padding: 4px 6px; border-radius: 8px; display: flex; align-items: center; gap: 8px; font-family: var(--f-head); font-weight: 500; font-size: 13px; color: var(--muted); white-space: nowrap; text-decoration: none; }
  .steps b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; border: 1.5px solid var(--line-strong); color: var(--muted); background: var(--paper); }
  .steps b .ic { width: 12px; height: 12px; stroke-width: 3; }
  .steps [aria-current="step"] { color: var(--ink); }
  .steps [aria-current="step"] b { border: 0; background: var(--party); color: #fff; box-shadow: 0 0 0 4px #DCE6F3; }
  .steps li.past button, .steps li.past a { color: var(--ink); }
  .steps li.past b { background: var(--ink); border-color: var(--ink); color: #fff; }
  .steps button:disabled { cursor: default; }
  @media (max-width: 1080px) { .steps span { display: none; } }
  .cart { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-head); font-weight: 600; font-size: 14px; color: var(--ink); background: var(--ground); border: 1px solid var(--line); border-radius: var(--r-s); padding: 7px 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .cart.bump { animation: bb-st-bump .45s var(--bounce); }
  .trust { display: flex; justify-content: center; gap: 6px 24px; flex-wrap: wrap; font-size: 12.5px; font-weight: 600; color: var(--body); }
  .trust span { display: inline-flex; align-items: center; gap: 6px; }
  .trust .ic { width: 15px; height: 15px; color: var(--ok); }

  .head { display: grid; gap: 6px; }
  .kicker { font-family: var(--f-head); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; background: var(--party); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
  .head h1 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; }
  .head p { max-width: 660px; }

  /* ---------- Buttons ----------
     Site button system (artifact "BirthdayBanner Buttons", see
     assets/css/birthdaybanner.css): Primary = glossy gradient pill whose
     trailing arrow icon sits in a white circle; ghost = soft blue Secondary. */
  .btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; border: 1px solid transparent; border-radius: 999px; padding: 0 22px; font-family: var(--f-head); font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; transition: background .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease); white-space: nowrap; cursor: pointer; }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: scale(.98); }
  .btn:focus-visible { outline: 3px solid #4F82C3; outline-offset: 3px; }
  .btn-primary { background: linear-gradient(100deg, #3A6BAA 0%, #C83E3A 68%, #FCB830 100%); border-color: rgba(255,255,255,.35); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 12px 26px -8px rgba(200,62,58,.55), 0 8px 18px -8px rgba(252,184,48,.6), 0 6px 14px -6px rgba(58,107,170,.5); }
  .btn-primary::before { content: ""; position: absolute; inset: 0 0 52% 0; z-index: -1; background: linear-gradient(rgba(255,255,255,.38), rgba(255,255,255,0)); }
  .btn-primary:hover { color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 18px 34px -8px rgba(200,62,58,.65), 0 10px 22px -8px rgba(252,184,48,.7), 0 8px 18px -6px rgba(58,107,170,.55); }
  /* Trailing arrow icon -> white arrow circle */
  .btn-primary > .ic:last-child:not(:first-child) { box-sizing: border-box; width: 40px; height: 40px; margin: 3px -16px 3px 4px; padding: 11px; border-radius: 50%; background: #fff; color: #000; stroke: #000; box-shadow: 0 2px 6px rgba(0,0,0,.15); transition: transform .2s var(--ease); }
  .btn-primary:hover > .ic:last-child:not(:first-child) { transform: translateX(2px); }
  .btn-primary[disabled] { opacity: .6; cursor: progress; transform: none; }
  .btn-ghost { background: #EDF2F9; color: #1F3F6B; }
  .btn-ghost:hover { background: #E1EAF6; color: #1F3F6B; }
  .btn-text { background: transparent; color: var(--body); padding: 0 12px; }
  .btn-text:hover { color: var(--ink); background: var(--ground); transform: none; }
  .btn-s { min-height: 36px; padding: 0 14px; font-size: 13px; }
  .btn-block { width: 100%; min-height: 52px; font-size: 16px; }
  .btn-block.btn-primary { justify-content: flex-start; padding-left: 24px; padding-right: 22px; }
  .btn-block.btn-primary > .ic:last-child:not(:first-child) { margin-left: auto; }
  .btn .ic { width: 17px; height: 17px; }
  .spin { width: 17px; height: 17px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: bb-st-spin .8s linear infinite; }

  /* ---------- Preset picker ---------- */
  .presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; }
  .preset { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; text-align: left; padding: 0; transition: box-shadow .3s var(--ease), border-color .2s, transform .3s var(--ease); }
  .preset:hover { box-shadow: var(--sh-2); transform: translateY(-3px); }
  .preset[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
  /* Light theme backdrop: a soft blue room with blurred blue/coral/yellow
     glows from the site gradient, standing on a pale blue podium. */
  .art { position: relative; height: 320px; display: grid; place-items: center; padding: 20px 22px 30px; overflow: hidden; background:
      radial-gradient(ellipse 80% 60% at 50% 35%, #FFFFFF, transparent 70%),
      radial-gradient(40% 50% at 12% 20%, rgba(79, 130, 195, .16), transparent 70%),
      radial-gradient(36% 46% at 90% 30%, rgba(241, 90, 85, .10), transparent 70%),
      radial-gradient(30% 40% at 80% 85%, rgba(252, 184, 48, .10), transparent 70%),
      linear-gradient(180deg, #EEF2F9 0 86%, #D6E2F3 86%, #C8D7EE 100%); }
  .art.is-h { padding: 30px 24px; }
  .art .mm { transition: transform .4s var(--ease); }
  .preset:hover .art .mm { transform: scale(1.03); }
  .art .hover { position: absolute; inset: auto 12px 12px 12px; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s var(--ease); z-index: 12; }
  .preset:hover .hover, .preset:focus-visible .hover { opacity: 1; transform: none; }
  .hover span { display: flex; justify-content: center; align-items: center; gap: 6px; background: var(--ink); color: #fff; border-radius: 10px; padding: 9px; font-family: var(--f-head); font-size: 13.5px; font-weight: 500; }
  .preset-info { padding: 14px 16px 16px; display: flex; justify-content: space-between; gap: 10px; align-items: center; border-top: 1px solid var(--line); }
  .preset-info b { display: block; font-family: var(--f-head); font-weight: 500; font-size: 15.5px; color: var(--ink); }
  .preset-info span { font-size: 13px; color: var(--muted); }
  .swatch { width: 26px; height: 26px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }

  /* ---------- Mini mockups ---------- */
  .mm { position: relative; }
  .mm.v { height: 100%; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 18px; }
  .mm.v .mm-b { height: calc(100% - 8px); }
  .mm.h { width: 100%; padding-top: 10px; }
  .mm.h .mm-b { width: 100%; }
  .mm-b { position: relative; max-width: 100%; box-shadow: 0 14px 24px -14px rgba(0,0,0,.45), 0 2px 4px rgba(0,0,0,.08); }
  .mm-b::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 8; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.12) 46%, transparent 62%); }
  .mm-top { position: absolute; left: -2%; width: 104%; max-width: none; top: 0; transform: translateY(-45%); z-index: 9; display: block; }
  /* Same seat as the big stage (CAS_SEAT in script.js): the cassette sits
     behind the print, whose bottom edge drops into the slot 13.8/64 down it. */
  .mm-print { position: absolute; inset: 0; z-index: 1; }
  .mm-cas { position: absolute; left: -3.57%; width: 107.14%; max-width: none; bottom: 0; transform: translateY(78.44%); z-index: 0; display: block; filter: drop-shadow(0 4px 4px rgba(0,0,0,.18)); }
  .mm-rope { position: absolute; left: -40px; right: -40px; top: 0; height: 2px; background: repeating-linear-gradient(90deg, #A67F4B 0 3px, #C7A06A 3px 6px); }
  .mm .eye { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; z-index: 9; background: radial-gradient(circle, rgba(0,0,0,.6) 0 28%, #ECEFF2 34% 60%, #8C939C 70%); }

  /* ---------- Banner renderer ---------- */
  .dz-wrap { position: relative; max-width: 100%; }
  .dz { position: absolute; inset: 0; overflow: hidden; container-type: size; background: var(--fill); color: var(--fg); isolation: isolate; }
  .dz-bgimg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: 0; }
  .dz-tint { position: absolute; inset: 0; background: var(--fill); opacity: var(--ov); z-index: 1; }
  .dz-deco { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
  .deco-confetti .dz-deco { background-image:
    radial-gradient(circle at 12% 18%, #4F82C3 0 1.1cqmin, transparent 1.2cqmin),
    radial-gradient(circle at 38% 8%, #FCB830 0 0.9cqmin, transparent 1cqmin),
    radial-gradient(circle at 70% 14%, #F15A55 0 1.2cqmin, transparent 1.3cqmin),
    radial-gradient(circle at 88% 34%, #4F82C3 0 0.8cqmin, transparent 0.9cqmin),
    radial-gradient(circle at 8% 52%, #F15A55 0 0.9cqmin, transparent 1cqmin),
    radial-gradient(circle at 92% 64%, #FCB830 0 1.1cqmin, transparent 1.2cqmin),
    radial-gradient(circle at 20% 86%, #FCB830 0 1cqmin, transparent 1.1cqmin),
    radial-gradient(circle at 60% 94%, #4F82C3 0 1.1cqmin, transparent 1.2cqmin),
    radial-gradient(circle at 82% 88%, #F15A55 0 0.8cqmin, transparent 0.9cqmin); }
  .deco-grid .dz-deco { background:
    radial-gradient(ellipse at 50% 110%, color-mix(in srgb, var(--ac) 45%, transparent), transparent 60%),
    repeating-linear-gradient(0deg, color-mix(in srgb, var(--ac) 22%, transparent) 0 0.25cqmin, transparent 0.25cqmin 7cqmin),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--ac) 22%, transparent) 0 0.25cqmin, transparent 0.25cqmin 7cqmin); }
  .deco-bokeh .dz-deco { background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.35) 0 4cqmin, transparent 4.2cqmin),
    radial-gradient(circle at 80% 12%, rgba(255,255,255,.22) 0 7cqmin, transparent 7.3cqmin),
    radial-gradient(circle at 88% 70%, rgba(255,255,255,.28) 0 5cqmin, transparent 5.2cqmin),
    radial-gradient(circle at 10% 82%, rgba(255,255,255,.2) 0 8cqmin, transparent 8.3cqmin),
    radial-gradient(circle at 55% 92%, rgba(255,255,255,.25) 0 3cqmin, transparent 3.2cqmin); }
  .deco-clouds .dz-deco { background:
    radial-gradient(ellipse 40cqmin 22cqmin at 15% 12%, rgba(255,255,255,.85), transparent 70%),
    radial-gradient(ellipse 46cqmin 24cqmin at 88% 90%, rgba(255,255,255,.85), transparent 70%); }
  .dz-spark { position: absolute; color: var(--ac); line-height: 1; transform: translate(-50%, -50%); }
  .dz-photo { position: absolute; z-index: 3; width: calc(var(--ps) * 1cqmin); aspect-ratio: 1; transform: translate(-50%, -50%); border: 1.1cqmin solid var(--ac); overflow: hidden; background: var(--fg); box-shadow: 0 1.5cqmin 4cqmin rgba(0,0,0,.25); }
  .shape-circle .dz-photo { border-radius: 50%; }
  .shape-rounded .dz-photo { border-radius: 5cqmin; }
  .shape-polaroid .dz-photo { border-radius: 0.6cqmin; border-color: #fff; border-width: 1.6cqmin 1.6cqmin 6cqmin; transform: translate(-50%, -50%) rotate(-4deg); }
  .dz-photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; pointer-events: none; }
  .dz-slot { position: absolute; z-index: 3; width: calc(var(--ps) * 1cqmin); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 0.6cqmin dashed color-mix(in srgb, var(--fg) 75%, transparent); background: color-mix(in srgb, var(--fg) 14%, transparent); display: grid; place-content: center; justify-items: center; gap: 1cqmin; color: var(--fg); font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 3.4cqmin; cursor: pointer; text-align: center; transition: background .2s, transform .25s var(--bounce); }
  .dz-slot:hover { background: color-mix(in srgb, var(--fg) 26%, transparent); transform: translate(-50%, -50%) scale(1.04); }
  .dz-slot svg { width: 8cqmin; height: 8cqmin; fill: none; stroke: currentColor; stroke-width: 1.8; }
  .dz-slot small { font-size: 2.4cqmin; opacity: .8; font-weight: 500; }
  .dz-head { position: absolute; z-index: 4; transform: translate(-50%, -50%); max-width: 90cqw; display: grid; gap: 1.2cqmin; text-align: center; justify-items: center; }
  .dz-head span { display: block; overflow-wrap: anywhere; }
  .dz-k { font-family: 'Poppins', sans-serif; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ac); font-size: calc(3.6cqmin * var(--sc)); line-height: 1.25; }
  .dz-n { font-family: var(--font); font-weight: var(--fw); color: var(--fg); font-size: calc(var(--nsz) * 1cqmin * var(--sc)); line-height: 1.02; white-space: pre-line; text-shadow: 0 0.5cqmin 1.6cqmin rgba(0,0,0,.18); }
  .dz-l { font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--fg); font-size: calc(3.2cqmin * var(--sc)); opacity: .92; line-height: 1.3; }
  .fx-glow .dz-n { text-shadow: 0 0 1.2cqmin var(--ac), 0 0 3.5cqmin var(--ac), 0 0 7cqmin color-mix(in srgb, var(--ac) 60%, transparent); }
  .fx-3d .dz-n { text-shadow: .5cqmin .5cqmin 0 var(--ac), 1cqmin 1cqmin 0 color-mix(in srgb, var(--ac) 55%, #000), 1.6cqmin 1.6cqmin 2cqmin rgba(0,0,0,.25); }
  .fx-outline .dz-n { -webkit-text-stroke: .45cqmin var(--ac); paint-order: stroke fill; text-shadow: none; }
  .fx-shine .dz-n { background: linear-gradient(100deg, var(--fg) 20%, var(--ac) 50%, var(--fg) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 .5cqmin 1cqmin rgba(0,0,0,.2)); }
  .pat-top .dz-head { text-align: left; justify-items: start; }
  .pat-ribbon .dz-head { background: var(--ac); padding: 2.6cqmin 6cqmin; box-shadow: 0 1.2cqmin 3cqmin rgba(0,0,0,.2); }
  .pat-ribbon .dz-head::before, .pat-ribbon .dz-head::after { content: ""; position: absolute; top: 22%; bottom: -22%; width: 6cqmin; background: color-mix(in srgb, var(--ac) 70%, #000); z-index: -1; }
  .pat-ribbon .dz-head::before { left: -4cqmin; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 40% 50%); }
  .pat-ribbon .dz-head::after { right: -4cqmin; clip-path: polygon(0 0, 100% 0, 60% 50%, 100% 100%, 0 100%); }
  .pat-ribbon .dz-k, .pat-ribbon .dz-n, .pat-ribbon .dz-l { color: var(--bg); text-shadow: none; -webkit-text-stroke: 0; }
  .pat-ribbon.fx-shine .dz-n { background: none; color: var(--bg); }
  .pat-stamp .dz-head { width: calc(50cqmin * var(--sc)); aspect-ratio: 1; border-radius: 50%; background: var(--bg); border: 1cqmin solid var(--ac); outline: 0.5cqmin solid var(--ac); outline-offset: 1.2cqmin; place-content: center; padding: 5cqmin; box-shadow: 0 1.5cqmin 4cqmin rgba(0,0,0,.22); }
  .pat-stamp .dz-n { font-size: calc(var(--nsz) * 0.62cqmin * var(--sc)); }
  .pat-stamp .dz-k { font-size: calc(2.8cqmin * var(--sc)); }
  .pat-stamp .dz-l { font-size: calc(2.6cqmin * var(--sc)); }
  .is-edit [data-drag] { cursor: grab; touch-action: none; }
  .is-edit [data-drag]:hover { outline: 1.5px solid rgba(255, 255, 255, .95); outline-offset: 1cqmin; box-shadow: 0 0 0 1cqmin rgba(79, 130, 195, .35); }
  .is-edit [data-drag].dragging { cursor: grabbing; outline: 1.5px solid #fff; outline-offset: 1cqmin; }
  .dz-rs { position: absolute; right: -9px; bottom: -9px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--violet); box-shadow: 0 2px 6px rgba(0,0,0,.3); cursor: nwse-resize; touch-action: none; z-index: 2; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s var(--bounce); }
  .dz-rs::after { content: ""; position: absolute; inset: 4px; border-right: 2px solid var(--violet); border-bottom: 2px solid var(--violet); border-radius: 0 0 2px 0; }
  .is-edit .dz-head:hover .dz-rs, .is-edit .dz-head.dragging .dz-rs { opacity: 1; transform: none; }
  .pat-stamp .dz-rs { right: 4%; bottom: 4%; }
  @media (hover: none) { .is-edit .dz-rs { opacity: 1; transform: none; } }

  /* ---------- Editor ---------- */
  .ed { display: grid; grid-template-columns: 310px minmax(0, 1fr) 310px; gap: 16px; align-items: start; }
  @media (max-width: 1140px) { .ed { grid-template-columns: 1fr 1fr; } .ed-center { grid-column: 1 / -1; order: -1; } }
  @media (max-width: 720px) { .ed { grid-template-columns: 1fr; } }
  .panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; overflow: hidden; }
  .panel-h { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px; color: #fff; background: linear-gradient(120deg, var(--blue-deep), var(--blue)); overflow: hidden; }
  .panel.right .panel-h { background: linear-gradient(120deg, #F15A55, #FF8A3D 60%, #FCB830); }
  .panel-h::after { content: ""; position: absolute; right: -30px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.14); }
  .panel-h i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.2); }
  .panel-h b { font-family: var(--f-head); font-weight: 600; font-size: 15px; display: block; line-height: 1.2; color: #fff; }
  .panel-h span { font-size: 12.5px; opacity: .9; }
  .sec { padding: 16px; display: grid; gap: 10px; border-bottom: 1px solid var(--line); }
  .sec:last-child { border-bottom: 0; }
  .sec-t { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .hint { font-size: 12.5px; color: var(--muted); line-height: 1.45; display: flex; gap: 6px; }
  .hint .ic { width: 15px; height: 15px; margin-top: 1px; }
  .pats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .pat { position: relative; border: 0; border-radius: 12px; background: var(--ground); padding: 5px 5px 7px; display: grid; gap: 6px; justify-items: stretch; text-align: center; cursor: pointer; transition: background .2s, box-shadow .25s var(--ease), transform .25s var(--ease); }
  .pat svg { width: 100%; aspect-ratio: 3 / 2; height: auto; display: block; border-radius: 8px; background: radial-gradient(120% 90% at 85% 0%, #4A2A8A 0%, transparent 60%), linear-gradient(150deg, #1E1650, #120C2E); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); transition: transform .3s var(--ease), box-shadow .25s var(--ease); }
  .pat span { font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: .01em; transition: color .2s; }
  .pat:hover { background: var(--tint); transform: translateY(-2px); }
  .pat:hover svg { transform: scale(1.03); }
  .pat:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
  .pat[aria-pressed="true"] { background: var(--paper); box-shadow: 0 0 0 2px var(--violet), 0 8px 20px -10px rgba(79, 130, 195,.55); }
  .pat[aria-pressed="true"] span { color: var(--ink); }
  .pat[aria-pressed="true"]::after { content: ""; position: absolute; top: 2px; right: 2px; width: 15px; height: 15px; border-radius: 50%; background: var(--violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
  .field { display: grid; gap: 5px; }
  .field label { font-size: 13px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 6px; align-items: center; }
  .field label small { font-weight: 600; color: var(--muted); }
  .field input[type="text"], .field input[type="date"], .field textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: var(--r-s); padding: 10px 12px; background: var(--paper); font-size: 14.5px; transition: border-color .15s, box-shadow .15s; margin: 0; }
  .field input:hover, .field textarea:hover { border-color: #AEB4C2; }
  .field input:focus, .field textarea:focus { border-color: var(--violet); outline: none; box-shadow: 0 0 0 3px rgba(79, 130, 195, .18); }
  .field textarea { resize: vertical; min-height: 60px; }
  .field.sample textarea { border-color: #E9C46A; background: #FFFCF3; }
  .tag-sample { font-size: 10.5px; font-weight: 600; color: #8A5A00; background: var(--warn-soft); border-radius: 6px; padding: 2px 7px; }
  .count { font-size: 11.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
  .fonts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .fonts button, .fxs button { border: 1px solid var(--line-strong); border-radius: var(--r-s); background: var(--paper); padding: 8px 4px 6px; display: grid; gap: 1px; justify-items: center; transition: border-color .2s, box-shadow .2s, transform .2s var(--bounce); }
  .fonts button:hover, .fxs button:hover { border-color: var(--ink); transform: translateY(-2px); }
  .fonts button b { font-size: 21px; line-height: 1.1; color: var(--ink); font-weight: 400; }
  .fonts button span, .fxs button span { font-size: 10.5px; color: var(--muted); font-weight: 600; }
  .fonts button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
  .fxs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
  .fxs button { background: #1A1340; border-color: #1A1340; }
  .fxs b { font-family: 'Anton', sans-serif; font-size: 19px; line-height: 1.15; font-weight: 400; color: #fff; }
  .fxs button span { color: #B9B3D9; }
  .fxs button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--violet); }
  .fx-s-glow { text-shadow: 0 0 4px #FF5FD2, 0 0 10px #FF5FD2; }
  .fx-s-3d { text-shadow: 1.5px 1.5px 0 #FF5FD2, 3px 3px 0 #8B1A6B; }
  .fx-s-outline { -webkit-text-stroke: 1.5px #FF5FD2; color: transparent !important; }
  .fx-s-shine { background: linear-gradient(100deg, #fff 20%, #FF5FD2 50%, #fff 80%); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
  .range { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; }
  .range label { font-size: 13px; font-weight: 600; color: var(--ink); }
  .range output { font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
  .range input { grid-column: 1 / -1; width: 100%; accent-color: var(--violet); margin: 4px 0 0; }
  .seg { display: flex; gap: 3px; background: #ECEFF4; padding: 3px; border-radius: var(--r-s); }
  .seg button { flex: 1; border: 0; background: transparent; border-radius: 7px; padding: 6px 4px; font-size: 12px; font-weight: 600; color: var(--muted); display: inline-flex; justify-content: center; align-items: center; gap: 5px; }
  .seg button .ic { width: 15px; height: 15px; }
  .seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--sh-1); }
  .grads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 6px; }
  .grads button { border: 0; background: none; padding: 0; display: grid; gap: 4px; justify-items: center; font-size: 10.5px; font-weight: 600; color: var(--muted); }
  .grads button i { width: 46px; height: 46px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), 0 6px 14px -8px rgba(0,0,0,.45); transition: transform .25s var(--bounce), box-shadow .2s; }
  .grads button:hover i { transform: scale(1.1) rotate(-8deg); }
  .grads button[aria-pressed="true"] i { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
  .grads button[aria-pressed="true"] { color: var(--ink); }
  .palettes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .palettes button { border: 1px solid var(--line-strong); border-radius: var(--r-s); background: var(--paper); padding: 6px; display: grid; gap: 5px; transition: border-color .2s, box-shadow .2s, transform .2s var(--bounce); }
  .palettes button:hover { border-color: var(--ink); transform: translateY(-2px); }
  .palettes button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
  .sw { display: flex; height: 20px; border-radius: 6px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
  .sw i { flex: 1; }
  .palettes span { font-size: 10.5px; font-weight: 600; color: var(--muted); text-align: center; }
  .mix { display: grid; gap: 8px; background: var(--ground); border-radius: var(--r-s); padding: 10px; }
  .mix-row { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; align-items: center; }
  .mix-prev { height: 30px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
  .cpick { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--line-strong); position: relative; cursor: pointer; display: block; flex: none; }
  .cpick input { position: absolute; inset: -8px; width: 50px; height: 50px; border: 0; padding: 0; cursor: pointer; }
  .cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .cols2 label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: var(--r-s); padding: 5px 8px 5px 5px; font-size: 12.5px; font-weight: 600; color: var(--body); cursor: pointer; }
  .cols2 .cpick { width: 26px; height: 26px; }
  .dice { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 9px; padding: 8px 12px; font-family: var(--f-head); font-weight: 500; font-size: 13px; color: #fff; background: var(--party); box-shadow: 0 8px 18px -10px rgba(79, 130, 195, .8); transition: transform .2s var(--bounce); }
  .dice:hover { transform: translateY(-1px) rotate(-1deg); }
  .dice .ic { transition: transform .3s var(--bounce); width: 16px; height: 16px; }
  .dice:active .ic { transform: rotate(180deg); }
  .dropzone { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 22px 14px; border: 2px dashed #B9CCE6; border-radius: 12px; background: linear-gradient(160deg, #FBF8FF, #FFF6F1); cursor: pointer; position: relative; transition: border-color .2s, background .2s, transform .2s var(--ease); }
  .dropzone:hover, .dropzone.over { border-color: var(--violet); background: linear-gradient(160deg, #EEF3FA, #FFEFE6); transform: translateY(-1px); }
  .dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
  .bubble .ic { stroke: #fff; width: 22px; height: 22px; }
  .bubble { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--party); box-shadow: 0 10px 20px -10px rgba(79, 130, 195, .9); }
  .dropzone b { font-family: var(--f-head); font-weight: 600; color: var(--ink); font-size: 14.5px; }
  .dropzone span { font-size: 12.5px; color: var(--muted); }
  .dropzone.small { grid-template-columns: auto 1fr; justify-items: start; text-align: left; padding: 10px 12px; gap: 2px 10px; }
  .dropzone.small .bubble { width: 34px; height: 34px; grid-row: span 2; }
  .dropzone.small .bubble .ic { width: 16px; height: 16px; }
  .dropzone.small b { font-size: 13.5px; }
  .has-photo { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; }
  .thumb { position: relative; width: 72px; height: 72px; border-radius: 12px; background: var(--ground) center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); display: grid; place-items: center; }
  .thumb .spin { border-color: rgba(79, 130, 195, .3); border-top-color: var(--violet); }
  .thumb.busy::after { content: ""; position: absolute; inset: 0; border-radius: 12px; background: rgba(255,255,255,.55); }
  .thumb.busy .spin { position: relative; z-index: 1; }
  .side { display: grid; gap: 6px; min-width: 0; }
  .photo-actions { display: flex; flex-wrap: wrap; gap: 6px; }
  .upload { position: relative; overflow: hidden; }
  .upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
  .q { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; border-radius: 6px; padding: 3px 8px; width: fit-content; }
  .q i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
  .q .ic { width: 14px; height: 14px; }
  .q.good { color: var(--ok); background: var(--ok-soft); }
  .q.mid { color: var(--warn); background: var(--warn-soft); }
  .q.low, .q.err { color: var(--coral-deep); background: #FDECEB; }
  .q.sample { color: #6D3FD6; background: #F3EDFF; }
  .icon-btn { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; color: var(--ink); padding: 0; }
  .icon-btn.sm { width: 32px; height: 32px; }
  .icon-btn:hover:not([disabled]) { border-color: var(--ink); }
  .icon-btn[disabled] { opacity: .35; cursor: default; }
  .ed-center { display: grid; gap: 12px; min-width: 0; }
  .toolbar { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 8px 8px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
  .toolbar h2 { font-size: 15px; }
  .toolbar p { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
  .toolbar p .ic { width: 14px; height: 14px; color: var(--ok); }
  .tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .vsep { width: 1px; height: 22px; background: var(--line); }
  .stage { position: relative; height: clamp(420px, 64vh, 680px); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #E7EAF0; transition: box-shadow .2s; }
  .stage.over { box-shadow: 0 0 0 3px var(--violet); }
  /* Room in the site's light theme: soft blue wall with blurred glows of the
     brand gradient, a pale blue floor. Floor height matches renderStage()
     (floor = 13% of the stage). */
  .scene-wall { position: absolute; inset: 0 0 13% 0; background:
      radial-gradient(ellipse 70% 70% at 50% 25%, rgba(255,255,255,.9), rgba(255,255,255,0) 70%),
      radial-gradient(38% 55% at 8% 18%, rgba(79, 130, 195, .18), transparent 70%),
      radial-gradient(34% 50% at 94% 26%, rgba(241, 90, 85, .10), transparent 70%),
      radial-gradient(30% 45% at 88% 92%, rgba(252, 184, 48, .12), transparent 70%),
      linear-gradient(180deg, #EEF2F9, #E1E8F4); }
  .stage.is-wall .scene-wall { background:
      radial-gradient(ellipse 70% 70% at 50% 25%, rgba(255,255,255,.85), rgba(255,255,255,0) 70%),
      radial-gradient(38% 55% at 8% 18%, rgba(79, 130, 195, .16), transparent 70%),
      radial-gradient(34% 50% at 94% 26%, rgba(241, 90, 85, .10), transparent 70%),
      repeating-linear-gradient(0deg, rgba(79, 130, 195, .035) 0 1px, transparent 1px 3px),
      linear-gradient(180deg, #F1F4FA, #E4EAF5); }
  .scene-base { position: absolute; left: 0; right: 0; bottom: 13%; height: 8px; background: linear-gradient(180deg, #FFFFFF, #E6ECF6); box-shadow: 0 1px 0 rgba(79, 130, 195, .15); }
  .scene-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 13%; background: linear-gradient(180deg, rgba(79, 130, 195, .14), rgba(79, 130, 195, 0) 45%), radial-gradient(60% 120% at 50% 0%, rgba(255, 255, 255, .7), transparent 70%), linear-gradient(180deg, #D6E2F3, #C6D5EC); }
  .stage.print { background: repeating-conic-gradient(#EEF0F4 0 25%, #E8EBF0 0 50%) 0 0 / 22px 22px; }
  .cas-img, .top-img { position: absolute; z-index: 3; display: block; max-width: none; pointer-events: none; }
  /* Behind the print (.banner, z 2) so the print drops into its slot. */
  .cas-img { z-index: 1; filter: drop-shadow(0 6px 6px rgba(0,0,0,.22)); }
  .top-img { filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
  .contact { position: absolute; height: 14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.3), transparent); z-index: 1; }
  .banner { position: absolute; z-index: 2; box-shadow: 0 18px 40px -16px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.08); }
  .banner::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 6; background: linear-gradient(100deg, transparent 28%, rgba(255,255,255,.10) 45%, transparent 62%), linear-gradient(90deg, rgba(0,0,0,.07), transparent 5%, transparent 95%, rgba(0,0,0,.07)); }
  .stage.print .banner { box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); }
  .stage.print .banner::after { display: none; }
  .banner .dz-wrap { width: 100%; height: 100%; }
  .eyelet { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: radial-gradient(circle, rgba(0,0,0,.6) 0 28%, #F1F3F5 33% 58%, #8E959E 68% 100%); z-index: 7; box-shadow: 0 1px 1px rgba(0,0,0,.35); }
  .tie { position: absolute; width: 2px; background: #B08A55; z-index: 1; }
  .rope { position: absolute; height: 3px; background: repeating-linear-gradient(90deg, #A67F4B 0 4px, #C9A46C 4px 8px); border-radius: 2px; z-index: 1; box-shadow: 0 2px 2px rgba(0,0,0,.12); }
  .hook { position: absolute; width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid #7E848D; z-index: 2; }
  .person { position: absolute; z-index: 3; cursor: grab; touch-action: none; border-radius: 10px; transition: background .2s; }
  .person:hover { background: rgba(255, 255, 255, .35); outline: 1.5px dashed rgba(110, 116, 134, .6); outline-offset: 4px; }
  .person.dragging { cursor: grabbing; background: rgba(255, 255, 255, .45); }
  .person svg { width: 100%; height: 100%; display: block; pointer-events: none; }
  .person .scale-tag { left: 50%; bottom: calc(100% + 6px); }
  .person-toggle { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 7px 11px; font-family: var(--f-head); font-weight: 500; font-size: 12.5px; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s; white-space: nowrap; }
  .person-toggle .ic { width: 16px; height: 16px; }
  .person-toggle span { color: var(--muted); font-weight: 500; }
  .person-toggle:hover { border-color: var(--ink); }
  .person-toggle[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
  .person-toggle[aria-pressed="true"] span { color: rgba(255, 255, 255, .75); }
  .dim { position: absolute; font-size: 11px; font-weight: 600; color: #4F5566; font-variant-numeric: tabular-nums; white-space: nowrap; z-index: 4; }
  .dim em { font-style: normal; background: rgba(255,255,255,.92); border-radius: 5px; padding: 1px 6px; box-shadow: var(--sh-1); }
  .dim.w { height: 0; border-top: 1px solid #7B8293; display: flex; justify-content: center; }
  .dim.w em { transform: translateY(-50%); }
  .dim.w::before, .dim.w::after { content: ""; position: absolute; top: -5px; width: 1px; height: 10px; background: #7B8293; }
  .dim.w::before { left: 0; } .dim.w::after { right: 0; }
  .dim.h { width: 0; border-left: 1px solid #7B8293; display: flex; align-items: center; }
  .dim.h em { transform: translateX(-50%); }
  .dim.h::before, .dim.h::after { content: ""; position: absolute; left: -5px; height: 1px; width: 10px; background: #7B8293; }
  .dim.h::before { top: 0; } .dim.h::after { bottom: 0; }
  .safe { position: absolute; border: 1.5px dashed rgba(79, 130, 195, .9); pointer-events: none; z-index: 7; }
  .legend { position: absolute; left: 12px; bottom: 12px; z-index: 8; display: flex; gap: 12px; flex-wrap: wrap; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 9px; padding: 6px 10px; font-size: 11.5px; font-weight: 600; color: var(--body); }
  .legend span { display: inline-flex; align-items: center; gap: 6px; }
  .legend i { width: 16px; height: 0; border-top: 1.5px solid #14161C; }
  .legend i.d { border-top: 1.5px dashed #4F82C3; }
  .scale-tag { position: absolute; z-index: 4; font-size: 11px; font-weight: 600; color: #6E7486; white-space: nowrap; transform: translateX(-50%); }
  .drop-hint { position: absolute; inset: 0; z-index: 20; display: none; place-items: center; background: rgba(79, 130, 195, .12); color: var(--ink); font-family: var(--f-head); font-weight: 600; pointer-events: none; }
  .stage.over .drop-hint { display: grid; }
  /* Size picker: two product cards (Roll-up | Wall). The photo leads, with
     name, price and thumbnails on frosted glass; sizes in one segmented bar.
     The card of the chosen banner type gets a coral ring. */
  .pcards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
  @media (max-width: 760px) { .pcards { grid-template-columns: 1fr; } }
  .pcard { min-width: 0; border-radius: 22px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 16px 36px -28px rgba(20, 22, 28, .5); transition: box-shadow .25s; }
  .pcard:not(.on) { cursor: pointer; }
  .pcard:not(.on):hover { border-color: var(--line-strong); box-shadow: 0 0 0 1px var(--line-strong), 0 20px 40px -26px rgba(20, 22, 28, .55); }
  .pc-head:focus-visible { outline: 3px solid var(--coral); outline-offset: -3px; border-radius: 22px 22px 0 0; }
  .pc-price { display: inline-block; }
  .pcard.on { box-shadow: 0 0 0 2px var(--coral), 0 22px 44px -26px rgba(241, 90, 85, .7); }
  /* Photo, then the thumbnails in their own row under it (never over it). */
  .pc-hero { position: relative; background: #fff; display: grid; gap: 12px; padding-bottom: 12px; }
  .pc-hero.no-photo { min-height: 120px; background: var(--ground); }
  .pc-main { display: block; width: 100%; max-width: 100%; aspect-ratio: 5 / 4; object-fit: contain; background: #fff; }
  .pc-glass { position: absolute; z-index: 2; background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .9); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); }
  .pc-head { width: 100%; background: none; border-width: 0 0 1px; border-style: solid; font: inherit; text-align: left; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 12px; border-bottom: 1px solid var(--line); }
  .pc-label { display: grid; gap: 1px; min-width: 0; }
  .pc-label b { display: flex; align-items: center; gap: 8px; font-family: var(--f-head); font-size: 15.5px; color: var(--ink); }
  .pc-label span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
  .pcard.on .pc-label .shape { background: var(--bb-gradient-135, var(--coral)); border-color: transparent; }
  .pc-price { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--ground); border: 1px solid var(--line); font-family: var(--f-head); font-weight: 600; font-size: 12.5px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .pcard.on .pc-price { background: var(--bb-gradient-135, var(--coral)); border-color: transparent; color: #fff; }
  .pc-thumbs { position: static; margin: 0 12px; padding: 6px; border-radius: 16px; display: flex; gap: 6px; overflow-x: auto; background: var(--ground); border: 1px solid var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .pc-thumbs button { flex: none; width: 44px; height: 44px; padding: 0; border: 2px solid transparent; border-radius: 10px; background: #fff; overflow: hidden; cursor: pointer; }
  .pc-thumbs button[aria-pressed="true"] { border-color: var(--ink); }
  .pc-thumbs img { width: 100%; height: 100%; object-fit: contain; display: block; }
  .pc-body { padding: 14px; display: grid; gap: 10px; }
  .pc-cap { margin: 0; font-size: 13px; color: var(--muted); font-weight: 500; min-height: 2.6em; }
  .pc-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: var(--ground); border: 1px solid var(--line); }
  .pc-opt { border: 0; background: transparent; border-radius: 12px; padding: 9px 2px; display: grid; gap: 1px; justify-items: center; cursor: pointer; color: var(--ink); transition: background .2s; }
  .pc-opt:hover { background: var(--paper); }
  .pc-opt b { font-family: var(--f-head); font-weight: 500; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .pc-opt span { color: var(--muted); font-weight: 600; font-size: 12px; font-variant-numeric: tabular-nums; }
  .pc-opt[aria-pressed="true"] { background: var(--bb-gradient-135, var(--coral)); color: #fff; box-shadow: 0 8px 16px -10px rgba(241, 90, 85, .9); }
  .pc-opt[aria-pressed="true"] span { color: rgba(255, 255, 255, .92); }
  .pc-thumbs button:focus-visible, .pc-opt:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
  .shape { flex: none; border: 1.8px solid currentColor; border-radius: 3px; }
  .shape.v { width: 11px; height: 19px; border-bottom-width: 4px; }
  .shape.h { width: 21px; height: 12px; }
  .ed-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 12px 12px 16px; }
  .ed-foot b { font-family: var(--f-head); font-weight: 600; font-size: 15px; color: var(--ink); display: block; }
  .ed-foot span { font-size: 12.5px; color: var(--muted); }
  .ed-foot .row { display: flex; gap: 8px; flex-wrap: wrap; }
  .check-name { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--warn-soft); color: #6B4300; border-radius: var(--r-s); padding: 10px 12px; font-size: 13.5px; font-weight: 600; width: 100%; animation: bb-st-fade .3s var(--ease); }
  .check-name .ic { color: var(--warn); }

  /* ---------- Extras + price ---------- */
  .split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
  @media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
  .card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 18px; min-width: 0; }
  .card + .card { margin-top: 16px; }
  .card h2 { font-size: 18px; }
  .card-h { display: flex; gap: 12px; align-items: flex-start; }
  .card-h i { width: 38px; height: 38px; border-radius: 11px; background: var(--party); color: #fff; display: grid; place-items: center; flex: none; }
  .card-h p { margin-top: 2px; font-size: 13.5px; color: var(--muted); }
  .ideas { display: flex; flex-wrap: wrap; gap: 6px; }
  .ideas button { border: 1px solid var(--line-strong); background: var(--paper); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; color: var(--body); transition: transform .2s var(--bounce), border-color .2s; }
  .ideas button:hover { border-color: var(--violet); color: var(--ink); transform: translateY(-1px); }
  .addons { display: grid; gap: 8px; }
  .addon { display: grid; grid-template-columns: 1fr auto 22px; gap: 12px; align-items: center; border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
  .addon:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
  .addon b { display: block; font-family: var(--f-head); font-weight: 500; font-size: 14px; color: var(--ink); }
  .addon span { font-size: 13px; color: var(--muted); }
  .addon .ap { font-family: var(--f-head); font-weight: 500; color: var(--ink); white-space: nowrap; }
  .addon input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
  .included { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  @media (max-width: 520px) { .included { grid-template-columns: 1fr; } }
  .included li { list-style: none; display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center; background: var(--ground); border-radius: 12px; padding: 10px 12px; }
  .included { margin: 0; padding: 0; }
  .included i { width: 32px; height: 32px; border-radius: 9px; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
  .included b { display: block; font-family: var(--f-head); font-weight: 500; color: var(--ink); font-size: 13.5px; }
  .included span { font-size: 12.5px; color: var(--muted); }
  .sum { position: sticky; top: 100px; display: grid; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
  .sum-art { background: radial-gradient(ellipse 80% 60% at 50% 35%, #FFFFFF, transparent 70%), linear-gradient(180deg, #E8EBF1 0 86%, #D9CDBE 86% 100%); height: 270px; display: grid; place-items: center; padding: 18px 24px 26px; border-bottom: 1px solid var(--line); }
  .sum-art.is-h { background: radial-gradient(ellipse 80% 60% at 50% 35%, #FFFFFF, transparent 70%), linear-gradient(180deg, #EFEAE3 0 86%, #CDBFAE 86% 100%); height: 220px; padding: 26px 30px; }
  .sum-body { padding: 18px 20px 20px; display: grid; gap: 14px; }
  .sum-title { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
  .sum-title b { font-family: var(--f-head); font-weight: 500; color: var(--ink); display: block; }
  .sum-title span { font-size: 13px; color: var(--muted); }
  .lines { display: grid; margin: 0; }
  .lines div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; font-size: 14px; }
  .lines dt { color: var(--body); }
  .lines dt small { display: block; color: var(--muted); font-size: 12px; }
  .lines dd { margin: 0; font-weight: 600; color: var(--ink); white-space: nowrap; }
  .lines .free dd { color: var(--ok); }
  .lines .tot { border-bottom: 0; padding-top: 12px; align-items: baseline; }
  .lines .tot dt { font-family: var(--f-head); font-weight: 500; color: var(--ink); font-size: 16px; }
  .lines .tot dd { font-family: var(--f-head); font-weight: 600; color: var(--ink); font-size: 24px; letter-spacing: -.02em; }
  .lines .vat { padding-top: 0; border-bottom: 0; }
  .lines .vat dt, .lines .vat dd { font-size: 12.5px; color: var(--muted); font-weight: 600; }
  .sum-trust { list-style: none; margin: 0; padding: 14px 20px; background: var(--ground); border-top: 1px solid var(--line); display: grid; gap: 7px; font-size: 13px; }
  .sum-trust li { display: flex; gap: 8px; align-items: center; }
  .sum-trust .ic { width: 16px; height: 16px; color: var(--ok); }
  .timeline { list-style: none; margin: 0; padding: 0; display: grid; }
  .timeline li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; position: relative; padding-bottom: 18px; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line); }
  .timeline li:last-child::before { display: none; }
  .timeline li i { width: 32px; height: 32px; border-radius: 50%; background: var(--tint); color: var(--blue-deep); display: grid; place-items: center; }
  .timeline li i .ic { width: 16px; height: 16px; }
  .timeline b { display: block; font-family: var(--f-head); font-weight: 500; color: var(--ink); font-size: 14px; padding-top: 5px; }
  .timeline span { font-size: 13px; color: var(--muted); }
  .your-note { background: var(--ground); border-radius: var(--r-s); padding: 12px 14px; font-size: 13.5px; white-space: pre-line; overflow-wrap: anywhere; border: 1px solid var(--line); }
  .err { color: var(--coral-deep); font-size: 13px; font-weight: 600; }
  .photo-fail { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: #FDECEB; color: var(--coral-deep); font-size: 13px; }
  .photo-fail b { display: flex; align-items: center; gap: 6px; font-weight: 600; }
  .photo-fail b .ic { width: 16px; height: 16px; flex: none; }
  .photo-fail-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
  .secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; text-align: center; }
  .secure .ic { width: 15px; height: 15px; color: var(--ok); }
  .back-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
  .view { animation: bb-st-fade .35s var(--ease); }
}
/* ---------- Phones: pinned preview + tool tabs ----------
   The live preview stays pinned under the site header (--m-top, measured
   in script.js); the tab bar sticks right under it and shows one group of
   tools at a time (data-m on each section, data-mtab on .ed). Price and
   "Verder" sit in a bar fixed to the bottom. Desktop is unaffected. */
.bb-st .m-tabs { display: none; }
@media (max-width: 760px) {
  .bb-st { --m-stage: clamp(230px, 40vh, 330px); }
  .bb-st .view:has(.ed) { animation: none; }
  .bb-st .ed { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding-bottom: 96px; }
  .bb-st .ed > .panel, .bb-st .ed-center { display: contents; }
  .bb-st .ed .panel-h { display: none; }
  .bb-st .ed .toolbar { order: 1; padding: 6px 6px 6px 12px; }
  .bb-st .ed .toolbar h2 { font-size: 14px; }
  .bb-st .ed .stage { order: 2; position: sticky; top: var(--m-top, 74px); z-index: 20; height: var(--m-stage); box-shadow: 0 10px 20px -16px rgba(20, 22, 28, .45); }
  .bb-st .m-tabs { order: 3; position: sticky; top: calc(var(--m-top, 74px) + var(--m-stage) - 1px); z-index: 19; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; margin-top: -10px; padding: 6px; background: var(--paper); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r) var(--r); box-shadow: 0 12px 20px -16px rgba(20, 22, 28, .5); }
  .bb-st .m-tabs button { border: 0; background: transparent; border-radius: 12px; padding: 6px 0 5px; display: grid; justify-items: center; gap: 2px; font-family: var(--f-head); font-weight: 500; font-size: 11px; color: var(--muted); cursor: pointer; }
  .bb-st .m-tabs .ic { width: 19px; height: 19px; }
  .bb-st .m-tabs [aria-selected="true"] { background: var(--ground); color: var(--ink); }
  .bb-st .m-tabs [aria-selected="true"] .ic { color: var(--coral); }
  .bb-st .ed [data-m] { order: 4; }
  .bb-st .ed .sec[data-m] { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
  .bb-st .ed:not([data-mtab="text"]) [data-m="text"],
  .bb-st .ed:not([data-mtab="style"]) [data-m="style"],
  .bb-st .ed:not([data-mtab="color"]) [data-m="color"],
  .bb-st .ed:not([data-mtab="photo"]) [data-m="photo"],
  .bb-st .ed:not([data-mtab="size"]) [data-m="size"] { display: none; }
  .bb-st .ed-foot { order: 5; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; border-radius: 18px 18px 0 0; border-bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)) 16px; box-shadow: 0 -12px 28px -18px rgba(20, 22, 28, .45); flex-wrap: nowrap; }
  .bb-st .ed-foot > div:first-child { min-width: 0; }
  .bb-st .ed-foot > div:first-child b span { display: none; }
  .bb-st .ed-foot > div:first-child > span { display: block; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bb-st .ed-foot .row { flex-wrap: nowrap; }
  .bb-st .ed-foot .row .btn-ghost { padding-inline: 12px; }
  .bb-st .ed-foot .check-name { position: absolute; left: 12px; right: 12px; bottom: calc(100% + 8px); width: auto; box-shadow: 0 10px 24px -12px rgba(20, 22, 28, .5); }
}
@media (prefers-reduced-motion: reduce) {
  .bb-st *, .bb-st *::before, .bb-st *::after { transition: none !important; animation: none !important; }
}
