:root{color-scheme:light;font-family:Inter,PingFang SC,Microsoft YaHei,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;color:#172033;font-synthesis:none;text-rendering:geometricPrecision}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;overflow:hidden;background:radial-gradient(circle at 10% 12%,rgba(255,215,105,.72),transparent 26%),radial-gradient(circle at 86% 14%,rgba(78,205,196,.62),transparent 27%),radial-gradient(circle at 16% 84%,rgba(255,107,157,.52),transparent 30%),linear-gradient(135deg,#8ec5ff,#e0c3fc 45%,#fff0c7)}body:before{content:"";position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;background-image:linear-gradient(120deg,rgba(255,255,255,.28) 0 1px,transparent 1px 42px),linear-gradient(30deg,rgba(255,255,255,.2) 0 1px,transparent 1px 34px);animation:floatPattern 18s linear infinite}@keyframes floatPattern{0%{transform:translateZ(0)}to{transform:translate3d(42px,34px,0)}}button,input,select{font:inherit}button{min-height:36px;border:1px solid rgba(255,255,255,.58);border-radius:12px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:14px;color:#20304a;background:#ffffff94;box-shadow:0 8px 20px #26345214;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border .16s ease}button:hover{transform:translateY(-1px);background:#ffffffc7;box-shadow:0 12px 28px #26345221}button.active,button.primary{color:#fff;border-color:#ffffffb3;background:linear-gradient(135deg,#7c3aed,#2563eb 48%,#06b6d4);box-shadow:0 14px 32px #4b55c852}button.subtle{background:#ffffff7a}button.danger{color:#b42318}button:disabled{cursor:not-allowed;opacity:.48;transform:none}input,select{width:100%;min-height:36px;border:1px solid rgba(255,255,255,.68);border-radius:12px;padding:0 10px;background:#ffffffb8;color:#172033;outline:none;box-shadow:inset 0 1px #ffffff73}input:focus,select:focus{border-color:#6366f1a6;box-shadow:0 0 0 3px #6366f129}.app{position:relative;height:100vh;display:grid;grid-template-rows:66px 1fr 34px;padding:10px;gap:10px}.topbar,.panel,.statusbar,.hud{border:1px solid rgba(255,255,255,.48);background:#ffffff57;-webkit-backdrop-filter:blur(22px) saturate(1.25);backdrop-filter:blur(22px) saturate(1.25);box-shadow:0 18px 48px #24304c29}.topbar{display:flex;align-items:center;gap:12px;padding:9px 12px;border-radius:20px}.brand{min-width:150px;display:flex;flex-direction:column;line-height:1.08}.brand strong{font-size:17px;letter-spacing:0}.brand span{margin-top:4px;font-size:12px;color:#1f2937b8}.segmented,.toolbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.segmented{padding:4px;border-radius:16px;background:#ffffff47}.segmented button{min-width:72px}.toolbar{margin-left:auto;padding:4px;border-radius:16px;background:#ffffff3d;flex-wrap:nowrap}.toolbar button{min-height:36px;padding:0 11px;white-space:nowrap}.workspace{min-height:0;display:grid;grid-template-columns:270px minmax(0,1fr) 230px;gap:10px}.panel{min-height:0;overflow:auto;padding:12px;border-radius:22px;min-width:0}.panel h2{margin:4px 0 11px;font-size:13px;font-weight:800;color:#24324c}.tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.tool-grid button{min-width:0;height:36px;min-height:36px;padding:0 8px;justify-content:flex-start;overflow:hidden;white-space:nowrap;gap:6px;font-size:13px;font-weight:700}.tool-grid button svg{flex:0 0 15px;width:15px;height:15px}.tool-grid button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tool-grid button:nth-child(4n+1){background:#fff2999e}.tool-grid button:nth-child(4n+2){background:#bbf7d094}.tool-grid button:nth-child(4n+3){background:#bfdbfe9e}.tool-grid button:nth-child(4n+4){background:#fbcfe894}.tool-grid button.active{background:linear-gradient(135deg,#ff6b9d,#7c3aed 55%,#06b6d4)}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.field{display:grid;gap:6px;margin-bottom:11px}.field label{font-size:12px;font-weight:700;color:#24324cb8}.panel-section{padding:10px;margin-bottom:10px;border:1px solid rgba(255,255,255,.36);border-radius:18px;background:#ffffff3d;overflow-wrap:anywhere}.panel-section:last-child{margin-bottom:0}.canvas-shell{position:relative;min-width:0;min-height:0;padding:10px;border:1px solid rgba(255,255,255,.48);border-radius:24px;background:#ffffff47;box-shadow:0 18px 48px #24304c29;-webkit-backdrop-filter:blur(18px) saturate(1.2);backdrop-filter:blur(18px) saturate(1.2)}.canvas{width:100%;height:100%;display:block;border-radius:18px;background:#ffffffeb;box-shadow:inset 0 0 0 1px #94a3b82e;touch-action:none;-webkit-user-select:none;user-select:none;cursor:crosshair}.canvas.pan{cursor:grab}.canvas.select{cursor:default}.hud{position:absolute;left:24px;bottom:24px;display:flex;align-items:center;gap:8px;padding:9px 11px;border-radius:16px;color:#26344f;font-size:12px}.statusbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 14px;border-radius:16px;color:#1f2937bd;font-size:12px}.stat{display:flex;gap:10px;align-items:center;min-width:0}.pill{border:1px solid rgba(255,255,255,.58);border-radius:999px;padding:3px 9px;color:#24324c;background:#ffffff7a}.object-list{display:grid;gap:7px}.object-row{width:100%;justify-content:flex-start;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row{display:flex;gap:8px;align-items:center}.row>*{flex:1}.muted{color:#24324cb8;font-size:12px;line-height:1.5;margin:0}.warning-text{margin:8px 0 0;padding:8px 10px;border:1px solid rgba(248,113,113,.35);border-radius:12px;color:#b42318;background:#fee2e294;font-size:12px;line-height:1.45}.kbd{border:1px solid rgba(148,163,184,.45);border-radius:7px;background:#ffffffb3;padding:1px 6px;color:#334155}.geometry{fill:none;stroke:#0f172a;stroke-width:2;vector-effect:non-scaling-stroke}.geometry.selected{stroke:#7c3aed;stroke-width:2.8}.preview{fill:#7c3aed17;stroke:#7c3aed;stroke-dasharray:8 5;stroke-width:2;vector-effect:non-scaling-stroke}.edge-preview{stroke:#ff6b9d;stroke-width:4}.target-preview{pointer-events:none;vector-effect:non-scaling-stroke}.target-edge-preview{stroke:#ec4899;stroke-width:5;stroke-linecap:round;filter:drop-shadow(0 0 5px rgba(236,72,153,.5))}.target-circle-preview{fill:#ec489912;stroke:#ec4899;stroke-width:3.2;filter:drop-shadow(0 0 5px rgba(236,72,153,.42))}.target-point-preview{fill:#ec4899;stroke:#fff;stroke-width:2.2;filter:drop-shadow(0 0 5px rgba(236,72,153,.48))}.first-target.target-edge-preview,.first-target.target-circle-preview{stroke:#2563eb}.first-target.target-point-preview{fill:#2563eb}.dimension{stroke:#f97316;stroke-width:1.5;vector-effect:non-scaling-stroke;fill:none}.preview-dimension .dimension{stroke:#2563eb;stroke-dasharray:6 4}.preview-dimension{pointer-events:none}.preview-dimension .dimension-text{fill:#1d4ed8}.dimension-group.selected .dimension{stroke:#7c3aed;stroke-width:2.4}.dimension-group.selected .dimension-text{fill:#6d28d9}.dimension-group{cursor:grab}.dimension-group:active{cursor:grabbing}.dimension-hit{stroke:transparent;stroke-width:14;vector-effect:non-scaling-stroke;fill:none;pointer-events:stroke}.dimension-text{fill:#c2410c;font-size:13px;paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round}.dimension-text.editable{cursor:grab;pointer-events:all}.dimension-text-hit{fill:transparent;stroke:transparent;stroke-width:14px;pointer-events:all}.snap-point{fill:#f43f5e;stroke:#fff;stroke-width:2;vector-effect:non-scaling-stroke}.origin-mark{pointer-events:none}.origin-mark line{stroke:#2563eb;stroke-width:1.4;vector-effect:non-scaling-stroke}.origin-mark circle{fill:#2563eb;stroke:#fff;stroke-width:2;vector-effect:non-scaling-stroke}.origin-mark text{fill:#1d4ed8;font-size:11px;paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round}.layout-copy{fill:#0ea5e912;stroke:#0f172a;stroke-width:1.6;vector-effect:non-scaling-stroke}.sheet{fill:#ffffff8c;stroke:#64748b;stroke-width:1.5;vector-effect:non-scaling-stroke}.empty-hint{pointer-events:none}.empty-hint text{fill:#3341559e;font-size:15px;paint-order:stroke;stroke:#fff;stroke-width:5px;stroke-linejoin:round}@media(max-width:980px){body{overflow:auto}.app{min-height:100vh;height:auto}.workspace{grid-template-columns:1fr;grid-template-rows:auto 70vh auto}.topbar{align-items:flex-start;flex-wrap:wrap;height:auto}.toolbar{margin-left:0}}
