/* 관리자페이지에서 보기 */
#admin { height:100vh; min-height:0; padding:0; overflow:hidden; }
#admin > .content { min-height:0; margin:0; overflow:hidden; }

/* 사용자페이지에서 보기 */
#sub01 ~ #pHelpButton { display:none; }

/* ##### .three-scene */
.three-scene { position:relative; display:flex; flex-direction:column; width:100%; height:100dvh; min-height:560px; overflow:hidden; background:#f8f8f6; color:#20211e; }
.three-scene * { box-sizing:border-box; }
.three-scene .sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.three-scene button, .three-scene input { font:inherit; }
.three-scene button { -webkit-tap-highlight-color:transparent; }
.three-scene button:focus-visible { outline:3px solid #1474b9; outline-offset:3px; }
.three-scene input[type="number"]:focus { outline:none; }
.three-scene .planner-body { display:grid; flex:1; grid-template-columns:minmax(0,1fr) 336px; min-height:0; }
.three-scene .scene-stage { position:relative; min-width:0; min-height:0; overflow:hidden; background:#e3e0d6; }
.three-scene canvas { display:block; width:100%; height:100%; touch-action:none; }
.three-scene .scene-empty { position:absolute; top:46%; left:50%; display:flex; width:280px; align-items:center; flex-direction:column; gap:14px; text-align:center; transform:translate(-50%,-50%); pointer-events:none; }
.three-scene .scene-empty > svg { width:52px; height:52px; padding:13px; border:1px solid #aaa99f; border-radius:50%; fill:none; stroke:#5d5f55; stroke-width:1.5; }
.three-scene .scene-empty strong { font-size:18px; font-weight:600; }
.three-scene .scene-empty p { margin:0; color:#65675d; font-size:12px; }
.three-scene .scene-hint { position:absolute; right:20px; bottom:20px; left:20px; width:fit-content; max-width:calc(100% - 40px); margin:0 auto; padding:12px 18px; border:1px solid #ffffff80; border-radius:8px; background:#fffffff0; color:#5e6158; font-size:12px; text-align:center; pointer-events:none; }
.three-scene .dimension-overlay { position:absolute; z-index:1; inset:0; overflow:hidden; pointer-events:none; }
.three-scene .dimension-lines { position:absolute; inset:0; width:100%; height:100%; overflow:visible; fill:none; stroke:#30342e; stroke-width:1; }
.three-scene .dimension-lines [data-measure="shelf"] { stroke:#0076bf; stroke-width:1.5; }
.three-scene .dimension-tag { position:absolute; top:0; left:0; display:flex; width:86px; height:30px; align-items:center; justify-content:center; gap:3px; margin:-15px 0 0 -43px; padding:0 8px; border:0; border-radius:4px; background:#292d27; color:#fff; font-size:12px; pointer-events:auto; }
.three-scene .dimension-tag input { width:45px; min-width:0; height:26px; padding:0; border:0; border-radius:2px; background:transparent; color:inherit; font-size:12px; font-weight:700; text-align:center; -moz-appearance:textfield; appearance:textfield; }
.three-scene .dimension-tag input::-webkit-inner-spin-button, .three-scene .dimension-tag input::-webkit-outer-spin-button { margin:0; -webkit-appearance:none; appearance:none; }
.three-scene .dimension-tag > span:last-child { color:#ffffffb3; font-size:12px; }
.three-scene .dimension-tag[data-tag="shelf"] { background:#0076bf; }
.three-scene .dimension-tag:focus-within, .three-scene .dimension-tag[data-tag="shelf"]:focus-within { background:#00558a; }
.three-scene .resize-handle { position:absolute; top:0; left:0; display:flex; width:28px; min-width:28px; height:28px; align-items:center; justify-content:center; margin:-14px 0 0 -14px; padding:3px; border:2px solid #0076bf; border-radius:50%; background:#fff; color:#0076bf; box-shadow:0 2px 8px #172f3b26; pointer-events:auto; touch-action:none; }
.three-scene .resize-handle svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.5; }
.three-scene .resize-handle[data-handle="left"], .three-scene .resize-handle[data-handle="right"] { cursor:ew-resize; }
.three-scene .resize-handle[data-handle="top"], .three-scene .resize-handle[data-handle="bottom"] { cursor:ns-resize; }
.three-scene .resize-handle:hover { background:#eaf5ff; }
.three-scene .planner-panel { display:flex; min-height:0; flex-direction:column; align-items:stretch; gap:24px; overflow-y:auto; padding:90px 26px 22px; border-left:1px solid #deded7; background:#fff; }
.three-scene .panel-intro h1 { margin:10px 0 12px; font-size:24px; font-weight:700; }
.three-scene .install-button { display:flex; width:100%; min-height:46px; flex-shrink:0; align-items:center; justify-content:center; gap:8px; padding:12px 16px; border:1px solid #ffda1a; border-radius:6px; background:#ffda1a; color:#24261e; font-weight:700; cursor:pointer; }
.three-scene .install-button > svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; }
.three-scene .install-button:hover { border-color:#f0c700; background:#f0c700; }
.three-scene .install-button:disabled { border-color:#e5e9e0; background:#f0f3ed; color:#5a6951; cursor:default; }
.three-scene .planner-editor { min-width:0; margin:0; padding:0; border:0; }
.three-scene .planner-editor > legend { width:100%; margin-bottom:15px; padding:0; font-size:16px; font-weight:700; }
.three-scene .planner-editor:disabled { opacity:0.42; }
.three-scene .size-summary { display:flex; flex-direction:column; gap:5px; margin-bottom:20px; padding:15px 16px; border-radius:6px; background:#f5f5f1; }
.three-scene .size-summary > span { font-size:18px; font-weight:700; }
.three-scene .size-summary > small { color:#7b7f73; font-size:12px; }
.three-scene .size-fields { display:grid; grid-template-columns:1fr 1fr; gap:14px 12px; }
.three-scene .size-fields .jw-field:last-child { grid-column:1 / -1; }
.three-scene .jw-field > label { display:block; margin-bottom:8px; color:#5c6055; font-size:12px; }
.three-scene .jw-input { display:flex; height:42px; align-items:center; gap:6px; padding:0 12px; border:0; border-radius:5px; background:#fff; }
.three-scene .jw-input:focus-within { background:#e2f2ff; }
.three-scene .jw-input > input { width:100%; min-width:0; height:100%; padding:0; border:0; background:transparent; color:#24271f; font-weight:600; }
.three-scene .jw-input > span { color:#92968a; font-size:12px; }
.three-scene .shelf-heading { display:flex; align-items:center; justify-content:space-between; margin:26px 0 12px; padding-top:24px; border-top:1px solid #ebede6; }
.three-scene .shelf-heading h2 { margin:0; font-size:16px; font-weight:700; }
.three-scene .shelf-heading > span { color:#92968a; font-size:12px; }
.three-scene .shelf-editor { display:flex; flex-direction:column; gap:8px; }
.three-scene .shelf-row { display:flex; min-height:42px; align-items:center; justify-content:space-between; gap:10px; padding:5px 10px; border:1px solid #e8eae3; border-radius:5px; cursor:pointer; }
.three-scene .shelf-row > span:first-child { display:flex; align-items:center; gap:10px; color:#555b4c; font-size:12px; }
.three-scene .shelf-row i { display:block; width:21px; height:6px; border:1px solid #9b9f93; border-bottom-width:2px; border-radius:1px; }
.three-scene .shelf-row.is-selected { border-color:#0076bf; background:#edf7ff; }
.three-scene .shelf-row.is-selected i { border-color:#0076bf; }
.three-scene .shelf-input { display:flex; align-items:center; gap:6px; color:#92968a; font-size:12px; }
.three-scene .shelf-input input { width:65px; height:29px; padding:2px 5px; border:0; border-radius:3px; background:#fff; color:#2b3025; font-size:12px; text-align:right; }
.three-scene .shelf-input input:focus { background:#d7ecfc; }
.three-scene .editor-note { margin:14px 0 0; color:#898e80; font-size:12px; }
@media (max-width:900px) {
	.three-scene .planner-body { grid-template-columns:minmax(0,1fr) 300px; }
	.three-scene .planner-panel { padding:90px 20px 20px; }
	.three-scene .room-label { top:100px; left:20px; }
}
@media (max-width:680px) {
	.three-scene { height:100dvh; min-height:560px; overflow-y:auto; }
	.three-scene .planner-body { display:flex; flex:none; flex-direction:column; min-height:auto; }
	.three-scene .scene-stage { height:58dvh; min-height:360px; flex-shrink:0; }
	.three-scene .room-label { top:16px; left:16px; gap:5px; }
	.three-scene.is-installed .room-label { display:none; }
	.three-scene .room-label > span { font-size:12px; }
	.three-scene .scene-empty { width:250px; }
	.three-scene .scene-empty strong { font-size:16px; }
	.three-scene .scene-hint { right:12px; bottom:12px; left:12px; max-width:calc(100% - 24px); padding:9px 12px; }
	.three-scene .planner-panel { gap:22px; overflow:visible; padding:24px 22px; border-top:1px solid #deded7; border-left:0; }
	.three-scene .size-fields { grid-template-columns:1fr 1fr 1fr; }
	.three-scene .size-fields .jw-field:last-child { grid-column:auto; }
	.three-scene .shelf-editor { display:grid; grid-template-columns:1fr 1fr; }
	.three-scene .shelf-row { gap:6px; padding:5px 8px; }
	.three-scene .shelf-row > span:first-child { gap:6px; }
	.three-scene .shelf-input input { width:50px; }
}
@media (max-width:420px) {
	.three-scene .shelf-editor { grid-template-columns:1fr; }
}
.three-scene [hidden] { display:none; }
