:root{--bg:#f6f7f9;--panel:#fff;--border:#dde2e8;--text:#1d232a;--muted:#66727f;--accent:#1f6feb;--bad:#c92a2a;color:var(--text);background:var(--bg);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}a{color:var(--accent);text-decoration:none}button{font:inherit;cursor:pointer;border:1px solid var(--accent);background:var(--accent);color:#fff;border-radius:6px;padding:7px 12px}button:disabled{opacity:.5;cursor:default}button.secondary{color:var(--accent);background:#fff}.gallery{max-width:1000px;margin:0 auto;padding:40px 20px}.gallery-header{margin-bottom:20px}.gallery-header h1{margin:0}.cards{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px;display:grid}.card{background:var(--panel);border:1px solid var(--border);color:inherit;cursor:pointer;border-radius:10px;transition:box-shadow .15s,border-color .15s;display:block;overflow:hidden}.card:hover{border-color:var(--accent);box-shadow:0 4px 16px #00000014}.card-upload{border-style:dashed}.card-thumb{color:#9aa7b4;background:linear-gradient(135deg,#eef1f5,#dfe5ec);place-items:center;height:140px;font-size:64px;display:grid}.card-body{text-align:center;padding:14px}.card-body h2{margin:0;font-size:18px}.model-page{height:100%;display:flex}.sidebar{background:var(--panel);border-right:1px solid var(--border);flex-shrink:0;width:320px;padding:16px;overflow-y:auto}.sidebar h1{margin:10px 0 4px;font-size:20px}.back{font-size:14px}.desc{color:var(--muted);margin-top:0;font-size:14px}.save-name{color:var(--accent);font-size:13px}.alert{color:var(--bad);background:#fff0f0;border:1px solid #f3c2c2;border-radius:6px;margin:8px 0;padding:8px;font-size:13px}fieldset{border:1px solid var(--border);border-radius:8px;margin:0 0 12px;padding:8px 12px 10px}legend{text-transform:uppercase;letter-spacing:.05em;color:var(--muted);padding:0 4px;font-size:12px}.param{margin:6px 0 10px;font-size:14px;display:block}.param-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.param-val{align-items:center;gap:4px;display:flex}.param input[type=range]{width:100%;margin-top:4px}.param select{width:100%;font:inherit;margin-top:4px;padding:5px}.param.check{align-items:center;gap:8px;display:flex}.num{text-align:right;width:64px;font:inherit;border:1px solid var(--border);border-radius:4px;padding:3px 5px}.unit{color:var(--muted);width:22px;font-size:12px}.swatch{border:1px solid #0003;border-radius:3px;width:12px;height:12px}.actions{flex-wrap:wrap;gap:8px;margin:12px 0;display:flex}.share{grid-template-columns:1fr auto;align-items:center;gap:6px;margin-bottom:12px;font-size:13px;display:grid}.share div{color:var(--muted);grid-column:1/-1}.share input{font:inherit;border:1px solid var(--border);border-radius:4px;padding:5px}.step-import-box{margin:10px 0 14px}.full-width{justify-content:center;width:100%;font-size:13px}button.small{padding:4px 8px;font-size:12px}.ftree{border:1px solid var(--border);background:#fbfcfd;border-radius:8px;overflow:hidden}.ftree-header{border-bottom:1px solid var(--border);background:#eef2f6;justify-content:space-between;align-items:center;padding:8px 10px;font-size:12px;display:flex}.ftree-title{text-transform:uppercase;letter-spacing:.04em;color:#334155;font-weight:700}.ftree-count{color:var(--muted)}.ftree-toolbar{border-bottom:1px solid var(--border);background:#fff;gap:6px;padding:6px 8px;display:flex}.ftree-root{-webkit-user-select:none;user-select:none;padding:6px;font-size:13px}.ftree-node.ftree-asm{background:#edf2f7;border-radius:5px;align-items:center;gap:6px;margin-bottom:4px;padding:5px 6px;font-weight:600;display:flex}.ftree-label{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.ftree-badge{color:var(--muted);background:#e2e8f0;border-radius:10px;padding:1px 6px;font-size:11px;font-weight:500}.ftree-group{border-left:1px dashed #cbd5e1;margin-top:4px;margin-left:6px;padding-left:6px}.ftree-group-row{color:#334155;border-radius:5px;align-items:center;gap:5px;padding:4px;font-weight:600;display:flex}.ftree-group-row:hover{background:#f1f5f9}.ftree-group-name{cursor:pointer;flex:1}.ftree-children{border-left:1px solid #e2e8f0;margin-left:10px;padding-left:6px}.ftree-part-wrap{margin:2px 0}.ftree-part-wrap.is-hidden .ftree-part-name{opacity:.45;text-decoration:line-through}.ftree-part-row{cursor:pointer;border-radius:5px;align-items:center;gap:6px;padding:4px 6px;display:flex}.ftree-part-row:hover{background:#eef4fb}.ftree-part-row.selected{background:#dbeafe;outline:1px solid #93c5fd;font-weight:600}.ftree-part-name{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.ftree-caret{color:var(--muted);cursor:pointer;background:0 0;border:none;padding:0 3px;font-size:12px}.ftree-eye{color:#1e293b;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:4px;padding:2px 6px;font-size:13px;line-height:1}.ftree-eye:hover{background:#e2e8f0;border-color:#94a3b8}.ftree-eye.off{opacity:.45;background:#f1f5f9}.ftree-solo{border:1px solid var(--border);color:#334155;background:#fff;border-radius:4px;padding:2px 6px;font-size:11px}.ftree-solo:hover{border-color:var(--accent);color:var(--accent)}.ftree-features{color:#475569;background:#f1f5f9;border-radius:5px;margin:2px 0 6px 22px;padding:4px 8px;font-size:11.5px;list-style:none}.ftree-features li{justify-content:space-between;padding:2px 0;display:flex}.viewport{flex:1;min-width:0;position:relative}.toolbar{z-index:5;border:1px solid var(--border);background:#ffffffeb;border-radius:8px;align-items:center;gap:4px;padding:4px;display:flex;position:absolute;top:12px;left:12px}.toolbar button{color:var(--text);background:0 0;border:1px solid #0000;padding:5px 10px;font-size:14px}.toolbar button:hover{background:#eef2f7}.toolbar button.active{background:var(--accent);color:#fff}.toolbar .sep{background:var(--border);width:1px;height:22px;margin:0 4px}.status{z-index:5;border:1px solid var(--border);background:#ffffffeb;border-radius:6px;max-width:50%;padding:6px 10px;font-size:13px;position:absolute;bottom:48px;left:12px}.status.ok{color:#2b8a3e}.status.busy{color:var(--muted)}.status.bad{color:var(--bad);background:#fff5f5;border-color:#f3c2c2}.dims{z-index:5;border:1px solid var(--border);background:#ffffffeb;border-radius:6px;padding:6px 10px;font-size:13px;position:absolute;bottom:12px;left:12px}.measure-panel{z-index:5;border:1px solid var(--border);background:#fffffff5;border-radius:8px;width:290px;padding:10px 12px;font-size:13px;position:absolute;top:60px;left:12px;box-shadow:0 2px 10px #0000000f}.m-title{margin-bottom:6px;font-weight:600}.measure-panel table{border-collapse:collapse;width:100%}.measure-panel td{padding:2px 0}.measure-panel td:last-child{text-align:right;font-variant-numeric:tabular-nums}.measure-panel tr.strong td{color:#d6336c;font-size:16px;font-weight:700}.m-hint{color:var(--muted);margin-top:6px}.snap-dot{background:#fff;border:3px solid;border-radius:50%;width:12px;height:12px}.snap-dot.snap-center{border-radius:2px}.snap-dot.snap-mid{border-radius:1px;transform:rotate(45deg)}.measure-label{color:#fff;white-space:nowrap;font-variant-numeric:tabular-nums;background:#d6336c;border-radius:4px;padding:2px 7px;font-size:13px;font-weight:600}@media (width<=760px){.model-page{flex-direction:column-reverse}.sidebar{border-right:0;border-top:1px solid var(--border);width:100%;height:45%}.measure-panel{width:auto;right:12px}}
