/* Zion Outdoors estimate wizard POC. Tokens pulled from zionoutdoors.com (Elementor theme). */

:root {
  --teal: #1F866F;
  --teal-600: #197360;
  --teal-700: #145c4d;
  --teal-50: #e8f3f0;
  --gold: #CD902C;
  --gold-50: #fbf3e4;
  --ink: #070707;
  --ink-2: #3F444B;
  --muted: #5d676e;
  --line: #DADBDD;
  --line-2: #eceeef;
  --soft: #F6F6F6;
  --black: #080808;
  --white: #fff;
  --danger: #b3261e;
  --radius-pill: 1000px;
  --radius-card: 16px;
  --shadow-card: 0 18px 50px rgba(0, 0, 0, 0.18);
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --header-h: 88px;
  --gutter: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; }
html.ve-open, html.ve-open body { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(52px + var(--safe-b));
}
img, canvas, svg { max-width: 100%; }
img { display: block; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: var(--teal); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--black); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.icon { flex: none; }

/* ---------- Promo bar ---------- */
.promo-bar { background: var(--teal); color: #fff; overflow: hidden; white-space: nowrap; font-size: 14px; line-height: 30px; height: 30px; }
.promo-track { display: inline-flex; gap: 100px; animation: marquee 40s linear infinite; padding-left: 16px; }
@keyframes marquee { to { transform: translateX(-33.333%); } }

/* ---------- Header ---------- */
.site-header { background: #fff; position: relative; z-index: 20; border-bottom: 1px solid var(--line-2); }
.header-inner { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.header-actions { display: flex; justify-content: center; gap: 10px; padding: 8px 0; background: var(--black); margin: 0 calc(-1 * var(--gutter)); }
.header-actions .pill-teal { display: none; }
.header-main { display: flex; align-items: center; gap: 12px; min-height: 78px; }
.logo img { height: 56px; width: auto; }
.main-nav { display: none; }
.hamburger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: 0; padding: 8px; }
.hamburger span { display: block; height: 3px; background: var(--ink); border-radius: 2px; }
.header-mobile-cta { margin-left: auto; text-align: center; line-height: 1.2; padding: 10px 18px; font-size: 14px; max-width: 170px; white-space: normal; }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 20px; border-radius: 50px; border: 2px solid transparent;
  font-size: 16px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; color: #fff;
  transition: background-color .15s, color .15s;
}
.pill-black { background: var(--black); border-color: #000; }
.pill-black:hover { background: #222; }
.pill-teal { background: var(--teal); border-color: var(--teal); }
.pill-teal:hover { background: var(--teal-600); }
.header-actions .pill-black { background: var(--teal); border-color: var(--teal); }

@media (min-width: 1025px) {
  .site-header { position: sticky; top: 0; }
  .header-actions { justify-content: flex-end; background: none; margin: 0; padding: 5px 0; border-bottom: 1px solid var(--line-2); }
  .header-actions .pill-teal { display: inline-flex; }
  .header-actions .pill-black { background: var(--black); border-color: #000; }
  .hamburger, .header-mobile-cta { display: none; }
  .header-main { min-height: 66px; }
  .logo img { height: 56px; }
  .main-nav { display: flex; margin-left: auto; gap: 6px; }
  .main-nav a { color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 500; letter-spacing: 1px; padding: 10px 18px; border-radius: 6px; }
  .main-nav a:hover { color: var(--teal); }
  html { scroll-padding-top: 140px; }
  body { padding-bottom: 0; }
}

/* Mobile slide-out menu */
.mobile-menu { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0); transition: background .2s; }
.mobile-menu.is-open { background: rgba(0, 0, 0, 0.45); }
.mobile-menu-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); background: #fff; padding: calc(20px + var(--safe-t)) 24px 24px; transform: translateX(-100%); transition: transform .2s ease-out; display: flex; flex-direction: column; gap: 20px; }
.mobile-menu.is-open .mobile-menu-panel { transform: none; }
.mobile-menu-close { position: absolute; top: calc(10px + var(--safe-t)); right: 10px; width: 44px; height: 44px; border: 0; background: none; font-size: 32px; line-height: 1; }
.mobile-menu-logo { width: 120px; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 500; letter-spacing: 1px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }

/* Mobile bottom action bar (as on the live site) */
.mobile-cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1.6fr 1fr; background: var(--teal); padding-bottom: var(--safe-b); }
.mobile-cta-bar > * { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; color: #fff; background: none; border: 0; border-left: 2px solid #111; text-decoration: none; text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px; font-weight: 500; text-align: center; line-height: 1.15; padding: 4px 8px; }
.mobile-cta-bar > :first-child { border-left: 0; }
@media (min-width: 1025px) { .mobile-cta-bar { display: none; } }

/* ---------- Hero / wizard section ---------- */
.hero {
  position: relative;
  background: #3b3b3b url('../assets/img/hero.jpg') center / cover no-repeat;
  color: #fff;
  scroll-margin-top: 0;
}
.hero::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
.hero-inner { position: relative; max-width: 1296px; margin: 0 auto; padding: 36px var(--gutter) 40px; display: grid; gap: 28px; }
.eyebrow { font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.hero h1 { font-size: 29px; font-weight: 700; letter-spacing: 3px; line-height: 1.2; }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) 452px; align-items: center; gap: 40px; padding: 60px 72px 90px 112px; min-height: 823px; }
  .hero h1 { font-size: 38.4px; letter-spacing: 4.2px; line-height: 1.2; }
  .eyebrow { font-size: 16px; }
}

/* ---------- Wizard card ---------- */
.wz-card {
  background: rgba(128, 128, 128, 0.82);
  border-radius: var(--radius-card);
  padding: 28px 20px;
  color: #fff;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
@media (min-width: 600px) { .wz-card { padding: 30px; } }

/* ---------- Wizard modal ---------- */
.wz-modal { position: fixed; inset: 0; z-index: 100; background: rgba(8, 12, 11, 0); display: flex; align-items: stretch; justify-content: center; transition: background-color .2s ease; }
.wz-modal.is-open { background: rgba(8, 12, 11, 0.62); }
.wz-modal-dialog { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; background: #fff; color: var(--ink); overflow: hidden; transform: translateY(16px); opacity: 0; transition: transform .22s ease-out, opacity .18s ease-out; }
.wz-modal.is-open .wz-modal-dialog { transform: none; opacity: 1; }
@media (min-width: 760px) {
  .wz-modal { padding: 24px; }
  .wz-modal-dialog { max-width: 1120px; height: auto; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); min-height: min(720px, calc(100dvh - 48px)); border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
}
.wz-modal-head { flex: none; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 44px; align-items: center; gap: 8px; padding: calc(8px + var(--safe-t)) 10px 8px; border-bottom: 1px solid var(--line-2); background: #fff; }
@media (min-width: 760px) { .wz-modal-head { padding: 10px 16px; } }
.wz-modal-logo { height: 34px; width: auto; justify-self: end; }
@media (max-width: 420px) { .wz-modal-logo { display: none; } .wz-modal-head { grid-template-columns: 44px minmax(0, 1fr) 44px; } }
.wz-modal-title { font-weight: 700; font-size: 16px; }
.wz-modal-close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--soft); display: grid; place-items: center; color: var(--ink); }
.wz-modal-close:hover { background: var(--line-2); }
.wz-modal-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 0 calc(24px + var(--safe-b)); }
.wz-modal .wz-card { background: none; color: var(--ink); border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; max-width: 680px; margin: 0 auto; padding: 22px var(--gutter) 28px; }
.wz-modal .is-wide .wz-card { max-width: 1040px; }
@media (min-width: 760px) { .wz-modal .wz-card { padding: 34px 40px 40px; } }
.wz-modal .wz-card { animation: card-in .18s ease-out; }
@keyframes card-in { from { opacity: 0; transform: translateY(6px); } }
html.modal-open, html.modal-open body { overflow: hidden; }

.wz-progress { display: grid; gap: 6px; }
.wz-back, .wz-back-spacer { width: 44px; height: 44px; }
.wz-back { border-radius: 50%; border: 0; background: none; display: grid; place-items: center; color: var(--ink-2); }
.wz-back:hover { background: var(--soft); }
.wz-progress-text { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .3px; line-height: 1.2; }
.wz-progress-bar { height: 4px; max-width: 420px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.wz-progress-bar span { display: block; height: 100%; background: var(--teal); border-radius: 4px; transition: width .3s ease; }

.wz-promo { font-size: 24px; font-weight: 700; letter-spacing: -0.648px; line-height: 1.175; text-align: center; margin-bottom: 16px; }
.wz-lede { font-size: 16px; line-height: 1.5; text-align: center; margin-bottom: 18px; font-weight: 500; }
.wz-intro-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.wz-intro-list li { display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); border-radius: 30px; padding: 9px 16px 9px 9px; font-size: 14.5px; font-weight: 500; line-height: 1.3; }
.wz-intro-num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.wz-fine { font-size: 13px; line-height: 1.5; text-align: center; margin-top: 12px; opacity: .92; }
.wz-card .wz-fine a { color: inherit; font-weight: 600; }
.wz-modal .wz-fine { color: var(--muted); }

.wz-kicker { font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.wz-title { font-size: 24px; font-weight: 700; letter-spacing: -0.4px; line-height: 1.2; margin-bottom: 8px; outline: none; }
.wz-sub { color: var(--ink-2); font-size: 15px; line-height: 1.55; margin-bottom: 20px; max-width: 60ch; }
.wz-label { font-size: 15px; font-weight: 700; margin: 22px 0 10px; }
.wz-optional { font-weight: 500; color: var(--muted); }
.wz-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.wz-actions > .btn { flex: 1 1 200px; }
.wz-actions-center { justify-content: center; }
.wz-status { font-size: 14px; color: var(--ink-2); margin-top: 10px; min-height: 1em; }
@media (min-width: 600px) { .wz-title { font-size: 28px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 14px 28px; border-radius: var(--radius-pill); border: 2px solid transparent;
  font-size: 16px; font-weight: 500; letter-spacing: 1.6px; line-height: 1.1; text-decoration: none; text-align: center;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled { opacity: .45; }
.btn-lg { min-height: 54px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn-black { background: #000; color: #fff; }
.btn-black:hover:not(:disabled) { background: #262626; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover:not(:disabled) { background: var(--teal-600); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); letter-spacing: .6px; }
.btn-outline:hover { border-color: var(--ink-2); }
.btn-link { background: none; border: 0; color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; padding: 8px 10px; }

/* ---------- Fields (site style: white pills) ---------- */
.field {
  width: 100%; min-height: 52px; padding: 11px 18px; border-radius: 30px; border: 1px solid var(--line);
  background: #fff; color: #333; font: inherit; font-size: 16px; line-height: 28px; appearance: none; -webkit-appearance: none;
}
.field::placeholder { color: #7a7c80; }
.field:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31, 134, 111, 0.25); }
.field[aria-invalid="true"] { border-color: var(--danger); }
select.field { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23555' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 18px center; padding-right: 40px; }
.field-err { display: block; font-size: 13px; color: var(--danger); padding: 4px 18px 0; min-height: 0; }
.field-err:empty { display: none; }

/* ---------- Project tiles ---------- */
.wz-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .wz-tiles { grid-template-columns: repeat(5, 1fr); } }
.wz-tile { position: relative; display: flex; flex-direction: column; padding: 0; border: 2px solid var(--line-2); border-radius: 14px; overflow: hidden; background: #fff; text-align: left; transition: border-color .15s, box-shadow .15s, transform .15s; }
.wz-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.wz-tile-label { display: flex; flex-direction: column; padding: 10px 12px 12px; font-weight: 700; font-size: 15px; line-height: 1.25; }
.wz-tile-label small { font-weight: 500; color: var(--muted); font-size: 12px; margin-top: 3px; }
.wz-tile:hover { border-color: var(--line); box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
.wz-tile[aria-checked="true"] { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31, 134, 111, .25); }
.wz-tile[aria-checked="true"]::after { content: ''; position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.wz-tiles .wz-tile:last-child:nth-child(odd) { grid-column: span 2; }
.wz-tiles .wz-tile:last-child:nth-child(odd) img { aspect-ratio: 8 / 3; }
@media (min-width: 760px) { .wz-tiles .wz-tile:last-child:nth-child(odd) { grid-column: auto; } .wz-tiles .wz-tile:last-child:nth-child(odd) img { aspect-ratio: 4 / 3; } }

/* ---------- Product listing ---------- */
.pl { display: grid; gap: 22px; }
@media (min-width: 860px) { .pl { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 34px; align-items: start; } .pl-gallery { position: sticky; top: 12px; } }
.pl-main { position: relative; border-radius: 14px; overflow: hidden; background: var(--soft); aspect-ratio: 4 / 3; }
.pl-main canvas, .pl-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-main-tag { position: absolute; left: 12px; bottom: 12px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 20px; }
.pl-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.pl-thumb { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--soft); aspect-ratio: 4 / 3; }
.pl-thumb canvas, .pl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-thumb[aria-selected="true"] { border-color: var(--teal); }
.pl-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--teal); }
.pl-title { font-size: 27px; font-weight: 700; letter-spacing: -0.5px; margin: 4px 0 6px; }
.pl-rating { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.pl-stars { color: var(--gold); letter-spacing: 2px; }
.pl-blurb { color: var(--ink-2); font-size: 15px; line-height: 1.55; margin-bottom: 18px; }
.pl-field { margin-bottom: 18px; }
.pl-field-label { font-size: 14.5px; margin-bottom: 8px; color: var(--ink-2); }
.pl-field-label strong { color: var(--ink); }
.pl-patterns { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pl-pattern { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 4px 2px 6px; border: 2px solid var(--line-2); border-radius: 12px; background: #fff; font-size: 11.5px; font-weight: 600; min-height: 44px; }
.pl-pattern img { width: 100%; aspect-ratio: 1; border-radius: 8px; object-fit: cover; background: var(--soft); }
.pl-pattern[aria-checked="true"] { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(31, 134, 111, .2); }
.pl-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.pl-color { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; background: var(--sw); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .12s; }
.pl-color[aria-checked="true"] { box-shadow: 0 0 0 2px var(--teal), 0 0 0 1px var(--line); }
.pl-why { list-style: none; padding: 14px 16px; margin: 4px 0 22px; background: var(--teal-50); border-radius: 12px; display: grid; gap: 6px; font-size: 14px; line-height: 1.4; }
.pl-why li { display: flex; gap: 8px; align-items: flex-start; }
.pl-why .icon { color: var(--teal); width: 18px; height: 18px; margin-top: 1px; stroke-width: 3; }

/* ---------- Photo step ---------- */
.ph-options { display: grid; gap: 12px; }
.ph-option { display: grid; grid-template-columns: 48px 1fr; gap: 4px 14px; align-items: center; padding: 16px; border: 2px solid var(--line-2); border-radius: 14px; background: #fff; cursor: default; }
.ph-option-primary { cursor: pointer; border-color: var(--teal); background: var(--teal-50); transition: background-color .15s; }
.ph-option-primary:hover { background: #dcefe9; }
.ph-option-primary:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.ph-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; }
.ph-option:not(.ph-option-primary) .ph-icon { background: var(--soft); color: var(--ink-2); }
.ph-text { display: flex; flex-direction: column; line-height: 1.35; }
.ph-text strong { font-size: 16px; }
.ph-text small { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.ph-samples { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.ph-sample { position: relative; padding: 0; border: 2px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #000; }
.ph-sample img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; opacity: .92; transition: opacity .15s; }
.ph-sample:hover img { opacity: 1; }
.ph-sample span { position: absolute; left: 8px; bottom: 8px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.ph-preview { position: relative; border-radius: 14px; overflow: hidden; background: var(--soft); min-height: 200px; display: grid; place-items: center; }
.ph-preview-img { width: 100%; height: auto; display: block; }
.ph-preview-loading, .ba-loading { color: var(--muted); font-size: 14px; padding: 60px 0; text-align: center; }
.ph-replace { margin-top: 18px; }
.ph-replace summary { cursor: pointer; font-weight: 600; color: var(--teal); min-height: 44px; display: flex; align-items: center; }
.ph-replace .ph-options { margin-top: 8px; }

/* ---------- Sqft ---------- */
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--soft); border-radius: 30px; padding: 4px; margin-bottom: 18px; }
.seg button { border: 0; background: none; border-radius: 26px; min-height: 44px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); padding: 6px 10px; line-height: 1.2; }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.sq-label { font-weight: 700; font-size: 15px; display: block; margin-bottom: 8px; }
.sq-input-wrap { position: relative; max-width: 280px; }
.sq-input-wrap span { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.sq-input { font-size: 26px; font-weight: 700; min-height: 62px; padding-right: 76px; }
.sq-est { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--teal-700); font-weight: 600; }
.sq-rows { display: grid; gap: 10px; }
.sq-row { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 8px; align-items: center; }
.sq-row .field { min-width: 0; }
.sq-x, .sq-ft { color: var(--muted); font-weight: 600; }
.sq-row-out { grid-column: 1 / -1; font-size: 13px; color: var(--muted); margin: -4px 0 0 18px; }
.sq-row-out:empty { display: none; }
.sq-remove { grid-column: 4; grid-row: 1; justify-self: end; border: 0; background: none; width: 36px; height: 36px; display: none; }
.sq-row:has(.sq-remove) { grid-template-columns: 1fr auto 1fr auto 36px; }
.sq-row:has(.sq-remove) .sq-remove { display: grid; place-items: center; grid-column: 5; }
.sq-total { font-size: 16px; margin-top: 6px; }

/* ---------- Chips ---------- */
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.chip { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; padding: 6px 8px; border: 2px solid var(--line-2); border-radius: 14px; background: #fff; font-weight: 700; font-size: 14.5px; line-height: 1.2; }
.chip small { font-weight: 500; font-size: 11.5px; color: var(--muted); }
.chip[aria-checked="true"] { border-color: var(--teal); background: var(--teal-50); }
.chip:disabled { opacity: .45; text-decoration: line-through; }

/* ---------- Contact ---------- */
.ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ct-grid .field-wrap { grid-column: 1 / -1; }
.ct-grid .field-wrap.half { grid-column: span 1; }
.ct-grid .field-wrap:nth-child(6) { grid-column: 1 / -1; }
@media (min-width: 600px) { .ct-grid .field-wrap:nth-child(6) { grid-column: span 1; } .ct-grid .field-wrap:nth-child(7) { grid-column: span 1; } }
.ct-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); margin: 18px 0 4px; cursor: pointer; }
.ct-consent input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--teal); }
.ct-form .btn { margin-top: 18px; }

/* ---------- Loading gate ---------- */
.gate { position: fixed; inset: 0; z-index: 200; background: #0c1210; color: #fff; display: flex; flex-direction: column; padding: var(--safe-t) 0 var(--safe-b); animation: fade-in .2s ease-out; overflow: auto; }
.gate.is-closing { animation: fade-out .2s ease-in forwards; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.gate-video { background: #000; }
.gate-video-frame { position: relative; width: 100%; max-width: 980px; margin: 0 auto; aspect-ratio: 16 / 9; }
.gate-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.gate-sound { position: absolute; right: 12px; bottom: 12px; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 30px; border: 0; background: rgba(0, 0, 0, .65); color: #fff; font-size: 14px; font-weight: 600; }
.gate-panel { width: 100%; max-width: 560px; margin: 0 auto; padding: 26px 22px 30px; flex: 1; }
.gate-panel h2 { font-size: 22px; margin-bottom: 16px; }
.gate-progress { height: 10px; background: rgba(255, 255, 255, .14); border-radius: 10px; overflow: hidden; }
.gate-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), #35b494); border-radius: 10px; }
.gate-pct { display: block; text-align: right; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .75); margin: 6px 0 12px; font-variant-numeric: tabular-nums; }
.gate-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.gate-list li { display: flex; gap: 12px; align-items: center; font-size: 15px; line-height: 1.35; color: rgba(255, 255, 255, .45); transition: color .2s; }
.gate-list li.is-active { color: #fff; }
.gate-list li.is-done { color: rgba(255, 255, 255, .85); }
.gate-dot { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); display: grid; place-items: center; }
.gate-list li.is-active .gate-dot { border-color: var(--gold); border-top-color: transparent; animation: spin .8s linear infinite; }
.gate-list li.is-done .gate-dot { background: var(--teal); border-color: var(--teal); animation: pop .25s ease-out; }
.gate-list li.is-done .gate-dot .icon { width: 16px; height: 16px; stroke-width: 3; }
.gate-skip { display: inline-flex; gap: 6px; align-items: center; margin-top: 18px; min-height: 44px; padding: 8px 16px; border-radius: 30px; border: 1px solid rgba(255, 255, 255, .3); background: none; color: #fff; font-weight: 600; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { transform: scale(.6); } }
@media (min-width: 900px) and (min-height: 700px) { .gate { justify-content: center; } .gate-video { background: none; } .gate-video-frame { border-radius: 14px; overflow: hidden; max-width: min(980px, 100vw - 48px); } .gate-panel { flex: none; } }

/* ---------- Results ---------- */
.rs-head { margin-bottom: 16px; }
.rs-head .wz-sub { margin-bottom: 0; }
.rs-design { margin-bottom: 20px; }
.ba { position: relative; width: 100%; border-radius: 14px; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; background: #111; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ba-after { position: absolute; inset: 0; }
.ba-handle { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 6px rgba(0, 0, 0, .4); }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff; color: var(--teal); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 22px; font-weight: 700; box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.ba-tag { position: absolute; top: 12px; font-size: 12.5px; font-weight: 700; color: #fff; padding: 4px 12px; border-radius: 20px; pointer-events: none; }
.ba-tag-before { left: 12px; background: rgba(0, 0, 0, .55); }
.ba-tag-after { right: 12px; background: rgba(31, 134, 111, .92); }
.rs-listing-wrap { position: relative; border-radius: 14px; overflow: hidden; }
.rs-listing { width: 100%; display: block; }
.rs-share { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items: center; }
.rs-share .btn { flex: 1 1 160px; min-height: 46px; padding: 10px 18px; font-size: 14.5px; }
.rs-share-status { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.rs-share-status:empty { display: none; }
.rs-grid { display: grid; gap: 16px; margin-bottom: 28px; }
@media (min-width: 860px) { .rs-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.rs-card { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: #fff; }
.rs-card-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.rs-was { color: var(--muted); font-size: 15px; }
.rs-price { font-size: 34px; font-weight: 800; letter-spacing: -1px; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (min-width: 600px) { .rs-price { font-size: 40px; } }
.rs-promo { margin-top: 10px; font-size: 14px; line-height: 1.45; background: var(--gold-50); border-radius: 10px; padding: 10px 12px; color: #5b3e0c; }
.rs-promo-tag { display: inline-block; background: var(--gold); color: #fff; font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 12px; margin-right: 4px; }
.rs-note { font-size: 13.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.rs-lock { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--teal-50); color: var(--teal-700); }
.rs-lock .icon { width: 26px; height: 26px; }
.rs-lock div { display: flex; flex-direction: column; line-height: 1.3; font-size: 13.5px; }
.rs-lock strong { font-size: 15px; }
.rs-consult { background: #0f1614; color: #fff; border-color: #0f1614; }
.rs-consult p { font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, .85); margin-bottom: 12px; }
.rs-consult .wz-fine { color: rgba(255, 255, 255, .7); }
.rs-consult .wz-fine a { color: #fff; }
.rs-consult .btn-link { color: #8fd8c4; display: block; margin: 6px auto 0; }
.rs-designer-note { display: flex; gap: 8px; align-items: flex-start; color: #b8eadb !important; font-weight: 600; }
.rs-designer-note .icon { color: #6fd0b4; stroke-width: 3; }
.rs-muted { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.rs-consult .rs-muted { color: rgba(255, 255, 255, .6); }
.rs-booked-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; margin-bottom: 12px; animation: pop .3s ease-out; }
.rs-booked-icon .icon { width: 28px; height: 28px; stroke-width: 3; }
.rs-slot { font-size: 20px !important; font-weight: 700; color: #fff !important; }
.rs-expect { padding-left: 20px; margin: 0 0 16px; font-size: 14px; color: rgba(255, 255, 255, .8); line-height: 1.6; }
.slot-days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -2px; scroll-snap-type: x mandatory; }
.slot-day { flex: none; scroll-snap-align: start; width: 64px; min-height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .06); color: #fff; line-height: 1.2; }
.slot-day strong { font-size: 22px; }
.slot-day small { font-size: 11.5px; opacity: .75; text-transform: uppercase; letter-spacing: .5px; }
.slot-day[aria-checked="true"] { border-color: var(--teal); background: var(--teal); }
.slot-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 16px; }
.rs-consult .chip { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .15); color: #fff; }
.rs-consult .chip small { color: rgba(255, 255, 255, .6); }
.rs-consult .chip[aria-checked="true"] { background: var(--teal); border-color: var(--teal); }

.rs-section { margin-top: 30px; }
.rs-section-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; min-width: 460px; }
.cmp th, .cmp td { padding: 12px 10px; border-bottom: 1px solid var(--line-2); text-align: center; vertical-align: middle; }
.cmp thead th { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.cmp tbody th { text-align: left; font-weight: 500; line-height: 1.35; }
.cmp .is-gem { background: var(--teal-50); }
.cmp thead .is-gem { color: var(--teal-700); border-radius: 12px 12px 0 0; }
.cmp tbody tr:last-child .is-gem { border-radius: 0 0 12px 12px; }
.cmp-yes, .cmp-no { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.cmp-yes { background: var(--teal); color: #fff; }
.cmp-yes .icon { width: 18px; height: 18px; stroke-width: 3; }
.cmp-no { background: var(--line-2); color: #8a8f94; }
.cmp-no .icon { width: 14px; height: 14px; stroke-width: 3; }
.cmp-text { font-weight: 600; font-size: 13px; }

.ty-wrap { margin-top: 8px; }
.ty-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.ty-legend span { display: inline-flex; align-items: center; gap: 8px; }
.ty-legend i, .ty-tip i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; }
.ty-plot { position: relative; }
.ty-chart { width: 100%; height: auto; display: block; overflow: visible; }
.ty-grid { stroke: #e7e9ea; stroke-width: 1; }
.ty-tick { font-size: 12px; fill: var(--muted); font-family: var(--font); }
.ty-end-label { font-size: 12.5px; font-weight: 700; fill: var(--ink); font-family: var(--font); }
.ty-end-value { font-size: 12.5px; font-weight: 500; fill: var(--ink-2); font-family: var(--font); }
.ty-cross { stroke: #9aa1a6; stroke-width: 1; }
.ty-tip { position: absolute; top: 8px; width: 178px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; line-height: 1.6; box-shadow: 0 6px 20px rgba(0, 0, 0, .12); pointer-events: none; }
.ty-tip strong { display: block; font-size: 12px; color: var(--muted); }
.ty-tip div { display: flex; align-items: center; gap: 6px; }
.ty-tip b { margin-left: auto; font-variant-numeric: tabular-nums; }
.ty-details { margin-top: 12px; border-top: 1px solid var(--line-2); padding-top: 4px; }
.ty-details summary { cursor: pointer; font-weight: 600; color: var(--teal); min-height: 44px; display: flex; align-items: center; }
.ty-assumptions { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; padding-left: 20px; margin: 4px 0 12px; }
.ty-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; min-width: 380px; }
.ty-table th, .ty-table td { padding: 6px 8px; border-bottom: 1px solid var(--line-2); text-align: right; }
.ty-table th:first-child { text-align: left; }

/* ---------- Confirmation ---------- */
.cf-hero { text-align: center; margin-bottom: 20px; }
.cf-hero .wz-sub { margin: 0 auto; }
.cf-check { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--teal); color: #fff; margin-bottom: 12px; }
.cf-check .icon { width: 30px; height: 30px; stroke-width: 3; }
.cf-grid { display: grid; gap: 20px; }
@media (min-width: 860px) { .cf-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.cf-img { border-radius: 14px; overflow: hidden; background: var(--soft); }
.cf-img canvas { width: 100%; height: auto; display: block; }
.cf-list { margin: 0; display: grid; }
.cf-row { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; line-height: 1.45; }
.cf-row dt { color: var(--muted); font-weight: 500; }
.cf-row dd { margin: 0; font-weight: 600; }

/* ---------- Badges / services / footer (set dressing) ---------- */
.badges { background: var(--soft); }
.badges-inner { max-width: 1296px; margin: 0 auto; padding: 22px var(--gutter); display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: center; justify-content: center; }
.badges img { height: 64px; width: auto; object-fit: contain; }
@media (min-width: 900px) { .badges-inner { padding: 40px 72px; gap: 40px; } .badges img { height: 90px; } }
.services { max-width: 1296px; margin: 0 auto; padding: 56px var(--gutter); text-align: center; }
.services h2 { font-size: 30px; font-weight: 700; letter-spacing: 1px; color: #070707; margin-bottom: 28px; }
.services-grid { display: grid; gap: 22px; text-align: left; }
@media (min-width: 700px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services-grid { grid-template-columns: repeat(4, 1fr); } .services h2 { font-size: 35px; } }
.service-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; margin-bottom: 14px; }
.service-card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.594px; margin-bottom: 6px; }
.service-card p { font-size: 16px; line-height: 1.75; }
.site-footer { background: #111; color: #ddd; }
.footer-inner { max-width: 1296px; margin: 0 auto; padding: 44px var(--gutter); display: grid; gap: 30px; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 260px 1fr; padding: 60px 72px; } }
.footer-brand img { width: 150px; margin-bottom: 10px; }
.footer-brand p { margin-bottom: 16px; color: #bbb; }
.footer-offices { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.footer-offices h4 { color: #fff; font-size: 16px; margin-bottom: 4px; }
.footer-offices p { font-size: 14px; line-height: 1.6; color: #bbb; }
.footer-note { text-align: center; font-size: 12px; color: #888; padding: 14px var(--gutter) 20px; border-top: 1px solid #222; }

/* ---------- Visualizer editor ---------- */
.ve { position: fixed; inset: 0; z-index: 150; background: #0c1210; color: #fff; display: flex; flex-direction: column; padding-top: var(--safe-t); animation: fade-in .16s ease-out; touch-action: none; }
.ve.is-closing { animation: fade-out .16s ease-in forwards; }
.ve-top { display: flex; align-items: center; gap: 4px; padding: 6px 8px; min-height: 56px; }
.ve-title { flex: 1; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.ve-btn { display: inline-flex; align-items: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 22px; background: none; color: #fff; font-size: 14px; font-weight: 600; justify-content: center; }
.ve-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .1); }
.ve-btn:disabled { opacity: .35; }
.ve-done { min-height: 40px; padding: 8px 22px; border-radius: 22px; border: 0; background: var(--teal); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .5px; margin-left: 4px; }
.ve-main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ve-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #050807; touch-action: none; cursor: grab; }
.ve-stage:active { cursor: grabbing; }
.ve-canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; image-rendering: auto; max-width: none; }
.ve-poly, .ve-dim-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.ve-poly-shadow { fill: none; stroke: rgba(0, 0, 0, .45); stroke-width: 3.5; stroke-linejoin: round; }
.ve-poly-line { stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; transition: fill .2s; }
.ve-poly-line.is-dashed { stroke-dasharray: 6 5; }
.ve-dims { position: absolute; inset: 0; pointer-events: none; }
.ve-dim-lines line { stroke: #fff; stroke-width: 1.5; filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, .8)); }
.ve-dim { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 4px; background: #fff; color: var(--ink); border-radius: 20px; padding: 2px 10px 2px 4px; box-shadow: 0 2px 10px rgba(0, 0, 0, .4); pointer-events: auto; font-size: 13px; font-weight: 600; }
.ve-dim-input { width: 52px; height: 36px; border: 0; background: none; font: inherit; font-size: 16px; font-weight: 700; text-align: center; color: var(--ink); padding: 0; }
.ve-dim-input:focus { outline: none; }
.ve-dim:focus-within { box-shadow: 0 0 0 3px var(--gold), 0 2px 10px rgba(0, 0, 0, .4); }
.ve-pins { position: absolute; inset: 0; pointer-events: none; }
.ve-pins.is-removing .ve-pin.is-dragging { opacity: .45; }
.ve-pin { position: absolute; left: 0; top: 0; width: 34px; height: 61px; pointer-events: auto; touch-action: none; cursor: grab; }
.ve-pin::before { content: ''; position: absolute; inset: -8px -10px 0; } /* bigger hit target */
.ve-pin img { width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); transform-origin: 50% 100%; }
.ve-pin.is-dragging img { transform: scale(1.12); }
.ve-pin.is-dropped img { animation: pin-drop .42s cubic-bezier(.3, 1.6, .5, 1); }
.ve-pin.is-dropped::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 34px; height: 12px; margin-left: -17px; border-radius: 50%; border: 2px solid var(--gold); animation: ripple .5s ease-out forwards; pointer-events: none; }
@keyframes pin-drop { 0% { transform: translateY(-16px) scale(1.1); } 60% { transform: translateY(0) scale(.94, 1.06); } 100% { transform: none; } }
@keyframes ripple { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.ve-hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(92%, 380px); background: rgba(12, 18, 16, .88); border: 1px solid rgba(255, 255, 255, .15); border-radius: 14px; padding: 12px 16px; font-size: 14px; line-height: 1.4; text-align: center; pointer-events: none; display: flex; flex-direction: column; }
.ve-hint strong { font-size: 15px; }
.ve-hint span { color: rgba(255, 255, 255, .75); }
.ve-stage.is-guessing .ve-poly-line { stroke: var(--gold); }

.ve-panel { background: #121b18; border-top: 1px solid rgba(255, 255, 255, .08); padding: 8px 12px calc(8px + var(--safe-b)); display: flex; flex-direction: column; gap: 6px; }
.ve-sliders { display: grid; gap: 0; }
.ve-slider { display: grid; grid-template-columns: 44px 1fr 52px; align-items: center; gap: 8px; min-height: 34px; font-size: 13px; }
.ve-slider-label { font-weight: 700; color: rgba(255, 255, 255, .8); }
.ve-slider output { text-align: right; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .7); font-size: 12.5px; }
.ve-slider input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: none; margin: 0; }
.ve-slider input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .22); }
.ve-slider input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .22); }
.ve-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: #fff; border: 3px solid var(--teal); box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.ve-slider input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--teal); }
.ve-tray { display: flex; align-items: center; gap: 8px; min-height: 60px; background: rgba(255, 255, 255, .05); border-radius: 12px; padding: 4px 10px; }
.ve-tray-pins { display: flex; flex: 1; min-width: 0; }
.ve-tray-pin { width: 30px; height: 52px; margin-right: -4px; touch-action: none; cursor: grab; transition: opacity .15s, transform .15s; flex: none; }
.ve-tray-pin img { width: 100%; height: 100%; pointer-events: none; }
.ve-tray-pin:hover:not(.is-used) { transform: translateY(-3px); }
.ve-tray-pin.is-used { opacity: .15; pointer-events: none; }
.ve-estimate { flex: none; text-align: right; font-size: 13px; line-height: 1.25; }
.ve-est { font-size: 15px; }
.ve-est strong { font-size: 22px; font-weight: 800; color: #fff; }
.ve-est-hint { color: rgba(255, 255, 255, .65); display: block; max-width: 120px; }
.ve-style { display: flex; flex-direction: column; gap: 6px; }
.ve-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.ve-chips::-webkit-scrollbar { display: none; }
.ve-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 3px 12px 3px 3px; border-radius: 20px; border: 2px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06); color: #fff; font-size: 13px; font-weight: 600; }
.ve-chip-swatch { width: 28px; height: 28px; border-radius: 50%; background-size: 300%; background-position: center; filter: sepia(.4); }
.ve-chip[aria-pressed="true"] { border-color: var(--teal); background: rgba(31, 134, 111, .3); }
.ve-color-line { display: flex; align-items: center; gap: 10px; }
.ve-swatches { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 3px; }
.ve-swatches::-webkit-scrollbar { display: none; }
.ve-swatch { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); padding: 0; }
.ve-swatch[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px var(--teal); }
.ve-color-name { font-size: 12.5px; color: rgba(255, 255, 255, .7); white-space: nowrap; font-weight: 600; }
.ve-drag-layer { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
.ve-ghost { position: absolute; left: 0; top: 0; width: 34px; height: 61px; opacity: 0; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .5)); }
.ve-ghost.is-on { opacity: 1; }
.ve-loupe { position: absolute; left: 0; top: 0; width: 116px; height: 116px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .3); opacity: 0; transition: opacity .1s; }
.ve-loupe.is-on { opacity: 1; }
.ve-help { position: absolute; inset: 0; z-index: 10; background: rgba(0, 0, 0, .6); display: flex; align-items: flex-end; justify-content: center; animation: fade-in .15s; }
.ve-help-card { background: #fff; color: var(--ink); width: 100%; max-width: 720px; border-radius: 20px 20px 0 0; padding: 22px 18px calc(18px + var(--safe-b)); max-height: 90vh; overflow: auto; }
.ve-help-card h3 { font-size: 20px; margin-bottom: 14px; }
.ve-help-frames { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 14px; }
.ve-help-frames li { display: grid; grid-template-columns: 120px 1fr; gap: 4px 14px; align-items: center; }
.ve-help-art { grid-row: span 2; width: 120px; height: auto; }
.ve-help-frames p { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.ve-help-card .btn { width: 100%; }
@media (min-width: 700px) {
  .ve-help { align-items: center; }
  .ve-help-card { border-radius: 20px; padding: 26px; }
  .ve-help-frames { grid-template-columns: repeat(3, 1fr); }
  .ve-help-frames li { grid-template-columns: 1fr; }
  .ve-help-art { width: 100%; grid-row: auto; }
}
@media (min-width: 900px) {
  .ve-main { flex-direction: row; }
  .ve-panel { width: 360px; flex: none; border-top: 0; border-left: 1px solid rgba(255, 255, 255, .08); padding: 16px; gap: 14px; overflow-y: auto; }
  .ve-tray { flex-wrap: wrap; }
  .ve-chips { flex-wrap: wrap; overflow: visible; }
  .ve-swatches { flex-wrap: wrap; overflow: visible; }
  .ve-color-line { flex-direction: column; align-items: flex-start; }
}
@media (max-height: 640px) and (max-width: 899px) {
  .ve-slider { min-height: 28px; }
  .ve-tray { min-height: 50px; }
  .ve-tray-pin { height: 44px; width: 26px; }
}

/* ---------- Demo panel ---------- */
.demo-fab { position: fixed; right: 12px; bottom: calc(64px + var(--safe-b)); z-index: 300; min-height: 40px; padding: 6px 14px; border-radius: 20px; border: 0; background: rgba(20, 20, 20, .85); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .5px; }
@media (min-width: 1025px) { .demo-fab { bottom: 16px; } }
.demo-sheet { position: fixed; right: 12px; bottom: calc(112px + var(--safe-b)); z-index: 300; width: min(320px, calc(100vw - 24px)); background: #fff; color: var(--ink); border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .3); padding: 14px; font-size: 14px; display: grid; gap: 12px; }
@media (min-width: 1025px) { .demo-sheet { bottom: 64px; } }
.demo-head { display: flex; justify-content: space-between; align-items: center; }
.demo-x { border: 0; background: none; font-size: 24px; width: 36px; height: 36px; }
.demo-group { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.demo-col { flex-direction: column; align-items: stretch; }
.demo-group label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 12.5px; flex: 1; }
.demo-group .demo-check { flex-direction: row; align-items: center; font-size: 14px; }
.demo-group input[type=number], .demo-group select { min-height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; font: inherit; }
.demo-group button, .demo-btn { min-height: 38px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--soft); font-weight: 600; font-size: 13px; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; }
.demo-danger { color: var(--danger) !important; border-color: #f0c6c3 !important; background: #fff5f4 !important; }
.demo-status { font-size: 12.5px; color: var(--teal-700); min-height: 1em; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .promo-track { animation: none; }
}
html.ve-open .demo-fab, html.ve-open .demo-sheet { display: none; }

/* Compact editor controls on phones so the photo gets the room. */
@media (max-width: 899px) {
  .ve-title { visibility: hidden; }
  .ve-top { min-height: 50px; padding: 3px 6px; }
  .ve-panel { gap: 4px; padding-top: 6px; }
  .ve-slider { min-height: 30px; }
  .ve-slider input[type=range] { height: 30px; }
  .ve-tray { min-height: 52px; }
  .ve-tray-pin { width: 27px; height: 48px; }
  .ve-chip { min-height: 32px; font-size: 12.5px; }
  .ve-chip-swatch { width: 24px; height: 24px; }
  .ve-swatch { width: 32px; height: 32px; }
}

/* Grid children must be allowed to shrink below their content (tables/charts scroll inside). */
.hero-inner > *, .wizard, .wz-card, .wz-modal-body, .rs-grid > *, .pl > *, .cf-grid > * { min-width: 0; }
.ve-tip { font-size: 12.5px; line-height: 1.45; color: rgba(255, 255, 255, .7); background: rgba(205, 144, 44, .14); border: 1px solid rgba(205, 144, 44, .35); border-radius: 10px; padding: 8px 10px; }
@media (max-width: 899px) { .ve-tip { display: none; } }
.ve-nudge { display: none; }
@media (max-width: 899px) {
  .ve-nudge { display: block; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12.5px; font-weight: 600; color: #fff; background: rgba(12, 18, 16, .8); border: 1px solid rgba(205, 144, 44, .5); border-radius: 20px; padding: 5px 12px; pointer-events: none; }
  .ve-nudge[hidden] { display: none; }
}
.wz-restart { display: block; margin: 6px auto 0; color: #fff; }

/* Phone fixes: equal-width pattern swatches, comparison table fits without scrolling. */
.pl-patterns { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pl-pattern span { font-size: 10.5px; letter-spacing: -0.2px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 480px) { .pl-pattern span { font-size: 11.5px; letter-spacing: 0; } }
@media (max-width: 599px) {
  .cmp { min-width: 0; font-size: 13px; }
  .cmp th, .cmp td { padding: 10px 4px; }
  .cmp thead th { font-size: 12px; }
  .cmp tbody th { padding-left: 0; }
}
.wz-fine a[href^="tel:"] { white-space: nowrap; }

/* =================== Larger-screen modal layouts =================== */
.wz-modal .wz-card { max-width: 1040px; }
@media (min-width: 900px) {
  .wz-modal .wz-title { font-size: 32px; }
  .wz-modal .wz-sub { font-size: 16px; }
  .wz-actions-end { justify-content: flex-end; }
  .wz-actions-end > .btn { flex: 0 1 340px; }
}

/* Project type: 3 + 2 grid of big photo tiles */
@media (min-width: 760px) {
  .wz-tiles { grid-template-columns: repeat(6, 1fr); gap: 16px; }
  .wz-tiles .wz-tile { grid-column: span 2; }
  .wz-tiles .wz-tile:nth-child(n + 4) { grid-column: span 3; }
  .wz-tiles .wz-tile img, .wz-tiles .wz-tile:last-child:nth-child(odd) img { aspect-ratio: auto; height: clamp(150px, 24vh, 250px); }
  .wz-tile-label { padding: 14px 18px 16px; font-size: 19px; }
  .wz-tile-label small { font-size: 13.5px; }
  .wz-tile { border-radius: 16px; }
}

/* Photo step */
.ph-drop-hint { display: none; }
.ph-upload.is-drag { background: #cfe9e1; border-style: dashed; }
@media (min-width: 900px) {
  .ph-options { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 16px; align-items: stretch; }
  .ph-upload { grid-template-columns: 1fr; justify-items: center; align-content: center; text-align: center; gap: 12px; padding: 32px 28px; border-style: dashed; border-width: 2px; min-height: 360px; }
  .ph-upload .ph-icon { width: 72px; height: 72px; }
  .ph-upload .ph-icon .icon { width: 32px; height: 32px; }
  .ph-upload .ph-text { align-items: center; }
  .ph-upload .ph-text strong { font-size: 19px; }
  .ph-upload .ph-text small { font-size: 14px; max-width: 26ch; }
  .ph-drop-hint { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 6px; }
  .ph-drop-hint small { color: var(--muted); font-size: 13px; }
  .ph-drop-hint .btn { pointer-events: none; }
  .ph-sample-card { padding: 20px; align-content: start; }
  .ph-sample-card .ph-text strong { font-size: 17px; }
  .ph-samples { gap: 14px; margin-top: 12px; }
  .ph-sample img { aspect-ratio: auto; height: clamp(220px, 34vh, 340px); }
  .ph-sample span { font-size: 14px; padding: 5px 12px; left: 12px; bottom: 12px; }
  .ph-sample:hover { border-color: var(--teal); }
  /* Design already made: big preview, actions alongside */
  .ph-design { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .ph-design .ph-preview { min-height: 320px; }
  .ph-design-side .wz-sub { margin-bottom: 8px; }
  .ph-design-actions { flex-direction: column; }
  .ph-design-actions > .btn { flex: none; width: 100%; }
  .ph-design .ph-options { grid-template-columns: 1fr; }
  .ph-design .ph-upload { min-height: 0; padding: 20px; }
  .ph-design .ph-sample img { height: 140px; }
}
.ph-design .ph-preview canvas { max-height: 70vh; width: 100%; object-fit: contain; }

/* Two-column step layout (form + aside) */
.wz-split { display: grid; gap: 24px; }
.wz-split-main { min-width: 0; }
@media (min-width: 900px) {
  .wz-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .wz-split-main .wz-actions > .btn { flex: 1 1 100%; }
}

/* Sqft aside */
.sq-aside { display: grid; gap: 16px; }
.sq-visual { border-radius: 16px; overflow: hidden; background: var(--soft); }
.sq-visual img, .sq-visual canvas { width: 100%; height: auto; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.sq-meter-wrap { padding: 4px 2px 0; }
.sq-meter { position: relative; height: 10px; border-radius: 10px; background: var(--line-2); margin-top: 34px; }
.sq-meter-typical { position: absolute; top: 0; bottom: 0; background: rgba(31, 134, 111, .28); border-radius: 10px; }
.sq-meter-marker { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--teal); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); transition: left .2s ease; }
.sq-meter-marker span { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12.5px; font-weight: 700; background: var(--ink); color: #fff; padding: 2px 8px; border-radius: 6px; }
.sq-meter-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.sq-meter-note { font-size: 14px; color: var(--ink-2); margin-top: 8px; line-height: 1.45; }
@media (max-width: 899px) { .sq-visual { display: none; } }

/* Timeline: big tiles on larger screens */
@media (min-width: 900px) {
  .chips { gap: 12px; }
  .chips-months { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .chips-budget { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .chips .chip { min-height: 78px; font-size: 18px; border-radius: 16px; }
  .chips .chip small { font-size: 13px; margin-top: 2px; }
  .chips-budget .chip { font-size: 16.5px; }
  .wz-modal .wz-label { font-size: 17px; margin: 28px 0 12px; }
}

/* Contact: summary aside */
.ct-summary { display: none; }
@media (min-width: 900px) {
  .ct-summary { display: block; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
  .ct-summary-img { aspect-ratio: 16 / 10; background: var(--soft); overflow: hidden; }
  .ct-summary-img canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
  .ct-summary-body { padding: 18px 20px 20px; }
  .ct-summary-kicker { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--teal); }
  .ct-summary-title { font-size: 19px; font-weight: 700; margin: 2px 0 10px; }
  .ct-summary dl { margin: 0 0 14px; }
  .ct-summary-row { display: grid; grid-template-columns: 80px 1fr; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
  .ct-summary-row dt { color: var(--muted); }
  .ct-summary-row dd { margin: 0; font-weight: 600; }
  .ct-trust { list-style: none; padding: 14px 0 0; margin: 0; border-top: 1px solid var(--line-2); display: grid; gap: 10px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
  .ct-trust li { display: flex; gap: 10px; align-items: center; }
  .ct-trust img { width: 40px; height: auto; flex: none; }
  .ct-trust-icon { flex: none; width: 40px; height: 32px; display: grid; place-items: center; color: var(--teal); }
  .ct-trust strong { color: var(--ink); }
}

/* Results: design beside estimate + consult; comparison beside 10-year chart */
.rs-top { display: grid; gap: 16px; }
.rs-top .rs-design { margin-bottom: 0; }
.rs-side { display: grid; gap: 16px; align-content: start; }
.rs-lower { display: grid; }
.ba { max-width: calc(68vh * var(--ar, 1)); margin: 0 auto; }
@media (min-width: 1000px) {
  .rs-top { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .rs-top .rs-card { padding: 20px 22px; }
}
@media (min-width: 1100px) {
  .rs-lower { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 12px; }
  .rs-lower .rs-section { margin-top: 24px; }
  .rs-lower .cmp { min-width: 0; }
}
@media (min-width: 760px) {
  .wz-tiles .wz-tile:nth-child(n + 4), .wz-tiles .wz-tile:last-child:nth-child(odd) { grid-column: span 3; }
  .wz-tiles .wz-tile img, .wz-tiles .wz-tile:last-child:nth-child(odd) img { height: clamp(140px, 22vh, 240px); }
}
.wz-modal [tabindex="-1"]:focus { outline: none; }
@media (min-width: 1000px) { .rs-top .rs-price { font-size: clamp(26px, 2.3vw, 34px); white-space: nowrap; } }
.wz-split .sq-input-wrap { max-width: 360px; }
.ph-design { display: grid; gap: 18px; }
@media (max-width: 999px) { .rs-price { font-size: clamp(24px, 7vw, 40px); white-space: nowrap; } }

/* ===== Visualizer v2: bigger stakes, floating tray at the top, rotate controls ===== */
.ve-pin, .ve-ghost { width: 44px; height: 79px; }
.ve-pin::before { inset: -6px -12px 0; }
.ve-pin.is-dropped::after { width: 44px; margin-left: -22px; height: 14px; }

.ve-tray-wrap { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 3; pointer-events: none; max-width: calc(100% - 20px); }
.ve-tray { pointer-events: auto; display: flex; align-items: flex-end; padding: 8px 14px 6px; min-height: 0; border-radius: 20px; background: rgba(12, 18, 16, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: padding .2s; }
.ve-tray.is-attn { animation: tray-attn 1.8s ease-in-out infinite; }
@keyframes tray-attn { 0%, 100% { box-shadow: 0 8px 24px rgba(0, 0, 0, .35), 0 0 0 0 rgba(205, 144, 44, .7); } 50% { box-shadow: 0 8px 24px rgba(0, 0, 0, .35), 0 0 0 8px rgba(205, 144, 44, 0); } }
.ve-tray-pins { display: flex; flex: none; gap: 2px; }
.ve-tray-pin { width: 38px; height: 68px; margin-right: 0; }
.ve-tray-pin img { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); transform-origin: 50% 100%; }
.ve-tray-pin:hover:not(.is-used) { transform: translateY(-5px); }
.ve-tray-pin.is-next img { animation: pin-bob 1.1s ease-in-out infinite; }
@keyframes pin-bob { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-9px); } 60% { transform: translateY(-9px) rotate(-4deg); } }
.ve-tray-pin.is-used { opacity: .12; }
.ve-tray.is-compact { padding: 4px 10px 3px; }
.ve-tray.is-compact .ve-tray-pin { width: 24px; height: 43px; }
.ve-tray.is-compact .ve-tray-pin.is-used { width: 0; opacity: 0; overflow: hidden; }
.ve-hint { position: static; transform: none; width: min(340px, 100%); pointer-events: none; }
.ve-hint-arrow { font-size: 20px; line-height: 1; color: var(--gold); font-weight: 800; animation: pin-bob 1.1s ease-in-out infinite; }
.ve-nudge { top: auto; bottom: 10px; }
@media (max-width: 420px) {
  .ve-tray { padding: 6px 8px 4px; }
  .ve-tray-pin { width: 33px; height: 59px; }
}

/* Rotate dial + tappable edges */
.ve-rotate { position: absolute; left: 0; top: 0; z-index: 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(12, 18, 16, .55); border: 2px solid rgba(255, 255, 255, .85); box-shadow: 0 2px 10px rgba(0, 0, 0, .4); cursor: grab; touch-action: none; transition: background-color .15s; }
.ve-rotate:hover, .ve-rotate.is-active { background: rgba(31, 134, 111, .85); }
.ve-rotate.is-active { cursor: grabbing; }
.ve-rotate-icon { width: 34px; height: 34px; }
.ve-poly .ve-edge-hit { stroke: transparent; stroke-width: 22; stroke-linecap: round; pointer-events: stroke; cursor: pointer; }
.ve-poly .ve-edge-hit:hover { stroke: rgba(205, 144, 44, .28); }
.ve-poly .ve-edge-hit.is-flash { stroke: rgba(205, 144, 44, .6); }

/* Panel status row (estimate + rotate tip) replaces the old bottom tray */
.ve-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.ve-status .ve-estimate { text-align: left; }
.ve-status-hint { font-size: 12px; color: rgba(255, 255, 255, .6); text-align: right; max-width: 190px; line-height: 1.3; }
@media (min-width: 900px) { .ve-status { flex-direction: column; align-items: flex-start; } .ve-status-hint { text-align: left; max-width: none; } }
@media (max-width: 899px) { .ve-nudge, .ve-nudge:not([hidden]) { position: static; transform: none; } }
@media (min-width: 900px) {
  .ve-pin, .ve-ghost { width: 52px; height: 94px; }
  .ve-tray-pin { width: 46px; height: 83px; }
  .ve-tray.is-compact .ve-tray-pin { width: 28px; height: 50px; }
  .ve-pin.is-dropped::after { width: 52px; margin-left: -26px; }
}
.ve-slider { grid-template-columns: 58px 1fr 48px; }

/* Tray is positioned over the photo by JS (placeTray); never let it overflow. */
.ve-tray-wrap { top: 10px; max-width: calc(100% - 12px); }
.ve-tray { max-width: 100%; }
.ve-tray-pins { min-width: 0; flex-wrap: nowrap; }
.ve-tray-pin { flex: 0 1 auto; min-width: 22px; }
.ve-tray-pin img { object-fit: contain; }
.ve-panel { overflow-x: hidden; }
.ve-stage { overflow: hidden; }

/* Slider labels size to the longest one ("Transparency") so all rows line up. */
.ve-sliders { display: grid; grid-template-columns: max-content minmax(0, 1fr) 46px; column-gap: 10px; align-items: center; }
.ve-slider { display: contents; }

/* ===== Style match card (editor panel) ===== */
.ve-match { border-radius: 14px; padding: 12px 14px; background: linear-gradient(135deg, rgba(205, 144, 44, .16), rgba(31, 134, 111, .14)); border: 1px solid rgba(205, 144, 44, .4); display: grid; gap: 8px; animation: fade-in .25s ease-out; }
.ve-match-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ve-match-badge { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #f0c36f; }
.ve-match-sub { font-size: 11.5px; color: rgba(255, 255, 255, .6); }
.ve-match-loading { font-size: 13px; color: rgba(255, 255, 255, .8); background: linear-gradient(90deg, rgba(255,255,255,.55), #fff, rgba(255,255,255,.55)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.ve-match-colors { display: flex; flex-wrap: wrap; gap: 6px; }
.ve-match-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 4px; border-radius: 14px; background: rgba(0, 0, 0, .28); font-size: 12px; font-weight: 600; color: #fff; text-transform: capitalize; }
.ve-match-chip i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .7); }
.ve-match-chip small { color: rgba(255, 255, 255, .55); font-weight: 500; }
.ve-match-text { font-size: 14.5px; line-height: 1.4; font-weight: 600; color: #fff; }
.ve-match-reason { font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, .7); }
.ve-match-short { display: none; }
.ve-match-try { justify-self: start; min-height: 38px; padding: 7px 16px; border-radius: 20px; border: 0; background: var(--gold); color: #1a1206; font-weight: 700; font-size: 13.5px; }
.ve-match-try:disabled { background: rgba(255, 255, 255, .14); color: #fff; opacity: 1; cursor: default; }
/* Phones: one compact row */
@media (max-width: 899px) {
  .ve-match { grid-template-columns: 1fr auto; align-items: center; padding: 6px 8px 6px 12px; gap: 4px 10px; }
  .ve-match-head, .ve-match-colors, .ve-match-text, .ve-match-reason { display: none; }
  .ve-match-short { display: flex; align-items: center; gap: 8px; font-size: 12.5px; line-height: 1.3; font-weight: 600; color: #fff; }
  .ve-match-short::before { content: '\2726'; color: #f0c36f; }
  .ve-match-short i { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .7); }
  .ve-match-try { min-height: 34px; padding: 5px 12px; font-size: 12.5px; }
  .ve-match:has(.ve-match-loading) { display: none; }
}

/* Style match: the Try button is a big swatch of the suggested look */
.ve-match-try {
  display: flex; align-items: center; justify-content: flex-start; width: 100%; min-height: 84px; padding: 12px;
  border: 3px solid #fff; border-radius: 14px;
  box-shadow: 0 0 0 4px #000, 0 4px 14px rgba(0, 0, 0, .35);
  background-size: cover; background-position: center; color: #111; text-align: left; cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.ve-match-try:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 0 0 4px #000, 0 8px 22px rgba(0, 0, 0, .45); }
.ve-match-try:disabled { cursor: default; background-blend-mode: normal; }
.ve-match-try-label { display: inline-flex; flex-direction: column; gap: 1px; background: #fff; color: #111; border: 2px solid #000; border-radius: 10px; padding: 6px 12px; line-height: 1.2; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.ve-match-try-label strong { font-size: 15px; font-weight: 800; }
.ve-match-try-label small { font-size: 12px; font-weight: 600; color: #333; }
.ve-match-try:disabled .ve-match-try-label strong { color: var(--teal-700); }
@media (max-width: 899px) {
  .ve-match { grid-template-columns: 1fr 132px; }
  .ve-match-try { min-height: 56px; padding: 6px; justify-content: center; border-radius: 12px; box-shadow: 0 0 0 3px #000, 0 3px 10px rgba(0, 0, 0, .35); }
  .ve-match-try-label { padding: 4px 9px; }
  .ve-match-try-label strong { font-size: 12.5px; }
  .ve-match-try-label small { display: none; }
}

/* Numbered stakes (inline SVG) */
.ve-stake { width: 100%; height: 100%; display: block; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); transform-origin: 50% 100%; overflow: visible; }
.ve-pin.is-dragging .ve-stake { transform: scale(1.12); }
.ve-pin.is-dropped .ve-stake { animation: pin-drop .42s cubic-bezier(.3, 1.6, .5, 1); }
.ve-tray-pin.is-next .ve-stake { filter: drop-shadow(0 0 4px rgba(205, 144, 44, .9)) drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.ve-tray-pin.is-bob .ve-stake { animation: pin-bob 1.1s ease-in-out infinite; }
.ve-tray-pin.is-next img { animation: none; }
.ve-ghost .ve-stake { filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .5)); }

/* Placed stakes above the tray; tray fades while placing; explicit remove zone while moving */
.ve-pins { z-index: 4; }
.ve-tray-wrap { transition: opacity .15s; }
.ve-stage.is-placing .ve-tray-wrap, .ve-stage.is-moving .ve-tray-wrap { opacity: .25; }
.ve-trash { position: absolute; left: 50%; bottom: 14px; z-index: 5; transform: translate(-50%, 20px); display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 26px; background: rgba(12, 18, 16, .8); border: 2px dashed rgba(255, 255, 255, .6); color: #fff; font-size: 14px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s, background-color .15s; }
.ve-stage.is-moving .ve-trash { opacity: 1; transform: translate(-50%, 0); }
.ve-trash.is-hot { background: #b3261e; border-color: #fff; }
.ve-trash .icon { width: 18px; height: 18px; }
.ve-pins { z-index: 2; }
.ve-tray.is-over-pin { background: rgba(12, 18, 16, .35); }
.ve-tray.is-over-pin:not(:hover) { opacity: .6; }

/* Editor panel tabs (phones only) */
.ve-tabs { display: none; }
.ve-group-adjust, .ve-group-style { display: flex; flex-direction: column; gap: inherit; }
@media (max-width: 899px) {
  .ve-tabs { display: flex; align-items: center; gap: 4px; margin: -2px 0 2px; }
  .ve-tab { position: relative; min-height: 36px; padding: 6px 16px; border-radius: 18px; border: 0; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .75); font-size: 13.5px; font-weight: 700; }
  .ve-tab[aria-selected="true"] { background: #fff; color: var(--ink); }
  .ve-tab.has-news::after { content: '\2726'; position: absolute; top: -4px; right: -2px; font-size: 13px; color: #f0c36f; animation: pin-bob 1.1s ease-in-out infinite; }
  .ve-tab-est { margin-left: auto; font-size: 15px; font-weight: 800; color: #fff; }
  .ve-panel[data-tab="adjust"] .ve-group-style { display: none; }
  .ve-panel[data-tab="style"] .ve-group-adjust { display: none; }
  .ve-group-adjust .ve-estimate { display: none; }
  .ve-group-adjust .ve-status { min-height: 0; justify-content: center; }
  .ve-group-adjust .ve-status-hint { max-width: none; text-align: center; }
  .ve-group-style .ve-chips, .ve-group-style .ve-swatches { padding-bottom: 2px; }
}
