
/* ============================================================
   ROLLUIK V2 — Édition Épurée
   Same DNA. More air. Dot-grid render. Tab step nav.
   ============================================================ */

.cfg2, .cfg2 * { box-sizing: border-box; margin: 0; padding: 0; }

.cfg2 {
  --ink:        #0f0e0a;
  --ink-2:      #5e5b54;
  --ink-3:      #9c9990;
  --line:       #e4e1d8;
  --line-dark:  #0f0e0a;
  --paper:      #f0ede5;
  --paper-2:    #e9e6de;
  --white:      #ffffff;
  --accent:     #dd5325;
  --accent-ink: #ffffff;
  --plaster:    #f0ede5;

  --sans: 'Archivo', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;

  --ph: 40px;
  --pv: 32px;

  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  min-width: 0;
}

/* ── Body split ── */
.cfg2-body {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(500px, 44vw, 760px);
  min-height: 0;
}
.cfg2-mobile .cfg2-body {
  display: flex;
  flex-direction: column;
}
.cfg2-mobile {
  --ph: 20px;
  --pv: 24px;
}

/* ══════════════════════════════════════════
   RENDER PANEL
══════════════════════════════════════════ */
.v2-render {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1.5px solid var(--line-dark);
  background-color: #f0ede5;
  transition: background-color 0.55s ease;
}

/* Architectural dot grid */
.v2-render::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(21,20,15,0.10) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}

/* Floor gradient */
.v2-render::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 28%;
  background: linear-gradient(0deg, rgba(235,231,221,0.55) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.v2-render > * { position: relative; z-index: 1; }
/* Crop marks must stay absolute — higher specificity than rule above */
.v2-render .l-crop { position: absolute; }

/* Brand watermark top-left */
.v2-render-brand {
  position: absolute;
  top: 24px; left: 28px;
  z-index: 5;
}
.v2-render-brand .wordmark {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 900;
  font-size: 13.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink);
}
.v2-render-brand .sq {
  width: 9px; height: 9px;
  background: var(--accent);
  flex: 0 0 auto;
}
.v2-render-brand .sub-tag {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Scale + fig note bottom-right */
.v2-render-info {
  position: absolute;
  bottom: 22px; right: 26px;
  z-index: 5;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: right;
  line-height: 1.9;
}

.v2-view-switch {
  position: absolute;
  left: 28px;
  bottom: 22px;
  z-index: 7;
  display: inline-flex;
  border: 1.5px solid var(--ink);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
}
.v2-view-switch button {
  min-width: 54px;
  padding: 8px 10px;
  border: 0;
  border-right: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.v2-view-switch button:last-child { border-right: 0; }
.v2-view-switch button.active { background: var(--ink); color: var(--white); }

.v2-side-view {
  position: relative;
  width: min(440px, 68%);
  height: min(480px, 60vh);
  min-height: 300px;
  --wall-x: 42%;
}
.v2-side-wall {
  position: absolute;
  left: var(--wall-x);
  top: 4%;
  bottom: 5%;
  width: 38px;
  border: 1.5px solid var(--ink);
  background: repeating-linear-gradient(135deg, #ddd9cf 0 3px, #f0ede5 3px 9px);
}
.v2-side-opening {
  position: absolute;
  left: calc(var(--wall-x) + 39px);
  top: 28%;
  right: 8%;
  bottom: 5%;
  border: 1.5px solid var(--ink-3);
  border-left: 0;
  background: rgba(255,255,255,0.42);
}
.v2-side-frame {
  position: absolute;
  left: calc(var(--wall-x) + 39px);
  top: 28%;
  right: 8%;
  bottom: 5%;
  border: 10px solid #aaa79f;
  border-right-width: 14px;
  background: linear-gradient(120deg, rgba(255,255,255,.55), rgba(190,205,215,.38));
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.v2-side-housing {
  position: absolute;
  left: calc(var(--wall-x) - 72px);
  top: 12%;
  width: 112px;
  height: 86px;
  border: 1.5px solid var(--ink);
  background: color-mix(in srgb, var(--side-slat) 72%, white 28%);
}
.v2-side-roll {
  position: absolute;
  width: 54px;
  height: 54px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  left: 28px;
  top: 15px;
  background: repeating-radial-gradient(circle, var(--side-slat) 0 4px, rgba(255,255,255,.32) 5px 7px);
}
.v2-side-guide {
  position: absolute;
  left: calc(var(--wall-x) - 13px);
  top: calc(12% + 86px);
  bottom: 5%;
  width: 16px;
  border: 1.5px solid var(--ink);
  background: #b9b6ad;
}
.v2-side-curtain {
  position: absolute;
  left: calc(var(--wall-x) - 8px);
  top: calc(12% + 87px);
  width: 7px;
  height: 48%;
  border-right: 1px solid var(--ink);
  background: repeating-linear-gradient(180deg, var(--side-slat) 0 7px, color-mix(in srgb, var(--side-slat) 65%, black 35%) 7px 9px);
}
.v2-side-view.mounting-builtin .v2-side-housing {
  left: calc(var(--wall-x) - 1px);
  top: calc(28% - 86px);
  width: 118px;
}
.v2-side-view.mounting-builtin .v2-side-wall { top: 28%; }
.v2-side-view.mounting-builtin .v2-side-opening,
.v2-side-view.mounting-builtin .v2-side-frame { top: 28%; }
.v2-side-view.mounting-builtin .v2-side-guide {
  left: calc(var(--wall-x) + 42px);
  top: 28%;
}
.v2-side-view.mounting-builtin .v2-side-curtain {
  left: calc(var(--wall-x) + 46px);
  top: 28%;
}
.v2-side-view.mounting-builtin .v2-side-depth {
  left: calc(var(--wall-x) - 1px);
  width: 118px;
}
.v2-side-view.mounting-cassette .v2-side-housing { left: calc(var(--wall-x) - 58px); width: 98px; clip-path: polygon(12% 0,100% 0,100% 100%,0 100%,0 18%); }
.v2-side-view.mounting-cassette .v2-side-housing::after {
  content: '';
  position: absolute;
  inset: -1px -1px -1px 8px;
  border-top: 5px solid #d8d3c7;
  border-left: 5px solid #d8d3c7;
  pointer-events: none;
}
.v2-side-depth {
  position: absolute;
  left: calc(var(--wall-x) - 72px);
  top: 5%;
  width: 112px;
  height: 1px;
  background: var(--ink-3);
}
.v2-side-depth .tick { position: absolute; top: -4px; width: 1.5px; height: 9px; background: var(--accent); }
.v2-side-depth .start { left: 0; }
.v2-side-depth .end { right: 0; }
.v2-side-depth .label {
  position: absolute;
  left: 50%; top: -12px;
  transform: translateX(-50%);
  padding: 2px 6px;
  background: var(--paper);
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 9px;
}
.v2-side-depth .label b, .v2-side-height b { color: var(--accent); }
.v2-side-height {
  position: absolute;
  right: 4%;
  top: 52%;
  font-family: var(--mono);
  font-size: 9px;
  writing-mode: vertical-rl;
}
.v2-side-note {
  position: absolute;
  left: 0;
  bottom: -38px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.v2-side-note strong { font-size: 12px; }
.v2-side-note span { font-family: var(--mono); font-size: 8px; text-transform: uppercase; color: var(--ink-3); }

.v2-op-diagram {
  position: absolute;
  z-index: 6;
  right: 7%;
  top: 24%;
  width: 132px;
  height: 126px;
  color: var(--ink);
  pointer-events: none;
}
.v2-op-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 130px;
  padding: 5px 7px;
  border: 1px solid var(--ink);
  background: rgba(255,255,255,.9);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.35;
  text-transform: uppercase;
  text-align: right;
}
.v2-op-tube {
  position: absolute;
  left: 5px;
  top: 2px;
  width: 72px;
  height: 18px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: #c7c4bb;
}
.v2-op-tube span {
  position: absolute;
  right: 4px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font: 700 7px/12px var(--mono);
  text-align: center;
}
.v2-op-cable {
  position: absolute;
  left: 68px;
  top: 19px;
  width: 35px;
  height: 35px;
  border-right: 1.5px solid var(--ink-3);
  border-bottom: 1.5px solid var(--ink-3);
}
.v2-op-control {
  position: absolute;
  right: 13px;
  top: 45px;
  width: 27px;
  height: 35px;
  border: 1.5px solid var(--ink);
  background: var(--white);
  font: 700 13px/32px var(--mono);
  text-align: center;
}
.v2-op-waves { position: absolute; right: -5px; top: 27px; color: var(--accent); font: 700 11px var(--mono); transform: rotate(-20deg); }
.v2-op-gear {
  position: absolute;
  left: 14px;
  top: 3px;
  width: 25px;
  height: 25px;
  border: 4px double var(--ink);
  border-radius: 50%;
}
.v2-op-rod { position: absolute; left: 37px; top: 24px; width: 1.5px; height: 55px; background: var(--ink); transform: rotate(-12deg); transform-origin: top; }
.v2-op-crank { position: absolute; left: 38px; top: 76px; width: 25px; height: 12px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-12deg); }
.v2-op-diagram.side { right: -2%; top: 13%; }

/* Mobile render */
.cfg2-mobile .v2-render {
  flex: 0 0 250px;
  border-right: none;
  border-bottom: 1.5px solid var(--line-dark);
}
.cfg2-mobile .v2-view-switch { left: 12px; bottom: 12px; }
.cfg2-mobile .v2-view-switch button { min-width: 44px; padding: 6px 8px; }
.cfg2-mobile .v2-render-info { display: none; }
.cfg2-mobile .v2-side-view { width: 230px; height: 190px; min-height: 0; }
.cfg2-mobile .v2-side-note { display: none; }
.cfg2-mobile .v2-side-view.mounting-builtin .v2-side-housing {
  top: calc(28% - 50px);
  height: 50px;
}
.cfg2-mobile .v2-side-view.mounting-builtin .v2-side-roll {
  width: 34px;
  height: 34px;
  left: 40px;
  top: 7px;
}
.cfg2-mobile .v2-op-diagram:not(.side) { right: 4px; top: 44px; width: 108px; height: 88px; }
.cfg2-mobile .v2-op-diagram.side { right: -8px; top: 10px; width: 108px; height: 88px; }
.cfg2-mobile .v2-op-caption { max-width: 104px; font-size: 7px; padding: 3px 5px; }
.cfg2-mobile .v2-op-tube { width: 58px; height: 15px; }
.cfg2-mobile .v2-op-tube span { width: 10px; height: 10px; line-height: 10px; }
.cfg2-mobile .v2-op-cable { left: 53px; top: 16px; width: 30px; height: 25px; }
.cfg2-mobile .v2-op-control { right: 9px; top: 34px; width: 24px; height: 29px; line-height: 26px; }
.cfg2-mobile .v2-op-waves { right: -3px; top: 20px; }
.cfg2-mobile .v2-op-gear { left: 10px; width: 21px; height: 21px; }
.cfg2-mobile .v2-op-rod { left: 30px; top: 21px; height: 39px; }
.cfg2-mobile .v2-op-crank { left: 31px; top: 57px; width: 20px; height: 10px; }
/* Hide dimension annotations on mobile — shutter centered, no asymmetric labels */
.cfg2-mobile .v2-render .l-dim-top,
.cfg2-mobile .v2-render .l-dim-side { display: none; }

/* ══════════════════════════════════════════
   CONFIG PANEL
══════════════════════════════════════════ */
.v2-panel {
  display: flex;
  flex-direction: column;
  background: var(--white);
  overflow: clip;
  min-height: 0;
  min-width: 0;
  container-type: inline-size;
}

/* Panel header */
.v2-head {
  flex: 0 0 auto;
  padding: 20px var(--ph) 0;
}

.v2-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.v2-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.v2-brand .sq { width: 9px; height: 9px; background: var(--accent); }

.v2-spec {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  gap: 14px;
}
.v2-spec b { color: var(--ink); }
.v2-spec .est-val { color: var(--accent); }

/* Tab step nav — numbers + underline */
.v2-tabs {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: 0 calc(-1 * var(--ph));
  padding: 0 var(--ph);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.v2-tabs::-webkit-scrollbar { display: none; }

.v2-tab {
  position: relative;
  flex: 1 1 0;
  min-width: max-content;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 0 13px;
  border: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color 0.15s;
  white-space: nowrap;
  background: none;
  font-weight: 400;
}
.v2-tab::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--line);
  transition: background-color .18s ease;
}
.v2-tab .n { font-weight: 700; }
.v2-tab:hover { color: var(--ink-2); }
.v2-tab.done { color: var(--ink-2); }
.v2-tab.done::after { background: var(--ink); }
.v2-tab.current { color: var(--ink); }
.v2-tab.current::after { background: var(--accent); }
.v2-tab.current .n { color: var(--accent); }

.cfg2-mobile .v2-tab {
  flex: 1 1 20%;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 8px 1px 11px;
  font-size: clamp(6.5px, 1.9vw, 8px);
  letter-spacing: 0.015em;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cfg2-mobile .v2-tabs {
  gap: 4px;
  overflow-x: hidden;
}
.cfg2-mobile .v2-tab .n {
  font-size: 8px;
  letter-spacing: .04em;
}

/* ── Content scroll ── */
.v2-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--pv) var(--ph);
  min-height: 0;
  min-width: 0;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

/* Step entrance animation */
.v2-enter > * {
  animation: v2rise 0.44s cubic-bezier(0.2, 0, 0, 1) both;
}
.v2-enter > *:nth-child(1) { animation-delay: 0.02s; }
.v2-enter > *:nth-child(2) { animation-delay: 0.07s; }
.v2-enter > *:nth-child(3) { animation-delay: 0.12s; }
.v2-enter > *:nth-child(4) { animation-delay: 0.17s; }

@keyframes v2rise {
  from { transform: translateY(12px); }
  to   { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .v2-enter > * { animation: none; } }

.v2-q {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 7px;
  text-wrap: balance;
}
.cfg2-mobile .v2-q { font-size: 22px; }

.v2-sub {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 26px;
  max-width: 50ch;
}
.cfg2-mobile .v2-sub { margin-bottom: 18px; }

/* ══════════════════════════════════════════
   TILES V2
   Left accent bar on selection, circular check
══════════════════════════════════════════ */
.v2-tiles { display: flex; flex-direction: column; gap: 8px; }

.v2-tile {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  background: var(--white);
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  font-family: var(--sans);
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
}

/* Left accent bar */
.v2-tile::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.15s;
}

.v2-tile:hover { border-color: var(--ink-3); background: #faf9f5; }
.v2-tile.sel   { border-color: var(--ink);   background: #faf9f5; }
.v2-tile.sel::before { background: var(--accent); }

/* Icon */
.v2-tile-glyph {
  flex: 0 0 auto;
  width: 40px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  transition: color 0.15s;
}
.v2-tile.sel .v2-tile-glyph { color: var(--accent); }

/* Text */
.v2-tile-body { flex: 1; min-width: 0; }
.v2-tile-name {
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 2px;
}
.v2-tile-desc {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
}
.v2-tile-note {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  margin-top: 5px;
}

/* Circular check */
.v2-tile-check {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.v2-tile.sel .v2-tile-check {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* ══════════════════════════════════════════
   DIMENSIONS V2
══════════════════════════════════════════ */
.v2-dimgrid { display: flex; flex-direction: column; gap: clamp(14px, 2.4vh, 20px); min-width: 0; }

.v2-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }

.v2-field-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.v2-field-axis {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.v2-field-axis b { color: var(--accent); }
.v2-field-range { font-family: var(--mono); font-size: 10px; color: var(--ink-3); }

.v2-field-ctrl {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.v2-step-btn2 {
  width: 38px; height: 38px;
  border: 1.5px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  line-height: 1;
  flex: 0 0 auto;
  font-family: var(--sans);
}
.v2-step-btn2:hover { background: var(--ink); color: var(--white); }

.v2-dim-num {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}
.v2-dim-num .v {
  appearance: textfield;
  width: 4.45ch;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-bottom: 1.5px solid transparent;
  outline: none;
  background: transparent;
  text-align: right;
  font-family: var(--sans);
  font-weight: 900;
  font-size: 50px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.v2-dim-num .v::-webkit-outer-spin-button,
.v2-dim-num .v::-webkit-inner-spin-button { appearance: none; margin: 0; }
.v2-dim-num .v:focus { border-bottom-color: var(--accent); }
.cfg2-mobile .v2-dim-num .v { font-size: 40px; }
.v2-dim-num .u {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.v2-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin-top: -2px;
}
.v2-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  margin: 0;
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat;
  cursor: pointer;
  touch-action: pan-y;
}
.v2-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  background: var(--accent);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1.5px var(--ink);
  border-radius: 0;
}
.v2-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  background: var(--accent);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1.5px var(--ink);
  border-radius: 0;
}

@container (max-width: 420px) {
  .v2-field-head { align-items: flex-start; gap: 8px; }
  .v2-field-range { font-size: 8.5px; white-space: nowrap; }
  .v2-field-ctrl {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 6px;
  }
  .v2-step-btn2 { width: 36px; height: 36px; }
  .v2-dim-num .v { font-size: clamp(32px, 10vw, 40px); }
  .v2-dim-num .u {
    font-size: 9px;
  }
  .v2-readout .ro { padding: 9px 7px; }
  .v2-readout .k { font-size: 7px; letter-spacing: .05em; }
  .v2-readout .v { font-size: 15px; }
}

/* Readout strip */
.v2-readout {
  display: flex;
  border: 1.5px solid var(--line);
  margin-top: 4px;
}
.v2-readout .ro {
  flex: 1;
  padding: 12px 14px;
  border-right: 1.5px solid var(--line);
}
.v2-readout .ro:last-child { border-right: none; }
.v2-readout .k {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  margin-bottom: 5px;
}
.v2-readout .v {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ══════════════════════════════════════════
   SWATCHES V2
══════════════════════════════════════════ */
.v2-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}

.v2-swatch {
  border: 1.5px solid var(--line);
  cursor: pointer;
  background: var(--white);
  overflow: hidden;
  text-align: left;
  transition: border-color 0.15s;
  font-family: var(--sans);
  display: flex;
  flex-direction: column;
  -webkit-appearance: none;
}
.v2-swatch:hover { border-color: var(--ink-3); }
.v2-swatch.sel  { border-color: var(--ink); }

.v2-swatch-chip {
  flex: 0 0 68px;
  min-height: 68px;
  position: relative;
}
.v2-swatch-chip::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 9px);
}
/* Selected accent dot */
.v2-swatch.sel .v2-swatch-chip::before {
  content: '';
  position: absolute;
  top: 7px; right: 7px;
  width: 12px; height: 12px;
  background: var(--accent);
  z-index: 2;
}

.v2-swatch-meta {
  padding: 8px 11px;
  border-top: 1.5px solid var(--line);
}
.v2-swatch.sel .v2-swatch-meta { border-color: var(--ink); }

.v2-swatch-nm {
  display: block;
  font-weight: 700;
  font-size: 12px;
  color: var(--ink);
  line-height: 1.3;
}
.v2-swatch-ral {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink-3);
  margin-top: 1px;
}

.cfg2-mobile.v2-step-3 .v2-scroll,
.cfg2-mobile.v2-step-4 .v2-scroll {
  touch-action: pan-y;
}
.cfg2-mobile.v2-step-3 .v2-swatch,
.cfg2-mobile.v2-step-4 .v2-review,
.cfg2-mobile.v2-step-4 .v2-rev-row {
  touch-action: pan-y;
}

@container (max-width: 520px) {
  .cfg2-mobile .v2-swatches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .cfg2-mobile .v2-swatch-chip {
    flex-basis: 54px;
    min-height: 54px;
  }
  .cfg2-mobile .v2-swatch-meta { padding: 7px 9px; }
  .cfg2-mobile .v2-swatch-nm { font-size: 11.5px; }
  .cfg2-mobile .v2-swatch-ral { font-size: 8.5px; }
}

/* ══════════════════════════════════════════
   REVIEW V2
══════════════════════════════════════════ */
.v2-review { border-top: 1.5px solid var(--line-dark); }

.v2-review-dimensions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 2px;
}
.v2-review-dimensions > span { display: inline-flex; align-items: baseline; gap: 4px; }
.v2-review-dimensions b {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--accent);
}
.v2-review-dimensions strong {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.v2-review-dimensions small { font-family: var(--mono); font-size: 8px; color: var(--ink-3); }
.v2-review-dimensions i { font-style: normal; color: var(--ink-3); }

.v2-rev-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1.5px solid var(--line);
}
.v2-rev-n {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
}
.v2-rev-lab {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  margin-bottom: 3px;
}
.v2-rev-val {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.v2-rev-amt {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.v2-rev-amt.incl { color: var(--ink-3); font-weight: 400; }

.v2-rev-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 18px;
}
.v2-rev-total-k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.v2-rev-total-v {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 36px;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ══════════════════════════════════════════
   BOTTOM BAR V2
══════════════════════════════════════════ */
.v2-bar {
  flex: 0 0 auto;
  border-top: 1.5px solid var(--line-dark);
  padding: 14px var(--ph);
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(0, 1fr) auto;
  grid-template-areas: "price summary actions";
  align-items: center;
  column-gap: 18px;
  row-gap: 10px;
  background: var(--white);
  position: relative;
  z-index: 2;
}
.v2-bar.glass {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(18px) saturate(140%);
}

.v2-price { grid-area: price; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.v2-price-k {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.v2-price-v {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.v2-price-btw {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-3);
  font-weight: 400;
}

.v2-summary {
  grid-area: summary;
  padding-left: 18px;
  border-left: 1.5px solid var(--line);
  font-family: var(--mono);
  color: var(--ink-2);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: center;
  min-width: 0;
}
.v2-summary-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.v2-summary-k {
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.v2-summary-v {
  font-size: 10.5px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v2-summary .accent { color: var(--accent); font-weight: 700; }

.cfg2-mobile .v2-summary { display: none; }
.cfg2-mobile .v2-bar {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "price actions";
  gap: 10px;
}
.cfg2-mobile .v2-bar.has-back {
  grid-template-columns: 1fr;
  grid-template-areas:
    "price"
    "actions";
  row-gap: 8px;
  padding-top: 9px;
  padding-bottom: 10px;
}
.cfg2-mobile .v2-bar.has-back .v2-price {
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.cfg2-mobile .v2-bar.has-back .v2-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  width: 100%;
  gap: 8px;
}
.cfg2-mobile .v2-bar.has-back .v2-btn.primary {
  width: 100%;
  min-width: 0;
  justify-content: center;
}
.cfg2-mobile .v2-bar.has-back .v2-btn.ghost {
  border-color: var(--line);
  padding-left: 13px;
  padding-right: 13px;
}

.v2-actions { grid-area: actions; display: flex; gap: 8px; align-items: center; justify-content: flex-end; min-width: 0; }

@container (max-width: 660px) {
  .v2-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "price actions"
      "summary summary";
    padding-top: 8px;
    padding-bottom: 8px;
    row-gap: 6px;
  }

  .v2-summary {
    padding: 6px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .v2-price-v { font-size: 23px; }
}

@container (max-width: 420px) {
  .v2-summary { display: none; }
  .v2-btn { padding-left: 13px; padding-right: 13px; }
  .v2-btn.ghost { padding-left: 5px; padding-right: 5px; }
  .cfg2-mobile .v2-bar.has-back .v2-btn.ghost {
    padding-left: 11px;
    padding-right: 11px;
  }
}

.cfg2-mobile .v2-rev-row {
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 11px 0;
}
.cfg2-mobile.v2-step-4 .v2-review { margin-bottom: 6px; }
.cfg2-mobile.v2-step-4 .v2-rev-total { padding-top: 14px; }
.cfg2-mobile .v2-rev-row.dimensions {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
}
.cfg2-mobile .v2-rev-row.dimensions .v2-rev-amt {
  grid-column: 2;
  margin-top: 5px;
}
.cfg2-mobile .v2-review-dimensions {
  gap: 7px;
  padding: 7px 9px;
  background: var(--paper);
  border-left: 2px solid var(--accent);
  width: fit-content;
}
.cfg2-mobile .v2-rev-total-v { font-size: 29px; }

.v2-btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  padding: 11px 18px;
  border: 1.5px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: background 0.14s, color 0.14s;
  border-radius: 0;
}
.v2-btn:hover { background: var(--paper); }
.v2-btn.ghost {
  border-color: transparent;
  color: var(--ink-2);
  padding-left: 8px;
  padding-right: 8px;
}
.v2-btn.ghost:hover { background: var(--paper); color: var(--ink); }
.v2-btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.v2-btn.primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, black 12%);
}

/* ── Scrollbar ── */
.cfg2 ::-webkit-scrollbar { width: 8px; height: 8px; }
.cfg2 ::-webkit-scrollbar-track { background: var(--paper); }
.cfg2 ::-webkit-scrollbar-thumb { background: #d4d1c8; }
.cfg2 ::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

/* ── ElevationLight integration: suppress its own tags/labels (V2 supplies its own) ── */
.v2-render .l-tag,
.v2-render .l-block-label,
.v2-render .l-annot { display: none; }
