/**
 * MUCO LABS — Website Preview studio chrome
 *
 * Loaded only on /website-preview. It is a separate file rather than more of
 * style.css because none of it is needed by the other thirty-two pages, and
 * twenty kilobytes of studio furniture on every page would be a real cost paid
 * by people who never open this one.
 *
 * Every value here resolves to a token already defined in style.css. No new
 * colour, radius, spacing step or type step is introduced: the studio has to
 * read as MUCO LABS furniture rather than an embedded third-party tool.
 *
 * Nothing here reaches inside a preview. The generated websites live in shadow
 * roots and carry their own stylesheets.
 */

/* ------------------------------------------------------------------ studio */
.wp-screen { position: relative; }
.wp-screen:empty { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .wp-in { animation: wp-rise .18s var(--ease) both; }
  @keyframes wp-rise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }
}

/* No-JavaScript fallback. The landing page is complete without the studio, so
   this explains the one thing that is missing rather than apologising. */
.wp-nojs {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--lift);
  padding: var(--sp-6);
}
.wp-nojs h2 { font-size: var(--fs-900); margin-bottom: var(--sp-3); }
.wp-nojs p { color: var(--text-2); max-width: 54ch; }
.wp-nojs .btn { margin-top: var(--sp-5); }
.wp-ready .wp-nojs { display: none; }

/* --------------------------------------------------------------- progress */
.wp-flow { margin-bottom: var(--sp-6); }
.wp-flow ol {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5);
  list-style: none; padding: 0; margin: 0;
}
.wp-flow li {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-400); color: var(--text-3);
  letter-spacing: .04em; text-transform: uppercase;
}
.wp-flow-n {
  width: 20px; height: 20px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-size: var(--fs-200); font-variant-numeric: tabular-nums;
  border: 1px solid var(--line-strong); color: var(--text-3);
}
.wp-flow .is-here { color: var(--text); }
.wp-flow .is-here .wp-flow-n {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
}
.wp-flow .is-done { color: var(--text-2); }
.wp-flow .is-done .wp-flow-n { border-color: var(--accent-line); color: var(--accent); }

/* ------------------------------------------------------------------- bars */
.wp-bar, .wp-toolbar {
  display: flex; align-items: center; gap: var(--sp-4);
  flex-wrap: wrap; margin-bottom: var(--sp-6);
}
.wp-toolbar {
  position: sticky; top: var(--nav-h); z-index: 3;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--lift); padding: var(--sp-3) var(--sp-4);
}
.wp-toolbar-mid { flex: 1 1 200px; min-width: 0; }
.wp-bar-title { font-size: var(--fs-1000); line-height: 1.15; }
.wp-bar-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wp-bar-note, .wp-scale-note {
  color: var(--text-2); font-size: var(--fs-500); margin-top: var(--sp-2); max-width: 62ch;
}
.wp-scale-note {
  font-family: var(--font-mono); font-size: var(--fs-300);
  letter-spacing: .04em; color: var(--text-3); margin-top: 2px;
}
.wp-bar-actions { margin-left: auto; display: flex; gap: var(--sp-3); }

.wp-notice {
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  border-radius: var(--radius); padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-500); color: var(--text); margin-bottom: var(--sp-5);
}

.wp-after { margin-top: var(--sp-6); display: flex; justify-content: center; }
.wp-after-split { justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }

/* ----------------------------------------------------------------- wizard */
.wp-panel-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--lift), var(--shadow);
  overflow: hidden;
}
.wp-substeps { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.wp-substeps ol {
  display: flex; list-style: none; margin: 0; padding: 0;
  overflow-x: auto; scrollbar-width: thin;
}
.wp-substeps li { flex: 1 0 auto; }
.wp-substeps button, .wp-substeps span {
  display: flex; align-items: center; gap: var(--sp-2);
  width: 100%; padding: var(--sp-4);
  font-size: var(--fs-400); letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-3); background: none; border: 0;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.wp-substeps button { cursor: pointer; }
.wp-substeps button:hover { color: var(--text); }
.wp-substeps i {
  font-style: normal; font-variant-numeric: tabular-nums;
  width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid currentColor; font-size: var(--fs-200);
}
.wp-substeps .is-here > * { color: var(--text); border-bottom-color: var(--accent); }
.wp-substeps .is-done > * { color: var(--text-2); }

.wp-form { padding: var(--sp-6); }
.wp-step-title { font-size: var(--fs-1000); margin-bottom: var(--sp-2); }
.wp-step-sub {
  color: var(--text-2); font-size: var(--fs-600);
  max-width: 62ch; margin-bottom: var(--sp-6);
}

.wp-field { margin-bottom: var(--sp-5); max-width: 620px; }
.wp-field > label, .wp-field legend, .wp-ctl > label, .wp-ctl-label {
  display: block; font-size: var(--fs-500); font-weight: 500;
  margin-bottom: var(--sp-2); color: var(--text);
}
.wp-req {
  font-size: var(--fs-200); letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-left: var(--sp-2);
}
.wp-field input[type="text"], .wp-field input[type="tel"], .wp-field input[type="email"],
.wp-field input[type="url"], .wp-field textarea, .wp-field select,
.wp-ctl input[type="text"], .wp-ctl textarea {
  width: 100%; padding: 13px var(--sp-4);
  font: inherit; font-size: var(--fs-600); color: var(--text);
  background: var(--bg); border: 1px solid var(--line-strong);
  border-radius: var(--radius); appearance: none;
}
.wp-field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%),
                    linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
  padding-right: var(--sp-8);
}
.wp-field input:focus-visible, .wp-field textarea:focus-visible, .wp-field select:focus-visible,
.wp-ctl input:focus-visible, .wp-ctl textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent);
}
.wp-field.has-error input, .wp-field.has-error select, .wp-field.has-error textarea {
  border-color: var(--err);
}
.wp-hint { font-size: var(--fs-400); color: var(--text-3); margin-top: var(--sp-2); max-width: 58ch; }
.wp-error { font-size: var(--fs-400); color: var(--err); margin-top: var(--sp-2); }
.wp-empty { font-size: var(--fs-400); color: var(--text-3); margin-top: var(--sp-3); font-style: italic; }

.wp-add { display: flex; gap: var(--sp-3); }
.wp-add input { flex: 1; }
.wp-chips {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  margin-top: var(--sp-3); list-style: none; padding: 0;
}
.wp-chips li {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 6px 6px 6px var(--sp-3);
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  font-size: var(--fs-500); background: var(--surface-2);
}
.wp-chips button {
  width: 24px; height: 24px; border-radius: 50%; border: 0; flex: none;
  background: var(--surface-3); color: var(--text-2); cursor: pointer;
  font-size: var(--fs-600); line-height: 1;
}
.wp-chips button:hover { background: var(--accent); color: var(--accent-ink); }

.wp-radios { border: 0; padding: 0; }
.wp-radio {
  display: flex; gap: var(--sp-3); align-items: flex-start; cursor: pointer;
  padding: var(--sp-3) var(--sp-4); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: var(--sp-2); background: var(--bg);
}
.wp-radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.wp-radio input { margin-top: 3px; accent-color: var(--accent); flex: none; }
.wp-radio b { display: block; font-size: var(--fs-600); font-weight: 500; }
.wp-radio small { display: block; font-size: var(--fs-400); color: var(--text-3); margin-top: 2px; }

.wp-colour { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; }
.wp-colour input[type="color"] {
  width: 56px; height: 44px; flex: none; padding: 3px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.wp-colour input[type="text"] {
  flex: 1 1 130px; min-width: 110px; font-family: var(--font-mono); font-size: var(--fs-500);
  padding: 12px var(--sp-3); color: var(--text); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
}

.wp-field input[type="file"] {
  width: 100%; font-size: var(--fs-500); color: var(--text-2);
  padding: var(--sp-3); border: 1px dashed var(--line-strong); border-radius: var(--radius);
  background: var(--bg);
}
.wp-thumbs { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-3); }
.wp-thumb { position: relative; display: inline-block; }
.wp-thumb img {
  width: 74px; height: 74px; object-fit: cover; display: block;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface-2);
}
.wp-thumb button {
  position: absolute; top: -7px; right: -7px; width: 22px; height: 22px;
  border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--surface-3); color: var(--text); cursor: pointer; line-height: 1;
}

.wp-form-actions {
  display: flex; gap: var(--sp-3); justify-content: space-between;
  margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--line);
}

.wp-review { border-top: 1px solid var(--line); padding: var(--sp-4) 0; }
.wp-review-head { display: flex; align-items: baseline; gap: var(--sp-4); }
.wp-review h4 { font-size: var(--fs-700); }
.wp-review dl { margin: var(--sp-3) 0 0; }
.wp-review dl > div, .wp-summary dl > div {
  display: grid; grid-template-columns: 170px 1fr; gap: var(--sp-4);
  padding: var(--sp-2) 0; border-bottom: 1px solid var(--line-soft);
}
.wp-review dt, .wp-summary dt {
  font-size: var(--fs-400); letter-spacing: .05em; text-transform: uppercase; color: var(--text-3);
}
.wp-review dd, .wp-summary dd { font-size: var(--fs-600); margin: 0; overflow-wrap: anywhere; }

.wp-linkbtn {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--accent); font: inherit; font-size: var(--fs-400);
  text-decoration: underline; text-underline-offset: 3px; margin-left: auto;
}
.wp-linkbtn:hover { color: var(--accent-bright); }

.wp-demo {
  margin-top: var(--sp-5); padding: var(--sp-4);
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  font-size: var(--fs-500); color: var(--text-2);
}
.wp-demo-row { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-3); }

/* ------------------------------------------------- personalisation (V2) */
.wp-generating {
  text-align: center; max-width: 560px; margin: 0 auto;
  padding: var(--sp-8) var(--sp-4);
}
.wp-generating h2 { font-size: var(--fs-1000); margin-bottom: var(--sp-4); }
.wp-generating > p { color: var(--text-2); font-size: var(--fs-700); }
.wp-generating .wp-hint { margin-top: var(--sp-6); }
.wp-generating-list {
  list-style: none; padding: 0;
  margin: var(--sp-6) auto 0; max-width: 340px; text-align: left;
}
.wp-generating-list li {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2) 0; font-size: var(--fs-500); color: var(--text-2);
}
.wp-generating-list li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex: none; opacity: .55;
}
/* An indeterminate mark, not a progress bar. One request is in flight and we
   cannot see inside it, so nothing here pretends to measure it. */
.wp-pulse { display: flex; gap: 7px; justify-content: center; margin-bottom: var(--sp-5); }
.wp-pulse i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); opacity: .3; }
@media (prefers-reduced-motion: no-preference) {
  .wp-pulse i { animation: wp-beat 1.1s var(--ease) infinite; }
  .wp-pulse i:nth-child(2) { animation-delay: .16s; }
  .wp-pulse i:nth-child(3) { animation-delay: .32s; }
  @keyframes wp-beat { 0%, 100% { opacity: .3; } 45% { opacity: 1; } }
}

/* The working notice sits above five finished concepts, so it reads as an
   improvement arriving rather than as a blocker. */
.wp-notice-working { display: flex; align-items: center; gap: var(--sp-3); }
.wp-notice-working .wp-pulse { margin: 0; flex: none; }
.wp-notice-working .wp-pulse i { width: 7px; height: 7px; }

.wp-pick-badge {
  margin-left: auto; flex: none; align-self: flex-start;
  font-size: var(--fs-200); letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-radius: var(--radius-pill); padding: 4px 10px; text-align: center;
  max-width: 130px; line-height: 1.35;
}

.wp-rewrite { border-top: 1px solid var(--line); padding-top: var(--sp-5); }
.wp-rewrite-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.wp-rewrite-row .btn { flex: 1 1 auto; justify-content: center; }
.wp-rewrite-row .btn:disabled { opacity: .5; cursor: progress; }

/* ------------------------------------------------------------------ frames */
.wp-frame {
  max-width: 100%;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--surface-2); box-shadow: var(--lift-strong), var(--shadow-lg);
  overflow: hidden;
}
.wp-chrome {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 9px var(--sp-4); background: var(--surface-3);
  border-bottom: 1px solid var(--line);
}
.wp-dots { display: flex; gap: 5px; flex: none; }
.wp-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.wp-url {
  flex: 1; text-align: center; font-family: var(--font-mono);
  font-size: var(--fs-300); color: var(--text-3);
  background: var(--bg); border-radius: var(--radius-pill); padding: 4px var(--sp-4);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wp-scroll { position: relative; background: #ffffff; max-width: 100%; }
/* The sizer carries an inline pixel width from Frame.fit(). Capping it here
   means a stale value from a wider layout cannot widen the card it sits in. */
.wp-sizer { position: relative; margin: 0 auto; max-width: 100%; }
.wp-scale { position: absolute; top: 0; left: 0; transform-origin: top left; }
.wp-host { display: block; }

.wp-frame-mini .wp-scroll { height: 264px; overflow: hidden; }
.wp-frame-full { margin: 0 auto; max-width: 100%; }
.wp-frame-full .wp-scroll {
  height: min(74vh, 780px); overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain;
}
.wp-frame-full[data-device="tablet"] { max-width: 880px; }
.wp-frame-full[data-device="mobile"] { max-width: 436px; }
@media (prefers-reduced-motion: no-preference) {
  .wp-frame-full { transition: max-width .26s var(--ease); }
}

/* --------------------------------------------------------- design selection */
/* minmax(0, 1fr), not 1fr.
   A grid item's automatic minimum size is its min-content width, so a preview
   frame carrying an inline pixel width could push its own column wider than the
   container -- 573px inside a 338px column on a phone. The page did not scroll,
   because html clips overflow-x, so the right-hand third of every concept card
   was simply cut off and unreachable. minmax(0, …) forbids that, and min-width
   on the card stops the same thing happening one level down. */
.wp-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
@media (min-width: 1400px) { .wp-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wp-card {
  display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--lift); padding: var(--sp-5);
}
@media (prefers-reduced-motion: no-preference) {
  .wp-card { transition: border-color .14s var(--ease), box-shadow .14s var(--ease); }
}
.wp-card:hover { border-color: var(--line-strong); box-shadow: var(--lift), var(--shadow); }
.wp-card.is-chosen {
  border: 2px solid var(--accent); padding: calc(var(--sp-5) - 1px);
  box-shadow: var(--lift), 0 0 0 4px var(--accent-soft);
}
.wp-card-top { display: flex; gap: var(--sp-4); align-items: flex-start; }
.wp-card-n {
  font-family: var(--font-mono); font-size: var(--fs-300);
  color: var(--text-3); letter-spacing: .08em; padding-top: 3px; flex: none;
}
.wp-card h3 { font-size: var(--fs-900); margin-bottom: var(--sp-2); }
.wp-card-top p { font-size: var(--fs-500); color: var(--text-2); }
.wp-chosen-badge {
  margin-left: auto; flex: none; align-self: flex-start;
  font-size: var(--fs-200); letter-spacing: .1em; text-transform: uppercase;
  background: var(--accent); color: var(--accent-ink);
  border-radius: var(--radius-pill); padding: 4px 10px;
}
.wp-card-detail { font-size: var(--fs-400); color: var(--text-3); }
.wp-card-actions { display: flex; gap: var(--sp-3); margin-top: auto; }
.wp-card-actions .btn { flex: 1; justify-content: center; }

/* --------------------------------------------------------------- preview */
.wp-devices {
  display: flex; gap: 2px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill); padding: 3px; margin: 0;
}
.wp-devices label { position: relative; }
.wp-devices input {
  position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%;
  margin: 0; cursor: pointer;
}
.wp-devices span {
  display: block; padding: 8px var(--sp-4); border-radius: var(--radius-pill);
  font-size: var(--fs-400); color: var(--text-2); white-space: nowrap;
}
.wp-devices input:checked + span { background: var(--accent); color: var(--accent-ink); }
.wp-devices input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.wp-confirm {
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  border-radius: var(--radius-lg); padding: var(--sp-5); margin-bottom: var(--sp-5);
}
.wp-confirm p { font-size: var(--fs-700); }
.wp-confirm-actions { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); flex-wrap: wrap; }

/* ----------------------------------------------------------- customisation */
.wp-studio-split {
  display: grid; grid-template-columns: 380px 1fr;
  gap: var(--sp-5); align-items: start;
}
.wp-rail {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--lift);
  position: sticky; top: calc(var(--nav-h) + 96px);
  max-height: calc(100vh - var(--nav-h) - 120px); overflow-y: auto;
}
.wp-stage { min-width: 0; }
.wp-tabs { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; }
.wp-tabs button {
  flex: 1 0 auto; padding: var(--sp-4) var(--sp-3); background: none; border: 0;
  border-bottom: 2px solid transparent; cursor: pointer;
  font: inherit; font-size: var(--fs-400); letter-spacing: .05em;
  text-transform: uppercase; color: var(--text-3);
}
.wp-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.wp-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.wp-tabpanel { padding: var(--sp-5); }
.wp-tabpanel:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.wp-ctl { margin-bottom: var(--sp-5); }
.wp-ctl textarea { resize: vertical; }
.wp-reset { display: block; margin: 0 var(--sp-5) var(--sp-5) auto; }

.wp-seg {
  display: flex; gap: 2px; border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 3px;
}
.wp-seg label { flex: 1; position: relative; }
.wp-seg input {
  position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%;
  margin: 0; cursor: pointer;
}
.wp-seg span {
  display: block; text-align: center; padding: 9px var(--sp-2);
  border-radius: calc(var(--radius) - 3px); font-size: var(--fs-400); color: var(--text-2);
}
.wp-seg input:checked + span { background: var(--accent); color: var(--accent-ink); }
.wp-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.wp-specimens { display: grid; gap: var(--sp-3); }
.wp-specimen {
  text-align: left; padding: var(--sp-4); cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); color: var(--text);
}
.wp-specimen.is-on { border-color: var(--accent); background: var(--accent-soft); }
.wp-specimen-sample {
  display: block; font-size: var(--fs-1000); line-height: 1.1; margin-bottom: var(--sp-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wp-specimen b { display: block; font-size: var(--fs-500); font-weight: 500; }
.wp-specimen small { display: block; font-size: var(--fs-400); color: var(--text-3); margin-top: 2px; }

.wp-sections { list-style: none; padding: 0; margin: 0; }
.wp-sections li {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) 0; border-bottom: 1px solid var(--line-soft);
}
.wp-sections label {
  display: flex; align-items: center; gap: var(--sp-3);
  flex: 1; cursor: pointer; font-size: var(--fs-600);
}
.wp-sections input { accent-color: var(--accent); width: 17px; height: 17px; }
.wp-move { display: flex; gap: 4px; }
.wp-move button {
  width: 32px; height: 32px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: var(--bg);
  color: var(--text-2); cursor: pointer;
}
.wp-move button:disabled { opacity: .35; cursor: not-allowed; }
.wp-move button:not(:disabled):hover { border-color: var(--accent); color: var(--accent); }

.wp-actions-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.wp-actions-list label {
  display: flex; gap: var(--sp-3); align-items: flex-start; cursor: pointer;
  padding: var(--sp-3) var(--sp-4); border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg);
}
.wp-actions-list label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.wp-actions-list label.is-off { opacity: .55; cursor: not-allowed; }
.wp-actions-list input { margin-top: 3px; accent-color: var(--accent); flex: none; }
.wp-actions-list b { display: block; font-size: var(--fs-600); font-weight: 500; }
.wp-actions-list small { display: block; font-size: var(--fs-400); color: var(--text-3); margin-top: 2px; }

.wp-sheet-open { display: none; }
.wp-sheet-close { display: none; }

/* ------------------------------------------------------------------ review */
.wp-summary {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--lift);
  padding: var(--sp-5); margin-bottom: var(--sp-5);
}
.wp-summary dl { margin: 0; }
.wp-swatch {
  display: inline-block; width: 14px; height: 14px; border-radius: 4px;
  border: 1px solid var(--line-strong); margin-right: var(--sp-2);
  vertical-align: -2px;
}
.wp-done { text-align: center; max-width: 640px; margin: 0 auto var(--sp-7); }
.wp-done-mark { color: var(--accent); width: 62px; margin: 0 auto var(--sp-5); }
.wp-done-mark svg { width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .wp-done-mark path, .wp-done-mark circle {
    stroke-dasharray: 160; stroke-dashoffset: 160;
    animation: wp-draw .42s var(--ease) forwards;
  }
  .wp-done-mark path { animation-delay: .2s; }
  @keyframes wp-draw { to { stroke-dashoffset: 0; } }
}
.wp-done h2 { font-size: var(--fs-1000); margin-bottom: var(--sp-4); }
.wp-done p { color: var(--text-2); font-size: var(--fs-700); }
.wp-done-actions {
  display: flex; gap: var(--sp-3); flex-wrap: wrap;
  justify-content: center; margin-top: var(--sp-6);
}

/* ------------------------------------------------ landing example strip */
.wp-examples {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--sp-5); margin: 0;
}
.wp-example { margin: 0; }
.wp-example figcaption { margin-top: var(--sp-3); }
.wp-example b { display: block; font-size: var(--fs-700); }
.wp-example span { display: block; font-size: var(--fs-400); color: var(--text-3); margin-top: 3px; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1079px) {
  .wp-studio-split { grid-template-columns: 1fr; }
  /* Preview first, controls in a sheet. A 380px rail above the preview pushes
     the thing being customised off the screen, which makes every change
     invisible at the moment it happens. */
  .wp-stage { order: -1; }
  .wp-rail {
    position: fixed; inset: auto 0 0 0; z-index: 60;
    max-height: 78vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: translateY(101%); box-shadow: var(--shadow-lg);
  }
  .wp-rail.is-open { transform: none; }
  @media (prefers-reduced-motion: no-preference) {
    .wp-rail { transition: transform .22s var(--ease); }
  }
  .wp-sheet-open {
    display: inline-flex; position: fixed; z-index: 59;
    left: 50%; transform: translateX(-50%);
    bottom: calc(var(--sp-5) + env(safe-area-inset-bottom));
    box-shadow: var(--shadow-lg);
  }
  .wp-rail.is-open ~ .wp-sheet-open { display: none; }
  .wp-sheet-close {
    display: block; margin-left: auto; width: 40px; height: 40px;
    border: 0; background: none; color: var(--text-2); font-size: var(--fs-1000);
    line-height: 1; cursor: pointer;
  }
}

@media (max-width: 900px) {
  .wp-cards { grid-template-columns: 1fr; }
  .wp-toolbar { position: static; }
  .wp-bar-actions { margin-left: 0; }
}

@media (max-width: 620px) {
  .wp-form { padding: var(--sp-4); }
  .wp-review dl > div, .wp-summary dl > div { grid-template-columns: 1fr; gap: 2px; }
  .wp-form-actions { flex-direction: column-reverse; }
  .wp-form-actions .btn { width: 100%; justify-content: center; }
  .wp-card-actions { flex-direction: column; }
  .wp-devices { width: 100%; }
  .wp-devices label { flex: 1; }
  .wp-devices span { text-align: center; padding: 10px var(--sp-2); }
  .wp-frame-mini .wp-scroll { height: 210px; }
  .wp-frame-full .wp-scroll { height: 64vh; }
  .wp-done-actions .btn { width: 100%; justify-content: center; }
}

/* 320px. The narrowest phone still in real use; nothing may scroll sideways. */
@media (max-width: 360px) {
  .wp-flow ol { gap: var(--sp-2) var(--sp-3); }
  .wp-add { flex-direction: column; align-items: stretch; }
  .wp-colour input[type="text"] { flex-basis: 100%; }
}
