/* 화면 전체 다듬기 (2026-12-02)
   기준: 간격은 4px 단위, 모서리는 작은 것 8 · 판 12~16 · 큰 판 24 세 단계만, 글자는 12 / 13 / 14 / 17 / 20.
   레드는 화면마다 주 버튼 하나와 "지금 고른 것"에만 쓰고, 나머지 버튼은 회색 면으로 조용하게.
   테두리 상자 안에 또 테두리 상자를 넣지 않는다. 구분은 선 하나나 바탕색 차이로.
   맨 마지막에 읽혀서 style.css · studio.css의 같은 자리를 덮는다. 기능·마크업은 건드리지 않는다. */

:root {
  --r-in: 8px;
  --r-card: 14px;
  --r-big: 24px;
  --hover: rgba(29, 28, 26, .05);
  --press: rgba(29, 28, 26, .09);
}

/* ---- 공통 버튼 ---- */
button.primary:disabled, .btn.primary[aria-disabled="true"] {
  background: var(--line); border-color: var(--line); color: #9b948a; opacity: 1; box-shadow: none; cursor: default;
}
button:focus-visible, .btn:focus-visible, .fbtn:focus-visible, a:focus-visible { outline: 2px solid var(--lg); outline-offset: 2px; }

/* ---- 첫 화면 ---- */
.start-box { gap: 14px; padding: 20px; }
.start-box h2 { font-size: 17px; font-weight: 700; }
/* 점선 상자 대신 옅은 면: 끌어 놓기 자리라는 건 마우스를 올리면 보인다 */
.slot { border: 1px solid transparent; background: var(--drafting); border-radius: var(--r-card); transition: background-color .15s, border-color .15s; }
.slot:hover, .slot.over, .slot:focus-visible { background: #fff; border-color: var(--line); }
.slot.over { border-color: var(--lg); border-style: dashed; }
.slot.has { background: #fff; border-color: var(--lg); border-style: solid; }
.slot .ic { color: var(--ink); opacity: .7; }
.slots-note { font-size: 12.5px; color: var(--graphite); }
/* 샘플 집: 카드 안 카드를 없애고 그림 + 이름만 */
.samples { gap: 14px; }
.sample { padding: 0; border: 0; background: none; box-shadow: none; gap: 10px; }
.sample:hover:not(:disabled) { transform: none; border: 0; box-shadow: none; background: none; }
.sample-img { border-radius: var(--r-card); background: var(--warm-grey); transition: box-shadow .2s var(--ease); }
.sample-img img { transition: transform .35s var(--ease); }
.sample:hover:not(:disabled) .sample-img { box-shadow: 0 0 0 2px var(--lg); }
.sample:hover:not(:disabled) .sample-img img { transform: scale(1.03); }
.sample b { padding: 0 2px; font-size: 14px; text-align: left; }
.sample-img em { left: 8px; top: 8px; font-size: 11px; padding: 2px 8px; background: rgba(255, 255, 255, .92); }
.start-foot .primary { border-radius: 999px; padding: 11px 22px; }
.hauni-start { border-radius: 999px; }

/* ---- 리모델 화면 머리: 제목은 한 줄로 작게, 3D에 자리를 준다 ---- */
.studio:not(.app) .studio-head { min-height: 44px; padding: 0 4px; }
.studio:not(.app) .studio-title h1 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.studio:not(.app) .studio-title .sub { display: none; }
.fbtn { height: 36px; padding: 0 14px; border-radius: 999px; border-color: transparent; background: rgba(255, 255, 255, .7); font-weight: 600; }
.fbtn:hover:not(:disabled) { background: #fff; border-color: var(--line); }
.fbtn.primary { border-radius: 999px; }

/* ---- 3D 위 도구줄: 버튼마다 테두리 대신 한 묶음 ---- */
.stage .toolbar { border-bottom: 0; padding: 8px 10px; gap: 4px; }
.stage .toolbar .icon-row { gap: 0; padding: 3px; border-radius: var(--r-card); background: var(--drafting); }
.stage .toolbar .icon-btn { border: 0; background: none; border-radius: var(--r-in); color: var(--ink); transition: background-color .12s; }
.stage .toolbar .icon-btn:hover:not(:disabled) { background: #fff; box-shadow: 0 1px 2px rgba(60, 48, 30, .08); }
.stage .toolbar .icon-btn[data-l] { min-width: 52px; height: 44px; }
.stage .toolbar .icon-btn[data-l]::after { font-size: 10.5px; font-weight: 500; color: var(--graphite); }
.stage .toolbar .icon-btn.on, .stage .toolbar .icon-btn[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.stage .toolbar .icon-btn.on::after, .stage .toolbar .icon-btn[aria-pressed="true"]::after { color: rgba(255, 255, 255, .85); }
.stage .toolbar .icon-btn:disabled { opacity: .3; }
.stage .toolbar .furn-btn { border-radius: 999px; font-weight: 600; }

/* ---- 왼쪽 카테고리: 빨간 알약 대신 흰 손잡이가 움직이는 세그먼트 ---- */
.lib .lib-tabs { padding: 3px; gap: 0; border-radius: 12px; background: var(--warm-grey); }
.lib .lib-tabs button { padding: 7px 2px; border-radius: 9px; font-size: 12.5px; font-weight: 500; color: var(--graphite); transition: background-color .15s, color .15s; }
.lib .lib-tabs button:hover { background: rgba(255, 255, 255, .55); color: var(--ink); }
.lib .lib-tabs button.on, .lib-tabs [data-tab].on {
  background: #fff; color: var(--lg); border-color: transparent; font-weight: 700; box-shadow: 0 1px 2px rgba(60, 48, 30, .12), 0 0 0 .5px rgba(60, 48, 30, .06);
}
.lib #q { border-radius: var(--r-card); }
.lib .fbox { border-radius: var(--r-card); }

/* ---- 제품 목록: 상자 대신 줄, 배치하기는 조용한 회색 버튼 ---- */
.studio .lib .prod, .studio:not(.app) .lib .prod {
  border: 0; border-radius: var(--r-card); background: none; box-shadow: none; padding: 12px 8px; transition: background-color .15s;
}
.studio .lib .prod + .prod { box-shadow: 0 -1px 0 var(--line-soft); border-radius: 0; }
.studio .lib .prod:hover { background: var(--drafting); box-shadow: none; border-radius: var(--r-card); }
.studio .lib .prod:hover + .prod { box-shadow: none; }
.studio .lib .prod.armed { background: var(--lg-soft); box-shadow: inset 0 0 0 1.5px var(--lg); border-radius: var(--r-card); }
.studio .lib .prod .dot.tile, .studio:not(.app) .lib .prod .dot.tile { border: 0; border-radius: var(--r-in); background-color: var(--warm-grey); box-shadow: none; }
.card-foot { border-top: 0; padding-top: 2px; }
.studio .lib .prod .place-btn {
  padding: 6px 14px; border-radius: 999px; border: 0; background: var(--warm-grey); color: var(--ink); font-weight: 600; font-size: 12.5px;
}
.studio .lib .prod .place-btn:hover, .studio .lib .prod.armed .place-btn { background: var(--lg); color: #fff; }
.studio .lib .prod .price { font-weight: 700; }

/* ---- 오른쪽 아래 합계·신청: 빈 흰 판 없이 ---- */
.studio:not(.app) .side .order-bar { border-radius: var(--r-card); padding: 8px; }
.studio:not(.app) .side .order-bar:has(.order-total[hidden]) { background: none; box-shadow: none; padding: 0; }
.studio:not(.app) .side .order-bar:has(.order-total[hidden]) .primary { box-shadow: var(--shadow-float); }
.studio:not(.app) .side .order-bar .primary { border-radius: 999px; padding: 12px 16px; }
.studio:not(.app) .side .order-bar .order-total { padding: 4px 8px 2px; }

/* ---- 3D 구석 지도 버튼: 작게, 같은 모양 ---- */
.minimap :is(.mini-grow, .pip-swap) { padding: 4px 10px; font-size: 11.5px; font-weight: 600; border-radius: 999px; border: 0; box-shadow: 0 1px 3px rgba(60, 50, 40, .14); }
.canvas .minimap { border-radius: var(--r-card); }

/* ---- 3D 위 떠 있는 판들: 같은 모서리·그림자 ---- */
.sim-switches, .view-stack { border-radius: var(--r-card); }
.view-stack .vbtn { border-radius: 10px; }
.toast { border-radius: var(--r-card); }

/* ---- 2차: 스크린샷 보고 고친 것 ---- */
/* 샘플 집은 위에 붙이고 이름은 왼쪽 정렬 */
.samples { align-content: start; align-items: start; }
.sample, .sample b { text-align: left; justify-content: flex-start; }
/* LG 가전 탭에서도 세그먼트 바탕이 보이게 (붙어 있는 흰 띠보다 우선) */
.studio .lib[data-tab] .lib-tabs, .studio:not(.app) .lib[data-tab][data-tab] .lib-tabs { background: var(--warm-grey); }
/* 도구줄 띠를 3D 바탕과 같은 색으로: 흰 띠가 사라지고 도구 묶음만 떠 보인다 */
.studio .stage, .studio .stage .toolbar { background: #e1d8ca; } /* viewer.js STAGE_BG_SHOWN과 같은 색 */
.stage .toolbar .icon-row { background: #fff; box-shadow: 0 1px 2px rgba(60, 48, 30, .06), 0 6px 16px -10px rgba(60, 48, 30, .25); }
.stage .toolbar .icon-btn:hover:not(:disabled) { background: var(--warm-grey); box-shadow: none; }
/* 놓은 제품이 없을 때 신청 버튼은 오른쪽 작은 알약으로 */
.studio:not(.app) .side .order-bar:has(.order-total[hidden]) { display: flex; justify-content: flex-end; }
.studio:not(.app) .side .order-bar .ghost { width: auto; padding: 10px 18px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .94); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.studio:not(.app) .side .order-bar .ghost:hover { background: #fff; }
/* 추천 배치: 흰 글자가 흰 바탕에 묻혀 안 보이던 버튼. 도구 묶음과 같은 흰 알약으로 */
.stage .toolbar .combo-btn { height: 40px; padding: 0 16px; border: 0; background: #fff; color: var(--ink); font-size: 13px;
  box-shadow: 0 1px 2px rgba(60, 48, 30, .06), 0 6px 16px -10px rgba(60, 48, 30, .25); }
.stage .toolbar .combo-btn:hover, .stage .toolbar .combo-btn[aria-expanded="true"] { background: #fff; color: var(--lg); }
/* 상세 창 버튼: 주 버튼 한 줄 꽉, 나머지는 아래 한 줄에 나란히 (외톨이 버튼 줄바꿈 없이) */
.pd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pd-actions > :last-child:nth-child(2), .pd-actions > :only-child { grid-column: 1 / -1; }
.pd-actions > .primary { grid-column: 1 / -1; }
.pd-actions > :is(button, .btn) { width: 100%; justify-content: center; text-align: center; border-radius: 999px; padding: 12px 14px; font-size: 14px; }
.pd-actions > .ghost { background: var(--warm-grey); border-color: transparent; color: var(--ink); font-weight: 600; }
.pd-actions > .ghost:hover { background: var(--line); }
/* 상세 창이 열리면 뒤 버튼이 모서리로 비치지 않게 */
.stage:has(.pd-modal:not([hidden])) .combo-btn { visibility: hidden; }
/* 공간 용도 칩: 잘려 보이지 않게 줄을 넘긴다 */
.fsec .use-chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; gap: 6px; }
.studio.app .stage .toolbar .combo-btn { display: none; }
.studio.app .studio-title { display: none; } /* 폰: 잘린 제목 대신 버튼만 */

/* ---- 3차 (2026-12-02, p_019에서 직접 눌러 보고 고친 것) ---- */
/* 추천 배치는 하우니 '배치 추천'으로 모았다: 3D 위 버튼은 뺀다 */
.stage .toolbar .combo-btn { display: none !important; }
/* 포커스 테두리: 레드 동그라미가 오류처럼 보여서 잉크색으로 */
button:focus-visible, .btn:focus-visible, .fbtn:focus-visible, a:focus-visible { outline-color: rgba(29, 28, 26, .55); }
/* 스크롤 막대는 얇고 옅게 */
.lib, .lib *, .order-sheet, .keys-pop, .bot-log, .side-body, .pd-modal { scrollbar-width: thin; scrollbar-color: rgba(29, 28, 26, .18) transparent; }
/* 걸어 보기: 위 띠가 3D 바탕색이라 흰 판과 두 색으로 갈려 보이던 것 */
.studio.walking .stage, .studio.walking .stage .toolbar { background: var(--sheet); }
/* 걸어 보기 키 안내: 검정 판 대신 흰 유리 판 (viewer.js 인라인 스타일을 덮는다) */
.walk-hud { background: rgba(255, 255, 255, .92) !important; color: var(--ink) !important; font: 12.5px/1.55 var(--font) !important;
  border-radius: 14px !important; padding: 8px 16px !important; box-shadow: 0 1px 2px rgba(60, 48, 30, .08), 0 8px 20px -12px rgba(60, 48, 30, .35);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
/* 가구 타일: 테두리 상자 대신 그림 면 + 이름 */
.dtile { border: 0; background: none; padding: 0 0 4px; gap: 6px; }
.dtile .dimg { border-radius: 12px; background: var(--warm-grey); transition: box-shadow .15s; }
.dtile:hover { border: 0; box-shadow: none; }
.dtile:hover .dimg { box-shadow: 0 0 0 2px var(--ink); }
.dtile.on { background: none; color: var(--lg); }
.dtile.on .dimg { box-shadow: 0 0 0 2px var(--lg); }
/* 조작키 창: 너무 좁아 줄이 엉키던 것 → 넓히고 키 | 설명 두 칸 */
.studio:not(.app) .keys-pop { width: 400px; padding: 16px 18px 18px; border-radius: 16px; }
.keys-pop .keys { gap: 6px; font-size: 12.5px; }
.keys-pop .keys li { display: block; line-height: 1.9; color: var(--ink); }
.keys-pop kbd { display: inline-block; min-width: 22px; padding: 0 6px; margin: 0 1px; border: 0; border-radius: 6px; background: var(--warm-grey);
  box-shadow: inset 0 -1px 0 rgba(29, 28, 26, .12); font: 600 11.5px/20px var(--font); color: var(--ink); text-align: center; }
.keys-pop h4 { margin: 16px 0 6px; font-size: 13px; color: var(--ink); font-weight: 700; }
/* 신청 창: 제품마다 테두리 상자·알약 버튼 두 개 대신 줄 + 오른쪽 글자 링크 */
.order-list { gap: 0; }
.order-list li { padding: 12px 4px; border: 0; border-radius: 0; background: none; grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 4px; }
.order-list li + li { border-top: 1px solid var(--line-soft); }
.order-list li.nofit { border-color: var(--line-soft); background: none; }
.order-list li.nofit .nm::after { content: "지금 자리에는 안 들어가요"; display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--nofit); }
.order-list .order-fix { grid-column: 2; grid-row: 2; justify-self: start; padding: 0; border: 0; background: none; box-shadow: none;
  font-size: 12.5px; font-weight: 600; color: var(--nofit); text-decoration: underline; text-underline-offset: 3px; }
.order-list a.btn { grid-column: 3; grid-row: 2; justify-self: end; padding: 0; border: 0; background: none; box-shadow: none;
  font-size: 12.5px; font-weight: 500; color: var(--graphite); text-decoration: underline; text-underline-offset: 3px; }
.order-list a.btn:hover, .order-list .order-fix:hover { background: none; color: var(--ink); }
.order-sheet { border-radius: var(--r-big); padding: 20px 20px 18px; }
.order-all { padding-top: 12px; border-top: 1px solid var(--line); }
