/* 2026-11-22 하위 페이지 다듬기(사용자 요청: 상세 부분을 참고 사이트처럼, 오른쪽 상담 창도 비슷하게)
   1 글꼴 · 2 제목 띠 · 3 견적 상세 · 4 맞춤 견적 1단계 · 5 셀프견적 머리 · 6 오른쪽 빠른 견적문의 · 7 하위 페이지 자리 · 8 이벤트 · 9 휴대폰 */

:root {
  --sp-navy:var(--allauto-primary,#002464);
  --sp-navy-deep:#0b2a5b;
  --sp-ink:#1b2333;
  --sp-sub:#44516a;
  --sp-muted:#5b6577;
  --sp-line:#e1e5ec;
  --sp-band:#f4f6f9;
  --sp-card:#fff;
  --sp-rail-w:clamp(216px,15vw,248px);
  --sp-radius:16px;
  --sp-font:"Pretendard Variable",Pretendard,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",sans-serif;
}

/* 1. 글꼴: 홈과 같은 Pretendard(하위 페이지는 SUIT 였음) */
body[data-studio-public]:not([data-home-layout="studio"]),
body[data-studio-public]:not([data-home-layout="studio"]) *:not(svg):not(svg *) {
  font-family:var(--sp-font) !important;
}

/* 2. 제목 띠: 연한 회색 띠 + 위치 표시 + 가운데 제목(가는 글자 + 굵은 낱말) */
body .studio-page-head {
  position:relative;
  margin:0 0 28px;
  padding:22px 0 34px;
  background:var(--sp-band);
  box-shadow:0 0 0 100vmax var(--sp-band);
  clip-path:inset(0 -100vmax);
  text-align:center;
}
body .studio-page-head .studio-crumb {
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 22px;
  color:var(--sp-muted);
  font-size:13px;
  text-align:left;
}
body .studio-page-head .studio-crumb a { color:var(--sp-sub); text-decoration:none; }
body .studio-page-head .studio-crumb a:hover { color:var(--sp-navy); text-decoration:underline; }
body .studio-page-head .studio-crumb [aria-current] { color:var(--sp-navy); font-weight:700; }
body .studio-page-head.studio-page-head h1 {
  margin:0;
  color:var(--sp-ink);
  font-size:clamp(28px,3vw,38px);
  font-weight:300;
  line-height:1.25;
  letter-spacing:-.04em;
}
body .studio-page-head.studio-page-head h1 b { font-weight:800; }
body .studio-page-head.studio-page-head h1 + p {
  margin:10px auto 0;
  max-width:46ch;
  color:var(--sp-sub);
  font-size:15px;
  line-height:1.6;
}

/* 3. 견적 상세(맞춤 간편견적 2단계) */
body[data-quote-studio="detail"] #cd.rb-finder-quote {
  --quote-border:var(--sp-line);
}
body[data-quote-studio="detail"] #cd.rb-finder-quote > .rb-finder-intro {
  display:block;
  width:var(--quote-main-width);
  margin:0 auto 26px;
  padding:22px 0 34px;
  border-radius:0;
  background:var(--sp-band);
  color:var(--sp-ink);
}
body[data-quote-studio="detail"] #cd.rb-finder-quote > .rb-finder-intro h1 {
  margin:0;
  color:var(--sp-ink);
  font-size:clamp(28px,3vw,38px);
  font-weight:300;
}
body[data-quote-studio="detail"] #cd.rb-finder-quote > .rb-finder-intro h1 b { font-weight:800; }
body[data-quote-studio="detail"] #cd.rb-finder-quote > .rb-finder-intro p { color:var(--sp-sub); font-size:15px; }
body[data-quote-studio="detail"] .cd:has(#cd.rb-finder-quote) { padding-top:0; }

/* 화살표 단계 표시 */
body #cd.rb-finder-quote .rb-detail-steps,
body .ks-finder-page .ks-finder-progress {
  display:flex;
  gap:0;
  margin:0 0 24px;
  padding:0;
  border:0;
  border-radius:0;
  background:none;
  list-style:none;
}
body #cd.rb-finder-quote .rb-detail-steps li,
body .ks-finder-page .ks-finder-progress li {
  flex:1 1 0;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  margin:0 0 0 -12px;
  padding:0 26px;
  border:0;
  border-radius:0;
  background:#e6eaf0;
  color:var(--sp-muted);
  font-size:15px;
  font-weight:600;
  clip-path:polygon(0 0,calc(100% - 16px) 0,100% 50%,calc(100% - 16px) 100%,0 100%,16px 50%);
}
body #cd.rb-finder-quote .rb-detail-steps li:first-child,
body .ks-finder-page .ks-finder-progress li:first-child {
  margin-left:0;
  clip-path:polygon(0 0,calc(100% - 16px) 0,100% 50%,calc(100% - 16px) 100%,0 100%);
}
body #cd.rb-finder-quote .rb-detail-steps li:last-child,
body .ks-finder-page .ks-finder-progress li:last-child {
  clip-path:polygon(0 0,100% 0,100% 100%,0 100%,16px 50%);
}
body #cd.rb-finder-quote .rb-detail-steps li[aria-current],
body .ks-finder-page .ks-finder-progress li[aria-current],
body .ks-finder-page .ks-finder-progress li.is-current {
  background:var(--sp-navy);
  color:#fff;
  font-weight:800;
}
body #cd.rb-finder-quote .rb-detail-steps a {
  justify-content:center;
  min-height:52px;
  padding:0;
  border-radius:0;
  color:inherit;
  text-decoration:none;
}
body #cd.rb-finder-quote .rb-detail-steps a:hover { color:var(--sp-navy); text-decoration:underline; }
body #cd.rb-finder-quote .rb-detail-steps a:focus-visible { outline:2px solid currentColor; outline-offset:-6px; }
body #cd.rb-finder-quote .rb-detail-steps i {
  width:auto;
  height:auto;
  margin-right:6px;
  border-radius:0;
  background:none;
  color:inherit;
  font-size:14px;
  font-weight:600;
  opacity:.85;
}

/* 차량 카드: 왼쪽 큰 사진, 오른쪽 이름 · 사양 · 색상 */
body #cd.rb-finder-quote .rb-detail-hero {
  grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);
  gap:20px 48px;
  min-height:0;
  padding:36px 44px 32px;
  border:0;
  border-radius:var(--sp-radius);
  background:var(--sp-card);
  box-shadow:0 1px 2px rgba(17,27,45,.05),0 8px 24px rgba(17,27,45,.04);
}
body #cd.rb-finder-quote .rb-detail-image { aspect-ratio:1.7; }
body #cd.rb-finder-quote .rb-detail-image img { max-height:270px; }
body #cd.rb-finder-quote .rb-detail-gallery figcaption { color:var(--sp-muted); font-size:12px; }
body #cd.rb-finder-quote .pd__brand { color:var(--sp-sub); font-size:15px; font-weight:700; }
body #cd.rb-finder-quote .pd__brand img { width:40px; height:22px; }
body #cd.rb-finder-quote .rb-detail-identity .pd__name {
  margin:4px 0 8px;
  color:var(--sp-ink);
  font-size:clamp(28px,2.6vw,34px);
  font-weight:800;
  letter-spacing:-.035em;
}
body #cd.rb-finder-quote .rb-detail-spec { margin:0; color:var(--sp-sub); font-size:15px; }
body #cd.rb-finder-quote #rbDetailColors {
  margin-top:20px;
  padding-top:20px;
  border-top:1px solid var(--sp-line);
}
body #cd.rb-finder-quote .rb-detail-colorhead { margin:0 0 12px; font-size:16px; }
body #cd.rb-finder-quote .rb-detail-colorhead strong { color:var(--sp-ink); font-weight:800; }
body #cd.rb-finder-quote .rb-detail-colorhead span { color:var(--sp-sub); font-size:14px; }
body #cd.rb-finder-quote .rb-detail-swatches { gap:10px; }
body #cd.rb-finder-quote .rb-detail-swatches button {
  position:relative;
  width:50px;
  height:50px;
  padding:3px;
  border:1px solid #d5dbe4;
  border-radius:10px;
  background:#fff;
  cursor:pointer;
}
body #cd.rb-finder-quote .rb-detail-swatches button:hover { border-color:#8f9bb0; }
body #cd.rb-finder-quote .rb-detail-swatches button[aria-pressed="true"] {
  border:2px solid var(--sp-navy);
  padding:2px;
}
body #cd.rb-finder-quote .rb-detail-swatches button > span { border-radius:7px; }
.rb-swatch-check {
  position:absolute;
  inset:0;
  display:none;
  width:22px;
  height:22px;
  margin:auto;
  border-radius:50%;
  background:var(--sp-navy);
  box-shadow:0 0 0 2px #fff;
}
[aria-pressed="true"] > .rb-swatch-check { display:grid; place-items:center; }
.rb-swatch-check svg { width:14px; height:14px; fill:none; stroke:#fff; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.rb-detail-color-note {
  display:flex;
  align-items:center;
  gap:6px;
  margin:12px 0 0;
  color:var(--sp-muted);
  font-size:13px;
}
.rb-detail-color-note::before {
  content:'!';
  display:grid;
  place-items:center;
  flex:none;
  width:16px;
  height:16px;
  border:1.5px solid currentColor;
  border-radius:50%;
  font-size:11px;
  font-weight:800;
  line-height:1;
}

/* 세부모델 · 옵션 · 이용조건 · 가격 */
body[data-quote-studio="detail"] #cd.rb-finder-quote .rb-finder-controls {
  margin-top:20px;
  padding:34px 40px 38px;
  border:0;
  border-radius:var(--sp-radius);
  background:var(--sp-card);
  box-shadow:0 1px 2px rgba(17,27,45,.05),0 8px 24px rgba(17,27,45,.04);
}
body #cd.rb-finder-quote .rb-detail-panel h2,
body #cd.rb-finder-quote .rb-quote-card h2 {
  margin:0 0 16px;
  color:var(--sp-ink);
  font-size:20px;
  font-weight:800;
  letter-spacing:-.03em;
}
body #cd.rb-finder-quote .rb-detail-group {
  margin:0 0 10px;
  border:1px solid var(--sp-line);
  border-radius:12px;
  background:#fff;
}
body #cd.rb-finder-quote .rb-detail-group[open] { background:#f8f9fb; }
body #cd.rb-finder-quote .rb-detail-group summary { padding:14px 16px; color:var(--sp-ink); font-size:15px; font-weight:700; }
body #cd.rb-finder-quote .rb-detail-group > div { gap:8px; padding:0 10px 10px; }
body #cd.rb-finder-quote :is(.rb-detail-group,.rb-detail-option) .rb-detail-chip {
  min-height:50px;
  padding:12px 16px;
  border:1px solid #dde2ea;
  border-radius:10px;
  background:#fff;
  color:var(--sp-ink);
  font-size:15px;
  box-shadow:none;
}
body #cd.rb-finder-quote :is(.rb-detail-group,.rb-detail-option) .rb-detail-chip:hover { border-color:#8f9bb0; }
body #cd.rb-finder-quote :is(.rb-detail-group,.rb-detail-option) .rb-detail-chip[aria-pressed="true"] {
  border-color:var(--sp-navy);
  background:#f3f6fb;
  color:var(--sp-navy);
  box-shadow:inset 0 0 0 1px var(--sp-navy);
}
body #cd.rb-finder-quote .rb-detail-group .rb-detail-chip strong { font-weight:600; }
body #cd.rb-finder-quote .rb-detail-group .rb-detail-chip span,
body #cd.rb-finder-quote .rb-detail-option .rb-detail-chip > span:last-child {
  color:inherit;
  font-size:15px;
  font-weight:800;
  font-variant-numeric:tabular-nums;
}
body #cd.rb-finder-quote .rb-detail-option { margin-bottom:10px; }
body #cd.rb-finder-quote .rb-detail-option .rb-detail-chip { grid-template-columns:20px minmax(0,1fr) auto; align-items:center; gap:10px; }
body #cd.rb-finder-quote .rb-detail-option .rb-detail-chip strong { font-weight:600; }
body #cd.rb-finder-quote .rb-detail-option .rb-detail-check { width:20px; height:20px; border-radius:5px; border-color:#b8c2d1; }
body #cd.rb-finder-quote .rb-detail-option details summary { padding:6px 0 0 30px; font-size:12.5px; }
body #cd.rb-finder-quote .rb-detail-option ul { padding:4px 0 6px 46px; font-size:13px; }

/* 이용 조건: 붙어 있는 한 줄 버튼 묶음 */
body #cd.rb-finder-quote .rb-detail-label { margin:18px 0 8px; color:var(--sp-ink); font-size:15px; font-weight:700; }
body #cd.rb-finder-quote .rb-detail-panel > .rb-detail-chip[aria-current] {
  display:flex;
  justify-content:center;
  width:100%;
  min-height:48px;
  border:1.5px solid var(--sp-navy);
  border-radius:10px;
  background:#fff;
  color:var(--sp-navy);
  font-weight:800;
}
body #cd.rb-finder-quote .rb-detail-choices {
  display:flex;
  flex-wrap:nowrap;
  gap:0;
}
body #cd.rb-finder-quote .rb-detail-choices .rb-detail-chip {
  position:relative;
  flex:1 1 0;
  justify-content:center;
  min-width:0;
  min-height:48px;
  margin:0 0 0 -1px;
  padding:0 6px;
  border:1px solid #dde2ea;
  border-radius:0;
  background:#fff;
  color:#6b7586;
  font-size:15px;
  font-weight:500;
  white-space:nowrap;
  box-shadow:none;
}
body #cd.rb-finder-quote .rb-detail-choices .rb-detail-chip:first-child { margin-left:0; border-radius:10px 0 0 10px; }
body #cd.rb-finder-quote .rb-detail-choices .rb-detail-chip:last-child { border-radius:0 10px 10px 0; }
body #cd.rb-finder-quote .rb-detail-choices .rb-detail-chip:hover { z-index:1; border-color:#8f9bb0; color:var(--sp-ink); }
body #cd.rb-finder-quote .rb-detail-choices .rb-detail-chip[aria-pressed="true"] {
  z-index:2;
  border-color:var(--sp-navy);
  background:#fff;
  color:var(--sp-navy);
  font-weight:800;
  box-shadow:inset 0 0 0 1px var(--sp-navy);
}

/* 가격 상자 + 아래 상담 버튼 */
body[data-quote-studio="detail"] #cd.rb-finder-quote .rb-detail-quote {
  padding:0;
  border:0;
  border-radius:0;
  background:none;
}
body #cd.rb-finder-quote .rb-quote-card {
  padding:28px 28px 26px;
  border:1px solid var(--sp-line);
  border-radius:var(--sp-radius);
  background:#fff;
}
body #cd.rb-finder-quote .rb-quote-card .rb-detail-breakdown > div {
  margin:0;
  padding:9px 0;
  border:0;
  border-radius:0;
  background:none;
  color:var(--sp-sub);
  font-size:15px;
  font-weight:500;
}
body #cd.rb-finder-quote .rb-quote-card .rb-detail-breakdown dd { color:var(--sp-ink); font-size:16px; font-weight:800; font-variant-numeric:tabular-nums; }
body #cd.rb-finder-quote .rb-quote-card .rb-detail-breakdown > div:last-child {
  margin-top:8px;
  padding-top:16px;
  border-top:1px solid var(--sp-line);
  color:var(--sp-ink);
  font-size:16px;
  font-weight:800;
}
body #cd.rb-finder-quote .rb-quote-card .rb-detail-breakdown > div:last-child dd { color:var(--sp-navy); font-size:20px; }
body #cd.rb-finder-quote .rb-quote-card .rb-detail-monthly {
  margin-top:18px;
  padding:18px 20px;
  border-radius:12px;
  background:#f4f6f9;
}
body #cd.rb-finder-quote .rb-quote-card .rb-detail-monthly > span { color:var(--sp-sub); font-size:14px; font-weight:700; }
body #cd.rb-finder-quote .rb-quote-card .rb-detail-monthly strong { color:var(--sp-navy); font-size:clamp(28px,2.6vw,34px); font-weight:800; }
body #cd.rb-finder-quote .rb-quote-card .rb-detail-monthly small { color:var(--sp-muted); }
body #cd.rb-finder-quote .rb-detail-quote .rb-detail-links { margin-top:16px; }
body #cd.rb-finder-quote .rb-detail-quote [data-detail-quote] {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  width:100%;
  min-height:58px;
  border:0;
  border-radius:999px;
  background:var(--sp-navy-deep);
  color:#fff;
  font-size:17px;
  font-weight:800;
  transition:background .2s ease,transform .1s ease;
}
body #cd.rb-finder-quote .rb-detail-quote [data-detail-quote]:hover:not(:disabled) { background:#123a78; }
body #cd.rb-finder-quote .rb-detail-quote [data-detail-quote]:active:not(:disabled) { transform:scale(.99); }
body #cd.rb-finder-quote .rb-detail-status { margin-top:14px; color:var(--sp-muted); font-size:13px; }

/* 즉시출고 · 전기차 · 내 차고: 예전 왼쪽 제목 + 차 사진 머리를 같은 제목 띠로 */
body .phero.studio-page-head.studio-page-head { margin:0; padding:0; border:0; background:var(--sp-band); box-shadow:0 0 0 100vmax var(--sp-band); }
body .phero.studio-page-head .phero__in { display:block; padding:22px 0 36px; }
body .phero.studio-page-head .phero__cars { display:none; }
body .phero.studio-page-head .phero__stats { justify-content:center; }

/* 사진이 없는 즉시출고 차: 제조사 로고는 오른쪽 위 작은 표시로, 사진 칸에는 준비 중 안내 */
body:not([data-home-layout="studio"]) .studio-car-photo { position:relative; }
body:not([data-home-layout="studio"]) .studio-car-photo .studio-car-logo {
  position:absolute;
  top:12px;
  right:12px;
  width:44px;
  height:22px;
  object-fit:contain;
}
body:not([data-home-layout="studio"]) .studio-car-photo .studio-car-badge {
  position:absolute;
  z-index:1;
  top:12px;
  left:12px;
  margin:0;
  padding:4px 9px;
  border-radius:6px;
  background:var(--sp-navy);
  color:#fff;
  font-size:12px;
  font-weight:700;
  line-height:1.4;
}
body:not([data-home-layout="studio"]) div.studio-car-photo:not(:has(img:not(.studio-car-logo)))::after {
  content:'차량 사진 준비 중';
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:var(--sp-muted);
  font-size:14px;
  font-weight:600;
}

/* 4. 맞춤 간편견적 1단계(브랜드 · 차량 고르기) */
body .ks-finder-page { padding-top:0; }
body .ks-finder-page .studio-page-head { margin-bottom:26px; }
body .ks-finder-page .ks-finder-panel {
  border:0;
  border-radius:var(--sp-radius);
  box-shadow:0 1px 2px rgba(17,27,45,.05),0 8px 24px rgba(17,27,45,.04);
}
body .ks-finder-page .ks-finder-panel h2 { color:var(--sp-ink); font-size:20px; font-weight:800; letter-spacing:-.03em; }

/* 5. 셀프견적 머리 */
body .quote-studio-intro.studio-page-head { margin-bottom:8px; }
body .quote-studio-intro.studio-page-head .quote-studio-intro__inner { display:block; }
body .quote-studio-intro.studio-page-head .quote-studio-lead { margin:10px auto 0; color:var(--sp-sub); font-size:15px; }
body .quote-studio-intro.studio-page-head .quote-studio-steps {
  display:flex;
  max-width:720px;
  margin:26px auto 0;
  padding:0;
  border:0;
  background:none;
  list-style:none;
}
body .quote-studio-intro.studio-page-head .quote-studio-steps li {
  flex:1 1 0;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:6px;
  min-height:48px;
  margin-left:-12px;
  padding:0 24px;
  border:0;
  border-radius:0;
  background:#e6eaf0;
  color:var(--sp-muted);
  clip-path:polygon(0 0,calc(100% - 16px) 0,100% 50%,calc(100% - 16px) 100%,0 100%,16px 50%);
}
body .quote-studio-intro.studio-page-head .quote-studio-steps li:first-child { margin-left:0; clip-path:polygon(0 0,calc(100% - 16px) 0,100% 50%,calc(100% - 16px) 100%,0 100%); }
body .quote-studio-intro.studio-page-head .quote-studio-steps li:last-child { clip-path:polygon(0 0,100% 0,100% 100%,0 100%,16px 50%); }
body .quote-studio-intro.studio-page-head .quote-studio-steps li[aria-current] { background:var(--sp-navy); color:#fff; }
body .quote-studio-intro.studio-page-head .quote-studio-steps li * { color:inherit; }

/* 6. 오른쪽 빠른 견적문의: 남색 머리 + 흰 입력 상자 · 남색 바로가기 · TOP */
body :is(#ksInquiryRail,#studioSideRail,#studioDetailRail).studio-rail {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:10px;
  align-content:start;
  padding:0;
  border:0;
  border-radius:0;
  background:none;
  box-shadow:none;
  overflow:visible;
}
body :is(#ksInquiryRail,#studioSideRail,#studioDetailRail).studio-rail[hidden] { display:none; }
body .studio-rail .studio-rail-head {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:0;
  padding:14px 12px;
  border-radius:14px 14px 0 0;
  background:linear-gradient(180deg,#1b4585,#0b2a5b);
  color:#fff;
  font-size:17px;
  font-weight:800;
  letter-spacing:-.03em;
}
body .studio-rail .studio-rail-head svg,
body .studio-rail-contact svg,
body .studio-rail-top svg {
  flex:none;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
body .studio-rail .studio-rail-head svg { width:20px; height:20px; }
body :is(#ksInquiryRail,#studioSideRail,#studioDetailRail).studio-rail .studio-rail-head + form {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:7px;
  margin:-10px 0 0;
  padding:12px 12px 14px;
  border:1px solid var(--sp-line);
  border-top:0;
  border-radius:0 0 14px 14px;
  background:#fff;
  box-shadow:0 10px 26px rgba(15,32,66,.10);
}
body .studio-rail :is(.studio-rail-input,.ks-quick-input) {
  display:flex;
  align-items:center;
  gap:6px;
  min-height:42px;
  margin:0;
  padding:0 10px;
  border:1px solid #d9dee7;
  border-radius:8px;
  background:#fff;
  color:var(--sp-ink);
  font-size:14px;
}
body .studio-rail :is(.studio-rail-input,.ks-quick-input):focus-within { border-color:#1f5fbf; box-shadow:0 0 0 1px #1f5fbf; }
body .studio-rail :is(.studio-rail-input,.ks-quick-input) > span { flex:none; min-width:42px; color:var(--sp-ink); font-size:14px; font-weight:600; }
body .studio-rail :is(.studio-rail-input,.ks-quick-input) i { color:#d4183a; font-style:normal; }
body .studio-rail :is(.studio-rail-input,.ks-quick-input) input {
  flex:1 1 0;
  width:100%;
  min-width:0;
  height:40px;
  padding:0;
  border:0;
  background:none;
  color:var(--sp-ink);
  font-size:14px;
  outline:none;
}
body .studio-rail :is(.studio-rail-input,.ks-quick-input) input::placeholder { color:#7b8494; }
body .studio-rail :is(.studio-rail-input,.ks-quick-input) input[readonly] { color:var(--sp-sub); }
body #ksInquiryRail.studio-rail .ks-quick-fields { display:grid; gap:7px; padding:0; }
body #ksInquiryRail.studio-rail .ks-quick-consents > label { display:flex; grid-template-columns:none; }
body #ksInquiryRail.studio-rail .ks-quick-consents a { display:inline; min-height:0; }
body .studio-rail :is(.studio-rail-consents,.ks-quick-consents) { display:grid; gap:2px; margin:2px 0 0; }
body .studio-rail :is(.studio-rail-consents,.ks-quick-consents) label {
  display:flex;
  min-width:0;
  align-items:center;
  gap:6px;
  min-height:28px;
  color:var(--sp-sub);
  font-size:12px;
  line-height:1.35;
}
body .studio-rail :is(.studio-rail-consents,.ks-quick-consents) input { flex:none; width:16px; height:16px; margin:0; accent-color:var(--sp-navy-deep); }
body .studio-rail :is(.studio-rail-consents,.ks-quick-consents) a { align-self:center; margin-left:auto; color:var(--sp-muted); font-size:12px; text-decoration:underline; text-underline-offset:2px; }
body .studio-rail :is(.studio-rail-error,.ks-quick-error) { margin:0; color:#b3123a; font-size:12.5px; }
body .studio-rail .ks-quick-note { margin:0; color:var(--sp-muted); font-size:12px; }
body :is(#ksInquiryRail,#studioSideRail,#studioDetailRail).studio-rail :is(.studio-rail-submit,.ks-quick-go) {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:6px;
  width:100%;
  min-height:46px;
  margin:4px 0 0;
  border:0;
  border-radius:999px;
  background:var(--sp-navy-deep);
  color:#fff;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
  transition:background .2s ease,transform .1s ease;
}
body .studio-rail :is(.studio-rail-submit,.ks-quick-go):hover { background:#123a78; }
body .studio-rail :is(.studio-rail-submit,.ks-quick-go):active { transform:scale(.98); }
body .studio-rail .ks-quick-go svg { display:none; }

body .studio-rail-contact {
  display:grid;
  padding:4px 14px;
  border-radius:14px;
  background:linear-gradient(180deg,#173f7a,#0b2a5b);
  box-shadow:0 10px 26px rgba(15,32,66,.16);
}
body .studio-rail-contact a {
  display:flex;
  align-items:center;
  gap:12px;
  min-height:62px;
  padding:10px 2px;
  color:#fff;
  text-decoration:none;
}
body .studio-rail-contact a + a { border-top:1px solid rgba(255,255,255,.22); }
body .studio-rail-contact a:hover strong { text-decoration:underline; text-underline-offset:3px; }
body .studio-rail-contact svg { width:24px; height:24px; color:#fff; }
body .studio-rail-contact span { display:grid; gap:2px; min-width:0; }
body .studio-rail-contact small { color:#d4e0f2; font-size:12px; font-weight:500; line-height:1.3; }
body .studio-rail-contact strong {
  color:#fff;
  font-size:18px;
  font-weight:800;
  line-height:1.2;
  letter-spacing:-.03em;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
body .studio-rail-top {
  justify-self:center;
  display:grid;
  place-items:center;
  align-content:center;
  gap:0;
  width:58px;
  height:58px;
  margin-top:4px;
  border:0;
  border-radius:50%;
  background:#6f7c91;
  color:#fff;
  font-size:12px;
  font-weight:800;
  line-height:1;
  cursor:pointer;
  box-shadow:0 6px 16px rgba(15,32,66,.18);
  transition:background .2s ease,transform .15s ease;
}
body .studio-rail-top svg { width:18px; height:18px; stroke-width:2.4; }
body .studio-rail-top:hover { background:#55627a; transform:translateY(-2px); }
body .studio-rail :is(a,button,input):focus-visible { outline:2px solid #1f5fbf; outline-offset:2px; }
body .studio-rail-contact a:focus-visible { outline-color:#fff; outline-offset:-2px; }

/* 견적 상세의 상담 창: 오른쪽 칸에 붙어 따라옴 */
@media (min-width:1280px) {
  body #cd.rb-finder-quote #studioDetailRail.rb-detail-sidebar {
    position:sticky;
    top:20px;
    width:min(var(--sp-rail-w),calc(100% - 18px));
  }
}
@media (max-width:1279px) {
  body #cd.rb-finder-quote #studioDetailRail.rb-detail-sidebar { display:none; }
}

/* 7. 하위 페이지: 1280px 이상에서 본문 오른쪽 칸에 상담 창(넓은 화면은 바깥 여백) */
#studioSideRail.studio-side-rail {
  position:fixed;
  z-index:60;
  width:var(--sp-rail-w);
  max-height:calc(100vh - 32px);
}
@media (min-width:1280px) {
  body[data-side-rail]:not([data-side-rail-outside]) main :is(.wrap,.rb-wrap,#cd):not(:is(.wrap,.rb-wrap,#cd) *) {
    box-sizing:border-box;
    padding-inline-end:calc(var(--sp-rail-w) + 24px);
  }
  body[data-side-rail] #demo-runtime-note.preview-compare-bar {
    position:static;
    padding-block:8px 24px;
  }
  body[data-side-rail] #preview-variant-nav.preview-switcher {
    position:static;
    transform:none;
    width:auto;
    flex-flow:row wrap;
    padding:0;
    border:0;
    box-shadow:none;
  }
}
@media (max-width:1279px) {
  #studioSideRail.studio-side-rail { display:none; }
}

/* 8. 이벤트(참고 사이트식 두 칸 목록) */
body .studio-event-page { padding-bottom:72px; }
body .studio-event-page .studio-page-head { padding-top:0; }
body .studio-event-page .studio-page-head > .rb-wrap { padding-top:22px; }
body .studio-event-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:48px 32px;
  margin:12px 0 0;
  padding:0;
  list-style:none;
}
body .studio-event-card { min-width:0; }
body .studio-event-art {
  display:block;
  overflow:hidden;
  border-radius:var(--sp-radius);
  background:#eef1f5;
  aspect-ratio:1942/809;
}
body .studio-event-art img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .4s cubic-bezier(.2,.7,.2,1);
}
body .studio-event-card:hover .studio-event-art img { transform:scale(1.025); }
body .studio-event-body { padding:18px 4px 0; }
body .studio-event-tags { display:flex; gap:6px; margin:0 0 10px; }
body .studio-event-tags span {
  padding:3px 8px;
  border-radius:4px;
  background:#e8eef8;
  color:var(--sp-navy);
  font-size:12px;
  font-weight:700;
}
body .studio-event-tags span + span { background:#f1f3f6; color:var(--sp-sub); }
body .studio-event-body h2 { margin:0; color:var(--sp-ink); font-size:21px; font-weight:800; letter-spacing:-.03em; }
body .studio-event-body p:not(.studio-event-tags) { margin:6px 0 0; color:var(--sp-sub); font-size:15px; }
body .studio-event-cta {
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:44px;
  margin-top:14px;
  padding:0 18px;
  border:1px solid var(--sp-navy);
  border-radius:999px;
  background:#fff;
  color:var(--sp-navy);
  font-size:14px;
  font-weight:800;
  cursor:pointer;
  transition:background .2s ease,color .2s ease;
}
body .studio-event-cta:hover { background:var(--sp-navy); color:#fff; }
body .studio-event-cta:focus-visible { outline:2px solid #1f5fbf; outline-offset:2px; }

/* 8-1. 전체 · 진행중 · 종료 탭과 기간 · 남은 날 */
body .studio-event-toolbar {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px 20px;
  margin:4px 0 28px;
  padding-bottom:18px;
  border-bottom:1px solid var(--sp-line);
}
body .studio-event-count { margin:0; color:var(--sp-sub); font-size:15px; font-weight:600; }
body .studio-event-tabs { display:flex; flex-wrap:wrap; gap:8px; }
body .studio-event-tabs button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-width:96px;
  min-height:44px;
  padding:0 18px;
  border:1px solid var(--sp-line);
  border-radius:999px;
  background:#fff;
  color:var(--sp-sub);
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  transition:background .2s ease,border-color .2s ease,color .2s ease;
}
body .studio-event-tabs button:hover { border-color:var(--sp-navy); color:var(--sp-navy); }
body .studio-event-tabs button small { color:var(--sp-muted); font-size:13px; font-weight:700; font-variant-numeric:tabular-nums; }
body .studio-event-tabs button[aria-pressed="true"] { border-color:var(--sp-navy); background:var(--sp-navy); color:#fff; }
body .studio-event-tabs button[aria-pressed="true"] small { color:rgba(255,255,255,.8); }
body .studio-event-tabs button:focus-visible,
body .studio-event-empty button:focus-visible { outline:2px solid #1f5fbf; outline-offset:2px; }
body .studio-event-card { scroll-margin-top:24px; }
body .studio-event-card:target .studio-event-art { box-shadow:0 0 0 3px var(--sp-navy); }
body .studio-event-art { position:relative; }
body .studio-event-tags .studio-event-dday { background:#fdecec; color:#c62828; font-variant-numeric:tabular-nums; }
body .studio-event-body p.studio-event-period {
  display:flex;
  align-items:center;
  gap:6px;
  margin:8px 0 0;
  color:var(--sp-sub);
  font-size:14px;
}
body .studio-event-period svg { width:16px; height:16px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
body .studio-event-period b { color:var(--sp-ink); font-weight:700; }
body .studio-event-card[data-status="ended"] .studio-event-status { background:#5b6577; color:#fff; }
body .studio-event-card[data-status="ended"] .studio-event-art img { filter:grayscale(1); opacity:.55; }
body .studio-event-card[data-status="ended"] .studio-event-art::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:rgba(27,35,51,.35);
}
body .studio-event-card[data-status="ended"] .studio-event-art::after {
  content:"종료된 이벤트";
  position:absolute;
  top:50%;
  left:50%;
  z-index:2;
  padding:10px 22px;
  border-radius:999px;
  background:rgba(17,24,39,.86);
  color:#fff;
  font-size:17px;
  font-weight:800;
  white-space:nowrap;
  transform:translate(-50%,-50%);
}
body .studio-event-card[data-status="ended"] .studio-event-cta { display:none; }
body .studio-event-empty:not([hidden]) {
  display:grid;
  justify-items:center;
  gap:16px;
  padding:72px 16px;
  border:1px dashed #cbd2dc;
  border-radius:var(--sp-radius);
  color:var(--sp-sub);
  font-size:16px;
  text-align:center;
}
body .studio-event-empty p { margin:0; }
body .studio-event-empty button {
  min-height:44px;
  padding:0 20px;
  border:1px solid var(--sp-navy);
  border-radius:999px;
  background:#fff;
  color:var(--sp-navy);
  font-size:14px;
  font-weight:800;
  cursor:pointer;
}

/* 8-2. 홈 첫 배너: 그림 전체가 이벤트 페이지의 같은 이벤트로 가는 링크 */
.ks-event-card .ks-event-link { position:absolute; inset:0; display:block; color:inherit; }
.ks-event-card .ks-event-link:focus-visible { outline:3px solid #fff; outline-offset:-3px; box-shadow:inset 0 0 0 6px var(--sp-navy); }

/* 9. 좁은 화면 */
@media (max-width:1023px) {
  body .studio-event-grid { grid-template-columns:1fr; gap:36px; }
}
@media (max-width:760px) {
  body .studio-page-head { margin-bottom:18px; padding:14px 0 24px; }
  body .studio-page-head .studio-crumb { margin-bottom:14px; font-size:12px; }
  body .studio-page-head h1 { font-size:26px; }
  body .studio-page-head h1 + p { font-size:14px; }
  body[data-quote-studio="detail"] #cd.rb-finder-quote > .rb-finder-intro { padding:14px 0 22px; margin-bottom:18px; }
  body[data-quote-studio="detail"] #cd.rb-finder-quote > .rb-finder-intro h1 { font-size:26px; }
  body #cd.rb-finder-quote .rb-detail-steps li,
  body .ks-finder-page .ks-finder-progress li,
  body .quote-studio-intro.studio-page-head .quote-studio-steps li {
    min-height:44px;
    margin-left:-9px;
    padding:0 14px 0 18px;
    font-size:12.5px;
    clip-path:polygon(0 0,calc(100% - 11px) 0,100% 50%,calc(100% - 11px) 100%,0 100%,11px 50%);
  }
  body #cd.rb-finder-quote .rb-detail-steps li:first-child,
  body .ks-finder-page .ks-finder-progress li:first-child,
  body .quote-studio-intro.studio-page-head .quote-studio-steps li:first-child {
    margin-left:0;
    padding-left:10px;
    clip-path:polygon(0 0,calc(100% - 11px) 0,100% 50%,calc(100% - 11px) 100%,0 100%);
  }
  body #cd.rb-finder-quote .rb-detail-steps li:last-child,
  body .ks-finder-page .ks-finder-progress li:last-child,
  body .quote-studio-intro.studio-page-head .quote-studio-steps li:last-child {
    clip-path:polygon(0 0,100% 0,100% 100%,0 100%,11px 50%);
  }
  body #cd.rb-finder-quote .rb-detail-steps a { min-height:44px; }
  body #cd.rb-finder-quote .rb-detail-steps i { display:none; }
  body #cd.rb-finder-quote .rb-detail-hero { grid-template-columns:1fr; gap:12px; padding:20px 16px; }
  body[data-quote-studio="detail"] #cd.rb-finder-quote .rb-finder-controls { padding:22px 16px 24px; }
  body #cd.rb-finder-quote .rb-detail-swatches button { width:44px; height:44px; }
  body #cd.rb-finder-quote .rb-detail-choices .rb-detail-chip { font-size:14px; padding:0 2px; }
  body #cd.rb-finder-quote .rb-quote-card { padding:20px 18px; }
  body .studio-event-body h2 { font-size:19px; }
  body .studio-event-toolbar { flex-direction:column-reverse; align-items:stretch; gap:12px; margin-bottom:22px; padding-bottom:14px; }
  body .studio-event-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  body .studio-event-tabs button { min-width:0; padding:0 8px; font-size:14px; }
  body .studio-event-count { font-size:14px; }
}
