*{box-sizing:border-box;scrollbar-width:thin;scrollbar-color:#454c57 transparent}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#454c57;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#5a6370}html,body,#root{height:100%;margin:0}body{overflow:hidden;background:#15171b;color:#e8eaed;font:13px/1.4 system-ui,Segoe UI,sans-serif}.app{display:grid;height:100%;grid-template-columns:1fr 290px;grid-template-rows:auto 1fr auto;grid-template-areas:"toolbar toolbar" "canvas panel" "status status"}.toolbar{grid-area:toolbar;display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;padding:8px 12px;background:#22262c;border-bottom:1px solid #343a43}.brand{font-size:14px}.group{display:flex;align-items:center;gap:6px}.group.right{margin-left:auto}button,select,input{font:inherit;color:inherit;background:#2e333b;border:1px solid #454c57;border-radius:4px;padding:5px 10px}button{cursor:pointer}button:hover{background:#3a414b}button.active{background:#2f6fbd;border-color:#4da3ff}button.danger{margin-top:8px;border-color:#a34848}.canvas-wrap{grid-area:canvas;position:relative;min-width:0;min-height:0;overflow:hidden}.canvas-wrap canvas{display:block;touch-action:none}.panel{grid-area:panel;display:flex;flex-direction:column;gap:10px;overflow-y:auto;padding:10px;background:#1a1d22;border-left:1px solid #343a43}.card{flex:none;padding:10px 12px 12px;background:#23272e;border:1px solid #343a43;border-radius:8px}.card>:last-child{margin-bottom:0}.card .shape-list{max-height:220px;overflow-y:auto}.card .shape-list.tree{max-height:340px;overflow-x:hidden}.tree ul{margin:0;padding:0 0 4px 22px;list-style:none}.shape-list.tree li{padding:0;cursor:default}.shape-list.tree li:hover{background:none}.tree-row{display:flex;align-items:center;gap:4px;padding:2px 6px 2px 2px;border-radius:4px}.tree-row:hover{background:#2a2f36}.shape-list.tree li.tree-row.active{background:#2f6fbd}.tree-row.head{font-weight:600}.tree-row.hidden .tree-name,.tree-row.hidden .muted{opacity:.4}.tree-name{flex:1;min-width:0;padding:3px 2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.tree-row .muted{flex:none;font-size:11px;font-weight:400}button.tree-btn{flex:none;width:22px;height:22px;padding:0;color:#9aa3af;background:transparent;border:none}button.tree-btn:hover:not(:disabled){color:#fff;background:#3a414b}.tree-row.hidden button.tree-btn{color:#6b7482}.panel h3{margin:0 0 10px;padding-bottom:8px;border-bottom:1px solid #343a43;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:#9aa3af}.field{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}.label-text{white-space:nowrap}input:disabled{opacity:.55;cursor:not-allowed}.selected-name{margin:0 0 8px;font-weight:600}.small{margin:0 0 8px;font-size:11px;line-height:1.4}.field input,.field select{flex:none}.field input{width:84px;text-align:right}button{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}.with-info,.label-text,.panel h3,.dialog-head strong{display:inline-flex;align-items:center;gap:2px}.panel h3{display:flex}button.info{width:20px;height:20px;padding:0;color:#808995;background:transparent;border:none;border-radius:50%;flex:none}button.info:hover{color:#4da3ff;background:#4da3ff1f}.dialog.confirm-dialog{width:min(380px,92vw);height:auto}button.danger.solid{margin-top:0;background:#a33a3a;border-color:#d05a5a}button.danger.solid:hover{background:#b94545}.dialog.help-dialog{width:min(420px,92vw);height:auto;max-height:88vh;overflow-y:auto}.help-fig{width:100%;background:#1b1e23;border:1px solid #343a43;border-radius:6px}.help-body{line-height:1.55}table.keys td{text-align:left;border-bottom:none;padding:3px 8px 3px 0}kbd{padding:2px 6px;font:12px Consolas,monospace;background:#2e333b;border:1px solid #454c57;border-radius:4px;white-space:nowrap}.segmented{display:inline-flex}.segmented button{border-radius:0;margin-left:-1px}.segmented button:first-child{margin-left:0;border-radius:4px 0 0 4px}.segmented button:last-child{border-radius:0 4px 4px 0}.segmented button.active{position:relative}.view3d canvas{display:block}.labels3d{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;overflow:hidden;pointer-events:none}.label3d{position:absolute;top:0;left:0;padding:1px 7px;font-size:11px;white-space:nowrap;border-radius:4px}.label3d.part{color:#dfe3e8;background:#15171b99}.label3d.dim,.label3d.pdim,.label3d.name{pointer-events:auto;cursor:text}.label3d.pdim{color:#fff;background:#6b4fb0;border:1px solid #b197fc;font-variant-numeric:tabular-nums}.label3d.pdim:hover{border-color:#fff}.label3d.dim{color:#fff;background:#2f6fbd;border:1px solid #4da3ff;font-variant-numeric:tabular-nums}.label3d.name{font-size:13px;font-weight:600;background:#23272e;border:1px solid #5a6370}.label3d.dim:hover,.label3d.name:hover{border-color:#fff}.label3d.name{display:flex;align-items:center;gap:6px}.label-actions{display:inline-flex;gap:2px}.label-actions button{width:22px;height:22px;padding:0;color:#9aa3af;background:transparent;border:none}.label-actions button:hover{color:#fff;background:#3a414b}.label3d input{padding:1px 4px;text-align:center;background:#15171b}.label3d.invalid input{border-color:#ff6b6b}.label-error{margin-top:3px;font-weight:400;color:#ffd27a}.view3d-tools{position:absolute;top:10px;left:10px;z-index:2;display:flex;align-items:center;gap:10px}.view3d-tools{flex-wrap:wrap;right:10px}.view3d-tools .legend{display:inline-flex;align-items:center;gap:5px;color:#9aa3af}.view3d-tools .legend i{width:10px;height:10px;margin-left:6px;border-radius:50%}.view3d-tools .note{padding:3px 8px;color:#ffd27a;background:#3a3220;border-radius:4px}.empty-note{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:#808995;pointer-events:none}.swatch{display:inline-block;width:10px;height:10px;margin-right:8px;border-radius:2px;vertical-align:baseline}.spacer{height:12px}.tool-stats{margin:0;padding:0;list-style:none}.tool-stats li{padding:2px 0}.tool-stats .muted{margin-left:10px}button.wide{width:100%;margin-top:6px}button.left{margin:0 auto 0 0}.dialog.cabinet-dialog{width:min(520px,92vw);height:auto;max-height:88vh}.dialog.cabinet-dialog{overflow-y:auto}.cabinet-form .field select{width:160px}.cabinet-form button.wide{margin:0 0 6px}.cabinet-form .field input{width:160px}.table-wrap{overflow-y:auto}table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}th,td{padding:5px 8px;text-align:right;border-bottom:1px solid #343a43}th:first-child,td:first-child,th:last-child,td:last-child{text-align:left}th{font-size:11px;font-weight:600;color:#9aa3af}.field select{width:130px}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10;display:flex;align-items:center;justify-content:center;background:#0000008c}.dialog{display:flex;flex-direction:column;gap:10px;width:min(640px,92vw);height:min(600px,88vh);padding:14px;background:#22262c;border:1px solid #454c57;border-radius:8px}.dialog-head,.dialog-foot{display:flex;align-items:center;gap:8px}.dialog-head{justify-content:space-between}.dialog-foot{justify-content:flex-end}.dialog textarea{flex:1;resize:none;padding:10px;color:#d5f5d0;background:#15171b;border:1px solid #343a43;border-radius:4px;font:12px/1.5 Consolas,Cascadia Mono,monospace}.warnings{margin:0;padding:8px 8px 8px 26px;color:#ffd27a;background:#3a3220;border-radius:4px}button:disabled{opacity:.5;cursor:default}.muted{color:#808995}.shape-list{margin:0;padding:0;list-style:none}.shape-list li{padding:5px 8px;border-radius:4px;cursor:pointer}.shape-list li:hover{background:#2a2f36}.shape-list li.active{background:#2f6fbd}.status{grid-area:status;display:flex;justify-content:space-between;padding:5px 12px;background:#22262c;border-top:1px solid #343a43;font-variant-numeric:tabular-nums;white-space:pre}
