/* Unit Lab brand tokens — HEX #FF8100 (고유 컬러, amPR/브랜드 CI)
   Neutrals: white + Cool Gray–adjacent light gray for right rail */
:root {
  --bg: #ffffff;
  --ink: #111111;
  --ink-soft: #333333;
  --muted: #888888;
  --line: #e8e8e8;
  --gray-50: #f3f3f3;
  --gray-100: #ececec;
  --panel: #ffffff;
  --panel-edge: #e6e6e6;
  --rail-bg: var(--gray-50);
  --select: #ff8100;
  --select-soft: rgba(255, 129, 0, 0.1);
  --accent: #ff8100;
  --accent-hover: #e67300;
  --price-up: #ff8100;
  --price-down: #2f7d6d;
  --font: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, "Apple SD Gothic Neo", sans-serif;
  --bar-h: 76px;
  --top-h: 56px;
  --step-h: 44px;
  --rail-w: 380px;
  --swatch: 48px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 160ms;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--select);
  outline-offset: 2px;
}

/* ── shell: full-viewport app chrome ── */
.maker {
  height: 100dvh;
  display: grid;
  grid-template-rows: var(--top-h) var(--step-h) minmax(0, 1fr) var(--bar-h);
  position: relative;
  overflow: hidden;
}

.maker-top {
  z-index: 20;
  height: var(--top-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.maker-brand {
  justify-self: start;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  line-height: 0;
}
.maker-brand img { height: 22px; width: auto; display: block; }

.maker-model {
  margin: 0;
  justify-self: center;
  min-width: 0;
  /* 모델명은 절대 줄바꿈하지 않는다 — 좁은 화면에서 "U-6-2"가 세 줄로 쪼개졌다.
     공간이 부족하면 줄임표로 접고, 양옆 요소가 먼저 줄어든다. */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
}

.maker-top-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 56px;
  min-height: 40px;
  padding: 0 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #888;
  line-height: 1;
}

.lang-btn .lang-opt { color: #aaa; }
.lang-btn .lang-opt.is-active { color: #111; }
.lang-btn .lang-sep { color: #ccc; font-weight: 400; }

/* 상담 신청 — unithaus 헤더 CTA와 같은 다크 pill */
.maker-consult {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity var(--dur) var(--ease);
}
.maker-consult:hover { opacity: 0.85; }

.maker-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  line-height: 1;
  text-decoration: none;
  color: #222;
  border-radius: 8px;
  transition: background var(--dur) var(--ease);
}
.maker-close:hover { background: #f3f3f3; }

/* ── stepper ── */
.maker-steps {
  z-index: 19;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 0 20px;
  min-height: var(--step-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.step-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 10px 2px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #aaa;
  transition: color var(--dur) var(--ease);
  position: relative;
}
.step-chip[aria-current="step"] {
  color: var(--ink);
  font-weight: 700;
}
.step-chip[aria-current="step"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--select);
  border-radius: 1px;
}
.step-chip:hover { color: #555; }
.step-chip .chev {
  color: #d0d0d0;
  font-weight: 400;
  margin-left: 4px;
}

/* ── main: preview LEFT + options RIGHT ── */
.maker-main {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail-w);
  overflow: hidden;
}

.maker-preview {
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  padding: 28px 32px;
  overflow: hidden;
}

/* 모든 단계 공통: 프레임에 절대 배치 + object-fit contain.
   width/height:auto + max-% 는 grid에서 intrinsic min으로 커져
   overflow:hidden에 잘림(패키지·구조·외부 등). letterbox 허용. */
.maker-preview-frame {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.maker-preview-frame img {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  object-view-box: unset;
  transform: none;
  transition: opacity var(--dur) var(--ease);
}

/* 레이아웃 단계: zoom 1.0 = 프레임 안 true contain.
   휠 줌(1.0–1.3) + 드래그 패닝. 욕실 is-scene-fill과 분리. */
.maker-preview.is-layout-zoom {
  cursor: grab;
  touch-action: none;
  user-select: none;
  overflow: hidden;
  padding: 36px 40px;
}
.maker-preview.is-layout-zoom.is-layout-panning {
  cursor: grabbing;
}
.maker-preview.is-layout-zoom .maker-preview-frame img {
  transform-origin: center center;
  transition:
    opacity var(--dur) var(--ease),
    transform 0.14s ease-out;
  pointer-events: none;
}
.maker-preview.is-layout-zoom.is-layout-panning .maker-preview-frame img {
  transition: opacity var(--dur) var(--ease);
}

/* 욕실/내부: 흰 배경으로 letterbox 맞춤 (사이징은 공통 contain). */
.maker-preview.is-scene-fill {
  background: #fff;
  overflow: hidden;
  padding: 28px 32px;
}
.maker-preview.is-scene-fill .maker-preview-frame {
  background: #fff;
}

/* 구조 STEEL/WOOD PNG 플레이트(#f3f2f3 / #ededed)를 미리보기 배경에 맞춤.
   순백이 아니라 multiply로는 안 사라지고, 배경 매칭이 맞음. 다른 단계는 기본 --bg. */
.maker-preview.is-structure-blend.is-structure-steel {
  background: #f3f2f3;
}
.maker-preview.is-structure-blend.is-structure-wood {
  background: #ededed;
}

.maker-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--rail-bg);
  border-left: 1px solid var(--panel-edge);
  overflow: hidden;
}

.maker-panel-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 22px 28px;
  scrollbar-width: thin;
}

.maker-step-title {
  margin: 0 0 20px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.maker-groups {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.opt-group h2 {
  margin: 0 0 10px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.opt-group-desc {
  margin: -2px 0 12px;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: pre-line;
  line-height: 1.45;
}

.opt-subgroup {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.opt-subgroup + .opt-subgroup {
  margin-top: 18px;
}
.opt-tag {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted);
  line-height: 1.3;
}

.opt-list {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}
.opt-list.opt-cols-1 { grid-template-columns: 1fr; }
.opt-list.opt-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt-list.opt-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.opt-wrap {
  position: relative;
  min-width: 0;
}
.opt-wrap .opt-card {
  height: 100%;
}
.opt-wrap.has-detail .opt-card {
  padding-right: 34px;
}
.opt-detail {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  background: rgba(255, 255, 255, 0.94);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  color: #666;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.opt-detail:hover {
  background: #fff;
  color: var(--ink);
  border-color: #c8c8c8;
}
.opt-list.opt-cols-3 .opt-detail {
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  font-size: 0.6875rem;
}

.opt-card {
  width: 100%;
  min-width: 0;
  text-align: left;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
  cursor: pointer;
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease);
}
.opt-card.has-swatch {
  display: grid;
  grid-template-columns: var(--swatch) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
}
.opt-wrap.has-detail .opt-card.has-swatch {
  padding-right: 34px;
}
/* Multi-col: stack swatch above label so 2–3 cards fit side-by-side */
.opt-list.opt-cols-2 .opt-card.has-swatch,
.opt-list.opt-cols-3 .opt-card.has-swatch {
  grid-template-columns: 1fr;
  justify-items: start;
  gap: 6px;
  padding: 8px;
}
.opt-list.opt-cols-2 .opt-swatch,
.opt-list.opt-cols-3 .opt-swatch {
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
  background: #fff;
}
.opt-list.opt-cols-2 .opt-card,
.opt-list.opt-cols-3 .opt-card {
  padding: 8px;
}
.opt-list.opt-cols-3 .opt-card,
.opt-list.opt-cols-3 .opt-card.has-swatch {
  padding: 7px;
  gap: 5px;
}
.opt-list.opt-cols-2 .opt-wrap.has-detail .opt-card,
.opt-list.opt-cols-3 .opt-wrap.has-detail .opt-card,
.opt-list.opt-cols-2 .opt-wrap.has-detail .opt-card.has-swatch,
.opt-list.opt-cols-3 .opt-wrap.has-detail .opt-card.has-swatch {
  padding-right: 26px;
}
.opt-list.opt-cols-2 .opt-name,
.opt-list.opt-cols-3 .opt-name {
  font-size: 0.8125rem;
}
.opt-list.opt-cols-3 .opt-name {
  font-size: 0.75rem;
  margin-bottom: 2px;
}
.opt-list.opt-cols-3 .opt-desc {
  display: none;
}
.opt-card:hover { border-color: #c8c8c8; }
.opt-card[aria-pressed="true"] {
  border-color: var(--select);
  box-shadow: 0 0 0 1px var(--select);
  background: var(--select-soft);
}

.opt-swatch {
  width: var(--swatch);
  height: var(--swatch);
  border-radius: 6px;
  object-fit: contain;
  object-position: center;
  background: var(--gray-100);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: block;
}
.opt-card[aria-pressed="true"] .opt-swatch {
  box-shadow: 0 0 0 1.5px var(--select);
}

.opt-body { min-width: 0; }

.opt-name {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 3px;
  letter-spacing: -0.01em;
  /* CJK: break at spaces only — never mid-syllable ("패키지") */
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height: 1.35;
}
.opt-price {
  margin: 0;
  font-size: 0.75rem;
  color: #666;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  line-height: 1.15;
  white-space: nowrap;
}
.opt-price .price-odometer {
  height: 1em;
}
.opt-price .price-digit {
  width: 0.55em;
  flex: 0 0 auto;
}
.opt-price .price-sep,
.opt-price .price-suffix,
.opt-price .price-prose {
  flex: 0 0 auto;
  white-space: nowrap;
}
.opt-list.opt-cols-2 .opt-price,
.opt-list.opt-cols-3 .opt-price {
  font-size: 0.6875rem;
}
.opt-card[aria-pressed="true"] .opt-price {
  color: var(--select);
  font-weight: 600;
}
.opt-desc {
  margin: 6px 0 0;
  font-size: 0.6875rem;
  color: #999;
  white-space: pre-line;
  line-height: 1.4;
}

.maker-stub {
  margin: 8px 0 0;
  padding: 14px 16px;
  background: #fafafa;
  border: 1px dashed #ccc;
  border-radius: 8px;
  color: #777;
  font-size: 0.8125rem;
}

/* ── sticky footer bar ── */
.maker-bar {
  z-index: 30;
  min-height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.03);
}

.maker-price-label {
  display: block;
  font-size: 0.6875rem;
  color: var(--muted);
  margin-bottom: 2px;
  letter-spacing: 0.01em;
}
.maker-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── 라인업 알약 토글 (에센셜 ↔ 비스포크) ── */
.lineup-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--gray-100);
  border: 1px solid var(--line);
}
.lineup-toggle:empty { display: none; }
.lineup-pill {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0 14px;
  min-height: 30px;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.lineup-pill:hover { color: var(--ink-soft); }
.lineup-pill[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.lineup-pill[aria-pressed="true"].is-bespoke { color: var(--accent); }
.maker-price-value {
  display: inline-block;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  line-height: 1.15;
  color: var(--ink);
  transition: color 280ms var(--ease);
  transform-origin: left center;
}
.maker-price-value.is-price-up {
  color: var(--price-up);
}
.maker-price-value.is-price-down {
  color: var(--price-down);
}

.price-odometer {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  height: 1.15em;
  line-height: 1;
  white-space: nowrap;
}
.price-odometer.is-crossfade {
  transition: opacity 160ms ease;
}
.price-digit {
  display: inline-block;
  position: relative;
  width: 0.62em;
  height: 1em;
  overflow: hidden;
  vertical-align: baseline;
  flex: 0 0 auto;
}
.price-digit-strip {
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.price-digit-num {
  display: block;
  height: 1em;
  line-height: 1;
  text-align: center;
}
.price-sep,
.price-suffix,
.price-prose {
  display: inline-block;
  line-height: 1;
  flex: 0 0 auto;
  white-space: nowrap;
}
.price-suffix {
  margin-left: 0.06em;
}

.maker-nav {
  display: flex;
  gap: 10px;
}

.btn-prev,
.btn-next {
  min-width: 112px;
  min-height: 48px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  border: 1px solid #ddd;
  background: #fff;
  transition: background var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.btn-prev:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn-next {
  border: 0;
  background: var(--accent);
  color: #fff;
}
.btn-next:hover { background: var(--accent-hover); }
.btn-next.is-done { background: #222; }
.btn-next.is-done:hover { background: #000; }

/* ── overlays ── */
.maker-loading,
.maker-error {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  text-align: center;
  padding: 24px;
}
.maker-loading[hidden],
.maker-error[hidden] { display: none !important; }
.maker-error h2 { margin: 0 0 8px; }
.maker-error p { margin: 0 0 16px; color: #666; }

/* ── option detail modal ── */
.modal-root[hidden] { display: none !important; }
.modal-root {
  position: fixed;
  inset: 0;
  /* 빠른 문의 플로팅 CTA(z-index 900) 위에 떠야 한다 */
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: min(88vh, 640px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.14);
  padding: 18px 18px 16px;
}
.modal-dialog:focus { outline: none; }
.modal-dialog:focus-visible {
  outline: 2px solid var(--select);
  outline-offset: 2px;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.modal-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.modal-close {
  flex: none;
  width: 36px;
  height: 36px;
  margin: -6px -6px 0 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 1.375rem;
  line-height: 1;
  color: var(--muted);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.modal-close:hover {
  background: var(--gray-50);
  color: var(--ink);
}
.modal-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  background: var(--gray-100);
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.modal-media[hidden] { display: none !important; }
.modal-meta {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  color: #666;
  line-height: 1.5;
  white-space: pre-line;
}
.modal-meta[hidden] { display: none !important; }
.modal-price {
  margin-top: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.modal-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.modal-actions button {
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  border-radius: 8px;
  padding: 10px 16px;
}
.modal-secondary {
  background: #fff;
  border: 1px solid #ddd;
  color: var(--ink-soft);
}
.modal-secondary:hover { border-color: #bbb; }
.modal-primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  font-weight: 700;
}
.modal-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.modal-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ── quote complete summary ── */
.quote-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.quote-intro {
  margin: 0;
  font-size: 0.8125rem;
  color: #666;
  line-height: 1.45;
}
.quote-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.quote-section-title {
  margin: 0;
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: var(--gray-50);
  border-bottom: 1px solid var(--line);
}
.quote-rows {
  margin: 0;
  padding: 4px 0;
  list-style: none;
}
.quote-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: baseline;
  padding: 8px 12px;
}
.quote-row + .quote-row {
  border-top: 1px solid #f0f0f0;
}
.quote-row-label {
  min-width: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.quote-row-group {
  display: block;
  font-size: 0.6875rem;
  color: var(--muted);
  margin-bottom: 2px;
}
.quote-row-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.quote-row-price {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: #666;
  white-space: nowrap;
}
.quote-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--select-soft);
  border: 1px solid rgba(255, 129, 0, 0.28);
}
.quote-total-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.quote-total-value {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.quote-note {
  margin: 0;
  font-size: 0.6875rem;
  color: #999;
  line-height: 1.4;
}

/* ── 1단계 라인업 선택 모달 ──
   레이아웃 정본: unithaus.co.kr/price.html 의 .price2 / .pcard */
/* 리퀴드 글래스 팝업: 반투명 유리판 위에 카드가 얹힌 사각 카드 느낌.
   배경을 비추는 blur + 상단 하이라이트 + 깊은 그림자로 떠 있는 판을 만든다. */
.lineup-dialog {
  width: min(900px, 100%);
  max-height: min(92vh, 780px);
  overflow: auto;
  padding: 24px 26px 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  /* 밝은 프로스티드 화이트 — 스크림을 그대로 흐리면 회색으로 죽는다.
     위에서 아래로 아주 옅은 그라디언트를 얹어 유리판의 결을 만든다. */
  background:
    linear-gradient(
      158deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.82) 46%,
      rgba(250, 250, 252, 0.86) 100%
    );
  -webkit-backdrop-filter: blur(26px) saturate(165%) brightness(1.06);
  backdrop-filter: blur(26px) saturate(165%) brightness(1.06);
  box-shadow:
    0 30px 72px rgba(17, 17, 17, 0.3),
    0 2px 10px rgba(17, 17, 17, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(17, 17, 17, 0.04);
}
/* 열릴 때 다이얼로그에 포커스를 주므로 전역 focus-visible 아웃라인을 끈다 —
   주황 테두리가 팝업 전체를 감싸 보였다. */
.lineup-dialog:focus,
.lineup-dialog:focus-visible { outline: none; }
/* 유리를 못 쓰는 브라우저에서는 불투명 흰 판으로 떨어진다 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lineup-dialog { background: #fff; }
}

.lineup-head { margin-bottom: 20px; }
.lineup-logo {
  height: 19px;
  width: auto;
  margin: 0 0 14px;
  opacity: 0.9;
}
.lineup-dialog .lineup-title {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.lineup-lead {
  margin: 0;
  font-size: 0.875rem;
  color: #555;
  line-height: 1.6;
}
.lineup-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.lineup-cell {
  display: flex;
  flex-direction: column;
}
/* 유리판 위에 얹힌 카드 — 바탕보다 한 겹 밝게 띄운다 */
.lineup-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
  text-align: left;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 26px 24px 22px;
  font-family: var(--font);
  color: var(--ink);
  cursor: pointer;
  box-shadow:
    0 1px 2px rgba(17, 17, 17, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.lineup-card:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow:
    0 12px 30px rgba(17, 17, 17, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
/* 비스포크: 골드 틴트 유리 */
.lineup-card.is-highlight {
  border-color: rgba(242, 179, 61, 0.9);
  background: rgba(255, 252, 246, 0.94);
}
.lineup-card.is-highlight:hover {
  background: #fffdf8;
  box-shadow:
    0 12px 30px rgba(196, 137, 27, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
/* 카드 포커스는 얇은 링으로 — 두꺼운 주황 아웃라인이 "선택됨"으로 오독됐다 */
.lineup-card:focus { outline: none; }
.lineup-card:focus-visible {
  outline: none;
  border-color: rgba(17, 17, 17, 0.5);
  box-shadow:
    0 0 0 3px rgba(17, 17, 17, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.lineup-card-eyebrow {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 12px;
}
.lineup-card-title {
  margin: 0 0 26px;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.4;
}
.lineup-card-amount {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.lineup-card-amount strong {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.lineup-card-amount small {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.lineup-card-model {
  margin: 0 0 18px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.lineup-card-model strong {
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.lineup-card-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lineup-card-list li {
  position: relative;
  padding-left: 14px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.lineup-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line);
}
.lineup-card-pick {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 10px;
  border: 1.5px solid rgba(17, 17, 17, 0.14);
  background: rgba(255, 255, 255, 0.86);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.lineup-card.is-highlight .lineup-card-pick {
  background: #f2b33d;
  border-color: #f2b33d;
  color: #111;
}
.lineup-card:hover .lineup-card-pick { border-color: var(--ink); }
.lineup-card.is-highlight:hover .lineup-card-pick {
  background: #e5a52f;
  border-color: #e5a52f;
}
.lineup-card-more {
  margin-top: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  text-decoration: none;
}
.lineup-card-more:hover { color: var(--ink); text-decoration: underline; }
.lineup-note {
  margin: 20px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.7;
}

/* 유리 팝업이 배경을 비추도록 스크림을 더 깊게 깐다 */
.lineup-modal-root .modal-scrim {
  background: rgba(18, 18, 21, 0.36);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  backdrop-filter: blur(8px) saturate(130%);
}

@media (max-width: 720px) {
  .lineup-cards { grid-template-columns: 1fr; }
  .lineup-dialog { padding: 20px 18px 18px; }
  .lineup-card { padding: 20px 18px 18px; }
  .lineup-card-amount strong { font-size: 1.875rem; }
}

/* ── 제출 완료 팝업 ──
   레이아웃 정본: unithaus.co.kr/contact.html 의 .done (체크 마크 → 제목 →
   안내 2줄 → 입력 요약 → 다음 단계 CTA 3개). 가운데 CTA 는 이미 유닛메이커
   안이므로 "다른 레이아웃 설계하기"로 바꿔 둔다. */
.done-dialog {
  /* CTA 3개가 한 줄에 들어가는 폭 */
  width: min(600px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  text-align: center;
  padding: 34px 28px 28px;
  position: relative;
}
.done-close {
  position: absolute;
  right: 14px;
  top: 12px;
}
.done-mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(242, 179, 61, 0.16);
  color: #f2b33d;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
}
.done-mark svg { width: 34px; height: 34px; }
.done-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.35;
}
.done-lead {
  margin: 12px 0 0;
  font-size: 0.9375rem;
  color: #666;
  line-height: 1.8;
}
.done-sum {
  margin: 26px auto 0;
  max-width: 440px;
  text-align: left;
  background: #faf9f7;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  font-size: 0.875rem;
  line-height: 1.9;
  /* 라벨/값 2열 — min-width 로는 "착공 희망 시기"처럼 긴 라벨에서 열이 어긋난다 */
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 16px;
}
.done-sum:empty { display: none; }
.done-sum b {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}
.done-sum span { min-width: 0; overflow-wrap: anywhere; }
.done-next {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.done-next a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 700;
  transition: border-color var(--dur) var(--ease);
}
.done-next a svg { width: 15px; height: 15px; flex: none; }
.done-next a:hover { border-color: var(--ink); }
/* 가운데 CTA(다른 레이아웃 설계하기)가 주 동선이므로 강조한다 */
.done-next .done-catalog-btn {
  border-color: #f2b33d;
  background: #f2b33d;
  color: #111;
}
.done-next .done-catalog-btn:hover {
  border-color: #e5a52f;
  background: #e5a52f;
}

@media (max-width: 720px) {
  .done-dialog { padding: 26px 18px 20px; }
  .done-mark { width: 60px; height: 60px; margin-bottom: 16px; }
  .done-mark svg { width: 28px; height: 28px; }
  .done-title { font-size: 1.25rem; }
  .done-lead { font-size: 0.8125rem; line-height: 1.7; }
  .done-sum { margin-top: 20px; padding: 14px 16px; font-size: 0.8125rem; line-height: 1.8; column-gap: 12px; }
  .done-next { margin-top: 20px; gap: 8px; flex-direction: column; }
  .done-next a { justify-content: center; min-height: 44px; }
}

/* ── inquiry modal ── */
.send-dialog {
  width: min(440px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
}
.send-lead {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  color: #666;
  line-height: 1.45;
}
.send-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.send-field { min-width: 0; }
/* 두 칸 배치 (성함·연락처 / 시기·토지) — 본사 contact.html .fg-row */
.send-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.send-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
/* 필수 표기 — 본사 폼과 같은 주황색 동그라미 */
.send-req {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f2b33d;
  display: inline-block;
  flex: none;
}
.send-opt {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.6875rem;
}
.send-input,
.send-phone {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font: inherit;
  font-size: 0.9375rem;
  background: #fff;
  transition: border-color var(--dur) var(--ease);
}
.send-phone {
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.send-textarea {
  resize: vertical;
  min-height: 64px;
  line-height: 1.4;
}
.send-input:focus,
.send-phone:focus {
  outline: none;
  border-color: var(--select);
  box-shadow: 0 0 0 3px var(--select-soft);
}
.send-input[readonly] {
  background: #f5f5f3;
  color: #555;
}
.send-input.is-invalid,
.send-phone.is-invalid {
  border-color: #c44;
}
/* 드롭다운 — 기본 화살표를 지우고 본사 폼과 같은 셰브런을 얹는다 */
.send-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23555' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

/* 개인정보 수집·이용 동의 — 필수 동의 전에는 제출 버튼이 잠긴다 */
.send-agree {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.send-chk {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
  margin-bottom: 9px;
}
.send-chk:last-child { margin-bottom: 0; }
.send-chk input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: #f2b33d;
  cursor: pointer;
  flex: none;
}
.send-chk a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.send-chk b { font-weight: 700; }
.send-chk .send-req { margin-left: 3px; vertical-align: middle; }

.send-hint {
  margin: 10px 0 0;
  font-size: 0.6875rem;
  color: #999;
}
.send-error {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: #c44;
  font-weight: 600;
}
.send-error[hidden] { display: none !important; }

/* ── toast ── */
.maker-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bar-h) + 16px);
  z-index: 120;
  transform: translateX(-50%);
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 18px;
  border-radius: 10px;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  pointer-events: none;
}
.maker-toast[hidden] { display: none !important; }
.maker-toast.is-show {
  animation: toast-in 280ms var(--ease);
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .modal-scrim { animation: modal-scrim-in 200ms var(--ease); }
  .modal-dialog { animation: modal-in 260ms cubic-bezier(0.16, 1, 0.3, 1); }
}
@keyframes modal-scrim-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── step / selection motion ── */
@media (prefers-reduced-motion: no-preference) {
  .maker-panel-scroll.is-step-enter {
    animation: panel-in 220ms var(--ease);
  }
  .opt-card[aria-pressed="true"] {
    transition:
      border-color var(--dur) var(--ease),
      box-shadow var(--dur) var(--ease),
      background var(--dur) var(--ease),
      transform var(--dur) var(--ease);
  }
}

@keyframes panel-in {
  from { opacity: 0.55; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .opt-card,
  .btn-prev,
  .btn-next,
  .maker-close,
  .step-chip,
  .maker-preview-frame img,
  .opt-detail,
  .modal-close {
    transition: none;
  }
  .maker-panel-scroll.is-step-enter {
    animation: none;
  }
  .price-digit-strip {
    transition: none !important;
  }
  .price-odometer.is-crossfade {
    transition: none !important;
  }
  .modal-scrim,
  .modal-dialog {
    animation: none !important;
  }
}

/* ── tablet / narrow desktop ── */
@media (max-width: 960px) {
  :root { --rail-w: 320px; }
  .maker-preview { padding: 16px; }
  .maker-panel-scroll { padding: 18px 16px 24px; }
  .btn-prev, .btn-next { min-width: 96px; }
}

/* ── mobile: preview on top, options scroll below ── */
@media (max-width: 720px) {
  /* 하단 바가 2행으로 접히므로 실제 높이(가격행 56 + 간격 10 + 버튼 44 + 패딩 24)에 맞춘다 */
  :root { --bar-h: 134px; }

  .maker {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    grid-template-rows: var(--top-h) var(--step-h) auto var(--bar-h);
    padding-bottom: 0;
  }

  .maker-main {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(220px, 38vh) auto;
    overflow: visible;
  }

  .maker-preview {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
  }

  .maker-panel {
    border-left: 0;
    overflow: visible;
  }

  .maker-panel-scroll {
    overflow: visible;
    padding: 20px 16px 24px;
    padding-bottom: calc(var(--bar-h) + 20px);
  }

  /* 상단 바: 로고·모델명·상담 신청·언어·닫기가 390px 폭에 모두 들어가게 압축.
     모델명이 쪼개지지 않도록 가운데 칸만 줄어들게 두고 양옆을 먼저 줄인다. */
  .maker-top {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 0 12px;
  }
  .maker-brand img { height: 18px; }
  .maker-model { font-size: 0.8125rem; }
  .maker-top-actions { gap: 2px; }
  .maker-consult { height: 30px; padding: 0 11px; font-size: 0.75rem; }
  .lang-btn.maker-lang { min-width: 46px; min-height: 34px; font-size: 10px; }
  .maker-close { width: 34px; height: 34px; font-size: 1.5rem; }

  /* 하단 바는 2행(가격+토글 / 이전·다음)으로 고정한다. --bar-h 를 실제 높이와
     맞춰야 패널 하단 여백과 빠른 문의 CTA 위치가 어긋나지 않는다. */
  .maker-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px;
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .maker-price { flex: 1 1 100%; }
  .maker-nav { flex: 1 1 100%; display: flex; gap: 8px; }
  .btn-prev, .btn-next { flex: 1; min-width: 0; min-height: 44px; }

  .maker-price-value { font-size: 1.2rem; }

  .modal-root {
    align-items: flex-end;
    padding: 0;
  }
  .modal-dialog {
    width: 100%;
    max-height: 78vh;
    border-radius: 12px 12px 0 0;
  }
  /* 좁은 화면에서는 두 칸 배치를 한 칸으로 (본사 폼과 동일) */
  .send-row { grid-template-columns: 1fr; gap: 12px; }
  .send-dialog { max-height: 88vh; }

  /* ── 라인업 선택: 두 카드를 스크롤 없이 한눈에, 떠 있는 유리 카드로 ── */
  .lineup-modal-root {
    align-items: center;
    justify-content: center;
    padding: 14px 12px;
  }
  .lineup-dialog {
    width: 100%;
    height: auto;
    max-height: 100%;
    /* 화면을 꽉 채우지 않고 여백을 남겨 "떠 있는 사각 팝업"으로 읽히게 한다 */
    border-radius: 20px;
    padding: 16px 14px 14px;
    display: flex;
    flex-direction: column;
  }
  .lineup-head { margin-bottom: 12px; }
  .lineup-logo { height: 16px; margin-bottom: 10px; }
  .lineup-dialog .lineup-title { margin-bottom: 4px; font-size: 1.0625rem; }
  .lineup-lead {
    font-size: 0.75rem;
    line-height: 1.5;
  }
  .lineup-cards {
    grid-template-columns: 1fr;
    gap: 10px;
    align-content: start;
  }
  .lineup-card {
    padding: 13px 14px 12px;
    border-radius: 12px;
  }
  .lineup-card:hover { transform: none; box-shadow: none; }
  .lineup-card-eyebrow { margin-bottom: 5px; font-size: 0.625rem; }
  .lineup-card-title { margin-bottom: 6px; font-size: 0.9375rem; }
  /* line-height 를 조여 큰 숫자 위아래로 생기는 빈 줄 여백을 없앤다 */
  .lineup-card-amount {
    margin: 0 0 2px;
    font-size: 1rem;
    line-height: 1.05;
  }
  .lineup-card-amount strong { font-size: 1.5rem; line-height: 1.05; }
  .lineup-card-amount small { font-size: 0.75rem; }
  .lineup-card-model { margin: 0 0 9px; font-size: 0.75rem; }
  .lineup-card-list { margin-bottom: 11px; gap: 4px; }
  .lineup-card-list li {
    font-size: 0.75rem;
    padding-left: 11px;
    line-height: 1.45;
  }
  .lineup-card-pick { min-height: 42px; font-size: 0.875rem; }
  .lineup-card-more { margin-top: 5px; font-size: 0.6875rem; }
  .lineup-note { margin-top: 11px; font-size: 0.6875rem; line-height: 1.55; }
}

/* 세로가 짧은 기기에서도 두 카드가 함께 보이도록 한 단계 더 조인다 */
@media (max-width: 720px) and (max-height: 900px) {
  .lineup-head { margin-bottom: 9px; }
  .lineup-card { padding: 11px 12px 10px; }
  .lineup-card-title { margin-bottom: 4px; }
  .lineup-card-amount strong { font-size: 1.3125rem; }
  .lineup-card-model { margin: 0 0 7px; }
  .lineup-card-list { margin-bottom: 9px; gap: 3px; }
  .lineup-card-list li { font-size: 0.6875rem; }
  .lineup-card-pick { min-height: 38px; }
  .lineup-card-more { margin-top: 4px; }
  .lineup-note { margin-top: 8px; }
}

/* 667px대 소형 기기: 두 라인업을 함께 보이는 것이 우선이므로 보조 요소를 접는다.
   접히는 건 안내문 한 줄과 "자세히" 링크뿐 — 라인업 비교에 필요한 정보
   (기준가·평당가·특징 4줄·선택 버튼)는 그대로 남긴다. */
@media (max-width: 720px) and (max-height: 720px) {
  .lineup-modal-root { padding: 8px; }
  .lineup-dialog { padding: 13px 12px 11px; border-radius: 18px; }
  .lineup-head { margin-bottom: 8px; }
  .lineup-logo { height: 14px; margin-bottom: 7px; }
  .lineup-lead {
    font-size: 0.6875rem;
    line-height: 1.4;
    /* 두 줄 이상 차지하지 않게 접는다 */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .lineup-cards { gap: 7px; }
  .lineup-card { padding: 9px 12px 9px; }
  .lineup-card-amount strong { font-size: 1.125rem; }
  .lineup-card-model { margin: 0 0 6px; }
  .lineup-card-list { margin-bottom: 8px; gap: 1px; }
  .lineup-card-pick { min-height: 36px; font-size: 0.8125rem; }
  .lineup-card-more { display: none; }
  .lineup-note { margin-top: 6px; font-size: 0.625rem; line-height: 1.45; }
}

/* 초소형 폭(320px대): 금액과 라인업 토글이 한 줄에 남게 조인다.
   여기서 줄바꿈되면 하단 바가 --bar-h 보다 높아져 마지막 옵션 카드가 가려진다. */
@media (max-width: 380px) {
  .maker-price-value { font-size: 1.0625rem; }
  .maker-price-row { gap: 8px; }
  .lineup-pill { padding: 0 10px; font-size: 0.75rem; min-height: 28px; }
}
