/* 리모델링 화면 안내 구성: 5단계 진행 표시, 설치 적합성 검사 카드, 구매·설치 신청.
   style.css의 토큰(--lg, --fit, --cond, --nofit …)을 그대로 쓴다. */

/* ---- 5단계 진행 표시 ---- */
.steps5 { list-style: none; display: flex; align-items: flex-start; margin: 0 auto; padding: 0; gap: 0; min-width: 0; }
.steps5 .step { position: relative; flex: 1 1 0; min-width: 84px; max-width: 132px; }
.steps5 .step + .step::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px; background: var(--line); transform: translateX(-14px); width: calc(100% - 28px); }
.steps5 .step.is-done + .step::before { background: var(--lg); }
.steps5 button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 0 4px; border: 0; background: none; color: var(--graphite); cursor: pointer; border-radius: 10px; }
.steps5 .num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
  background: var(--sheet); color: var(--graphite); box-shadow: inset 0 0 0 1.5px var(--line); transition-property: background-color, color, box-shadow; transition-duration: .2s; }
.steps5 .txt { display: flex; flex-direction: column; align-items: center; line-height: 1.25; }
.steps5 b { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.steps5 small { font-size: 11px; white-space: nowrap; opacity: .8; }
.steps5 .is-done .num { background: var(--lg); color: #fff; box-shadow: none; }
.steps5 .is-done button { color: var(--ink); }
.steps5 .is-current .num { background: var(--sheet); color: var(--lg); box-shadow: inset 0 0 0 2px var(--lg), 0 0 0 4px rgba(165, 0, 52, .12); }
.steps5 .is-current button { color: var(--ink); }
.steps5 .is-warn .num { background: var(--nofit-bg); color: var(--nofit); box-shadow: inset 0 0 0 1.5px var(--nofit); }
.steps5 .is-warn small { color: var(--nofit); opacity: 1; }
.steps5 button:hover b { color: var(--lg); }
.steps5 button:focus-visible { outline: 2px solid var(--lg); outline-offset: 4px; }
@media (max-width: 1500px) { .steps5 small { display: none; } .steps5 .step { min-width: 68px; } }
@media (max-width: 1180px) { .studio-title .sub { display: none; } }
@media (max-width: 900px) {
  .steps5 { order: 5; width: 100%; margin: 4px 0 0; overflow-x: auto; scrollbar-width: none; }
  .steps5 .step { min-width: 64px; }
}

/* ---- 오른쪽: 제품 정보 + 설치 적합성 검사 ---- */
.insp-prod { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center; margin-bottom: 14px; }
.insp-thumb { aspect-ratio: 1; border-radius: 14px; border: 1px solid rgba(0, 0, 0, .06); overflow: hidden; display: grid; place-items: center; }
.insp-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; }
.insp-prod .insp-name { margin: 0 0 2px; font-size: 16px; line-height: 1.3; text-wrap: balance; }
.insp-prod .insp-meta { margin: 0 0 8px; font-variant-numeric: tabular-nums; }

.fit-card { border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden; margin: 0 0 14px; background: var(--sheet); }
.fit-card header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 14px; background: var(--drafting); }
.fit-card .mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #fff; background: var(--graphite); }
.fit-card h3 { margin: 0; font-size: 14px; }
.fit-card header p { margin: 1px 0 0; font-size: 12px; color: var(--graphite); text-wrap: pretty; }
.fit-card .pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: #fff; background: var(--graphite); white-space: nowrap; }
.fit-card.v-fit header { background: var(--fit-bg); } .fit-card.v-fit .mark, .fit-card.v-fit .pill { background: var(--fit); }
.fit-card.v-conditional header { background: var(--cond-bg); } .fit-card.v-conditional .mark, .fit-card.v-conditional .pill { background: var(--cond); }
.fit-card.v-no_fit header { background: var(--nofit-bg); } .fit-card.v-no_fit .mark, .fit-card.v-no_fit .pill { background: var(--nofit); }
.fit-card ul { list-style: none; margin: 0; padding: 4px 14px; }
.fit-card li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 0; font-size: 13px; }
.fit-card li + li { border-top: 1px solid var(--line-soft); }
.fit-card li .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--fit); }
.fit-card li small { display: block; font-size: 12px; color: var(--graphite); margin-top: 1px; text-wrap: pretty; }
.fit-card li b { font-size: 12.5px; color: var(--fit); white-space: nowrap; }
.fit-card li.v-conditional .dot { background: var(--cond); } .fit-card li.v-conditional b { color: var(--cond); }
.fit-card li.v-no_fit .dot { background: var(--nofit); } .fit-card li.v-no_fit b { color: var(--nofit); }
.fit-card li.v-unknown .dot { background: var(--graphite); } .fit-card li.v-unknown b { color: var(--graphite); }
.fit-note { margin: 0; padding: 10px 14px 12px; font-size: 12px; color: var(--graphite); background: var(--drafting); text-wrap: pretty; }

/* ---- 구매 및 설치 신청 ---- */
.order-bar { flex: none; padding: 12px 14px 14px; border-top: 1px solid var(--line-soft); background: var(--sheet); }
.order-bar .primary { width: 100%; padding: 13px 16px; font-size: 15px; font-weight: 700; border-radius: 14px; }
.order-sheet { position: absolute; top: 12px; right: 12px; bottom: 12px; z-index: 8; width: min(460px, calc(100% - 24px)); overflow-y: auto; padding: 18px;
  background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: 20px; box-shadow: var(--shadow-float);
  display: flex; flex-direction: column; gap: 12px; }
.order-sheet[hidden] { display: none; }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.order-head h2 { margin: 0; font-size: 18px; }
.order-sum { margin: 0; font-size: var(--t-sm); }
.order-sum .bad { color: var(--nofit); }
.order-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.order-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 14px; }
.order-list .dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .1); }
.order-list .nm { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.order-list .nm small { display: block; font-weight: 400; font-size: 11.5px; color: var(--graphite); }
.order-list a { grid-column: 2 / -1; justify-self: start; }
.order-note { margin: 0; font-size: 12.5px; color: var(--graphite); text-wrap: pretty; }
.order-actions { margin-top: auto; }
.order-actions .btn { display: block; text-align: center; padding: 13px 16px; font-size: 15px; font-weight: 700; border-radius: 14px; }
@media (max-width: 900px) {
  .order-sheet { position: fixed; inset: 8px; width: auto; }
  .order-bar { position: sticky; bottom: 0; z-index: 6; }
}
/* 신청 버튼은 작은 평면(미니맵) 위에 둔다: 오른쪽 아래 도우미 버튼과 겹치지 않게 */
.side .order-bar { order: 2; }
.side .minimap { order: 3; }

/* 3D 위 범례: 고른 제품이 차지하는 공간 */
.canvas .need-tag { position: absolute; left: 12px; bottom: 12px; z-index: 3; margin: 0; display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 4px 14px rgba(60, 40, 30, .1);
  font-size: 12.5px; color: var(--ink, #1c2024); pointer-events: none; }
.canvas .need-tag[hidden] { display: none; }
.canvas .need-tag i { width: 18px; height: 10px; border: 1.5px dashed #a50034; background: rgba(165, 0, 52, .08); border-radius: 2px; }

/* 3D 아래 안내 줄: 공간별 추천, 설치 전 체크리스트 */
.guide-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px; border-top: 1px solid rgba(60, 40, 30, .08); background: #fff; }
.guide-bar .gb { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 12px; border-radius: 12px; background: #f7f4f0; }
.guide-bar .gb h3 { margin: 0; flex: none; font-size: 13px; font-weight: 700; }
.guide-bar .gb p { margin: 0; flex: 1; min-width: 0; font-size: 12.5px; color: #5b5550; display: flex; gap: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.guide-bar .gb > button { flex: none; }
.guide-bar .gb.v-fit { background: #eef6f1; } .guide-bar .gb.v-conditional { background: #fbf4e2; } .guide-bar .gb.v-no_fit { background: #fbeceb; }
.guide-bar .gb-zone { border: 0; background: #fff; border-radius: 999px; padding: 4px 10px; font: inherit; color: inherit; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 0 0 1px rgba(60, 40, 30, .1); }
.guide-bar .gb-zone:hover { box-shadow: 0 0 0 1px #a50034; }
.guide-bar .gb-zone:focus-visible { outline: 2px solid #a50034; outline-offset: 2px; }
.prod .badge.rec { background: #a50034; color: #fff; font-size: 10.5px; padding: 1px 6px; border-radius: 999px; vertical-align: 1px; }
.canvas:has(.sheet:not(:empty)) .need-tag { display: none; }
@media (max-width: 900px) { .guide-bar { grid-template-columns: 1fr; } .guide-bar .gb { flex-wrap: wrap; } .guide-bar .gb p { white-space: normal; flex-basis: 100%; order: 3; } }
/* 휴대폰: 아래 붙는 신청 버튼이 도우미 버튼에 가리지 않게 자리를 비우고, 말풍선은 숨긴다 */
@media (max-width: 900px) { .side .order-bar { padding-right: 92px; } .bot-btn .bot-tip { display: none; } }

/* ==== 정정 목업 (2026-11-20): 위는 3단계만, 3D 위·아래 조작, 오른쪽은 탭 없이 제품 카드 ==== */
.top .acct { margin-left: auto; }

.studio-head { gap: 12px; }


/* 3D 위 도구 줄 */
.stage .toolbar { gap: 6px; padding: 10px 12px; }
.stage .toolbar .furn-btn { margin-left: 0; }
.icon-row { display: flex; gap: 4px; }
.icon-btn { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--sheet); color: var(--ink); }
.icon-btn:hover:not(:disabled) { border-color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn.on { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.icon-btn .ic { width: 18px; height: 18px; margin: 0; }
.live-btn.on { background: var(--lg); border-color: var(--lg); color: #fff; }

/* 살아 보기 줄: 들어갔을 때만 */
.live-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line-soft); background: #fbf7f2; }
.live-bar[hidden] { display: none; }
.live-tag { font-size: var(--t-xs); font-weight: 700; color: var(--lg); }
.live-bar .sims { margin-right: auto; }
.live-bar .sims .furn-btn { margin: 0; border: 0; background: none; }
.live-bar .sims .furn-btn.on { background: var(--ink); color: var(--sheet); }

/* 3D 위 판정 한 줄 */
.fit-badge { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 4; margin: 0; padding: 8px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; color: #fff; background: var(--fit); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .35); pointer-events: none; white-space: nowrap; }
.fit-badge[hidden] { display: none; }
.fit-badge.v-conditional { background: var(--cond); } .fit-badge.v-no_fit { background: var(--nofit); } .fit-badge.v-unknown { background: var(--graphite); }
.canvas:has(.fit-badge:not([hidden])) .hint { display: none; }

/* 3D 아래 조작 버튼: 이동 · 회전 · 자동 정렬 · 삭제 */
.act-bar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 4px; padding: 6px;
  background: rgba(255, 255, 255, .96); border-radius: 16px; box-shadow: var(--shadow-float); max-width: calc(100% - 24px); }
.act-bar[hidden] { display: none; }
.act-bar .act { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 68px; padding: 7px 10px; border: 0; border-radius: 12px; background: none; color: var(--ink); font-size: 12px; font-weight: 600; }
.act-bar .act:hover { background: var(--drafting); }
.act-bar .act .ic { width: 20px; height: 20px; margin: 0; }
.act-bar .act.danger { color: var(--nofit); }
.act-bar .act-tag { padding: 0 8px; font-size: 12.5px; font-weight: 600; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.canvas:has(.act-bar:not([hidden])) .need-tag { display: none; }

/* 작은 평면도 카드: 3D 왼쪽 아래 (누르면 크게) */
.canvas .minimap { position: absolute; left: 12px; bottom: 12px; z-index: 4; width: 200px; height: 150px; margin: 0; border: 0; border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-float); background: var(--drafting); }
.canvas .minimap .pip-swap { top: auto; bottom: 8px; right: 8px; }
.canvas:has(.minimap:not([hidden])) .need-tag { left: 224px; }
.canvas:has(.sheet:not(:empty)) .minimap { display: none; }

/* 버튼으로 여는 창: 도면·실측, 벽지·바닥 */
.extra-pop { position: absolute; top: 12px; left: 12px; z-index: 7; width: min(420px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow-y: auto;
  padding: 14px 16px 16px; background: rgba(255, 255, 255, .98); border-radius: 18px; box-shadow: var(--shadow-float); }
.extra-pop[hidden] { display: none; }
.extra-pop h3 { font-size: 14px; margin: 10px 0 6px; }
/* 벽 길이 재기: 잰 벽 목록, 고른 벽 발치에 뜨는 입력 카드 */
.measured-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.measured-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 10px; background: var(--drafting); font-size: 13px; }
.measure-card { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 7; display: grid; gap: 8px; padding: 10px 40px 10px 16px; max-width: calc(100% - 24px); background: rgba(255, 255, 255, .98); border-radius: 16px; box-shadow: var(--shadow-float); }
.measure-card[hidden], .measure-card [hidden] { display: none; }
.measure-card.at-wall { transform: none; padding: 12px 40px 14px 14px; }
.measure-card .mc-ask { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.measure-card.at-wall .mc-ask, .measure-card:not(.at-wall) :is(label, .mc-row) { display: none; }
.measure-card.at-wall.asking .mc-ask { display: block; margin-bottom: 8px; font-weight: 500; color: var(--lg); } /* 스캔과 30% 넘게 달라 한 번 묻는 말 */
.measure-card label { font-size: 13px; font-weight: 600; color: var(--ink); }
.measure-card .mc-row { display: flex; align-items: center; gap: 6px; }
.measure-card .mc-x { position: absolute; right: 8px; top: 7px; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--graphite); box-shadow: none; }
.measure-card .mc-x:hover { background: var(--drafting); color: var(--ink); }
.measure-card .mc-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.measure-card .mc-in { position: relative; display: block; }
.measure-card .mc-in input { width: 132px; height: 36px; padding: 0 38px 0 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-variant-numeric: tabular-nums; }
.measure-card .mc-in input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.measure-card .mc-in i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12px; color: var(--graphite); pointer-events: none; }

/* 왼쪽: 이 집에 들어가는 제품, 상세 필터 */
.sugg[hidden] { display: none; }
.sugg { padding: 10px; border-radius: 14px; background: #fbf4f6; }
.sugg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.sugg h3 { margin: 0; font-size: 13px; color: var(--lg); }
.sugg ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sugg-card { width: 100%; display: flex; flex-direction: column; gap: 4px; padding: 5px; border: 1px solid transparent; border-radius: 10px; background: #fff; color: var(--ink); text-align: left; font-weight: 400; }
.sugg-card:hover { border-color: var(--lg); }
.sugg-card .ph { aspect-ratio: 1; border-radius: 8px; overflow: hidden; display: grid; place-items: center; }
.sugg-card img { width: 100%; height: 100%; object-fit: contain; }
.sugg-card .nm { font-size: 11px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sugg-card .vv { font-size: 10.5px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.sugg-card .vv.v-conditional { color: var(--cond); }
.more-filter > summary { cursor: pointer; font-size: var(--t-sm); font-weight: 600; padding: 4px 0; }
.more-filter[open] > summary { margin-bottom: 8px; }
.more-filter .reset-filter { margin-top: 8px; }

/* 오른쪽: 탭 없이 고른 제품 카드 → 없으면 놓은 제품 */
.side .side-body > section { display: block; }
.side .pl-box[hidden], .side #insp:empty { display: none; }
.pl-box h3 { margin: 0 0 8px; font-size: 14px; }
.pl-box .count { display: inline-block; min-width: 18px; padding: 0 6px; font-size: 11px; line-height: 18px; text-align: center; background: var(--concrete); border-radius: 999px; }
.side .insp-photo { position: relative; height: 200px; width: 100%; border-radius: 16px; overflow: hidden; display: grid; place-items: center; margin-bottom: 12px; border: 1px solid rgba(0, 0, 0, .05); }
.insp-photo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; box-sizing: border-box; }
.insp-close { position: absolute; top: 8px; right: 8px; background: rgba(255, 255, 255, .9); }
#insp .insp-name { margin: 0 0 4px; font-size: 17px; line-height: 1.3; text-wrap: balance; }
#insp .insp-meta { margin: 0; font-size: 13px; color: var(--graphite); }
#insp .dims-basis, .cab-panel .dims-basis, .pd-modal .dims-basis { margin: 8px 0; padding: 8px 10px; border-radius: 8px; background: var(--paper, #f6f6f4); font-size: 13px; font-variant-numeric: tabular-nums; }
.dims-basis p { margin: 0; }
.dims-basis .hint-sm { margin-top: 4px; }
#insp .insp-dims { margin: 2px 0 14px; font-size: 13px; font-variant-numeric: tabular-nums; }
#insp .swatches { margin: 0 0 12px; }
.door-row { display: flex; gap: 6px; margin: 0 0 10px; }
.insp-links { display: flex; gap: 14px; align-items: center; margin: 0; font-size: 12.5px; }
.fit-card header { grid-template-columns: auto minmax(0, 1fr); }
.fit-card header h3 { font-size: 15px; }
.fit-card details.fit-note > summary { cursor: pointer; font-weight: 600; }

/* 첫 안내: 주변을 어둡게, 짚은 메뉴만 밝게 */
.tour { position: fixed; inset: 0; z-index: 1000; }
.tour-hole { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(18, 14, 12, .62); transition: all .25s var(--ease, ease); pointer-events: none; }
.tour.center .tour-hole { border-radius: 0; }
.tour-tip { position: fixed; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 16px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-float); transition: left .25s, top .25s; }
.tour-face { width: 56px; height: 56px; }
.tour-face svg { width: 100%; height: 100%; }
.tour-body h3 { margin: 0 0 4px; font-size: 16px; }
.tour-body p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink); text-wrap: pretty; }
.tour-body .tour-n { font-size: 11px; color: var(--graphite); margin-bottom: 2px; }
.tour-acts { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
@media (max-width: 900px) {
  .canvas .minimap { width: 130px; height: 100px; }
  .act-bar .act { min-width: 54px; padding: 6px; }
  .fit-badge { top: 8px; font-size: 12.5px; }
}
/* 하우니 버튼이 신청 버튼을 가리지 않게 */
.side .order-bar { padding-right: 92px; }
.studio .bot-btn .bot-tip { display: none; }
.sugg-head #askBot { padding: 3px 10px; font-size: 11.5px; }
/* 하우니 대화의 제품 카드 */
.bot-prods { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.bot-prods li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px; background: #fff; border-radius: 12px; }
.bot-prods .ph { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--drafting); }
.bot-prods img { width: 100%; height: 100%; object-fit: contain; }
.bot-prods .nm { min-width: 0; font-size: 12px; line-height: 1.3; }
.bot-prods .nm b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bot-prods .nm small { color: var(--graphite); }
.lib-head select { padding: 3px 8px; font-size: 12px; border-radius: 999px; }
.lib-head { gap: 8px; align-items: center; } .lib-head h2 { margin-right: auto; }
.lib .prod .price { font-size: 12px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
#insp .insp-price { margin: -8px 0 14px; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
#insp .insp-price .muted { font-size: 11px; font-weight: 400; }

/* ===== 앱 배치 (폰·태블릿·작은 앱 창, remodel.js APP_MAX_W 이하) =====
   3D가 화면을 채우고, 제품은 아래 서랍(평소엔 '이 집에 들어가는 제품'만), 고른 제품은 서랍 자리에 카드로.
   덜 쓰는 것(처음과 비교, 도면·실측, 전체 화면, 조작키, 렌더, 미니맵, 진행 단계)은 숨기거나 메뉴로 */
.app-only { display: none; }
.studio.app .app-only:not([hidden]) { display: inline-flex; }
.studio.app {
  height: calc(100dvh - var(--topbar)); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
  grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "head" "stage" "dock";
}
.studio.app .studio-head { gap: 8px; padding: 0 2px; flex-wrap: nowrap; }
.studio.app .studio-title h1 { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio.app .studio-title .sub { display: none; }

.studio.app .stage { grid-area: stage; }
.studio.app .canvas { flex: 1; height: auto; min-height: 0; }
.studio.app .toolbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 6px 8px; gap: 2px; }
.studio.app .toolbar::-webkit-scrollbar { display: none; }
.studio.app .toolbar .furn-btn { flex: none; padding: 7px 11px; font-size: 13.5px; white-space: nowrap; }
.studio.app :is(#beforeBtn, #extraBtn, #fullBtn, #keysBtn, .render-btn, .minimap, .hint) { display: none !important; }
.studio.app .icon-row { flex: none; }
.studio.app .fit-badge { top: 8px; max-width: calc(100% - 84px); font-size: 13px; padding: 7px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio.app .act-bar { bottom: 10px; }
.studio.app .need-tag { left: 10px; bottom: 74px; }

/* 아래 서랍: 제품 */
.studio.app .lib { grid-area: dock; padding: 10px 10px 8px; gap: 8px; max-height: 42dvh; overflow: hidden; }
.studio.app .lib-side { gap: 8px; }
.studio.app .lib-head { align-items: center; gap: 6px; }
.studio.app .lib-head h2 { font-size: 15px; }
.studio.app:not(.lib-open) :is(#libCount, #sortBy, #q, #moreFilter, #lib) { display: none; }
.studio.app:not(.lib-open) .lib:has(#sugg[hidden]) #lib { display: grid; max-height: 22dvh; }
.studio.app .sugg { padding: 8px; }
.studio.app .sugg ul { display: flex; overflow-x: auto; scrollbar-width: none; gap: 8px; scroll-snap-type: x mandatory; }
.studio.app .sugg ul::-webkit-scrollbar { display: none; }
.studio.app .sugg li { flex: 0 0 min(230px, 70vw); scroll-snap-align: start; }
/* 서랍 카드는 사진 왼쪽·이름 오른쪽으로 납작하게 (3D가 더 보이게) */
.studio.app .sugg-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; row-gap: 2px; align-items: center; padding: 6px; }
.studio.app .sugg-card .ph { grid-row: 1 / 3; width: 56px; }
.studio.app .sugg-card .nm { font-size: 13px; align-self: end; }
.studio.app .sugg-card .vv { font-size: 12px; align-self: start; }
.studio.app .sugg-head h3 { font-size: 13.5px; }
.studio.app.lib-open .lib { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 25; max-height: 78dvh; overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 0 -18px 48px -20px rgba(18, 14, 12, .45); }
.studio.app.lib-open .lib #lib { max-height: none; overflow: visible; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.studio.app.lib-open::after { content: ""; position: fixed; inset: 0; z-index: 24; background: rgba(18, 14, 12, .35); }

/* 고른 제품: 서랍 자리에 카드 */
.studio.app .side { grid-area: dock; display: none; max-height: 46dvh; overflow: hidden; }
.studio.app.has-sel .side { display: flex; }
.studio.app.has-sel .lib { display: none; }
.studio.app .side-body { padding: 12px 12px 8px; overflow-y: auto; }
.studio.app .side #insp .insp-photo { height: 120px; }
.studio.app .side .order-bar { position: static; padding: 8px 12px 10px; padding-right: 12px; }
.studio.app .side .order-bar .primary { width: 100%; }

/* 하우니: 3D 오른쪽 위, 대화창은 아래로 열린다 */
.studio.app .bot { top: calc(var(--topbar) + 112px); bottom: auto; right: 18px; flex-direction: column-reverse; }
.studio.app .bot-btn { width: 48px; height: 48px; padding: 4px; }
.studio.app .bot-panel { max-height: min(560px, calc(100dvh - var(--topbar) - 190px)); }

/* 앱 배치의 안내 말풍선은 조금 작게 */
@media (max-width: 640px) {
  .tour-tip { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 14px; border-radius: 18px; }
  .tour-face { width: 40px; height: 40px; }
  .tour-body h3 { font-size: 15px; }
  .tour-body p { font-size: 14px; }
}
.studio.app .act-bar .act { white-space: nowrap; }
.studio.app .lib-head h2 { white-space: nowrap; margin-right: auto; }
.studio.app.lib-open :is(#orderMini, #libCount) { display: none !important; }
.studio.app.lib-open .bot { display: none; }
.studio.app .side { max-height: 40dvh; }
.studio.app .side #insp .insp-photo { height: 48px; margin-bottom: 8px; }
.studio.app .side .insp-name { font-size: 16px; }
/* 이름과 가격이 접히지 않고 한눈에 보이게 */
.studio.app .side #insp .insp-price { margin: 2px 0 8px; }
/* 앱 배치인데 가로가 넉넉하면(태블릿·작은 PC 창) 서랍을 오른쪽에 세워서 3D 높이를 지킨다 */
@media (min-width: 700px) {
  .studio.app { grid-template-columns: minmax(0, 1fr) 320px; grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "head head" "stage dock"; }
  .studio.app :is(.lib, .side) { max-height: none; }
  .studio.app .lib { overflow-y: auto; overscroll-behavior: contain; }
  .studio.app .sugg ul { flex-direction: column; overflow: visible; scroll-snap-type: none; }
  .studio.app .sugg li { flex: none; }
  .studio.app.lib-open .lib { position: static; max-height: none; box-shadow: var(--shadow-sheet); }
  .studio.app .lib #lib { grid-template-columns: 1fr; }
  .studio.app:not(.lib-open) .lib #lib { display: grid; max-height: none; overflow: visible; }
  .studio.app .bot { right: calc(320px + 26px); }
  .studio.app.lib-open::after { content: none; }
  .studio.app.lib-open .bot { display: flex; }
  .studio.app .side #insp .insp-photo { height: 140px; }
}
/* 채광·와이파이 줄은 판정이 아니라 정보 */
.fit-card li.v-info .dot { background: var(--graphite); opacity: .5; }

/* ---- 3단계: 지금 할 일 카드 (3D 왼쪽 위) + 단계가 끝날 때 체크가 톡 ---- */
@keyframes sc-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.steps5 .step.just-done .num { animation: step-pop .55s cubic-bezier(.2, 1.6, .4, 1) var(--d, 0ms) both; }
.steps5 .step.just-done + .step::before { animation: step-line .45s ease var(--d, 0ms) both; }
@keyframes step-pop { 0% { transform: scale(.6); background: var(--sheet); color: var(--lg); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes step-line { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .step-card, .steps5 .step.just-done .num, .steps5 .step.just-done + .step::before { animation: none; } }

/* ==== 세 영역 정리 (2026-11-20): 왼쪽 제품 탐색 · 가운데 공간 편집 · 오른쪽 작업 정보 ==== */
.studio:not(.app) { grid-template-columns: 320px minmax(0, 1fr) 340px; }
@media (max-width: 1279px) { .studio:not(.app) { grid-template-columns: 300px minmax(0, 1fr) 320px; } }

/* 왼쪽: 기본 필터(종류·설치 유형·크기)와 목록 사이를 확실히 나눈다 */
.main-filter { display: flex; flex-direction: column; gap: 8px; }
.main-steps { margin: 0; padding: 0; list-style: none; }
.main-steps .step { display: flex; align-items: center; gap: 8px; }
.main-steps .step-l { flex: none; font-size: 12px; color: var(--graphite); }
.main-filter .filters { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.main-filter .filters select { width: 100%; font-size: 12.5px; padding: 6px 8px; border-radius: 10px; }
.studio:not(.app) .lib-side { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.studio:not(.app) .lib #lib { grid-template-columns: 1fr; gap: 10px; }
.studio:not(.app) .lib .prod { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px; }
.studio:not(.app) .lib .prod .dot.tile { width: 96px; aspect-ratio: 1; }
.studio:not(.app) .lib .prod .dot.tile span { display: none; }
.lib .name { font-size: 13.5px; -webkit-line-clamp: 2; }
.lib .dims { display: flex; gap: 0; margin: 6px 0 4px; border: 1px solid var(--line-soft); border-radius: 10px; overflow: hidden; }
.lib .dims > div { flex: 1; padding: 4px 6px; text-align: center; }
.lib .dims > div + div { border-left: 1px solid var(--line-soft); }
.lib .dims dt { font-size: 10.5px; color: var(--graphite); }
.lib .dims dd { margin: 0; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lib .prod .price { font-size: 14px; }
.lib .color-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin-top: 4px; }
.lib .color-row .vk { font-size: 11px; color: var(--graphite); }
.lib .color-row .vlabel { display: inline; margin: 0; font-size: 11.5px; }
.lib .color-row .variants { display: inline-flex; }
.lib .place-btn { width: 100%; margin-top: 8px; padding: 8px 10px; font-size: 13px; border-radius: 10px; }


/* 저장 상태: 점 색으로 바로 보이게 */
.save-state.dirty i { background: var(--cond); } .save-state.fail i { background: var(--nofit); } .save-state.fail { color: var(--nofit); }

/* 가운데: 고른 제품 바로 위에 따라붙는 조작 메뉴 */
.act-bar { flex-wrap: wrap; justify-content: center; max-width: min(520px, calc(100% - 16px)); }
.act-bar.near { bottom: auto; transform: translateX(-50%); transition: none; }
.act-bar .act-cap { flex-basis: 100%; text-align: center; font-size: 11.5px; color: var(--graphite); padding: 0 6px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-bar.near::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
.fit-badge { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.fit-badge b { font-weight: 700; }
.fit-badge span { font-size: 12px; font-weight: 500; }
.studio:not(.app) .hint { display: none; }

/* 오른쪽 작업 정보 */
.studio:not(.app) .side .side-body { display: flex; flex-direction: column; gap: 16px; }
.studio:not(.app).has-sel #suggSlot { display: none; }
.side-slot:empty { display: none; }
.side .sugg { background: #fbf4f6; }
.side .sugg h3 { font-size: 14px; }
.side .sugg ul { grid-template-columns: 1fr; gap: 8px; }
.side .sugg-card { flex-direction: row; align-items: center; padding: 6px; }
.sugg-card { position: relative; }
.sugg-main { display: flex; flex: 1; min-width: 0; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: inherit; text-align: left; font-weight: 400; }
.side .sugg-card .ph { width: 56px; flex: none; }
.side .sugg-card .nm { font-size: 12.5px; flex: 1; }
.sugg-main > span:not(.ph) { min-width: 0; }
.sugg-place { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--lg); color: #fff; border: 0; font-size: 12px; font-weight: 700; }
.sugg-place:hover { background: #8a002b; }
.sugg-empty { margin: 0 0 8px; font-size: 12.5px; color: var(--ink); text-wrap: pretty; }
.sugg .chips .chip { font-size: 12px; }
.lib-side .sugg-card { flex-direction: column; } .lib-side .sugg-main { flex-direction: column; align-items: stretch; gap: 4px; }
.studio.app .sugg-card { display: flex; flex-direction: row; align-items: center; } .studio.app .sugg-main { flex-direction: row; }
.studio.app .sugg-card .ph { width: 56px; flex: none; }

/* 설치 체크: 안 되는 것만, 왜·어떻게와 함께. 누르면 그 제품으로 */
.chk-ok, .chk-head { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; font-size: 13px; }
.chk-ok { background: var(--fit-bg); }
.chk-head { background: var(--nofit-bg); color: var(--nofit); margin-bottom: 6px; }
.chk-ok small { display: block; font-size: 11.5px; color: var(--graphite); }
.chk .mk { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--fit); color: #fff; font-size: 12px; font-weight: 700; }
.chk .mk.bad { background: var(--nofit); }
.chk-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.chk-list button { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 9px 12px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--sheet); color: var(--ink); text-align: left; font-weight: 400; }
.chk-list button:hover { border-color: var(--nofit); }
.chk-list b { grid-column: 1; font-size: 13px; }
.chk-list span { grid-column: 1; font-size: 12px; color: var(--nofit); }
.chk-list em { grid-column: 1; font-style: normal; font-size: 12px; color: var(--graphite); }
.chk-list i { grid-column: 2; grid-row: 1 / 4; align-self: center; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--lg); white-space: nowrap; }

/* 오른쪽 도면: 크게 볼 수 있고, 지금 보는 방향을 부채꼴로 */
.side .minimap { position: relative; width: 100%; height: 210px; border-radius: 14px; overflow: hidden; background: var(--drafting); box-shadow: none; border: 1px solid var(--line-soft); }
.side .minimap.big { height: 380px; }
.side .minimap .pane { position: absolute; inset: 0; }
.side .minimap .pip-swap { top: auto; bottom: 8px; right: 8px; }
.mini-grow { position: absolute; top: 8px; right: 8px; z-index: 4; padding: 4px 12px; font-size: 12px; border-radius: 999px; background: rgba(29, 28, 26, .78); color: #fff; border: 0; }
.studio.app .mini-grow { display: none; }
.plan .cam-mark { pointer-events: none; }
.plan .cam-dot { fill: #a50034; pointer-events: none; }
.studio[data-view="plan"] .plan .cam-mark, .studio[data-view="plan"] .plan .cam-dot { display: none; }

/* 신청: 합계와 같이, 놓은 제품이 있어야 강조 */
.order-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; margin: 0 0 8px; font-size: 13px; }
.order-total[hidden] { display: none; }
.order-total b { font-size: 17px; font-variant-numeric: tabular-nums; }
.order-total small { flex-basis: 100%; font-size: 11px; color: var(--graphite); }
.order-bar .ghost { width: 100%; padding: 12px 16px; font-size: 14px; border-radius: 14px; }
.studio:not(.app) .side .order-bar { padding-right: 14px; }
/* 고른 제품 카드는 가볍게: 사진 작게, 이름·가격·판정만 */
.studio:not(.app) .side .insp-photo { height: 132px; }
.fit-card header { padding: 10px 12px; }
/* 오른쪽 순서: 설치 체크 → 도면 → 추천 → 놓은 제품(접어 둠) */
.studio:not(.app) .side .order-bar { padding-right: 92px; }
.chk[hidden] { display: none; }
.chk:empty { display: none; }
.chk .chk-ok, .chk .chk-head { margin: 0; }
.pl-box > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.pl-box > summary::-webkit-details-marker { display: none; }
.pl-box > summary h3 { margin: 0; }
.pl-box > summary .muted { font-size: 12px; }
.pl-box[open] > summary .muted { visibility: hidden; }
.pl-box[open] > summary { margin-bottom: 8px; }
.pl-box #pls li { padding: 7px 8px; font-size: 12.5px; }
.pl-box #pls li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio:not(.app) .studio-head .studio-title h1 { white-space: nowrap; }
.lib-head { flex-wrap: wrap; } .lib-head h2 { white-space: nowrap; } .lib-head .muted { white-space: nowrap; }
.lib-head #sortBy { width: auto; }
.act-bar { flex-wrap: nowrap; max-width: none; }
/* 고른 제품 색상: 동그라미만, 이름은 마우스를 올리면 */
.studio:not(.app) #insp .swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.studio:not(.app) #insp .swatch { padding: 2px; border-radius: 50%; font-size: 0; gap: 0; }
.studio:not(.app) #insp .swatch i { width: 22px; height: 22px; margin: 0; }

/* ---- 공간 꾸미기 라이브러리: 전체 / LG 가전 / 가구 / 수납 / 소품 ---- */
.lib-tabs { display: flex; gap: 5px; flex-wrap: nowrap; margin-bottom: 10px; }
.lib-tabs button { flex: 0 0 auto; padding: 6px 11px; white-space: nowrap; border-radius: 999px; border: 1px solid var(--line); background: var(--sheet); color: var(--graphite); font-size: 13px; font-weight: 500; }
.lib-tabs button:hover { color: var(--ink); border-color: var(--ink); }
.lib-tabs button.on { background: var(--lg); border-color: var(--lg); color: #fff; }
.lib:not([data-tab="lg"]) .lg-part { display: none !important; }
.lib[data-tab="lg"] .decor-lib { display: none; }
.decor-lib .dsec { margin: 4px 0 14px; }
.decor-lib .dsec h3 { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.decor-lib .dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.dtile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 0 8px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--sheet); font-size: 12px; color: var(--ink); cursor: grab; }
.dtile:hover { border-color: var(--lg); box-shadow: 0 4px 14px rgba(0, 0, 0, .06); }
.dtile.on { border-color: var(--lg); background: var(--lg-soft); color: var(--lg); font-weight: 600; }
.dtile .dimg { display: block; width: 100%; aspect-ratio: 1 / .78; border-radius: 11px 11px 0 0; background: linear-gradient(180deg, #fbfaf8, var(--warm-grey)); overflow: hidden; }
.dtile .dimg img { width: 100%; height: 100%; object-fit: contain; }
.dsec-lg { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--drafting); font-size: 13px; font-weight: 600; color: var(--ink); }
.dsec-lg:hover { border-color: var(--lg); color: var(--lg); }
/* 고른 꾸미기 가구: 배치 설정 */
.decor-photo { background: linear-gradient(180deg, #fbfaf8, var(--warm-grey)); }
.decor-photo img { object-fit: contain; }
.decor-set { margin-top: 10px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--sheet); transition: box-shadow .3s; }
.decor-set.flash { box-shadow: 0 0 0 3px var(--lg-soft); }
.decor-set h3 { margin: 0 0 8px; font-size: 14px; }
.decor-set dl { margin: 0; display: grid; gap: 8px; }
.decor-set dl > div { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 8px; font-size: 13px; }
.decor-set dt { color: var(--graphite); }
.decor-set dd { margin: 0; font-variant-numeric: tabular-nums; }
.decor-set dd.sz { display: flex; align-items: center; gap: 8px; }
.decor-set dd.sz input { flex: 1; accent-color: var(--lg); }
.decor-set dd.sz output { min-width: 64px; text-align: right; font-size: 12px; }
.decor-set dd.ok { color: var(--fit); font-weight: 600; }
.decor-set dd.ok::before { content: "✓ "; }
.decor-set dd.bad { color: var(--nofit); font-size: 12px; }
.decor-set select { width: auto; padding: 4px 8px; }
.decor-set .tool-row { margin-top: 10px; }
/* 꾸미기 탭: 목록이 길어도 화면이 같이 내려가지 않고 왼쪽 패널 안에서만 스크롤 */
.studio:not(.app) .lib { min-height: 0; overflow: hidden; }
.studio:not(.app) .lib:not([data-tab="lg"]) .lib-side { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; border-bottom: 0; padding-bottom: 4px; margin-right: -6px; padding-right: 6px; }
.studio:not(.app) .lib:not([data-tab="lg"]) .lib-tabs { position: sticky; top: 0; z-index: 1; background: var(--sheet); padding-bottom: 8px; margin-bottom: 2px; }
/* 지예: 오른쪽은 설치 가능 여부 · 가격 · 구매 및 설치 신청만 (도면·추천·놓은 목록은 뺀다) */
.studio .side #mapSlot, .studio .side #suggSlot, .studio .side #plBox { display: none; }
.lib .dims { display: none; }
/* 가격 범위: 손잡이 두 개 (지금 보는 종류의 최저가 ~ 최고가) */
/* 가구 크기 조절: 3D 메뉴 안에서 바로 */
.act-bar .act-size { display: flex; align-items: center; gap: 8px; padding: 0 6px; font-size: 12.5px; font-weight: 600; }
.act-bar .act-size input { width: 160px; margin: 0; }
.act-bar .act-size output { min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.canvas .minimap.big { width: min(380px, calc(100% - 24px)); height: 280px; }

/* ===== 색 규칙 (지예, 2026-11-20): 글자를 뺀 면 색은 베이지 60 · 흰색 30 · 레드 10 =====
   베이지 = 바탕·칸·비활성 칩, 흰색 = 카드·패널·기본 버튼, 레드 = 누른 것·고른 것·주요 버튼·판정 표시.
   검정 면(버튼·칩·말풍선)은 쓰지 않는다. 적합/부적합도 이 세 색 안에서: 적합은 베이지 + 레드 표시, 부적합은 레드 면 */
:root {
  /* 판정 색은 예외: 들어가면 초록, 안 들어가면 빨강 (지예: 3D에서 초록/빨강으로 판단) */
  --fit: #1e7a4f; --fit-bg: #e2f2e8;
  --cond: #1e7a4f; --cond-bg: #e2f2e8;
  --nofit: #b3261e; --nofit-bg: #fbe9e7;
  --unk: var(--graphite);
}
button, .btn { background: var(--sheet); color: var(--ink); border-color: var(--line); }
button:hover, .btn:hover { background: var(--warm-grey); border-color: var(--line); }
button.primary, .btn.primary { background: var(--lg); color: #fff; border-color: var(--lg); }
button.primary:hover, .btn.primary:hover { background: var(--lg-deep); border-color: var(--lg-deep); }
button.ghost:hover, .btn.ghost:hover { background: var(--warm-grey); border-color: var(--line); }
/* 눌린 상태·고른 칩은 모두 레드 */
.chip.on, .icon-btn.on, .furn-btn.on, .toolbar .furn-btn.on, #walk.on, #keysBtn.on, #beforeBtn[aria-pressed="true"],
.live-bar .sims .furn-btn.on, .lib-tabs [data-tab].on, .opt-steps .on, .main-steps .on {
  background: var(--lg); color: #fff; border-color: var(--lg);
}
.chip.on .muted, .chip.on small, .opt-steps .on small, .opt-steps .on .n { color: rgba(255, 255, 255, .8); }
/* 알림·말풍선: 흰 면 + 그림자 (검정 면 대신) */
.toast, .bot-tip { background: var(--sheet); color: var(--ink); border: 1px solid var(--line-soft); }
.toast.err { border-color: var(--lg); color: var(--lg-deep); }
/* 3D 위 작은 지도·도면 표시: 공유기 기호 등 검정 면 없이 */
.fit-card .mark { background: var(--lg); }
.fit-card.v-fit header { background: var(--warm-grey); }
.fit-card.v-no_fit header { background: var(--lg-soft); }
.sugg { background: var(--warm-grey); }

/* 지예: 오른쪽 화면은 없앤다. 놓으면 3D에서 초록(적합)/빨강(부적합)으로 바로 보이니까.
   남는 건 합계 + 구매 및 설치 신청 하나: 3D 화면 오른쪽 아래에 작은 카드로 띄운다 */
.studio:not(.app) { grid-template-columns: 320px minmax(0, 1fr); grid-template-areas: "head head" "lib stage"; }
.studio:not(.app) .side { grid-area: stage; align-self: end; justify-self: end; z-index: 6; width: 300px; margin: 0 96px 12px 0;
  background: none; box-shadow: none; border: 0; overflow: visible; pointer-events: none; }
.studio:not(.app) .side .side-body { display: none; }
.studio:not(.app) .side .order-bar { pointer-events: auto; border: 0; border-radius: 16px; background: var(--sheet); box-shadow: var(--shadow-float); padding: 10px 12px 12px; }
.studio:not(.app) .side .order-bar .order-total { margin: 0 0 6px; }
.studio:not(.app) .side .order-bar .primary { padding: 11px 14px; font-size: 14px; }

/* 지예: 3D 위 메뉴 단순하게. 살아 보기는 오른쪽 위 밀어서 켜는 스위치 3개(채광·와이파이·동선), 도면·실측은 뺀다 */
#liveBtn, #liveBar, .studio #extraBtn { display: none !important; }
.sim-switches { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--warm-grey); }
.sim-switches .simsw { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px; border: 0; border-radius: 999px; background: none; color: var(--ink); font-size: 13px; font-weight: 600; box-shadow: none; }
.sim-switches .simsw:hover { background: var(--sheet); }
.sw-track { position: relative; width: 30px; height: 18px; border-radius: 999px; background: var(--line); transition: background-color .18s var(--ease); flex: none; }
.sw-track i { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--sheet); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .18s var(--ease); }
.sim-switches .simsw.on { background: var(--sheet); }
.sim-switches .simsw.on .sw-track { background: var(--lg); }
.sim-switches .simsw.on .sw-track i { transform: translateX(12px); }
.toolbar #walk { margin-left: 4px; }
/* LG 가전 탭: 상세 필터를 펼쳐도 패널 밖으로 안 나가게 패널 전체가 한 번에 스크롤 (탭은 위에 고정) */
.studio:not(.app) .lib[data-tab="lg"] { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.studio:not(.app) .lib[data-tab="lg"] .lib-side { flex: none; }
.studio:not(.app) .lib[data-tab="lg"] #lib { flex: none; overflow: visible; }
.studio:not(.app) .lib[data-tab="lg"] .lib-tabs { position: sticky; top: -16px; z-index: 3; background: var(--sheet); padding: 16px 0 8px; margin-top: -16px; }
.studio:not(.app) .lib .opt-steps { max-height: none; overflow: visible; }

/* 살아 보기 스위치: 3D 위 오른쪽 위 (툴바 아래). 버튼 기본 .sw(색 견본)와 이름이 겹쳐 simsw로 */
.canvas > .sim-switches { position: absolute; top: 12px; right: 12px; z-index: 5; background: var(--sheet); box-shadow: var(--shadow-float); }
.sim-switches .simsw.on { background: var(--warm-grey); }
/* 설치 단계 안내 카드는 뺀다: 놓으면 3D에서 초록·빨강으로 바로 보인다 */
/* 신청 카드는 오른쪽 끝, 하우니 버튼 바로 위 */
.studio:not(.app) .side { margin: 0 12px 88px 0; }
.studio:not(.app) .side .order-bar { padding-right: 12px; }

/* ---- 추천 배치 (조합 카드) ---- */
.combo-pop { position: absolute; top: 12px; left: 12px; z-index: 7; width: min(400px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow-y: auto;
  padding: 16px; border-radius: 18px; background: var(--sheet); box-shadow: var(--shadow-float); }
.combo-pop h4 { margin: 14px 0 6px; font-size: 13px; }
.combo-pop .chip.on, .combo-pop .chip[aria-pressed="true"] { background: var(--lg); border-color: var(--lg); color: #fff; }
.combo-budget { display: flex; align-items: center; gap: 8px; }
.combo-budget input { width: 140px; }
.combo-pop > input { width: 100%; }
.combo-moods { margin-top: 6px; }
.combo-go { width: 100%; margin-top: 14px; padding: 12px; border-radius: 14px; font-weight: 700; }
.combo-btn { background: var(--lg); color: #fff; border-color: var(--lg); }
.combo-btn:hover { background: var(--lg-deep); }
.combo-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.combo { padding: 12px 14px; border-radius: 14px; background: var(--warm-grey); border: 2px solid transparent; }
.combo.on { border-color: var(--lg); background: var(--sheet); }
.combo header { display: flex; align-items: center; gap: 8px; }
.combo header b { font-size: 15px; }
.combo header .tag { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--lg); }
.combo .palette i { width: 12px; height: 12px; }
.combo .why { margin: 6px 0; font-size: 13px; line-height: 1.5; }
.combo-lg { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 6px; }
.combo-lg li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 8px 10px; border-radius: 10px; background: var(--sheet); font-size: 13px; }
.combo-lg .price { font-weight: 700; }
.combo-lg small { grid-column: 1 / -1; color: var(--ink-soft, #6b6560); font-size: 12px; }
.combo-decor { margin: 4px 0; font-size: 12px; color: var(--ink-soft, #6b6560); }
.combo-tips summary { font-size: 12.5px; font-weight: 600; cursor: pointer; }
.combo-tips ul { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; line-height: 1.5; }
.combo footer { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.combo footer .total { font-weight: 800; font-size: 15px; }
.combo footer .muted { font-size: 12px; }
.combo footer .primary { margin-left: auto; }
.combo-clear { margin-top: 10px; width: 100%; }
.bot-log .combo-list { margin-top: 8px; }
.bot-prods li.best { background: var(--warm-grey); border-radius: 12px; }
.combo-pop[hidden] { display: none; }

/* 하우니 사진 첨부 */
.bot-photo { display: grid; place-items: center; width: 40px; flex: none; border-radius: 10px; color: var(--ink-2, #555); cursor: pointer; }
.bot-photo:hover, .bot-photo:focus-within { background: var(--drafting); color: var(--ink); }
.bot-photo svg { width: 22px; height: 22px; }
.bot-photo .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bot-photo-prev { display: flex; align-items: center; gap: 10px; margin: 0 14px; padding: 6px 8px; border-radius: 12px; background: var(--drafting); font-size: 12.5px; }
.bot-photo-prev[hidden] { display: none; }
.bot-photo-prev img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.bot-photo-prev span { flex: 1; }
.bot-photo-prev .bot-x { position: static; }
.bot-log .msg-photo { display: block; max-width: 180px; max-height: 140px; margin: 0 0 6px auto; border-radius: 10px; object-fit: cover; }

/* 실사로 보기 */
.render-shot figcaption { align-self: stretch; margin: 0; }
.render-shot .render-act { display: flex; gap: 6px; }
.render-shot a.btn { text-decoration: none; display: inline-flex; align-items: center; }
/* 상세 창: 같은 색 안의 모델 고르기 (칩에는 모델 번호를 붙이지 않는다) */
.pd-model { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: var(--t-xs); color: var(--muted); }
.pd-model select { flex: 1 1 auto; width: auto; min-width: 0; max-width: 100%; padding: 4px 8px; font-size: var(--t-xs); border-radius: 8px; }

/* ===== 왼쪽 제품 탐색 다시 짜기 (2026-11-21): 카테고리 → 설치 방식 → 품목 → 가격 범위 → 상세 필터 =====
   3D가 화면의 약 79%, 제품 탐색이 약 21%. 패널은 접을 수 있다 */
.studio:not(.app) { grid-template-columns: clamp(288px, 20vw, 340px) minmax(0, 1fr); } /* 3D가 화면의 79%쯤 */
.studio:not(.app).lib-folded { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage"; }
.studio:not(.app).lib-folded .lib { display: none; }
.lib-fold { grid-area: stage; align-self: center; justify-self: start; z-index: 8; width: 22px; height: 56px; padding: 0; margin-left: -18px;
  display: grid; place-items: center; border-radius: 0 12px 12px 0; border: 1px solid var(--line); border-left: 0; background: var(--sheet); color: var(--graphite); box-shadow: 2px 2px 10px rgba(60, 40, 30, .08); }
.lib-fold:hover { color: var(--lg); background: var(--sheet); }
.lib-fold .ic { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.studio.lib-folded .lib-fold { margin-left: 0; }
.studio.lib-folded .lib-fold .ic { transform: rotate(180deg); }
.studio.app .lib-fold { display: none; }

/* ① 카테고리: 한 줄 세그먼트 */
.lib .lib-tabs { display: grid; grid-template-columns: repeat(7, auto); gap: 2px; padding: 3px; margin-bottom: 4px; border-radius: 12px; background: var(--warm-grey); }
.lib .lib-tabs button { padding: 7px 4px; border: 0; border-radius: 9px; background: none; color: var(--graphite); font-size: 12.5px; font-weight: 600; white-space: nowrap; box-shadow: none; }
.lib .lib-tabs button:hover { background: rgba(255, 255, 255, .7); color: var(--ink); }
.lib .lib-tabs button.on { background: var(--lg); color: #fff; }
.lib .lib-head h2 { font-size: 16px; }
.lib .lib-head:not(:has(.app-only:not([hidden]))) { display: none; }
.studio.app .lib .lib-head { display: flex; }

/* 필터 칸 */
.fbox { border: 1px solid var(--line-soft); border-radius: 14px; background: var(--sheet); }
.fbox > summary, .more-filter > summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; }
.fbox > summary::-webkit-details-marker, .more-filter > summary::-webkit-details-marker { display: none; }
.fbox > summary { padding: 10px 12px; font-size: 13.5px; font-weight: 700; }
.fbox-t { display: inline-flex; align-items: center; gap: 6px; }
.fbox-t .ic { width: 16px; height: 16px; }
.fbox-n { min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--lg); color: #fff; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fbox-n.ok { background: var(--fit-bg); color: var(--fit); padding: 0 8px; }
.fbox-n[hidden] { display: none; }
.fbox-arrow { margin-left: auto; width: 8px; height: 8px; border-right: 1.5px solid var(--graphite); border-bottom: 1.5px solid var(--graphite); transform: rotate(45deg) translate(-2px, -2px); transition: transform .18s var(--ease); }
details[open] > summary > .fbox-arrow { transform: rotate(225deg) translate(-2px, -2px); }
.fsec { padding: 12px; border-top: 1px solid var(--line-soft); }
.fsec h3 { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.fsec[hidden] { display: none; }

/* ② 설치 방식: 둘 중 하나 */
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 12px; background: var(--warm-grey); }
.seg2 button { padding: 9px 6px; border: 0; border-radius: 9px; background: none; color: var(--ink); font-size: 13.5px; font-weight: 600; box-shadow: none; }
.seg2 button:hover:not(:disabled) { background: rgba(255, 255, 255, .7); }
.seg2 button .n { font-weight: 500; opacity: .7; font-variant-numeric: tabular-nums; }
.seg2 button.on, .seg2 button.on:hover { background: var(--lg); color: #fff; }
.seg2 button:disabled { opacity: .4; cursor: default; }

/* ③ 품목 */
.fsec .chip { padding: 5px 11px; font-size: 12.5px; }
.fsec .chip:not(.on) { background: var(--sheet); }
.cats-more { margin-top: 6px; font-size: 12px; }

/* ④ 가격 범위: 최소·최대 금액을 직접 보고 넣는다. 손잡이 두 개, 줄은 손잡이 반지름만큼 안쪽에서 시작해 튀어나오지 않는다 */
.budget[hidden] { display: none; }
.fsec.budget { margin-top: 0; }
.budget-io { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.budget-io label { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--graphite); min-width: 0; }
.won-in { display: flex; align-items: baseline; gap: 3px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--sheet); }
.won-in:focus-within { border-color: var(--lg); box-shadow: 0 0 0 3px var(--lg-soft); }
.won-in input { flex: 1; min-width: 0; width: 100%; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; text-align: right; font-size: 14px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.won-in input:focus { box-shadow: none; outline: none; }
.won-in i { font-style: normal; font-size: 11.5px; color: var(--graphite); white-space: nowrap; }
.budget-rail { --a: 0; --b: 1; position: relative; height: 28px; margin-top: 8px; }
.budget-rail::before, .budget-rail::after { content: ""; position: absolute; top: 12px; height: 4px; border-radius: 2px; }
.budget-rail::before { left: 9px; right: 9px; background: var(--warm-grey); }
.budget-rail::after { left: calc(9px + (100% - 18px) * var(--a)); width: calc((100% - 18px) * (var(--b) - var(--a))); background: var(--lg); }
.budget-rail input[type=range] { position: absolute; inset: 0; z-index: 1; width: 100%; height: 28px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.budget-rail input[type=range]:focus { border: 0; box-shadow: none; outline: none; }
.budget-rail input[type=range]::-webkit-slider-runnable-track { background: none; height: 28px; }
.budget-rail input[type=range]::-moz-range-track { background: none; }
.budget-rail input[type=range]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; box-sizing: border-box; width: 18px; height: 18px; margin-top: 5px; border-radius: 50%; background: #fff; border: 2px solid var(--lg); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); cursor: pointer; }
.budget-rail input[type=range]::-moz-range-thumb { pointer-events: auto; box-sizing: border-box; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--lg); cursor: pointer; }
.budget-rail input[type=range]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--lg); outline-offset: 2px; }

/* ⑤ 상세 필터 */
.more-filter.fsec > summary { padding: 0; }
.more-filter.fsec > summary h3 { margin: 0; }
.more-filter[open] > summary { margin-bottom: 10px; }
.fsub h4 { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--graphite); }
.fsub .filters { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fsub .filters select { width: 100%; font-size: 12.5px; padding: 6px 8px; border-radius: 10px; }
.more-filter .opt-steps { margin-top: 10px; }
.more-filter .step-l { color: var(--graphite); font-weight: 600; }
.steps-hint { margin: 10px 0 0; }
.fact { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line-soft); }
.fact .linklike { font-size: 12.5px; color: var(--graphite); }
.fact .linklike:disabled { opacity: .45; cursor: default; text-decoration: none; }
.fact .primary { padding: 9px 18px; border-radius: 10px; font-size: 13.5px; font-weight: 700; }

/* 지금 어떤 조건으로 보고 있는지 */
.applied { display: flex; flex-wrap: wrap; gap: 5px; }
.applied[hidden] { display: none; }
.fchip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 4px 6px 4px 10px; border-radius: 999px; border: 1px solid var(--lg); background: var(--lg-soft); color: var(--lg-deep, var(--lg)); font-size: 12px; font-weight: 600; }
.fchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fchip i { font-style: normal; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; line-height: 1; }
.fchip:hover { background: var(--sheet); border-color: var(--lg); }
.fchip:hover i { background: var(--lg); color: #fff; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--graphite); padding-top: 2px; }
.list-head b { color: var(--ink); font-variant-numeric: tabular-nums; }
.list-head select { width: auto; padding: 3px 8px; font-size: 12px; border-radius: 999px; }

/* 제품 카드: 사진 · 이름 · 모델명 · 가격 / 색상 · 배치 버튼을 늘 같은 자리에 */
.studio .lib #lib { display: grid; grid-template-columns: 1fr; gap: 8px; }
.studio .lib .prod, .studio:not(.app) .lib .prod { display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "img body" "foot foot"; gap: 8px 10px; align-items: start; padding: 10px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--sheet); }
.studio .lib .prod:hover { border-color: var(--line); background: var(--sheet); box-shadow: 0 6px 18px -10px rgba(60, 40, 30, .35); }
.studio .lib .prod.armed { border-color: var(--lg); }
.studio .lib .prod .dot.tile, .studio:not(.app) .lib .prod .dot.tile { grid-area: img; width: 72px; aspect-ratio: 1; flex: none; }
.studio .lib .prod .dot.tile span { display: none; }
.studio .lib .prod .body { grid-area: body; padding: 0; }
.studio .lib .prod .name { font-size: 13px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.studio .lib .prod .model { margin-top: 2px; font-size: 11px; color: var(--graphite); letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio .lib .prod .price { margin-top: 4px; font-size: 14.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.card-foot { grid-area: foot; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.card-foot .color-row { margin: 0; min-width: 0; flex-wrap: nowrap; }
.card-foot .variants { display: inline-flex; align-items: center; gap: 3px; }
.card-foot .more-dots, .card-foot .one-color { font-size: 11.5px; color: var(--graphite); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio .lib .prod .place-btn { width: auto; flex: none; margin: 0 0 0 auto; padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--sheet); color: var(--lg); border: 1px solid var(--lg); box-shadow: none; }
.studio .lib .prod .place-btn:hover { background: var(--lg); color: #fff; }

/* 큰 화면: 패널 안에서 한 번에 스크롤, 카테고리는 위에 붙여 둔다 */
.studio:not(.app) .lib { padding: 14px 12px 12px; }
.studio:not(.app) .lib[data-tab="lg"] .lib-side { border-bottom: 0; padding-bottom: 0; }
.studio:not(.app) .lib[data-tab="lg"] .lib-tabs { top: -14px; padding: 3px; margin-top: 0; box-shadow: 0 -14px 0 var(--sheet), 0 6px 0 var(--sheet); }

/* 3D 아래 정보 칸(채광·와이파이·동선): 접어 두면 3D가 넓어진다 */
.canvas .sheet-fold { position: absolute; left: 12px; bottom: 12px; z-index: 6; padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; box-shadow: var(--shadow-float); }
.canvas .sheet:empty + .sheet-fold { display: none; }
.canvas .sheet:not(:empty) { bottom: 52px; max-height: min(70%, 520px); }
.studio.sim-folded .canvas .sheet { display: none; }

/* 앱(폰·작은 창): 서랍을 열기 전에는 필터를 감추고, 열면 필터는 접힌 채로 시작 */
.studio.app:not(.lib-open) :is(#filterBox, #applied, .list-head) { display: none; }
.studio.app .fbox > summary { padding: 9px 12px; }
.studio.app.lib-open .lib #lib { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (prefers-reduced-motion: reduce) { .lib-fold .ic, .fbox-arrow { transition: none; } }
.studio:not(.app) .lib .lib-head { display: none; }
.cats-more[hidden] { display: none; }
.lib .linklike { padding: 2px 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--graphite); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lib .linklike:hover:not(:disabled) { background: none; color: var(--lg); }
.fact { position: sticky; bottom: -12px; z-index: 2; background: var(--sheet); border-radius: 0 0 14px 14px; }
.fsec .chip.on { background: var(--lg); border-color: var(--lg); color: #fff; }
.studio.app .sugg-card .vv { white-space: nowrap; }
.studio.app .sugg-card .nm { min-width: 0; }

/* ---- 화면 단순하게 (2026-11-21): 머리는 새로 만들기 · 불러오기 · 저장, 살아 보기 칸은 한 줄 ---- */
.file-bar { margin-left: auto; flex: none; display: flex; align-items: center; gap: 6px; }
.file-bar .save-note:empty { display: none; }
.file-bar .save-state { margin-right: 6px; }
.fbtn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
  font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; box-shadow: none; cursor: pointer; transition: background .15s, border-color .15s; }
.fbtn .ic { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fbtn:hover:not(:disabled) { background: var(--warm-grey); border-color: #cfc8bc; }
.fbtn.primary { background: var(--lg); border-color: var(--lg); color: #fff; }
.fbtn.primary:hover:not(:disabled) { background: var(--lg-deep); border-color: var(--lg-deep); }
.fbtn.app-only { display: none; }
.studio.app .fbtn.app-only { display: inline-flex; }
.studio.app .file-bar { gap: 4px; }
.studio.app .fbtn { height: 34px; padding: 0 10px; font-size: 13px; }
.studio.app .file-bar .save-note { display: none; }
@media (max-width: 560px) { .studio.app .fbtn:not(.primary) { padding: 0 9px; font-size: 0; gap: 0; } .studio.app .fbtn.app-only { font-size: 12.5px; } }

/* 살아 보기 칸: 입력 한 줄 + 결과 한 줄 */
.canvas .sheet:not(:empty) { width: min(460px, calc(100% - 24px)); padding: 12px 14px; }
.sim-row { display: flex; align-items: center; gap: 8px; }
.sim-row input[type="search"] { flex: 1; min-width: 0; margin: 0; height: 38px; }
.sim-row button { flex: none; height: 38px; white-space: nowrap; }
.sim-row .seg2.band { flex: 1; }
.sim-row .seg2.band button { height: 34px; padding: 0 6px; }
.sim-res:empty { display: none; }
.sim-res { margin-top: 10px; }
.sheet .facing { margin: 0; font-size: 15px; color: var(--ink); }
.sheet .facing b { font-size: 19px; font-weight: 700; margin-right: 2px; }
.sim-line { margin: 0; font-size: 13px; color: var(--graphite); }
.sim-ask { flex: 1; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 1px; }
.sim-ask b { font-size: 16px; font-weight: 700; color: var(--ink); }
.sim-ask span { font-size: 13px; color: var(--graphite); }
.wifi-legend { margin: 0; display: flex; gap: 14px; font-size: 13px; color: var(--ink); }
.wifi-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wifi-legend i { width: 12px; height: 12px; border-radius: 4px; }
.plan .start-dot { fill: var(--route); fill-opacity: .28; stroke: var(--route); stroke-width: .03px; }

/* 동선: 길이 막힌 제품 오른쪽 위의 ✕ (누르면 뺀다) */
.flow-xs { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.flow-x { position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; padding: 0; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%;
  background: var(--nofit); color: #fff; box-shadow: 0 2px 8px rgba(60, 48, 30, .35); pointer-events: auto; cursor: pointer; will-change: transform; }
.flow-x svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.flow-x:hover:not(:disabled) { background: #8f1d17; }
/* 가구 치우기: 마우스를 올린 것에만 뜨는 조용한 ✕. 누르려고 올리면 빨개진다 */
.flow-x.soft { left: -14px; top: -14px; width: 28px; height: 28px; border: 1px solid var(--line, #e3ddd4); background: rgba(255, 255, 255, .96); color: #4a433c;
  box-shadow: 0 2px 10px rgba(60, 48, 30, .22); animation: xpop .12s ease-out; transition: background .12s, color .12s, border-color .12s; }
.flow-x.soft svg { width: 12px; height: 12px; stroke-width: 2.4; }
.flow-x.soft:hover:not(:disabled) { background: var(--nofit); border-color: var(--nofit); color: #fff; }
@keyframes xpop { from { opacity: 0; scale: .7; } }
@media (prefers-reduced-motion: reduce) { .flow-x.soft { animation: none; } }
.studio[data-view="plan"] .flow-xs { display: none; }

/* 남는 틈 표시: 고른 물건 옆·위·뒤 틈 (mm). 설치 여유 값이 있는 틈만 초록/빨강 */
.gap-tags { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.gap-tags[hidden] { display: none; }
.gap-tag { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; padding: 3px 9px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--line);
  color: var(--ink); font-size: 12px; line-height: 1.25; white-space: nowrap; box-shadow: var(--shadow-sheet); font-variant-numeric: tabular-nums; will-change: transform; }
.gap-tag b { font-weight: 700; }
.gap-tag small { font-size: 10.5px; font-weight: 600; }
.gap-tag.ok { border-color: var(--fit); color: var(--fit); background: var(--fit-bg); }
.gap-tag.bad { border-color: var(--nofit); color: #fff; background: var(--nofit); font-weight: 600; padding: 4px 10px; }
.gap-tag small { margin-top: -1px; }
.gap-tag:has(small) { border-radius: 12px; }

/* 크기 조절: 실제 제품 치수 칩 + 폭·높이·깊이 mm 입력 */
.act-bar.sizing { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px; border-radius: 16px; }
.act-bar.sizing.near::after { display: none; }
.act-bar .sz-presets { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 380px; }
.act-bar .sz-presets .chip { padding: 5px 11px; font-size: 12.5px; background: var(--warm-grey); border-color: transparent; }
.act-bar .sz-presets .chip.on { background: var(--lg); color: #fff; }
.act-bar .sz-row { display: flex; align-items: flex-end; gap: 8px; }
.act-bar .sz-f { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--graphite); }
.act-bar .sz-f input { width: 78px; margin: 0; padding: 7px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--sheet); color: var(--ink); font-size: 14px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.act-bar .sz-f input:focus { outline: 2px solid var(--lg); outline-offset: 1px; border-color: transparent; }
.act-bar .sz-unit { padding-bottom: 9px; font-size: 12.5px; color: var(--graphite); }
.studio.app .act-bar .sz-f input { width: 66px; }
.act-bar .sz-row .act-tag { padding: 0 4px 9px 2px; font-size: 13.5px; } /* 스캔한 문·창: 무엇의 크기인지 */

/* 벽지·바닥: 색깔 칩만 */
.fin-sws { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; }
.fin-sw { padding: 0; aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); background: var(--sheet); overflow: hidden; box-shadow: none; }
.fin-sw img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fin-sw:hover { border-color: var(--ink); transform: none; }
.fin-sw.on { border-color: var(--lg); box-shadow: 0 0 0 2px var(--lg); }
.furn-all { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 5; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--sheet); color: var(--ink); font-size: 13px; font-weight: 600; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.furn-all[hidden] { display: none; }
.furn-all:hover { border-color: var(--ink); transform: translateX(-50%); }
/* 보기 바꾸기: 지도 앱처럼 3D 오른쪽 위에 세로로. 위에서 / 걸어 보기 / 실사 */
.view-stack { position: absolute; top: 64px; right: 12px; z-index: 6; display: flex; flex-direction: column; padding: 4px; gap: 2px; border-radius: 16px; background: rgba(255, 255, 255, .92); box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.vbtn { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 62px; padding: 7px 2px 6px; border: 0; border-radius: 12px; background: none; color: var(--graphite); font-size: 11.5px; font-weight: 600; box-shadow: none; white-space: nowrap; }
.vbtn .ic { width: 20px; height: 20px; margin: 0; }
.vbtn:hover { background: var(--warm-grey); color: var(--ink); transform: none; }
.vbtn.on { background: var(--lg); color: #fff; }
.studio[data-view="plan"] .view-stack, .minimap .view-stack { display: none; }
.studio.app .view-stack { top: 8px; right: 8px; }
.studio.app .view-stack #render { display: none; }
/* 위 도구 아이콘 아래에 이름을 적는다 */
.toolbar .icon-btn[data-l] { width: auto; min-width: 46px; height: 46px; padding: 4px 6px 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.toolbar .icon-btn[data-l]::after { content: attr(data-l); font-size: 10.5px; font-weight: 600; line-height: 1; white-space: nowrap; }
.studio.app .toolbar .icon-btn[data-l]::after { display: none; }
.studio.app .toolbar .icon-btn[data-l] { min-width: 34px; height: 34px; }
.sim-line.warn { color: var(--lg-red, #A50034); }
.sim-line + .sim-line, .facing + .sim-line { margin-top: 4px; }

/* 물건 옆에 뜨는 조작 메뉴는 작게: 물건과 틈 숫자를 가리지 않는다 */
.act-bar.near:not(.sizing) { gap: 0; padding: 4px; border-radius: 14px; }
.act-bar.near:not(.sizing) .act { min-width: 46px; padding: 5px 6px; gap: 2px; font-size: 10.5px; }
.act-bar.near:not(.sizing) .act .ic { width: 17px; height: 17px; }
.act-bar.near.under::after { display: none; }
/* 살아 보기를 여러 개 켜면 한 칸씩 쌓인다 */
.sim-sec h4 { display: none; margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--graphite); }
.sheet.many .sim-sec h4 { display: block; }
.sim-sec + .sim-sec { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
/* 채광 시간 바: 가격 범위 바와 같은 모양 */
.time-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; margin-top: 10px; }
.time-bar .tb-end { font-size: 11.5px; color: var(--graphite); white-space: nowrap; }
.time-bar .tb-now { grid-column: 1 / -1; justify-self: center; font-size: 14px; font-weight: 700; color: var(--ink); }
.time-bar input[type="range"] { --p: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.time-bar input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--lg) var(--p), var(--line) var(--p)); }
.time-bar input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--lg) var(--p), var(--line) var(--p)); }
.time-bar input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: #fff; border: 2px solid var(--lg); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); cursor: grab; }
.time-bar input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--lg); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); cursor: grab; }
.vbtn.busy { opacity: .6; }
/* 살아 보기 칸은 3D 가운데를 가리지 않게 좁게 */
.studio:not(.app) .canvas .sheet { width: min(380px, calc(100% - 24px)); padding: 12px 14px; }
.time-bar .tb-now { font-size: 13px; }

/* 좁은 화면: 하우니가 오른쪽 위에 있으니 보기 버튼과 살아 보기 스위치는 왼쪽으로 (서로 가리지 않게) */
.studio.app .view-stack { left: 8px; right: auto; top: 56px; }
.studio.app .canvas > .sim-switches { left: 8px; right: auto; top: 8px; }
.studio.app .fit-badge { top: auto; bottom: 64px; }
/* 좁아도 아이콘 아래 이름은 남긴다 (이름 없는 아이콘은 무엇인지 알 수 없다) */
.studio.app .toolbar .icon-btn[data-l]::after { display: block; }
@media (max-width: 560px) {
  .studio.app .fbtn:not(.primary) { padding: 0 8px; font-size: 12.5px; gap: 0; }
  .studio.app .fbtn .ic { display: none; }
  .studio.app .fbtn { padding: 0 10px; }
}

/* 제품 상세의 가격, 구매 신청의 가격·합계 */
.pd-title .pd-price { margin: 4px 0 10px; font-size: 20px; font-weight: 700; color: var(--ink); }
.order-list li { grid-template-columns: auto minmax(0, 1fr) auto; }
.order-list .order-price { font-size: 14px; font-weight: 700; white-space: nowrap; }
.order-list .order-fix { grid-column: 2 / -1; justify-self: start; }
.order-list li.nofit { border-color: var(--lg); background: #fbf4f6; }
.order-all { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 2px 4px; font-size: 14px; }
.order-all b { font-size: 20px; }
.facing.guess { font-weight: 400; color: var(--graphite); }
.hint-sm.warn { color: var(--lg); font-weight: 600; }

/* 실사 사진은 3D 위의 다른 버튼·패널보다 위에 뜨고, 저장·닫기는 위쪽에 둔다 (아래쪽은 하우니와 구매 버튼 자리) */
.canvas .render-shot { z-index: 9; }
.render-shot .render-act { order: -1; }
.stage:has(.render-shot:not([hidden])) ~ .side { visibility: hidden; }

/* 실사를 만드는 동안: 3D 위 가운데에 끝날 때까지 남는 표시 */
.render-wait { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 9; margin: 0; display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: var(--sheet); box-shadow: var(--shadow-float); font-size: 14px; font-weight: 600; white-space: nowrap; }
.render-wait[hidden] { display: none; }
.render-wait i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--lg); animation: render-spin .9s linear infinite; }
@keyframes render-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .render-wait i { animation: none; } }
@media (max-width: 560px) { .render-wait { font-size: 12.5px; padding: 8px 12px; } }

/* 휴대폰: 구매 신청 창은 위 머리줄 아래에서 시작하고(제목·닫기가 가려지지 않게), 상세·신청 창이 열려 있는 동안 하우니 버튼은 숨긴다 */
@media (max-width: 900px) { .order-sheet { top: calc(var(--topbar) + 8px); } }
body:has(.studio.app :is(.order-sheet, .pd-modal):not([hidden])) .bot { display: none; }

/* 걸어 보기의 둘러보기 줄: 들를 곳을 한 줄로, 지나온 곳까지 빨간 선. 3D 가운데를 가리지 않게 아래에 낮게 */
.canvas .walk-tour { position: absolute; left: 224px; right: 92px; bottom: 12px; z-index: 5; max-width: 720px; margin: 0 auto; padding: 12px 18px 10px;
  background: rgba(255, 255, 255, .94); border-radius: 16px; box-shadow: 0 6px 24px rgba(60, 40, 30, .14); backdrop-filter: blur(6px); }
.walk-tour[hidden] { display: none; }
.wt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.wt-head b { font-size: 17px; font-weight: 700; color: var(--ink, #1f1b18); }
.wt-play { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px 0 10px; border: 0; border-radius: 999px; background: #a50034; color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.wt-play .ic { width: 16px; height: 16px; fill: currentColor; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.wt-play .wt-halt, .wt-play.on .wt-go { display: none; }
.wt-play.on .wt-halt { display: inline; }
.wt-play.on { background: #fff; color: #a50034; box-shadow: inset 0 0 0 1.5px #a50034; }
.wt-line { --p: 0; position: relative; display: flex; justify-content: space-between; gap: 4px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.wt-line::before, .wt-line::after { content: ""; position: absolute; left: 7px; top: 6px; height: 2px; border-radius: 2px; }
.wt-line::before { right: 7px; background: #e6dfd6; }
.wt-line::after { width: calc((100% - 14px) * var(--p)); background: #a50034; transition: width .5s ease; }
.wt-line li { position: relative; z-index: 1; flex: 0 0 auto; }
.wt-line li:first-child button { align-items: flex-start; }
.wt-line li:last-child button { align-items: flex-end; }
.wt-line button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 0 2px; border: 0; background: none; font: inherit; font-size: 12.5px; color: #8a8179; cursor: pointer; white-space: nowrap; }
.wt-line button i { width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #d9d0c5; transition: box-shadow .2s, background .2s; }
.wt-line button.done i { box-shadow: inset 0 0 0 2px #a50034; }
.wt-line button.on i { background: #a50034; box-shadow: 0 0 0 4px rgba(165, 0, 52, .16); }
.wt-line button.on { color: var(--ink, #1f1b18); font-weight: 700; }
.wt-line button:hover { color: var(--ink, #1f1b18); }
.wt-line button:focus-visible, .wt-play:focus-visible { outline: 2px solid #a50034; outline-offset: 3px; border-radius: 8px; }
.plan .stop-dot { fill: #b9ae9e; stroke: #fdfbf8; stroke-width: 1.5px; vector-effect: non-scaling-stroke; pointer-events: none; }
.studio.walking .canvas .minimap { cursor: pointer; }
.studio.walking .canvas .hint { display: none; } /* 안내는 줄 하나면 충분하다 */
.studio.walking:not(.app) .side { visibility: hidden; } /* 걸어 보는 동안은 합계 칸을 접어 둘러보기 줄에 자리를 준다 */
.studio.app .canvas .walk-tour { left: 96px; right: 8px; bottom: 8px; padding: 8px 12px 6px; }
.studio.app .wt-head { margin-bottom: 8px; }
.studio.app .wt-head b { font-size: 15px; }
.studio.app .wt-play { height: 30px; font-size: 12.5px; }
.studio.app .wt-line { gap: 14px; }

/* 실사로 둘러보기: 들르는 곳에 서면 3D 위에 그 장면의 실사가 스르르 덮인다. 움직이면 걷힌다 */
.view-pane .tour-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.view-pane .tour-photo.on { opacity: 1; }
.view-pane .tour-photo[hidden] { display: none; }
.studio.walking .view-stack #render.on { background: #a50034; color: #fff; }

/* 걸어 보기 배치 (PC): 제품 칸을 접고, 왼쪽에 큰 도면 · 오른쪽에 보는 장면 · 위에 지금 선 곳 이름 · 아래에 들를 곳 줄 */
.studio.walking:not(.app) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage"; }
.studio.walking:not(.app) :is(.lib, .lib-fold) { display: none; }
.studio.walking:not(.app) .canvas { --wt-top: 76px; --wt-bottom: 96px; --wt-side: 24px; --wt-split: 45%; background: var(--sheet); }
.studio.walking:not(.app) .canvas .minimap { left: var(--wt-side); top: var(--wt-top); bottom: var(--wt-bottom); width: calc(var(--wt-split) - var(--wt-side) - 16px); height: auto;
  border: 1px solid var(--line-soft); box-shadow: none; }
.studio.walking:not(.app) .canvas .minimap :is(.mini-grow, .pip-swap) { display: none; }
.studio.walking:not(.app)[data-view="3d"] .canvas .view-pane { inset: var(--wt-top) var(--wt-side) var(--wt-bottom) var(--wt-split); border-radius: 14px; }
.studio.walking .minimap .plan text { display: none; } /* 큰 도면은 모양만: 이름은 아래 줄에 있다 */
.studio.walking:not(.app) .canvas .walk-tour { inset: 0; max-width: none; margin: 0; padding: 0; background: none; box-shadow: none; backdrop-filter: none; pointer-events: none; }
.studio.walking:not(.app) .wt-head { position: absolute; left: var(--wt-side); top: 16px; height: 44px; margin: 0; justify-content: flex-start; gap: 18px; pointer-events: auto; }
.studio.walking:not(.app) .wt-head b { font-size: 28px; letter-spacing: -.02em; }
.studio.walking:not(.app) .wt-line { position: absolute; left: var(--wt-side); right: 104px; bottom: 22px; pointer-events: auto; }
.studio.walking:not(.app) .wt-line button { font-size: 13.5px; }
.studio.walking:not(.app) .canvas > .sim-switches { top: 18px; right: var(--wt-side); box-shadow: none; background: var(--warm-grey); }
.studio.walking:not(.app) .canvas .render-wait { top: calc(var(--wt-top) + 12px); left: calc((100% + var(--wt-split) - var(--wt-side)) / 2); }
.studio.walking:not(.app) .view-stack { top: 12px; }

/* 걸어 보기의 큰 도면은 차분하게: 벽은 먹색, 나머지는 베이지·흰색, 빨강은 지금 선 곳과 들를 곳에만 */
.studio.walking .minimap .plan .grid line { stroke-opacity: .45; }
.studio.walking .minimap .plan .wall.measured { stroke: var(--ink); }
.studio.walking .minimap .plan .zone { fill: none; stroke: none; }
.studio.walking .minimap .plan .placed:not(.v-no_fit) rect { stroke: #a39a8d; }
.studio.walking .minimap .plan .placed.sel:not(.v-no_fit) rect { stroke: #a39a8d; }
.studio.walking .minimap .plan :is(.scale, .compass) { display: none; }
.studio.walking .minimap .plan .placed.furn:not(.v-no_fit) > rect { stroke: transparent; }
.studio.walking .minimap .plan .placed .sym :is(rect, circle) { stroke: #8f867a; }
.studio.walking .minimap .plan .placed .sym .ln { stroke: #b3aa9c; }
.studio.walking .minimap .plan .placed.built rect { stroke: var(--ink); }
/* 휴대폰: 걸어 보기 안내는 위쪽 스위치 줄 아래에 둔다 */
.studio.app .walk-hud { top: 76px !important; white-space: nowrap; }
/* 작은 도면 위 버튼(크게, 평면도 보기)도 다른 버튼처럼 흰 바탕에 짙은 글씨 */
.minimap :is(.mini-grow, .pip-swap) { background: rgba(255, 255, 255, .94); color: var(--ink, #1f1b18); border: 1px solid var(--line, #e3ddd4); box-shadow: 0 1px 3px rgba(60, 50, 40, .08); }
.minimap :is(.mini-grow, .pip-swap):hover { background: #fff; border-color: #cfc6b9; }
/* 되돌리기·다시는 화살표만 (글자 없이도 아는 모양) */
.toolbar :is(#undo, #redo) { width: 38px; min-width: 38px; height: 46px; }
.studio.app .toolbar :is(#undo, #redo) { width: 34px; min-width: 34px; height: 34px; }
/* 가구 색 고르기: 3D 메뉴가 색 점 한 줄로 바뀐다 */
.act-bar.colouring { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 14px 10px; border-radius: 16px; }
.act-bar.colouring.near::after { display: none; }
.act-bar .cl-row { display: flex; gap: 8px; justify-content: center; }
.act-bar .cl-dot { width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 1px solid rgba(60, 48, 30, .18); background: var(--c); cursor: pointer; transition: transform .12s; }
.act-bar .cl-dot:hover { transform: scale(1.12); }
.act-bar .cl-dot.on { outline: 2px solid var(--ink, #1f1b18); outline-offset: 2px; }
.act-bar .cl-dot.wood { background-image: repeating-linear-gradient(98deg, rgba(60, 40, 20, 0) 0 3px, rgba(60, 40, 20, .13) 3px 4px, rgba(255, 255, 255, .1) 4px 6px); }
.act-bar .cl-dot.metal { background-image: linear-gradient(135deg, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, 0) 42%, rgba(0, 0, 0, .14) 100%); }
.act-bar .cl-parts { display: flex; gap: 4px; justify-content: center; padding: 3px; border-radius: 999px; background: rgba(120, 100, 70, .1); align-self: center; }
.act-bar .cl-part { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted, #6f665c); cursor: pointer; white-space: nowrap; }
.act-bar .cl-part i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); border: 1px solid rgba(60, 48, 30, .2); }
.act-bar .cl-part.on { background: #fff; color: var(--ink, #1f1b18); box-shadow: 0 1px 3px rgba(60, 48, 30, .16); }
.act-bar .cl-part:focus-visible, .act-bar .cl-dot:focus-visible { outline: 2px solid var(--ink, #1f1b18); outline-offset: 2px; }
.act-bar .cl-foot { display: flex; align-items: center; gap: 6px; }
.act-bar .cl-name { font-size: 12.5px; font-weight: 600; color: var(--ink, #1f1b18); padding-left: 2px; }
@media (max-width: 560px) { .act-bar .cl-row { flex-wrap: wrap; } .act-bar .cl-dot { width: 34px; height: 34px; } }

/* 회전 고리를 끄는 동안 커서 옆에 뜨는 각도 */
.rot-chip { position: absolute; z-index: 4; pointer-events: none; padding: 4px 9px; border-radius: 999px;
  background: var(--sheet, #fff); color: var(--ink); font: 600 13px/1.3 Pretendard, sans-serif; box-shadow: 0 2px 10px rgba(29, 28, 26, .16); }
.canvas.moving-item .act-bar { opacity: 0; pointer-events: none; transition: opacity .12s; }
.viewer { -webkit-user-select: none; user-select: none; } /* 3D에서 끌 때 주변 글자가 선택되지 않게 */

/* 제품 상세의 에너지 소비효율등급: 라벨처럼 다섯 칸 눈금, 그 등급 칸만 칠한다 (LG 레드는 쓰지 않는다) */
.energy { display: inline-flex; align-items: center; gap: 8px; --e: #1e7a4f; }
.energy[data-grade="2"] { --e: #6f9a2c; }
.energy[data-grade="3"] { --e: #c29400; }
.energy[data-grade="4"] { --e: #cf7a1f; }
.energy[data-grade="5"] { --e: #a4532b; }
.energy-steps { display: inline-flex; gap: 2px; }
.energy-steps i { width: 12px; height: 6px; border-radius: 2px; background: var(--line); }
.energy-steps i.on { background: var(--e); height: 10px; margin-top: -2px; }
.energy b { font-weight: 600; color: var(--ink); }
.energy-set { display: inline-flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---- 하우니: 배치 추천 1·2·3번 + 놓아 본 모습, 내게 맞는 가전, 더하면 좋은 것 ---- */
.combo-shot { position: relative; margin: -12px -14px 10px; aspect-ratio: 3 / 2; border-radius: 12px 12px 0 0; overflow: hidden;
  background: linear-gradient(100deg, var(--drafting) 30%, var(--sheet) 50%, var(--drafting) 70%) 0 0 / 200% 100%; animation: shot-wait 1.4s linear infinite; }
.combo-shot:has(img), .combo-shot.none { animation: none; background: var(--drafting); }
.combo-shot.none { aspect-ratio: auto; height: 34px; }
.combo-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.combo-no { position: absolute; top: 8px; left: 8px; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--sheet); color: var(--ink); font-weight: 800; font-size: 13px; box-shadow: 0 1px 4px rgba(60, 48, 30, .22); }
.combo.on .combo-no { background: var(--lg); color: #fff; }
.combo header .palette { margin-left: 2px; }
@keyframes shot-wait { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .combo-shot { animation: none; } }
.bot-log .msg:has(.combo-list, .persona, .addons) { max-width: 100%; align-self: stretch; }
.persona { display: grid; gap: 10px; margin-top: 8px; }
.persona fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.persona legend { padding: 0; margin-bottom: 6px; font-size: 12.5px; font-weight: 700; }
.persona legend .muted { font-weight: 400; }
.persona .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.persona .combo-budget input { width: 120px; }
.persona > .primary { justify-self: start; padding: 9px 16px; border-radius: 12px; }
.bot-sub { margin: 10px 0 0 !important; font-size: 12px; font-weight: 700; color: var(--graphite); }
.bot-prods.addons li { align-items: start; }
.bot-prods.addons .nm b, .bot-prods .nm .say { white-space: normal; }
.bot-prods .nm .say { display: block; color: var(--ink); line-height: 1.4; }
.bot-prods.addons button { align-self: center; }
.bot-hint { display: flex; align-items: center; gap: 2px; max-width: min(300px, calc(100vw - 110px)); padding: 4px 4px 4px 12px; border-radius: 16px 16px 4px 16px;
  background: var(--sheet); border: 1px solid var(--line-soft); box-shadow: var(--shadow-float); animation: hint-in .25s ease-out; }
.bot-hint[hidden] { display: none; }
.bot-hint-main { display: flex; align-items: center; gap: 8px; padding: 4px 0; background: transparent; border: 0; color: var(--ink); font-size: 12.5px; font-weight: 500; line-height: 1.4; text-align: left; }
.bot-hint-main:hover { background: transparent; }
.bot-hint-main b { flex: none; color: var(--lg); font-weight: 700; }
.bot-hint .bot-x { width: 26px; height: 26px; font-size: 18px; flex: none; }
@keyframes hint-in { from { opacity: 0; transform: translateY(4px); } }
.studio.app .bot { align-items: flex-end; }
/* 말풍선은 하우니 버튼 왼쪽에: 위에 있는 합계·구매 카드를 가리지 않게 */
.bot { position: fixed; }
.bot-hint { position: absolute; right: calc(100% + 10px); bottom: 14px; width: max-content; border-radius: 16px 16px 4px 16px; }
/* 대화창: 추천 카드가 한눈에 들어오게 넓고 길게, 빠른 버튼은 한 줄로 */
.bot .bot-panel, .studio.app .bot .bot-panel { width: min(400px, calc(100vw - 32px)); max-height: min(720px, calc(100dvh - 190px)); }
.bot-ex { flex: none; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.bot-ex .chip { flex: none; }
.bot-log .combo-tips, .bot-log .combo-lg small { display: none; }
.bot-log .combo .why { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bot-log .combo-lg li { padding: 6px 10px; }
.bot-log .combo-lg b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bot-prods li.best .nm b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bot-prods li.best .nm small { display: block; line-height: 1.45; }

/* ---- 와이파이: 끊김 없는 색 + 등고선, 왜 약한지 (2026-11-26) ---- */
.seg3 { display: flex; gap: 3px; padding: 3px; border-radius: 12px; background: var(--warm-grey); }
.seg3 button { flex: 1; padding: 0 8px; height: 32px; border: 0; border-radius: 9px; background: none; color: var(--ink); font-size: 13px; font-weight: 600; box-shadow: none; white-space: nowrap; }
.seg3 button:hover:not(.on) { background: rgba(255, 255, 255, .7); }
.seg3 button .n { font-weight: 500; opacity: .7; }
.seg3 button.on, .seg3 button.on:hover { background: var(--ink); color: #fff; }
.seg3.band button.on { background: var(--lg); }
.seg3.sm button { height: 28px; font-size: 12.5px; padding: 0 6px; }
.sim-row .seg3.band { flex: 1; }
.wl { margin: 2px 0 4px; }
.wl-bar { height: 10px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.wl-ticks { position: relative; height: 30px; margin: 0 6px; font-size: 11px; color: var(--graphite); }
.wl-ticks span { position: absolute; top: 4px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; line-height: 1.25; white-space: nowrap; }
.wl-ticks .edge-l { transform: none; align-items: flex-start; }
.wl-ticks .edge-r { transform: translateX(-100%); align-items: flex-end; }
.wifi-sum .muted { display: block; margin-top: 2px; font-size: 12px; color: var(--graphite); }
.wl-ticks b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.wifi-sum { margin: 2px 0 8px; font-size: 13px; color: var(--ink); text-wrap: pretty; }
.wifi-sum b { font-weight: 700; }
.wifi-row .seg3 { flex: 1; }
.wifi-spots { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.wifi-more { margin-top: 10px; border-top: 1px solid var(--line-soft); padding-top: 8px; }
.wifi-more > summary { cursor: pointer; width: fit-content; font-size: 13px; font-weight: 600; color: var(--ink); list-style: none; display: flex; align-items: center; gap: 6px; }
.wifi-more > summary::-webkit-details-marker { display: none; }
.wifi-more > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.wifi-more[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.sim-note { margin: 8px 0 0; font-size: 12px; color: var(--graphite); text-wrap: pretty; }
.wifi-causes { margin-top: 8px; }
.wifi-causes .chip { padding: 4px 11px; font-size: 12.5px; }
.wifi-causes .chip.on { background: #2b2f33; border-color: #2b2f33; color: #fff; }
.wifi-causes .chip:not(.on) { text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .35); }
.wifi-set { display: grid; gap: 8px; margin-top: 10px; }
.wifi-set label { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 4px 8px; font-size: 12.5px; color: var(--ink); }
.wifi-set label output { grid-column: 2; grid-row: 1; justify-self: end; font-size: 12px; color: var(--graphite); font-variant-numeric: tabular-nums; }
.wifi-set label input[type="range"] { grid-column: 1 / -1; margin: 0; accent-color: var(--ink); }
.wifi-set .wifi-mw .simsw { justify-self: start; border: 0; background: none; padding: 0; box-shadow: none; }
.wifi-set .simsw .sw-track { display: inline-block; position: relative; width: 28px; height: 16px; border-radius: 8px; background: var(--line); }
.wifi-set .simsw .sw-track i { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .15s; }
.wifi-set .simsw.on .sw-track { background: var(--ink); }
.wifi-set .simsw.on .sw-track i { transform: translateX(12px); }
.wifi-set > button { justify-self: start; }
.wifi-wallpick { margin-bottom: 10px; padding: 10px; border-radius: 12px; background: var(--warm-grey); }
.wifi-wallpick .chips { margin-top: 6px; }
/* 바닥에 마우스를 올리면 뜨는 막대 */
.wifi-tip { position: fixed; left: 0; top: 0; z-index: 1000; width: 272px; padding: 11px 13px; border-radius: 14px; background: rgba(255, 255, 255, .97);
  box-shadow: 0 10px 30px rgba(28, 32, 36, .16), 0 0 0 1px rgba(28, 32, 36, .06); pointer-events: none; font-size: 12.5px; color: var(--ink); }
.wt-head { margin: 0 0 8px; font-size: 13px; line-height: 1.35; }
.wt-head b { font-size: 16px; margin-right: 4px; font-variant-numeric: tabular-nums; }
.wt-fall { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.wt-fall li { display: grid; grid-template-columns: 104px minmax(0, 1fr) 34px; align-items: center; gap: 8px; }
.wt-fall .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--graphite); }
.wt-fall .bar { height: 7px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.wt-fall .bar i { display: block; height: 100%; border-radius: 4px; background: #d24f45; }
.wt-fall .gain .bar i { background: #0f7576; }
.wt-fall .tx .bar i { background: #1c2024; }
.wt-fall b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.wt-foot { margin: 8px 0 0; padding-top: 7px; border-top: 1px solid var(--line-soft); color: var(--graphite); font-size: 12px; }
.wt-foot b { color: var(--ink); }
.studio.app .wifi-tip { width: 240px; }

/* ---- 빌트인 주방: 맞춤장 라이브러리 · 오른쪽 패널 ---- */
.cab-tile .dimg { display: grid; place-items: center; }
.cab-tile svg { width: 62%; height: 62%; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.cab-tile:hover svg, .cab-tile.on svg { stroke: var(--lg); }
.cab-lead { margin: -2px 0 8px; }
.cab-next { margin: 2px 0 12px; padding: 9px 12px; border-radius: 10px; background: var(--drafting); }
.cab-panel { display: flex; flex-direction: column; gap: 12px; }
.cab-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.cab-head .insp-name { margin: 2px 0 0; }
.cab-kicker { font-size: 12px; font-weight: 600; color: var(--lg); }
.cab-modehint { margin: -4px 0 0; }
.cab-app { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--drafting); }
.cab-app b { display: block; font-size: 14px; }
.cab-app small { color: var(--graphite); font-size: 12px; }
.cab-empty { margin: 0; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; color: var(--graphite); font-size: 13px; }
.cab-pick select { width: 100%; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--sheet); font: inherit; font-size: 13.5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.cab-verdict { --vc: var(--unk); --vb: var(--warm-grey); border-radius: 14px; border: 1px solid var(--line-soft); background: var(--sheet); overflow: hidden; }
.cab-verdict.v-fit { --vc: var(--fit); --vb: var(--fit-bg); }
.cab-verdict.v-conditional { --vc: #8a5a00; --vb: #f6eedc; }
.cab-verdict.v-no_fit { --vc: var(--nofit); --vb: var(--nofit-bg); }
.cab-verdict header { display: flex; gap: 10px; align-items: flex-start; padding: 12px 12px 10px; background: var(--vb); }
.cab-verdict .mark { flex: 0 0 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--vc); color: #fff; font-weight: 700; font-size: 14px; }
.cab-verdict h3 { margin: 0; font-size: 14.5px; color: var(--vc); }
.cab-verdict header p { margin: 2px 0 0; font-size: 13px; color: var(--ink); }
.cab-front { margin: 10px 12px 0; font-size: 13px; }
.cab-tbl { width: calc(100% - 24px); margin: 8px 12px 0; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.cab-tbl th, .cab-tbl td { padding: 6px 4px; text-align: right; border-bottom: 1px solid var(--line-soft); }
.cab-tbl thead th { font-size: 11.5px; font-weight: 600; color: var(--graphite); }
.cab-tbl th[scope="row"] { text-align: left; font-weight: 600; }
.cab-tbl td small { display: block; font-size: 10.5px; color: var(--graphite); }
.cab-tbl tr.v-no_fit td b { color: var(--nofit); }
.cab-tbl tr.v-conditional td b { color: #8a5a00; }
.cab-checks { list-style: none; margin: 8px 12px 0; padding: 0; }
.cab-checks li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.cab-checks li span small { display: block; color: var(--graphite); font-size: 12px; }
.cab-checks li b { flex: 0 0 auto; font-size: 12px; font-weight: 600; color: var(--graphite); }
.cab-checks li.s-ok b { color: var(--fit); }
.cab-checks li.s-blocked b { color: var(--nofit); }
.cab-checks li.s-check b { color: #8a5a00; }
.cab-scope { margin: 8px 12px 0; font-size: 12px; color: var(--graphite); }
.cab-basis { margin: 6px 12px 12px; font-size: 12px; }
.cab-basis summary { cursor: pointer; color: var(--graphite); font-weight: 600; }
.cab-basis ul { margin: 6px 0; padding-left: 16px; }
.cab-basis a { color: var(--ink); }
.cab-verdict > :last-child:not(.cab-basis) { margin-bottom: 12px; }

/* 가전 기준 맞춤장 검토 카드 (baycard.js) */
.cab-verdict.v-unknown { --vc: var(--unk); --vb: var(--unk-bg); }
.bay-card .bc-scope { margin: 10px 12px 0; padding: 6px 10px; border-radius: 8px; background: var(--drafting); font-size: 12px; color: var(--graphite); }
.bc-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 12px 0; }
.bc-figs figure { margin: 0; padding: 6px; border-radius: 10px; background: var(--drafting); }
.bc-figs figcaption { font-size: 11px; color: var(--graphite); text-align: center; margin-top: 2px; }
.bc-svg { display: block; width: 100%; height: 132px; }
.bc-svg .bc-pan { fill: #e8e1d5; stroke: #b9b0a2; stroke-width: 3; }
.bc-svg .bc-pan.fill { fill: #d9cfbf; }
.bc-svg .bc-cab { fill: #f4efe7; stroke: #b9b0a2; stroke-width: 4; }
.bc-svg .bc-cav { fill: #fff; stroke: #b9b0a2; stroke-width: 3; stroke-dasharray: 14 10; }
.bc-svg .bc-app { fill: #3b3d40; fill-opacity: .82; }
.bc-svg .bc-body { fill: #8b8f94; fill-opacity: .28; stroke: #3b3d40; stroke-width: 4; }
.bc-svg .bc-door { stroke: #3b3d40; stroke-width: 14; }
.bc-site { margin: 8px 12px 0; font-size: 12.5px; }
.bc-site summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.bc-site ul { margin: 6px 0 0; padding-left: 16px; color: var(--graphite); }
.bc-site li { margin: 3px 0; }
.bc-site li b { color: var(--ink); font-weight: 600; }
.bc-svg .bc-split { stroke: #8b8f94; stroke-width: 6; }
.bc-svg .bc-floor, .bc-svg .bc-wall { stroke: var(--ink); stroke-width: 8; }
.bc-svg .bc-line { stroke: var(--lg); stroke-width: 4; stroke-dasharray: 18 12; }
.bc-sum { margin: 8px 12px 0; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.bc-moved { margin: 6px 12px 0; font-size: 12.5px; color: #8a5a00; }
.bc-todo { list-style: none; margin: 8px 12px 0; padding: 0; }
.bc-todo li { display: flex; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 13px; }
.bc-todo li p { margin: 2px 0 0; color: var(--graphite); font-size: 12.5px; }
.bc-todo li .bc-act { color: var(--ink); }
.bc-tag { flex: 0 0 auto; align-self: flex-start; padding: 1px 7px; border-radius: 99px; font-size: 11px; font-weight: 700; color: #fff; background: var(--unk); }
.bc-todo li.v-conditional .bc-tag { background: #8a5a00; }
.bc-todo li.v-no_fit .bc-tag { background: var(--nofit); }
.bc-align { margin: 8px 12px 0; }
.bc-all .bc-gh { display: flex; justify-content: space-between; margin: 10px 0 0; font-size: 12.5px; }
.bc-all .bc-gh span { font-weight: 600; color: var(--graphite); }
.bc-all .bc-gh.v-no_fit span { color: var(--nofit); }
.bc-all .bc-gh.v-conditional span { color: #8a5a00; }
.bc-all .cab-tbl { width: 100%; margin: 4px 0 0; }
.bc-note { color: var(--graphite); }
.bc-src { list-style: none; padding: 0 !important; }

.cab-door { padding: 10px 12px; border-radius: 12px; background: var(--drafting); font-size: 13px; }
.cab-door h3 { display: flex; justify-content: space-between; margin: 0 0 4px; font-size: 13.5px; }
.cab-door h3 span { font-size: 12px; font-weight: 600; color: var(--fit); }
.cab-door.bad h3 span { color: var(--nofit); }
.cab-door p { margin: 0; }
.cab-door ul { list-style: none; margin: 6px 0 0; padding: 0; }
.cab-door li { display: flex; justify-content: space-between; padding: 4px 0; border-top: 1px solid var(--line-soft); }
.cab-door li b { color: var(--nofit); font-weight: 600; }
.cab-door small { display: block; margin-top: 6px; color: var(--graphite); font-size: 11.5px; }

.cab-sec { border-top: 1px solid var(--line-soft); padding-top: 10px; }
.cab-sec summary { cursor: pointer; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.cab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.cab-grid.parts { grid-template-columns: repeat(2, 1fr); }
.cab-num { position: relative; display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--graphite); }
.cab-num input { width: 100%; padding: 7px 30px 7px 8px; border-radius: 9px; border: 1px solid var(--line); background: var(--sheet); font: inherit; font-size: 13.5px; color: var(--ink); font-variant-numeric: tabular-nums; }
.cab-num input:focus { outline: 2px solid var(--lg); outline-offset: -1px; }
.cab-num i { position: absolute; right: 8px; bottom: 8px; font-style: normal; font-size: 11px; color: var(--graphite); }
.cab-sub { margin: 4px 0 6px; font-size: 12.5px; font-weight: 600; }
.cab-inside { margin: 0 0 8px; font-size: 13px; }
.cab-fitbtn { margin-bottom: 8px; }
.cab-tog { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-size: 13px; }
.cab-finrow { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; font-size: 12.5px; font-weight: 600; }
.cab-sws { display: flex; flex-wrap: wrap; gap: 6px; }
.cab-sw { width: 30px; height: 30px; padding: 2px; border-radius: 50%; border: 1px solid var(--line); background: var(--sheet); box-shadow: none; }
.cab-sw i { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.cab-sw.on { border: 2px solid var(--lg); padding: 1px; }
.cab-sw:hover { border-color: var(--ink); }
.cab-sw.k-gloss i { background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .85) 0 18%, transparent 42%), var(--sw); }
.cab-sw.k-wood i { background: repeating-linear-gradient(100deg, rgba(70, 45, 25, .18) 0 1px, transparent 1px 4px), var(--sw); }
.cab-sw.k-stone i { background: radial-gradient(circle at 70% 60%, rgba(0, 0, 0, .08) 0 2px, transparent 3px), linear-gradient(140deg, transparent 45%, rgba(110, 105, 98, .25) 47%, transparent 50%), var(--sw); }
.cab-sw.k-metal i { background: linear-gradient(135deg, rgba(255, 255, 255, .7), transparent 50%, rgba(0, 0, 0, .15)), var(--sw); }
.cab-sw.k-glass i, .cab-sw.k-glass_ribbed i { background: linear-gradient(135deg, rgba(255, 255, 255, .8), transparent 60%), var(--sw); opacity: .75; }
.cab-sw.k-glass_ribbed i { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .7) 0 2px, transparent 2px 4px), var(--sw); }
.cab-many { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0 8px; font-size: 12.5px; font-weight: 600; }
.cab-many .chip { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
/* 넓은 화면은 오른쪽 패널이 없다. 맞춤장을 고르면 치수·판정·마감을 조절해야 해서 3D 오른쪽에 카드로 띄운다
   (보기 버튼 줄 왼쪽, 살아 보기 스위치 아래. 3D 가운데는 가리지 않는다) */
.studio:not(.app).cab-sel .side { margin-right: 92px; }
.studio:not(.app).cab-sel .side .side-body { display: flex; pointer-events: auto; width: 340px; margin-left: -40px; max-height: calc(100vh - 400px); min-height: 0; overflow-y: auto;
  overscroll-behavior: contain; scrollbar-width: thin; margin-bottom: 10px; padding: 14px; border-radius: 16px; background: var(--sheet); box-shadow: var(--shadow-float); }
.studio:not(.app).cab-sel .side #mapSlot, .studio:not(.app).cab-sel .side #suggSlot { display: none; }
/* 장을 고치는 동안은 합계 카드를 접어 패널이 3D 위쪽 스위치를 가리지 않게 한다 (닫으면 돌아온다) */
.studio:not(.app).cab-sel .side .order-bar { display: none; }
.cab-num select { width: 100%; padding: 7px 8px; border-radius: 9px; border: 1px solid var(--line); background: var(--sheet); font: inherit; font-size: 13px; color: var(--ink); }

/* ---------- 벽면 맞춤가구 편집기 (wallrun.js) ----------
   3D 아래쪽에 정면도 + 장 목록을 띄운다. 위쪽 3D는 미리보기로 그대로 보인다. 확정 전에는 저장하지 않는다 */
.run-cta { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, #fbf8f3, #f6f1ea); color: var(--ink); text-align: left; cursor: pointer; }
.run-cta:hover { border-color: var(--lg); }
.run-cta .ic { width: 28px; height: 28px; flex: none; color: var(--lg); }
.run-cta span { display: flex; flex-direction: column; gap: 2px; }
.run-cta b { font-size: 14px; }
.run-cta small { font-size: 12px; color: var(--graphite); }
.run-cta.slim { margin: 4px 0 10px; padding: 9px 12px; }
.studio.run-on .side, .studio.run-on .act-bar, .studio.run-on .bot { display: none !important; }
/* 편집하는 동안 제품 목록은 접어 두고 3D를 넓게 (닫으면 원래대로) */
.studio.run-on { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: auto minmax(0, 1fr) !important; grid-template-areas: "head" "stage" !important; }
.studio.run-on .lib, .studio.run-on .lib-fold { display: none !important; }
/* 3D 오른쪽에 붙인 패널 (3D를 덮지 않고 3D 폭만 줄인다): 고른 벽이 왼쪽 3D 가운데에 온다. 접으면 얇은 띠만 남는다 */
.studio.run-on .stage { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto minmax(0, 1fr); }
.studio.run-on .stage > .toolbar { grid-column: 1 / -1; grid-row: 1; }
.studio.run-on .stage > .live-bar { grid-column: 1; grid-row: 2; }
.studio.run-on .stage > .canvas { grid-column: 1; grid-row: 3; }
.run-ed { grid-column: 2; grid-row: 2 / 4; position: relative; z-index: 9; width: clamp(400px, 34vw, 560px); min-height: 0; margin: 10px 10px 10px 0;
  display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 16px; background: var(--sheet); box-shadow: var(--shadow-float); overflow: hidden; }
.run-ed[hidden] { display: none; }
.run-ed.compact { align-self: start; }
.run-ed .re-fold { flex: none; width: 30px; height: 30px; padding: 0; display: inline-grid; place-items: center; border-radius: 8px; }
.run-ed .re-fold .ic { width: 18px; height: 18px; }
.run-ed.folded { width: 52px; padding: 10px 6px; align-items: center; align-self: stretch; cursor: pointer; }
.run-ed.folded .re-flabel { writing-mode: vertical-rl; text-orientation: sideways; white-space: nowrap; font-size: 13px; font-weight: 700; color: var(--ink); margin-top: 8px; } /* 한글도 옆으로 누운 한 줄 */
.run-ed.folded .re-flabel small { font-weight: 500; color: var(--graphite); }
.re-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.re-head h2 { margin: 1px 0 0; font-size: 16px; }
.re-headbtn { display: flex; flex-wrap: wrap; gap: 6px; }
.re-note { margin: 0; padding: 7px 10px; border-radius: 10px; background: #f6f1ea; font-size: 12.5px; color: var(--ink); }
.re-step h3 { margin: 4px 0 2px; font-size: 15px; }
.re-step p { margin: 0 0 10px; font-size: 13px; color: var(--graphite); }
.re-first { margin-top: 4px; padding: 10px 12px; border-radius: 12px; background: #fbf7f2; border: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 8px; }
.re-first h4 { margin: 0; font-size: 13px; } .re-first h4 small { font-weight: 500; color: var(--graphite); margin-left: 4px; }
.re-first p { margin: 0; font-size: 12.5px; color: var(--graphite); }
.re-first .re-first-on { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink); }
.re-first .re-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.re-first .re-chip.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.re-first .re-chip.on small { color: #fff; opacity: .75; }
.re-first select { width: 100%; padding: 7px 8px; border-radius: 9px; border: 1px solid var(--line); background: var(--sheet); font: inherit; font-size: 12.5px; }
.re-starts { display: flex; flex-wrap: wrap; gap: 8px; }
.re-start { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 200px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--sheet); text-align: left; cursor: pointer; }
.re-start:hover { border-color: var(--lg); }
.re-start b { font-size: 14px; }
.re-start small { font-size: 11.5px; color: var(--graphite); line-height: 1.35; }
.re-chip { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--sheet); font-size: 12.5px; color: var(--ink); cursor: pointer; white-space: nowrap; }
.re-chip:hover { border-color: var(--lg); color: var(--lg); }
.re-chip small { color: var(--graphite); margin-left: 3px; }
.re-body { display: flex; flex-direction: column; gap: 12px; min-height: 0; flex: 1 1 auto; overflow-y: auto; scrollbar-width: thin; overscroll-behavior: contain; }
.re-main, .re-side { flex: none; }
.re-usage { margin: 0 0 4px; font-size: 12.5px; color: var(--graphite); font-variant-numeric: tabular-nums; }
.re-el { border-radius: 12px; background: #faf8f5; border: 1px solid var(--line-soft); }
.el-svg { display: block; width: 100%; height: auto; max-height: 250px; min-height: 150px; touch-action: none; user-select: none; }
.el-wall { fill: #f1ece5; stroke: none; }
.el-floor { stroke: #8f8a84; stroke-width: 8; }
.el-win rect { fill: #e3eef3; stroke: #8fb2c2; stroke-width: 8; }
.el-win path { stroke: #8fb2c2; stroke-width: 5; }
.el-door rect { fill: #f7f3ee; stroke: #b5aca2; stroke-width: 8; stroke-dasharray: 30 18; }
.el-door path { fill: none; stroke: #b5aca2; stroke-width: 5; }
.el-win text, .el-door text, .el-free text, .el-dim text { font-size: .85em; fill: var(--graphite); text-anchor: middle; font-family: inherit; }
.el-mod { cursor: grab; }
.el-mod .el-body { stroke: #6e675f; stroke-width: 7; }
.el-mod .el-cav { fill: #3a3633; opacity: .16; stroke: none; }
.el-mod text { font-size: 1em; fill: #3b3633; text-anchor: middle; dominant-baseline: middle; font-weight: 600; pointer-events: none; font-family: inherit; }
.el-mod:hover .el-body { stroke: var(--ink); }
.el-mod.on .el-body { stroke: var(--lg); stroke-width: 16; }
.el-mod.bad .el-body { stroke: var(--nofit, #b3261e); stroke-dasharray: 34 20; stroke-width: 12; }
.el-mod.drag { opacity: .7; cursor: grabbing; }
.el-mod:focus-visible .el-body { stroke: var(--lg); stroke-width: 18; }
.el-free path { stroke: #8fae8c; stroke-width: 10; stroke-linecap: round; }
.el-dim path { stroke: #a59d93; stroke-width: 5; fill: none; }
.re-start-in { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 8px 0; }
.re-start-in .cab-num { width: 116px; }
.re-pal { display: flex; flex-direction: column; gap: 6px; }
.re-palroom { align-self: flex-start; }
.re-pgrp { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 8px; align-items: start; }
.re-pgrp > span { padding-top: 6px; font-size: 11.5px; font-weight: 700; color: var(--graphite); }
.re-pgrp > div { display: flex; flex-wrap: wrap; gap: 5px; }
.re-tip { margin: 0; font-size: 12.5px; color: var(--lg); }
.re-issues { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.re-issues li { display: flex; gap: 8px; align-items: flex-start; padding: 6px 9px; border-radius: 9px; font-size: 12.5px; line-height: 1.4; cursor: pointer; }
.re-issues li b { flex: none; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; color: #fff; }
.re-issues .lv-no { background: #fbeceb; } .re-issues .lv-no b { background: var(--nofit, #b3261e); }
.re-issues .lv-check { background: #fdf4e3; } .re-issues .lv-check b { background: var(--cond, #b26a00); }
.re-issues .lv-info { background: #f4f2ee; } .re-issues .lv-info b { background: #8f8a84; }
.re-props { padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 12px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 8px; }
.re-ph { display: flex; flex-direction: column; gap: 6px; }
.re-ph h3 { margin: 1px 0 0; font-size: 15px; }
.re-ph small { font-size: 11px; color: var(--graphite); }
.re-acts { display: flex; flex-wrap: wrap; gap: 4px; }
.icon-btn.sm { width: 30px; height: 30px; font-size: 18px; }
.ghost.danger { color: var(--nofit, #b3261e); }
.re-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; }
.re-row > span:not(.re-pos) { width: 100%; font-size: 11.5px; font-weight: 700; color: var(--graphite); }
.re-row .cab-num { width: 108px; }
.re-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.re-chips button { padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--sheet); font-size: 12.5px; font-variant-numeric: tabular-nums; cursor: pointer; }
.re-chips button.on { border-color: var(--lg); color: var(--lg); font-weight: 700; }
.re-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.re-sel { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--graphite); }
.re-sel select, .re-app select { padding: 7px 8px; border-radius: 9px; border: 1px solid var(--line); background: var(--sheet); font: inherit; font-size: 13px; color: var(--ink); }
.re-fin { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 6px; align-items: center; font-size: 11.5px; font-weight: 700; color: var(--graphite); }
.re-app { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border-radius: 10px; background: #f6f1ea; font-size: 12.5px; }
.re-app > span { font-size: 11.5px; font-weight: 700; color: var(--graphite); }
.re-app small { color: var(--graphite); }
.re-src { margin: 2px 0 8px; font-size: 12px; color: #8a5300; }
.re-hint { margin: 6px 0 0; font-size: 12px; color: var(--graphite); }
.re-issues li small { display: block; color: var(--graphite); font-size: 11.5px; margin-top: 1px; }
.re-results { display: flex; flex-direction: column; gap: 8px; }
.re-results h4 { margin: 0 0 4px; font-size: 12.5px; }
.re-results ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.re-results li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 9px; border-radius: 9px; background: #f8f6f2; font-size: 12.5px; }
.re-results li span { display: flex; flex-direction: column; gap: 1px; }
.re-results li small { font-size: 11.5px; color: var(--graphite); line-height: 1.35; }
.re-results li b { flex: none; font-size: 12px; }
.re-results .v-fit b, .re-results .s-ok b { color: var(--fit, #1b7a3d); }
.re-results .v-conditional b, .re-results .s-check b, .re-results .s-site b, .re-results .v-unknown b { color: var(--cond, #b26a00); }
.re-results .v-no_fit b, .re-results .s-blocked b { color: var(--nofit, #b3261e); }
.re-results .v-none { color: var(--graphite); }
.re-ok { margin: 0 0 8px; padding: 7px 10px; border-radius: 9px; background: #eef6ef; color: var(--fit, #1b7a3d); font-size: 12.5px; }
.re-more { margin: 0 0 8px; }
.re-more summary { cursor: pointer; font-size: 12px; color: var(--graphite); padding: 2px 2px 6px; }
.re-wait { margin: 0; padding: 40px; text-align: center; color: var(--graphite); font-size: 13px; }
/* 하나씩 조립: 필수 구성 · 천장 · 놓기 미리보기 · 냉장고 · 천장 마감판 */
.re-req { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 5px 6px 5px 10px; border-radius: 12px; background: #fbf7f2; border: 1px solid var(--line-soft); }
.re-req-l { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.re-req-t { font-size: 12.5px; font-weight: 700; color: var(--ink); margin-right: 2px; }
.re-need { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 6px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--line); font-size: 12.5px; }
.re-need small { color: var(--graphite); font-size: 11px; }
/* 필수 표시는 경고가 아니다: 빨강·주황 대신 차분한 테두리 글씨로 (빨강은 정말 안 되는 것에만) */
.re-badge { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; color: var(--ink); background: transparent; border: 1px solid #b9b0a5; }
.re-badge.conditional { color: var(--graphite); border-style: dashed; }
.re-add-s { padding: 4px 9px; border: 0; border-radius: 999px; background: var(--ink); color: var(--sheet); font-size: 12px; font-weight: 600; cursor: pointer; }
.re-add-s:hover { background: var(--lg); }
.re-keep { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--graphite); }
.re-scope { display: inline-flex; flex: none; border-radius: 10px; padding: 2px; }
.re-scope button { padding: 5px 10px; font-size: 12px; white-space: nowrap; border-radius: 8px; }
.re-ceil { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 5px 6px 5px 10px; border-radius: 12px; background: #fdf4e3; font-size: 12.5px; }
.re-ceil > span { flex: 1 1 220px; align-self: center; }
.re-ceil small { color: var(--graphite); margin-left: 4px; }
.re-ceil .cab-num { flex-direction: row; align-items: center; gap: 6px; width: auto; }
.re-ceil .cab-num input { width: 104px; padding: 5px 30px 5px 8px; }
.re-ceil .cab-num i { bottom: 7px; }
.re-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.re-tools .re-usage { margin: 0; }
.re-tools > button + button { margin-left: 6px; }
/* 이 벽 자동 채우기 · 빌트인 조합 가전 */
.re-auto, .re-asm { margin: 0 0 8px; padding: 10px 12px; border-radius: 12px; background: #fbf7f2; border: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 6px; }
.re-auto h3, .re-asm h4 { margin: 0; font-size: 14px; }
.re-auto h3 small, .re-asm h4 small { font-weight: 400; color: var(--muted, #6b6f75); margin-left: 6px; }
.re-auto-list, .re-auto-issues { margin: 0; padding-left: 18px; font-size: 13px; }
.re-asm ul { margin: 0; list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.re-asm li { display: flex; align-items: center; gap: 8px; }
.re-asm li > span { min-width: 72px; font-size: 13px; }
.re-asm select { flex: 1; min-width: 0; }
.re-auto-row { margin: 0; font-size: 13px; }
.re-auto-issues .lv-no { color: #b3261e; }
/* 우리 집 추천 조합 (주방 탭) */
.hc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hc-head h3 { margin: 0; }
.hc-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.hc-card { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-soft); background: #fff; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.hc-card.on { border-color: #a50034; box-shadow: 0 0 0 2px rgba(165, 0, 52, .12); }
.hc-card header { display: flex; align-items: center; gap: 6px; }
.hc-type { padding: 1px 8px; border-radius: 999px; background: #fbf0f3; color: #a50034; font-size: 11px; font-weight: 600; }
.hc-score { margin-left: auto; font-weight: 600; }
.hc-row { margin: 0; }
.hc-apps, .hc-why, .hc-checks { margin: 0; padding-left: 18px; }
.hc-why small { color: var(--muted, #6b6f75); }
.hc-card details summary { cursor: pointer; color: #4a4f55; }
.hc-note { color: #7a5a00; }
.hc-ex { margin-top: 8px; font-size: 13px; }
.hc-ex ul { margin: 4px 0 0; padding-left: 18px; }
.hc-refs { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.hc-refs h4 { margin: 0; font-size: 14px; }
.hc-refs h4 small { font-weight: 400; color: var(--muted, #6b6f75); margin-left: 6px; }
.hc-refs .re-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hc-rep ul { margin: 2px 0 4px; padding-left: 18px; }
.hc-rep.ok b { color: #1e6b3a; }
.hc-rep.chg b { color: #7a5a00; }
.hc-rep.ex b { color: #8a1c1c; }
.re-asm-mod, .re-asm-fin { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line-soft); display: flex; flex-direction: column; gap: 6px; }
.re-asm-mod h4, .re-asm-fin h4 { margin: 0; font-size: 13px; }
.re-badge { display: inline-block; padding: 1px 6px; border-radius: 999px; background: #eef0f2; color: #4a4f55; font-size: 11px; }
.re-pend { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 6px 8px 6px 12px; margin-bottom: 6px; border-radius: 12px; border: 1.5px dashed var(--lg); background: #fff; font-size: 12.5px; }
.re-pend > span:first-child { flex: 1 1 auto; align-self: center; }
.re-pos { display: inline-flex; align-items: center; gap: 4px; }
.re-pos .cab-num { flex-direction: row; align-items: center; gap: 6px; width: auto; white-space: nowrap; }
.re-pos .cab-num input { width: 96px; }
.re-pos .cab-num i { bottom: 9px; }
.icon-btn.sm { width: 30px; height: 34px; font-size: 16px; }
.re-el { position: relative; }
.re-empty { position: absolute; inset: auto 0 18% 0; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.re-empty p { margin: 0; padding: 4px 10px; border-radius: 8px; background: rgba(250, 248, 245, .9); font-size: 13px; color: var(--graphite); }
.re-empty button { pointer-events: auto; }
.re-dirty { font-size: 11px; font-weight: 600; color: var(--cond, #b26a00); margin-left: 4px; }
.re-tog { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.re-tog small { flex: 1 1 100%; font-weight: 400; font-size: 11.5px; color: var(--graphite); padding-left: 22px; }
.re-palhead { display: flex; justify-content: space-between; align-items: center; }
.re-leave { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 12px; background: #fdf4e3; font-size: 12.5px; }
.re-leave span { flex: 1 1 auto; font-weight: 600; }
.re-results .st-placed b { color: var(--ink); } .re-results .st-checked b, .re-results .st-kept b { color: var(--fit, #1b7a3d); } .re-results .st-missing b { color: var(--graphite); font-weight: 600; }
.re-results li[data-gofr] { cursor: pointer; }
.el-ceil path { stroke: #6e675f; stroke-width: 6; }
.el-ceil.unsure path { stroke: var(--cond, #b26a00); stroke-dasharray: 40 26; }
.el-ceil text { font-size: .8em; fill: var(--graphite); text-anchor: end; font-family: inherit; }
.el-fill { stroke: #6e675f; stroke-width: 5; opacity: .9; }
.el-fill-hatch { fill: url(#elHatch); stroke: none; pointer-events: none; }
.el-hatch { stroke: rgba(60, 54, 50, .28); stroke-width: 9; }
.el-fill-wait { fill: none; stroke: var(--cond, #b26a00); stroke-width: 5; stroke-dasharray: 24 18; }
.el-mod.pend .el-body { stroke: var(--lg); stroke-width: 12; stroke-dasharray: 40 22; fill-opacity: .55; }
.el-fr { cursor: grab; }
.el-fr rect { fill: #e9ebec; stroke: #7d8286; stroke-width: 8; }
.el-fr path { stroke: #9aa0a4; stroke-width: 6; }
.el-fr text { font-size: 1em; font-weight: 600; fill: #3b3633; text-anchor: middle; dominant-baseline: middle; pointer-events: none; font-family: inherit; }
.el-fr.on rect, .el-fr:focus-visible rect { stroke: var(--lg); stroke-width: 16; }
.el-fr.bad rect { stroke: var(--nofit, #b3261e); stroke-dasharray: 34 20; stroke-width: 12; }
.el-fr.drag { opacity: .7; cursor: grabbing; }
.el-other rect { fill: #ebe7e1; stroke: #b5aca2; stroke-width: 5; }
.el-other text { font-size: .8em; fill: var(--graphite); text-anchor: middle; dominant-baseline: middle; pointer-events: none; font-family: inherit; }
@media (max-width: 900px) {
  .studio.run-on .stage { display: flex; }
  .run-ed { position: fixed; left: 6px; right: 6px; bottom: 6px; margin: 0; width: auto; height: auto; max-height: 62vh; }
  .run-ed.folded { width: auto; height: 48px; flex-direction: row; }
  .run-ed.folded .re-flabel { writing-mode: horizontal-tb; margin: 0; }
  .el-svg { height: 150px; }
}

/* 벽지 칠할 곳: 집 전체 / 방 하나씩 */
.room-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.room-pick .chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 13px; }
.room-dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); flex: none; }
.room-tip { margin: 0 0 10px; font-size: 12.5px; color: var(--graphite); }

/* 인덕션·후드 설치 판정 카드 (hoodcard.js), 후드 후보 미리 보기, 필수 구성 알림 */
.need-banner { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
  border: 1px solid #efc4c0; border-radius: 999px; background: var(--nofit-bg); color: var(--nofit); font-size: 13.5px; font-weight: 700; white-space: nowrap; box-shadow: 0 4px 14px -8px rgba(60, 48, 30, .4); }
.need-banner::before { content: "!"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--nofit); color: #fff; font-size: 12px; }
.need-banner[hidden] { display: none; }
.fit-badge:not([hidden]) + .need-banner { top: 76px; }
.studio.app .need-banner { top: 8px; font-size: 12.5px; padding: 6px 12px; }
.plan .hood-cand rect { fill: none; stroke: var(--unk); }
.plan .hood-cand text { fill: var(--unk); font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: .02px; }
.minimap .plan .hood-cand text { display: none; }
.hood-card { margin-top: 12px; }
.hood-card .hc-mock { margin: 10px 12px 0; padding: 6px 10px; border-radius: 8px; color: #8a5a00; background: #f6eedc; font-size: 12px; font-weight: 600; }
.studio .side #insp .insp-photo.slim { height: 96px; min-height: 0; }
.insp-photo.slim img { height: 100%; object-fit: contain; }
.hc-links { display: flex; gap: 14px; margin-top: 8px !important; font-size: 12px; }
.hc-links .linklike { padding: 2px 0; border: 0; border-radius: 0; background: none; box-shadow: none; font-size: 12px; font-weight: 600; color: var(--graphite); text-decoration: underline; text-underline-offset: 3px; }
.hc-strip { margin: 10px 12px 0; padding: 10px; border-radius: 10px; background: var(--drafting); font-size: 13px; }
.hc-strip.cand { border: 1.5px dashed #b9b2a6; background: transparent; }
.hc-strip.warn { border: 1.5px dashed #d9b46a; background: #fdf7ea; }
.hc-strip p { margin: 0; color: var(--graphite); }
.hc-strip p b { color: var(--ink); }
.hc-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hc-need { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 12px 4px; font-size: 13px; }
.hc-seg { padding: 3px; }
.hc-seg button { padding: 4px 10px; font-size: 12.5px; }
.hc-sec { margin: 0 12px; border-top: 1px solid var(--line-soft); }
.hc-sec summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; cursor: pointer; font-size: 13.5px; list-style: none; }
.hc-sec summary::-webkit-details-marker { display: none; }
.hc-sec summary b::before { content: "▸"; display: inline-block; width: 14px; color: var(--graphite); }
.hc-sec[open] summary b::before { content: "▾"; }
.hc-chip { padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; color: var(--unk); background: var(--unk-bg); white-space: nowrap; }
.hc-sec.v-fit .hc-chip { color: var(--fit); background: var(--fit-bg); }
.hc-sec.v-conditional .hc-chip { color: #8a5a00; background: #f6eedc; }
.hc-sec.v-no_fit .hc-chip { color: var(--nofit); background: var(--nofit-bg); }
.hc-sec .bc-todo { margin: 0 0 8px; }
.hc-sec .bc-todo li.v-fit .bc-tag { background: var(--fit); }
.hc-sec .bc-todo li.v-unknown .bc-tag { background: #9aa0a8; }
.hc-nums { color: var(--ink) !important; font-variant-numeric: tabular-nums; }
.hc-org { font-style: normal; padding: 0 6px; border-radius: 99px; font-size: 11px; background: var(--unk-bg); color: var(--unk); }
.hc-org.o-mock { background: #f6eedc; color: #8a5a00; }
.hc-org.o-measured { background: var(--fit-bg); color: var(--fit); }
.hc-src { font-size: 11.5px !important; }
.hc-src a { color: var(--graphite); }
.hc-empty { margin: 0 0 10px; font-size: 12.5px; color: var(--graphite); }
.hc-form { margin: 0 0 12px; padding: 10px; border-radius: 10px; background: var(--drafting); display: grid; gap: 8px; font-size: 12.5px; }
.hc-form label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--graphite); }
.hc-form select, .hc-form input { width: 132px; flex: 0 0 auto; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--sheet); font: inherit; color: var(--ink); }
.hc-form input { width: 84px; text-align: right; }
.hc-form fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 6px; }
.hc-form legend { padding: 0; margin-bottom: 4px; font-weight: 600; color: var(--ink); }
.hc-check { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--graphite); }
.re-need .re-pending { color: var(--graphite); font-weight: 600; padding-right: 6px; }
/* 하우니로 주방 만들기: 후보 카드(여러 개 골라 비교) · 비교안 · 미리 보기 막대 */
.bot-log .msg.kit { max-width: 100%; align-self: stretch; }
.bot-log .msg.kit.busy { opacity: .55; pointer-events: none; }
.kit-need { margin: 8px 0 10px; }
.kit-slot { margin: 12px 0 4px; }
.kit-slot h4 { display: flex; align-items: baseline; gap: 6px; margin: 0 0 6px; font-size: 13px; }
.kit-slot h4 em { font-style: normal; font-size: 11px; color: var(--lg); }
.kit-slot h4 small { margin-left: auto; font-weight: 400; color: var(--graphite); font-variant-numeric: tabular-nums; }
.kit-cands { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.kit-cand { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 18px; gap: 8px; align-items: center; padding: 6px 8px 6px 6px;
  text-align: left; background: #fff; border: 1.5px solid transparent; border-radius: 12px; box-shadow: none; color: var(--ink); font: inherit; cursor: pointer; }
.kit-cand:hover { border-color: var(--line); transform: none; }
.kit-cand[aria-pressed="true"] { border-color: var(--lg); background: #fff; }
.kit-cand .ph { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--drafting); }
.kit-cand .ph img { width: 100%; height: 100%; object-fit: contain; }
.kit-cand .nm { min-width: 0; font-size: 12px; line-height: 1.35; }
.kit-cand .nm b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kit-cand .nm small { display: block; color: var(--graphite); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kit-tick { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); }
.kit-cand[aria-pressed="true"] .kit-tick { border-color: var(--lg); background: var(--lg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.kit-tag { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.kit-tag.ok { color: var(--fit); background: var(--fit-bg); }
.kit-tag.check { color: var(--cond); background: var(--cond-bg); }
.kit-tag.no { color: var(--nofit); background: var(--nofit-bg); }
.msg.kit > .primary { margin-top: 12px; width: 100%; }
.kit-case { margin: 8px 0 0; padding: 10px 12px; background: #fff; border-radius: 14px; }
.kit-case header { display: flex; align-items: center; gap: 8px; }
.kit-case header b { min-width: 0; flex: 1; font-size: 13px; font-weight: 600; line-height: 1.35; }
.kit-rank { flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--lg); color: #fff; font-size: 11px; font-weight: 700; }
.kit-why { list-style: none; margin: 6px 0 0; padding: 0; font-size: 11.5px; line-height: 1.45; color: var(--graphite); }
.kit-why li { padding-left: 10px; position: relative; }
.kit-why li::before { content: ""; position: absolute; left: 0; top: .6em; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }
.kit-why li.no { color: var(--nofit); } .kit-why li.check { color: var(--cond); }
.kit-why small { opacity: .8; }
.kit-price { display: flex; align-items: baseline; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-soft); font-size: 12px; }
.kit-price b { font-size: 14px; font-variant-numeric: tabular-nums; }
.kit-rows { list-style: none; margin: 2px 0 0; padding: 0; font-size: 11px; color: var(--graphite); }
.kit-rows li { display: flex; justify-content: space-between; gap: 8px; font-variant-numeric: tabular-nums; }
.kit-note { margin: 4px 0 0; font-size: 11px; color: var(--graphite); }
.kit-acts { display: flex; gap: 6px; margin-top: 8px; }
.kit-acts button { flex: 1; }
.kit-more { margin-top: 10px; font-size: 12px; }
.kit-more > summary { cursor: pointer; color: var(--graphite); }
.kit-more .kit-case { background: var(--drafting); }
/* 미리 보기 막대: 3D 아래 가운데, 3D를 가리지 않게 낮게 */
.kit-bar { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 6; width: min(560px, calc(100% - 32px)); display: flex; align-items: center; gap: 10px;
  padding: 10px 12px 10px 16px; background: var(--sheet); border-radius: 16px; box-shadow: var(--shadow-float); }
.kit-bar[hidden] { display: none; }
.kit-bar-t { min-width: 0; flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 13px; }
.kit-bar-t b { min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.kit-bar-t small { flex-basis: 100%; font-size: 11.5px; color: var(--graphite); }
.kit-bar-t small.no { color: var(--nofit); }
.kit-bar-a { display: flex; gap: 6px; flex: none; }
.studio.kit-on .act-bar { display: none !important; }
@media (max-width: 640px) { .kit-bar { flex-direction: column; align-items: stretch; } .kit-bar-a button { flex: 1; } }

/* LG 가전 대분류: 필터보다 먼저, 타일 네 칸 → 그 아래 품목 한 줄 */
.grp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.grp-grid .grp { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 2px 8px; border: 1px solid var(--line-soft); border-radius: 12px;
  background: var(--sheet); color: var(--ink); box-shadow: none; transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.grp-grid .grp .ic { width: 22px; height: 22px; stroke-width: 1.5; color: var(--graphite); }
.grp-grid .grp b { font-size: 12px; font-weight: 600; white-space: nowrap; letter-spacing: -.02em; }
.grp-grid .grp:hover:not(:disabled) { border-color: var(--line); background: var(--warm-grey); }
.grp-grid .grp.on, .grp-grid .grp.on:hover { border-color: var(--ink); background: var(--sheet); box-shadow: inset 0 0 0 1px var(--ink); }
.grp-grid .grp.on .ic { color: var(--ink); }
.grp-grid .grp:disabled { opacity: .4; }
.cat-row { margin-top: 8px; }
.cat-row[hidden] { display: none; }
.cat-row .cat-chips { gap: 5px; }
.cat-row .cat-chips.clip { max-height: 72px; overflow: hidden; }
.cat-row .chip { padding: 5px 11px; font-size: 12.5px; }
.cat-row .chip:not(.on) { background: var(--sheet); }
.cat-row .chip.on, .cat-row .chip.on:hover { background: var(--sheet); color: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); } /* 고른 표시는 대분류 타일처럼 진한 테두리 (빨강은 '안 들어감'으로 읽힌다) */

/* ---------- 도면에 맞추기: 스캔 평면을 도면 위에 겹쳐 놓기 ---------- */
.pf { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--warm-grey); }
.pf-head { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px 10px; background: var(--sheet); border-bottom: 1px solid var(--line); }
.pf-head > div { flex: 1; }
.pf-head b { font-size: 16px; }
.pf-say { margin: 2px 0 0; font-size: var(--t-sm); color: var(--graphite); }
.pf-stage { position: relative; flex: 1; min-height: 0; margin: 12px; border-radius: 14px; overflow: hidden; background: var(--sheet); box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(29, 28, 26, .35); }
.pf-stage svg { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; user-select: none; }
.pf.grabbing .pf-stage svg { cursor: grabbing; }
.pf-img { opacity: .55; }
.pf-plan { stroke: #3a3733; stroke-opacity: .35; stroke-linecap: square; }
.pf-scan line { stroke: var(--lg); stroke-width: 4px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pf-scan .pf-hit { fill: var(--lg); fill-opacity: .1; stroke: none; cursor: move; }
.pf-scan:hover .pf-hit { fill-opacity: .16; }
.pf-scan line { cursor: move; }
/* 눌러서 잡으면 브라우저 포커스 테두리(검정 큰 네모)가 도면을 가린다. 마우스로 잡을 땐 없애고, 키보드로 왔을 때만 얇게 */
.pf-scan:focus { outline: none; }
.pf-scan:focus-visible .pf-hit { stroke: var(--lg); stroke-width: 2px; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
.pf-frame { fill: none; stroke: var(--graphite); stroke-width: 1px; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; pointer-events: none; }
.pf-stem { stroke: var(--graphite); stroke-width: 1px; vector-effect: non-scaling-stroke; pointer-events: none; }
.pf-rot, .pf-scl { fill: var(--sheet); stroke: #4a4640; stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.pf-rot { cursor: grab; }
.pf-scl { cursor: nwse-resize; }
.pf-rot:hover, .pf-scl:hover { fill: var(--warm-grey); }
.pf-legend { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: var(--t-xs); color: var(--graphite); pointer-events: none; }
.pf-legend span { display: inline-block; width: 16px; height: 3px; border-radius: 2px; margin-left: 6px; }
.pf-legend span:first-child { margin-left: 0; }
.pf-legend .sw-scan { background: var(--lg); }
.pf-legend .sw-plan { background: #3a3733; opacity: .4; height: 5px; }
.pf-foot { display: flex; align-items: center; gap: 8px; padding: 0 12px 14px; flex-wrap: wrap; }
.pf-foot .spacer { flex: 1; }
.pf-keys { font-size: var(--t-xs); color: var(--graphite); margin-left: 6px; }
@media (max-width: 640px) { .pf-keys { display: none; } .pf-stage { margin: 8px; } .pf-foot #pfSave { order: 9; flex: 1 0 100%; } }
.fp-fit { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
#planFitBtn[hidden] { display: none; }
.pf-gap { stroke: #fff; stroke-width: .24; }
.pf-op { stroke: #3a3733; stroke-opacity: .55; stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.pf-scan line.pf-sop { stroke: #fff; stroke-width: 2px; stroke-dasharray: 3 3; }

/* 할인 표시 (js/benefit.js): 쿠폰은 확정가, 카드 결제일 할인은 '최대 얼마 더'로 따로 */
.bn-was s { color: var(--graphite); font-weight: 400; font-size: .86em; }
.bn-now { color: var(--ink); }
.bn-was + .bn-now { color: var(--lg); }
.bn-tag, .bn-card, .bn-check { display: inline-block; font-size: 11px; font-weight: 500; }
.bn-tag { color: var(--lg); }
.bn-card { display: block; color: var(--graphite); }
.bn-check { color: var(--cond); }
.bn-total { display: block; flex-basis: 100%; margin: 6px 0 0; font-size: 12px; }
.bn-total .bn-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin: 2px 0; }
.bn-total .bn-row > span:first-child { flex: 1; color: var(--graphite); }
.bn-total .bn-row b { font-size: 14px; color: var(--lg); font-variant-numeric: tabular-nums; }
.bn-total .bn-row.bn-card b { color: var(--ink); font-size: 13px; }
.bn-total .bn-row small { flex-basis: 100%; text-align: right; font-size: 11px; color: var(--graphite); }
.bn-total .bn-row.bn-check small { text-align: left; color: var(--cond); }
.bn-total .bn-note { display: block; margin-top: 4px; font-size: 10.5px; color: var(--graphite); line-height: 1.4; }
.order-total .bn-total small { flex-basis: auto; }

/* 범위 → 벽 → 가전 → 배치안 (planflow.js) */
.pfl { display: flex; flex-direction: column; gap: 14px; }
.pfl-step { display: flex; flex-direction: column; gap: 8px; }
.pfl-step h4 { margin: 0; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.pfl-step h4 i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 11.5px; }
.pfl-step h4 small { font-weight: 500; color: var(--graphite); }
.pfl-step p { margin: 0; font-size: 12.5px; color: var(--graphite); }
.pfl-scopes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pfl-scope { text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--sheet); display: flex; flex-direction: column; gap: 3px; font: inherit; cursor: pointer; }
.pfl-scope b { font-size: 13.5px; } .pfl-scope small { font-size: 12px; color: var(--graphite); line-height: 1.4; }
.pfl-scope.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fbf7f2; }
.pfl-on { color: var(--ink) !important; font-weight: 600; } .pfl-on small { font-weight: 400; color: var(--graphite); margin-left: 4px; }
.pfl .re-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pfl .re-chip.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.pfl-q { width: 100%; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--sheet); font: inherit; font-size: 12.5px; box-sizing: border-box; }
.pfl-list, .pfl-picked ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pfl-list { max-height: 210px; overflow: auto; }
.pfl-list li, .pfl-picked li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 9px; border: 1px solid var(--line-soft); font-size: 12.5px; }
.pfl-list li span, .pfl-picked li span { display: flex; flex-direction: column; min-width: 0; }
.pfl-list small, .pfl-picked small { color: var(--graphite); font-size: 11.5px; }
.pfl-picked { padding: 8px 10px; border-radius: 12px; background: #fbf7f2; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.pfl-count { font-weight: 600; color: var(--ink) !important; }
.pfl-area { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; padding: 8px 10px; border-radius: 12px; background: #fbf7f2; }
.pfl-area .re-chips { flex-wrap: wrap; }
.pfl-sub { margin: 0; font-size: 12.5px; }
.pfl-sub small { color: var(--graphite); font-weight: 400; }
.pfl-items { max-height: 180px; }
.pfl-cards { display: flex; flex-direction: column; gap: 8px; }
.pfl-card { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--sheet); cursor: pointer; display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; }
.pfl-card.on { border-color: #A50034; box-shadow: inset 0 0 0 1px #A50034; }
.pfl-card.part { border-style: dashed; }
.pfl-card header { display: flex; flex-direction: column; gap: 2px; } .pfl-card header b { font-size: 13.5px; }
.pfl-walls, .pfl-tap { color: var(--graphite); font-size: 12px; }
.pfl-apps, .pfl-un, .pfl-checks, .pfl-ex, .pfl-np ul { margin: 0; padding-left: 16px; }
.pfl-un li, .pfl-err, .pfl-np { color: #A50034; }
.pfl-rep { color: #8a5a00 !important; font-weight: 600; }
.pfl-msg { padding: 8px 10px; border-radius: 10px; background: #fff4e5; color: #6b4a00 !important; }
.pfl-part summary { cursor: pointer; font-size: 12.5px; font-weight: 600; margin: 4px 0; }
.pfl-manual { margin: 0; } .pfl-manual .link { background: none; border: 0; padding: 0; color: var(--graphite); text-decoration: underline; font: inherit; font-size: 12.5px; cursor: pointer; }
.re-scope-t { font-size: 12px; color: var(--graphite); white-space: nowrap; }
.run-ed .pfl { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.bn-total .bn-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 6px 0 2px; color: var(--graphite); }
.bn-total .bn-pay select { margin-left: 4px; font: inherit; padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--sheet); }
.bn-total .bn-pay label { display: inline-flex; align-items: center; gap: 6px; margin: 0; white-space: nowrap; font-size: 12px; }
.bn-total .bn-pay input[type="checkbox"] { width: auto; margin: 0; }
.bn-total .bn-multi { display: block; margin: 8px 0 2px; padding: 8px 10px; border-radius: 8px; background: rgba(165, 0, 52, .05); }
.bn-total .bn-multi > small { display: block; font-size: 11px; color: var(--graphite); }
.bn-total ul { margin: 4px 0 0; padding-left: 16px; }
.bn-total li { margin: 3px 0; line-height: 1.4; }
.bn-total li small { font-size: 11px; color: var(--graphite); }
.bn-total .bn-cond { display: block; margin-top: 1px; }
.bn-total li a { margin-left: 4px; font-size: 11px; color: var(--graphite); }
.bn-total .bn-multi .bn-warn { display: block; margin-top: 2px; font-size: 11px; color: var(--cond); }
.bn-total .bn-others { margin: 6px 0 2px; }
.bn-total .bn-others summary { cursor: pointer; color: var(--cond); font-size: 12px; }

/* 도면과 다른 벽 (2026-12-03): 3D 위 한 줄. 3D 가운데를 가리지 않게 도구 줄 아래에 붙는다 */
.diff-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line-soft); background: var(--lg-soft, #fbeef2); font-size: 13px; }
.diff-bar[hidden] { display: none; }
.diff-bar p { margin: 0 auto 0 0; min-width: 0; }
.diff-bar p span { color: var(--graphite); }
.diff-bar p small { margin-left: 4px; color: var(--graphite); font-size: 12px; }
.diff-tag { width: 20px; height: 20px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--lg); color: #fff; font-size: 12px; font-weight: 700; }
.studio.run-on .stage > .diff-bar { display: none; } /* 맞춤가구 편집 중에는 숨긴다 */
@media (max-width: 720px) { .diff-bar { flex-wrap: wrap; } .diff-bar p { flex-basis: 100%; } }
/* 도면에만 있는 벽 앞 제품: 확인 필요 */
.chk-head.need { background: var(--cond-bg); color: var(--cond); }
.chk .mk.need { background: var(--cond); }
.chk-list.need span { color: var(--cond); }
.chk-list.need button:hover { border-color: var(--cond); }

/* 가전 기준 장 설계: 제품 선택을 먼저, 치수 조정을 목록보다 먼저 보여 준다. */
.re-target { padding: 14px; border: 1px solid #d9b4c0; border-radius: 12px; background: #fff8fa; display: flex; flex-direction: column; gap: 8px; }
.re-target label { font-size: 16px; }
.re-target select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--sheet, white); color: var(--ink); font: inherit; font-size: 14px; }
.re-target p { margin: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.re-target small { font-size: 13px; line-height: 1.5; color: var(--graphite); }
.re-target-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.re-target-acts button, .pfl-existing button { min-height: 44px; font-size: 14px; }
.re-target select:focus-visible, .re-target button:focus-visible, .pfl-catalog summary:focus-visible { outline: 3px solid var(--lg, #a50034); outline-offset: 2px; }
.re-validation { flex-basis: 100%; margin: 0; font-size: 14px; line-height: 1.5; color: #8b1538; }
.re-checks { padding: 12px; border: 1px solid var(--line-soft); border-radius: 12px; }
.re-checks > summary, .pfl-catalog > summary { cursor: pointer; min-height: 36px; font-size: 14px; font-weight: 600; }
.re-checks[open] > summary, .pfl-catalog[open] > summary { margin-bottom: 10px; }
.run-ed .re-props .cab-num input { min-height: 36px; font-size: 16px; }
.run-ed .re-props .cab-num > span, .run-ed .re-props .re-row > span { font-size: 14px; }
.run-ed .re-ph small { font-size: 13px; line-height: 1.5; }
.run-ed .pfl-step h4 { font-size: 16px; }
.run-ed .pfl-step p, .run-ed .pfl-list li, .run-ed .pfl-picked { font-size: 14px; line-height: 1.5; }
.run-ed .pfl-list small, .run-ed .pfl-picked small { font-size: 13px; }
.pfl-existing { max-height: 270px; }
.pfl-existing li { gap: 12px; padding: 12px; }
.pfl-existing button { flex: none; }
.pfl-catalog { border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px; }
@media (max-width: 720px) {
  .re-target { padding: 12px; }
  .re-target-acts button { flex: 1 1 140px; }
  .pfl-existing li { flex-wrap: wrap; }
  .pfl-existing button { width: 100%; }
}
