/* Design Your Setup page · styles (moved out of design.html) */
/* ── Tokens (match index.html) ───────────────────────────────────────── */
:root {
  --bg:       #0a0908;
  --surface:  #1e1a17;
  --surface-2:#15120f;
  --gold:     #b8894a;
  --gold-lt:  #d4a96a;
  --text:     #f2ede4;
  --muted:    #8a837c;
  --line:     rgba(184, 137, 74, 0.22);
  --radius:   4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
}
a, button { cursor: pointer; }
.btn:disabled { cursor: default; }

/* ── Header ──────────────────────────────────────────────────────────── */
header {
  position: relative;
  padding: 28px 16px 20px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.back-btn {
  position: absolute;
  top: 24px; left: 24px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--gold-lt) !important;
  font-size: 12px; letter-spacing: .08em !important; text-transform: none !important;
  transition: border-color .2s, background .2s;
}
.back-btn:hover { border-color: var(--gold); background: rgba(184, 137, 74, .08); }
.account-chip {
  position: absolute; top: 24px; right: 24px;
  display: flex; align-items: center; gap: 8px; font-size: 13px;
}
.account-chip[hidden] { display: none; }
.account-chip img { width: 28px; height: 28px; border-radius: 50%; }
.account-chip button {
  background: none; border: 1px solid var(--line); color: var(--muted); border-radius: var(--radius);
  padding: 5px 10px; font: inherit; font-size: 12px; cursor: pointer;
}
.account-chip button:hover, .account-chip a:hover { color: var(--text); border-color: var(--gold); }
.account-chip a { border: 1px solid var(--line); color: var(--gold-lt); border-radius: var(--radius);
  padding: 5px 10px; font-size: 12px; text-decoration: none; white-space: nowrap; }
@media (max-width: 600px) { .account-chip { top: 16px; right: 16px; } .account-chip span { display: none; } }
.signin-box {
  text-align: center; padding: 18px 16px; margin-top: 10px;
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(184, 137, 74, .05);
}
.signin-box strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 500; color: var(--gold-lt); }
.signin-box p { font-size: 13px; color: var(--muted); margin: 6px 0 12px; line-height: 1.5; }
.signin-box .google-btn { display: flex; justify-content: center; min-height: 44px; }
.signin-box .ea { max-width: 320px; margin: 14px auto 0; }
.signin-box .policy-note { font-size: 11.5px; margin: 10px 0 0; order: 9; }
.signin-box .policy-note a { color: var(--gold-lt); }
@media (max-width: 600px) {
  header { padding-top: 64px; }
  .back-btn { top: 16px; left: 16px; }
}
header a { color: var(--gold); text-decoration: none; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(30px, 5vw, 44px);
  margin-top: 8px;
}
h1 em { color: var(--gold-lt); }
header p { color: var(--muted); font-size: 14px; margin-top: 4px; }
header .mockup-count {
  display: inline-block; margin-top: 12px; padding: 5px 14px; font-size: 12.5px; color: var(--gold-lt);
  border: 1px solid var(--line); border-radius: 20px; background: rgba(184, 137, 74, .06);
}
header .mockup-count[hidden] { display: none; }

/* ── Layout ──────────────────────────────────────────────────────────── */
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}
@media (max-width: 860px) { main { grid-template-columns: 1fr; } }

/* ── Ready-made designs ─────────────────────────────────────────────── */
.showcase { max-width: 1200px; margin: 0 auto; padding: 24px 16px 0; }
.showcase[hidden] { display: none; }
.showcase-head h2 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 26px; }
.showcase-head h2 em { color: var(--gold-lt); }
.showcase-head p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.showcase-head a { color: var(--gold-lt); }
.showcase-row {
  display: flex; gap: 14px; overflow-x: auto; padding: 14px 0 6px;
  scroll-snap-type: x mandatory;
}
.showcase-card {
  flex: 0 0 220px; scroll-snap-align: start;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.showcase-card .thumb {
  aspect-ratio: 1 / 1; background: var(--surface) center / cover no-repeat;
}
.showcase-card .title { font-size: 13px; padding: 10px 12px 0; line-height: 1.35; flex: 1; }
.showcase-card .btn { margin: 10px 12px 12px; padding: 8px 12px; font-size: 13px; }
@media (max-width: 600px) { .showcase-card { flex-basis: 70%; } }

.panel {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.panel h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 24px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

/* ── Chat ────────────────────────────────────────────────────────────── */
.left-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

/* ── Builder ─────────────────────────────────────────────────────────── */
#builder .body { padding: 20px; display: flex; flex-direction: column; gap: 26px; }
.step-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-bottom: 8px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.step-title h3 { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 500; color: var(--text); }
.step-title h3 em { color: var(--gold-lt); }
.step-title span { font-size: 12px; color: var(--gold-lt); white-space: nowrap; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  background: transparent; color: var(--text); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px 12px; font: inherit; font-size: 13px;
}
.opt small { color: var(--muted); margin-left: 4px; }
.opt:hover { border-color: var(--gold); }
.opt.on { background: var(--gold); border-color: var(--gold); color: #1a140d; }
.opt.on small { color: #3a2c18; }
.sub { margin-top: 12px; }
.sub-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.field {
  width: 100%; background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 9px 10px; font: inherit; font-size: 14px;
}
.field:focus { outline: none; border-color: var(--gold); }
select.field { color-scheme: dark; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn {
  background: transparent; color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 12px;
}
.chip-btn.on { background: var(--gold); border-color: var(--gold); color: #1a140d; }
.chip-btn:disabled { opacity: .35; cursor: default; }
.addon { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.addon-name { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.color-picker { display: flex; flex-direction: column; gap: 10px; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); flex: none; }
.chip-btn .swatch { width: 12px; height: 12px; }
.other-btn { border-style: dashed; color: var(--gold-lt); }
.color-other { display: none; gap: 8px; max-width: 360px; }
.color-other.open { display: flex; }
.color-other .btn { padding: 8px 16px; }
.swatch.rainbow { background: conic-gradient(#f2c4c4, #b9a3e3, #9cc8ef, #a7b89a, #f5d33b, #f2c4c4); }
.color-mix { display: flex; flex-direction: column; gap: 6px; }
.mix-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mix-name { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.mix-name .swatch { width: 14px; height: 14px; }
.mix-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: none; }
.mix-seg button {
  background: none; border: none; color: var(--muted); font: inherit; font-size: 12px; padding: 5px 12px; cursor: pointer;
}
.mix-seg button + button { border-left: 1px solid var(--line); }
.mix-seg button.on { background: var(--gold); color: #1a140d; }
.length-control { display: flex; align-items: center; gap: 6px; }
.len-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent;
  color: var(--gold-lt); font-size: 20px; line-height: 1; cursor: pointer; transition: border-color .2s, background .2s;
}
.len-btn:hover { border-color: var(--gold); background: rgba(184, 137, 74, .08); }
.len-input {
  width: 64px; height: 40px; text-align: center; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-size: 18px; -moz-appearance: textfield;
}
.len-input::-webkit-outer-spin-button, .len-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.len-input:focus { outline: none; border-color: var(--gold); }
.len-unit { color: var(--muted); font-size: 14px; margin-right: 4px; }
.len-price { color: var(--muted); font-size: 12px; margin-left: 8px; }
.notes-box { min-height: 120px; resize: vertical; line-height: 1.5; }
.required { color: var(--gold-lt); font-size: 11px; letter-spacing: .04em; }
.zip-row .field { max-width: 160px; font-size: 16px; letter-spacing: .1em; }
.zip-result { font-size: 13px; color: var(--muted); margin-top: 8px; }
.zip-result.ok { color: #9fd3a6; }
.zip-result.extra { color: var(--gold-lt); }
.addon .addon-opts { grid-column: 1 / -1; margin-left: 26px; }
.addon.on .addon-color { display: block; }
.addon-qty { grid-column: 1 / -1; margin-left: 26px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.addon .addon-qty .field { display: block; width: 70px; margin: 0; }
.addon:last-child { border-bottom: none; }
.addon input[type=checkbox] { accent-color: var(--gold); width: 16px; height: 16px; }
.addon .price { color: var(--muted); font-size: 13px; }
.addon .field { grid-column: 1 / -1; margin-left: 26px; width: calc(100% - 26px); display: none; padding: 7px 10px; font-size: 13px; }
.addon.on .field { display: block; }
.total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--gold); padding-top: 14px;
}
.total span { font-size: 13px; color: var(--muted); }
.total strong { font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 500; color: var(--gold-lt); }
.breakdown { font-size: 12px; color: var(--muted); margin-top: 6px; }
.breakdown div { display: flex; justify-content: space-between; }
/* Wizard */
.stepper { list-style: none; display: flex; gap: 4px; margin: -4px 0 2px; overflow-x: auto; scrollbar-width: none; }
.stepper::-webkit-scrollbar { display: none; }
.stepper li { flex: 1; min-width: 64px; position: relative; }
.stepper li:not(:last-child)::after {
  content: ''; position: absolute; top: 15px; left: calc(50% + 17px); right: calc(-50% + 17px);
  height: 1px; background: var(--line);
}
.stepper li.done:not(:last-child)::after { background: var(--gold); }
.stepper button {
  width: 100%; background: none; border: none; color: var(--muted); font: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0;
}
.stepper .dot {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); font-size: 12px; background: var(--surface-2); position: relative; z-index: 1;
}
.stepper .name { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.stepper li.on .dot { background: var(--gold); border-color: var(--gold); color: #1a140d; font-weight: 600; }
.stepper li.on .name { color: var(--gold-lt); }
.stepper li.done .dot { border-color: var(--gold); color: var(--gold-lt); }
.stepper li.done .name { color: var(--text); }
.step-stage { min-height: 260px; animation: stepIn 0.35s ease both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

.wizard-foot {
  position: sticky; bottom: 0; z-index: 2; margin: 0 -20px -20px; padding: 14px 20px 18px;
  background: linear-gradient(rgba(21, 18, 15, 0.85), var(--surface-2) 30%);
  border-top: 1px solid var(--line); backdrop-filter: blur(6px);
}
.wizard-foot .total { border-top: none; padding-top: 0; }
.wizard-nav { display: flex; gap: 10px; margin-top: 12px; }
.wizard-nav .btn { flex: 1; padding: 12px; font-size: 14px; }
.wizard-nav .ghost { flex: 0 0 auto; }
.wizard-nav .ghost:disabled { opacity: .35; }
.price-details summary { cursor: pointer; font-size: 12px; color: var(--muted); margin-top: 4px; list-style: none; }
.price-details summary::before { content: '▸ '; }
.price-details[open] summary::before { content: '▾ '; }
.price-details .breakdown { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .step-stage { animation: none; } }
@media (max-width: 600px) {
  .stepper li { min-width: 0; }
  .stepper .name { display: none; }
  .stepper .name, .stepper li.on .name { display: none; }   /* the step's title is just below */
}
#buildBtn { width: 100%; padding: 13px; font-size: 14px; }
.backdrop-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-top: 12px; }
.backdrop-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; color: var(--gold-lt); }
.backdrop-head .remove { background: none; border: none; color: var(--muted); font: inherit; font-size: 12px; text-decoration: underline; }
.backdrop-head .remove:hover { color: var(--text); }
.add-backdrop { margin-top: 12px; width: 100%; padding: 10px; }
.build-error { color: #f3c7bf; font-size: 13px; margin-top: 8px; }
.quote { background: var(--surface); border-radius: var(--radius); padding: 14px; font-size: 13px; }
.quote .breakdown { font-size: 13px; }
.quote .total { margin-top: 10px; padding-top: 10px; }
.quote .total strong { font-size: 24px; }


textarea:focus { outline: none; border-color: var(--gold); }

.btn {
  background: var(--gold); color: #1a140d; border: none; border-radius: var(--radius);
  padding: 10px 18px; font: inherit; font-weight: 500; font-size: 13px; letter-spacing: .05em;
  white-space: nowrap;
}
.btn:hover { background: var(--gold-lt); }
.btn:disabled { opacity: .5; }
.btn.ghost { background: transparent; color: var(--gold-lt); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--gold); }

/* ── Review ──────────────────────────────────────────────────────────── */
#review .body { padding: 20px; display: flex; flex-direction: column; gap: 22px; }
/* Desktop: the review panel stays in view while the client scrolls the long builder */
@media (min-width: 861px) {
  #review { position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); }
  #review .body { overflow-y: auto; }
}
.empty { color: var(--muted); font-size: 14px; text-align: center; padding: 60px 20px; }
.label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.change { font-size: 13px; color: var(--muted); font-style: italic; }
ul.summary { list-style: none; display: flex; flex-direction: column; gap: 6px; }
ul.summary li { font-size: 14px; padding-left: 18px; position: relative; }
ul.summary li::before { content: "✦"; color: var(--gold); position: absolute; left: 0; font-size: 10px; top: 5px; }
.palette { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.questions { background: rgba(184, 137, 74, .08); border-left: 2px solid var(--gold); padding: 12px 14px; font-size: 14px; }
.questions li { margin-left: 18px; }
textarea#prompt {
  width: 100%; min-height: 220px; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; font: inherit;
  font-size: 13px; line-height: 1.55; resize: vertical;
}
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.error-text { color: #f3c7bf; }

/* Loading state over the review panel while a design or mockup is being made */
#review { position: relative; }
#review.is-loading { min-height: 560px; }
.loading-overlay {
  position: absolute; left: 0; right: 0; top: 57px; bottom: 0; z-index: 5;
  background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius);
  display: flex; align-items: flex-start; justify-content: center; padding: 48px 24px;
}
.loading-card { width: 100%; max-width: 420px; text-align: center; }
.loading-card h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 26px; }
.loading-step { color: var(--gold-lt); font-size: 14px; margin-top: 6px; min-height: 1.4em; }
.loading-meta { color: var(--muted); font-size: 12px; margin-top: 10px; }

/* Magic wand loader: twirling wand, orbiting sparkles, words circling on a ring */
.magic { position: relative; width: 240px; height: 240px; margin: 0 auto 10px; }
.magic-ring { position: absolute; inset: 0; animation: spin 26s linear infinite; }
.magic-ring text { fill: var(--gold-lt); font-family: 'Inter', sans-serif; font-size: 12.5px; letter-spacing: 1.5px; transition: opacity 0.4s; }
.magic-glow {
  position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 210, 150, 0.35), rgba(184, 137, 74, 0.08) 55%, transparent 70%);
  animation: breathe 2.4s ease-in-out infinite;
}
.magic-wand { position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; margin: -55px 0 0 -55px;
  animation: twirl 2.6s cubic-bezier(.45,.05,.55,.95) infinite; filter: drop-shadow(0 0 8px rgba(240, 210, 150, 0.7)); }
.spark { position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  animation: orbit var(--dur) linear infinite; animation-delay: var(--delay); }
.spark::before {
  content: '✦'; position: absolute; left: var(--r); top: -8px; font-size: var(--size); color: #f3dca8;
  text-shadow: 0 0 6px rgba(243, 220, 168, 0.9); animation: twinkle 1.4s ease-in-out infinite; animation-delay: var(--delay);
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes twirl { 0% { transform: rotate(-20deg); } 50% { transform: rotate(340deg); } 100% { transform: rotate(340deg); } }
@keyframes twinkle { 0%, 100% { opacity: 0.25; transform: scale(0.6); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes breathe { 0%, 100% { transform: scale(0.85); opacity: 0.7; } 50% { transform: scale(1.15); opacity: 1; } }

/* Mockup reveal: picture emerges from a dreamy glow with a burst of golden sparkles */
.mockup-reveal { position: relative; overflow: hidden; border-radius: var(--radius); }
.mockup-reveal .mockup-img { animation: emerge 1.6s cubic-bezier(.2,.7,.2,1) both; }
.mockup-reveal::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 240, 205, 0.55) 50%, transparent 70%);
  background-size: 250% 100%; animation: sweep 1.8s ease-out 0.5s both;
}
.burst { position: absolute; left: 50%; top: 50%; pointer-events: none; }
.burst span {
  position: absolute; left: 0; top: 0; color: #f0c66e; font-size: var(--size);
  text-shadow: 0 0 2px #8a6328, 0 0 10px rgba(240, 198, 110, 0.95), 0 0 18px rgba(255, 236, 190, 0.8); animation: fly 1.5s cubic-bezier(.15,.6,.3,1) var(--delay) both;
}
@keyframes emerge {
  from { opacity: 0; filter: blur(16px) brightness(1.8) saturate(0.5); transform: scale(1.05); }
  60% { opacity: 1; filter: blur(3px) brightness(1.25) saturate(0.9); }
  to { opacity: 1; filter: none; transform: scale(1); }
}
@keyframes sweep { from { background-position: 120% 0; opacity: 1; } to { background-position: -20% 0; opacity: 0; } }
@keyframes fly {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.3) rotate(0deg); }
  20% { opacity: 1; }
  to { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1) rotate(180deg); }
}
@media (prefers-reduced-motion: reduce) {
  .magic-ring, .magic-wand, .spark, .spark::before, .magic-glow,
  .mockup-reveal .mockup-img, .mockup-reveal::after, .burst span { animation: none; }
  .burst { display: none; }
}
.mockup-box { display: flex; flex-direction: column; gap: 8px; }
.mockup-box .btn { width: 100%; padding: 12px; font-size: 14px; }
.mockup-box .change-design { color: var(--gold-lt); }
.mockup-img {
  width: 100%; aspect-ratio: 3 / 2; border-radius: var(--radius); border: 1px solid var(--line);
  background: center / contain no-repeat; user-select: none; -webkit-user-select: none;
  -webkit-touch-callout: none;   /* no "Save image" on long-press (iPhone) */
}

/* ── Send to Evantis ─────────────────────────────────────────────────── */
.changed-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border: 1px solid var(--gold); border-radius: var(--radius); background: rgba(184, 137, 74, .10);
  padding: 10px 12px; font-size: 13px; color: var(--gold-lt);
}
.changed-banner[hidden] { display: none; }
.wizard-foot .changed-banner { padding: 8px 12px; }
.ai-notice {
  margin-top: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.5; color: var(--muted);
  border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius);
}
.ai-notice strong { color: var(--gold-lt); font-weight: 500; }
.ai-notice a { color: var(--gold-lt); white-space: nowrap; }
/* ── Mode tabs and Design Board ────────────────────────────────────── */
/* ── The two ways to design ─────────────────────────────────────────────
   Before choosing: two large photo cards, text resting on a soft dark fade, fine gold hairlines.
   After choosing: a slim row above the tool; the chosen one is outlined in gold. */
.mode-tabs { max-width: 1200px; margin: 24px auto 0; padding: 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mode-tab { position: relative; display: grid; grid-template-columns: 132px 1fr; text-align: left; padding: 0; overflow: hidden;
  cursor: pointer; font: inherit; color: var(--text); background: var(--surface-2);
  border: 1px solid rgba(212,169,106,.22); border-radius: 3px; opacity: .7;
  transition: border-color .4s, opacity .4s, box-shadow .4s; }
.mode-tab:hover { opacity: 1; border-color: rgba(212,169,106,.6); }
.mode-tab.on { opacity: 1; border-color: var(--gold); box-shadow: inset 0 0 0 1px rgba(212,169,106,.35); }
.mc-pic { display: block; background: #efe8de center / cover no-repeat; transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.mc-text { display: grid; align-content: center; gap: 4px; padding: 14px 18px; }
.mc-tag { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-lt); }
.mc-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 500; line-height: 1.15; letter-spacing: .01em; }
.mc-title em { color: var(--gold-lt); }
.mc-desc { display: none; }
.mc-go { display: none; }
.new-pill { font-size: 9px; letter-spacing: .14em; border: 1px solid rgba(212,169,106,.6); color: var(--gold-lt); background: none;
  border-radius: 2px; padding: 1px 5px; margin-left: 6px; vertical-align: 1px; }

/* Before a choice */
.mode-ask { display: none; }
body.choose-mode .mode-ask { display: grid; gap: 6px; max-width: 1200px; margin: 34px auto 4px; padding: 0 16px; text-align: center;
  font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 400; color: var(--text); }
body.choose-mode .mode-ask span { font-family: 'Inter', sans-serif; font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
body.choose-mode .mode-tabs { max-width: 1040px; gap: 24px; margin-top: 22px; margin-bottom: 64px; }
body.choose-mode .mode-tab { display: block; aspect-ratio: 5 / 4; opacity: 1; border-color: rgba(212,169,106,.35); background: #0f0d0b; }
body.choose-mode .mc-pic { position: absolute; inset: 0; }
body.choose-mode .mode-tab::after {   /* the soft dark fade the text sits on */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(10,9,8,.94) 0%, rgba(10,9,8,.72) 32%, rgba(10,9,8,.08) 62%, transparent 75%); }
body.choose-mode .mc-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 28px 30px 30px; gap: 8px; }
body.choose-mode .mc-title { font-size: 36px; }
body.choose-mode .mc-desc { display: block; font-size: 13.5px; line-height: 1.6; color: rgba(242,237,228,.78); max-width: 420px; }
body.choose-mode .mc-go { display: inline-flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 11px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--gold-lt); }
body.choose-mode .mc-go::after { content: ''; height: 1px; width: 34px; background: var(--gold); transition: width .5s cubic-bezier(.2,.7,.2,1); }
body.choose-mode .mode-tab:hover { border-color: var(--gold); }
body.choose-mode .mode-tab:hover .mc-pic { transform: scale(1.05); }
body.choose-mode .mode-tab:hover .mc-go::after { width: 64px; }

@media (max-width: 760px) {
  .mode-tabs { gap: 10px; }
  .mode-tab { grid-template-columns: 1fr; }
  .mc-pic { min-height: 74px; }
  .mc-text { padding: 9px 11px; }
  .mc-title { font-size: 17px; }
  .mc-tag { font-size: 9.5px; letter-spacing: .16em; }
  /* before a choice: stacked, full width */
  body.choose-mode .mode-ask { font-size: 24px; margin-top: 24px; }
  body.choose-mode .mode-tabs { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
  body.choose-mode .mode-tab { aspect-ratio: 4 / 3; }
  /* phones: a deeper fade, so the title never fights with lettering in the photo */
  body.choose-mode .mode-tab::after { background: linear-gradient(to top, rgba(10,9,8,.97) 0%, rgba(10,9,8,.9) 38%, rgba(10,9,8,.55) 58%, rgba(10,9,8,.1) 78%, transparent 88%); }
  body.choose-mode .mc-text { padding: 20px 20px 22px; }
  body.choose-mode .mc-title { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .mc-pic, .mc-go::after { transition: none; } }
.mode-tabs { scroll-margin-top: 12px; }
/* The showcase and the admin box belong to Design with AI */
body.board-mode #showcase, body.choose-mode #showcase,
body.board-mode #adminMaker, body.choose-mode #adminMaker { display: none !important; }
@media (max-width: 760px) {
  .mode-tabs { gap: 10px; }
  .mode-tab { grid-template-columns: 1fr; }
  .mc-pic { min-height: 92px; }
  .mc-text { padding: 10px 12px; gap: 3px; }
  .mc-title { font-size: 18px; }
  .mc-desc { display: none; }
  .mode-tab.on .mc-go::before { content: '✓ '; }
}
main[hidden], .board-view[hidden] { display: none; }
.board-view { max-width: 1400px; margin: 0 auto; padding: 16px 16px 48px; }
.bd-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.bd-lead { flex: 1; min-width: 240px; color: var(--muted); font-size: 13.5px; }
/* Pieces on the left, design on the right, down to tablet size; the left column narrows */
.bd-grid { display: grid; grid-template-columns: clamp(210px, 26vw, 300px) minmax(0, 1fr); gap: 16px; align-items: start; }
.bd-grid > *, .bd-side, .bd-right { min-width: 0; }   /* never wider than the screen */
.board-view { overflow-x: clip; }   /* clip (not hidden) so the design can stay pinned while the page scrolls */
.bd-right { position: sticky; top: 12px; display: grid; gap: 12px; }
.bd-right .bd-price { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.bd-right .bd-price ul { columns: 2; column-gap: 28px; }
.bd-right .bd-price li { break-inside: avoid; }
.bd-tag { font-style: normal; color: var(--gold-lt); font-size: 0.9em; }
@media (max-width: 1000px) { .bd-right .bd-price ul { columns: 1; } }

/* Smooth taps on phones: no double-tap zoom delay, no grey flash, a little press feedback */
* { -webkit-tap-highlight-color: transparent; }
a, button, input, select, textarea, label, [role="button"] { touch-action: manipulation; }
button:active, .btn:active, a.btn:active { transform: scale(0.97); }
.bd-mbar, .bd-sheet-head, .lbl-short { display: none; }
.device-tip { display: flex; align-items: flex-start; gap: 10px; margin: 14px 16px 0; padding: 10px 12px;
  background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius);
  font-size: 13px; line-height: 1.45; color: var(--text); }
.device-tip[hidden] { display: none; }
.device-tip span { flex: 1; }
.device-tip button { background: none; border: none; color: var(--muted); font-size: 15px; padding: 0 2px; cursor: pointer; }
/* ── Phones: the board is a full-screen editor that never scrolls.
   Top: toolbar. Then the design (always visible), the total, and a panel area that
   scrolls on its own (Backdrops / Balloons / Extras / Edit). Bottom: the bar. ── */
.bd-exit { display: none !important; }
@media (max-width: 700px) {
  body.board-mode { overflow: hidden; }
  body.board-mode .board-view {
    position: fixed; inset: 0; z-index: 50; background: var(--bg);
    display: flex; flex-direction: column; gap: 8px; margin: 0;
    padding: calc(8px + env(safe-area-inset-top)) 10px calc(72px + env(safe-area-inset-bottom));
    height: 100dvh; overflow: hidden;
  }
  body.board-mode .bd-exit { display: grid !important; }
  .bd-top { flex: none; gap: 6px; flex-wrap: nowrap; margin: 0; }
  .bd-top .bd-lead { display: none; }
  .bd-top .btn { padding: 0; min-width: 38px; height: 38px; font-size: 16px; display: grid; place-items: center; }
  .bd-top .btn .lbl { display: none; }
  .bd-top .btn.bd-send { padding: 0 14px; font-size: 13.5px; margin-left: auto; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
  .bd-top .btn.bd-send .lbl-short { display: inline; }
  .bd-top .btn.bd-star { display: none; }
  .bd-grid { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; }
  .bd-right { order: -1; position: static; flex: none; gap: 8px; }
  /* Fingers on the design move pieces; they never scroll the page */
  .bd-stage, .bd-stage canvas { touch-action: none; }
  /* The panel area: fills the rest and scrolls inside itself */
  .bd-side {
    flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px 12px;
  }
  .bd-side, .bd-side > div, .bd-side .bd-props { min-width: 0; max-width: 100%; }
  body.board-mode .bd-side { display: block; }
  body.board-mode .bd-side > div { border: none; background: none; padding: 0; border-radius: 0; }
  body.board-mode .bd-side .bd-sheet-head { padding: 10px 0 6px; }
  .bd-sheet-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1;
    background: var(--surface-2); padding: 10px 0 6px; }
  .bd-sheet-title { font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 500; color: var(--gold-lt); }
  .bd-sheet-close { display: none; }
  /* Colors in one swipeable row, so settings stay short */
  .bd-side .bd-colors { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; max-width: 100%; }
  .bd-side .bd-colors::-webkit-scrollbar { display: none; }
  .bd-side .bd-swatch { flex: 0 0 auto; }
  .bd-side .bd-actions { flex-wrap: wrap; }
  .bd-side .bd-actions .btn { padding: 7px 10px; font-size: 12.5px; }
  /* One section at a time */
  .bd-side:not([data-show="edit"]) .bd-props { display: none; }
  .bd-side[data-show="edit"] .bd-palette { display: none; }
  .bd-side[data-show="backdrops"] .bd-section:not([data-section="backdrops"]),
  .bd-side[data-show="balloons"] .bd-section:not([data-section="balloons"]),
  .bd-side[data-show="extras"] .bd-section:not([data-section="extras"]),
  .bd-side[data-show="scene"] .bd-section:not([data-section="scene"]) { display: none; }
  .bd-section .bd-group { display: none; }
  .bd-props .bd-hint { display: none; }
  /* The bottom bar */
  .bd-mbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 51;
    height: calc(64px + env(safe-area-inset-bottom)); background: #0f0d0b; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .bd-mbar button { background: none; border: none; color: var(--muted); font: inherit; font-size: 11.5px; display: grid; place-items: center; gap: 2px; padding-top: 6px; }
  .bd-mbar button .ic { font-size: 18px; line-height: 1; }
  .bd-mbar button.on { color: var(--gold-lt); }
  /* Price: one line until tapped; the details open in a short scrolling box */
  .bd-right .bd-price { padding: 8px 12px; max-height: 32vh; overflow-y: auto; }
  .bd-right .bd-price:not(.expanded) > :not(.bd-total) { display: none; }
  .bd-total { font-size: 19px; cursor: pointer; }
  .bd-more { font-size: 14px; color: var(--muted); }
  .bd-modal { z-index: 60; }
}
@media (min-width: 701px) { .bd-more { display: none; } }
.bd-side > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.bd-side { display: grid; gap: 12px; }
.bd-group { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 10px 0 6px; }
.bd-group:first-child { margin-top: 0; }
.bd-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px; }   /* two per row, one when narrow */
.bd-item { flex-direction: column; justify-content: flex-start !important; }
.bd-item { display: flex; justify-content: space-between; gap: 6px; text-align: left; background: var(--surface); border: 1px solid var(--line); color: var(--text);
  border-radius: var(--radius); padding: 8px 10px; cursor: pointer; font: inherit; font-size: 13px; }
.bd-item:hover { border-color: var(--gold); }
.bd-item small { color: var(--gold-lt); white-space: nowrap; }
/* Picture tiles */
.mockup-dl { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.dl-note { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.bd-thumb { display: block; width: 100%; height: 74px; object-fit: contain; padding: 6px; box-sizing: border-box;
  background: transparent; border-radius: 6px; margin-bottom: 2px; }
.bd-item:hover .bd-thumb { filter: brightness(1.04); }
/* Compact tiles: three per row, small pictures and text */
.bd-side .bd-items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.bd-side .bd-item { padding: 4px 4px 5px; gap: 2px; font-size: 11px; line-height: 1.2; text-align: center; align-items: center; }
.bd-side .bd-item small { font-size: 10px; }
.bd-side .bd-thumb { height: 46px; padding: 4px; }
.bd-side .bd-single select.field { padding: 2px; font-size: 10.5px; }
@media (max-width: 700px) { .bd-side .bd-items { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bd-single { cursor: default; }
.bd-single:hover { border-color: var(--line); }
.bd-single select.field { width: 100%; padding: 5px 6px; font-size: 12.5px; margin-top: 2px; }
.bd-stage { background: #0f0d0b; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; touch-action: none; position: relative; }
/* Zoom controls, bottom-right of the room */
.bd-zoom { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: flex; align-items: center; gap: 2px; padding: 3px;
  background: rgba(15,13,11,.82); border: 1px solid rgba(184,137,74,.45); border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bd-zoom button { min-width: 32px; height: 30px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; color: #f3e6cf;
  font: 500 16px/1 Inter, system-ui, sans-serif; cursor: pointer; }
.bd-zoom button.pct { font-size: 12px; min-width: 50px; color: #d9b77a; letter-spacing: .02em; }
.bd-zoom button:hover { background: rgba(184,137,74,.18); }
@media (pointer: coarse) { .bd-zoom button { min-width: 38px; height: 36px; } }

.bd-props strong { display: block; font-size: 13px; margin: 8px 0 6px; }
.bd-hint { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.bd-colors { display: flex; flex-wrap: wrap; gap: 6px; }
.bd-swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); cursor: pointer; }
.bd-swatch.on { border-color: var(--gold-lt); box-shadow: 0 0 0 2px var(--gold); }
.bd-props .field { width: 100%; margin-bottom: 6px; }
.bd-props .btn { padding: 6px 10px; font-size: 12.5px; margin-top: 8px; }
.bd-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.bd-actions .btn { margin-top: 0; }
.bd-total { font-family: 'Cormorant Garamond', serif; font-size: 24px; color: var(--gold-lt); }
.bd-price ul { list-style: none; margin: 8px 0; padding: 0; font-size: 12.5px; }
.bd-price li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px solid var(--line); }
.bd-note { font-size: 11.5px; color: var(--muted); }
.bd-sub { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 10px 0 2px; }
.bd-ask { display: grid; gap: 6px; font-size: 12.5px; color: var(--gold-lt); margin: 6px 0; }
.bd-ask .field, .bd-modal-body .field { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; font: inherit; width: 100%; }
.bd-modal-body .btn { margin-top: 10px; }
.bd-modal { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; }
.bd-modal[hidden] { display: none; }
.bd-modal-box { position: relative; background: var(--surface-2); border: 1px solid var(--gold); border-radius: var(--radius); padding: 20px; width: min(560px, 100%); max-height: 90vh; overflow: auto; }
.bd-modal-box h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 26px; color: var(--gold-lt); margin-bottom: 10px; }
.bd-close { position: absolute; top: 10px; right: 12px; background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.bd-preview { width: 100%; border-radius: var(--radius); margin-bottom: 8px; }
.bd-form { display: grid; gap: 8px; margin-top: 10px; }
.bd-form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.bd-form input, .bd-form textarea { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; font: inherit; }
.admin-maker { max-width: 1200px; margin: 16px auto 0; padding: 0 16px; }
.admin-maker[hidden] { display: none; }
.admin-maker .box { border: 1px dashed var(--gold); border-radius: var(--radius); padding: 14px 16px; background: rgba(184,137,74,.06); }
.admin-maker h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 22px; color: var(--gold-lt); display: inline; }
.admin-maker { margin-bottom: 24px; }
.admin-maker summary { cursor: pointer; list-style: none; }
.admin-maker summary::-webkit-details-marker { display: none; }
.admin-maker summary::after { content: '  ▾ open'; font-size: 12px; color: var(--muted); }
.admin-maker details[open] summary::after { content: '  ▴ close'; }
.admin-maker p { font-size: 13px; color: var(--muted); margin: 4px 0 10px; line-height: 1.5; }
.admin-maker .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; align-items: start; }
.admin-maker textarea { width: 100%; min-height: 90px; font: 12px/1.4 inherit; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.admin-maker select, .admin-maker input[type=file] { width: 100%; font-size: 13px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 7px; }
.admin-maker img.preview { width: 100%; max-height: 140px; object-fit: contain; margin-top: 6px; border-radius: var(--radius); }
.admin-maker .btn { padding: 9px 14px; font-size: 13px; margin-top: 8px; }
.admin-maker .msg { font-size: 13px; margin-top: 8px; }
.admin-maker .fill-from { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.admin-maker .fill-from textarea { min-height: 60px; margin-top: 6px; }
.real-box {
  display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 8px; text-decoration: none;
  border: 1px solid var(--gold); border-radius: var(--radius); background: rgba(184, 137, 74, .08); color: var(--text);
}
.real-box img { width: 72px; height: 72px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.real-box strong { display: block; color: var(--gold-lt); font-weight: 500; font-size: 14px; }
.real-box span { font-size: 12.5px; color: var(--muted); }
.real-box:hover strong { text-decoration: underline; }
.admin-sort-note { font-size: 12.5px; color: var(--gold-lt); margin-top: 6px; }
.admin-sort-note .saved-note { color: #9fcf99; }
.showcase-card.sortable { cursor: grab; position: relative; }
.showcase-card.dragging { opacity: .4; }
.sort-arrows { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; z-index: 2; }
.sort-arrows .btn { padding: 2px 9px; font-size: 13px; background: rgba(10,9,8,.75); }
.showcase-card .real-link { font-size: 12px; color: var(--gold-lt); padding: 6px 12px 0; text-decoration: none; }
.showcase-card .real-link:hover { text-decoration: underline; }
.wizard-foot .changed-banner { margin-bottom: 4px; }
.wizard-nav .see-design { flex: 1; }
.wizard-nav .see-design[hidden], #lastUpdateBtn[hidden] { display: none; }
.narrow-only { display: none; }
@media (max-width: 860px) { .wide-only { display: none; } .narrow-only { display: inline; } }
.review-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.review-tabs button {
  background: none; border: none; border-bottom: 2px solid transparent; color: var(--muted);
  font: inherit; font-size: 13px; letter-spacing: .04em; padding: 8px 12px; margin-bottom: -1px; cursor: pointer;
}
.review-tabs button.on { color: var(--gold-lt); border-bottom-color: var(--gold); }
.review-pane { display: flex; flex-direction: column; gap: 12px; margin-top: -10px; }
.send-box { margin-top: -10px; }
.send-box h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 22px;
  margin-bottom: 4px;
}
.send-box > p { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.send-box .btn { width: 100%; padding: 12px; font-size: 14px; }
.send-form { display: none; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.send-form.open { display: grid; }
.send-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.send-form label.full { grid-column: 1 / -1; }
.send-form input {
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 9px 10px; font: inherit; font-size: 14px;
  color-scheme: dark;
}
.send-form input:focus { outline: none; border-color: var(--gold); }
.send-form .btn { grid-column: 1 / -1; margin-top: 4px; }
.send-status { font-size: 13px; margin-top: 10px; }
.send-status.error { color: #f3c7bf; }
.send-done { text-align: center; padding: 10px 0; }
.send-done strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 500; color: var(--gold-lt); }
.send-done span { font-size: 13px; color: var(--muted); }
@media (max-width: 600px) { .send-form { grid-template-columns: 1fr; } }
/* Spam trap: a field people never see; bots fill it in */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Inside the Evantis Design app: no "Back to the website" button, and room for the phone's notch */
html.in-app .back-btn, html.in-app .device-tip { display: none !important; }   /* it's already the app */
html.in-app header { padding-top: calc(env(safe-area-inset-top) + 18px); }
html.in-app body.board-mode .board-view { padding-top: calc(env(safe-area-inset-top) + 8px); }

/* iPhones zoom in when a text box's text is under 16px, pushing the page off screen. 16px on touch screens prevents it. */
@media (pointer: coarse) { input, select, textarea { font-size: 16px !important; } }

/* Scenes: picture tiles of each background */
.bd-scene-tile .bd-thumb { object-fit: cover; padding: 0; border-radius: 4px; }
.bd-scene-tile.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.bd-photo-add .bd-thumb { background: rgba(184,137,74,.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9b77a' stroke-width='1.5'%3E%3Crect x='3' y='6' width='18' height='13' rx='2'/%3E%3Ccircle cx='12' cy='12.5' r='3.5'/%3E%3Cpath d='M8 6l1.5-2h5L16 6'/%3E%3C/svg%3E") center / 26px no-repeat; }
.bd-scene-opts strong { display: block; font-size: 12.5px; margin: 10px 0 6px; }
.bd-scene-opts .bd-actions .btn { padding: 6px 10px; font-size: 12px; }
/* How to start: two cards */
.bd-start { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.bd-start-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 18px 16px; cursor: pointer;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); font: inherit; transition: border-color .2s, transform .2s; }
.bd-start-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.bd-start-card .ic { font-size: 22px; color: var(--gold-lt); }
.bd-start-card strong { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 500; color: var(--gold-lt); }
.bd-start-card span:last-child { font-size: 13px; color: var(--muted); line-height: 1.45; }
@media (max-width: 480px) { .bd-start { grid-template-columns: 1fr; } }

/* Placing the venue photo: a floating Done */
.bd-photo-pill { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 5px 5px 5px 14px; background: rgba(15,13,11,.85); border: 1px solid var(--gold); border-radius: 999px; color: #f3e6cf; font-size: 12.5px;
  white-space: nowrap; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bd-photo-pill button { border: 0; border-radius: 999px; padding: 7px 14px; background: var(--gold); color: #1a140d; font: 600 13px Inter, system-ui, sans-serif; cursor: pointer; }
@media (max-width: 480px) { .bd-photo-pill span { display: none; } }

/* Computers: the menu has a fixed height and scrolls by itself; the design stays pinned beside it */
.bd-tabs { display: none; }
@media (min-width: 701px) {
  .bd-side { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; overscroll-behavior: contain;
    align-content: start; scrollbar-width: thin; scrollbar-color: rgba(184,137,74,.4) transparent; }
  .bd-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .bd-tabs button { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 2px 8px; cursor: pointer;
    background: var(--surface); color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius);
    font: 500 11px Inter, system-ui, sans-serif; white-space: nowrap; transition: border-color .2s, color .2s, background .2s; }
  .bd-tabs button svg { width: 24px; height: 24px; color: var(--gold-lt); transition: transform .2s; }
  .bd-tabs button:hover { color: var(--text); border-color: rgba(184,137,74,.6); }
  .bd-tabs button:hover svg { transform: translateY(-1px); }
  .bd-tabs button.on { color: var(--gold-lt); border-color: var(--gold); background: rgba(184,137,74,.12); }
  .bd-palette.open .bd-tabs { margin-bottom: 12px; }
  .bd-side .bd-section .bd-group { display: none; }   /* the tab already names it */
  .bd-side[data-tab=""] .bd-section,
  .bd-side[data-tab="backdrops"] .bd-section:not([data-section="backdrops"]),
  .bd-side[data-tab="balloons"] .bd-section:not([data-section="balloons"]),
  .bd-side[data-tab="extras"] .bd-section:not([data-section="extras"]),
  .bd-side[data-tab="scene"] .bd-section:not([data-section="scene"]) { display: none; }
}

/* Add to your phone tip */
.install-tip { align-items: center; }
.install-tip .it-text b { display: block; color: var(--gold-lt); font-weight: 500; margin-bottom: 2px; }
.install-tip .it-steps { display: block; margin-top: 6px; color: var(--text); }
.install-tip .it-steps[hidden] { display: none; }
.install-tip .it-go { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--gold) !important; color: #1a140d !important; font: 600 12.5px Inter, system-ui, sans-serif !important; }
html.in-app .install-tip { display: none !important; }

/* The steps to add Evantis Design to the home screen */
.it-sheet { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.65); display: flex; align-items: flex-end; justify-content: center; padding: 12px;
  animation: itFade .2s ease; }
.it-box { position: relative; width: min(440px, 100%); background: var(--surface-2); border: 1px solid var(--gold); border-radius: 18px;
  padding: 24px 22px calc(18px + env(safe-area-inset-bottom)); text-align: center; animation: itUp .25s ease; }
.it-icon { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.it-box h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 24px; line-height: 1.15; color: var(--gold-lt); margin: 12px 0 14px; }
.it-box ol { text-align: left; margin: 0 0 16px; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; }
.it-box li { counter-increment: step; display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; color: var(--text); }
.it-box li::before { content: counter(step); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: #1a140d; font: 600 12.5px Inter, system-ui, sans-serif; margin-top: 1px; }
.it-box b { color: var(--gold-lt); font-weight: 600; }
.it-ic { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.it-ok { width: 100%; padding: 12px; border: 0; border-radius: 999px; background: var(--gold); color: #1a140d; font: 600 14px Inter, system-ui, sans-serif; cursor: pointer; }
.it-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--muted); font-size: 17px; cursor: pointer; }
@keyframes itFade { from { opacity: 0; } } @keyframes itUp { from { transform: translateY(30px); opacity: 0; } }
