/** Shopify CDN: Minification failed

Line 540:2 Unexpected "}"

**/
/* ============================================================
   Wardrobe Designer — lead magnet page
   Studio layout: white page, dark brand toolbar down the left edge,
   the robe floating free on the right. Brand tokens come from
   assets/midnight-atelier.css (--ma-ink, --ma-brass, --ma-line,
   --ma-ivory, --ma-bone, --ma-stone, --ma-ease, --ma-shadow-*).
   Fallback values are inlined so the page still reads correctly if
   the token sheet is ever loaded after this one.
   AU English. No pricing anywhere in this page.
   ============================================================ */

.wd {
  --wd-ink: var(--ma-ink, #20263A);
  --wd-brass: var(--ma-brass, #B08A4F);
  --wd-line: var(--ma-line, #E2DCCF);
  --wd-ivory: var(--ma-ivory, #FBF8F2);
  --wd-bone: var(--ma-bone, #F4EFE6);
  --wd-stone: var(--ma-stone, #8A8778);
  --wd-ease: var(--ma-ease, cubic-bezier(0.4, 0, 0.2, 1));
  --wd-radius: 3px;
  background: var(--wd-ivory);
  color: var(--wd-ink);
}

/* The page template renders this section full bleed; suppress the
   theme's own page title if the page template prints one. */
.wd .page-width > .main-page-title,
.wd-suppress-title .main-page-title { display: none; }

/* ---------------------------------------------------------
   Layout shell
   --------------------------------------------------------- */
.wd__shell {
  max-width: var(--ma-maxw, 132rem);
  margin-inline: auto;
  padding: 0 var(--ma-gutter, 2rem) 4rem;
}

/* Stage = the drawing. Sticky on phones so it never leaves the screen. */
.wd__stage {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0.8rem 0 1rem;
  background: var(--wd-ivory);
}
/* Faint label so the right pane reads as a workspace, not a stray image. */
/* The canvas: white studio ground with a very faint square hairline grid,
   drawn in CSS so the SVG stays a clean drawing with no background of its own. */
.wd__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 44vh;
  margin-inline: auto;
  border: 1px solid var(--wd-line);
  border-radius: 6px;
  background-color: #fff;
  background-image:
    linear-gradient(to right, rgba(32, 38, 58, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(32, 38, 58, 0.055) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center center;
  box-shadow: inset 0 0 0 1px #fff, var(--ma-shadow-sm, 0 1px 2px rgba(32, 38, 58, 0.05));
  overflow: hidden;
}
.wd__frame svg { display: block; width: 100%; height: 100%; }
.wd__frame--fade svg { transition: opacity 0.18s var(--wd-ease); }
.wd__placeholder { display: block; width: 100%; height: 100%; color: var(--wd-line); }

.wd__viewtoggle {
  display: inline-flex;
  gap: 0;
  margin: 1rem auto 0;
  border: 1px solid var(--wd-line);
  border-radius: 100px;
  overflow: hidden;
  background: #fff;
}
.wd__stage-foot { display: flex; align-items: center; justify-content: center; gap: 1.2rem; flex-wrap: wrap; }
.wd__viewbtn {
  min-height: 3.6rem;
  padding: 0 1.6rem;
  border: 0;
  background: none;
  font: 600 1.25rem/1 var(--font-body-family);
  letter-spacing: 0.04em;
  color: var(--wd-stone);
  cursor: pointer;
  transition: background-color 0.2s var(--wd-ease), color 0.2s var(--wd-ease);
}
.wd__viewbtn[aria-pressed="true"] { background: var(--wd-ink); color: var(--wd-ivory); }
.wd__panelnote {
  margin: 0.9rem 0 0;
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--wd-stone);
  text-align: center;
}
.wd__panelnote b { color: var(--wd-ink); font-weight: 600; }

/* ---------------------------------------------------------
   The toolbar: a floating white panel holding the progress
   bar and every input, like a design app's tool palette.
   --------------------------------------------------------- */
.wd__controls {
  padding: 2rem 1.8rem 2.2rem;
  border: 1px solid var(--wd-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(32, 38, 58, 0.04), 0 12px 28px -12px rgba(32, 38, 58, 0.14);
}

/* Inputs sit on white now, so lift them off it with the bone tint instead
   of the white-on-white they had against the ivory page. */
.wd__chip,
.wd__swatch,
.wd__layout,
.wd__secchip,
.wd__input,
.wd__stepper {
  background: var(--wd-ivory);
}
.wd__chip[aria-checked="true"],
.wd__swatch[aria-checked="true"],
.wd__layout[aria-checked="true"] { background: #fff; }
.wd__tweaks { background: var(--wd-ivory); }

/* ---------------------------------------------------------
   Progress header
   --------------------------------------------------------- */
.wd__steps {
  display: flex;
  gap: 0.4rem;
  margin: 0 0 1.8rem;
  padding: 0 0 1.4rem;
  border-bottom: 1px solid var(--wd-line);
  list-style: none;
}
.wd__steps li { flex: 1 1 0; }
.wd__stepbtn {
  display: block;
  width: 100%;
  padding: 0.7rem 0.2rem 0.9rem;
  border: 0;
  border-top: 2px solid var(--wd-line);
  background: none;
  font: 600 1.15rem/1.2 var(--font-body-family);
  letter-spacing: 0.02em;
  color: var(--wd-stone);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s var(--wd-ease), color 0.2s var(--wd-ease);
}
.wd__stepbtn[aria-current="step"] { border-top-color: var(--wd-brass); color: var(--wd-ink); }
.wd__stepbtn[data-done="1"] { border-top-color: var(--wd-brass); }
.wd__stepnum { display: block; font-size: 1.05rem; opacity: 0.7; }
.wd__stepshort { display: none; }

/* ---------------------------------------------------------
   Panels and fieldsets
   --------------------------------------------------------- */
.wd__panel { display: none; }
.wd__panel.is-active { display: block; }
.wd__panel-h {
  margin: 0 0 0.6rem;
  font-family: var(--font-heading-family);
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--wd-ink);
}
.wd__panel-h:focus-visible { outline: 2px solid var(--wd-brass); outline-offset: 3px; }
.wd__panel-sub { margin: 0 0 1.8rem; font-size: 1.45rem; line-height: 1.55; color: var(--wd-stone); }
.wd__group { margin: 0 0 2.2rem; border: 0; padding: 0; }
.wd__legend {
  padding: 0;
  margin: 0 0 0.9rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wd-stone);
}

/* Chips (radio groups) */
.wd__chips { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.wd__chips--wide { grid-template-columns: 1fr; }
.wd__chip {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-height: 4.8rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--wd-line);
  border-radius: var(--wd-radius);
  background: #fff;
  font: 500 1.4rem/1.25 var(--font-body-family);
  color: var(--wd-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s var(--wd-ease), box-shadow 0.18s var(--wd-ease);
}
.wd__chip:hover { border-color: var(--wd-brass); }
.wd__chip[aria-checked="true"] {
  border-color: var(--wd-brass);
  box-shadow: inset 0 0 0 1px var(--wd-brass);
}
.wd__chip:focus-visible { outline: 2px solid var(--wd-brass); outline-offset: 2px; }
.wd__chip-sub { font-size: 1.2rem; color: var(--wd-stone); }
.wd__chip-ico { display: flex; align-items: center; gap: 0.8rem; }
.wd__chip-ico svg { width: 3.2rem; height: 2.4rem; flex: 0 0 auto; color: var(--wd-ink); }

/* Swatches */
.wd__swatches { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.wd__swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 4.4rem;
  padding: 0.4rem 1.2rem 0.4rem 0.5rem;
  border: 1px solid var(--wd-line);
  border-radius: 100px;
  background: #fff;
  font: 500 1.3rem/1 var(--font-body-family);
  color: var(--wd-ink);
  cursor: pointer;
}
.wd__swatch[aria-checked="true"] { border-color: var(--wd-brass); box-shadow: inset 0 0 0 1px var(--wd-brass); }
.wd__swatch:focus-visible { outline: 2px solid var(--wd-brass); outline-offset: 2px; }
.wd__swatch-dot {
  width: 3.2rem;
  height: 3.2rem;
  border: 1px solid rgba(32, 38, 58, 0.14);
  border-radius: 100px;
  flex: 0 0 auto;
}

/* Numeric custom inputs */
.wd__custom { display: none; margin-top: 1rem; }
.wd__custom.is-open { display: block; }
.wd__num { display: flex; align-items: center; gap: 0.6rem; }
.wd__numlabel { flex: 1 1 auto; font-size: 1.35rem; color: var(--wd-ink); }
.wd__stepper {
  width: 4.4rem;
  height: 4.4rem;
  border: 1px solid var(--wd-line);
  border-radius: var(--wd-radius);
  background: #fff;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--wd-ink);
  cursor: pointer;
}
.wd__stepper:focus-visible { outline: 2px solid var(--wd-brass); outline-offset: 2px; }
.wd__input {
  width: 9rem;
  min-height: 4.4rem;
  padding: 0 1rem;
  border: 1px solid var(--wd-line);
  border-radius: var(--wd-radius);
  background: #fff;
  font: 500 1.5rem/1 var(--font-body-family);
  color: var(--wd-ink);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.wd__hint { margin: 0.8rem 0 0; font-size: 1.25rem; line-height: 1.5; color: var(--wd-stone); }
.wd__hint--clamp { color: var(--wd-brass); }

/* Layout cards */
.wd__layouts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.wd__layout {
  display: block;
  padding: 0.8rem;
  border: 1px solid var(--wd-line);
  border-radius: var(--wd-radius);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s var(--wd-ease);
}
.wd__layout[aria-checked="true"] { border-color: var(--wd-brass); box-shadow: inset 0 0 0 1px var(--wd-brass); }
.wd__layout:focus-visible { outline: 2px solid var(--wd-brass); outline-offset: 2px; }
.wd__layout-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 0.6rem;
  border-radius: 2px;
  background: var(--wd-bone);
  overflow: hidden;
}
.wd__layout-thumb svg { display: block; width: 100%; height: 100%; }
.wd__layout-name { display: block; font: 600 1.35rem/1.25 var(--font-body-family); color: var(--wd-ink); }
.wd__layout-sub { display: block; margin-top: 0.2rem; font-size: 1.15rem; line-height: 1.35; color: var(--wd-stone); }

/* Section tweak strip */
.wd__seclist {
  display: flex;
  gap: 0.6rem;
  margin: 1.4rem 0 0;
  padding: 0 0 0.4rem;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.wd__tweaks {
  margin-top: 1.2rem;
  padding: 1.4rem;
  border: 1px solid var(--wd-line);
  border-radius: var(--wd-radius);
  background: var(--wd-bone);
}
.wd__tweaks-h { margin: 0 0 1rem; font: 600 1.35rem/1.2 var(--font-body-family); color: var(--wd-ink); }

/* Toggle row */
.wd__toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.8rem;
  padding: 0.6rem 0;
  font-size: 1.4rem;
  color: var(--wd-ink);
  cursor: pointer;
}
.wd__toggle input { width: 2rem; height: 2rem; accent-color: var(--wd-brass); flex: 0 0 auto; }

/* ---------------------------------------------------------
   Step nav
   --------------------------------------------------------- */
.wd__nav { display: flex; align-items: center; gap: 1rem; margin-top: 2.4rem; }
.wd__nav .wd__spacer { flex: 1 1 auto; }
.wd__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 4.8rem;
  padding: 0 2.4rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font: 600 1.45rem/1 var(--font-body-family);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--wd-ease), border-color 0.2s var(--wd-ease), color 0.2s var(--wd-ease);
}
.wd__btn svg { width: 1.6rem; height: 1.6rem; }
.wd__btn--brass { background: var(--wd-brass); border-color: var(--wd-brass); color: var(--wd-ivory); }
.wd__btn--brass:hover { background: #9E7A41; border-color: #9E7A41; }
.wd__btn--ghost { background: transparent; border-color: var(--wd-line); color: var(--wd-ink); }
.wd__btn--ghost:hover { border-color: var(--wd-brass); color: var(--wd-brass); }
.wd__btn--wide { width: 100%; }
.wd__btn[disabled] { opacity: 0.65; cursor: default; }
.wd__btn:focus-visible { outline: 2px solid var(--wd-brass); outline-offset: 3px; }
.wd__btn--link {
  min-height: 4.4rem;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--wd-ink);
  text-decoration: underline;
  text-decoration-color: var(--wd-line);
  text-underline-offset: 3px;
}
.wd__btn--link:hover { color: var(--wd-brass); text-decoration-color: var(--wd-brass); }

/* ---------------------------------------------------------
   Summary + form (step 5)
   --------------------------------------------------------- */
.wd__summary {
  margin: 0 0 2rem;
  padding: 1.6rem;
  border: 1px solid var(--wd-line);
  border-radius: var(--wd-radius);
  background: var(--wd-bone);
}
.wd__summary-h { margin: 0 0 0.6rem; font: 600 1.15rem/1 var(--font-body-family); letter-spacing: 0.12em; text-transform: uppercase; color: var(--wd-stone); }
.wd__summary-spec { margin: 0; font-size: 1.5rem; line-height: 1.55; color: var(--wd-ink); }

.wd__fields { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
.wd__field { display: flex; flex-direction: column; gap: 0.5rem; }
.wd__label { font-size: 1.3rem; font-weight: 600; color: var(--wd-ink); }
.wd__label .wd__req { color: var(--wd-brass); }
.wd__label .wd__opt { font-weight: 400; color: var(--wd-stone); }
.wd__field input[type="text"],
.wd__field input[type="email"],
.wd__field input[type="tel"],
.wd__field select,
.wd__field textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 4.8rem;
  padding: 1rem 1.4rem;
  border: 1px solid var(--wd-line);
  border-radius: var(--wd-radius);
  background: #fff;
  font: 400 1.5rem/1.4 var(--font-body-family);
  color: var(--wd-ink);
}
.wd__field textarea { min-height: 10rem; resize: vertical; }
.wd__field input:focus-visible,
.wd__field select:focus-visible,
.wd__field textarea:focus-visible { outline: 2px solid var(--wd-brass); outline-offset: 1px; border-color: var(--wd-brass); }
.wd__field [aria-invalid="true"] { border-color: #C0453A; }
.wd__err { min-height: 1.6rem; font-size: 1.25rem; line-height: 1.35; color: #C0453A; }

.wd__consent { margin: 1.4rem 0 0; font-size: 1.25rem; line-height: 1.5; color: var(--wd-stone); }
.wd__consent a { color: var(--wd-brass); }
.wd__anchor { margin: 0.8rem 0 0; font-size: 1.25rem; color: var(--wd-stone); text-align: center; }
.wd__formmsg {
  margin: 1.2rem 0 0;
  padding: 1.2rem 1.4rem;
  border: 1px solid #C0453A;
  border-radius: var(--wd-radius);
  background: #FDF5F4;
  font-size: 1.35rem;
  line-height: 1.5;
  color: #8E2F27;
}
.wd__formmsg[hidden] { display: none; }
.wd__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Soft email capture */

/* ---------------------------------------------------------
   Confirmation
   --------------------------------------------------------- */
.wd__done { text-align: center; }
.wd__done-tick { display: inline-flex; color: var(--wd-brass); margin-bottom: 1rem; }
.wd__done-tick svg { width: 4.8rem; height: 4.8rem; }
.wd__done-h { margin: 0 0 0.8rem; font-family: var(--font-heading-family); font-size: clamp(2.4rem, 4vw, 3.6rem); color: var(--wd-ink); }
.wd__done-p { margin: 0 auto 1.4rem; max-width: 52rem; font-size: 1.5rem; line-height: 1.6; color: var(--wd-stone); }
.wd__ref {
  display: inline-block;
  margin-bottom: 1.6rem;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--wd-line);
  border-radius: 100px;
  background: #fff;
  font: 600 1.5rem/1 var(--font-body-family);
  letter-spacing: 0.1em;
  color: var(--wd-ink);
}
.wd__done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* Restore bar + toast */
.wd__restore {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 0 1.6rem;
  padding: 1rem 1.4rem;
  border: 1px solid var(--wd-line);
  border-radius: var(--wd-radius);
  background: var(--wd-bone);
  font-size: 1.3rem;
  color: var(--wd-ink);
}
.wd__restore[hidden] { display: none; }

.wd__sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wd__noscript {
  margin: 2rem auto;
  max-width: 60rem;
  padding: 1.6rem;
  border: 1px solid var(--wd-line);
  border-radius: var(--wd-radius);
  background: #fff;
  font-size: 1.45rem;
  line-height: 1.6;
  text-align: center;
  color: var(--wd-ink);
}
.wd__noscript a { color: var(--wd-brass); }

/* ---------------------------------------------------------
   Narrow phones
   --------------------------------------------------------- */
@media screen and (max-width: 400px) {
  .wd__frame { max-height: 38vh; }
  .wd__steps { gap: 0; }
  .wd__steps li:not(.is-current) { display: none; }
  .wd__stepbtn { text-align: center; }
  .wd__stepfull { display: none; }
  .wd__stepshort { display: block; }
}

/* ---------------------------------------------------------
   Desktop: drawing beside the controls
   --------------------------------------------------------- */
@media screen and (min-width: 990px) {
  .wd__shell {
    display: grid;
    grid-template-columns: minmax(0, 27rem) minmax(0, 1fr);
    gap: 3.2rem;
    align-items: start;
  }
  .wd__controls { padding: 2.2rem 2rem 2.4rem; }
  .wd__controls { grid-column: 1; grid-row: 1; }
  .wd__stage {
    grid-column: 2;
    grid-row: 1;
    top: 2rem;
    padding-top: 0;
  }
  .wd__frame { max-height: none; }
  .wd__stage { padding-bottom: 0; }
  .wd__chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wd__layouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wd__fields { grid-template-columns: 1fr; }
  .wd__field--full { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .wd__frame--fade svg,
  .wd__chip,
  .wd__layout,
  .wd__viewbtn,
  .wd__btn,
  }

/* ============================================================
   Studio layout — the whole page is the studio.
   White ground, a dark brand toolbar running the full height of
   the left edge, and the robe floating free on the right.
   ============================================================ */
.wd {
  background: #fff;
}
.wd__hero { display: none; }

.wd__shell {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* --- The dark toolbar --- */
.wd__controls {
  padding: 2.4rem 2rem 3rem;
  border: 0;
  border-radius: 0;
  background: var(--wd-ink);
  color: var(--wd-ivory);
  box-shadow: none;
}
.wd__controls .wd__panel-h,
.wd__controls .wd__label,
.wd__controls .wd__tweaks-h { color: var(--wd-ivory); }
.wd__controls .wd__panel-sub,
.wd__controls .wd__legend,
.wd__controls .wd__hint,
.wd__controls .wd__editshint,
.wd__controls .wd__stepnum { color: rgba(251, 248, 242, 0.62); }
.wd__controls .wd__steps { border-bottom-color: rgba(251, 248, 242, 0.16); }
.wd__controls .wd__stepbtn { border-top-color: rgba(251, 248, 242, 0.22); color: rgba(251, 248, 242, 0.6); }
.wd__controls .wd__stepbtn[aria-current="step"] { border-top-color: var(--wd-brass); color: var(--wd-ivory); }
.wd__controls .wd__stepbtn[data-done="1"] { border-top-color: var(--wd-brass); }

/* Controls on the dark ground: translucent white, brass when chosen. */
.wd__controls .wd__chip,
.wd__controls .wd__swatch,
.wd__controls .wd__layout,
.wd__controls .wd__secrow,
.wd__controls .wd__input,
.wd__controls .wd__select,
.wd__controls .wd__stepper,
.wd__controls .wd__field input,
.wd__controls .wd__field textarea {
  background: rgba(251, 248, 242, 0.06);
  border-color: rgba(251, 248, 242, 0.2);
  color: var(--wd-ivory);
}
.wd__controls .wd__chip-sub,
.wd__controls .wd__layout-sub,
.wd__controls .wd__secrow-detail { color: rgba(251, 248, 242, 0.58); }
.wd__controls .wd__chip:hover,
.wd__controls .wd__swatch:hover,
.wd__controls .wd__layout:hover,
.wd__controls .wd__secrow:hover { border-color: var(--wd-brass); }
.wd__controls .wd__chip[aria-checked="true"],
.wd__controls .wd__swatch[aria-checked="true"],
.wd__controls .wd__layout[aria-checked="true"],
.wd__controls .wd__secrow[aria-pressed="true"] {
  border-color: var(--wd-brass);
  background: rgba(176, 138, 79, 0.16);
  box-shadow: inset 0 0 0 1px var(--wd-brass);
}
.wd__controls .wd__tweaks {
  background: rgba(251, 248, 242, 0.05);
  border-color: rgba(251, 248, 242, 0.16);
}
.wd__controls .wd__summary {
  background: rgba(251, 248, 242, 0.05);
  border-color: rgba(251, 248, 242, 0.16);
}
.wd__controls .wd__summary-spec { color: var(--wd-ivory); }
.wd__controls .wd__restore {
  background: rgba(251, 248, 242, 0.07);
  border-color: rgba(251, 248, 242, 0.18);
  color: var(--wd-ivory);
}
.wd__controls .wd__btn--ghost { border-color: rgba(251, 248, 242, 0.28); color: var(--wd-ivory); }
.wd__controls .wd__btn--ghost:hover { border-color: var(--wd-brass); color: var(--wd-brass); }
.wd__controls .wd__btn--link { color: var(--wd-ivory); }
.wd__controls .wd__consent { color: rgba(251, 248, 242, 0.6); }
.wd__controls .wd__consent a,
.wd__controls .wd__anchor { color: rgba(251, 248, 242, 0.72); }
.wd__controls .wd__done-h,
.wd__controls .wd__ref { color: var(--wd-ivory); }
.wd__controls .wd__ref { background: rgba(251, 248, 242, 0.08); border-color: rgba(251, 248, 242, 0.2); }
.wd__controls .wd__done-p { color: rgba(251, 248, 242, 0.7); }
.wd__controls select { -webkit-appearance: none; appearance: none; }
.wd__controls option { color: #20263A; }

/* Native selects, sized like the other controls. */
.wd__select {
  width: 100%;
  box-sizing: border-box;
  min-height: 4.8rem;
  padding: 0 3.4rem 0 1.4rem;
  border: 1px solid var(--wd-line);
  border-radius: var(--wd-radius);
  font: 500 1.5rem/1 var(--font-body-family);
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.8rem) 55%, calc(100% - 1.35rem) 55%;
  background-size: 0.45rem 0.45rem, 0.45rem 0.45rem;
  background-repeat: no-repeat;
  cursor: pointer;
}

/* Depth as stacked blocks rather than a 2-up grid. */
.wd__chips--block { grid-template-columns: 1fr; }

/* Back and Next sit inline, side by side. */
.wd__nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  margin-top: 2.4rem;
}
.wd__nav .wd__spacer { display: none; }
.wd__nav .wd__btn { flex: 1 1 0; }

/* --- Step 4: each part of the robe as an editable row --- */
.wd__editshint {
  margin: 0 0 1rem;
  font-size: 1.3rem;
  line-height: 1.5;
}
.wd__seclist {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
  overflow: visible;
}
.wd__secrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: 5.6rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--wd-line);
  border-radius: var(--wd-radius);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s var(--wd-ease), background-color 0.18s var(--wd-ease);
}
.wd__secrow:focus-visible { outline: 2px solid var(--wd-brass); outline-offset: 2px; }
.wd__secrow-ico { display: inline-flex; flex: 0 0 auto; color: var(--wd-brass); }
.wd__secrow-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.wd__secrow-name { font: 600 1.35rem/1.2 var(--font-body-family); }
.wd__secrow-detail { font-size: 1.2rem; line-height: 1.3; }
.wd__secrow-edit {
  flex: 0 0 auto;
  font: 600 1.15rem/1 var(--font-body-family);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wd-brass);
}

/* --- The stage: robe floating on the page, no card --- */
.wd__stage {
  position: static;
  padding: 3.2rem var(--ma-gutter, 2rem) 4rem;
  background: transparent;
}
.wd__intro { max-width: 62rem; margin: 0 0 1.6rem; }
.wd__intro .wd__heading {
  margin: 0 0 0.8rem;
  font-size: clamp(3rem, 4.4vw, 4.8rem);
  text-align: left;
}
.wd__intro .wd__sub { margin: 0; max-width: 48rem; text-align: left; }

.wd__frame {
  position: relative;
  width: 100%;
  max-width: 78rem;
  aspect-ratio: 4 / 3;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
  perspective: 1400px;
  touch-action: pan-y;
  cursor: grab;
}
.wd__frame.is-dragging { cursor: grabbing; }
.wd__frame:focus-visible { outline: 2px solid var(--wd-brass); outline-offset: 6px; }

/* The 3D box: front face is the SVG, two thin side faces give it depth. */
.wd__scene {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.12s linear;
}
.wd__frame.is-dragging .wd__scene { transition: none; }
.wd__face {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.wd__face svg { display: block; width: 100%; height: 100%; }
.wd__side {
  position: absolute;
  top: 8%;
  bottom: 12%;
  width: 26px;
  background: linear-gradient(to right, #EDE7DC, #F7F3EB);
  border: 1px solid var(--wd-line);
  opacity: 0;
  transform-origin: 50% 50%;
  transition: opacity 0.12s linear;
}
/* Position and depth are set by the controller from the real carcass box. */
.wd__side { box-shadow: inset 0 0 18px rgba(32, 38, 58, 0.09); }

.wd__dragcue {
  margin: 1.2rem 0 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wd-stone);
}
.wd__stage-foot { justify-content: flex-start; }
.wd__panelnote { text-align: left; }

@media screen and (min-width: 990px) {
  .wd__shell {
    display: grid;
    grid-template-columns: minmax(34rem, 38rem) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    min-height: 100vh;
  }
  .wd__controls {
    grid-column: 1;
    min-height: 100vh;
    padding: 3.2rem 2.8rem 4rem;
    overflow-y: auto;
  }
  .wd__stage {
    grid-column: 2;
    padding: 4.8rem 4rem 5.6rem;
  }
  .wd__fields { grid-template-columns: 1fr 1fr; }
  .wd__field--full { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .wd__scene, .wd__side { transition: none !important; }
}

/* [hidden] must beat the button's own display value, or Back shows on step 1. */
.wd__btn[hidden],
.wd__panel[hidden] { display: none !important; }

/* Fieldsets default to min-inline-size: min-content, which collapses any grid
   inside them to the width of the longest word. Every control group is a
   fieldset, so this must be reset or the chips/cards shrink to nothing. */
.wd__group {
  width: 100%;
  min-inline-size: 0;
}

/* Any text that was explicitly inked for the light layout has to be re-lit on
   the dark toolbar, or it disappears into the navy. */
.wd__controls .wd__layout-name,
.wd__controls .wd__secrow-name,
.wd__controls .wd__numlabel,
.wd__controls .wd__chip,
.wd__controls .wd__swatch,
.wd__controls .wd__toggle,
.wd__controls .wd__summary-spec,
.wd__controls .wd__panelnote b { color: var(--wd-ivory); }
.wd__controls .wd__summary-h,
.wd__controls .wd__secrow-detail,
.wd__controls .wd__chip-sub { color: rgba(251, 248, 242, 0.6); }

/* ============================================================
   Review fixes — contrast, affordance, 3D geometry
   ============================================================ */

/* Fable #11: error text, CTA and muted copy all failed contrast.
   Error red was designed for the white card and never re-lit for the navy. */
.wd__controls .wd__err { color: #FF9E94; }
.wd__err { color: #A8352B; }
.wd__btn--brass {
  background: #8F6E39;
  border-color: #8F6E39;
  color: #fff;
}
.wd__btn--brass:hover { background: #7C5F30; border-color: #7C5F30; }
.wd__panelnote, .wd__dragcue { color: #6E6B5F; }
.wd__sub { color: #5E5B52; }
.wd__viewbtn { color: #5E5B52; }
.wd__controls .wd__secrow-edit { color: #D9B67A; }

/* Fable #12: the dark-toolbar background shorthand wiped the select chevron.
   Re-declare it as a longhand so the arrow survives. */
.wd__controls .wd__select {
  background-color: rgba(251, 248, 242, 0.06);
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.8rem) 55%, calc(100% - 1.35rem) 55%;
  background-size: 0.45rem 0.45rem, 0.45rem 0.45rem;
  background-repeat: no-repeat;
}

/* Fable #17: the view toggle was under the 44px touch guideline. */
.wd__viewbtn { min-height: 4.4rem; }
