/* Copyright © 2026 Barrett Kim. All rights reserved. Unauthorized modification, reproduction, or redistribution is prohibited. */
/* 도구 페이지 시연 무대 공용: 스케치업 화면과 플러그인 대화창(cad2skp·AutoRamp가 같은 디자인). 무대 틀(.window, .stage, .flow, .u-*)은 WIM style.css. */

.stage [data-scene]:not(.on) { display: none !important; }
/* ---------- 스케치업 화면 ---------- */
.f-su { grid-template-columns: minmax(0, 1fr) 380px; }
.su-app { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--line-strong); }
.su-tools { display: flex; align-items: center; gap: 4px; height: 40px; flex: none; padding: 0 10px; background: var(--surface-3); border-bottom: 1px solid var(--line-strong); }
.su-tools i { width: 24px; height: 24px; border-radius: 5px; background: var(--bg); border: 1px solid var(--line); }
.su-tools i.c2s-ic { border-color: var(--gloss-edge); background: linear-gradient(180deg, rgba(255, 255, 255, .5) 0 48%, rgba(255, 255, 255, 0) 52%), linear-gradient(180deg, var(--gloss-top), var(--gloss-bot)); }
.su-tools span { margin-left: 8px; font-size: 12px; color: var(--muted); }
.su-vp { position: relative; flex: 1; min-height: 0; background: linear-gradient(180deg, var(--sky-top), var(--sky-mid) 58%, var(--surface-3) 58.2%, var(--surface-2)); }
.su-vp > div, .su-vp > svg { position: absolute; inset: 0; }
.su-vp svg { width: 100%; height: 100%; }
.su-vp .iso polygon, .hero-pair .iso polygon { vector-effect: non-scaling-stroke; stroke-width: .9; }
.iso .glass { fill: rgba(95, 170, 255, .42); stroke: #3d8fd6; }
.iso .chg polygon { stroke: #e2bd00; stroke-width: 1.8; }
.axes path { vector-effect: non-scaling-stroke; stroke-width: 1.3; fill: none; }
.ax-x { stroke: #d93a3a; } .ax-y { stroke: #2e9e44; } .ax-z { stroke: #2f6fd6; }
.su-tags { position: absolute; left: 14px; top: 14px; width: 176px; display: grid; gap: 1px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow-card); font-size: 11px; }
.su-tags b { padding: 2px 6px 4px; font-size: 11px; color: var(--muted); }
.su-tags span { display: flex; align-items: center; gap: 7px; padding: 3px 6px; border-radius: 5px; }
.su-tags span:nth-of-type(even) { background: var(--zebra); }
.su-tags i { width: 10px; height: 10px; border-radius: 3px; border: 1px solid var(--line-strong); }

/* ---------- cad2skp 대화창 (플러그인 dialog.html을 축소 재현) ---------- */
.c2s { display: flex; flex-direction: column; min-height: 0; background: var(--section-alt); font-size: 12px; }
.c2s-bar { display: flex; align-items: center; justify-content: center; height: 30px; flex: none; border-bottom: 1px solid var(--line-strong); background: linear-gradient(180deg, var(--bg), var(--surface-2)); font-weight: 600; }
.c2s-body { flex: 1; min-height: 0; padding: 12px 12px 0; overflow: hidden; }
.c2s-card { overflow: hidden; border-radius: 10px; background: var(--bg); box-shadow: 0 0 0 .5px var(--line-strong), 0 1px 2px rgba(0, 0, 0, .04); }
.c2s h4 { display: flex; justify-content: space-between; margin: 11px 10px 5px; font-size: 11px; font-weight: 500; color: var(--muted); }
.c2s h4 small { font-size: 11px; font-weight: 400; }
.c2s-src { display: flex; align-items: center; gap: 9px; padding: 9px 10px; }
.c2s-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.c2s-src div { flex: 1; min-width: 0; }
.c2s-src b { font-size: 13px; letter-spacing: -.01em; }
.c2s-src small { margin-left: 5px; color: var(--muted); font-size: 11px; }
.c2s-src p { overflow: hidden; color: var(--muted); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.c2s-btn { flex: none; padding: 3px 10px; border-radius: 7px; background: var(--surface-3); font-weight: 500; }
.c2s-links { display: flex; gap: 14px; margin-left: 10px; padding: 6px 10px 6px 0; border-top: 1px solid var(--line); color: var(--link); font-size: 11px; }
.c2s-form { display: grid; grid-template-columns: 1fr 1fr; }
.c2s-form div { display: flex; align-items: center; justify-content: space-between; padding: 5px 10px; }
.c2s-form div:nth-child(even) { border-left: 1px solid var(--line); }
.c2s-form div:nth-child(n+3) { border-top: 1px solid var(--line); }
.c2s-num { min-width: 50px; padding: 1px 7px; border-radius: 6px; background: var(--surface-3); text-align: right; font-variant-numeric: tabular-nums; }
.c2s table { width: 100%; border-collapse: collapse; }
.c2s th { padding: 5px 5px 4px; text-align: left; font-size: 10px; font-weight: 500; color: var(--muted); box-shadow: inset 0 -1px var(--line); }
.c2s td { padding: 2px 5px; border-bottom: 1px solid var(--line); white-space: nowrap; line-height: 18px; }
.c2s tr:last-child td { border-bottom: 0; }
.c2s th:first-child, .c2s td:first-child { padding-left: 10px; }
.c2s th:last-child, .c2s td:last-child { padding-right: 10px; }
.c2s .r { text-align: right; }
.c2s .n { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.c2s td.nm { color: var(--muted); }
.c2s td.nm::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; vertical-align: 1px; }
.c2s tr.wall td.nm, .c2s tr.open td.nm, .c2s .blocks td.nm { color: var(--text); font-weight: 500; }
.c2s tr.wall td.nm::before { background: var(--text); }
.c2s tr.open td.nm::before { background: var(--blue); }
.c2s .blocks td.nm::before { display: none; }
.c2s-seg { display: inline-flex; padding: 1px; border-radius: 6px; background: var(--surface-3); vertical-align: middle; }
.c2s-seg span { min-width: 30px; padding: 0 6px; border-radius: 5px; text-align: center; font-size: 11px; line-height: 16px; }
.c2s-seg .on { background: var(--bg); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .14); }
.c2s .num-sm { min-width: 40px; padding: 0 6px; border-radius: 5px; background: var(--surface-3); text-align: right; font-variant-numeric: tabular-nums; display: inline-block; }
.c2s .num-sm.off { opacity: .35; }
.c2s-foot { display: flex; align-items: center; gap: 9px; flex: none; padding: 9px 12px; border-top: 1px solid var(--line); background: var(--glass); }
.c2s-switch { display: flex; align-items: center; gap: 7px; }
.c2s-switch i { position: relative; width: 32px; height: 19px; border-radius: 10px; background: var(--green); }
.c2s-switch i::after { content: ""; position: absolute; top: 2px; left: 15px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.c2s-msg { position: relative; flex: 1; min-width: 0; height: 16px; font-size: 11px; color: var(--muted); }
.c2s-msg span { position: absolute; left: 0; top: 0; white-space: nowrap; }
.c2s-go { flex: none; padding: 5px 22px; border-radius: 999px; background: var(--blue); color: #ffffff; font-weight: 600; }

/* ---------- 라이노판 페이지(body.rh): 회색 뷰포트와 뷰 이름 ---------- */
.rh { --rh-vp: #c6c7cb; }
:root[data-theme="dark"] .rh { --rh-vp: #3b3c40; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rh { --rh-vp: #3b3c40; } }
.rh .su-vp { background: var(--rh-vp); }
.rh .su-vp::before { content: 'Perspective'; position: absolute; left: 10px; top: 7px; z-index: 1; font-size: 11px; color: var(--text-2); }
