.oranje-style-stage1 {
  width: min(1280px, calc(100% - 24px));
  margin: 18px auto 64px;
  color: var(--oranje-ink);
}

.oranje-style-stage1-hero {
  position: relative;
  display: grid;
  gap: 10px;
  overflow: hidden;
  padding: clamp(34px, 7vw, 76px) clamp(22px, 6vw, 72px);
  border-radius: 18px 18px 0 0;
  color: #fff;
  background:
    radial-gradient(circle at 85% 18%, rgba(217, 85, 30, .34), transparent 34%),
    linear-gradient(135deg, #21131d, #4f2932);
}

.oranje-style-stage1-hero::after {
  content: "✦";
  position: absolute;
  right: 7%;
  bottom: -28px;
  color: rgba(255,255,255,.07);
  font: 180px/1 var(--oranje-serif);
}

.oranje-style-stage1-hero > span,
.oranje-style-step-head > span,
.oranje-style-results-head > div > span,
.oranje-style-result > header > span,
.oranje-style-selected-items > header span {
  color: #e4a17e;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.oranje-style-stage1-hero h1,
.oranje-style-step-head h2,
.oranje-style-results-head h2,
.oranje-style-result h3,
.oranje-style-selected-items h3 {
  margin: 0;
  font-family: var(--oranje-serif);
  font-weight: 400;
}

.oranje-style-stage1-hero h1 { max-width: 760px; font-size: clamp(42px, 8vw, 82px); line-height: .94; }
.oranje-style-stage1-hero p { max-width: 650px; margin: 4px 0 0; color: rgba(255,255,255,.72); font-size: clamp(14px, 2vw, 18px); line-height: 1.55; }

.oranje-style-stage1-progress {
  padding: 16px clamp(12px, 4vw, 34px);
  border: 1px solid var(--oranje-line);
  border-top: 0;
  background: #fff;
}

.oranje-style-stage1-progress ol { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 840px; margin: 0 auto; padding: 0; list-style: none; }
.oranje-style-stage1-progress li { position: relative; display: grid; justify-items: center; gap: 5px; color: var(--oranje-muted); font-size: 9px; font-weight: 750; text-align: center; }
.oranje-style-stage1-progress li::before { content: ""; position: absolute; z-index: 0; top: 13px; right: 50%; width: 100%; height: 1px; background: var(--oranje-line); }
.oranje-style-stage1-progress li:first-child::before { display: none; }
.oranje-style-stage1-progress li b { position: relative; z-index: 1; display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid var(--oranje-line); border-radius: 50%; background: #fff; font-size: 10px; }
.oranje-style-stage1-progress li.is-active { color: var(--oranje-brand-dark); }
.oranje-style-stage1-progress li.is-active b { border-color: var(--oranje-brand); color: #fff; background: var(--oranje-brand); }
.oranje-style-stage1-progress li.is-complete b { border-color: var(--oranje-sage); color: #fff; background: var(--oranje-sage); }
.oranje-style-stage1-progress li.is-complete::before,
.oranje-style-stage1-progress li.is-active::before { background: var(--oranje-sage); }

.oranje-style-stage1-shell { min-height: 520px; border: 1px solid var(--oranje-line); border-top: 0; border-radius: 0 0 18px 18px; background: #fff; }
.oranje-style-step { padding: clamp(24px, 5vw, 58px); }
.oranje-style-step-head { display: grid; max-width: 740px; gap: 8px; margin-bottom: 28px; }
.oranje-style-step-head h2,
.oranje-style-results-head h2 { font-size: clamp(34px, 6vw, 58px); line-height: 1; }
.oranje-style-step-head p,
.oranje-style-results-head p { margin: 0; color: var(--oranje-muted); font-size: 14px; line-height: 1.6; }

.oranje-style-start-grid { display: grid; gap: 12px; }
.oranje-style-start-card { position: relative; display: grid; min-height: 160px; gap: 6px; align-content: end; padding: 22px; border: 1px solid var(--oranje-line); border-radius: 12px; color: var(--oranje-ink); background: #fbf8f4; text-align: left; cursor: pointer; }
.oranje-style-start-card i { position: absolute; top: 15px; right: 18px; color: rgba(36,21,31,.13); font: normal 50px/1 var(--oranje-serif); }
.oranje-style-start-card strong { font: 400 27px/1 var(--oranje-serif); }
.oranje-style-start-card span { color: var(--oranje-muted); font-size: 12px; }
.oranje-style-start-card:hover,
.oranje-style-start-card:focus-visible,
.oranje-style-start-card.is-selected { border-color: var(--oranje-brand); box-shadow: 0 0 0 2px rgba(217,85,30,.12); }
.oranje-style-start-card:disabled { cursor: not-allowed; opacity: .58; }

.oranje-style-empty,
.oranje-style-notice { display: grid; gap: 7px; margin-top: 16px; padding: 18px; border: 1px solid var(--oranje-line); border-radius: 10px; background: var(--oranje-page); }
.oranje-style-stage1 .oranje-style-empty { grid-template-columns: 1fr; }
.oranje-style-empty p { margin: 0; color: var(--oranje-muted); font-size: 12px; }
.oranje-style-empty .button { justify-self: start; }
.oranje-style-notice { margin: 0 0 20px; }
.oranje-style-notice.is-error { border-color: #d8a19a; color: #7b2520; background: #fff4f2; }
.oranje-style-notice.is-success { border-color: #9cb8a9; color: #234f3d; background: #f2faf6; }

.oranje-style-catalogue,
.oranje-style-basket-preview { display: grid; gap: 14px; margin-top: 26px; }
.oranje-style-search { display: grid; gap: 7px; max-width: 520px; color: var(--oranje-muted); font-size: 11px; font-weight: 750; }
.oranje-style-search input,
.oranje-style-selected-items input,
.oranje-style-selected-items select,
.oranje-style-result-option select,
.oranje-style-add-custom input,
.oranje-style-add-custom select { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid var(--oranje-line); border-radius: 6px; color: var(--oranje-ink); background: #fff; font: 13px var(--oranje-sans); }
.oranje-style-product-picker { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; max-height: 680px; overflow: auto; padding: 2px; }
.oranje-style-pick-product { position: relative; display: grid; min-width: 0; padding: 0; overflow: hidden; border: 1px solid var(--oranje-line); border-radius: 9px; color: var(--oranje-ink); background: #fff; text-align: left; cursor: pointer; }
.oranje-style-pick-image { display: block; aspect-ratio: 4/5; overflow: hidden; background: var(--oranje-soft); }
.oranje-style-pick-image img { width: 100%; height: 100%; object-fit: cover; }
.oranje-style-pick-product > span:nth-child(2) { display: grid; min-width: 0; gap: 4px; padding: 11px; }
.oranje-style-pick-product small { overflow: hidden; color: var(--oranje-muted); font-size: 8px; letter-spacing: .08em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.oranje-style-pick-product strong { font: 400 17px/1.15 var(--oranje-serif); }
.oranje-style-pick-product em { font-size: 11px; font-style: normal; font-weight: 800; }
.oranje-style-pick-product > b { position: absolute; top: 8px; right: 8px; padding: 6px 8px; border-radius: 99px; color: #fff; background: rgba(36,21,31,.82); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.oranje-style-pick-product.is-selected { border-color: var(--oranje-brand); box-shadow: inset 0 0 0 2px var(--oranje-brand); }
.oranje-style-pick-product.is-selected > b { background: var(--oranje-brand); }

.oranje-style-basket-preview h3 { margin: 0; font: 400 25px var(--oranje-serif); }
.oranje-style-basket-preview > div { display: grid; gap: 8px; }
.oranje-style-basket-preview article { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 9px; border: 1px solid var(--oranje-line); border-radius: 8px; }
.oranje-style-basket-preview article img { width: 64px; height: 78px; object-fit: cover; border-radius: 5px; }
.oranje-style-basket-preview article span { display: grid; gap: 4px; }
.oranje-style-basket-preview article small { color: var(--oranje-muted); font-size: 10px; }

.oranje-style-category-tabs { display: flex; gap: 7px; overflow-x: auto; margin: 0 0 18px; padding: 0 0 7px; scrollbar-width: thin; }
.oranje-style-category-tabs button,
.oranje-style-preference-list fieldset > div > button { flex: 0 0 auto; min-height: 40px; padding: 8px 12px; border: 1px solid var(--oranje-line); border-radius: 99px; color: var(--oranje-ink); background: #fff; font: 700 10px var(--oranje-sans); cursor: pointer; }
.oranje-style-category-tabs button.is-selected,
.oranje-style-preference-list fieldset > div > button.is-selected { border-color: var(--oranje-plum); color: #fff; background: var(--oranje-plum); }
.oranje-style-wardrobe-library { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.oranje-style-wardrobe-library > button { display: grid; min-width: 0; overflow: hidden; padding: 0; border: 1px solid var(--oranje-line); border-radius: 10px; color: var(--oranje-ink); background: #fff; text-align: left; cursor: pointer; }
.oranje-style-wardrobe-library > button > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; padding: 10px 11px 3px; }
.oranje-style-wardrobe-library strong { font: 400 16px/1.15 var(--oranje-serif); }
.oranje-style-wardrobe-library small { color: var(--oranje-muted); font-size: 9px; }
.oranje-style-wardrobe-library > button > b { padding: 7px 11px 11px; color: var(--oranje-brand-dark); font-size: 9px; text-transform: uppercase; }
.oranje-style-wardrobe-library > button:hover,
.oranje-style-wardrobe-library > button:focus-visible { border-color: var(--oranje-brand); }

.oranje-wardrobe-visual { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: #f3efe8; }
.oranje-wardrobe-visual img { width: 100%; height: 100%; object-fit: contain; }
.oranje-wardrobe-visual.is-sprite { background-color: #f3efe8; background-image: var(--wardrobe-image); background-repeat: no-repeat; background-position: var(--wardrobe-x) var(--wardrobe-y); background-size: var(--wardrobe-size) var(--wardrobe-size); }
.oranje-wardrobe-visual.is-compact { width: 74px; height: 84px; aspect-ratio: auto; border-radius: 6px; }
.oranje-wardrobe-visual.is-empty { display: grid; place-items: center; color: var(--oranje-brand); font-size: 28px; }

.oranje-style-selected-items { display: grid; gap: 14px; margin-top: 26px; padding: clamp(15px,3vw,24px); border: 1px solid var(--oranje-line); border-radius: 12px; background: #fcfaf7; }
.oranje-style-selected-items > header { display: flex; justify-content: space-between; gap: 15px; align-items: end; }
.oranje-style-selected-items h3 { font-size: 25px; }
.oranje-style-selected-items > header b { color: var(--oranje-muted); font-size: 10px; }
.oranje-style-selected-items > p { margin: 0; color: var(--oranje-muted); font-size: 12px; }
.oranje-style-selected-items > div { display: grid; gap: 10px; }
.oranje-style-selected-items article { position: relative; display: grid; grid-template-columns: 74px minmax(0,1fr); gap: 11px; padding: 9px 38px 9px 9px; border: 1px solid var(--oranje-line); border-radius: 8px; background: #fff; }
.oranje-style-selected-items article > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.oranje-style-selected-items label,
.oranje-style-add-custom label,
.oranje-style-result-option { display: grid; gap: 4px; color: var(--oranje-muted); font-size: 9px; font-weight: 750; }
.oranje-style-selected-items label.is-wide { grid-column: 1/-1; }
.oranje-style-selected-items article > button { position: absolute; top: 5px; right: 5px; width: 30px; height: 30px; border: 0; color: var(--oranje-muted); background: transparent; font-size: 20px; cursor: pointer; }
.oranje-style-add-custom { border-top: 1px solid var(--oranje-line); padding-top: 13px; }
.oranje-style-add-custom summary { color: var(--oranje-brand-dark); font-size: 11px; font-weight: 850; cursor: pointer; }
.oranje-style-add-custom > div { display: grid; gap: 10px; margin-top: 13px; }

.oranje-style-preference-list { display: grid; gap: 14px; }
.oranje-style-preference-list fieldset { display: grid; gap: 15px; margin: 0; padding: 18px; border: 1px solid var(--oranje-line); border-radius: 10px; }
.oranje-style-preference-list legend { display: flex; gap: 11px; align-items: center; padding: 0 7px; }
.oranje-style-preference-list legend i { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: #fff; background: var(--oranje-plum); font: normal 10px var(--oranje-sans); }
.oranje-style-preference-list legend span { display: grid; gap: 2px; }
.oranje-style-preference-list legend strong { font: 400 18px var(--oranje-serif); }
.oranje-style-preference-list legend small { color: var(--oranje-muted); font-size: 9px; }
.oranje-style-preference-list fieldset > div { display: flex; flex-wrap: wrap; gap: 7px; }
.oranje-style-colour-chips button { display: inline-flex; gap: 6px; align-items: center; }
.oranje-style-colour-chips button > span { width: 17px; height: 17px; border: 1px solid rgba(0,0,0,.15); border-radius: 50%; background: var(--colour); }

.oranje-style-step-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--oranje-line); }
.oranje-style-step-actions .button { min-width: 128px; }
.oranje-style-stage1 .button.is-secondary { border-color: var(--oranje-line); color: var(--oranje-ink); background: #fff; }
.oranje-style-stage1 .button.is-text { min-height: 38px; padding-inline: 4px; border: 0; color: var(--oranje-brand-dark); background: transparent; text-decoration: underline; text-underline-offset: 4px; }

.oranje-style-loading { display: grid; min-height: 520px; place-content: center; justify-items: center; gap: 10px; padding: 30px; text-align: center; }
.oranje-style-loading > span { display: flex; gap: 6px; margin-bottom: 8px; }
.oranje-style-loading i { width: 10px; height: 10px; border-radius: 50%; background: var(--oranje-brand); animation: oranje-style-pulse .9s ease-in-out infinite alternate; }
.oranje-style-loading i:nth-child(2) { animation-delay: .2s; }
.oranje-style-loading i:nth-child(3) { animation-delay: .4s; }
.oranje-style-loading h2 { margin: 0; font: 400 clamp(28px,5vw,45px)/1 var(--oranje-serif); }
.oranje-style-loading p { margin: 0; color: var(--oranje-muted); }
@keyframes oranje-style-pulse { to { transform: translateY(-8px); opacity: .35; } }

.oranje-style-results { padding: clamp(20px,4vw,45px); }
.oranje-style-results-head { display: grid; gap: 18px; margin-bottom: 30px; }
.oranje-style-results-head > div { display: grid; gap: 8px; }
.oranje-style-results-head > .button { justify-self: start; }
.oranje-style-result-list { display: grid; gap: 26px; }
.oranje-style-result { overflow: hidden; border: 1px solid var(--oranje-line); border-radius: 14px; background: #fff; box-shadow: 0 16px 44px rgba(41,25,30,.07); }
.oranje-style-result > header { display: grid; gap: 7px; padding: 22px; border-bottom: 1px solid var(--oranje-line); }
.oranje-style-result h3 { font-size: clamp(30px,5vw,45px); line-height: 1; }
.oranje-style-result > header p { max-width: 700px; margin: 0; color: var(--oranje-muted); font-size: 13px; line-height: 1.55; }

.oranje-style-outfit-board { padding: 12px; background: linear-gradient(145deg,#eee5db,#fbf8f3 48%,#e7dcd2); }
.oranje-style-board-stage { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.85fr); gap: 8px; }
.oranje-style-board-piece { display: grid; min-width: 0; grid-template-rows: minmax(105px,1fr) auto; padding: 7px; border: 1px solid rgba(77,55,61,.12); border-radius: 7px; background: rgba(255,255,255,.93); }
.oranje-style-board-piece.slot-1 { grid-row: span 4; grid-template-rows: minmax(345px,1fr) auto; }
.oranje-style-board-image { display: grid; overflow: hidden; place-items: center; background: #f7f3ee; }
.oranje-style-board-image > img { width: 100%; height: 100%; object-fit: contain; }
.oranje-style-board-image .oranje-wardrobe-visual { width: 100%; height: 100%; aspect-ratio: auto; }
.oranje-style-board-piece > div { display: grid; gap: 2px; padding: 7px 3px 2px; }
.oranje-style-board-piece small { color: var(--oranje-brand-dark); font-size: 7px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.oranje-style-board-piece strong { overflow: hidden; font-size: 9px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.oranje-style-board-piece em { color: var(--oranje-sage); font-size: 7px; font-style: normal; }
.oranje-style-board-piece.is-owned { background: #fffaf1; }

.oranje-style-result-notes { display: grid; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--oranje-line); background: #fbf8f4; }
.oranje-style-result-notes p { display: grid; gap: 4px; margin: 0; color: var(--oranje-muted); font-size: 12px; line-height: 1.5; }
.oranje-style-result-notes strong { color: var(--oranje-ink); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.oranje-style-result-products,
.oranje-style-owned-summary { padding: 20px 22px; border-bottom: 1px solid var(--oranje-line); }
.oranje-style-result-products > h4,
.oranje-style-owned-summary h4 { margin: 0 0 12px; font: 400 23px var(--oranje-serif); }
.oranje-style-result-product { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 11px; padding: 10px 0; border-top: 1px solid var(--oranje-line); }
.oranje-style-result-product:first-of-type { border-top: 0; }
.oranje-style-result-product > a { overflow: hidden; border-radius: 5px; background: var(--oranje-soft); }
.oranje-style-result-product > a img { width: 72px; height: 90px; object-fit: contain; }
.oranje-style-result-product > div:nth-child(2) { display: grid; min-width: 0; gap: 3px; align-content: center; }
.oranje-style-result-product small { color: var(--oranje-muted); font-size: 8px; text-transform: uppercase; }
.oranje-style-result-product strong { font: 400 16px/1.15 var(--oranje-serif); }
.oranje-style-result-product span { font-size: 11px; font-weight: 800; }
.oranje-style-result-product em { color: var(--oranje-sage); font-size: 9px; font-style: normal; }
.oranje-style-result-product > div:last-child { display: flex; grid-column: 1/-1; gap: 7px; align-items: center; }
.oranje-style-result-product > div:last-child .button { flex: 1 1 auto; min-height: 38px; padding: 7px; font-size: 9px; }
.oranje-style-in-basket { color: var(--oranje-sage); font-size: 10px; font-weight: 800; }
.oranje-style-result-option { margin-top: 5px; }
.oranje-style-result-option select { min-height: 39px; }
.oranje-style-owned-summary p { margin: 0; color: var(--oranje-muted); font-size: 12px; line-height: 1.5; }

.oranje-style-result-actions { display: grid; gap: 16px; padding: 20px 22px; }
.oranje-style-result-actions > div:first-child { display: grid; gap: 2px; }
.oranje-style-result-actions > div:first-child span { color: var(--oranje-muted); font-size: 9px; text-transform: uppercase; }
.oranje-style-result-actions > div:first-child strong { font: 400 26px var(--oranje-serif); }
.oranje-style-result-actions > div:first-child small { color: var(--oranje-sage); font-size: 9px; }
.oranje-style-result-actions > div:last-child { display: grid; gap: 7px; }

.oranje-style-stage1-unavailable { display: grid; min-height: 400px; place-content: center; justify-items: start; gap: 10px; padding: 30px; border: 1px solid var(--oranje-line); border-radius: 0 0 18px 18px; background: #fff; }
.oranje-style-stage1-unavailable h2 { margin: 0; font: 400 clamp(32px,5vw,52px) var(--oranje-serif); }
.oranje-style-stage1-unavailable p { margin: 0; color: var(--oranje-muted); }
.oranje-style-product-cta { width: 100%; margin-top: 9px; }

@media (min-width: 700px) {
  .oranje-style-start-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .oranje-style-product-picker { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .oranje-style-basket-preview > div { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .oranje-style-wardrobe-library { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .oranje-style-add-custom > div { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .oranje-style-result-notes { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .oranje-style-result-product { grid-template-columns: 88px minmax(0,1fr) minmax(170px,.5fr); align-items: center; }
  .oranje-style-result-product > a img { width: 88px; height: 110px; }
  .oranje-style-result-product > div:last-child { grid-column: auto; }
  .oranje-style-result-actions { grid-template-columns: minmax(180px,.45fr) minmax(260px,1fr); align-items: center; }
  .oranje-style-result-actions > div:last-child { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .oranje-style-result-actions .is-text { grid-column: 1/-1; }
}

@media (min-width: 1000px) {
  .oranje-style-stage1 { width: min(1280px,calc(100% - 56px)); margin-top: 30px; }
  .oranje-style-product-picker { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .oranje-style-wardrobe-library { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .oranje-style-selected-items article { grid-template-columns: 96px minmax(0,1fr); }
  .oranje-wardrobe-visual.is-compact { width: 96px; height: 108px; }
  .oranje-style-selected-items article > div { grid-template-columns: 1fr .65fr .65fr 1.4fr; }
  .oranje-style-selected-items label.is-wide { grid-column: auto; }
  .oranje-style-results-head { grid-template-columns: 1fr auto; align-items: end; }
  .oranje-style-result { display: grid; grid-template-columns: minmax(390px,.9fr) minmax(0,1.1fr); }
  .oranje-style-result > header { grid-column: 1/-1; }
  .oranje-style-outfit-board { grid-row: span 4; padding: 18px; }
  .oranje-style-board-piece.slot-1 { grid-template-rows: minmax(500px,1fr) auto; }
  .oranje-style-result-notes,
  .oranje-style-result-products,
  .oranje-style-owned-summary,
  .oranje-style-result-actions { grid-column: 2; }
}

@media (max-width: 430px) {
  .oranje-style-stage1 { width: calc(100% - 12px); margin-top: 6px; }
  .oranje-style-stage1-hero { border-radius: 12px 12px 0 0; }
  .oranje-style-stage1-progress li span { display: none; }
  .oranje-style-step { padding-inline: 14px; }
  .oranje-style-step-actions { position: sticky; z-index: 5; bottom: 0; margin-inline: -14px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); }
  .oranje-style-step-actions .button { min-width: 0; flex: 1; }
  .oranje-style-selected-items article > div { grid-template-columns: 1fr; }
  .oranje-style-selected-items label.is-wide { grid-column: auto; }
  .oranje-style-board-piece.slot-1 { grid-template-rows: minmax(280px,1fr) auto; }
}

@media (prefers-reduced-motion: reduce) {
  .oranje-style-loading i { animation: none; }
}
