/* Ansatz 2 · Ansichten – five numbered steps with an index in the top bar, a stage with a contact sheet of
   rendered views on its left edge and a tool rail on its right. Stone + ink, Geist, square corners. */
.v2 {
  --stone: #EEEBE5; --stone-2: #E3DFD6; --paper: #FAF9F6; --ink: #121314; --ink-2: rgba(18, 19, 20, 0.64); --ink-3: rgba(18, 19, 20, 0.44);
  --line: rgba(18, 19, 20, 0.12); --line-2: rgba(18, 19, 20, 0.24); --accent: #EC8306;
  --ease: cubic-bezier(0.65, 0, 0.35, 1); --gut: 2.5rem; --top-h: 4.5rem;
  background: var(--stone); color: var(--ink); font-family: "Geist", "Helvetica Neue", Arial, sans-serif; font-size: 1rem; line-height: 1.45;
}
html:has(.v2) { scroll-behavior: smooth; }

/* ---- top bar: name · step index · Gemerkt, price, cart ---------------------------------------- */
.v2-top { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: minmax(min-content, 1fr) auto minmax(max-content, 1fr); align-items: center; gap: 2rem;
  height: var(--top-h); padding: 0 var(--gut); background: var(--stone); border-bottom: 1px solid var(--line); }
.v2-top__id { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.v2-top__logo { flex: none; }
.v2-top__logo svg { width: 1.5rem; height: 1.5rem; }
.v2-top__name { min-width: 0; padding-left: 1rem; border-left: 1px solid var(--line-2); }
.v2-top__name h1 { margin: 0; overflow: hidden; font-size: 1rem; font-weight: 500; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }
.v2-top__name span { display: block; overflow: hidden; color: var(--ink-2); font-size: 0.8125rem; white-space: nowrap; text-overflow: ellipsis; }

.v2-index { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.v2-index::-webkit-scrollbar { display: none; }
.v2-index ol { display: flex; margin: 0; padding: 0; list-style: none; }
.v2-index a { position: relative; display: inline-flex; align-items: center; gap: 0.4375rem; height: var(--top-h); padding: 0 0.75rem; color: var(--ink-2); font-size: 0.875rem; text-decoration: none; white-space: nowrap; transition: color 200ms ease; }
.v2-index a b { color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; transition: color 200ms ease; }
.v2-index a::after { content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: -1px; height: 2px; background: transparent; transition: background-color 260ms ease; }
.v2-index a:hover { color: var(--ink); }
.v2-index a[aria-current] { color: var(--ink); }
.v2-index a[aria-current] b { color: var(--ink); }
.v2-index a[aria-current]::after { background: var(--accent); }

.v2-top__end { display: flex; align-items: center; justify-content: flex-end; gap: 1.25rem; }
.v2-saved { font-size: 0.875rem; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 0.25em; transition: text-decoration-color 200ms ease; }
.v2-saved:hover { text-decoration-color: var(--ink); }
.v2-price { display: grid; justify-items: end; line-height: 1.2; }
.v2-price b { font-size: 1.125rem; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.v2-price b.is-flash { animation: v2-flash 900ms ease; }
.v2-price small { color: var(--ink-2); font-size: 0.75rem; white-space: nowrap; }

.v2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; height: 3rem; padding: 0 1.375rem; border: 1px solid transparent; font-size: 0.9375rem; text-decoration: none; white-space: nowrap; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.v2-btn--ink { background: var(--ink); color: var(--paper); }
.v2-btn--ink:hover { background: #2A2C2E; }
.v2-btn--line { border-color: var(--ink); color: var(--ink); }
.v2-btn--line:hover { background: var(--ink); color: var(--paper); }
.v2-btn--wide { width: 100%; }

/* ---- grid: view (sticky) left, steps right ---------------------------------------------------------- */
.v2-grid { display: grid; grid-template-columns: minmax(0, 1fr) 27rem; gap: 3rem; align-items: start; padding: 1.5rem var(--gut) 2rem; }
.v2-view { position: sticky; top: calc(var(--top-h) + 1.5rem); display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); height: calc(100svh - var(--top-h) - 3rem); min-height: 30rem;
  background: var(--paper); border: 1px solid var(--line); }

/* contact sheet: numbered views on the left edge of the stage */
.v2-sheet { display: flex; flex-direction: column; gap: 0.5rem; min-height: 0; margin: 0; padding: 0.75rem 0.5rem; overflow-y: auto; list-style: none; border-right: 1px solid var(--line); scrollbar-width: thin; }
.v2-shot { position: relative; display: grid; gap: 0.3125rem; width: 100%; padding: 0.3125rem; text-align: left; border: 1px solid transparent; transition: border-color 220ms ease; }
.v2-shot__n { color: var(--ink-3); font-size: 0.75rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; transition: color 200ms ease; }
.v2-shot__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--stone-2); }
.v2-shot__img img { width: 100%; height: 100%; object-fit: cover; animation: v2-fadein 500ms ease both; }
.v2-shot__t { color: var(--ink-2); font-size: 0.75rem; line-height: 1.25; }
.v2-shot:hover { border-color: var(--line-2); }
.v2-shot[aria-pressed="true"] { border-color: var(--ink); }
.v2-shot[aria-pressed="true"] .v2-shot__n, .v2-shot[aria-pressed="true"] .v2-shot__t { color: var(--ink); }
.v2-shot[aria-pressed="true"]::before { content: ""; position: absolute; top: 0.3125rem; right: 0.3125rem; width: 0.375rem; height: 0.375rem; background: var(--accent); }

.v2-stage { position: relative; min-width: 0; overflow: hidden; background: #ECEAE5; transition: background-color 600ms ease; }
.v2-stage[data-scene="plain"] { background: #F4F3F0; }
.v2-stage[data-scene="patio"] { background: #C9D3DA; }
.v2-stage.is-night { background: #17181A; }
.v2-stage:fullscreen { width: 100%; height: 100%; }
.v2-gl { position: absolute; inset: 0; --q-night-950: #ECEAE5; }
.v2-gl canvas { display: block; width: 100% !important; height: 100% !important; touch-action: none; }

/* the cut: old picture on top, fades out while the camera arrives */
.v2-fade { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.v2-fade.is-on { opacity: 1; }
.v2-fade.is-out { opacity: 0; transition: opacity 700ms ease; }

/* scene: square segmented control, top right */
.v2-scene { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 5; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; max-width: calc(100% - 1.5rem); }
.v2-seg { display: flex; background: var(--paper); border: 1px solid var(--line-2); }
.v2-seg button { height: 2.25rem; padding: 0 0.75rem; color: var(--ink-2); font-size: 0.8125rem; white-space: nowrap; transition: background-color 200ms ease, color 200ms ease; }
.v2-seg button + button { border-left: 1px solid var(--line); }
.v2-seg button:hover { color: var(--ink); }
.v2-seg button[aria-checked="true"] { background: var(--ink); color: var(--paper); }

/* tool rail: 360°, picture, full screen – right edge */
.v2-icons { position: absolute; top: 50%; right: 0.75rem; z-index: 5; display: grid; gap: 0.375rem; transform: translateY(-50%); }
.v2-icons button { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; background: var(--paper); border: 1px solid var(--line-2); transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease; }
.v2-icons button:hover { border-color: var(--ink); }
.v2-icons button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.v2-icons svg { width: 1.25rem; height: 1.25rem; }

/* caption of the view, bottom left */
.v2-cap { position: absolute; left: 0.75rem; bottom: 0.75rem; z-index: 4; display: flex; align-items: baseline; gap: 0.5rem; margin: 0; padding: 0.3125rem 0.625rem; background: var(--paper); border: 1px solid var(--line); font-size: 0.8125rem; pointer-events: none; }
.v2-cap b { font-weight: 600; font-variant-numeric: tabular-nums; }
.v2-cap span { color: var(--ink-2); }
.v2-stage.is-adding .v2-cap { visibility: hidden; }

.v2-hint { position: absolute; left: 0.75rem; bottom: 0.75rem; z-index: 5; display: flex; align-items: center; gap: 0.75rem; max-width: calc(100% - 5rem); margin: 0; padding: 0.375rem 0.375rem 0.375rem 0.875rem;
  background: var(--paper); border: 1px solid var(--line-2); font-size: 0.8125rem; animation: v2-fadein 400ms ease both; }
.v2-hint button { flex: none; height: 2rem; padding: 0 0.875rem; background: var(--ink); color: var(--paper); font-size: 0.8125rem; transition: background-color 200ms ease; }
.v2-hint button:hover { background: #2A2C2E; }
.v2-empty { position: absolute; top: 50%; left: 50%; z-index: 4; width: min(22rem, calc(100% - 2rem)); margin: 0; padding: 1rem 1.25rem; transform: translate(-50%, -50%);
  background: var(--paper); border: 1px solid var(--line-2); color: var(--ink-2); font-size: 0.875rem; text-align: center; }

/* selected module */
.v2-sel { position: absolute; right: 4rem; bottom: 0.75rem; z-index: 6; width: 21rem; max-height: calc(100% - 4.5rem); overflow-y: auto; padding: 1rem; background: var(--paper); border: 1px solid var(--line-2);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.12); animation: v2-rise 420ms var(--ease) both; }
.v2-sel__head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.v2-sel__head b { font-weight: 500; }
.v2-sel__head button { display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid transparent; transition: border-color 200ms ease; }
.v2-sel__head button:hover { border-color: var(--line-2); }
.v2-sel__head svg { width: 1.125rem; height: 1.125rem; }
.v2-sel__l { margin: 0.75rem 0 0.375rem; color: var(--ink-2); font-size: 0.75rem; }
.v2-sel__types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.25rem; }
.v2-sel__types button { position: relative; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.1875rem 0.5rem 0.1875rem 0.1875rem; border: 1px solid var(--line); text-align: left; transition: border-color 200ms ease; }
.v2-sel__types button:hover { border-color: var(--ink-3); }
.v2-sel__types button[aria-pressed="true"] { border-color: var(--ink); }
.v2-sel__types button[aria-pressed="true"]::before { content: ""; position: absolute; top: 0.25rem; right: 0.25rem; width: 0.375rem; height: 0.375rem; background: var(--accent); }
.v2-sel__types img { width: 2.25rem; height: 2.25rem; object-fit: cover; mix-blend-mode: multiply; }
.v2-sel__types span { font-size: 0.75rem; line-height: 1.2; }
.v2-sel__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.v2-pad { display: grid; grid-template-columns: repeat(3, 2.25rem); grid-template-rows: repeat(2, 2.25rem); gap: 0.25rem; }
.v2-pad button { display: grid; place-items: center; border: 1px solid var(--line-2); transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease; }
.v2-pad button:hover { border-color: var(--ink); }
.v2-pad button:active { background: var(--ink); color: var(--paper); }
.v2-pad button:nth-child(1) { grid-column: 2; grid-row: 1; }
.v2-pad button:nth-child(2) { grid-column: 1; grid-row: 2; }
.v2-pad button:nth-child(3) { grid-column: 3; grid-row: 2; }
.v2-pad button:nth-child(4) { grid-column: 2; grid-row: 2; }
.v2-pad svg { width: 1.125rem; height: 1.125rem; }
.v2-sel__acts { display: grid; gap: 0.375rem; flex: 1; max-width: 9rem; }
.v2-sel__acts .v2-btn { height: 2.25rem; padding: 0 0.75rem; font-size: 0.875rem; }
.v2-sel__keys { margin: 0.75rem 0 0; color: var(--ink-2); font-size: 0.75rem; }
@media (hover: none) { .v2-sel__keys { display: none; } }

/* ---- the five steps --------------------------------------------------------------------------------- */
.v2-steps { min-width: 0; padding-bottom: 1rem; }
.v2-step { scroll-margin-top: calc(var(--top-h) + 1.5rem); }
.v2-step + .v2-step { margin-top: 4rem; }
.v2-step__head { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; margin-bottom: 1.5rem; padding-top: 1rem; border-top: 0.25rem solid var(--ink); }
.v2-step__n { font-size: 3.25rem; font-weight: 300; line-height: 0.85; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.v2-step__head h2 { margin: 0; font-size: 1.375rem; font-weight: 500; line-height: 1.2; }
.v2-step__head p { margin: 0.375rem 0 0; color: var(--ink-2); font-size: 0.875rem; }

.v2-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.625rem; margin: 2rem 0 0.75rem; font-size: 0.9375rem; font-weight: 600; }
.v2-sub span { color: var(--ink-2); font-size: 0.8125rem; font-weight: 400; }
#have .v2-sub, .v2-step__head + .v2-sub { margin-top: 0; }
.v2-aside { margin: 0.875rem 0 0; color: var(--ink-2); font-size: 0.8125rem; }

/* square tiles: picture, name, price */
.v2-tiles { display: grid; gap: 1.25rem 0.75rem; }
.v2-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v2-tiles > .v2-aside { grid-column: 1 / -1; margin: 0; }
.v2-tile { display: grid; align-content: start; gap: 0.125rem; min-width: 0; text-align: left; }
.v2-tile__pic { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--paper); border: 1px solid var(--line); transition: border-color 220ms ease, box-shadow 220ms ease; }
.v2-tile[data-tpl] .v2-tile__pic { aspect-ratio: 4 / 3; }
.v2-tile__pic img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.v2-tile__name { margin-top: 0.5rem; font-size: 0.875rem; font-weight: 500; line-height: 1.25; overflow-wrap: break-word; }
.v2-tile__meta { color: var(--ink-2); font-size: 0.8125rem; line-height: 1.35; }
.v2-tile__meta em { display: block; margin-top: 0.125rem; color: var(--ink); font-style: normal; }
.v2-tile:hover .v2-tile__pic { border-color: var(--ink-3); }
.v2-tile[aria-pressed="true"] .v2-tile__pic, .v2-tile[aria-checked="true"] .v2-tile__pic { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.v2-tile[aria-pressed="true"] .v2-tile__pic::after, .v2-tile[aria-checked="true"] .v2-tile__pic::after { content: ""; position: absolute; top: 0.5rem; left: 0.5rem; width: 0.5rem; height: 0.5rem; background: var(--accent); }
.v2-tile__sw { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.14)), var(--sw); }
.v2-tile__ok { position: absolute; top: 0.375rem; right: 0.375rem; display: grid; place-items: center; width: 1.375rem; height: 1.375rem; background: var(--paper); border: 1px solid var(--line-2); transition: background-color 220ms ease, border-color 220ms ease; }
.v2-tile__ok svg { width: 0.875rem; height: 0.875rem; color: var(--paper); opacity: 0; transition: opacity 220ms ease; }
.v2-tile[aria-checked="true"] .v2-tile__ok { background: var(--ink); border-color: var(--ink); }
.v2-tile[aria-checked="true"] .v2-tile__ok svg { opacity: 1; }
.v2-tile:disabled { opacity: 0.4; cursor: default; }
.v2-tile:disabled:hover .v2-tile__pic { border-color: var(--line); }

.v2-free { display: flex; align-items: center; gap: 0.875rem; width: 100%; margin-top: 1.25rem; padding: 0.875rem 1rem; border: 1px dashed var(--line-2); text-align: left; transition: border-color 200ms ease; }
.v2-free:hover { border-color: var(--ink); }
.v2-free[aria-pressed="true"] { border-style: solid; border-color: var(--ink); }
.v2-free svg { flex: none; width: 1.25rem; height: 1.25rem; }
.v2-free span { display: grid; gap: 0.125rem; }
.v2-free b { font-size: 0.9375rem; font-weight: 500; }
.v2-free small { color: var(--ink-2); font-size: 0.8125rem; }

.v2-have { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.v2-have button { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) auto; align-items: center; gap: 0.625rem; padding: 0.3125rem 0.75rem 0.3125rem 0.3125rem; background: var(--paper); border: 1px solid var(--line); font-size: 0.8125rem; line-height: 1.25; text-align: left; transition: border-color 200ms ease; }
.v2-have button:hover { border-color: var(--ink); }
.v2-have img { width: 2.75rem; height: 2.75rem; object-fit: cover; mix-blend-mode: multiply; }
.v2-have b { font-weight: 600; font-variant-numeric: tabular-nums; }
.v2-warn { margin: 0.75rem 0 0; padding: 0.625rem 0.75rem; background: var(--paper); border-left: 2px solid var(--accent); font-size: 0.8125rem; }
.v2-rules { display: flex; flex-wrap: wrap; gap: 0.375rem 1.25rem; margin: 1.25rem 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 0.8125rem; }
.v2-rules li::before { content: ""; display: inline-block; width: 0.3125rem; height: 0.3125rem; margin-right: 0.5rem; vertical-align: 0.15em; background: var(--ink-3); }

.v2-switch { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.25rem; font-size: 0.875rem; text-align: left; }
.v2-switch i { flex: none; position: relative; width: 2.5rem; height: 1.375rem; border: 1px solid var(--ink-2); transition: background-color 260ms ease, border-color 260ms ease; }
.v2-switch i::after { content: ""; position: absolute; top: 0.1875rem; left: 0.1875rem; width: 0.875rem; height: 0.875rem; background: var(--ink); transition: transform 260ms var(--ease), background-color 260ms ease; }
.v2-switch[aria-checked="true"] i { background: var(--ink); border-color: var(--ink); }
.v2-switch[aria-checked="true"] i::after { transform: translateX(1.125rem); background: var(--paper); }

#mount .v2-sub { margin-top: 2rem; }
.v2-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; width: 100%; margin: 0; padding: 0.75rem 0; border-bottom: 1px solid var(--line); font-size: 0.875rem; text-align: left; }
#mount .v2-sub + .v2-row { border-top: 1px solid var(--line); }
.v2-row small { display: block; color: var(--ink-2); font-size: 0.8125rem; }
.v2-row b { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
button.v2-row { transition: border-color 200ms ease; }
button.v2-row:hover { border-bottom-color: var(--ink); }
.v2-link { margin-top: 1.25rem; font-size: 0.875rem; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 0.25em; transition: text-decoration-color 200ms ease; }
.v2-link:hover { text-decoration-color: var(--ink); }
.v2-next { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding: 1rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); color: var(--ink); font-size: 0.9375rem; font-weight: 500; text-decoration: none; transition: color 200ms ease; }
.v2-next:hover { color: var(--ink-2); }
.v2-next svg { width: 1.25rem; height: 1.25rem; }

/* ---- 05 Übersicht ---------------------------------------------------------------------------------- */
.v2-sum { margin-top: 3rem; padding: 0 var(--gut) 5rem; }
.v2-sum__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(20rem, 1fr); gap: 2.5rem 3rem; align-items: start; }
.v2-sum__pics { grid-column: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem 0.75rem; }
.v2-sum__pics figure { margin: 0; }
.v2-sum__pics figure:first-child { grid-column: 1 / -1; }
.v2-sum__pics img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--stone-2); animation: v2-fadein 700ms ease both; }
.v2-sum__pics figcaption { display: flex; gap: 0.5rem; margin-top: 0.4375rem; color: var(--ink-2); font-size: 0.8125rem; }
.v2-sum__pics figcaption b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.v2-sum__pics > .v2-aside { grid-column: 1 / -1; margin: 0; }
.v2-sum__side { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: calc(var(--top-h) + 1.5rem); display: grid; gap: 1rem; }
.v2-sum__main { grid-column: 1; }

/* the shared Übersicht in this page's look */
.v2 .so { --so-ink: var(--ink); --so-ink-2: var(--ink-2); --so-line: var(--line-2); --so-bg: var(--paper); --so-accent: var(--accent); --so-display: inherit; gap: 2.25rem; }
.v2 .so-h { padding-top: 0.75rem; border-top: 1px solid var(--ink); font-size: 0.9375rem; }
.v2 .so-facts .so-total { font-size: 1.75rem; font-weight: 500; }
.v2 .so-pic { display: none; }   /* the four views stand next to it */
.v2 .so-acts button { min-height: 2.75rem; }
.v2 .so-bom tfoot td:last-child { text-align: right; white-space: nowrap; }

/* ---- phones: price + cart bar ---------------------------------------------------------------------- */
.v2-mbar { display: none; }

/* ---- dialogs (side sheet; the dialog itself darkens the page) ---------------------------------------- */
.v2-dlg { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: rgba(18, 19, 20, 0.4); color: var(--ink); }
.v2-dlg[open] { animation: v2-fadein 300ms ease both; }
.v2-dlg::backdrop { background: transparent; }
.v2-dlg__in { position: absolute; top: 0; right: 0; bottom: 0; display: grid; align-content: start; gap: 1rem; width: min(30rem, 100%); overflow-y: auto; padding: 1.25rem 1.5rem 2rem; background: var(--stone);
  animation: v2-sheet 480ms var(--ease) backwards; }
.v2-dlg__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 0.75rem; border-bottom: 0.25rem solid var(--ink); }
.v2-dlg__head h2 { margin: 0; font-size: 1.375rem; font-weight: 500; }
.v2-dlg__x { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line-2); transition: border-color 200ms ease; }
.v2-dlg__x:hover { border-color: var(--ink); }
.v2-dlg__x svg { width: 1.25rem; height: 1.25rem; }
.v2-dlg__lead { margin: 0; color: var(--ink-2); font-size: 0.875rem; }
.v2-cartd__pic { margin: 0; }
.v2-cartd__pic img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--stone-2); }
.v2-cartd__pic figcaption { margin-top: 0.375rem; color: var(--ink-2); font-size: 0.75rem; }
.v2-cartd__facts { margin: 0; }
.v2-cartd__facts div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); font-size: 0.875rem; }
.v2-cartd__facts dt { color: var(--ink-2); }
.v2-cartd__facts dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.v2-cartd__facts .v2-cartd__total { align-items: flex-end; border-bottom: 0; padding-top: 0.75rem; }
.v2-cartd__total dt { color: var(--ink); font-weight: 500; }
.v2-cartd__total dt small { display: block; color: var(--ink-2); font-size: 0.75rem; font-weight: 400; }
.v2-cartd__total dd { font-size: 1.5rem; font-weight: 500; }
.v2-cartd__note { margin: 0; padding: 0.5rem 0 0.5rem 0.75rem; border-left: 2px solid var(--accent); font-size: 0.875rem; }
.v2-cartd__acts { display: grid; gap: 0.5rem; }
.v2-tech { margin: 0; }
.v2-tech div { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; padding: 0.625rem 0; border-bottom: 1px solid var(--line); font-size: 0.875rem; }
.v2-tech dt { color: var(--ink-2); }
.v2-tech dd { margin: 0; }
.v2-tech h3 { margin: 1.25rem 0 0.25rem; font-size: 0.875rem; font-weight: 600; }
.v2-load { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.v2-load img { width: 6.5rem; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--stone-2); }
.v2-load b { display: block; font-weight: 500; }
.v2-load span { display: block; color: var(--ink-2); font-size: 0.8125rem; }
.v2-load div:last-child { display: grid; gap: 0.25rem; justify-items: end; }
.v2-load .v2-btn { height: 2.25rem; padding: 0 0.875rem; font-size: 0.8125rem; }
.v2-load .v2-link { margin: 0; font-size: 0.8125rem; }

@keyframes v2-fadein { from { opacity: 0; } }
@keyframes v2-rise { from { opacity: 0; transform: translateY(0.75rem); } }
@keyframes v2-sheet { from { transform: translateX(100%); } }
@keyframes v2-flash { 0% { color: var(--accent); } 100% { color: inherit; } }

/* ---- narrower desktops ------------------------------------------------------------------------------ */
@media (max-width: 80rem) {
  .v2 { --gut: 2rem; }
  .v2-top { gap: 1rem; }
  .v2-top__name span { display: none; }
  .v2-index a { padding: 0 0.5rem; font-size: 0.8125rem; }
  .v2-index a::after { left: 0.5rem; right: 0.5rem; }
  .v2-grid { grid-template-columns: minmax(0, 1fr) 23rem; gap: 2rem; }
  .v2-view { grid-template-columns: 6.25rem minmax(0, 1fr); }
  .v2-tiles { gap: 1rem 0.625rem; }
}
@media (max-width: 72rem) and (min-width: 64rem) {
  .v2-top__logo .st-word { display: none; }
  .v2-top__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .v2-saved { font-size: 0.8125rem; }
  .v2-top .v2-btn { padding: 0 1rem; }
}

/* ---- tablets + phones: stage on top (sticky), views as numbered squares, steps below, bar at the bottom ---- */
@media (max-width: 63.99rem) {
  .v2 { --gut: 1rem; --top-h: 5.75rem; --stage-h: clamp(10rem, 30svh, 24rem); padding-bottom: 5.5rem; }
  .v2-top { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 3rem 2.75rem; gap: 0; height: var(--top-h); padding: 0; }
  .v2-top__id { padding: 0 var(--gut) 0 1.5rem; gap: 0.75rem; }
  .v2-top__name { padding-left: 0.75rem; }
  .v2-top__name span { display: block; font-size: 0.75rem; }
  .v2-top__end { grid-column: 2; grid-row: 1; padding-right: var(--gut); }
  .v2-top__end .v2-price, .v2-top__end .v2-btn { display: none; }
  .v2-index { grid-column: 1 / -1; overflow-x: auto; border-top: 1px solid var(--line); }
  .v2-index ol { padding: 0 0.5rem; }
  .v2-index a { height: 2.75rem; padding: 0 0.625rem; font-size: 0.8125rem; }
  .v2-index a::after { left: 0.625rem; right: 0.625rem; }

  .v2-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding: 0 var(--gut) 2rem; }
  .v2-view { top: var(--top-h); z-index: 10; grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--stage-h) auto; height: auto; min-height: 0;
    margin: 0 calc(-1 * var(--gut)); background: var(--stone); border: 0; border-bottom: 1px solid var(--line); }
  .v2-stage { grid-row: 1; }
  .v2-sheet { grid-row: 2; flex-direction: row; gap: 0.375rem; padding: 0.5rem var(--gut); overflow-x: auto; overflow-y: hidden; border: 0; scrollbar-width: none; }
  .v2-sheet::-webkit-scrollbar { display: none; }
  .v2-sheet li { flex: none; }
  .v2-shot { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; background: var(--paper); border-color: var(--line-2); }
  .v2-shot__img, .v2-shot__t { display: none; }
  .v2-shot__n { font-size: 0.8125rem; color: var(--ink-2); }
  .v2-shot[aria-pressed="true"]::before { top: 0.1875rem; right: 0.1875rem; width: 0.3125rem; height: 0.3125rem; }

  .v2-scene { top: 0.5rem; left: 0.5rem; right: 0.5rem; justify-content: flex-start; flex-wrap: nowrap; gap: 0.375rem; max-width: none; }
  .v2-seg button { height: 2rem; padding: 0 0.5rem; font-size: 0.75rem; }
  .v2-icons { top: auto; bottom: 0.5rem; right: 0.5rem; grid-auto-flow: column; transform: none; }
  .v2-icons button { width: 2.25rem; height: 2.25rem; }
  .v2-icons svg { width: 1.125rem; height: 1.125rem; }
  .v2-cap { left: 0.5rem; bottom: 0.5rem; padding: 0.25rem 0.5rem; font-size: 0.75rem; }
  .v2-hint { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; max-width: none; font-size: 0.75rem; }
  .v2-empty { font-size: 0.8125rem; padding: 0.75rem 1rem; }
  .v2-sel { position: fixed; left: 0; right: 0; bottom: calc(4.25rem + env(safe-area-inset-bottom)); z-index: 50; width: auto; max-height: 58svh; padding: 1rem var(--gut); border-width: 1px 0; }

  .v2-step { scroll-margin-top: calc(var(--top-h) + var(--stage-h) + 4.25rem); }
  .v2-step + .v2-step { margin-top: 3rem; }
  .v2-step__head { grid-template-columns: 3.5rem minmax(0, 1fr); gap: 0.75rem; }
  .v2-step__n { font-size: 2.5rem; }
  .v2-step__head h2 { font-size: 1.25rem; }

  .v2-sum { margin-top: 2.5rem; padding-bottom: 3rem; }
  .v2-sum.v2-step { scroll-margin-top: calc(var(--top-h) + 1rem); }
  .v2-sum__grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .v2-sum__pics, .v2-sum__side, .v2-sum__main { grid-column: 1; grid-row: auto; }
  .v2-sum__side { position: static; }

  .v2-mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.75rem var(--gut) calc(0.75rem + env(safe-area-inset-bottom)); background: var(--stone); border-top: 1px solid var(--line-2); }
  .v2-mbar .v2-price { justify-items: start; }
  .v2-mbar .v2-btn { height: 2.75rem; padding: 0 1.125rem; }
  .v2-tech div { grid-template-columns: 8rem 1fr; }
}
@media (max-width: 40rem) {
  .v2-top__logo .st-word { display: none; }
  .v2-tiles { gap: 1rem 0.5rem; }
  .v2-tile__name { font-size: 0.8125rem; }
  .v2-tile__meta { font-size: 0.75rem; }
  .v2-have { grid-template-columns: minmax(0, 1fr); }
  .v2-dlg__in { padding: 1rem var(--gut) 1.5rem; }
}
@media (max-width: 22rem) {
  .v2-tiles--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-seg button { padding: 0 0.375rem; }
  .v2-top__end .v2-saved { font-size: 0.75rem; }
}
/* phones held sideways: no sticky stage */
@media (max-width: 63.99rem) and (max-height: 32rem) {
  .v2-view { position: relative; top: auto; }
  .v2-step { scroll-margin-top: calc(var(--top-h) + 1rem); }
}
