/* ============================================
   MIRROR CALCULATOR UI
   ============================================ */

/* ── Step dots progress ─────────────────────────────────────────────────── */
.wizard-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.wizard-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.wizard-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(34,31,28,.15);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.wizard-dot.done {
  background: var(--accent);
  opacity: 0.5;
}

.wizard-dot.active {
  width: 24px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  opacity: 1;
}

.wizard-progress__label {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: .02em;
}

/* ── Step container ─────────────────────────────────────────────────────── */
.wizard-steps {
  position: relative;
  min-height: 240px;
  padding: 0 4px;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: wiz-in 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-step.leaving {
  animation: wiz-out 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes wiz-in {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes wiz-out {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-16px); }
}

.wizard-step__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -.025em;
  color: var(--text);
}

.wizard-step__hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
}

/* ── Choice cards ───────────────────────────────────────────────────────── */
.wizard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}

.wizard-cards--2col { grid-template-columns: 1fr 1fr; }
.wizard-cards--3col { grid-template-columns: repeat(3, 1fr); }
.wizard-cards--4col { grid-template-columns: repeat(4, 1fr); }

.wizard-cards--list {
  grid-template-columns: 1fr !important;
  gap: 5px;
}

.wizard-card {
  appearance: none;
  border: 1.5px solid rgba(34,31,28,.1);
  border-radius: 14px;
  background: rgba(255,255,255,.9);
  padding: 12px 10px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s, background 0.18s;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  position: relative;
  overflow: hidden;
}

.wizard-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(135deg, rgba(182,138,90,.08), rgba(182,138,90,.04));
  transition: opacity 0.18s;
}

.wizard-card:hover {
  border-color: rgba(182,138,90,.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(182,138,90,.14);
}

.wizard-card:hover::after { opacity: 1; }

.wizard-card.selected {
  border-color: var(--accent);
  background: linear-gradient(135deg, #fff8f0, #fff4e8);
  box-shadow: 0 0 0 3px rgba(182,138,90,.16), 0 4px 14px rgba(182,138,90,.18);
  color: var(--accent-dark);
}

.wizard-card.selected::after { opacity: 1; }

/* Checkmark badge on selected */
.wizard-card.selected::before {
  content: '';
  position: absolute;
  top: 7px;
  right: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6l3 3 5-5'/%3E%3C/svg%3E");
  background-size: 10px 10px;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 2;
}

.wizard-card.disabled {
  opacity: 0.38;
  pointer-events: none;
  filter: grayscale(0.4);
}

/* List-style card (LED strips, etc.) */
.wizard-cards--list .wizard-card {
  flex-direction: row;
  justify-content: flex-start;
  padding: 10px 14px;
  text-align: left;
  gap: 10px;
  border-radius: 12px;
}

.wizard-cards--list .wizard-card::before {
  top: 50%;
  transform: translateY(-50%);
  right: 10px;
}

/* ── Card icon ──────────────────────────────────────────────────────────── */
.wizard-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(34,31,28,.06);
  transition: background 0.18s;
  flex-shrink: 0;
}

.wizard-card.selected .wizard-card__icon {
  background: rgba(182,138,90,.16);
}

.wizard-card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--muted);
  transition: color 0.18s;
}

.wizard-card.selected .wizard-card__icon svg {
  color: var(--accent-dark);
}

.wizard-card__label {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}

.wizard-card__sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.3;
  margin-top: -4px;
}

.wizard-card.selected .wizard-card__sub {
  color: rgba(148,109,67,.7);
}

/* ── Color swatch cards ─────────────────────────────────────────────────── */
.wizard-card__swatch {
  width: 100%;
  height: 36px;
  border-radius: 8px;
  margin-bottom: 2px;
  border: 1px solid rgba(34,31,28,.08);
  transition: transform 0.18s;
}

.wizard-card:hover .wizard-card__swatch,
.wizard-card.selected .wizard-card__swatch {
  transform: scale(1.04);
}

/* ── Frame color dot ────────────────────────────────────────────────────── */
.wizard-card__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(34,31,28,.1);
  flex-shrink: 0;
  transition: transform 0.18s, box-shadow 0.18s;
}

.wizard-card.selected .wizard-card__dot {
  transform: scale(1.15);
  box-shadow: 0 0 0 3px rgba(182,138,90,.3);
}

/* ── LED strip color bar ────────────────────────────────────────────────── */
.wizard-card__led {
  width: 28px;
  height: 10px;
  border-radius: 5px;
  flex-shrink: 0;
}

/* ── Backlight visual ───────────────────────────────────────────────────── */
.wizard-card__backlight {
  width: 44px;
  height: 32px;
  border-radius: 8px;
  background: rgba(34,31,28,.06);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.wizard-card__backlight::after {
  content: '';
  position: absolute;
  border-radius: 4px;
  background: rgba(255,220,100,.7);
  filter: blur(4px);
}

.wizard-card__backlight--back::after {
  inset: auto 0 -2px 0;
  height: 8px;
}

.wizard-card__backlight--front::after {
  inset: -2px 0 auto 0;
  height: 8px;
}

.wizard-card__backlight--both::after {
  inset: -2px 0 -2px 0;
  height: auto;
  background: linear-gradient(180deg, rgba(255,220,100,.6) 0%, transparent 40%, transparent 60%, rgba(255,220,100,.6) 100%);
  filter: blur(3px);
}

/* ── Size step ──────────────────────────────────────────────────────────── */
.wizard-size-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.wizard-size-grid .field--full {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .03em;
  text-transform: uppercase;
}

.field input[type="number"] {
  width: 100%;
  height: 50px;
  border-radius: 14px;
  border: 1.5px solid rgba(34,31,28,.12);
  background: rgba(255,255,255,.95);
  padding: 0 16px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -moz-appearance: textfield;
}

.field input[type="number"]::-webkit-inner-spin-button,
.field input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }

.field input[type="number"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(182,138,90,.15);
}

.field input[type="number"].has-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(184,70,70,.1);
}

.field__auto {
  height: 50px;
  border-radius: 14px;
  border: 1.5px dashed rgba(182,138,90,.4);
  background: rgba(255,248,240,.6);
  padding: 0 16px;
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-dark);
}

.field__hint {
  font-size: 11px;
  color: var(--muted);
}

.field__error {
  font-size: 11.5px;
  color: var(--danger);
  min-height: 15px;
  display: block;
  font-weight: 600;
}

/* ── Mobile ─────────────────────────────────────────────────────────────── */
.wizard-split-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(34,31,28,.1);
  background: rgba(255,255,255,.8);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  user-select: none;
}

.wizard-split-check:hover {
  border-color: rgba(182,138,90,.4);
  background: rgba(255,248,240,.8);
}

.wizard-split-check input { display: none; }

.wizard-split-check__box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid rgba(34,31,28,.2);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s;
}

.wizard-split-check:has(input:checked) {
  border-color: var(--accent);
  background: rgba(255,248,240,.8);
}

.wizard-split-check:has(input:checked) .wizard-split-check__box {
  background: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6l3 3 5-5'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ── Extras step ────────────────────────────────────────────────────────── */
.wizard-extras-grid {
  display: grid;
  gap: 6px;
}

.wizard-extra-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(34,31,28,.1);
  background: rgba(255,255,255,.85);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  user-select: none;
}

.wizard-extra-item:hover {
  border-color: rgba(182,138,90,.4);
  background: rgba(255,248,240,.8);
}

.wizard-extra-item:has(input:checked) {
  border-color: var(--accent);
  background: #fff8f0;
}

.wizard-extra-item.disabled {
  opacity: 0.38;
  pointer-events: none;
}

.wizard-extra-item input { display: none; }

.wizard-extra-item__check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid rgba(34,31,28,.2);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s;
}

.wizard-extra-item:has(input:checked) .wizard-extra-item__check {
  background: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6l3 3 5-5'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.wizard-extra-item__icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.wizard-extra-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wizard-extra-item__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.wizard-extra-item__desc {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 0;
}

.wizard-extra-item__price {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Summary step ───────────────────────────────────────────────────────── */
.wizard-summary {
  display: grid;
  gap: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(34,31,28,.08);
}

.wizard-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 9px 14px;
  background: rgba(255,255,255,.7);
  border-bottom: 1px solid rgba(34,31,28,.06);
}

.wizard-summary__row:last-child { border-bottom: none; }
.wizard-summary__row:nth-child(even) { background: rgba(255,255,255,.4); }

.wizard-summary__key {
  color: var(--muted);
  font-weight: 500;
}

.wizard-summary__val {
  font-weight: 700;
  text-align: right;
  color: var(--text);
}

/* ── Navigation ─────────────────────────────────────────────────────────── */
.wizard-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 18px;
  background: linear-gradient(to top, rgba(255,255,255,1) 70%, rgba(255,255,255,0));
  position: sticky;
  bottom: 0;
  margin: 0 -18px -18px;
  border-radius: 0 0 24px 24px;
}

@media (min-width: 1024px) {
  .wizard-nav {
    padding: 12px 32px 20px;
    margin: 0 -32px -32px;
    border-radius: 0 0 34px 34px;
  }
}

.wizard-nav__back {
  appearance: none;
  border: 1.5px solid rgba(34,31,28,.12);
  border-radius: 999px;
  background: transparent;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s;
  white-space: nowrap;
}

.wizard-nav__back:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: rgba(255,248,240,.8);
}

.wizard-nav__next {
  margin-left: auto;
  appearance: none;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(148,109,67,.28);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.wizard-nav__next:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(148,109,67,.38);
  filter: brightness(1.06);
}

.wizard-nav__next:active {
  transform: translateY(0);
}

.wizard-nav__next:disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* ── Live price ticker ──────────────────────────────────────────────────── */
.wizard-price-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(34,31,28,.04);
  border: 1px solid rgba(34,31,28,.07);
  font-size: 13px;
  color: var(--muted);
  transition: all 0.3s;
}

.wizard-price-ticker__amount {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-dark);
  letter-spacing: -.02em;
  transition: all 0.3s;
}

.wizard-price-ticker.updated .wizard-price-ticker__amount {
  animation: price-pop 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes price-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.12); color: var(--accent); }
  100% { transform: scale(1); }
}

/* ── Result card ────────────────────────────────────────────────────────── */
.calc-result {
  margin-top: 14px;
  border-radius: 24px;
  background: linear-gradient(135deg, #2a2119, #574332);
  color: #fff;
  padding: 24px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: center;
  animation: wiz-in 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.result-price {
  font-size: clamp(32px, 4vw, 48px);
  line-height: .95;
  margin: 10px 0 12px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.result-meta {
  display: grid;
  gap: 8px;
  color: rgba(255,255,255,.75);
  font-size: 13px;
}

.result-box {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

.result-approx {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 11px;
  color: rgba(255,255,255,.65);
  font-weight: 600;
  letter-spacing: .02em;
}

/* ── Full-screen result ─────────────────────────────────────────────────── */
.calc-result-screen {
  display: none;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  animation: wiz-in 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.calc-result-screen.visible {
  display: flex;
}

.calc-result-screen__top {
  border-radius: 18px;
  background: linear-gradient(135deg, #2a2119, #574332);
  color: #fff;
  padding: 18px 20px;
}

.calc-result-screen__eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.55);
  margin-bottom: 6px;
}

.calc-result-screen__price {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 8px;
  animation: price-pop 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.calc-result-screen__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: rgba(255,255,255,.65);
}

/* Summary inside result */
.calc-result-screen__summary {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(34,31,28,.08);
}

.calc-result-screen__summary .wizard-summary__row {
  font-size: 13px;
  padding: 8px 14px;
}

/* Actions */
.calc-result-screen__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.calc-result-screen__edit {
  appearance: none;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: 10px;
  transition: color 0.18s, background 0.18s;
}

.calc-result-screen__edit:hover {
  color: var(--accent-dark);
  background: rgba(182,138,90,.08);
}

/* ── Section divider inside step ────────────────────────────────────────── */
.wizard-section {
  margin-top: 14px;
}

.wizard-section__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin: 0 0 8px;
}

/* ── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .wizard-cards { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
  .wizard-cards--2col { grid-template-columns: 1fr 1fr; }
  .wizard-cards--3col,
  .wizard-cards--4col { grid-template-columns: 1fr 1fr; }
  .wizard-cards--list { grid-template-columns: 1fr; }
  .wizard-size-grid { grid-template-columns: 1fr; }
  .calc-result { grid-template-columns: 1fr; }
}

/* ── Result price animation ─────────────────────────────────────────────── */
@keyframes price-pop {
  0%   { transform: scale(0.92); opacity: 0.6; }
  60%  { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.result-price {
  animation: price-pop 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Drawing button ─────────────────────────────────────────────────────── */
.calc-drawing-btn {
  appearance: none;
  border: 1.5px solid rgba(182,138,90,.35);
  border-radius: 999px;
  background: rgba(255,248,240,.7);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s;
  white-space: nowrap;
}

.calc-drawing-btn:hover {
  background: rgba(182,138,90,.15);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(182,138,90,.18);
}

.calc-drawing-btn--block {
  width: 100%;
  justify-content: center;
  margin: 16px 0;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 14px;
  border-style: dashed;
  background: transparent;
  color: var(--muted);
  border-color: rgba(34,31,28,.18);
}

.calc-drawing-btn--block:hover {
  color: var(--accent-dark);
  border-color: var(--accent);
  background: rgba(182,138,90,.06);
  box-shadow: none;
}

/* ── Drawing dropzone ───────────────────────────────────────────────────── */
.drawing-dropzone {
  border: 2px dashed rgba(34,31,28,.18);
  border-radius: 16px;
  background: rgba(34,31,28,.02);
  padding: 28px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 14px;
}

.drawing-dropzone:hover,
.drawing-dropzone.drag-over {
  border-color: var(--accent);
  background: rgba(182,138,90,.05);
}

.drawing-dropzone__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(182,138,90,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  margin-bottom: 4px;
}

.drawing-dropzone__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.drawing-dropzone__main {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.drawing-dropzone__sub {
  font-size: 13px;
  color: var(--muted);
}

.drawing-dropzone__browse {
  appearance: none;
  border: none;
  background: none;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.drawing-dropzone__formats {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.drawing-dropzone__preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(182,138,90,.1);
  border: 1px solid rgba(182,138,90,.25);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
}

.drawing-dropzone__preview span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.drawing-dropzone__remove {
  appearance: none;
  border: none;
  background: rgba(34,31,28,.1);
  color: var(--text);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

.drawing-dropzone__remove:hover {
  background: rgba(184,70,70,.2);
  color: var(--danger);
}

.drawing-dropzone--compact {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  min-height: auto;
  flex-wrap: wrap;
  text-align: left;
}
.drawing-dropzone--compact .drawing-dropzone__icon { display: none; }
.drawing-dropzone--compact .drawing-dropzone__text { display: none; }
.drawing-dropzone--compact .drawing-dropzone__formats { display: none; }

/* ── Size presets ───────────────────────────────────────────────────────── */
.size-btn-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.size-btn {
  appearance: none;
  border: 1.5px solid rgba(34,31,28,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.85);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.18s;
  white-space: nowrap;
}

.size-btn:hover {
  border-color: rgba(182,138,90,.5);
  background: rgba(255,248,240,.9);
  color: var(--accent-dark);
}

.size-btn.active {
  border-color: var(--accent);
  background: linear-gradient(135deg, #fff8f0, #fff4e8);
  color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(182,138,90,.14);
}

.size-btn--promo {
  border-color: rgba(220,80,60,.22);
  color: #c0392b;
}

.size-btn--promo:hover,
.size-btn--promo.active {
  border-color: #e74c3c;
  background: rgba(255,235,232,.9);
  color: #c0392b;
  box-shadow: 0 0 0 3px rgba(231,76,60,.12);
}

.size-btn__badge {
  font-size: 10px;
  font-weight: 800;
  background: #e74c3c;
  color: #fff;
  border-radius: 5px;
  padding: 1px 5px;
}

.size-btn--custom {
  border-style: dashed;
  color: var(--muted);
}

.size-btn--custom:hover,
.size-btn--custom.active {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: rgba(255,248,240,.8);
  box-shadow: none;
}

/* ── Size promo banner ──────────────────────────────────────────────────── */
.size-promo {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(231,76,60,.07);
  border: 1.5px solid rgba(231,76,60,.22);
  color: #c0392b;
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
  animation: wiz-in 0.25s ease;
}

.size-promo svg { flex-shrink: 0; }
.size-promo strong { font-weight: 800; }

/* ── Result promo CTA ───────────────────────────────────────────────────── */
.result-promo-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(182,138,90,.1), rgba(182,138,90,.05));
  border: 1.5px solid rgba(182,138,90,.22);
  margin-bottom: 10px;
}

.result-promo-cta__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(182,138,90,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  flex-shrink: 0;
}

.result-promo-cta__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.result-promo-cta__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.result-promo-cta__sub {
  font-size: 11.5px;
  color: var(--muted);
}

.result-promo-cta__badge {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-dark);
  background: rgba(182,138,90,.18);
  border-radius: 8px;
  padding: 4px 10px;
  flex-shrink: 0;
}

/* ── Size CTA (remove old, kept for compat) ─────────────────────────────── */
.size-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(182,138,90,.08), rgba(182,138,90,.04));
  border: 1.5px solid rgba(182,138,90,.2);
  margin-top: 12px;
}

.size-cta__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(182,138,90,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  flex-shrink: 0;
}

.size-cta__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.size-cta__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.size-cta__sub {
  font-size: 11.5px;
  color: var(--muted);
}

.size-cta__badge {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-dark);
  background: rgba(182,138,90,.15);
  border-radius: 8px;
  padding: 4px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Edge preview (facet image) ─────────────────────────────────────────── */
.edge-preview {
  display: none;
  margin-top: 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(182,138,90,.25);
  background: rgba(255,248,240,.6);
  animation: wiz-in 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.edge-preview.visible {
  display: block;
}

.edge-preview img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.edge-preview__caption {
  display: block;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
