/* 2026-11-09 tools2: 모형 만들기 (공용 rm-/sw- 조각 복사 포함) */
.sw-mini{min-width:34px !important;min-height:46px !important;padding:0 !important;font-size:12px !important}
.sw-del{color:#b91c1c !important}
.sw-sw{display:grid !important;grid-template-columns:1fr 1fr;gap:2px;width:40px;height:32px;padding:3px;border-radius:8px;border:1px solid #e5e7eb}
.sw-sw i{border-radius:3px}
.rm-x{min-width:44px;color:#b91c1c !important}
.rm-add{width:100%;min-height:44px;border-style:dashed !important;font-weight:700}
.rm-path{border:1px solid #e5e7eb;border-radius:12px;padding:8px;margin:0 0 8px;background:#fff;display:flex;flex-direction:column;gap:6px}
.rm-path__r{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.rm-path select{flex:1 1 110px;min-width:0;min-height:44px !important;font-size:14px !important;padding:6px 8px !important}
.rm-h{display:inline-grid;place-items:center;min-width:40px;height:30px;padding:0 6px;border-radius:999px;background:#0f172a;color:#fff;font-size:13px}
.rm-sign{display:inline-flex;gap:4px;flex:1}
.rm-sign .gg-btn{flex:1;min-height:40px;padding:0 6px;font-size:13px}
.rm-sign .gg-btn[aria-pressed=true]{background:#eef2ff;border-color:#4f46e5;color:#3730a3;box-shadow:inset 0 0 0 1px #4f46e5}
.rm-hyp{border:1px solid #e5e7eb;border-radius:12px;padding:8px 10px;margin:0 0 8px;background:#fff}
.rm-hyp.is-sub{margin-left:18px;background:#f8fafc}
.rm-hyp__hd{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.rm-hyp__hd b{font-size:14px;color:#111827}
.rm-hyp__hd small{color:#64748b;font-size:12px;flex:1}
.rm-hyp textarea{font-size:15px}
.rm-themes{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:8px;margin:4px 0 8px}
.rm-theme{display:flex;flex-direction:column;gap:6px;padding:8px;border:1.5px solid #e5e7eb;border-radius:14px;cursor:pointer}
.rm-theme span{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;height:30px}
.rm-theme span i{border-radius:5px;border:2px solid}
.rm-theme b{font-size:12.5px;color:#111827;text-align:center}
.rm-theme[aria-pressed=true]{border-color:#4f46e5;box-shadow:0 0 0 3px rgba(79,70,229,.3)}
.md-gq{width:100%;min-height:46px;padding:8px 12px;border:1.5px solid #d1d5db;border-radius:12px;font-size:15px;margin:2px 0 8px}
.md-cats{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;margin-bottom:8px;scrollbar-width:thin}
.md-cat{flex:none;min-height:38px;padding:0 12px;border:1.5px solid #e5e7eb;border-radius:999px;background:#fff;font-size:13.5px;font-weight:700;color:#374151;cursor:pointer}
.md-cat[aria-pressed=true]{background:#4f46e5;border-color:#4f46e5;color:#fff}
.md-gal{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.md-card{display:flex;flex-direction:column;gap:6px;padding:6px;border:1.5px solid #e5e7eb;border-radius:14px;background:#fff;cursor:pointer;text-align:left;transition:border-color .15s,box-shadow .15s}
.md-card:hover{border-color:#a5b4fc;box-shadow:0 4px 14px rgba(79,70,229,.12)}
.md-card[aria-pressed=true]{border-color:#4f46e5;box-shadow:0 0 0 3px rgba(79,70,229,.18)}
.md-card b{font-size:13px;line-height:1.3;color:#111827;padding:0 2px 2px}
.md-th{display:block;aspect-ratio:16/9;border-radius:9px;overflow:hidden;background:#f8fafc;border:1px solid #eef0f4}
.md-th svg{display:block;width:100%;height:100%}
.md-row{border:1px solid #e5e7eb;border-radius:12px;padding:8px;margin:0 0 8px;background:#fff}
.md-row__hd{display:flex;align-items:center;gap:6px}
.md-row__hd input{flex:1;min-width:0;min-height:44px;padding:6px 10px;border:1.5px solid #d1d5db;border-radius:10px;font-size:15px;font-weight:700}
.md-row textarea{width:100%;margin-top:6px;padding:8px 10px;border:1.5px solid #e5e7eb;border-radius:10px;font-size:14px;line-height:1.5;resize:vertical;min-height:52px}
.md-dot{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;color:#fff;font-style:normal;font-size:13px;font-weight:800}
.md-sw{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 8px}
.md-swb{width:40px;height:40px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1.5px #d1d5db;cursor:pointer}
.md-swb[aria-pressed=true]{box-shadow:0 0 0 3px #111827}
.ck-model .rm-path input[type=text]{flex:1 1 140px;min-width:0;min-height:44px;padding:6px 10px;border:1.5px solid #d1d5db;border-radius:10px;font-size:14px}
@media (max-width:1023px){#gg-app.ck-model:not(.is-fs) .gg-canvas{height:calc(56.25vw + 70px);min-height:280px}}
@media (min-width:1500px){.md-gal{grid-template-columns:repeat(3,minmax(0,1fr))}}
