/* Excede Vision Board (vision.html) */

.vb { --vb-head: 64px; }
.vb-head {
  position: sticky; top: 0; z-index: 40;
  height: var(--vb-head); display: flex; align-items: center; gap: 20px;
  padding: 0 clamp(16px, 2.4vw, 32px);
  background: rgba(244, 239, 231, 0.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.stepper { display: flex; gap: 2px; margin: 0 auto; padding: 0; list-style: none; }
.stepper button {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 6px;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font-size: 13.5px; font-weight: 500; color: var(--muted); white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.stepper button:hover { color: var(--ink); background: rgba(35, 26, 20, 0.04); }
.stepper i {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line-2); font: 600 11.5px/1 var(--f-body); font-style: normal; font-variant-numeric: tabular-nums;
}
.stepper .is-done i { background: var(--ink); border-color: var(--ink); color: var(--plaster); }
.stepper button[aria-current='step'] { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.stepper button[aria-current='step'] i { background: var(--oxblood); border-color: var(--oxblood); color: #fff; }
.vb-head .logo img { height: 38px; }
@media (max-width: 900px) { .vb-head .logo img { height: 30px; } .logo-tag { display: none; } }
.vb-mstep { display: none; margin-left: auto; color: var(--ink-2); }
.vb-exit { margin-left: auto; font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.vb-exit:hover { color: var(--ink); }
.vb-progress { display: none; }

.vb-main { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(400px, 0.92fr); }

/* Stage */
.vb-stage {
  position: sticky; top: var(--vb-head); height: calc(100vh - var(--vb-head)); height: calc(100dvh - var(--vb-head));
  display: flex; flex-direction: column; justify-content: center;
  padding: 28px clamp(20px, 3vw, 52px);
  background-color: var(--linen);
  background-image: linear-gradient(rgba(124, 31, 29, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(124, 31, 29, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 20;
}
.vb-stage .board { width: 100%; max-width: 1000px; margin: 0 auto; }
.vb-stage .board__render { cursor: default; }
.spec {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  margin: 12px -12px -12px; padding: 0; list-style: none;
  background: var(--line); border-top: 1px solid var(--line); border-radius: 0 0 4px 4px; overflow: hidden;
}
.spec li { background: var(--paper); }
.spec button, .spec .spec__item {
  width: 100%; height: 100%; display: grid; gap: 4px; align-content: start; text-align: left;
  padding: 10px 12px 11px; border: 0; background: transparent; cursor: pointer; transition: background 0.2s;
}
.spec button:hover { background: #fff; }
.spec button:hover span::after { opacity: 1; }
.spec small { display: flex; align-items: center; gap: 6px; font: 500 12px/1 var(--f-body); color: var(--muted); }
.spec small i { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.25); }
.spec span { font-size: 13.5px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.spec--static .spec__item { cursor: default; }
.vb-note { max-width: 1000px; margin: 22px auto 0; text-align: center; font-size: 13px; color: var(--muted); }

/* Panel */
.vb-panel { display: flex; flex-direction: column; min-height: calc(100vh - var(--vb-head)); padding: clamp(20px, 2.4vw, 32px) clamp(20px, 2.6vw, 40px) 0; }
.vb-panel form { flex: 1; }
.step__count { color: var(--muted); margin-bottom: 10px; }
.step__title {
  font-family: var(--f-display); font-variation-settings: 'opsz' 96, 'SOFT' 30; font-weight: 350;
  font-size: clamp(1.6rem, 2.05vw, 2.1rem); line-height: 1.08; letter-spacing: -0.02em; color: var(--ink);
  margin-bottom: 6px; outline: none;
}
.step__sub { color: var(--muted); margin-bottom: 16px; max-width: 36em; font-size: 14.5px; line-height: 1.5; }
.group { margin-top: 20px; border: 0; padding: 0; min-width: 0; }
.group__label { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-bottom: 9px; font-size: 14px; font-weight: 600; color: var(--ink); padding: 0; }
.group__label small { font-weight: 400; font-size: 13px; color: var(--muted); }
.skip { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 0; border: 0; background: none; cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.skip:hover { border-color: var(--ink); }
.skip svg { width: 14px; height: 14px; }

/* Option cards */
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.opts--feel { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.opts--door { grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); }
.opts--uppers, .opts--hood { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt {
  position: relative; display: flex; flex-direction: column;
  padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper);
  cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s, transform 0.25s var(--ease);
}
.opt:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 10px 20px -16px rgba(42, 31, 24, 0.5); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.opt:has(input:focus-visible) { outline: 2px solid var(--oxblood); outline-offset: 3px; }
.opt__media { display: block; aspect-ratio: 1200 / 780; border-radius: 3px; overflow: hidden; background: #e7dfd2; }
.opt__media svg { width: 100%; height: 100%; }
.opts--door .opt__media { aspect-ratio: 4 / 5; background: linear-gradient(#efe8dc, #e4dbcd); display: grid; place-items: center; padding: 10% 14%; }
.opts--uppers .opt__media { aspect-ratio: 560 / 300; }
.opts--hood .opt__media { aspect-ratio: 320 / 300; }
.opt__body { display: grid; gap: 2px; padding: 7px 3px 2px; }
.opt__name { font-weight: 600; font-size: 13.5px; color: var(--ink); line-height: 1.25; }
.opt__desc { font-size: 12px; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.opt__check {
  position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--ink); color: var(--plaster); display: grid; place-items: center;
  opacity: 0; transform: scale(0.6); transition: opacity 0.2s, transform 0.25s var(--ease);
}
.opt__check::after { content: ''; width: 9px; height: 5px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-1px) rotate(-45deg); }
.opt:has(input:checked) .opt__check { opacity: 1; transform: none; }

/* Swatches */
.sws { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 10px 6px; border: 0; padding: 0; margin: 0; }
.sws--tile { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
.sw { position: relative; display: grid; gap: 5px; cursor: pointer; text-align: center; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.sw__chip {
  position: relative; display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); transition: box-shadow 0.2s, transform 0.25s var(--ease);
  max-width: 50px; width: 100%; margin: 0 auto;
}
.sws--tile .sw__chip { aspect-ratio: 16 / 9; border-radius: 4px; max-width: none; }
.sw__chip svg { width: 100%; height: 100%; }
.sw:hover .sw__chip { transform: scale(1.04); }
.sw:has(input:checked) .sw__chip { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 0 0 2px var(--plaster), 0 0 0 4px var(--ink); }
.sw:has(input:focus-visible) .sw__chip { outline: 2px solid var(--oxblood); outline-offset: 6px; }
.sw__name { font-size: 11.5px; line-height: 1.25; color: var(--ink-2); font-weight: 500; }
.sw:has(input:checked) .sw__name { color: var(--ink); font-weight: 600; }
.sws--sm { grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); }
.sws--sm .sw__chip { max-width: 34px; }
.sws--sm .sw__name { font-size: 10.5px; }
.sw__eq { position: absolute; inset: 0; display: grid; place-items: center; font: 700 16px/1 var(--f-body); color: #fff; text-shadow: 0 0 3px rgba(0, 0, 0, 0.7); }

/* Metal chips */
.metals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.metal { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; padding: 9px 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); cursor: pointer; text-align: center; transition: border-color 0.2s, box-shadow 0.2s; }
.metal input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.metal i { width: 28px; height: 28px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.12); }
.metal span { font-size: 12px; font-weight: 500; color: var(--ink); line-height: 1.25; overflow-wrap: anywhere; }
.metal:hover { border-color: var(--line-2); }
.metal:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.metal:has(input:focus-visible) { outline: 2px solid var(--oxblood); outline-offset: 3px; }

/* Island switch */
.group--island { padding-top: 16px; border-top: 1px solid var(--line); }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; margin-bottom: 12px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; width: 46px; height: 26px; border-radius: 999px; background: var(--line-2); transition: background 0.2s; flex: none; }
.switch__track i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.25s var(--ease); }
.switch input:checked + .switch__track { background: var(--ink); }
.switch input:checked + .switch__track i { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--oxblood); outline-offset: 3px; }
.switch b { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }
.switch small { font-size: 13px; color: var(--muted); }
.island-fin { border: 0; padding: 0; margin: 0; min-width: 0; transition: opacity 0.2s; }
.island-fin:disabled { opacity: 0.35; }

/* Project type */
.ptype { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ptype__card {
  position: relative; display: grid; gap: 3px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper);
  cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s;
}
.ptype__card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ptype__card svg { width: 36px; height: 30px; color: var(--oxblood); margin-bottom: 4px; }
.ptype__card b { font-size: 16px; color: var(--ink); }
.ptype__card small { font-size: 13px; color: var(--muted); line-height: 1.4; }
.ptype__card:hover { border-color: var(--line-2); }
.ptype__card:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.ptype__card:has(input:focus-visible) { outline: 2px solid var(--oxblood); outline-offset: 3px; }
.ptype.has-error .ptype__card { border-color: var(--oxblood); }

/* Review */
.review { margin-top: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.review__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.review__head h2 { font-family: var(--f-body); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.review dl { margin: 0; display: grid; grid-template-columns: auto 1fr auto; }
.review dt, .review dd { padding: 10px 16px; border-bottom: 1px solid var(--line); margin: 0; font-size: 14px; }
.review dt { color: var(--muted); }
.review dd { color: var(--ink); font-weight: 500; }
.review dd.edit { text-align: right; }
.review dd.edit button { border: 0; background: none; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--oxblood); text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.review dl > :nth-last-child(-n+3) { border-bottom: 0; }
.fine { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* Bottom nav */
.vb-nav {
  position: sticky; bottom: 0; z-index: 10;
  display: flex; align-items: center; gap: 12px;
  margin-top: 22px; padding: 12px 0 16px;
  background: linear-gradient(to top, var(--plaster) 72%, rgba(244, 239, 231, 0));
}
.vb-nav__info { margin: 0 auto; color: var(--muted); }
.vb-nav #back[hidden] { display: inline-flex; visibility: hidden; }
#next { min-width: 200px; }

/* Done */
.done { position: fixed; inset: 0; z-index: 100; overflow: auto; background: var(--plaster); animation: doneIn 0.5s var(--ease); }
@keyframes doneIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.done__inner { max-width: 1280px; margin: 0 auto; padding: clamp(32px, 6vw, 80px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.done__board { position: sticky; top: 40px; }
.done__stamp { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--oxblood); color: #fff; margin-bottom: 22px; }
.done__stamp svg { width: 24px; height: 24px; }
.done h2 { font-size: clamp(2rem, 3.4vw, 3rem); margin-bottom: 16px; outline: none; }
.next-steps { counter-reset: n; padding: 0; margin: 28px 0; display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.next-steps li { counter-increment: n; list-style: none; display: grid; grid-template-columns: 40px 1fr; gap: 2px 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.next-steps li::before { content: counter(n); grid-row: span 2; font: 400 1.25rem/1.1 var(--f-display); color: var(--muted); }
.next-steps b { color: var(--ink); }
.next-steps span { font-size: 14.5px; color: var(--muted); }
.summary { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0 0 28px; font-size: 14px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; color: var(--ink); font-weight: 500; }
.done__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.done__edit { margin-top: 16px; border: 0; background: none; padding: 0; cursor: pointer; font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1180px) {
  .stepper button span { display: none; }
  .stepper button { padding: 0 6px; }
  .stepper button[aria-current='step'] span { display: inline; }
  .stepper button[aria-current='step'] { padding-right: 12px; }
  .vb-exit__long { display: none; }
  .spec { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .vb { --vb-head: 56px; }
  .stepper { display: none; }
  .vb-mstep { display: block; }
  .vb-exit { margin-left: 16px; }
  .vb-progress { display: block; position: sticky; top: var(--vb-head); z-index: 39; height: 3px; background: var(--line); }
  .vb-progress i { display: block; height: 100%; width: 0; background: var(--oxblood); transition: width 0.4s var(--ease); }
  .vb-main { display: block; }
  .vb-stage { top: calc(var(--vb-head) + 3px); height: auto; padding: 10px 12px; box-shadow: 0 10px 24px -18px rgba(42, 31, 24, 0.6); background-size: 18px 18px; }
  .vb-stage .board { padding: 5px; }
  .vb-stage .board::before, .vb-stage .board::after, .vb-stage .board__bar, .vb-stage .spec, .vb-note { display: none; }
  .vb-panel { min-height: 0; padding: 26px 16px 0; }
  .vb-panel form { padding-bottom: 104px; }
  .vb-nav {
    position: fixed; left: 0; right: 0; bottom: 0; margin: 0; z-index: 45;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(244, 239, 231, 0.97); border-top: 1px solid var(--line);
  }
  .vb-nav__info { display: none; }
  #next { flex: 1; min-width: 0; }
  #back span { display: none; }
  #back { width: 50px; padding: 0; }
  .vb-nav #back[hidden] { display: none; }
  .opts--feel { grid-template-columns: 1fr 1fr; gap: 10px; }
  .opts--feel .opt__desc { display: none; }
  .metals { grid-template-columns: 1fr 1fr; }
  .done__inner { grid-template-columns: 1fr; }
  .done__board { position: static; }
  .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .opts--uppers, .opts--hood { gap: 8px; }
  .opts--uppers .opt__desc, .opts--hood .opt__desc { display: none; }
  .ptype { grid-template-columns: 1fr 1fr; }
  .ptype__card { padding: 14px; }
}

/* ---------- Print: just the finished board ---------- */
@media print {
  @page { margin: 12mm; }
  body.vb > *:not(.done) { display: none !important; }
  .done { position: static; overflow: visible; animation: none; background: #fff; }
  .done__inner { display: block; padding: 0; }
  .done__board { position: static; margin-bottom: 18px; }
  .board { box-shadow: none; border: 1px solid #ddd; }
  .board::before, .board::after { display: none; }
  .no-print, .done__stamp { display: none !important; }
  .done h2 { font-size: 22pt; }
}

/* ======================================================================
   3D stage
   ====================================================================== */
.gl { position: absolute; inset: 16px; border-radius: 16px; opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0s linear 0.9s; overflow: hidden; background: #e9e3d9;
  box-shadow: 0 0 0 1px rgba(35, 26, 20, 0.08), 0 24px 60px -30px rgba(30, 20, 10, 0.6); isolation: isolate; }
.has-3d .gl { opacity: 1; visibility: visible; transition: opacity 0.9s ease; }
/* While the 3D loads: the stage is already in place, showing a render of the chosen style */
.is-loading-3d .gl { opacity: 1; visibility: visible; transition: none; }
.is-loading-3d .vb-stage > .board, .is-loading-3d .vb-stage > .vb-note { display: none; }
.is-loading-3d .gl__views, .is-loading-3d .gl__time, .is-loading-3d .gl__palette, .is-loading-3d .gl__hint { visibility: hidden; }
.gl__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.6s ease; }
.gl__poster:not([src]) { display: none; }
.has-3d .gl__poster { opacity: 0; pointer-events: none; }
.has-3d .vb-stage > .board, .has-3d .vb-stage > .vb-note { opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
.gl__host { position: absolute; inset: 0; }
.gl__host canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; outline: none; cursor: grab; }
.gl__host canvas:active { cursor: grabbing; }
.gl-fade { pointer-events: none; opacity: 0; }
.gl__vignette { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(to bottom, rgba(20, 14, 8, 0.18), rgba(20, 14, 8, 0) 18%, rgba(20, 14, 8, 0) 78%, rgba(20, 14, 8, 0.22)),
  radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0) 55%, rgba(20, 14, 8, 0.22) 100%); }
.glass {
  background: rgba(251, 248, 243, 0.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 30px -14px rgba(30, 20, 10, 0.45);
  border-radius: 999px;
}
.gl__title { position: absolute; top: 14px; left: 14px; display: flex; align-items: center; gap: 10px; padding: 9px 16px; font-size: 13.5px; color: var(--ink); }
.gl__title .mono { color: var(--muted); }
.gl__title b { font-weight: 600; }
.gl__views { position: absolute; top: 14px; right: 14px; display: flex; align-items: center; padding: 4px; gap: 2px; }
.gl__views [hidden] { display: none !important; }
.gl__views button, .gl__time button {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border: 0; border-radius: 999px;
  background: transparent; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); transition: background 0.2s, color 0.2s;
}
.gl__views button:hover, .gl__time button:hover { color: var(--ink); background: rgba(35, 26, 20, 0.06); }
.gl__views button[aria-pressed='true'], .gl__time button[aria-pressed='true'] { background: var(--ink); color: var(--plaster); }
.gl__time { position: absolute; right: 14px; bottom: 14px; display: flex; padding: 4px; gap: 2px; }
.gl__time svg { width: 15px; height: 15px; }
.gl__views .gl__reset { position: relative; width: 34px; padding: 0; justify-content: center; margin-left: 5px; }
.gl__views .gl__reset::before { content: ''; position: absolute; left: -4px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.gl__reset svg { width: 15px; height: 15px; }
.gl__palette { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 4px; margin: 0; padding: 6px 8px; list-style: none; }
.gl__palette::before { content: 'Materials'; font: 600 11.5px/1 var(--f-body); color: var(--muted); padding: 0 6px 0 4px; }
.gl__palette li { position: relative; }
.gl__palette button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transition: transform 0.25s var(--ease); }
.gl__palette button:hover, .gl__palette button:focus-visible { transform: translateY(-2px); }
.gl__palette i { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14), 0 2px 5px rgba(0, 0, 0, 0.14); }
.gl__palette span {
  position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translate(-50%, 4px);
  display: grid; padding: 7px 11px; border-radius: 8px; background: var(--ink); color: var(--plaster);
  font-size: 12.5px; font-weight: 600; line-height: 1.25; white-space: nowrap; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.gl__palette small { font: 500 11px/1.3 var(--f-body); color: rgba(244, 239, 231, 0.7); }
.gl__palette button:hover span, .gl__palette button:focus-visible span { opacity: 1; transform: translate(-50%, 0); }
.gl__hint {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0;
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px;
  background: rgba(24, 17, 12, 0.6); color: #fff; font-size: 14px; font-weight: 500; pointer-events: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: hintIn 0.8s ease 1.2s both; transition: opacity 0.5s ease, transform 0.5s ease;
}
.gl__hint svg { width: 22px; height: 22px; }
.gl__hint.is-gone { opacity: 0; transform: translate(-50%, -40%); animation: none; }
@keyframes hintIn { from { opacity: 0; } to { opacity: 1; } }
.gl__note { display: none; }

.gl__loader {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 3;
  display: none; align-items: center; gap: 14px; padding: 10px 18px; border-radius: 999px;
  background: rgba(251, 248, 243, 0.92); box-shadow: 0 10px 30px -14px rgba(30, 20, 10, 0.45);
  font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
}
.is-loading-3d .gl__loader { display: inline-flex; }
.gl__track { position: relative; width: 90px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.gl__track i { position: absolute; inset: 0; background: var(--oxblood); transform-origin: left; transform: scaleX(0.02); transition: transform 0.4s ease; }

/* 3D thumbnails and swatches */
.opt__media img { width: 100%; height: 100%; object-fit: cover; display: block; animation: thumbIn 0.4s ease; }
.opts--door .opt__media img { object-fit: contain; }
.opts--door .opt__media:has(img) { padding: 4% 8%; }
@keyframes thumbIn { from { opacity: 0.2; } to { opacity: 1; } }
.sw__paint { position: absolute; inset: 0; background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 46%), radial-gradient(circle at 70% 80%, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0) 50%), var(--c); }
.sw__img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.sw__img::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 50%); }
.sw__chip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.metal i.is-render { width: 40px; height: 40px; box-shadow: none; background-color: transparent !important; }

/* Designer notes and pairings */
.note { margin: 10px 0 0; padding: 8px 12px; border-left: 2px solid var(--oxblood); border-radius: 0 6px 6px 0; background: rgba(251, 248, 243, 0.75); font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.note b { color: var(--ink); font-weight: 600; }
.pairings { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -2px 0 10px; }
.pairings__label { color: var(--muted); margin-right: 4px; }
.pairing { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 6px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); transition: border-color 0.2s, background 0.2s; }
.pairing:hover { border-color: var(--ink); color: var(--ink); }
.pairing.is-on { background: var(--ink); color: var(--plaster); border-color: var(--ink); }
.pairing i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); }

/* Mood board */
#doneRender img { width: 100%; height: 100%; object-fit: cover; display: block; }
.developing { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); background: linear-gradient(100deg, #e7e0d4 30%, #f3eee6 50%, #e7e0d4 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
.mood__details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.mood__details:empty { display: none; }
.mood__details figure { margin: 0; position: relative; aspect-ratio: 800 / 560; border-radius: 2px; overflow: hidden; background: #e4dccf; }
.mood__details img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mood__details figcaption { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(251, 248, 243, 0.88); font-size: 9.5px; color: var(--ink); }
.mood__palette { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 4px 4px; padding: 0; list-style: none; }
.mood__palette:empty { display: none; }
.mood__palette li { display: flex; align-items: center; gap: 9px; }
.mood__palette i { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14); }
.mood__palette span { display: grid; font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.mood__palette small { font: 500 11px/1.3 var(--f-body); color: var(--muted); }

@media (max-width: 900px) {
  .has-3d .vb-stage, .is-loading-3d .vb-stage { height: min(46vh, 400px); padding: 0; }
  .gl__title, .gl__palette { display: none !important; }
  .gl { inset: 8px; border-radius: 12px; }
  .gl__views { top: 10px; left: 10px; right: auto; max-width: calc(100% - 20px); overflow-x: auto; scrollbar-width: none; }
  .gl__views button { height: 30px; padding: 0 11px; font-size: 12px; }
  .gl__time { right: 10px; bottom: 10px; }
  .gl__time button { height: 32px; padding: 0 9px; }
  .gl__time span { display: none; }
  .gl__hint { font-size: 13px; padding: 9px 14px; }
  .gl__loader { bottom: 14px; font-size: 12px; }
  .mood__details { grid-template-columns: 1fr 1fr; }
}
@media print {
  .mood__details figure { break-inside: avoid; }
}
@media (max-width: 900px) {
  .has-3d .vb-stage > .board, .has-3d .vb-stage > .vb-note { display: none; }
  .sws { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); }
  .sw__chip { max-width: 44px; }
}
