/* 기존 견적 디자인(apple.css·journey.css·estimate.css)을 그대로 쓰고, 바꾼 것은 이것뿐:
   ① 모서리 0 · 파랑→검정(CSS 파일에 이미 적용) ② 그림자·흐림 제거 ③ 헤더·푸터를 사이트 공통으로 교체 ④ 카드 가장자리를 12열 격자에 맞춤 */
:root{--m:clamp(10px,.8vw,20px);--fs:clamp(16px,.5vw + 9.5px,22px);--fn:clamp(24px,1.1vw + 11px,40px);--max:2400px;--face:#f1f1f1;--off:calc((100% - var(--m)*11)/12*3 + var(--m)*3);
  --blue:#000;--blue-h:#000;--blue-soft:rgba(0,0,0,.06)}
html{scrollbar-gutter:stable}
/* 그림자·유리 효과 제거 */
body.stepped-estimate *,body.stepped-estimate *::before,body.stepped-estimate *::after{box-shadow:none!important;text-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;filter:none!important}
/* 공통 헤더 */
/* 공통 푸터 */
body.stepped-estimate{padding-bottom:calc(var(--fs)*3.4)}
.gov{position:fixed;inset:0;pointer-events:none;z-index:8000;display:none;max-width:var(--max);margin:0 auto;padding:0 var(--m);grid-template-columns:repeat(12,1fr);gap:var(--m)}
.gov.on{display:grid}.gov i{background:rgba(255,0,60,.07);border-left:1px solid rgba(255,0,60,.4);border-right:1px solid rgba(255,0,60,.4)}
/* 본문 폭을 격자(12열)로: 제목은 Work 열에서 시작, 카드 두 장은 1~9열 · 10~12열 */
body.stepped-estimate main:not(#x){max-width:var(--max);width:auto;margin:0 auto;padding:0 var(--m)}
body.stepped-estimate .intro:not(#x){display:grid;grid-template-columns:repeat(12,1fr);gap:4px var(--m);padding:calc(var(--m)*2) 0 calc(var(--m)*1.4);text-align:left}
body.stepped-estimate .intro>*:not(#x){grid-column:4/13;text-align:left;margin:0}
body.stepped-estimate .workspace-header:not(#x){max-width:none;margin:0 0 0 var(--off);justify-content:flex-start;padding:0 0 var(--m)}
body.stepped-estimate .estimate-workspace:not(#x){max-width:none;width:auto;margin:0}
body.stepped-estimate .studio:not(#x){grid-template-columns:repeat(12,1fr);column-gap:var(--m);padding:var(--m) 0}
body.stepped-estimate .form:not(#x){grid-column:1/10;min-width:0}
body.stepped-estimate .quote-column:not(#x){grid-column:10/13;width:auto}
body.stepped-estimate .footnotes:not(#x),body.stepped-estimate .about-estimate:not(#x){max-width:var(--max);margin-left:auto;margin-right:auto;padding-left:var(--m);padding-right:var(--m);box-sizing:border-box}
@media(max-width:1100px){body.stepped-estimate .intro>*:not(#x){grid-column:1/13}body.stepped-estimate .workspace-header:not(#x){margin-left:0}body.stepped-estimate .studio:not(#x){display:block}}
/* 이탤릭이 실제로 보이도록(원본이 font-synthesis:none) */
/* 원본의 중앙 정렬 폭 제한 해제 → 격자에 맞춤 */
body.stepped-estimate .intro:not(#x){max-width:none;margin:0}
body.stepped-estimate .estimate-workspace:not(#x){padding:0}
body.stepped-estimate .flow-progress:not(#x){margin-bottom:var(--m)}
body.stepped-estimate .studio:not(#x){padding:0}
/* 제작물 선택은 3단(Work · Journal · Estimate 열) */
body.stepped-estimate .product-list:not(#x){grid-template-columns:repeat(3,1fr)}
/* 글자 대비와 크기 위계만 보강(구조·색 규칙은 원본 그대로) */
:root{--muted:#3b3b3b;--text2:#333;--text3:#555}
body.stepped-estimate .stage-heading h2:not(#x){font-size:clamp(26px,.8vw + 18px,38px)}
body.stepped-estimate .service-options strong:not(#x),body.stepped-estimate .product-list .pname:not(#x),body.stepped-estimate .book-layouts strong:not(#x){font-size:clamp(19px,.4vw + 14px,24px)}
body.stepped-estimate .section-title h3:not(#x){font-size:clamp(20px,.5vw + 14px,26px)}
body.stepped-estimate .quote-title:not(#x){font-size:clamp(24px,.6vw + 16px,32px)}
body.stepped-estimate .quote-amount:not(#x){font-size:clamp(44px,2.4vw + 24px,68px)}
/* 선택 칸: 원본처럼 "연한 선 박스 → 선택하면 진한 선 박스" (그림자 대신 실제 테두리로) */
body.stepped-estimate :is(.product-list>button,.service-options>button,.segments>button,.book-layouts>button,.quantity-options>button,.paper-presets>button,button.opt):not(#x){border:1px solid rgba(0,0,0,.2);background:#fff;outline:0}
body.stepped-estimate :is(.product-list>button,.service-options>button,.segments>button,.book-layouts>button,.quantity-options>button,.paper-presets>button,button.opt):hover:not([aria-pressed=true]):not(:disabled):not(#x){border-color:rgba(0,0,0,.55)}
body.stepped-estimate :is(.product-list>button,.service-options>button,.segments>button,.book-layouts>button,.quantity-options>button,.paper-presets>button,button.opt)[aria-pressed=true]:not(#x){border:1px solid #000;background:#fff;color:#000;outline:1px solid #000;outline-offset:0}
body.stepped-estimate :is(.product-list>button,.service-options>button,.segments>button,.book-layouts>button,.quantity-options>button,.paper-presets>button,button.opt)[aria-pressed=true] *:not(#x){color:#000;background:transparent}
body.stepped-estimate .product-list:not(#x){gap:var(--m)}
body.stepped-estimate .product-list>button:not(#x){padding:18px 20px;text-align:left}
body.stepped-estimate .stepper:not(#x),body.stepped-estimate select:not(#x),body.stepped-estimate input[type=text]:not(#x),body.stepped-estimate input[type=email]:not(#x),body.stepped-estimate textarea:not(#x){border:1px solid rgba(0,0,0,.2)}
body.stepped-estimate .secondary:not(#x){border:1px solid rgba(0,0,0,.2)}
body.stepped-estimate .secondary:hover:not(#x){border-color:#000}
/* 하단 안내: 격자(라벨 1~3열 · 내용 4열~)에 맞추고 분량 축소, 뒤로가기 버튼 겹침 해소 */
body.stepped-estimate .step-actions:not(#x){margin:var(--m) 0 calc(var(--m)*2)}
body.stepped-estimate .footnotes:not(#x),body.stepped-estimate .about-estimate:not(#x){display:grid;grid-template-columns:repeat(12,1fr);gap:var(--m);width:100%;padding-top:var(--m);padding-bottom:var(--m)}
body.stepped-estimate .footnotes>span:not(#x),body.stepped-estimate .about-estimate h2:not(#x){grid-column:1/4;font-size:var(--fs)}
body.stepped-estimate .footnotes>div:not(#x),body.stepped-estimate .about-estimate>*:not(h2):not(#x){grid-column:4/13;max-width:46em}
body.stepped-estimate .about-estimate>ul:not(#x),body.stepped-estimate .about-estimate>p:not(:first-of-type):not(#x){display:none}
body.stepped-estimate .about-estimate{padding-bottom:calc(var(--m)*3)}
/* 간편 문의: 카드를 Work~Estimate 열(4~12열)에 맞춤 */
body[data-mode=quick].stepped-estimate .form:not(#x){grid-column:1/10;max-width:none;width:auto;margin:0}
body.stepped-estimate .about-estimate h2:not(#x){font-size:var(--fs);font-weight:500}
/* 문의창·경고색: 따뜻한 갈색/주황을 검정·회색으로, 배경 흐림 제거, 입력칸은 구보 스타일(옅은 면 + 아래 선) */
dialog::backdrop{background:rgba(255,255,255,.88);-webkit-backdrop-filter:none;backdrop-filter:none}
body.stepped-estimate #inquiry-status:not(#x),body.stepped-estimate .request-note.warn:not(#x),body.stepped-estimate .quote-note.pending:not(#x){background:#f1f1f1;color:#000;border-color:#000}
body.stepped-estimate .quote-costs .pending dd:not(#x){color:#000}
body.stepped-estimate dialog input:not([type=checkbox]):not(#x),body.stepped-estimate dialog textarea:not(#x){background:#f1f1f1;border:0;border-bottom:1px solid #000}
body.stepped-estimate dialog h2:not(#x){font-size:clamp(22px,.6vw + 15px,30px)}
/* 모바일: 제작물 선택은 2열 → 1열, 푸터 연락처 숨김 */
@media(max-width:1100px){body.stepped-estimate .product-list:not(#x){grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){body.stepped-estimate .product-list:not(#x){grid-template-columns:1fr}}

/* 신규 디자인 / 기존 파일 편집: 큰 박스는 흰색 유지, 안쪽 작은 태그 박스가 선택되면 검정 면 + 흰 글자 */
body.stepped-estimate .service-options>button .service-tag:not(#x){background:#f1f1f1;color:#000;border-radius:0}
body.stepped-estimate .service-options>button[aria-pressed=true] .service-tag:not(#x):not(#y){background:#000;color:#fff}
/* ---- 선 두께 통일: 모든 선택 박스는 선택 전·후 모두 1px (전: 옅은 선, 후: 검정 선). 원본의 box-shadow 링·outline 전부 제거 ---- */
body.stepped-estimate :is(.product-list>button,.service-options>button,.segments>button,.book-layouts>button,.quantity-options>button,.paper-presets>button,button.opt):not(#x):not(#y){box-shadow:none!important;outline:0!important;border:1px solid rgba(0,0,0,.2)!important;position:relative}
body.stepped-estimate :is(.product-list>button,.service-options>button,.segments>button,.book-layouts>button,.quantity-options>button,.paper-presets>button,button.opt):hover:not(:disabled):not(#x):not(#y){border-color:rgba(0,0,0,.55)!important}
body.stepped-estimate :is(.product-list>button,.service-options>button,.segments>button,.book-layouts>button,.quantity-options>button,.paper-presets>button,button.opt):is([aria-pressed=true],[aria-checked=true]):not(#x):not(#y){border:1px solid #000!important;z-index:1}
body.stepped-estimate .segments>button:not(:first-child):not(#x){margin-left:-1px}
/* 규격 아이콘: 실제 비율(A5는 A4를 작게 줄인 같은 비율), 아이콘 좌 · 글자 우 */
.sheet{width:calc(44px*var(--w))!important;height:calc(44px*var(--h,1))!important;min-width:0!important;border-width:1px!important;margin:0!important;opacity:.8}
body.stepped-estimate .opt.size{display:grid!important;grid-template-columns:52px 1fr;grid-template-rows:auto auto;column-gap:12px;align-items:center;justify-items:start;text-align:left}
body.stepped-estimate .opt.size .sheet{grid-row:1/3;grid-column:1;justify-self:center;align-self:center}
body.stepped-estimate .opt.size b{grid-column:2;grid-row:1;align-self:end}
body.stepped-estimate .opt.size small{grid-column:2;grid-row:2;align-self:start}
/* 규격(A4·A5·B5): 선택하면 안쪽을 연한 회색으로 채운다 */
body.stepped-estimate .opt.size[aria-checked=true] .sheet:not(#x){background:#f1f1f1}
@media(max-width:700px){.ft div{display:flex;justify-content:space-between}}
@media(max-width:700px){.ft .email-button{display:none}.ft .fmid a{padding:.4em 0}}

/* 접힌 안내(맨 아래, 아주 작게): 헤더·푸터와 같은 4칼럼 중 2번째 칼럼 시작선에 맞춘다 */
.about-estimate:not(#x),.footnotes:not([hidden]):not(#x){display:block!important;max-width:var(--max);margin:0 auto;padding:var(--m) var(--m) calc(var(--m)*2);box-sizing:border-box;background:none;border:0;grid-template-columns:none}
.about-estimate>*,.footnotes>*{margin-left:calc((100% - 3*var(--m))/4 + var(--m))!important;max-width:46em;width:auto!important}
.about-estimate summary,.footnotes summary{cursor:pointer;font-size:12px;color:#777;list-style:none}
.about-estimate h2{font-size:12px;font-weight:400;margin:.9em 0 .3em;color:#777}
.about-estimate p,.about-estimate li,.footnotes p,.footnotes span,.footnotes details,.footnotes div,.footnotes summary{font-size:12px!important;line-height:1.65;color:#777;margin-top:.3em;margin-bottom:0}
.about-estimate ul{padding-left:1.2em;margin-top:.3em}
@media(max-width:700px){.about-estimate>*,.footnotes>*{margin-left:0!important;max-width:none}}
/* 주의·안내 문구는 작고 옅게 */
.hint,.design-scope-note,.budget-note p,.production-pending,.quote-note,.input-notice p{font-size:12px!important;line-height:1.55;color:#777!important}
/* 예상 합계 금액 굵게 */
.quote-amount,.quote-amount span,.mobile-dock strong{font-weight:700!important}
/* 인쇄비도 확인하기 / 제작도 함께 문의: 값 오른쪽 끝 정렬 */
.quote-costs dd{text-align:right!important}
.quote-costs .production dd{display:flex;flex-direction:column;align-items:flex-end}
.print-shortcut{margin-left:0!important;align-self:flex-end;text-align:right}
/* 하단 합계 바: 푸터와 같은 크기·스타일로, 푸터 바로 위에 붙인다 */
.mobile-dock{display:none!important}
@media(max-width:1100px){.mobile-dock:not([hidden]){position:fixed;left:0;right:0;bottom:var(--ftH,60px);z-index:19;display:flex!important;justify-content:space-between;align-items:center;gap:var(--m);max-width:none;margin:0;padding:.7em var(--m);background:#fff!important;border:0!important;border-top:2px solid #000!important;border-radius:0;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;font:400 var(--fs)/1.45 Inter,"Pretendard Variable",Pretendard,sans-serif;letter-spacing:-.012em;color:#000}}
.mobile-dock>div{display:flex;align-items:baseline;gap:.8em;min-width:0}
.mobile-dock small,.mobile-dock strong{font:inherit!important;color:inherit!important;letter-spacing:inherit;font-weight:400!important}
.mobile-dock strong{font-variant-numeric:tabular-nums}
.mobile-dock button{background:none!important;color:#000!important;border:0;border-radius:0;padding:1px 6px!important;font:inherit!important;font-weight:400!important}
.mobile-dock button:hover{font-style:italic}
@media(max-width:1100px){body.stepped-estimate{padding-bottom:calc(var(--ftH,60px)*2 + 40px)!important}}
/* 알아두세요 문구: 폼과 같은 열(1–9)에 맞춘다 */
.footnotes:not([hidden]){display:grid;grid-template-columns:repeat(12,1fr);gap:var(--m);max-width:var(--max);margin:0 auto;padding:0 var(--m) calc(var(--m)*3);box-sizing:border-box}
.footnotes>span{grid-column:1/4;font-size:var(--fs)}
.footnotes>div{grid-column:4/13;max-width:none;font-size:calc(var(--fs) - 3px);line-height:1.6;color:#555}
.footnotes p{margin:0 0 .6em;font-size:inherit}
.footnotes summary{font-size:inherit;cursor:pointer}
@media(max-width:900px){.footnotes>span,.footnotes>div{grid-column:1/13}}

/* 직접 견적 / 간편 문의: 그림자 없는 납작한 사각 토글 — 선택하면 검정 면 */
.workspace-header .mode-nav:not(#x):not(#y){display:inline-flex;gap:0;background:none!important;padding:0;border:0;border-radius:0!important}
.workspace-header .mode-nav button:not(#x):not(#y){padding:.55em 1.7em;font-size:var(--fs);font-weight:400!important;border:1px solid #000!important;background:#fff!important;color:#000!important;border-radius:0!important;box-shadow:none!important;transform:none!important}
.workspace-header .mode-nav button+button:not(#x):not(#y){margin-left:-1px}
.workspace-header .mode-nav button[aria-pressed=true]:not(#x):not(#y){background:#000!important;color:#fff!important}
.workspace-header .mode-nav button:hover:not([aria-pressed=true]):not(#x):not(#y){font-style:italic}
/* 소개 글줄: 한 문장씩 줄을 나눠 같은 크기로 */
body.stepped-estimate .intro p:not(#x){font-size:var(--fs);line-height:1.65;max-width:none}

/* ---- 예상 합계 굵게: 원본 글꼴(BrightenUI)은 굵은 글자가 없어 안 보였다 → 사이트 글꼴로 ---- */
body.stepped-estimate .quote-amount,body.stepped-estimate .quote-amount *,.mobile-dock strong,body.stepped-estimate .production-amount{font-family:Inter,"Pretendard Variable",Pretendard,sans-serif!important;font-weight:700!important;font-synthesis:weight style}
/* ---- 모바일: 칸이 화면 폭에 맞게 줄고 늘도록(고정 폭 제거) ---- */
@media(max-width:700px){
  body.stepped-estimate .opt-grid.sizes:not(#x){grid-template-columns:repeat(2,minmax(0,1fr))}
  body.stepped-estimate .opt.size:not(#x){grid-template-columns:34px minmax(0,1fr);column-gap:8px;padding:10px 8px!important;min-width:0}
  body.stepped-estimate .opt.size b,body.stepped-estimate .opt.size small{white-space:normal!important;overflow-wrap:anywhere;min-width:0}
  body.stepped-estimate .opt.size small{font-size:11px}
  .sheet{width:calc(28px*var(--w))!important;height:calc(28px*var(--h,1))!important}
  body.stepped-estimate .form,body.stepped-estimate .section-body,body.stepped-estimate .studio,body.stepped-estimate .quote-column,body.stepped-estimate .quote-sticky,body.stepped-estimate #quote{min-width:0;max-width:100%}
  body.stepped-estimate .quote-costs dd,body.stepped-estimate .production-amount,body.stepped-estimate .quote-amount,body.stepped-estimate .opt,body.stepped-estimate .opt *,body.stepped-estimate .quantity-options *{white-space:normal!important;overflow-wrap:anywhere}
  body.stepped-estimate .quote-amount{font-size:clamp(28px,9.5vw,42px)!important}
}
/* ---- PC: 오른쪽 예상 견적은 화면에 고정(헤더~푸터 사이 전체 높이), 내용이 넘치면 JS가 한 화면에 맞게 줄인다 ---- */
@media(min-width:1101px){
  body.stepped-estimate .studio:not(#x){display:block;padding-bottom:calc(var(--m)*3)!important;margin-right:calc(var(--qw,392px) + var(--m))}
  body.stepped-estimate .flow-progress:not(#x){margin-right:calc(var(--qw,392px) + var(--m))}
  body.stepped-estimate .intro>*:not(#x):not(#y){grid-column:4/10}
  body.stepped-estimate .quote-column:not([hidden]):not(#x){position:fixed;top:var(--hdH,100px);height:calc(100vh - var(--hdH,100px) - var(--ftH,67px));left:var(--qL,auto);width:var(--qw,392px);margin:0;padding:0;overflow-x:clip;overflow-y:auto;scrollbar-width:none;z-index:5;background:#f1f1f1}
  /* 한 화면에 담기 위한 압축: 반복 안내는 숨기고 간격·금액 크기를 줄인다 */
  body.stepped-estimate .quote-sticky .cost-caption,body.stepped-estimate .quote-sticky .quote-tax,body.stepped-estimate .quote-sticky .budget-note,body.stepped-estimate .quote-sticky .quote-note,body.stepped-estimate .quote-sticky .quote-announcement{display:none!important}
  body.stepped-estimate .quote-sticky .quote-desc,body.stepped-estimate .quote-sticky .production-summary,body.stepped-estimate .quote-sticky .quote-costs .production small+small{display:none!important}
  body.stepped-estimate .quote-sticky .quote-head{margin-bottom:0!important}
  body.stepped-estimate .quote-sticky .quote-amount{font-size:40px!important;margin:2px 0 6px!important}
  body.stepped-estimate .quote-sticky .quote-title{font-size:20px!important;margin:4px 0 2px!important}
  body.stepped-estimate .quote-sticky .quote-costs>div{padding:7px 0!important}
  body.stepped-estimate .quote-sticky .quote-costs{margin:6px 0 8px!important}
  body.stepped-estimate .quote-sticky summary{padding-block:6px!important}
  body.stepped-estimate .quote-sticky .spec-list p{margin:0!important;line-height:1.45!important}
  body.stepped-estimate .quote-sticky .secondary{padding-block:8px!important}
  body.stepped-estimate .quote-sticky:not(#x){position:static;top:auto;max-height:none;height:auto;overflow:hidden;padding:var(--m)!important;box-sizing:border-box;transform-origin:top left}
}
/* ---- 모바일: 양옆 여백을 줄여 칸이 화면 폭을 꽉 쓰게 ---- */
@media(max-width:700px){
  body.stepped-estimate main:not(#x){width:auto;padding:0 var(--m)}
  body.stepped-estimate .studio:not(#x){padding:var(--m) 0 calc(var(--m)*3)!important}
  body.stepped-estimate .studio>.form:not(#x){padding-left:var(--m)!important;padding-right:var(--m)!important}
}

/* ---- 예상 견적: 칸을 미리 그려 두고 고른 만큼 채운다 ---- */
body.stepped-estimate .q-empty{color:#b5b5b5;font-weight:400}
body.stepped-estimate .quote-title.is-empty{color:#b5b5b5}
.q-spec{margin:8px 0 0;border-top:1px solid #000}
.q-spec>div{display:flex;justify-content:space-between;gap:12px;padding:5px 0;border-bottom:1px solid rgba(0,0,0,.09);font-size:13px;line-height:1.4}
.q-spec dt{color:#777;flex:none}
.q-spec dd{margin:0;text-align:right;color:#000;min-width:0;overflow-wrap:anywhere}
body.stepped-estimate .quote-total-label{display:flex;justify-content:space-between;align-items:baseline}
body.stepped-estimate .quote-total-label span{font-size:12px;color:#777}
.q-msg{font-size:12px;line-height:1.5;color:#777;margin:0 0 8px}
.q-off .q-sum{padding:6px 0;font-size:14px;color:#b5b5b5}
.quote-amount .q-text{font-size:24px}
body.stepped-estimate .quote-amount .q-empty{font-weight:400!important;color:#b5b5b5}
body.stepped-estimate .quote-cta:disabled,body.stepped-estimate .quote-actions button:disabled{opacity:.3;cursor:default}
.quote-close{display:none}
/* PC: 패널 전체를 흰 면으로(아래 회색 면 없음) */
@media(min-width:1101px){
  body.stepped-estimate .quote-column:not([hidden]):not(#x):not(#y){background:#fff}
  body.stepped-estimate .quote-sticky:not(#x):not(#y){background:#fff!important;border:0!important}
}
/* ---- 태블릿·모바일: 페이지 안에는 없고, 하단 '견적 보기'를 눌러야 뜨는 영수증 팝업 ---- */
.quote-backdrop{display:none}
@media(max-width:1100px){
  body.stepped-estimate .quote-column:not(#x){display:none}
  body.stepped-estimate.quote-open{overflow:hidden}
  body.quote-open .quote-backdrop{display:block;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:70}
  body.stepped-estimate.quote-open .quote-column:not([hidden]):not(#x){display:block;position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(460px,calc(100vw - var(--m)*2));height:auto;max-width:none;max-height:calc(100dvh - var(--m)*4);margin:0;padding:0;border:1px solid #000;background:#fff;overflow-y:auto;overscroll-behavior:contain;z-index:71}
  body.stepped-estimate .quote-sticky:not(#x){position:static;max-height:none;width:auto;padding:calc(var(--m)*1.6)!important;background:#fff;border:0}
  body.stepped-estimate .quote-sticky .quote-amount{font-size:clamp(30px,10vw,40px)!important;margin:2px 0 8px!important}
  body.stepped-estimate .quote-sticky .quote-title{font-size:20px!important;margin:6px 0 2px!important}
  body.stepped-estimate .quote-sticky .quote-costs{margin:6px 0 8px!important}
  body.stepped-estimate .quote-sticky .quote-costs>div{display:grid;grid-template-columns:auto 1fr;gap:12px;padding:7px 0!important}
  body.stepped-estimate .quote-sticky summary{padding-block:6px!important}
  .mobile-dock button{border:0!important}
}

/* ---- 예상 견적의 선: 사이트 목록과 같은 검정 1px. 겹치는 선은 뺀다 ---- */
body.stepped-estimate .q-spec:not(#x){border-top:2px solid #000;margin-bottom:0}
body.stepped-estimate .q-spec>div:not(#x){border-bottom:1px solid #000}
body.stepped-estimate .q-spec>div:last-child:not(#x){border-bottom:0}
body.stepped-estimate .quote-costs:not(#x){border-top:1px solid #000;margin-top:0!important}
body.stepped-estimate .quote-costs>div:not(#x){border-bottom:1px solid #000}
body.stepped-estimate .quote-costs>div:last-child:not(#x){border-bottom:0}
body.stepped-estimate .quote-total-label:not(#x){border-top:2px solid #000;padding-top:7px;margin-top:0}
body.stepped-estimate .quote-costs:not(#x){margin-bottom:0!important}
body.stepped-estimate .quote-detail:not(#x){border-top:1px solid #000}
body.stepped-estimate .quote-actions .secondary:not(#x){border:1px solid #000}
/* ---- X 버튼: 견적 팝업과 문의 창 모두 네모 박스. 글자가 아니라 선으로 그려 박스 정가운데 ---- */
.quote-close,#contact-dialog .dialog-top button{position:relative;display:block;width:32px;height:32px;padding:0;margin:0;border:0!important;border-radius:0;background:#f1f1f1!important;font-size:0!important;line-height:0;color:#000;flex:none}
.quote-close:hover,#contact-dialog .dialog-top button:hover{background:#e2e2e2!important}
.quote-close::before,.quote-close::after,#contact-dialog .dialog-top button::before,#contact-dialog .dialog-top button::after{content:"";position:absolute;left:50%;top:50%;width:14px;height:1.5px;margin:-.75px 0 0 -7px;background:#000}
.quote-close::before,#contact-dialog .dialog-top button::before{transform:rotate(45deg)}
.quote-close::after,#contact-dialog .dialog-top button::after{transform:rotate(-45deg)}
#contact-dialog .dialog-top{display:flex;justify-content:space-between;align-items:center;min-height:32px}
#contact-dialog .dialog-top .eyebrow{margin:0;line-height:1.2}
@media(max-width:1100px){
  /* 팝업: '예상 견적 · 실시간 반영' 줄을 20px로 고정하고 X의 세로 중심을 그 줄에 맞춘다 */
  body.stepped-estimate .quote-head:not(#x){display:flex;align-items:center;justify-content:space-between;min-height:20px;line-height:20px;margin:0;padding-right:40px}
  body.stepped-estimate .quote-head span{display:inline-flex;align-items:center;gap:5px;line-height:20px}
  body.quote-open .quote-close{display:block;position:sticky;top:calc(var(--m)*1.6 - 6px);margin:calc(var(--m)*1.6 - 6px) calc(var(--m)*1.6) calc(-32px - var(--m)*1.6 + 6px) auto;z-index:1}
  /* 하단 합계 바: 금액 강조 */
  .mobile-dock>div{flex:1;align-items:center}
  .mobile-dock small{flex:0 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:calc(var(--fs) - 3px)!important}
  body.stepped-estimate .mobile-dock strong:not(#x){flex:none;font-size:calc(var(--fs)*1.28)!important;line-height:1.1!important;letter-spacing:-.03em}
}
/* X는 팝업이 열렸을 때만 */
body:not(.quote-open) .quote-close{display:none!important}

/* ---- 인쇄·PDF: 견적서만, 한 장으로 ---- */
@media print{
  @page{size:A4;margin:12mm}
  html body>*:not(.print-sheet):not(#x):not(#y):not(#z){display:none!important}
  html,html body.stepped-estimate{height:auto!important;overflow:visible!important;padding:0!important;margin:0!important;background:#fff!important}
  html body>.print-sheet:not(#x){display:block!important;break-inside:avoid;page-break-inside:avoid;font-size:10px;line-height:1.5}
  .print-sheet h1{font-size:22px!important;padding-bottom:10px!important;margin:0 0 12px!important}
  .print-sheet h2{font-size:13px!important;margin:12px 0 5px!important}
  .print-sheet .print-meta{margin-bottom:12px!important}
  .print-sheet th,.print-sheet td{padding:6px 5px!important}
  .print-sheet .print-total{font-size:16px!important;margin:12px 0!important;padding:10px 0!important}
  .print-sheet p{margin:0 0 3px!important}
}
/* 푸터 위 합계 바: 검정 면 + 흰 글자로 강조 */
@media(max-width:1100px){
  body.stepped-estimate .mobile-dock:not([hidden]):not(#x){background:#000!important;color:#fff!important;border-top-color:#000!important}
  body.stepped-estimate .mobile-dock:not(#x) small,body.stepped-estimate .mobile-dock:not(#x) strong,body.stepped-estimate .mobile-dock:not(#x) button{color:#fff!important}
}

/* 모바일 진행 표시: 번호와 글자를 붙인다 */
@media(max-width:700px){
  body.stepped-estimate .flow-progress button:not(.flow-reset):not(#x){gap:0;line-height:1.25}
  body.stepped-estimate .flow-progress .step-number:not(#x){line-height:1.25}
  body.stepped-estimate .flow-progress .step-label:not(#x){line-height:1.25}
}

/* 종이 버튼의 코팅 여부: 작게 */
body.stepped-estimate .paper-presets .paper-finish:not(#x){display:block;margin-top:2px;font-size:11px;line-height:1.3;font-weight:400;color:#777}
